*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.65;
}
.i18n-pending body { visibility: hidden; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--ink); color: var(--bone); }

/* ---- Tokens ---- */
:root {
  --bone: #E8E2D2;
  --paper: #EFE9D9;

  --ink: #0B1726;
  --ink-2: #15243A;
  --ink-3: #354A66;
  --ink-4: #6B7A8E;

  --brand-blue: #1B7CC4;
  --brand-blue-deep: #135E96;
  --brand-blue-soft: rgba(27, 124, 196, 0.10);
  --brand-blue-light: #5BA8E0;
  --brand-silver: #9BA3AC;

  --line: rgba(11, 23, 38, 0.13);
  --line-strong: rgba(11, 23, 38, 0.24);
  --rule: rgba(11, 23, 38, 0.85);

  --success: #1E6F4A;
  --success-deep: #176b3e;
  --warning: #9C6B1F;
  --error: #A8362A;

  --on-dark-text: rgba(244,241,234,0.78);
  --on-dark-soft: rgba(244,241,234,0.55);
  --on-dark-muted: rgba(244,241,234,0.50);
  --on-dark-line: rgba(244,241,234,0.12);
  --on-dark-line-strong: rgba(244,241,234,0.22);
  --on-dark-rule: rgba(244,241,234,0.85);

  --navy: var(--ink);
  --navy-mid: var(--ink-2);
  --teal: var(--brand-blue);
  --teal-light: var(--brand-blue-soft);
  --teal-dark: var(--brand-blue-deep);
  --off-white: var(--bone);
  --mid-gray: var(--ink-4);
  --near-black: var(--ink);

  --bg: var(--bone);
  --bg-alt: var(--paper);
  --fg: var(--ink);
  --fg-soft: var(--ink-2);
  --muted: var(--ink-4);
  --card: var(--paper);
  --pop: var(--brand-blue);

  --font-display: 'Fraunces', 'Instrument Serif', Georgia, serif;
  --font-body: 'Söhne', 'Inter', 'Satoshi', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'IBM Plex Mono', monospace;

  --display-1: clamp(56px, 8vw, 120px);
  --display-2: clamp(44px, 5.5vw, 76px);
  --display-3: clamp(32px, 3.5vw, 48px);

  --lh-body: 1.65;
  --lh-loose: 1.7;

  --gutter: clamp(24px, 4vw, 48px);
}

/* ---- Dark mode ---- */
.dark-mode {
  --bone: #0B1726;
  --paper: #14223A;
  --ink: #0B1726;
  --ink-2: #0B1726;
  --ink-3: #A89F8E;
  --ink-4: #7A7268;
  --fg: #F0EBE0;
  --fg-soft: #D8D2C4;
  --muted: #7A7268;
  --brand-blue: #5BA8E0;
  --brand-blue-deep: #4A93C9;
  --brand-blue-soft: rgba(91,168,224,0.12);
  --brand-silver: #A89F8E;
  --line: rgba(244,241,234,0.10);
  --line-strong: rgba(244,241,234,0.18);
  --rule: rgba(244,241,234,0.60);
  --success: #2EAD6A;
  --success-deep: #259957;
  --bg: #0B1726;
  --bg-alt: #14223A;
  --card: #14223A;
  --pop: var(--brand-blue);
  color: #F0EBE0;
}
.dark-mode h1, .dark-mode h2, .dark-mode h3, .dark-mode h4,
.dark-mode p, .dark-mode span, .dark-mode div, .dark-mode a,
.dark-mode li, .dark-mode label, .dark-mode button {
  color: inherit;
}
.dark-mode [style*="color: var(--ink)"] {
  color: #F0EBE0 !important;
}
.dark-mode .btn-primary {
  background: #F0EBE0;
  color: #0B1726;
  border-color: #F0EBE0;
}
.dark-mode .btn-primary:hover {
  background: #D8D2C4;
  border-color: #D8D2C4;
}
.dark-mode .btn-blue {
  background: #5BA8E0;
  color: #0B1726;
  border-color: #5BA8E0;
}
.dark-mode .btn-blue:hover {
  background: #4A93C9;
  border-color: #4A93C9;
}
.dark-mode .btn-secondary {
  border-color: #F0EBE0;
  color: #F0EBE0;
}
.dark-mode .btn-large {
  color: #0B1726;
}
.dark-mode .hero-watermark {
  filter: brightness(0) invert(1);
}
.dark-mode ::selection {
  background: #F0EBE0;
  color: #0B1726;
}
.dark-mode .input, .dark-mode .textarea {
  background: rgba(244,241,234,0.20);
  border-color: rgba(244,241,234,0.18);
  color: #bab6ad;
}
.dark-mode .input:focus, .dark-mode .textarea:focus {
  border-color: #5BA8E0;
  background: rgba(244,241,234,0.10);
  box-shadow: 0 0 0 3px rgba(91,168,224,0.18);
}
.dark-mode .label {
  color: #7A7268;
}
.dark-mode .pill {
  border-color: rgba(244,241,234,0.18);
  color: #D8D2C4;
}
.dark-mode .surface-ink,
.dark-mode .surface-navy {
  color: #F0EBE0;
  --fg: #F0EBE0;
  --fg-soft: var(--on-dark-text);
}
.dark-mode [style*="color: var(--bone)"] {
  color: #F0EBE0 !important;
}
.dark-mode [style*="color: var(--ink-2)"] {
  color: #D8D2C4 !important;
}
.dark-mode [style*="background: var(--brand-blue)"] {
  color: #0B1726 !important;
}
.dark-mode .btn-ink {
  background: #F0EBE0;
  color: #0B1726;
}
.dark-mode .btn-ink:hover {
  background: #D8D2C4;
}

