/* CDL Pass Plan — a fake-door landing page. Highway at night: asphalt, a green
   interstate sign, lane-line yellow and a safety-orange button. System fonts only. */
:root {
  --bg: #131518;
  --bg-2: #1a1d21;
  --card: #1f2328;
  --card-2: #262b31;
  --line: #343a42;
  --ink: #f4f2ed;
  --muted: #bcc0c6;
  --dim: #9298a1;
  --sign: #0f6b3e;
  --sign-2: #0b5732;
  --lane: #ffc23d;
  --go: #ff7a1a;
  --go-2: #ff8f3d;
  --go-ink: #1b0d02;
  --road: #1c1f23;
  --edge: rgba(244, 242, 237, .55);
  --ok: #3ccf86;
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  background: radial-gradient(120% 60% at 50% -10%, #20252b 0%, var(--bg) 60%) no-repeat, var(--bg);
  color: var(--ink); font: 400 17px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
a { color: var(--muted); }
[hidden] { display: none !important; }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--lane); outline-offset: 3px; border-radius: 8px; }
/* headings focused by script (screen changes, tabindex=-1) never show the ring */
[tabindex="-1"]:focus, [tabindex="-1"]:focus-visible { outline: none; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
main { flex: 1; display: flex; flex-direction: column; }

/* ── the header: back + step dots (S1–S3) ── */
.top {
  position: sticky; top: 0; z-index: 5;
  display: grid; grid-template-columns: 48px 1fr 48px; align-items: center;
  padding: calc(8px + env(safe-area-inset-top)) 12px 8px;
  background: linear-gradient(var(--bg) 70%, rgba(19, 21, 24, 0));
}
.back {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.back svg { width: 26px; height: 26px; }
.back:active { background: var(--card); }
.top__spacer { width: 48px; }
.dots { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; justify-content: center; gap: 0; }
.dots__dot {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 16px; font-weight: 800; color: var(--dim); background: var(--card); border: 2px solid var(--line);
  transition: background .2s, color .2s, border-color .2s;
}
.dots__dot.is-now { background: var(--lane); border-color: var(--lane); color: #1d1500; }
.dots__dot.is-done { background: var(--sign); border-color: var(--sign); color: #fff; }
.dots__line { width: 28px; height: 0; border-top: 3px dashed var(--line); }

/* ── screens ── */
.screen { display: flex; flex-direction: column; padding: 0 20px calc(28px + env(safe-area-inset-bottom)); }
.screen.is-on { animation: fd-in .28s ease-out both; }
@keyframes fd-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* S0 */
.screen--hero { min-height: 100vh; min-height: 100svh; padding-top: calc(22px + env(safe-area-inset-top)); padding-left: 0; padding-right: 0; padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
.hero { padding: 0 20px; }
.sign { margin: 0 0 18px; display: inline-block; padding: 3px; border-radius: 9px; background: var(--sign); box-shadow: 0 8px 22px -12px rgba(15, 107, 62, .9); }
.sign span {
  display: block; padding: 5px 12px 4px; border: 2px solid rgba(255, 255, 255, .92); border-radius: 6px;
  font-size: 16px; font-weight: 800; letter-spacing: .1em; line-height: 1.2; color: #fff;
}
h1 {
  margin: 0 0 14px; font-size: clamp(31px, 8.7vw, 42px); line-height: 1.06; font-weight: 850; letter-spacing: -.025em;
  text-wrap: balance;
}
.lead { margin: 0 0 18px; font-size: 17.5px; line-height: 1.45; color: var(--muted); }
.proof { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 9px; }
.proof li { position: relative; padding-left: 30px; font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--ink); }
.proof li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--sign) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}
.cta { display: grid; gap: 8px; }
.cta__fine { margin: 0; text-align: center; font-size: 16px; color: var(--dim); }
.road { display: block; width: 100%; flex: 1 1 56px; height: auto; min-height: 56px; max-height: 160px; margin-top: 18px; }
.screen--hero .legal-links { margin-top: 10px; }

/* buttons */
.btn {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; padding: 14px 20px;
  border: 0; border-radius: var(--radius); cursor: pointer; text-align: center;
  font-size: 18.5px; font-weight: 800; letter-spacing: -.005em; line-height: 1.2;
  transition: transform .12s ease, filter .12s ease, box-shadow .12s ease;
}
.btn--go { background: linear-gradient(180deg, var(--go-2), var(--go)); color: var(--go-ink); box-shadow: 0 4px 0 #b9530b, 0 14px 28px -14px rgba(255, 122, 26, .75); }
.btn--go:active { transform: translateY(3px); box-shadow: 0 1px 0 #b9530b, 0 8px 20px -14px rgba(255, 122, 26, .75); }
.btn:disabled { filter: saturate(.4) brightness(.85); cursor: progress; }

/* S1–S3 */
.screen--q { padding-top: 10px; }
.q { margin: 8px 0 20px; font-size: clamp(26px, 7.4vw, 32px); line-height: 1.12; font-weight: 820; letter-spacing: -.02em; text-wrap: balance; }
.opts { display: grid; gap: 11px; }
.opt {
  position: relative; display: flex; align-items: center; width: 100%; min-height: 60px; padding: 14px 54px 14px 18px;
  border: 2px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: pointer;
  text-align: left; font-size: 18px; font-weight: 650; line-height: 1.25;
  transition: border-color .15s, background .15s, transform .12s;
}
.opt::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  border: 2px solid var(--line); background: var(--bg-2) center / 16px 16px no-repeat;
}
.opt:active { transform: scale(.985); }
.opt[aria-pressed="true"] { border-color: var(--lane); background: #2a2718; }
.opt[aria-pressed="true"]::after {
  border-color: var(--lane); background-color: var(--lane);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-7' fill='none' stroke='%231d1500' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* plan + price */
.screen--plan { padding-top: calc(22px + env(safe-area-inset-top)); }
.kicker { margin: 0 0 6px; font-size: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--lane); }
.plan__title { text-wrap: balance; margin: 0 0 18px; font-size: clamp(28px, 8vw, 36px); line-height: 1.1; font-weight: 850; letter-spacing: -.025em; }
.plan__title em { font-style: normal; color: var(--lane); white-space: nowrap; }
.tl { list-style: none; margin: 0 0 16px; padding: 0; position: relative; }
.tl__row:not(:last-child)::after { content: ""; position: absolute; left: 9px; top: 27px; bottom: 1px; border-left: 4px dashed rgba(255, 194, 61, .55); }
.tl__row { position: relative; display: grid; gap: 2px; padding: 0 0 16px 38px; }
.tl__row::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--bg); border: 4px solid var(--lane);
}
.tl__row:last-child::before { background: var(--lane); }
.tl__when { font-size: 16px; font-weight: 800; color: var(--lane); letter-spacing: .01em; }
.tl__what { font-size: 17px; line-height: 1.35; color: var(--ink); }
.chip {
  align-self: flex-start; margin: 0 0 10px; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); font-size: 16px; font-weight: 700; color: var(--ink);
}
.plan__note { margin: 0 0 22px; font-size: 16.5px; color: var(--muted); }

.price {
  position: relative; overflow: hidden; padding: 20px 18px 18px; border-radius: 18px;
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1.5px solid var(--line);
  box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .9);
}
.price::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--sign); }
.price__name { margin: 0 0 2px; font-size: 16px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7fe0ae; }
.price__amount { margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; }
.price__num { font-size: 44px; font-weight: 850; letter-spacing: -.03em; line-height: 1.05; }
.price__per { font-size: 17px; font-weight: 700; color: var(--muted); }
.price__terms { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.price__terms li { position: relative; padding-left: 28px; font-size: 16.5px; font-weight: 600; }
.price__terms li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7-8' fill='none' stroke='%233ccf86' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat;
}

