/* =====================================================================
   PermitPal — marketing site
   Aesthetic: US FHWA highway signage. Guide-sign green fields, white
   legends, sign-yellow lane dashes, paper bg. Palette lifted from the
   app's design tokens.

   Type: Marketing preset (fonts README) — PP Neue Montreal Text Regular
   body (16.5px, 1.5), PP Neue Montreal Medium for headings, controls and
   labels, Bold (700) ONLY on the single display-size hero headline and
   the wordmark. Interstate is the wayfinding accent for sign legends
   (gs-exit / cta-exit shields, state abbreviations); DIN Pro is the
   metric face for stat numerals (both declared in fonts/brand-fonts.css).
   ===================================================================== */

/* Self-hosted paid-library faces (copied from /Users/gurbakshchahal/fonts). */
@font-face {
  font-family: "PP Neue Montreal Text";
  src: url("./fonts/PPNeueMontrealText-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal";
  src: url("./fonts/PPNeueMontreal-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "PP Neue Montreal Text";
  src: url("./fonts/PPNeueMontrealText-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #16213f;
  --navy-deep: #0f1830;
  --green: #1c7a3d;
  --sign-green: #15683a;
  --sign-green-deep: #0e4c2a;
  --yellow: #f6c94c;
  --yellow-deep: #d9a91f;
  --paper: #f3f7f8;
  --paper-2: #edf4ee;
  --panel: #fffdf8;
  --white: #ffffff;
  --sign-white: #fbfdff;

  --ink: #16213f;
  --ink-soft: #2a3654;
  --muted: #56616f;
  --line: #d8e0e6;
  --line-strong: #bcc9d3;

  --shadow: 0 18px 48px rgba(15, 24, 48, 0.12);
  --shadow-soft: 0 8px 24px rgba(15, 24, 48, 0.08);
  --shadow-sign: 0 26px 60px rgba(7, 28, 16, 0.32);
  --focus: 0 0 0 3px rgba(28, 122, 61, 0.45);

  --radius: 12px;
  --radius-lg: 18px;
  --wrap: 1120px;

  --font: "PP Neue Montreal Text", ui-sans-serif, system-ui, sans-serif;
  --display: "PP Neue Montreal", "PP Neue Montreal Text", ui-sans-serif, system-ui, sans-serif;
  /* Alias used by layered blocks (verified-capabilities, shared elevation). */
  --font-display: "PP Neue Montreal", "PP Neue Montreal Text", ui-sans-serif, system-ui, sans-serif;
  /* Wayfinding accent face for sign legends only (fonts README: Interstate
     for signage-style headings). Never body copy, never small labels. */
  --sign: "Interstate", ui-sans-serif, system-ui, sans-serif;
  /* Metric face for stat numerals (fonts README: DIN Pro for money,
     deltas, stat numerals; tabular figures). */
  --metric: "DIN Pro", ui-sans-serif, system-ui, sans-serif;
}

:root { color-scheme: light; }

/* Dark theme is opt-in only (toggle sets data-theme="dark"). Light is the
   default for every first visit regardless of the OS preference. */
:root[data-theme="dark"] {
  --navy:#0c142a; --navy-deep:#070d1d;
  --paper:#10141d; --paper-2:#161b26; --panel:#1b212e; --white:#1b212e; --sign-white:#e8edf2;
  --ink:#eef3f8; --ink-soft:#c4cedd; --muted:#9aa6b6;
  --line:#2c3647; --line-strong:#3a4456;
  --shadow:0 18px 48px rgba(0,0,0,.5); --shadow-soft:0 8px 24px rgba(0,0,0,.4); --shadow-sign:0 26px 60px rgba(0,0,0,.6);
  color-scheme: dark;
}

/* Theme toggle (added in audit) */
.theme-toggle {
  width:44px; height:44px; padding:0; display:inline-grid; place-items:center;
  flex:none; /* never shrink: the header row must not cannibalise the toggle */
  border:1.5px solid var(--sign-white); border-radius:999px;
  background:transparent; color:var(--sign-white); cursor:pointer;
  transition:border-color .15s ease, transform .15s ease, opacity .15s ease;
}
.theme-toggle:hover { transform:translateY(-1px); opacity:.85; }
.theme-toggle__mark { width:15px; height:15px; border-radius:50%; border:2px solid currentColor; background:linear-gradient(90deg, currentColor 0 50%, transparent 50%); }

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  font-weight: 400;
  color: var(--ink);
  line-height: 1.5;
  font-synthesis: none;
  background:
    radial-gradient(1200px 480px at 80% -10%, rgba(28, 122, 61, 0.08), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 60%, var(--paper) 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
}

/* Weight discipline (PP Neue Montreal): Regular body and nav; Medium (500) is
   the working emphasis weight for buttons, headings, labels and stats; Bold
   (700) stays on the single display-size hero headline and the wordmark only. */
h1,
h2,
h3,
h4,
strong,
b,
th {
  font-weight: 500;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

/* Small labels keep the Marketing preset floor (13-14px labels). */
label,
.kicker,
.meta {
  font-size: 0.82rem;
}

a {
  color: var(--green);
  text-decoration: none;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  background: var(--sign-green);
  color: var(--sign-white);
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 100;
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 16px;
}

/* ---------- Buttons ---------- */
.btn {
  --pad-y: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: var(--pad-y) 22px;
  border: 2px solid transparent;
  border-radius: 10px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.98rem;
  letter-spacing: 0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease,
    border-color 0.18s ease, color 0.18s ease;
}
.btn-lg {
  min-height: 54px;
  font-size: 1.05rem;
  padding-inline: 28px;
}
.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--sign-green);
  color: var(--sign-white);
  border-color: var(--sign-green-deep);
  box-shadow: inset 0 0 0 2px rgba(251, 253, 255, 0.7), 0 10px 24px rgba(7, 28, 16, 0.22);
}
.btn-primary:hover {
  background: var(--sign-green-deep);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--panel);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--sign-green);
  color: var(--sign-green);
  transform: translateY(-2px);
}