.surface-navy, .surface-ink {
  background: var(--ink);
  color: var(--bone);
  --bg: var(--ink);
  --fg: var(--bone);
  --fg-soft: var(--on-dark-text);
  --muted: var(--on-dark-muted);
  --line: var(--on-dark-line);
  --line-strong: var(--on-dark-line-strong);
  --rule: var(--on-dark-rule);
  --card: #14223A;
  --bg-alt: #14223A;
}
.surface-bone {
  background: var(--paper);
  --bg: var(--paper);
  --bg-alt: var(--paper);
  --card: var(--paper);
}
.surface-paper {
  background: var(--paper);
  --bg: var(--paper);
}

/* ---- Layout ---- */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ---- Pill / eyebrow ---- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 10px; border-radius: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--fg-soft);
  font-family: var(--font-mono);
  font-weight: 500;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-blue); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 2px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 500; font-size: 15px;
  letter-spacing: 0.005em;
  transition: all 200ms ease;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: #000;
  border-color: #000;
  transform: translateY(-1px);
}
.btn-blue {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}
.btn-blue:hover {
  background: var(--brand-blue-deep);
  border-color: var(--brand-blue-deep);
}
.btn-ink {
  background: var(--ink);
  color: var(--bone);
}
.btn-ink:hover {
  background: #000;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  border-color: currentColor;
}
.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.06);
  background: color-mix(in oklch, currentColor 8%, transparent);
}
.btn-ghost {
  background: transparent;
  color: inherit;
  padding: 8px 0;
  border: none;
}
.btn-ghost:hover { color: var(--brand-blue); }
.btn-large { padding: 18px 32px; font-size: 17px; }

/* ---- Cards ---- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px;
  transition: all 200ms ease;
}
/* ---- Editorial rules ---- */
.rule { height: 1px; background: var(--rule); border: none; margin: 0; opacity: .9; }
.rule-soft { height: 1px; background: var(--line-strong); border: none; margin: 0; }
.rule-thick { height: 2px; background: var(--rule); border: none; margin: 0; }
.rule-double { border: none; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); height: 4px; }

/* ---- Editorial display utilities ---- */
.serif { font-family: var(--font-display); font-weight: 400; }
.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }
.mono { font-family: var(--font-mono); }
.tabular { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

.h-display-1 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.025em; line-height: 0.96; font-size: var(--display-1); margin: 0; }
.h-display-2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.02em; line-height: 1.0; font-size: var(--display-2); margin: 0; }
.h-display-3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; line-height: 1.08; font-size: var(--display-3); margin: 0; }

/* ---- Typography ---- */
.h-display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
  margin: 0;
}
.body-lg {
  font-size: 19px;
  line-height: 1.65;
  color: var(--fg-soft);
}
.mono-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

/* ---- Reveal ---- */
.reveal { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }
.reveal.primed { opacity: 0; transform: translateY(12px); }
.reveal.primed.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.primed { opacity: 1; transform: none; transition: none; }
}

/* ---- Form fields ---- */
.input, .textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: inherit;
  font-size: 16px;
  color: var(--fg);
  outline: none;
  transition: border-color 150ms ease, background 150ms ease;
}
.input:focus, .textarea:focus {
  border-color: var(--brand-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(27, 124, 196, 0.12);
}
.input.mono { font-family: var(--font-mono); letter-spacing: 0.02em; }
/* Set server-side on a field that failed validation (see the form controllers). */
.input.input--invalid, .textarea.input--invalid { border-color: var(--error); }
.label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 500;
}

/* ---- Subtle mesh background ---- */
.mesh-bg {
  position: absolute; inset: 0;
  background: radial-gradient(800px 500px at 80% 0%, rgba(27, 124, 196, 0.08), transparent 60%);
  pointer-events: none;
}

/* ---- Divider ---- */
.divider-soft {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 20%, var(--line) 80%, transparent);
  border: none;
  margin: 0;
}

/* ---- Section padding ---- */
.section { padding: 112px 0; }
.section-tight { padding: 80px 0; }
@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section-tight { padding: 56px 0; }
}

/* ---- Range input ---- */
input[type="range"] {
  accent-color: var(--brand-blue);
  width: 100%;
}

