/* passline.app — one stylesheet for every page.
   BRAND TOKENS live in :root below. The brand is still being finalised
   (owner, 2026-08-29): change colours/fonts HERE only; the pages never
   hardcode a colour. Asset filenames in /assets are stable names — drop a
   new file over the old one to re-skin. */

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* palette — mirrors ExamUI Theme / brand sheet */
  --bg: #F6F5F1;
  --card: #FFFFFF;
  --ink: #1F1F30;
  --dim: #66667A;
  --accent: #3549DB;
  --accent-ink: #FFFFFF;
  --accent-deep: #1B2472;
  --rule: rgba(31, 31, 48, .10);
  --rule-strong: rgba(31, 31, 48, .45);
  --track: rgba(31, 31, 48, .07);
  --good: #14794D;
  --good-tint: rgba(20, 121, 77, .12);
  --warn: #9F4A09;
  --warn-tint: rgba(159, 74, 9, .10);
  --shadow: 0 1px 2px rgba(31, 31, 48, .04), 0 8px 24px rgba(31, 31, 48, .06);

  /* type */
  --font-display: "Manrope", -apple-system, "SF Pro", "Helvetica Neue", Arial, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* rhythm */
  --radius: 18px;
  --radius-sm: 12px;
  --measure: 62ch;
  --page: 1080px;
  --gutter: clamp(20px, 5vw, 40px);

  color-scheme: light;
}

/* dark: same relationships, inverted ground */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15151F;
    --card: #1F1F30;
    --ink: #F6F5F1;
    --dim: #A4A4B8;
    --accent: #7C8BF0;
    --accent-ink: #0F1330;
    --accent-deep: #4F60EA;
    --rule: rgba(246, 245, 241, .12);
    --rule-strong: rgba(246, 245, 241, .45);
    --track: rgba(246, 245, 241, .10);
    --good: #4FC58C;
    --good-tint: rgba(79, 197, 140, .14);
    --warn: #E0894A;
    --warn-tint: rgba(224, 137, 74, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #15151F;
  --card: #1F1F30;
  --ink: #F6F5F1;
  --dim: #A4A4B8;
  --accent: #7C8BF0;
  --accent-ink: #0F1330;
  --accent-deep: #4F60EA;
  --rule: rgba(246, 245, 241, .12);
  --rule-strong: rgba(246, 245, 241, .45);
  --track: rgba(246, 245, 241, .10);
  --good: #4FC58C;
  --good-tint: rgba(79, 197, 140, .14);
  --warn: #E0894A;
  --warn-tint: rgba(224, 137, 74, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.02em; line-height: 1.1; margin: 0; font-weight: 800; }
h1 { font-size: clamp(34px, 5.2vw, 56px); letter-spacing: -.03em; }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
p + p { margin-top: 1em; }
.dim { color: var(--dim); }
.eyebrow {
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--dim); margin: 0 0 12px;
}
.wrap { max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; z-index: 10; }

/* ---------- header / footer ---------- */
.site-header { padding: 22px 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none !important; }
.brand img.mark { width: 36px; height: 36px; border-radius: 22.37%; }
.brand .wordmark { height: 22px; width: auto; }
.wordmark-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .wordmark-light { display: none; } :root:not([data-theme="light"]) .wordmark-dark { display: block; } }
:root[data-theme="dark"] .wordmark-light { display: none; }
:root[data-theme="dark"] .wordmark-dark { display: block; }
.site-nav { display: flex; gap: 22px; font-size: 15px; }
.site-nav a { color: var(--dim); }
.site-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; }

.site-footer { border-top: 1px solid var(--rule); margin-top: 96px; padding: 40px 0 56px; font-size: 14px; color: var(--dim); }
.site-footer .wrap { display: grid; gap: 20px; }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.site-footer a { color: var(--dim); }
.site-footer .publisher { display: inline-flex; align-items: center; gap: 10px; }
.site-footer .publisher img { height: 16px; width: auto; }
.site-footer .legal { max-width: 78ch; line-height: 1.5; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px;
  background: var(--accent); color: var(--accent-ink) !important; text-decoration: none !important;
  transition: transform .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--accent) !important; border: 1.5px solid var(--rule-strong); }
.btn svg { width: 20px; height: 20px; }

/* ---------- landing ---------- */
.hero { padding: clamp(32px, 7vw, 88px) 0 clamp(24px, 5vw, 56px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 420px); gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--dim); max-width: 34ch; margin-top: 20px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-top: 32px; }
.hero .fine { font-size: 14px; color: var(--dim); margin-top: 14px; }
.hero .fine .stamp { display: inline-flex; align-items: center; gap: 6px; }
.hero .fine .stamp svg { width: 14px; height: 14px; }
@media (max-width: 820px) { .hero .wrap { grid-template-columns: 1fr; } .hero .visual { max-width: 400px; } }

/* drawn app surfaces (no screenshots: the store shots predate the copy pass) */
.surface { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; }
.surface + .surface { margin-top: 14px; }
.surface .label { font-size: 15px; color: var(--dim); }
.readiness { display: flex; align-items: baseline; gap: 14px; margin-top: 4px; }
.readiness .num { font-family: var(--font-display); font-weight: 800; font-size: 72px; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.readiness .of { font-size: 17px; color: var(--dim); }
.readiness .delta { margin-left: auto; background: var(--good-tint); color: var(--good); font-weight: 600; font-size: 14px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.trend { margin-top: 14px; width: 100%; height: auto; }
.trend .line { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.trend .proj { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 6; opacity: .55; stroke-linecap: round; }
.trend .pass { fill: none; stroke: var(--rule-strong); stroke-width: 1.2; stroke-dasharray: 5 5; }
.trend .dot { fill: var(--accent); }
.trend-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); margin-top: 6px; }
.sections { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 12px; }
.sections li { display: grid; grid-template-columns: 1fr 96px 44px; align-items: center; gap: 12px; font-size: 15px; }
.sections .name { display: flex; align-items: center; gap: 8px; }
.sections .name small { color: var(--dim); font-size: 12px; }
.sections .focus { font-family: var(--font-display); font-size: 10px; font-weight: 800; letter-spacing: .06em; color: var(--warn); background: var(--warn-tint); padding: 2px 6px; border-radius: 6px; }
.sections .bar { height: 6px; background: var(--track); border-radius: 999px; overflow: hidden; }
.sections .bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.sections .bar.weak i { background: var(--warn); }
.sections .pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--dim); }
.sections .pct.weak { color: var(--warn); font-weight: 600; }

