/* Officials Ledger — layout: striped masthead band, two-column hero (copy + live ledger phone), plain ruled sections below. */
:root {
  --paper: #ffffff;
  --panel: #f3f4f5;
  --ink: #111315;
  --muted: #565d65;
  --line: #dfe2e5;
  --paid: #1d7a4c;
  --paid-tint: #e3f2ea;
  --stripe-a: #111315;
  --stripe-b: #ffffff;
  --font-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.4rem, 6vw, 4.1rem);
  --wrap: 68rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1113; --panel: #181b1e; --ink: #f1f2f3; --muted: #9ba2aa; --line: #2a2f34;
    --paid: #4cc285; --paid-tint: #15291f; --stripe-a: #f1f2f3; --stripe-b: #0f1113; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f1113; --panel: #181b1e; --ink: #f1f2f3; --muted: #9ba2aa; --line: #2a2f34;
  --paid: #4cc285; --paid-tint: #15291f; --stripe-a: #f1f2f3; --stripe-b: #0f1113; color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--paid); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.05; text-wrap: balance; margin: 0; }
p { margin: 0; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Referee stripes: thin slivers at the edges, wider stripes inside — same as the app icon */
.stripes {
  height: 14px;
  background:
    linear-gradient(90deg, var(--stripe-a) 0 4px, transparent 4px calc(100% - 4px), var(--stripe-a) calc(100% - 4px)),
    repeating-linear-gradient(90deg, var(--stripe-b) 0 18px, var(--stripe-a) 18px 36px);
}

.mark {
  width: 30px; height: 30px; border-radius: 7px; flex: none;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, var(--stripe-a) 0 2px, transparent 2px calc(100% - 2px), var(--stripe-a) calc(100% - 2px)),
    repeating-linear-gradient(90deg, var(--stripe-b) 0 4px, var(--stripe-a) 4px 8px);
}

/* Header */
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; letter-spacing: 0.01em; text-transform: uppercase; }
.nav { display: flex; gap: 22px; font-size: var(--step--1); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: center; padding-block: 56px 72px; }
.eyebrow { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.hero h1 { font-size: var(--step-3); font-weight: 700; text-transform: uppercase; letter-spacing: -0.005em; }
.hero .lede { margin-top: 20px; font-size: var(--step-1); color: var(--muted); max-width: 32rem; line-height: 1.5; }
.cta-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink); color: var(--paper);
  padding: 13px 20px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 0; font: inherit; font-weight: 600;
}
.fine { font-size: var(--step--1); color: var(--muted); }