/* ---- Focus ring ---- */
:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---- Responsive grid collapse ---- */
@media (max-width: 960px) {
  .hero-grid, .practice-grid, .calc-grid, .partner-grid, .faq-grid, .quote-grid,
  .lookup-grid, .contact-grid, .rights-grid {
    grid-template-columns: 1fr !important;
  }
  .data-strip, .how-grid, .case-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .data-strip > div, .how-grid > div, .case-grid > article {
    border-right: none !important;
    border-bottom: 1px solid var(--line-strong) !important;
  }
}
@media (max-width: 600px) {
  .data-strip, .how-grid, .case-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ---- Mobile responsive helpers ---- */
@media (max-width: 900px) {
  .hide-mobile { display: none !important; }
}
@media (min-width: 901px) {
  .show-mobile { display: none !important; }
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  z-index: 100; background: var(--ink); color: var(--bone);
  padding: 12px 24px; font-size: 14px;
}
.skip-link:focus {
  position: fixed; left: 16px; top: 16px;
  width: auto; height: auto;
}

/* ---- Site header ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--bg) 92%, transparent);
  backdrop-filter: blur(18px);
  border-bottom-color: var(--line-strong);
}
.site-header__rule { height: 3px; background: var(--fg); opacity: 0.95; }
.site-header__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 32px;
}
@media (max-width: 720px) { .site-header__bar { padding: 16px 20px; } }

.site-logo { display: inline-flex; align-items: center; gap: 12px; }
.site-logo__mark { object-fit: contain; }
.dark-mode .site-logo__mark { filter: invert(1) brightness(1.05); }
.site-logo__text { display: flex; flex-direction: column; line-height: 1; }
.site-logo__name {
  font-family: var(--font-display); font-size: 24px; font-weight: 400;
  letter-spacing: -0.012em; color: var(--fg);
}
.site-logo__sub {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--muted); margin-top: 4px; font-weight: 500;
}

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a {
  font-size: 13.5px; font-weight: 450; color: var(--ink-3);
  letter-spacing: 0.005em; transition: color .15s; padding-bottom: 4px;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--fg); }

.site-header__actions { display: flex; align-items: center; gap: 18px; }
.header-phone {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.04em; color: var(--ink-3);
  display: flex; align-items: center; gap: 8px;
}

.icon-btn {
  background: transparent; border: none; padding: 6px; cursor: pointer;
  color: var(--ink-3); display: inline-flex; align-items: center;
}
.icon-btn.show-mobile { color: var(--fg); }
.icon-sun { display: none; }
.dark-mode .icon-moon { display: none; }
.dark-mode .icon-sun { display: inline; }
.language-btn {
  background: transparent; border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 6px 10px; color: var(--ink-3); cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; line-height: 1;
  transition: color .15s, border-color .15s, background .15s;
}
.language-btn:hover {
  color: var(--fg); border-color: var(--fg);
  background: color-mix(in oklab, var(--fg) 6%, transparent);
}

/* ---- Mobile menu ---- */
.mobile-menu {
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 20px 20px 28px;
}
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu a {
  font-size: 17px; font-family: var(--font-display);
  padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--fg);
}
.mobile-menu__phone {
  font-family: var(--font-mono) !important; font-size: 13px !important;
  color: var(--ink-3) !important; letter-spacing: 0.04em;
}
.mobile-menu__dark {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 12px; padding: 12px 0;
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--ink-3); cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ---- Section eyebrow ---- */
.section-eyebrow {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 16px; border-bottom: 1px solid var(--rule); margin-bottom: 36px;
}
.section-eyebrow span {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-3); font-weight: 500;
}

/* ---- Hero ---- */
.hero {
  background: var(--bg); position: relative; overflow: hidden;
  padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(80px, 12vw, 160px);
  min-height: clamp(520px, 70vh, 800px); display: flex; align-items: center;
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 600px at 80% -5%, rgba(27,124,196,0.06), transparent 65%);
}
.hero-watermark {
  position: absolute; right: clamp(-20px, 2vw, 40px); top: 50%;
  transform: translateY(-50%); width: clamp(280px, 38vw, 540px); height: auto;
  opacity: 0.04; pointer-events: none; user-select: none;
}
.hero__rule {
  position: absolute; left: 0; right: 0; bottom: clamp(60px, 10vw, 120px);
  height: 1px; background: var(--rule); opacity: 0.5; pointer-events: none;
}
.hero__inner { position: relative; text-align: center; }
.hero__title {
  font-family: var(--font-display); font-size: clamp(52px, 8vw, 120px);
  line-height: 0.92; letter-spacing: -0.03em; margin: 0 auto;
  color: var(--fg); font-weight: 400; max-width: 900px;
}
.hero__lead {
  font-size: 18px; line-height: 1.65; color: var(--fg-soft);
  margin: 32px auto 0; max-width: 520px;
}
.hero__cta {
  display: flex; gap: 14px; margin-top: 44px; justify-content: center; flex-wrap: wrap;
}

/* ---- Split hero ---- */
.hero--split .hero__inner { text-align: left; width: 100%; }