/* the email + payment screen (#pay; the class names are from the early-access days) */
.screen--early { padding-top: calc(34px + env(safe-area-inset-top)); }
.early__title { margin: 0 0 12px; font-size: clamp(30px, 8.4vw, 38px); line-height: 1.08; font-weight: 850; letter-spacing: -.025em; }
.early__body { margin: 0 0 12px; font-size: 18px; line-height: 1.5; color: var(--ink); }
.early__body strong { word-break: break-all; }
.early__nopay {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 6px 12px 6px 10px; border-radius: 999px;
  background: rgba(60, 207, 134, .12); color: #8ef0bd; font-size: 16px; font-weight: 700;
}
.early__nopay::before {
  content: ""; width: 18px; height: 18px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7-8' fill='none' stroke='%233ccf86' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.lead__label { display: block; margin: 0 0 8px; font-size: 16px; font-weight: 700; color: var(--muted); }
.lead__input {
  display: block; width: 100%; min-height: 58px; margin: 0 0 12px; padding: 0 16px; border-radius: var(--radius);
  border: 2px solid var(--line); background: #0e1013; font-size: 18px; color: var(--ink);
}
.lead__input::placeholder { color: #6c727b; }
.lead__input:focus { border-color: var(--lane); outline: none; }
.lead__msg { min-height: 0; margin: 10px 0 0; font-size: 16px; font-weight: 600; color: #ffb48a; }
.lead__msg:empty { display: none; }
.lead__fine { margin: 12px 0 0; font-size: 16px; color: var(--dim); }
.thanks__mark { width: 56px; height: 56px; color: var(--ok); margin: 0 0 14px; }

/* the purchase: email → PayPal → back here */
.pay__note {
  display: flex; align-items: flex-start; gap: 8px; margin: 0 0 18px; padding: 10px 14px; border-radius: 12px;
  background: rgba(255, 194, 61, .12); border: 1.5px solid rgba(255, 194, 61, .35); color: #ffe2a3; font-size: 16px; font-weight: 700; line-height: 1.35;
}
.pay__fine { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.pay__fine li { position: relative; padding-left: 26px; font-size: 15.5px; line-height: 1.4; color: var(--muted); }
.pay__fine li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4.5 10.5l3.5 3.5 7-8' fill='none' stroke='%233ccf86' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.pay__fine li.is-lock::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='4' y='9' width='12' height='8' rx='2' fill='none' stroke='%233ccf86' stroke-width='2'/%3E%3Cpath d='M7 9V7a3 3 0 0 1 6 0v2' fill='none' stroke='%233ccf86' stroke-width='2'/%3E%3C/svg%3E");
}
.pay__small { margin: 12px 0 0; font-size: 16px; color: var(--dim); }
.pay__contact a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; white-space: nowrap; }
.pay__err-mark { color: #ffb48a; }
.btn--ghost { margin-top: 12px; background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn--ghost:active { background: var(--card); }
.spin { width: 44px; height: 44px; margin: 0 0 18px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--lane); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.legal-links { margin: 26px 0 0; text-align: center; font-size: 16px; color: var(--dim); }
.legal-links a { color: var(--dim); text-underline-offset: 3px; padding: 8px 4px; }

/* short phones (360×640 in an in-app browser): keep S0's button above the fold */
@media (max-height: 700px) {
  .screen--hero { padding-top: calc(16px + env(safe-area-inset-top)); }
  .sign { margin-bottom: 14px; }
  h1 { font-size: clamp(29px, 8.2vw, 36px); margin-bottom: 10px; }
  .lead { font-size: 17px; line-height: 1.42; margin-bottom: 14px; }
  .proof { gap: 7px; margin-bottom: 18px; }
  .road { min-height: 48px; margin-top: 12px; }
}

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