.question { font-size: 16px; line-height: 1.45; margin-top: 8px; }
.options { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.options li { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--rule-strong); font-size: 15px; }
.options li .k { width: 26px; height: 26px; border-radius: 50%; background: var(--track); display: grid; place-items: center; font-size: 12px; color: var(--dim); flex: none; }
.options li.correct { border-color: var(--good); background: var(--good-tint); }
.options li.correct .k { background: var(--good); color: #fff; }
.options li.missed { border-color: var(--warn); background: var(--warn-tint); }
.options li.missed .k { background: var(--warn); color: #fff; }
.rule { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 15px; }
.cite { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.cite svg { width: 14px; height: 14px; }

/* sections */
.section { padding: clamp(40px, 7vw, 80px) 0 0; }
.section h2 { max-width: 24ch; }
.section .intro { color: var(--dim); max-width: var(--measure); margin-top: 12px; font-size: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 32px; }
.tile { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.tile h3 { margin-bottom: 8px; }
.tile p { color: var(--dim); font-size: 15.5px; }
.tile .glyph { width: 36px; height: 36px; border-radius: 10px; background: var(--track); display: grid; place-items: center; margin-bottom: 16px; color: var(--accent); }
.tile .glyph svg { width: 20px; height: 20px; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 0; max-width: 720px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.steps li::before { counter-increment: step; content: counter(step); font-family: var(--font-display); font-weight: 800; font-size: 22px; color: var(--accent); line-height: 1.2; }
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--dim); font-size: 15.5px; }

/* pricing */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin-top: 32px; max-width: 760px; }
.tier { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px; border: 1.5px solid transparent; }
.tier.lead { border-color: var(--accent); }
.tier .name { font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.tier .price { font-family: var(--font-display); font-weight: 800; font-size: 40px; letter-spacing: -.03em; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tier .price small { font-size: 15px; font-weight: 600; color: var(--dim); letter-spacing: 0; margin-left: 6px; }
.tier .detail { color: var(--dim); font-size: 15px; margin-top: 8px; }
.tier ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 15px; }
.tier li { display: flex; gap: 10px; align-items: flex-start; }
.tier li svg { width: 18px; height: 18px; flex: none; color: var(--good); margin-top: 2px; }
.pricing-note { color: var(--dim); font-size: 15px; margin-top: 18px; max-width: 62ch; }

.faq { margin-top: 28px; max-width: 760px; }
.faq details { border-top: 1px solid var(--rule); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-weight: 700; color: var(--dim); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { color: var(--dim); padding: 0 0 18px; max-width: var(--measure); font-size: 16px; }

.closer { text-align: left; padding-top: clamp(48px, 8vw, 96px); }
.closer .cta { margin-top: 24px; display: flex; gap: 14px 20px; flex-wrap: wrap; align-items: center; }

/* ---------- legal / document pages ---------- */
.doc { max-width: 720px; padding-top: clamp(24px, 4vw, 48px); }
.doc h1 { font-size: clamp(30px, 4vw, 42px); }
.doc .meta { color: var(--dim); margin-top: 12px; font-size: 15px; }
.doc .summary { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 24px; margin-top: 32px; }
.doc .summary h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); font-weight: 700; margin-bottom: 12px; }
.doc .summary ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.doc h2 { font-size: 22px; margin-top: 44px; }
.doc h3 { font-size: 17px; margin-top: 26px; }
.doc h2 + p, .doc h3 + p, .doc h2 + ul, .doc h3 + ul { margin-top: 12px; }
.doc p { max-width: var(--measure); }
.doc ul, .doc ol { padding-left: 22px; max-width: var(--measure); }
.doc li { margin: 6px 0; }
.doc li + li { margin-top: 8px; }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin-top: 12px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); }
.doc th { color: var(--dim); font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.doc .toc { margin-top: 28px; font-size: 15px; columns: 2; column-gap: 32px; }
.doc .toc ol { margin: 0; padding-left: 20px; }
.doc .toc li { break-inside: avoid; margin: 4px 0; }
.doc .toc a { color: var(--ink); }
@media (max-width: 560px) { .doc .toc { columns: 1; } }
.doc code { font-family: var(--font-mono); font-size: .92em; background: var(--track); padding: 1px 6px; border-radius: 6px; }
.doc .contact { margin-top: 44px; padding: 20px 22px; border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.doc-nav { display: flex; gap: 8px 20px; flex-wrap: wrap; font-size: 14px; margin-top: 12px; }
.table-wrap { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* ---------- small screens ---------- */
@media (max-width: 480px) {
  .site-nav { gap: 14px; font-size: 14px; }
  .site-nav a.long { display: none; }
  .readiness .num { font-size: 60px; }
  .readiness .delta { font-size: 13px; padding: 3px 8px; }
  .tier .price { font-size: 34px; }
  h1 { font-size: 34px; }
}