.hero-switch { position: relative; overflow: hidden; width: 100%; }
.hero-track { position: relative; }
/* The inactive panel is hidden once slid out so its border can't peek in at the clip edge. */
.hero-view { width: 100%; transition: transform .45s ease, visibility .45s; }
.hero-view--main { position: relative; transform: translateX(0); }
.hero-view--other { position: absolute; top: 0; left: 0; transform: translateX(100%); visibility: hidden; }
.hero-switch.show-other .hero-view--main { position: absolute; top: 0; left: 0; transform: translateX(-100%); visibility: hidden; }
.hero-switch.show-other .hero-view--other { position: relative; transform: translateX(0); visibility: visible; }

.hero-split {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.hero-pitch { min-width: 0; }
.hero--split .hero__title {
  margin: 0; max-width: 640px; font-size: clamp(44px, 6vw, 92px);
}
.hero--split .hero__lead { margin: 28px 0 0; }
.hero--split .hero__cta { margin-top: 36px; justify-content: flex-start; flex-direction: column; align-items: flex-start; }
.hero__callnote {
  display: inline-block; margin-top: 20px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--ink-3); text-decoration: none;
}
.hero__callnote:hover { color: var(--brand-blue); }
.hero__feenote {
  margin: 18px 0 0; font-family: var(--font-mono); font-size: 10.5px;
  line-height: 1.6; letter-spacing: 0.04em; color: var(--ink-4); max-width: 380px;
}

.hero-alt { min-width: 0; }
.hero-alt__card {
  display: flex; flex-direction: column; align-items: flex-start; width: 100%;
  padding: clamp(16px, 4vw, 36px); text-align: left; cursor: pointer; font: inherit;
  background: var(--paper); color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: 6px;
  transition: background .2s, border-color .2s;
}
.hero-alt__card:hover { background: var(--bg); border-color: var(--fg); }
.hero-alt__title {
  font-family: var(--font-display); font-size: clamp(20px, 5vw, 30px);
  line-height: 1.1; letter-spacing: -0.015em; margin: clamp(8px, 2vw, 12px) 0; font-weight: 400;
}
.hero-alt__body {
  font-size: clamp(13px, 3.4vw, 14px); line-height: 1.6; color: var(--ink-3);
  margin: 0 0 clamp(14px, 3.5vw, 22px);
}
.hero-alt__link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--brand-blue); margin-top: auto;
}

.hero-alt__kicker {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; margin-bottom: clamp(12px, 3.5vw, 22px);
}
.hero-back {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 0 0 16px; background: none; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-3);
}

.hero-methods {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  border-top: 1px solid var(--line-strong);
}
.hero-method {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: clamp(18px, 4.5vw, 28px) clamp(14px, 3.5vw, 22px);
  border-right: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong);
  background: var(--paper); color: var(--fg); text-decoration: none;
  transition: background .2s;
}
.hero-method:hover { background: var(--bg); }
.hero-method:nth-child(2n) { border-right: none; }
.hero-method__icon { color: var(--brand-blue); line-height: 0; margin-bottom: clamp(10px, 2.5vw, 16px); }
.hero-method__icon svg { width: clamp(32px, 8vw, 44px); height: clamp(32px, 8vw, 44px); }
.hero-method__title {
  font-family: var(--font-display); font-size: clamp(16px, 4.2vw, 19px); line-height: 1.15;
  letter-spacing: -0.012em; margin: 0 0 8px; font-weight: 400;
}
.hero-method__info {
  font-family: var(--font-mono); font-size: 11px; line-height: 1.55;
  letter-spacing: 0.02em; color: var(--ink-3);
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 32px; }
  .hero--split .hero__title { font-size: clamp(40px, 9vw, 64px); }
}
@media (max-width: 600px) {
  .hero-methods { grid-template-columns: 1fr; }
  .hero-method { border-right: none; }
}

/* ---- FAQ ---- */
.faq-grid {
  display: grid; grid-template-columns: minmax(0,0.7fr) minmax(0,1.6fr);
  gap: clamp(32px, 5vw, 80px); align-items: start;
}
.faq__title {
  font-family: var(--font-display); font-size: clamp(36px, 3.8vw, 52px);
  line-height: 1.02; letter-spacing: -0.018em; margin: 0; color: var(--fg); font-weight: 400;
}
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item:first-child { border-top: 1px solid var(--rule); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: none;
  padding: 24px 0; display: grid; grid-template-columns: 1fr auto; gap: 20px;
  align-items: baseline; cursor: pointer;
}
.faq-q > span:first-child {
  font-family: var(--font-display); font-size: 22px; line-height: 1.25;
  color: var(--fg); letter-spacing: -0.01em;
}
.faq-q__icon {
  font-family: var(--font-mono); font-size: 16px; color: var(--fg);
  display: inline-block; transition: transform .2s;
}
.faq-item.is-open .faq-q__icon { transform: rotate(45deg); }
.faq-a { padding: 0 36px 28px 0; }
.faq-a p { font-size: 16px; line-height: 1.7; color: var(--fg-soft); margin: 0; max-width: 680px; }