/* Phone ledger */
.phone {
  justify-self: center; width: 100%; max-width: 330px;
  border: 1px solid var(--line); border-radius: 34px; padding: 12px;
  background: var(--panel);
}
.screen { background: var(--paper); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); }
.screen-head { padding: 14px 16px 10px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.screen-head .t { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; }
.screen-head .s { font-size: 0.75rem; color: var(--muted); }
.sample-tag { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.ledger li { border-bottom: 1px solid var(--line); }
.ledger button {
  width: 100%; display: grid; grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 11px 16px; background: transparent; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer;
  transition: background-color .25s ease;
}
.ledger .d { font-size: 0.78rem; color: var(--muted); line-height: 1.2; font-variant-numeric: tabular-nums; }
.ledger .d b { display: block; color: var(--ink); font-size: 0.95rem; }
.ledger .site { font-weight: 600; font-size: 0.92rem; line-height: 1.25; min-width: 0; }
.ledger .site small { display: block; font-weight: 400; color: var(--muted); font-size: 0.75rem; }
.ledger .fee { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.95rem; }
.ledger [aria-pressed="true"] { background: var(--paid-tint); }
.ledger [aria-pressed="true"] .fee { color: var(--paid); }
.screen-foot { display: flex; justify-content: space-between; padding: 12px 16px 16px; font-size: 0.8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.screen-foot b { color: var(--ink); }
.screen-foot .owed b { color: var(--ink); }
.tap-hint { text-align: center; font-size: 0.78rem; color: var(--muted); margin-top: 10px; }

/* Sections */
.section .wrap { padding-block: 64px; border-top: 1px solid var(--line); }
.section h2 { font-size: var(--step-2); font-weight: 700; text-transform: uppercase; }
.section .intro { margin-top: 10px; color: var(--muted); max-width: 40rem; }
.features { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.feature h3 { font-size: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.01em; margin-bottom: 6px; }
.feature p { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 0.78rem; border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; color: var(--muted); }
.coming { margin-top: 36px; color: var(--muted); font-size: var(--step--1); }
.coming b { color: var(--ink); }

/* Mileage */
.mileage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 8px; }
.route { border: 1px solid var(--line); border-radius: 14px; padding: 22px; background: var(--panel); }
.route-line { display: flex; align-items: center; gap: 12px; }
.route-line .pt { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--ink); background: var(--paper); }
.route-line .track { flex: 1; height: 0; border-top: 3px dashed var(--muted); }
.route-labels { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: var(--step--1); }
.route-labels span { color: var(--muted); display: block; font-size: 0.78rem; }
.route-total { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.route-total b { font-family: var(--font-display); font-size: 1.6rem; line-height: 1; }

/* On-device note in hero */
.trust { margin-top: 22px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--step--1); }
.lock { flex: none; width: 14px; height: 11px; margin-top: 5px; border-radius: 2px; background: var(--paid); position: relative; }
.lock::before { content: ""; position: absolute; left: 2px; right: 2px; bottom: 9px; height: 7px; border: 2px solid var(--paid); border-bottom: 0; border-radius: 6px 6px 0 0; }

/* Schedule import */
.steps { list-style: none; margin: 24px 0 6px; padding: 0; display: grid; gap: 16px; }
.steps li { display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: 14px; align-items: start; }
.steps .n {
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1;
}
.steps li > div { min-width: 0; display: grid; gap: 2px; padding-top: 2px; }
.steps b { font-weight: 700; line-height: 1.3; }
.steps li > div > span { color: var(--muted); line-height: 1.45; }
.steps + .intro { margin-top: 16px; }
.import-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.found { list-style: none; margin: 0; padding: 0; }
.found li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; font-variant-numeric: tabular-nums; }
.found li b { margin-right: 6px; }
.tick { width: 16px; height: 16px; border-radius: 50%; background: var(--paid); position: relative; }
.tick::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid var(--paper); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.import-card .route-total { border-top: 0; padding-top: 8px; }
.sub { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; }
.section p.intro + p.intro { margin-top: 12px; }

/* Pricing */
.price-card { margin-top: 32px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 40px; align-items: start; border: 2px solid var(--ink); border-radius: 16px; padding: 30px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 4rem; line-height: 0.9; font-variant-numeric: tabular-nums; }
.price small { display: block; font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; color: var(--muted); margin-top: 10px; letter-spacing: 0.04em; text-transform: uppercase; }
.price-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.price-list li { display: grid; grid-template-columns: 1.1rem minmax(0, 1fr); gap: 10px; }
.price-list li::before { content: ""; width: 10px; height: 10px; margin-top: 0.55em; border-radius: 2px; background: var(--ink); }

/* Document pages (privacy, support) */
.doc .wrap { max-width: 46rem; padding-block: 48px 72px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3rem); font-weight: 700; text-transform: uppercase; }
.doc .updated { margin-top: 8px; color: var(--muted); font-size: var(--step--1); }
.doc h2 { font-size: 1.5rem; font-weight: 700; text-transform: uppercase; margin-top: 40px; margin-bottom: 10px; }
.doc h3 { font-size: 1.2rem; font-weight: 600; text-transform: uppercase; margin-top: 26px; margin-bottom: 6px; }
.doc p, .doc li { color: var(--ink); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 1.2rem; margin: 10px 0 0; display: grid; gap: 6px; }
.callout { margin-top: 28px; padding: 18px 20px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line); }
.callout p { color: var(--ink); }
.faq { margin-top: 28px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 16px; color: var(--muted); }
.faq details > div p + p { margin-top: 10px; }
.email { font-weight: 700; user-select: all; }

/* Footer */
.site-foot .wrap { padding-block: 28px 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: var(--step--1); color: var(--muted); }
.site-foot nav { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-block: 36px 56px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mileage { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .price-card { grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 24px; }
  .nav { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