.btn-on-sign {
  background: var(--sign-white);
  color: var(--sign-green-deep);
  border-color: var(--sign-white);
  box-shadow: 0 14px 30px rgba(7, 28, 16, 0.35);
}
.btn-on-sign:hover {
  transform: translateY(-2px);
  background: #fff;
}

/* ---------- Wordmark / shield ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px; /* mobile-web tap floor for the header/footer wordmark link */
  /* The wordmark is one of the two permitted Bold usages; the Text cut
     ships the real 700 file (font-synthesis: none elsewhere). */
  font-family: var(--font);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.015em;
  color: inherit;
}
.wordmark-shield {
  width: 34px;
  height: 34px;
  flex: none;
}
.wordmark-shield svg {
  width: 100%;
  height: 100%;
}
.wordmark-shield rect:first-child {
  fill: var(--sign-green);
}
.shield-inset {
  fill: none;
  stroke: var(--sign-white);
  stroke-width: 2;
}
.shield-arrow {
  fill: none;
  stroke: var(--sign-white);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Sticky guide-sign nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background:
    linear-gradient(180deg, var(--sign-green) 0%, var(--sign-green-deep) 100%);
  box-shadow:
    inset 0 0 0 2px var(--sign-white),
    inset 0 0 0 4px var(--sign-green),
    0 8px 24px rgba(7, 28, 16, 0.28);
}
.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 72px;
}
.site-header .wordmark {
  color: var(--sign-white);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}