/* ---- Footer ---- */
.footer-masthead {
  display: flex; justify-content: space-between; align-items: flex-end;
  padding-bottom: 56px; flex-wrap: wrap; gap: 24px;
}
.footer-masthead__name {
  font-family: var(--font-display); font-size: clamp(44px, 6vw, 88px);
  letter-spacing: -0.02em; line-height: 0.95; color: var(--bone);
}
.footer-masthead__place {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; opacity: 0.55; text-align: right;
}
.footer-masthead__meta {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: flex-start; gap: 10px 32px; flex-basis: 100%;
}
.footer-credentials {
  container-type: inline-size;
  width: 92%;
  max-width: 940px;
  margin: 0 auto 32px;
  padding: 14px 10px 24px;
  font-family: var(--font-body);
}
.footer-licenses {
  display: grid;
  grid-template-columns: 155fr 146fr 177fr;
  gap: 2.7cqw;
}
.license-card {
  --license-color: #0A2653;
  --license-radius: 2.2cqw;
  display: flex;
  flex-direction: column;
  min-width: 0;
  /* Border is the card fill showing through the padding; a real border leaves an anti-aliased paper fringe. */
  padding: 2px;
  border-radius: var(--license-radius);
  background: var(--license-color);
  color: var(--ink);
  text-align: center;
}
.license-card--nevada { --license-color: #198249; }
.license-card--complaint { --license-color: #542781; }
.footer-licenses .license-card__label {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 6.1cqw;
  margin: 0;
  padding: 1cqw .5cqw;
  border-radius: calc(var(--license-radius) - 2px) calc(var(--license-radius) - 2px) 0 0;
  background: var(--license-color);
  color: #fff;
  font-family: var(--font-body);
  font-size: 3.4cqw;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.2;
}
.footer-licenses .license-card--complaint .license-card__label { font-size: 2.6cqw; }
.footer-licenses .license-card__body {
  flex: 1;
  min-height: 35.9cqw;
  border-radius: 0 0 calc(var(--license-radius) - 2px) calc(var(--license-radius) - 2px);
  background: var(--paper);
  padding: 1.65cqw 1.4cqw 2.3cqw;
  font-size: 1.65cqw;
  line-height: 1.35;
}
.license-card__body p { margin: 0; }
.license-card__body strong { font-weight: 700; }
.license-card__emblem {
  display: block;
  width: 9cqw;
  height: 8.4cqw;
  margin: 0 auto 1cqw;
  color: currentColor;
}
.license-card__person {
  display: block;
  width: 5.7cqw;
  height: 6.5cqw;
  margin: 0 auto .8cqw;
  color: currentColor;
}
.license-card hr {
  width: 82%;
  margin: 1.8cqw auto 1.4cqw;
  border: 0;
  border-top: 1px solid var(--line-strong);
}
.license-card__body .license-card__certificate { margin-top: .4cqw; }
.license-card__bubble {
  display: block;
  width: 7.1cqw;
  height: 6.4cqw;
  margin: 0 auto 1.1cqw;
  color: currentColor;
}
.license-card--complaint strong,
.license-card__certifications span,
.license-card .license-card__body a { color: var(--license-color); }
.license-card__body .license-card__certifications { margin-top: 1cqw; }
.license-card a { text-decoration: none; }
.license-card__label a { color: inherit; }
.license-card a:hover { text-decoration: underline; }
.license-card a:focus-visible, .footer-resources a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
.license-card--complaint .license-card__body { display: flex; flex-direction: column; }
.license-card--complaint .license-card__body p:last-of-type { margin-bottom: 16px; }
.license-card .license-card__body .license-card__complaint-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--license-color);
  color: #fff;
  font-size: clamp(12px, 1.65cqw, 17px);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.license-card .license-card__body .license-card__complaint-button:hover {
  background: #401d63;
}
.license-card .license-card__body .license-card__complaint-button:focus-visible {
  outline-color: var(--license-color);
}
.footer-resources {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2cqw, 24px);
  margin-top: 2.7cqw;
  padding: 0 24px 0 0;
  border-radius: 2.2cqw;
  background: var(--paper);
}
.footer-resources .footer-resources__link {
  display: inline-flex;
  justify-self: end;
  text-align: right;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  color: var(--brand-blue-deep);
  font-family: var(--font-body);
  font-size: clamp(20px, 2.8cqw, 28px);
  font-weight: 700;
  line-height: 1.4;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-resources__globe {
  width: clamp(32px, 4cqw, 44px);
  height: clamp(32px, 4cqw, 44px);
  flex-shrink: 0;
  margin-right: 6px;
}
.footer-resources img {
  width: 116px;
  height: 116px;
  border-radius: 12px;
  object-fit: contain;
}
.dark-mode .license-card { color: #F0EBE0; }
.dark-mode .license-card--complaint strong,
.dark-mode .license-card__certifications span,
.dark-mode .license-card .license-card__body a:not(.license-card__complaint-button) { color: #F0EBE0; }
@media (max-width: 540px) {
  .footer-credentials { width: 100%; padding: 12px; }
  .footer-licenses { grid-template-columns: 1fr; gap: 12px; }
  .license-card { --license-radius: 12px; }
  .footer-licenses .license-card__label { min-height: 44px; font-size: 22px; padding: 8px; }
  .footer-licenses .license-card--complaint .license-card__label { font-size: 18px; }
  .footer-licenses .license-card__body { min-height: 0; padding: 14px 12px 20px; font-size: 14px; }
  .license-card__emblem { width: 64px; height: 58px; margin-bottom: 10px; }
  .license-card__person { width: 40px; height: 46px; margin-bottom: 8px; }
  .license-card__bubble { width: 48px; height: 44px; margin-bottom: 10px; }
  .license-card hr { margin: 16px auto 12px; }
  .license-card__body .license-card__certificate { margin-top: 5px; }
  .license-card__body .license-card__certifications { margin-top: 10px; }
  .footer-resources { gap: 8px; margin-top: 16px; padding: 0 12px 0 0; border-radius: 12px; }
  .footer-resources img { width: 80px; height: 80px; }
  .footer-resources .footer-resources__link { font-size: 16px; gap: 3px; overflow-wrap: anywhere; }
}
.footer-disclosure { border-top: 1px solid var(--on-dark-line); padding-top: 28px; }
.footer-disclosure__label {
  margin: 0 0 12px; font-family: var(--font-mono); text-transform: uppercase;
  letter-spacing: 0.18em; font-size: 10px; opacity: 0.5;
}
.footer-disclosure p { margin: 0 0 12px; font-size: 12px; line-height: 1.7; opacity: 0.6; max-width: 920px; }
.footer-colophon {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--on-dark-line);
  font-family: var(--font-mono); font-size: 11px; opacity: 0.45; letter-spacing: 0.06em;
  gap: 16px; flex-wrap: wrap;
}

/* ---- About: hero cover ---- */
.cover {
  background: var(--bg); position: relative; overflow: hidden;
  padding-top: 56px; padding-bottom: 96px;
}
.cover__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 500px at 90% -10%, rgba(27,124,196,0.07), transparent 60%);
}
.cover-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.cover-copy { display: flex; flex-direction: column; gap: 24px; }
.cover__title {
  font-family: var(--font-display); font-size: clamp(40px, 5vw, 68px);
  line-height: 0.98; letter-spacing: -0.025em; margin: 0;
  color: var(--fg); font-weight: 400;
}
.cover__body { font-size: 15.5px; line-height: 1.7; color: var(--ink-3); margin: 0; max-width: 460px; }
@media (max-width: 960px) { .cover-grid { grid-template-columns: 1fr; } }

