:root {
  color-scheme: light;
  --blue: #1731d6;
  --blue-dark: #0f1d89;
  --ink: #101935;
  --muted: #66708d;
  --yellow: #ffe45c;
  --green: #12a86a;
  --line: #dce2f2;
  --surface: #ffffff;
  --background: #f5f7ff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--background); }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 7% 8%, rgba(255, 228, 92, .55) 0 5px, transparent 6px),
    radial-gradient(circle at 91% 14%, rgba(23, 49, 214, .12) 0 180px, transparent 181px),
    linear-gradient(145deg, #fbfcff 0%, #f0f3ff 100%);
}

button, a { font: inherit; }

a { color: inherit; }

.shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 22px clamp(18px, 4vw, 48px);
}

.topbar, .foot {
  width: min(100%, 1120px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(23, 49, 214, .13);
}

.secure {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #53607f;
  font-size: 12px;
  font-weight: 750;
}

.secure-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(18, 168, 106, .11); }

.main {
  width: min(100%, 1120px);
  margin: 30px auto;
  display: grid;
  place-items: center;
}

.card {
  width: min(100%, 840px);
  overflow: hidden;
  border: 1px solid rgba(23, 49, 214, .12);
  border-radius: 34px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 28px 80px rgba(20, 35, 112, .14);
}

.progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 19px 28px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}

.progress-step { display: flex; align-items: center; justify-content: center; gap: 8px; color: #8b94ad; font-size: 12px; font-weight: 850; }
.progress-step::before { content: attr(data-step); display: grid; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: #e9edfa; color: #687492; }
.progress-step.active { color: var(--blue); }
.progress-step.active::before { background: var(--blue); color: #fff; }
.progress-step.done { color: var(--green); }
.progress-step.done::before { content: "✓"; background: #e4f8ef; color: var(--green); }

.content { padding: clamp(28px, 6vw, 58px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 24px; height: 4px; border-radius: 10px; background: var(--yellow); }

h1 { margin: 0; max-width: 660px; font-size: clamp(32px, 6vw, 54px); line-height: 1.02; letter-spacing: -.05em; }
.lead { max-width: 640px; margin: 17px 0 0; color: var(--muted); font-size: clamp(16px, 2.2vw, 19px); line-height: 1.55; }

.install-grid { margin-top: 32px; display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 18px; }

.install-panel, .side-panel, .role-card, .role-detail {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
}

.install-panel { padding: 23px; }
.install-heading { display: flex; gap: 14px; align-items: center; }
.app-icon { width: 64px; height: 64px; flex: 0 0 auto; border-radius: 18px; box-shadow: 0 10px 28px rgba(23, 49, 214, .16); }
.install-heading strong { display: block; font-size: 19px; }
.install-heading span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }

.benefits { display: grid; gap: 10px; margin: 22px 0; padding: 0; list-style: none; }
.benefits li { display: flex; gap: 10px; color: #44506e; font-size: 14px; line-height: 1.4; }
.benefits li::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; background: #e7f8f0; color: var(--green); font-size: 12px; font-weight: 950; }

.side-panel { padding: 21px; background: #f6f8ff; }
.side-panel strong { display: block; margin-bottom: 12px; font-size: 14px; }
.role-mini { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.role-mini:first-of-type { border-top: 0; }
.role-mini span:first-child { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 12px; background: #e9edff; color: var(--blue); font-weight: 950; }
.role-mini b { display: block; font-size: 13px; }
.role-mini small { color: var(--muted); font-size: 11px; }

.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 22px; }
.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 13px 19px; border: 0; border-radius: 15px; text-decoration: none; cursor: pointer; font-weight: 900; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: var(--blue); color: #fff; box-shadow: 0 12px 28px rgba(23, 49, 214, .22); }
.button.secondary { border: 1px solid #cbd3ed; background: #fff; color: var(--blue); }
.button.ghost { padding-inline: 8px; background: transparent; color: #5f6b88; }
.button[disabled] { opacity: .65; cursor: wait; transform: none; }
.button .arrow { font-size: 19px; line-height: 1; }

.install-note { display: none; margin-top: 16px; padding: 14px 16px; border-radius: 15px; background: #fff8d9; color: #725b00; font-size: 13px; line-height: 1.5; }
.install-note.visible { display: block; }

.role-grid { margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.role-card { position: relative; padding: 23px; text-align: left; cursor: pointer; transition: .18s ease; }
.role-card:hover, .role-card.selected { border-color: var(--blue); box-shadow: 0 14px 34px rgba(23, 49, 214, .12); transform: translateY(-2px); }
.role-card.selected::after { content: "✓"; position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 950; }
.role-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 17px; border-radius: 17px; background: #eef1ff; color: var(--blue); font-size: 22px; font-weight: 950; }
.role-card[data-role="driver"] .role-icon { background: #fff7cd; color: #806400; }
.role-card strong { display: block; font-size: 21px; }
.role-card span { display: block; margin-top: 7px; color: var(--muted); font-size: 13px; line-height: 1.45; }

.role-detail { display: none; margin-top: 17px; padding: 22px; background: #f7f9ff; }
.role-detail.visible { display: block; }
.role-detail h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.role-detail p { margin: 7px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.role-detail .actions { margin-top: 17px; }
.role-detail .button { flex: 1 1 210px; }

.invite-note { display: flex; gap: 10px; margin-top: 15px; padding: 13px 15px; border-radius: 14px; background: #fff8d9; color: #725b00; font-size: 12.5px; line-height: 1.45; }
.invite-note strong { color: #5c4900; }

.foot { padding-top: 4px; color: #7a849f; font-size: 11px; }
.foot a { color: var(--blue); text-decoration: none; font-weight: 800; }

@media (max-width: 700px) {
  .shell { padding: 14px; }
  .secure { display: none; }
  .main { margin: 18px auto; }
  .card { border-radius: 26px; }
  .progress { padding: 14px 10px; }
  .progress-step { gap: 5px; font-size: 10px; }
  .progress-step::before { width: 22px; height: 22px; }
  .content { padding: 28px 21px 24px; }
  .install-grid, .role-grid { grid-template-columns: 1fr; }
  .side-panel { display: none; }
  .button { width: 100%; }
  .button.ghost { width: auto; }
  .foot { display: block; text-align: center; }
  .foot span { display: block; margin-top: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