.site-header .wordmark-shield rect:first-child {
  fill: var(--sign-white);
}
.site-header .shield-inset {
  stroke: var(--sign-green);
}
.site-header .shield-arrow {
  stroke: var(--sign-green);
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
  flex-wrap: wrap;
}
.nav-links a {
  color: rgba(251, 253, 255, 0.92);
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0;
  padding: 10px 12px;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav-links a:hover {
  background: rgba(251, 253, 255, 0.14);
  color: var(--sign-white);
}
.nav-cta {
  flex: none;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 7vw, 92px) 0 clamp(40px, 5vw, 72px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.eyebrow {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0;
  color: var(--green);
  margin-bottom: 14px;
}
.hero-copy h1 {
  /* The single display-size hero headline: the only Bold on the page
     besides the wordmark. Uses the Text cut, which ships a real 700. */
  font-family: var(--font);
  font-size: clamp(2.25rem, 3.4vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
}
.hero-sub {
  margin-top: 20px;
  font-size: clamp(1.05rem, 1.3vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 38ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.hero-note {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* ---------- Phone mockup + signature visual ---------- */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
}
.phone {
  position: relative;
  width: min(320px, 82vw);
  background: linear-gradient(160deg, #1c2741, var(--navy-deep));
  border-radius: 42px;
  padding: 14px;
  box-shadow: var(--shadow-sign), inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  z-index: 2;
}
.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 24px;
  background: var(--navy-deep);
  border-radius: 0 0 16px 16px;
  z-index: 3;
}
.phone-screen {
  background: var(--paper);
  border-radius: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 14px;
}
.phone-shadow {
  position: absolute;
  bottom: -12px;
  width: 70%;
  height: 36px;
  background: radial-gradient(closest-side, rgba(15, 24, 48, 0.28), transparent);
  filter: blur(2px);
  z-index: 1;
}

/* Guide-sign header inside the phone */
.gs-header {
  background: linear-gradient(180deg, var(--sign-green) 0%, var(--sign-green-deep) 100%);
  box-shadow:
    inset 0 0 0 2px var(--sign-white),
    inset 0 0 0 4px var(--sign-green);
  padding: 30px 16px 16px;
  color: var(--sign-white);
}
.gs-header-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.gs-exit {
  font-family: var(--sign);
  font-weight: 400;
  font-size: 1.1rem;
  background: rgba(251, 253, 255, 0.16);
  border: 1.5px solid rgba(251, 253, 255, 0.6);
  border-radius: 8px;
  padding: 6px 10px;
  flex: none;
}
.gs-titles {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.gs-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.98rem;
  line-height: 1.15;
}
.gs-sub {
  font-size: 0.82rem;
  color: rgba(251, 253, 255, 0.82);
  margin-top: 2px;
}
.gs-mph {
  font-family: var(--sign);
  font-weight: 400;
  font-size: 0.82rem;
  border: 1.5px solid rgba(251, 253, 255, 0.6);
  border-radius: 6px;
  padding: 4px 7px;
  flex: none;
}

/* Highway progress bar: mile-marker ticks + yellow lane dashes */
.hwy {
  margin-top: 16px;
}
.hwy-track {
  position: relative;
  height: 16px;
  border-radius: 8px;
  background: repeating-linear-gradient(
    90deg,
    rgba(14, 76, 42, 0.55) 0 22px,
    rgba(14, 76, 42, 0.85) 22px 24px
  );
  box-shadow: inset 0 0 0 1px rgba(7, 28, 16, 0.5);
  overflow: hidden;
}
.hwy-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--p, 50%);
  background: linear-gradient(90deg, var(--sign-green-deep), var(--green));
}
.hwy-fill::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(
    90deg,
    var(--yellow) 0 12px,
    transparent 12px 26px
  );
}
.hwy-ticks {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0 calc(10% - 1px),
    rgba(251, 253, 255, 0.55) calc(10% - 1px) 10%
  );
  pointer-events: none;
}
.hwy-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-family: var(--sign);
  font-size: 0.82rem;
  color: rgba(251, 253, 255, 0.8);
}