/* ---- Compact masthead ---- */
.compact-masthead {
  background: var(--bg); padding-top: 40px; padding-bottom: 56px;
  border-bottom: 1px solid var(--line-strong);
}
.compact-masthead__title {
  font-family: var(--font-display); font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.0; letter-spacing: -0.022em; margin: 0;
  color: var(--fg); font-weight: 400; max-width: 1000px;
}
.compact-masthead__lead {
  margin-top: 24px; max-width: 680px;
  font-family: var(--font-display); font-style: italic;
  font-size: 19px; line-height: 1.65; color: var(--fg-soft);
}

/* ---- About: states map ---- */
.us-map {
  width: 100%;
  filter: drop-shadow(0 0 16px rgba(46, 134, 201, 0.28));
}
.us-map svg { display: block; width: 100%; height: auto; }
.us-map__state {
  fill: transparent; stroke: rgba(140, 190, 235, 0.45); stroke-width: 1;
  vector-effect: non-scaling-stroke;
}
.us-map__state.is-on { fill: #3E92D6; stroke: rgba(11, 23, 38, 0.55); stroke-width: 0.75; }
.cover-map__note {
  margin: 12px 0 0; text-align: right;
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--ink-4); opacity: 0.65;
}

/* ---- About: values grid ---- */
.values__title {
  font-family: var(--font-display); font-size: clamp(36px, 4.4vw, 60px);
  line-height: 1.02; letter-spacing: -0.02em; margin: 0 0 56px;
  color: var(--fg); font-weight: 400; max-width: 720px;
}
.values-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border-top: 2px solid var(--fg);
}
.values-cell {
  padding: 32px 28px; min-height: 200px;
  border-right: 1px solid var(--line-strong);
}
.values-grid .values-cell:last-child { border-right: none; }
.values-cell__tick { width: 32px; height: 3px; background: var(--brand-blue); margin-bottom: 24px; }
.values-cell h3 {
  font-family: var(--font-display); font-size: 24px; margin: 0 0 14px;
  color: var(--fg); font-weight: 400; letter-spacing: -0.015em;
}
.values-cell p { color: var(--fg-soft); font-size: 15px; line-height: 1.7; margin: 0; }

