/* 911cash: "high-vis dispatch" system.
   Fog background, night-shift navy ink, one signal orange reserved for Apply and the calculator.
   Typeface: Overpass (derived from North American highway-sign lettering).
   Shape rule: everything that is a panel, button or input uses --radius (6px), like a road sign.
   Pills are not used anywhere. */

@font-face {
  font-family: "Overpass";
  src: url("/assets/fonts/overpass-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --fog: #EEF2F6;
  --paper: #FBFCFD;
  --ink: #13213A;
  --steel: #4C5C75;
  --line: #D3DBE5;
  --signal: #FF6A13;
  --signal-press: #E85A08;
  --on-signal: #13213A;
  --sign: #13213A;        /* road-sign panels stay navy in both themes */
  --on-sign: #F3F6FA;
  --on-sign-muted: #B9C6D8;
  --focus: #1F6FEB;
  --error: #B42318;
  --ok: #157F3B;
  --radius: 6px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --shadow: 0 1px 0 rgb(19 33 58 / .04), 0 10px 30px -12px rgb(19 33 58 / .22);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fog: #0E1A2E;
    --paper: #15233B;
    --ink: #E8EDF4;
    --steel: #A3B2C7;
    --line: #2A3B58;
    --sign: #1B2C49;
    --focus: #7FB0FF;
    --error: #FF8A80;
    --ok: #6FD08F;
    --shadow: 0 1px 0 rgb(0 0 0 / .2), 0 14px 34px -14px rgb(0 0 0 / .6);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fog);
  color: var(--ink);
  font-family: "Overpass", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "tnum" 0;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.015em; margin: 0 0 .5em; font-weight: 800; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 1.2rem; color: var(--steel); max-width: 52ch; }
.muted { color: var(--steel); }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip { position: absolute; left: -9999px; top: 0; z-index: 30; background: var(--paper); padding: .75rem 1rem; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: .7em 1.35em .6em;
  border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: 1.02rem; line-height: 1.1;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s ease, transform .1s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--signal { background: var(--signal); color: var(--on-signal); }
.btn--signal:hover { background: var(--signal-press); }
.btn--line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--line:hover { background: color-mix(in srgb, var(--ink) 8%, transparent); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.75rem; }

/* ---------- masthead ---------- */
.masthead {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--fog) 92%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead__bar { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }

.brand { display: inline-flex; align-items: baseline; text-decoration: none; font-weight: 900; font-size: 1.6rem; letter-spacing: -0.03em; line-height: 1; }
.brand__num { background: var(--sign); color: var(--signal); padding: .2em .28em .08em; border-radius: var(--radius); margin-right: .12em; }
.brand__word { color: var(--ink); }

.site-nav { margin-left: auto; }
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav a { display: block; padding: .55rem .8rem .45rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; color: var(--steel); }
.site-nav a:hover { color: var(--ink); background: color-mix(in srgb, var(--ink) 6%, transparent); }
.site-nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--signal); border-radius: 0; }
.masthead__apply { min-height: 42px; padding: .55em 1.1em .45em; }
.menu-toggle { display: none; }

@media (max-width: 860px) {
  .masthead__bar { flex-wrap: wrap; gap: .75rem; padding-block: .6rem; }
  .masthead__apply { margin-left: auto; }
  .js .menu-toggle {
    display: inline-flex; align-items: center; min-height: 42px; padding: 0 .9rem;
    font: inherit; font-weight: 700; color: var(--ink); background: transparent;
    border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; order: 3;
  }
  .site-nav { order: 4; flex-basis: 100%; margin: 0; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; padding-bottom: .5rem; }
  .site-nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--signal); padding-left: .75rem; }
}

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section--paper { background: var(--paper); border-block: 1px solid var(--line); }
.section__head { margin-bottom: 2.25rem; max-width: 60ch; }
.section__head p { color: var(--steel); font-size: 1.1rem; }

/* ---------- hero ---------- */
.hero { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 15ch; }
.hero__note { margin-top: 1.25rem; font-size: .95rem; color: var(--steel); max-width: 46ch; }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