/* Question card inside phone */
.q-card {
  margin: 0 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-soft);
}
.q-kicker {
  font-family: var(--font);
  font-size: 0.82rem;
  letter-spacing: 0;
  color: var(--muted);
}
.q-text {
  margin-top: 6px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--navy);
}
.q-choices {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.q-choice {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 0.88rem;
  color: var(--ink-soft);
  background: var(--white);
}
.q-choice.is-correct {
  border-color: var(--green);
  background: #e4f5ea;
  color: var(--sign-green-deep);
  font-weight: 500;
}
.q-mark {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  font-weight: 500;
}
.q-explain {
  margin-top: 12px;
  width: 100%;
  min-height: 44px; /* 44px control height: reads as a real button in the mockup */
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1.5px dashed var(--line-strong);
  border-radius: 10px;
  padding: 10px;
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.84rem;
  color: var(--green);
  /* Decorative only: this control lives inside the hero phone mockup
     (role="img"), so it must not collect taps. The real control ships
     in the app. */
  pointer-events: none;
}

/* Readiness chip */
.readiness {
  margin: 0 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--navy);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--sign-white);
}
.readiness-ring {
  --score: 68;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(closest-side, var(--navy) 70%, transparent 71%),
    conic-gradient(var(--yellow) calc(var(--score) * 1%), rgba(251, 253, 255, 0.2) 0);
}
.readiness-num {
  font-family: var(--metric);
  font-weight: 500;
  font-size: 1.1rem;
  font-variant-numeric: tabular-nums;
}
.readiness-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.readiness-copy strong {
  font-size: 0.96rem;
}
.readiness-copy span {
  font-size: 0.82rem; /* keeps mockup micro-copy at the 13px marketing label floor */
  color: rgba(251, 253, 255, 0.82);
}

/* ---------- Value band ---------- */
.band {
  padding: clamp(36px, 4.5vw, 56px) 0;
}
.band-value {
  background: var(--navy);
  color: var(--sign-white);
}
.value-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.3fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.value-lead {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}
.value-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
}
.value-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(251, 253, 255, 0.16);
}
.value-points li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.vp-key {
  font-family: var(--display);
  font-weight: 500;
  font-size: 1.5rem;
  color: var(--yellow);
  min-width: 64px;
}
.vp-label {
  color: rgba(251, 253, 255, 0.9);
  font-size: 1rem;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(56px, 7vw, 96px) 0;
}
.band-paper {
  background: var(--paper-2);
}
.section-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 56px);
  text-align: center;
}
.section-head-left {
  margin-inline: 0;
  text-align: left;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  font-weight: 500;
  color: var(--navy);
}
.section-sub {
  margin-top: 16px;
  font-size: 1.08rem;
  color: var(--muted);
}