/* ---- Compliance ---- */
.compliance-section {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
  gap: clamp(40px, 6vw, 96px); padding: 56px 0;
  border-top: 1px solid var(--line-strong); align-items: start;
}
.compliance-section--last { border-bottom: 1px solid var(--line-strong); }
.compliance-section__side { position: sticky; top: 100px; }
.compliance-section__side h3 {
  font-family: var(--font-display); font-size: 28px; margin: 0;
  color: var(--fg); font-weight: 400; letter-spacing: -0.015em;
}
.compliance-block {
  padding-bottom: 32px; margin-bottom: 32px;
  border-bottom: 1px dashed var(--line-strong);
}
.compliance-block--last { padding-bottom: 0; margin-bottom: 0; border-bottom: none; }
.compliance-block__title {
  color: var(--fg); font-family: var(--font-display); font-size: 20px;
  font-weight: 400; letter-spacing: -0.01em; margin: 0 0 12px;
}
.compliance-block p { font-size: 16.5px; line-height: 1.7; color: var(--fg-soft); margin: 0; max-width: 640px; }
.compliance-block p + p { margin-top: 16px; }
.compliance-block__list {
  margin: 16px 0 0; padding-left: 22px; max-width: 640px;
  font-size: 16.5px; line-height: 1.7; color: var(--fg-soft);
}
.compliance-block__list li { margin-bottom: 12px; padding-left: 6px; }
.compliance-block__list li:last-child { margin-bottom: 0; }
.compliance-block__list li::marker { color: var(--brand-blue); }
@media (max-width: 960px) {
  .compliance-section { grid-template-columns: 1fr; }
  .compliance-section__side { position: static; }
}

/* ---- Compliance contact ---- */
.compliance-contact {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px); align-items: center;
}
.section-eyebrow--dark { border-bottom-color: var(--on-dark-soft); }
.section-eyebrow--dark span { color: var(--on-dark-soft); }
.compliance-contact__title {
  font-family: var(--font-display); font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.05; letter-spacing: -0.018em; margin: 0 0 18px;
  color: var(--bone); font-weight: 400;
}
.compliance-contact__lead { font-size: 16px; color: var(--on-dark-text); line-height: 1.7; margin: 0; max-width: 540px; }
.compliance-contact__card {
  background: var(--on-dark-line); border: 1px solid var(--on-dark-line); padding: 32px;
}
.compliance-contact__card h3 {
  font-family: var(--font-display); font-size: 28px; margin: 0 0 24px;
  color: var(--fg); font-weight: 400; letter-spacing: -0.015em;
}

/* ---- Contact page ---- */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 80px); align-items: start;
}
.contact-items { display: flex; flex-direction: column; gap: 28px; }
.contact-item { padding-bottom: 22px; border-bottom: 1px solid var(--line-strong); }
.contact-item__label {
  color: var(--fg); font-family: var(--font-body); font-size: 14px;
  font-weight: 600; letter-spacing: 0; margin: 0 0 8px;
}
.contact-item__value {
  font-family: var(--font-display); font-size: 22px;
  color: var(--fg); line-height: 1.4; letter-spacing: -0.01em;
}
.contact-item__value--mono { font-family: var(--font-mono); font-size: 18px; letter-spacing: 0.01em; }
.contact-item__sub {
  font-family: var(--font-mono); font-size: 11.5px;
  letter-spacing: 0.06em; color: var(--ink-4); margin-top: 6px;
}
.contact-item__cta { margin-top: 12px; }

/* ---- Intake card ---- */
.intake-card {
  background: var(--paper); border: 1px solid var(--line-strong);
  padding: 36px; position: relative;
}
.intake-card__tag {
  position: absolute; top: -1px; left: -1px;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--bone); background: var(--ink); padding: 6px 12px;
}
.intake-card__body { margin-top: 24px; display: flex; flex-direction: column; gap: 16px; }
.intake-card .textarea { resize: vertical; }
.intake-card__sent { padding: 32px; text-align: center; margin-top: 24px; }
.intake-card__sent-mark {
  font-family: var(--font-display); font-size: 48px;
  color: var(--brand-blue); font-style: italic; margin-bottom: 16px;
}
.intake-card__sent h3 {
  font-family: var(--font-display); font-size: 28px;
  color: var(--fg); margin: 0 0 8px; font-weight: 400;
}
.intake-card__sent p { color: var(--ink-3); margin: 0; font-size: 14.5px; }