/* ---------- calculator (the hero's working tool) ---------- */
.calc {
  background: var(--sign); color: var(--on-sign);
  border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
  outline: 2px solid color-mix(in srgb, var(--on-sign) 70%, transparent);
  outline-offset: -10px; /* the inner border every road sign has */
}
.calc__title { font-size: 1.15rem; margin: .35rem 0 1.25rem; color: var(--on-sign); }
.calc fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; min-width: 0; }
.calc__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: .4rem; }
.calc label, .calc legend { font-weight: 700; font-size: .98rem; }
.calc output { font-weight: 800; font-size: 1.15rem; font-variant-numeric: tabular-nums; }

.calc input[type="range"] {
  --fill: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; margin: 0; cursor: pointer;
}
.calc input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(to right, var(--signal) var(--fill), color-mix(in srgb, var(--on-sign) 22%, transparent) var(--fill));
}
.calc input[type="range"]::-moz-range-track { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--on-sign) 22%, transparent); }
.calc input[type="range"]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--signal); }
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
  background: var(--on-sign); border: 4px solid var(--signal);
}
.calc input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--on-sign); border: 4px solid var(--signal); }
.calc input[type="range"]:focus-visible { outline: 3px solid #7FB0FF; outline-offset: 4px; }
.calc__scale { display: flex; justify-content: space-between; font-size: .85rem; color: var(--on-sign-muted); }

.freq { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-top: .5rem; }
.freq input { position: absolute; opacity: 0; pointer-events: none; }
.freq label {
  display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: .4rem;
  border: 2px solid color-mix(in srgb, var(--on-sign) 30%, transparent); border-radius: var(--radius);
  font-weight: 700; font-size: .92rem; cursor: pointer; line-height: 1.15;
}
.freq input:checked + label { background: var(--on-sign); color: var(--sign); border-color: var(--on-sign); }
.freq input:focus-visible + label { outline: 3px solid #7FB0FF; outline-offset: 2px; }

.calc__result { border-top: 2px dashed color-mix(in srgb, var(--on-sign) 30%, transparent); padding-top: 1.1rem; margin-top: .25rem; }
.calc__payment { display: flex; align-items: baseline; flex-wrap: wrap; gap: .5rem; margin: 0; }
.calc__payment strong { font-size: clamp(2.2rem, 1.8rem + 1.6vw, 3rem); line-height: 1; color: var(--signal); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.calc__payment span { font-weight: 700; }
.calc__detail { color: var(--on-sign-muted); font-size: .93rem; margin: .6rem 0 1.1rem; }
.calc .btn { width: 100%; }
.calc__fine { color: var(--on-sign-muted); font-size: .8rem; margin: .9rem 0 0; }
.calc__fine a { color: var(--on-sign); }

/* ---------- route strip (signature): the real sequence, as highway exit signs ---------- */
.route { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; position: relative; counter-reset: exit; }
.route::before {
  content: ""; position: absolute; left: 0; right: 0; top: 2.35rem; height: 4px;
  background: repeating-linear-gradient(to right, var(--signal) 0 22px, transparent 22px 34px);
  transform-origin: left center;
}
.route li {
  position: relative; counter-increment: exit;
  background: var(--sign); color: var(--on-sign); border-radius: var(--radius);
  padding: 1.25rem 1.25rem 1.35rem;
  outline: 2px solid color-mix(in srgb, var(--on-sign) 70%, transparent); outline-offset: -8px;
}
.route__exit {
  display: inline-block; margin-bottom: .9rem; padding: .25rem .55rem .1rem;
  background: var(--on-sign); color: var(--sign); border-radius: 4px;
  font-weight: 800; font-size: .85rem;
}
.route__exit::before { content: "Step " counter(exit); }
.route h3 { color: var(--on-sign); font-size: 1.3rem; margin-bottom: .35rem; }
.route__time { font-weight: 800; color: var(--signal); margin: 0 0 .5rem; font-size: 1.02rem; }
.route p:last-child { color: var(--on-sign-muted); font-size: .96rem; margin: 0; }

@media (prefers-reduced-motion: no-preference) {
  .js .route::before { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.2, .8, .2, 1); }
  .js .route.is-shown::before { transform: scaleX(1); }
}
@media (max-width: 900px) {
  .route { grid-template-columns: 1fr; gap: .9rem; padding-left: 1.75rem; }
  .route::before { left: .45rem; right: auto; top: 0; bottom: 0; width: 4px; height: auto;
    background: repeating-linear-gradient(to bottom, var(--signal) 0 22px, transparent 22px 34px); transform-origin: center top; }
  .js .route::before { transform: scaleY(0); }
  .js .route.is-shown::before { transform: scaleY(1); }
}

/* ---------- eligibility + compare ---------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

.checks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.checks li { position: relative; padding: .7rem 0 .55rem 2.1rem; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: .2rem; top: .95rem; width: 1rem; height: .55rem;
  border-left: 3px solid var(--signal); border-bottom: 3px solid var(--signal); transform: rotate(-45deg);
}

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 2px solid var(--ink); border-radius: var(--radius); overflow: hidden; }
.compare > div { padding: 1.25rem 1.25rem 1.1rem; }
.compare > div + div { border-left: 2px solid var(--ink); background: var(--paper); }
.compare h3 { font-size: 1.05rem; margin-bottom: .75rem; }
.compare dl { margin: 0; }
.compare dt { font-size: .85rem; color: var(--steel); font-weight: 600; }
.compare dd { margin: 0 0 .8rem; font-weight: 700; }
@media (max-width: 520px) { .compare { grid-template-columns: 1fr; } .compare > div + div { border-left: 0; border-top: 2px solid var(--ink); } }

/* ---------- costs ---------- */
.terms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.terms div { border-top: 4px solid var(--ink); padding-top: .9rem; }
.terms dt { color: var(--steel); font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.terms dd { margin: 0; font-size: clamp(1.35rem, 1.1rem + .9vw, 1.85rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.terms dd small { display: block; font-size: .92rem; font-weight: 500; color: var(--steel); letter-spacing: 0; margin-top: .3rem; }
@media (max-width: 900px) { .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; } }

.example {
  background: var(--paper); border: 1px solid var(--line); border-left: 6px solid var(--signal);
  border-radius: var(--radius); padding: 1.3rem 1.5rem; max-width: 760px;
}
.example h3 { font-size: 1.05rem; }
.example p:last-child { margin-bottom: 0; }

table.schedule { border-collapse: collapse; width: 100%; max-width: 760px; margin: 1rem 0 1.5rem; font-variant-numeric: tabular-nums; }
.schedule th, .schedule td { text-align: left; padding: .7rem .75rem .55rem; border-bottom: 1px solid var(--line); }
.schedule thead th { border-bottom: 2px solid var(--ink); font-size: .92rem; }
.schedule td:not(:first-child), .schedule th:not(:first-child) { text-align: right; }

/* ---------- uses (wrapping tags, not a list) ---------- */
.uses { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .55rem; }
.uses li { border: 2px solid var(--line); border-radius: var(--radius); padding: .55rem .9rem .4rem; font-weight: 600; background: var(--paper); }

/* ---------- prose pages ---------- */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.page-head p { color: var(--steel); font-size: 1.15rem; max-width: 58ch; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: .45rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 2.5rem 1rem 0; position: relative;
  font-weight: 700; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 1.35rem; width: .6rem; height: .6rem;
  border-right: 3px solid var(--ink); border-bottom: 3px solid var(--ink); transform: rotate(45deg);
  transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); top: 1.6rem; }
.faq details > div { padding: 0 0 1.1rem; color: var(--steel); }
.faq details > div p:last-child { margin-bottom: 0; }
.faq__group + .faq__group { margin-top: 2.75rem; }
.faq__more { margin-top: 1.5rem; font-weight: 700; }

/* ---------- final call to action ---------- */
.closer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem;
  background: var(--sign); color: var(--on-sign); border-radius: var(--radius); padding: clamp(1.5rem, 4vw, 2.5rem);
  outline: 2px solid color-mix(in srgb, var(--on-sign) 70%, transparent); outline-offset: -10px; }
.closer h2 { color: var(--on-sign); margin: 0 0 .3rem; }
.closer p { color: var(--on-sign-muted); margin: 0; }

/* ---------- forms ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
@media (max-width: 900px) { .form-shell { grid-template-columns: 1fr; } }
.form-frame { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.form-frame iframe { display: block; width: 100%; min-height: 900px; border: 0; background: #fff; }
.form-note { font-size: .92rem; color: var(--steel); margin-top: 1rem; }
.aside { border-top: 4px solid var(--ink); padding-top: 1rem; }
.aside h2 { font-size: 1.25rem; }
.aside p { font-size: .97rem; }

.field { display: grid; gap: .4rem; margin-bottom: 1.25rem; }
.field label { font-weight: 700; }
.field .hint { font-size: .9rem; color: var(--steel); margin: 0; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--paper);
  border: 2px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: var(--radius);
  padding: .7rem .8rem .55rem; min-height: 48px; width: 100%;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--focus); outline: 3px solid color-mix(in srgb, var(--focus) 35%, transparent); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-weight: 700; font-size: .93rem; margin: 0; }
.form-status { border-radius: var(--radius); padding: .9rem 1rem .75rem; margin-bottom: 1.25rem; font-weight: 700; border: 2px solid currentColor; }
.form-status--error { color: var(--error); }
.form-status--ok { color: var(--ok); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer ---------- */
.footer { background: var(--sign); color: var(--on-sign); padding: 3.5rem 0 2rem; margin-top: 0; }
.footer a { color: var(--on-sign); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; padding-bottom: 2.25rem; border-bottom: 1px solid color-mix(in srgb, var(--on-sign) 18%, transparent); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.brand--footer .brand__num { background: var(--signal); color: var(--sign); }
.brand--footer .brand__word { color: var(--on-sign); }
.footer__brand p { color: var(--on-sign-muted); margin-top: 1rem; font-size: .97rem; }
.footer__heading { font-size: 1rem; margin-bottom: .8rem; color: var(--on-sign); }
.footer__list { list-style: none; padding: 0; margin: 0; }
.footer__list li { margin-bottom: .5rem; }
.footer p { color: var(--on-sign-muted); font-size: .95rem; }
.footer__disclosure { padding-top: 1.75rem; }
.footer__disclosure p { font-size: .88rem; max-width: 110ch; }
.footer__disclosure strong { color: var(--on-sign); }
.footer__legal { display: flex; flex-wrap: wrap; gap: .5rem 2rem; padding-top: 1rem; }
.footer__legal p { font-size: .85rem; margin: 0; }

/* ---------- confirmation / 404 ---------- */
.confirm { padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 4vw, 3rem); }
.confirm__mark { display: inline-block; background: var(--sign); color: var(--signal); font-weight: 900; border-radius: var(--radius); padding: .35rem .7rem .2rem; margin-bottom: 1.25rem; }

@media print {
  .masthead, .footer__grid, .btn, .calc { display: none !important; }
  body { background: #fff; color: #000; }
}
.prose--after { margin-top: 2.5rem; }

/* ---------- small phones ---------- */
.table-scroll { overflow-x: auto; max-width: 760px; }
@media (max-width: 560px) {
  .schedule { font-size: .92rem; }
  .schedule th, .schedule td { padding: .6rem .35rem .5rem; }
  .schedule thead th { font-size: .82rem; line-height: 1.25; vertical-align: bottom; }
}
@media (max-width: 400px) {
  .masthead__bar { gap: .5rem; }
  .brand { font-size: 1.35rem; }
  .masthead__apply { min-height: 40px; padding: .5em .75em .4em; font-size: .95rem; }
  .js .menu-toggle { min-height: 40px; padding: 0 .65rem; }
}
@media (max-width: 900px) { .hero .calc { max-width: 560px; } }