/* ---------- Signature feature ---------- */
.feature-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3.5vw, 44px);
  box-shadow: var(--shadow);
  margin-bottom: clamp(36px, 5vw, 56px);
}
.feature-tag {
  font-family: var(--font);
  font-size: 0.82rem;
  letter-spacing: 0;
  color: var(--green);
  font-weight: 500;
  margin-bottom: 12px;
}
.feature-text h3 {
  font-family: var(--display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 500;
  color: var(--navy);
}
.feature-text p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.feature-text em {
  font-style: normal;
  font-weight: 500;
  color: var(--sign-green-deep);
}
.feature-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.feature-list li {
  position: relative;
  padding-left: 30px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: inset 0 0 0 2px var(--sign-white);
}
.feature-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 7px;
  width: 5px;
  height: 9px;
  border: solid var(--sign-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* feature visual: mini guide sign */
.mini-sign {
  background: linear-gradient(180deg, var(--sign-green) 0%, var(--sign-green-deep) 100%);
  border-radius: 16px;
  padding: 22px;
  color: var(--sign-white);
  box-shadow:
    inset 0 0 0 2px var(--sign-white),
    inset 0 0 0 4px var(--sign-green),
    var(--shadow);
}
.mini-sign-row {
  display: flex;
  align-items: center;
  gap: 18px;
}
.readiness-ring-lg {
  width: 96px;
  height: 96px;
  background:
    radial-gradient(closest-side, var(--sign-green-deep) 70%, transparent 71%),
    conic-gradient(var(--yellow) calc(var(--score) * 1%), rgba(251, 253, 255, 0.22) 0);
}
.readiness-ring-lg .readiness-num {
  font-size: 2rem;
}
.mini-sign-copy strong {
  font-size: 1.15rem;
}
.mini-sign-copy p {
  margin-top: 6px;
  font-size: 0.92rem;
  color: rgba(251, 253, 255, 0.88);
}
.hwy-flat {
  margin-top: 20px;
}

/* ---------- Feature grid ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--line-strong);
}
.card h3 {
  font-family: var(--display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--navy);
  padding-top: 14px;
  border-top: 3px solid var(--yellow);
  display: inline-block;
}
.card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- How it works ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
}
.step-marker {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--sign-green);
  color: var(--sign-white);
  font-family: var(--metric);
  font-weight: 500;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  box-shadow: inset 0 0 0 2px var(--sign-white), inset 0 0 0 4px var(--sign-green);
  margin-bottom: 18px;
}
.step h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--navy);
}
.step p {
  margin-top: 10px;
  color: var(--muted);
}

/* ---------- States & languages ---------- */
.states-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.states-copy h2 {
  font-family: var(--display);
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  font-weight: 500;
  color: var(--navy);
}
.states-copy > p {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--ink-soft);
}
.states-note {
  margin-top: 22px !important;
  font-size: 0.86rem !important;
  color: var(--muted) !important;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.state-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.state-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.state-card-all {
  background: linear-gradient(180deg, var(--sign-green) 0%, var(--sign-green-deep) 100%);
  color: var(--sign-white);
  box-shadow: inset 0 0 0 2px var(--sign-white), inset 0 0 0 4px var(--sign-green), var(--shadow-soft);
  border-color: var(--sign-green-deep);
}
.sc-abbr {
  font-family: var(--sign);
  font-weight: 400;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--sign-green);
}
.state-card-all .sc-abbr {
  color: var(--yellow);
}
.sc-name {
  font-family: var(--display);
  font-weight: 500;
  color: var(--navy);
}
.state-card-all .sc-name {
  color: var(--sign-white);
}
.sc-meta {
  font-size: 0.84rem;
  color: var(--muted);
}
.state-card-all .sc-meta {
  color: rgba(251, 253, 255, 0.85);
}

/* ---------- Pricing ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.price-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}
.price-card-featured {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbf8 100%);
  border: none;
  box-shadow: inset 0 0 0 3px var(--sign-green), var(--shadow);
}
.price-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--yellow);
  color: var(--navy-deep);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.82rem;
  letter-spacing: 0;
  padding: 6px 14px;
  border-radius: 20px;
  border: 2px solid var(--yellow-deep);
}
.price-name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--green);
}
.price-amount {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.price-num {
  font-family: var(--metric);
  font-size: 2.25rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.price-period {
  color: var(--muted);
  font-weight: 400;
}
.price-blurb {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.98rem;
}
.price-list {
  list-style: none;
  margin: 20px 0 26px;
  padding: 0;
  display: grid;
  gap: 11px;
  flex: 1;
}
.price-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 7px;
  border: solid var(--green);
  border-width: 0 0 2.5px 2.5px;
  transform: rotate(-45deg);
}
.price-foot {
  margin-top: 26px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- FAQ ---------- */
.faq-wrap {
  max-width: 820px;
}
.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}
.faq-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 22px;
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "";
  flex: none;
  width: 12px;
  height: 12px;
  border: solid var(--green);
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  transform: rotate(-135deg);
}
.faq-item p {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 0.98rem;
}