/* ---- Complaint CTA band ---- */
.complaint-banner {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.complaint-banner__lead { font-size: 16px; line-height: 1.7; color: var(--ink-3); margin: 18px 0 0; max-width: 620px; }
.complaint-banner__action { display: flex; justify-content: flex-end; }
@media (max-width: 960px) {
  .complaint-banner { grid-template-columns: 1fr; }
  .complaint-banner__action { justify-content: flex-start; }
}

/* ---- Complaint page ---- */
.complaint-side { display: flex; flex-direction: column; gap: 36px; }
.complaint-officer__name {
  font-family: var(--font-display); font-size: 26px;
  letter-spacing: -0.01em; color: var(--fg);
}
.complaint-officer__title {
  font-family: var(--font-display); font-size: 19px; font-style: italic;
  color: var(--ink-3); margin-top: 2px;
}
.complaint-officer__certs {
  list-style: none; margin: 20px 0 0; padding: 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.03em;
  color: var(--ink-3); line-height: 2;
}
.rmai-card {
  display: flex; align-items: center; gap: 22px;
  border: 1px solid var(--line-strong); padding: 22px 24px;
}
.rmai-card__mark { width: 120px; height: auto; flex: none; background: #fff; padding: 6px; }
.rmai-card__text {
  margin: 0; font-family: var(--font-display); font-size: 17px;
  line-height: 1.45; letter-spacing: -0.005em;
}
.complaint-resources { margin: 0; font-size: 14.5px; line-height: 1.75; color: var(--ink-3); }
.complaint-resources a { color: var(--brand-blue); font-weight: 600; text-decoration: none; }
.complaint-resources a:hover { text-decoration: underline; }
.complaint-intro { margin: 0 0 4px; font-size: 14.5px; line-height: 1.7; color: var(--ink-3); }
.label__req { color: var(--error); }
@media (max-width: 600px) {
  .rmai-card { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ---- Plan estimate callout ---- */
.plan-estimate {
  border: 1px solid var(--brand-blue);
  background: rgba(27, 124, 196, 0.06);
  padding: 20px 22px; text-align: center;
}
.plan-estimate__label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-3);
}
.plan-estimate__range {
  font-family: var(--font-display); font-size: 30px;
  color: var(--brand-blue); letter-spacing: -0.01em; margin: 8px 0 6px;
}
.plan-estimate__basis { font-size: 13.5px; color: var(--ink-3); margin-bottom: 10px; }
.plan-estimate__note {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.04em; color: var(--ink-4);
}

/* ---- Plan switch ---- */
.plan-switch__track {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border: 1px solid var(--line-strong); border-radius: 2px;
  background: var(--paper);
}
.plan-switch__track:has(input:focus-visible) {
  border-color: var(--brand-blue); box-shadow: 0 0 0 3px rgba(27, 124, 196, 0.12);
}
.plan-switch__thumb {
  position: absolute; top: 4px; left: 4px;
  width: calc(50% - 4px); height: calc(100% - 8px);
  background: var(--brand-blue); border-radius: 2px;
  transition: transform 0.24s ease;
}
.plan-switch__track:has(input[data-plan="lump"]:checked) .plan-switch__thumb { transform: translateX(100%); }
.plan-switch__opt {
  position: relative; z-index: 1; text-align: center; cursor: pointer;
  padding: 11px 6px; font-size: 14px; color: var(--fg-soft);
  transition: color 0.24s ease;
}
.plan-switch__opt:has(input:checked) { color: #fff; }
.plan-switch__opt input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
@media (max-width: 600px) { .plan-switch__opt { font-size: 12.5px; padding: 10px 4px; } }
@media (prefers-reduced-motion: reduce) {
  .plan-switch__thumb, .plan-switch__opt { transition: none; }
}

/* ---- Term selector ---- */
.term-toggle { margin-bottom: 14px; }
.term-toggle__options { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.term-option {
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em;
  padding: 8px 14px; border-radius: 2px; cursor: pointer;
  border: 1px solid var(--line-strong); background: transparent; color: var(--fg-soft);
}
.term-option:hover { border-color: var(--brand-blue); color: var(--brand-blue); }
.term-option.is-selected { border-color: var(--brand-blue); background: var(--brand-blue); color: #fff; }

/* ---- Toast ---- */
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 1000;
  display: flex; align-items: center; gap: 14px;
  max-width: 380px; padding: 14px 16px;
  border-radius: 10px; border-left: 4px solid var(--brand-silver);
  background: #0B1726; color: #F0EBE0;
  box-shadow: 0 12px 32px rgba(11, 23, 38, 0.28);
  font-size: 14.5px; line-height: 1.4;
  animation: toast-in 0.28s ease-out;
}
.dark-mode .toast { background: #EFE9D9; color: #0B1726; }
.toast--success { border-left-color: var(--success); }
.toast--error { border-left-color: var(--error); }
.toast.toast--hide { opacity: 0; transform: translateX(-50%) translateY(-8px); transition: opacity 0.3s, transform 0.3s; }
.toast__msg { flex: 1; }
.toast__close {
  background: none; border: none; color: inherit;
  font-size: 20px; line-height: 1; cursor: pointer; opacity: 0.7; padding: 0;
}
.toast__close:hover { opacity: 1; }
@keyframes toast-in { from { opacity: 0; transform: translateX(-50%) translateY(-8px); } to { opacity: 1; transform: translateX(-50%) translateY(0); } }
@media (max-width: 600px) { .toast { max-width: calc(100% - 32px); } }
@media (prefers-reduced-motion: reduce) { .toast { animation: none; } }

/* Honeypot: a decoy field hidden from people but visible to naive bots. Anything
   that fills it is dropped server-side. Kept off-screen (not display:none) so
   bots that skip hidden fields still see it. */
.hp-field { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