/* ---------- Final CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 360px at 50% -40%, rgba(28, 122, 61, 0.18), transparent 70%),
    var(--navy);
  color: var(--sign-white);
  text-align: center;
  padding: clamp(56px, 8vw, 96px) 0;
}
.cta-inner {
  display: grid;
  justify-items: center;
  gap: 26px;
}
.cta-sign {
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(180deg, var(--sign-green) 0%, var(--sign-green-deep) 100%);
  border-radius: 18px;
  padding: 28px 34px;
  box-shadow:
    inset 0 0 0 2px var(--sign-white),
    inset 0 0 0 4px var(--sign-green),
    var(--shadow-sign);
  text-align: left;
  max-width: 760px;
}
.cta-exit {
  font-family: var(--sign);
  font-weight: 400;
  font-size: 1.3rem;
  letter-spacing: 0.12em;
  border: 2px solid var(--sign-white);
  border-radius: 8px;
  padding: 14px 16px;
  flex: none;
}
.cta-sign-copy h2 {
  font-family: var(--display);
  font-size: clamp(1.375rem, 2.2vw, 1.625rem);
  font-weight: 500;
  color: var(--sign-white);
}
.cta-sign-copy p {
  margin-top: 8px;
  color: rgba(251, 253, 255, 0.9);
  font-size: 1.05rem;
}
.cta-note {
  font-family: var(--font);
  font-size: 0.85rem;
  letter-spacing: 0;
  color: rgba(251, 253, 255, 0.78);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: rgba(251, 253, 255, 0.82);
  padding: clamp(48px, 6vw, 72px) 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
}
.wordmark-footer {
  color: var(--sign-white);
}
.wordmark-footer .wordmark-shield rect:first-child {
  fill: var(--sign-white);
}
.wordmark-footer .shield-inset,
.wordmark-footer .shield-arrow {
  stroke: var(--navy-deep);
}
.footer-tag {
  margin-top: 14px;
  max-width: 34ch;
  font-size: 0.95rem;
  color: rgba(251, 253, 255, 0.7);
}
.footer-col h4 {
  color: var(--sign-white);
  font-size: 0.85rem;
  letter-spacing: 0;
  font-family: var(--display);
  font-weight: 500;
  margin-bottom: 14px;
}
.footer-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-col a {
  color: rgba(251, 253, 255, 0.78);
  font-size: 0.96rem;
  padding: 8px 0;
  min-height: 44px; /* mobile-web tap floor */
  display: inline-flex;
  align-items: center;
}
.footer-col a:hover {
  color: var(--yellow);
}
.footer-bottom {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid rgba(251, 253, 255, 0.14);
  display: grid;
  gap: 12px;
}
.footer-bottom p {
  font-size: 0.85rem;
  color: rgba(251, 253, 255, 0.6);
}
.footer-disclaimer {
  max-width: 76ch;
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid,
  .value-grid,
  .feature-hero,
  .states-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
  }
  .feature-grid,
  .steps,
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .price-card-featured {
    order: -1;
  }
}

@media (max-width: 720px) {
  /* Mobile header: the wordmark + toggle row cannot also hold the
     "Download on the App Store" CTA (the three together are ~440px wide,
     which pushed the CTA off-canvas and flex-squashed the toggle to 17px).
     The CTA is dropped here — the identical CTA is the hero's first
     element directly below — and the anchor nav becomes a one-handed,
     horizontally scrollable chip strip instead of being hidden. */
  .nav {
    flex-wrap: wrap;
    min-height: 0;
    padding-block: 12px;
    gap: 10px;
  }
  .nav-links {
    display: flex;
    order: 3;
    flex-basis: 100%;
    gap: 8px;
    margin-left: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .nav-links::-webkit-scrollbar {
    display: none;
  }
  .nav-links a {
    flex: none;
    min-height: 44px;
    padding: 10px 16px;
    font-size: 0.9rem;
    border: 1.5px solid rgba(251, 253, 255, 0.5);
    border-radius: 999px;
    background: rgba(251, 253, 255, 0.08);
  }
  .nav-cta {
    display: none;
  }
  html {
    scroll-padding-top: 136px; /* taller two-row sticky header */
  }
  .feature-grid,
  .steps,
  .price-grid,
  .state-cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-sub {
    max-width: none;
  }
  .cta-sign {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* Restore the designed hero action row. The elevation layer's
   `[class*="hero"] { display: block }` (same specificity, later cascade)
   had silently turned .hero-actions into a block and replaced its 14px
   flex gap with accidental 32px margins on the wrapped buttons. */
.hero .hero-actions {
  display: flex;
}
.hero .hero-actions > * + * {
  margin-block-start: 0;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
