/* ==========================================================================
   Send My Demand — public site stylesheet
   Design system: Apple HIG principles + the engineering conventions of the
   Civil Constable build (tokens, pill buttons, reveal motion, quick-dock,
   view transitions). Brand colours come ONLY from the Send My Demand logo.
   Mobile first. Light + dark follow the OS (no toggle).
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Brand constants (sampled from logo.png) */
  --brand-navy: #18304b;
  --brand-blue: #0a5bab;

  /* Surfaces */
  --surface: #f6f7f9;
  --surface-raised: #ffffff;
  --surface-sunken: #eef1f5;
  --surface-ink: #0d1a2b;          /* dark bands (CTA) in light mode */
  --glass: rgba(246, 247, 249, .78);

  /* Text — contrast on --surface: ink 16.2:1, ink-2 7.7:1, ink-3 5.5:1 */
  --ink: #0e1b2c;
  --ink-2: #405066;
  --ink-3: #56657a;
  --on-ink: #f3f6fa;
  --on-ink-2: #b9c4d3;

  /* Lines */
  --line: #e0e5ec;
  --line-strong: #c5cfdc;

  /* Accent = logo blue. White on #0a5bab = 6.8:1 */
  --accent: #0a5bab;
  --accent-press: #084b8e;
  --accent-soft: #e6effa;
  --on-accent: #ffffff;
  --focus: #0a5bab;

  /* Status (always paired with text) */
  --success: #1d6b45; --success-bg: #e5f2ea;
  --warning: #7a5200; --warning-bg: #fbf0d9;
  --danger:  #a12a2a; --danger-bg:  #f9e6e6;
  --info:    #0a5bab; --info-bg:    #e6effa;

  /* Radius */
  --radius-s: 10px;
  --radius: 14px;
  --radius-l: 22px;
  --radius-xl: 28px;

  /* Shadow — soft, low contrast */
  --shadow-1: 0 1px 2px rgba(14, 27, 44, .05), 0 1px 1px rgba(14, 27, 44, .03);
  --shadow-2: 0 2px 6px rgba(14, 27, 44, .05), 0 10px 28px -10px rgba(14, 27, 44, .12);
  --shadow-3: 0 4px 10px rgba(14, 27, 44, .05), 0 28px 60px -20px rgba(14, 27, 44, .22);

  /* Type */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  /* Display = Poppins, the geometric voice of the Send My Demand wordmark (OFL, self-hosted, Latin subset). */
  --font-display: "SMD Display", -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, sans-serif;
  --font-letter: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --navy-950: #08131f;
  --navy-900: #0c1b2d;
  --navy-800: #13283f;
  --navy-700: #1c3654;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Layout */
  --gutter: clamp(16px, 4.2vw, 44px);
  --max: 1200px;
  --max-text: 68ch;
  --header-h: 64px;
  --dock-h: 64px;
  --stage-h: 0px;

  /* Motion */
  --dur: 220ms;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
}

@media (min-width: 1080px) {
  :root { --header-h: 72px; --dock-h: 0px; }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #0a0f17;
    --surface-raised: #121a27;
    --surface-sunken: #070b11;
    --surface-ink: #111a28;
    --glass: rgba(10, 15, 23, .72);

    /* on #0a0f17: ink 17.1:1, ink-2 10.3:1, ink-3 6.7:1 */
    --ink: #eef2f7;
    --ink-2: #b4bfcd;
    --ink-3: #8d99ab;
    --on-ink: #eef2f7;
    --on-ink-2: #a9b5c5;

    --line: #1d2635;
    --line-strong: #2d394b;

    /* #05101d on #6aaef2 = 8.2:1 */
    --accent: #6aaef2;
    --accent-press: #8cc0f5;
    --accent-soft: #0f2238;
    --on-accent: #05101d;
    --focus: #8cc0f5;

    --success: #6fd39f; --success-bg: #0f2a1d;
    --warning: #f0c36b; --warning-bg: #2c220d;
    --danger:  #f29a9a; --danger-bg:  #2e1416;
    --info:    #8cc0f5; --info-bg:    #0f2238;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, .35), 0 12px 30px -12px rgba(0, 0, 0, .6);
    --shadow-3: 0 6px 16px rgba(0, 0, 0, .35), 0 30px 70px -20px rgba(0, 0, 0, .7);
  }
}
:root[data-theme="dark"] {
    --surface: #0a0f17;
    --surface-raised: #121a27;
    --surface-sunken: #070b11;
    --surface-ink: #111a28;
    --glass: rgba(10, 15, 23, .72);

    /* on #0a0f17: ink 17.1:1, ink-2 10.3:1, ink-3 6.7:1 */
    --ink: #eef2f7;
    --ink-2: #b4bfcd;
    --ink-3: #8d99ab;
    --on-ink: #eef2f7;
    --on-ink-2: #a9b5c5;

    --line: #1d2635;
    --line-strong: #2d394b;

    /* #05101d on #6aaef2 = 8.2:1 */
    --accent: #6aaef2;
    --accent-press: #8cc0f5;
    --accent-soft: #0f2238;
    --on-accent: #05101d;
    --focus: #8cc0f5;

    --success: #6fd39f; --success-bg: #0f2a1d;
    --warning: #f0c36b; --warning-bg: #2c220d;
    --danger:  #f29a9a; --danger-bg:  #2e1416;
    --info:    #8cc0f5; --info-bg:    #0f2238;

    --shadow-1: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-2: 0 2px 8px rgba(0, 0, 0, .35), 0 12px 30px -12px rgba(0, 0, 0, .6);
    --shadow-3: 0 6px 16px rgba(0, 0, 0, .35), 0 30px 70px -20px rgba(0, 0, 0, .7);
  }

:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- 1b. Fonts ---------- */
@font-face { font-family: "SMD Display"; src: url("/app-assets/fonts/poppins-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "SMD Display"; src: url("/app-assets/fonts/poppins-500.woff") format("woff"); font-weight: 500; font-style: normal; font-display: swap; }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + var(--stage-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom));
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); color: var(--ink); text-wrap: balance; }
ul, ol { padding-left: 1.2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent-soft); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--surface); text-decoration: none; font-weight: 600; transition: top var(--dur) var(--ease); }
.skip:focus { top: 12px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--lg { width: 24px; height: 24px; }

/* ---------- 3. Type scale ---------- */
.display {
  font-size: clamp(2.4rem, 1.5rem + 4vw, 4.4rem);
  line-height: 1.04;
  font-weight: 700;
  letter-spacing: -0.035em;
}
.h1 { font-size: clamp(2.05rem, 1.45rem + 2.5vw, 3.3rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.03em; }
.h2 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1.12; font-weight: 700; letter-spacing: -0.028em; }
.h3 { font-size: 1.25rem; line-height: 1.3; font-weight: 650; letter-spacing: -0.012em; }
.h4 { font-size: 1.0625rem; line-height: 1.35; font-weight: 650; letter-spacing: -0.008em; }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.muted { color: var(--ink-2); }
.subtle { color: var(--ink-3); font-size: .9375rem; }
.small { font-size: .875rem; }
.mono { font-family: var(--font-mono); font-size: .92em; letter-spacing: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 14px;
  font-size: .9688rem; font-weight: 600; letter-spacing: -0.005em;
  color: var(--accent);
}
.eyebrow .icon { width: 18px; height: 18px; }
.eyebrow--plain::before { display: none; }
.grad { color: var(--accent); }

/* ---------- 4. Layout ---------- */
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--text { max-width: calc(760px + var(--gutter) * 2); }
.section { padding-block: clamp(64px, 5rem + 3vw, 128px); }
.section--tight { padding-block: clamp(48px, 3rem + 2vw, 80px); }
.section--sunken { background: var(--surface-sunken); }
.section--raised { background: var(--surface-raised); }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 2rem + 1.5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head .lead { margin-top: 16px; }
.stack > * + * { margin-top: var(--stack, 16px); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.grid { display: grid; gap: clamp(16px, 1rem + .8vw, 24px); }
@media (min-width: 720px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 720px) and (max-width: 899px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 640px) and (max-width: 1079px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; }
.center { text-align: center; }

/* ---------- 5. Buttons ---------- */
.btn {
  --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: 999px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform 120ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { --btn-bd: var(--ink-3); text-decoration: none; }
.btn:active { transform: scale(.975); }
.btn .icon { width: 18px; height: 18px; transition: transform var(--dur) var(--ease); }
.btn:hover .icon--go { transform: translateX(3px); }
.btn--primary { --btn-bg: var(--accent); --btn-fg: var(--on-accent); --btn-bd: var(--accent); box-shadow: 0 1px 0 rgba(255,255,255,.12) inset, 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn--primary:hover { --btn-bg: var(--accent-press); --btn-bd: var(--accent-press); }
.btn--quiet { --btn-bg: var(--surface-raised); --btn-bd: var(--line); box-shadow: var(--shadow-1); }
.btn--quiet:hover { --btn-bd: var(--line-strong); }
.btn--ghost { --btn-bd: transparent; padding-inline: 14px; }
.btn--ghost:hover { --btn-bg: var(--surface-sunken); --btn-bd: transparent; }
.btn--light { --btn-bg: #fff; --btn-fg: #0e1b2c; --btn-bd: #fff; }
.btn--light:hover { --btn-bg: #e9eef5; --btn-bd: #e9eef5; }
.btn--outline-light { --btn-fg: var(--on-ink); --btn-bd: rgba(255,255,255,.28); }
.btn--outline-light:hover { --btn-bd: rgba(255,255,255,.6); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .9375rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn.is-busy { position: relative; color: transparent !important; pointer-events: none; }
.btn.is-busy::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--btn-fg); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; }
.link-arrow .icon { width: 16px; height: 16px; transition: transform var(--dur) var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* ---------- 6. Staging ribbon + review markers ---------- */
.stage-bar {
  position: relative; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 34px; padding: 6px var(--gutter);
  background: repeating-linear-gradient(-45deg, #fbf0d9, #fbf0d9 12px, #f7e7c3 12px, #f7e7c3 24px);
  color: #5c3e00; font-size: .8125rem; font-weight: 600; text-align: center; line-height: 1.35;
}
.stage-bar a { color: inherit; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .stage-bar { background: repeating-linear-gradient(-45deg, #2c220d, #2c220d 12px, #33280f 12px, #33280f 24px); color: #f0c36b; }
}
:root[data-theme="dark"] .stage-bar { background: repeating-linear-gradient(-45deg, #2c220d, #2c220d 12px, #33280f 12px, #33280f 24px); color: #f0c36b; }
.rv {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
  margin-inline: 4px; padding: 1px 8px; border-radius: 999px;
  background: var(--warning-bg); color: var(--warning); border: 1px dashed currentColor;
  font: 600 .6875rem/1.6 var(--font-sans); letter-spacing: .02em; text-transform: none; white-space: nowrap;
  text-decoration: none;
}
.rv:hover { text-decoration: underline; }
.no-review .rv { display: none; }

/* ---------- 7. Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  view-transition-name: site-header;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: var(--surface); } }
@media (prefers-reduced-transparency: reduce) { .site-header { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.site-header__in { height: 100%; display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; flex: none; border-radius: 8px; }
.brand img { height: 40px; width: auto; }
@media (min-width: 1080px) { .brand img { height: 44px; } }
.nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .btn--ghost, .header-actions .btn--quiet { display: none; }
.menu-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-right: -8px;
  border: 0; border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer;
}
.menu-btn:hover { background: var(--surface-sunken); }
.menu-btn__bars { position: relative; width: 20px; height: 12px; }
.menu-btn__bars span { position: absolute; left: 0; width: 100%; height: 1.75px; border-radius: 2px; background: currentColor; transition: transform var(--dur) var(--ease), top var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.menu-btn__bars span:nth-child(1) { top: 0; }
.menu-btn__bars span:nth-child(2) { top: 10px; }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__bars span:nth-child(2) { top: 5px; transform: rotate(-45deg); }
@media (max-width: 429px) { .header-actions .btn--primary { padding-inline: 14px; } .brand img { height: 36px; } }
@media (max-width: 359px) { .header-actions .btn--primary { display: none; } }

@media (min-width: 1080px) {
  .nav { display: flex; align-items: center; gap: 2px; margin-left: 24px; }
  .nav a {
    position: relative; padding: 8px 12px; border-radius: 999px;
    color: var(--ink-2); font-size: .9375rem; font-weight: 550; text-decoration: none;
    transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
  }
  .nav a:hover { color: var(--ink); background: var(--surface-sunken); }
  .nav a[aria-current="page"] { color: var(--ink); }
  .nav a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
  .header-actions .btn--ghost, .header-actions .btn--quiet { display: inline-flex; }
  .header-actions .header-phone { display: inline-flex; }
  .menu-btn { display: none; }
}
.header-phone { display: none; align-items: center; gap: 6px; padding: 8px 10px; color: var(--ink-2); font-size: .9375rem; font-weight: 550; text-decoration: none; border-radius: 999px; }
.header-phone:hover { color: var(--ink); background: var(--surface-sunken); }
@media (min-width: 1080px) and (max-width: 1239px) { .header-actions .header-phone { display: none; } }

/* Mobile sheet menu */
.sheet {
  position: fixed; inset: calc(var(--header-h) + var(--stage-offset, 0px)) 0 0 0; z-index: 49;
  background: var(--surface);
  overflow-y: auto; overscroll-behavior: contain;
  padding: 8px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  visibility: hidden; opacity: 0; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform 320ms var(--ease-out), visibility 0s linear var(--dur);
}
.sheet.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity var(--dur) var(--ease), transform 320ms var(--ease-out), visibility 0s; }
.sheet__nav { display: grid; }
.sheet__nav a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 56px; padding: 0 2px;
  border-bottom: 1px solid var(--line);
  color: var(--ink); font-size: 1.25rem; font-weight: 600; letter-spacing: -0.015em; text-decoration: none;
}
.sheet__nav a .icon { color: var(--ink-3); }
.sheet__nav a[aria-current="page"] { color: var(--accent); }
.sheet__actions { display: grid; gap: 10px; margin-top: 24px; }
.sheet__contact { margin-top: 28px; display: grid; gap: 6px; color: var(--ink-2); font-size: .9375rem; }
.sheet__contact a { color: var(--ink-2); }
@media (min-width: 1080px) { .sheet { display: none; } }
body.menu-open { overflow: hidden; }

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  background: var(--surface-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(22px, 1.2rem + 1vw, 32px);
  box-shadow: var(--shadow-1);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
a.card { display: block; color: inherit; text-decoration: none; }
a.card:hover, .card--hover:hover { border-color: var(--line-strong); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card__icon {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-bottom: 18px;
  border-radius: 12px; background: var(--accent-soft); color: var(--accent);
}
.card__icon .icon { width: 22px; height: 22px; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* Service / price cards */
.svc { display: flex; flex-direction: column; height: 100%; }
.svc__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.svc__name { font-size: 1.125rem; font-weight: 650; letter-spacing: -0.012em; }
.svc__price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.svc__amount { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.svc__unit { color: var(--ink-3); font-size: .9375rem; }
.svc__desc { color: var(--ink-2); font-size: .9688rem; margin: 10px 0 18px; }
.svc__list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: .9375rem; }
.svc__list li { display: flex; gap: 10px; align-items: flex-start; }
.svc__list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); stroke-width: 2.2; }
.svc .btn { margin-top: auto; }
.svc--featured { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow-2); }
.svc--featured::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 42%);
}
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-sunken); color: var(--ink-2); font-size: .75rem; font-weight: 650; letter-spacing: .01em; white-space: nowrap;
}
.tag--accent { background: var(--accent-soft); color: var(--accent); }

/* ---------- 9. Hero ---------- */
.hero { position: relative; overflow: clip; padding-block: clamp(40px, 2rem + 4vw, 96px) clamp(64px, 4rem + 4vw, 128px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 78% 30%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%),
    radial-gradient(40% 40% at 10% 0%, color-mix(in srgb, var(--brand-navy) 6%, transparent), transparent 70%);
}
.hero__grid { display: grid; gap: clamp(40px, 3rem + 2vw, 72px); align-items: center; }
@media (min-width: 1000px) { .hero__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.hero .display { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero__points { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 10px 22px; color: var(--ink-2); font-size: .9375rem; }
@media (min-width: 560px) { .hero__points { grid-template-columns: repeat(2, max-content); } }
.hero__points li { display: flex; align-items: center; gap: 8px; }
.hero__points .icon { width: 18px; height: 18px; color: var(--accent); stroke-width: 2.2; }

/* Signature element: the letter + its journey */
.letter-stage { position: relative; max-width: 520px; margin-inline: auto; width: 100%; padding: 8px 0 28px; }
.letter {
  position: relative; z-index: 2;
  aspect-ratio: 8.5 / 10.4;
  background: #fff; color: #18263a;
  border-radius: 6px;
  border: 1px solid rgba(14, 27, 44, .08);
  box-shadow: 0 1px 1px rgba(14,27,44,.04), 0 24px 60px -24px rgba(14,27,44,.35), 0 50px 90px -40px rgba(10,91,171,.25);
  padding: 9% 10% 8%;
  font-size: clamp(9px, 1.7vw, 11.5px); line-height: 1.55;
  transform: rotate(-1.6deg);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .letter { box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); }
}
:root[data-theme="dark"] .letter { box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.06); }
.letter__mark { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 9%; }
.letter__logo { width: 34%; height: auto; }
.letter__date { text-align: right; color: #5b6a7f; }
.letter__to { margin-bottom: 7%; color: #33445b; }
.letter__re { font-weight: 700; color: #0e1b2c; margin-bottom: 5%; font-size: 1.12em; letter-spacing: -0.01em; }
.letter__line { height: .62em; border-radius: 4px; background: #e8edf3; margin: 0 0 .78em; }
.letter__line.w90 { width: 90%; } .letter__line.w75 { width: 75%; } .letter__line.w60 { width: 60%; } .letter__line.w40 { width: 40%; }
.letter__line.hl { background: linear-gradient(90deg, #dbe8f7, #e8edf3); }
.letter__para { margin-bottom: 6%; }
.letter__sig { margin-top: 8%; display: flex; align-items: end; justify-content: space-between; }
.letter__sig-line { width: 42%; border-top: 1px solid #c3ccd8; padding-top: 4px; color: #5b6a7f; font-size: .92em; }
.letter__stamp {
  display: grid; place-items: center; width: 22%; aspect-ratio: 1; border-radius: 50%;
  border: 1.5px dashed #0a5bab; color: #0a5bab; font-weight: 700; font-size: .8em; letter-spacing: .08em; text-transform: uppercase; text-align: center; line-height: 1.2;
  transform: rotate(-12deg);
}
.letter-sample { position: absolute; top: 12px; right: -6px; z-index: 3; }
.journey {
  position: relative; z-index: 3;
  margin: -14% 6% 0 auto; width: min(340px, 86%);
  background: var(--surface-raised); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius-l);
  box-shadow: var(--shadow-3);
  padding: 18px 20px;
}
.journey__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.journey__title { font-size: .875rem; font-weight: 650; }
.journey__num { font-family: var(--font-mono); font-size: .75rem; color: var(--ink-3); }
.journey__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.journey__step { position: relative; display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px; min-height: 34px; font-size: .875rem; color: var(--ink-3); }
.journey__step::before { content: ""; position: absolute; left: 10.25px; top: 22px; bottom: -12px; width: 1.5px; background: var(--line); }
.journey__step:last-child::before { display: none; }
.journey__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface-raised); }
.journey__dot .icon { width: 12px; height: 12px; stroke-width: 3; opacity: 0; transform: scale(.6); }
.journey__when { font-size: .75rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.journey__step.is-done { color: var(--ink); }
.journey__step.is-done .journey__dot { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.journey__step.is-done .journey__dot .icon { opacity: 1; transform: none; }
.journey__step.is-done::before { background: var(--accent); }
.journey__step.is-now .journey__dot { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.journey__step.is-now { color: var(--ink); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .journey__dot, .journey__dot .icon, .journey__step::before { transition: background-color 400ms var(--ease), border-color 400ms var(--ease), box-shadow 400ms var(--ease), opacity 300ms var(--ease), transform 400ms var(--ease-spring); }
  .letter { animation: letter-in 900ms var(--ease-out) both; }
  .journey { animation: journey-in 900ms var(--ease-out) 220ms both; }
}
@keyframes letter-in { from { opacity: 0; transform: translateY(24px) rotate(-4deg); } to { opacity: 1; transform: rotate(-1.6deg); } }
@keyframes journey-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* ---------- 10. Logos/assurance strip ---------- */
.assure { display: grid; gap: 14px; }
@media (min-width: 720px) { .assure { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.assure__item { display: flex; gap: 12px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--surface-raised); border: 1px solid var(--line); }
.assure__item .icon { color: var(--accent); margin-top: 2px; }
.assure__item strong { display: block; font-size: .9688rem; letter-spacing: -0.01em; }
.assure__item span { color: var(--ink-2); font-size: .875rem; line-height: 1.45; }

/* ---------- 11. Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.steps--4 { }
@media (min-width: 1080px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 900px) and (max-width: 1079px) { .steps--4, .steps--5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1080px) { .steps--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--radius-l); background: var(--surface-raised); border: 1px solid var(--line); counter-increment: step; }
.step__num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 18px;
  border-radius: 50%; background: var(--ink); color: var(--surface);
  font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: .9688rem; margin: 0; }

/* ---------- 12. Split feature ---------- */
.split { display: grid; gap: clamp(32px, 2rem + 3vw, 72px); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .split--flip > :first-child { order: 2; } }
.media { position: relative; border-radius: var(--radius-xl); overflow: hidden; background: var(--surface-sunken); box-shadow: var(--shadow-2); aspect-ratio: 3 / 2; }
.media img { width: 100%; height: 100%; object-fit: cover; }
.checklist { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
@media (min-width: 560px) { .checklist--2 { grid-template-columns: 1fr 1fr; } }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist .icon { flex: none; width: 20px; height: 20px; margin-top: 3px; color: var(--accent); stroke-width: 2.2; }

/* Tracking demo panel */
.track-card { padding: 0; overflow: hidden; }
.track-card__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.track-card__body { padding: 8px 22px 22px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .8125rem; font-weight: 650; }
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-pill--success { background: var(--success-bg); color: var(--success); }
.status-pill--info { background: var(--info-bg); color: var(--info); }
.status-pill--warning { background: var(--warning-bg); color: var(--warning); }

/* ---------- 13. Comparison table ---------- */
.compare-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface-raised); }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .9375rem; }
.compare th, .compare td { padding: 14px 18px; text-align: center; border-bottom: 1px solid var(--line); }
.compare th:first-child, .compare td:first-child { text-align: left; position: sticky; left: 0; background: var(--surface-raised); }
.compare thead th { font-size: .875rem; font-weight: 650; vertical-align: bottom; }
.compare thead th small { display: block; color: var(--ink-3); font-weight: 600; font-size: .8125rem; margin-top: 2px; }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--accent); }
.compare .no { color: var(--ink-3); }
.compare .icon { margin-inline: auto; width: 20px; height: 20px; stroke-width: 2.2; }

/* ---------- 14. FAQ ---------- */
.faq-list { display: grid; gap: 10px; }
.faq {
  border-radius: var(--radius); background: var(--surface-raised); border: 1px solid var(--line);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq[open] { border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 14px 20px; cursor: pointer; list-style: none;
  font-weight: 600; letter-spacing: -0.01em; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq__chev { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-sunken); color: var(--ink-2); transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease); }
.faq__chev .icon { width: 16px; height: 16px; stroke-width: 2.2; }
.faq[open] .faq__chev { transform: rotate(180deg); background: var(--accent-soft); color: var(--accent); }
.faq__a { padding: 0 20px 20px; color: var(--ink-2); max-width: 72ch; }
.faq__a p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq[open] .faq__a { animation: faq-in 320ms var(--ease-out); }
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- 15. Notices ---------- */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius); background: var(--info-bg); color: var(--ink); border: 1px solid color-mix(in srgb, var(--info) 22%, transparent); font-size: .9375rem; }
.notice .icon { color: var(--info); margin-top: 2px; }
.notice--warning { background: var(--warning-bg); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.notice--warning .icon { color: var(--warning); }
.notice--success { background: var(--success-bg); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.notice--success .icon { color: var(--success); }
.notice--danger { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.notice--danger .icon { color: var(--danger); }
.notice p { margin: 0; }
.notice strong { display: block; margin-bottom: 2px; }

.disclaimer-band { border-block: 1px solid var(--line); background: var(--surface-raised); }
.disclaimer-band__in { display: grid; gap: 14px; padding-block: 28px; }
@media (min-width: 800px) { .disclaimer-band__in { grid-template-columns: auto 1fr; gap: 24px; align-items: start; } }
.disclaimer-band h2 { font-size: 1rem; font-weight: 650; letter-spacing: -0.005em; display: flex; gap: 10px; align-items: center; }
.disclaimer-band p { margin: 0; color: var(--ink-2); font-size: .9375rem; max-width: 80ch; }

/* ---------- 16. CTA band ---------- */
.cta {
  position: relative; overflow: hidden;
  border-radius: var(--radius-xl);
  background: var(--surface-ink); color: var(--on-ink);
  padding: clamp(36px, 2rem + 4vw, 80px) clamp(24px, 1rem + 4vw, 72px);
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1fr) auto; } }
.cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 120% at 100% 0%, rgba(10, 91, 171, .55), transparent 60%), radial-gradient(50% 80% at 0% 100%, rgba(24, 48, 75, .9), transparent 70%); }
.cta > * { position: relative; }
.cta h2 { color: var(--on-ink); }
.cta p { color: var(--on-ink-2); margin: 14px 0 0; max-width: 56ch; }
.cta .actions { justify-content: flex-start; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cta { border: 1px solid var(--line); }
}
:root[data-theme="dark"] .cta { border: 1px solid var(--line); }

/* ---------- 17. Page head ---------- */
.page-head { position: relative; padding-block: clamp(40px, 2rem + 3vw, 88px) clamp(32px, 1.5rem + 2vw, 56px); }
.page-head::before { content: ""; position: absolute; inset: 0 0 auto; height: 100%; z-index: -1; background: radial-gradient(60% 80% at 85% 0%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 70%); }
.page-head .h1 { max-width: 20ch; }
.page-head .lead { margin-top: 18px; }
.page-head .actions { margin-top: 28px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 18px; padding: 0; list-style: none; font-size: .875rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }

/* ---------- 18. Prose / legal ---------- */
.legal { display: grid; gap: 40px; }
@media (min-width: 1000px) { .legal { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; } }
.toc { position: sticky; top: calc(var(--header-h) + var(--stage-h) + 24px); display: none; }
@media (min-width: 1000px) { .toc { display: block; } }
.toc h2 { font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--ink-2); font-size: .9063rem; text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); border-left-color: var(--accent); font-weight: 600; }
.prose { max-width: var(--max-text); }
.prose h2 { font-size: 1.5rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.02em; margin: 48px 0 14px; scroll-margin-top: calc(var(--header-h) + 24px); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.125rem; font-weight: 650; margin: 28px 0 10px; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--ink-3); }
.prose strong { color: var(--ink); }
.prose .notice { margin: 24px 0; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; color: var(--ink-3); font-size: .9375rem; }
.glance { display: grid; gap: 14px; margin: 0 0 40px; }
@media (min-width: 720px) { .glance { grid-template-columns: repeat(3, 1fr); } }
.glance .card { padding: 20px; }
.glance h3 { font-size: 1rem; margin: 0 0 4px; display: flex; gap: 8px; align-items: center; }
.glance h3 .icon { color: var(--accent); }
.glance p { font-size: .9375rem; color: var(--ink-2); margin: 0; }

/* ---------- 19. Forms ---------- */
.form-card { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(24px, 1rem + 2vw, 40px); box-shadow: var(--shadow-2); }
.fields { display: grid; gap: 18px; }
@media (min-width: 640px) { .fields--2 { grid-template-columns: 1fr 1fr; align-items: start; } .fields--2 .field--full { grid-column: 1 / -1; } }
.field { display: grid; gap: 7px; }
.field label, .field .label { font-size: .9375rem; font-weight: 600; }
.field__opt { color: var(--ink-3); font-weight: 500; }
.input, .textarea, .select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); color: var(--ink);
  font-size: 1rem; line-height: 1.4;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
  -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 140px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); opacity: .85; }
.input:hover, .textarea:hover { border-color: var(--ink-3); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); background-color: var(--surface-raised); box-shadow: 0 0 0 4px var(--accent-soft); }
.field.has-error .input, .field.has-error .textarea { border-color: var(--danger); }
.field.has-error .input:focus, .field.has-error .textarea:focus { box-shadow: 0 0 0 4px var(--danger-bg); }
.field__hint { color: var(--ink-3); font-size: .875rem; }
.field__error { display: none; color: var(--danger); font-size: .875rem; font-weight: 550; }
.field.has-error .field__error { display: flex; gap: 6px; align-items: center; }
.pw { position: relative; }
.pw .input { padding-right: 52px; }
.pw__toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: var(--ink-3); border-radius: 10px; cursor: pointer; }
.pw__toggle:hover { color: var(--ink); background: var(--surface-sunken); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9375rem; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.divider { display: flex; align-items: center; gap: 14px; color: var(--ink-3); font-size: .875rem; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-status { display: none; }
.form-status.is-shown { display: flex; }
.auth { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: minmax(0, 1fr); place-items: start center; padding-block: clamp(32px, 2rem + 4vw, 88px); }
.auth__box { width: 100%; max-width: calc(460px + var(--gutter) * 2); }
.auth__head { text-align: center; margin-bottom: 28px; }
.auth__head .lead { margin: 10px auto 0; font-size: 1.0625rem; }
.auth__foot { margin-top: 22px; text-align: center; color: var(--ink-2); font-size: .9375rem; }
.auth__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; margin-top: 18px; color: var(--ink-3); font-size: .8125rem; }
.auth__trust span { display: inline-flex; gap: 6px; align-items: center; }
.google-g { width: 18px; height: 18px; }

/* Contact */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px; align-items: start; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--surface-raised); border: 1px solid var(--line); }
.contact-item .card__icon { margin: 0; width: 40px; height: 40px; }
.contact-item h3 { font-size: .875rem; font-weight: 600; color: var(--ink-3); margin-bottom: 2px; }
.contact-item a, .contact-item p { color: var(--ink); font-weight: 600; text-decoration: none; margin: 0; }
.contact-item a:hover { color: var(--accent); }
.hours { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.hours td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.hours tr:last-child td { border-bottom: 0; }
.hours td:last-child { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }

/* Blog */
.empty { text-align: center; padding: clamp(40px, 3rem + 3vw, 88px) 24px; border: 1px dashed var(--line-strong); border-radius: var(--radius-xl); background: var(--surface-raised); }
.empty .card__icon { margin-inline: auto; }
.empty h2 { margin-bottom: 8px; }
.empty p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 22px; }

/* Use-cases */
.uses { display: grid; gap: 14px; }
@media (min-width: 720px) { .uses { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .uses { grid-template-columns: repeat(3, 1fr); } }
.use h3 { margin-bottom: 6px; }
.use p { color: var(--ink-2); font-size: .9375rem; }
.use ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .9063rem; color: var(--ink-2); }
.use li { display: flex; gap: 8px; }
.use li::before { content: ""; flex: none; width: 5px; height: 5px; margin-top: .62em; border-radius: 50%; background: var(--accent); }

/* ---------- 20. Footer ---------- */
.site-footer { margin-top: 0; padding-block: 64px 32px; background: var(--surface-raised); border-top: 1px solid var(--line); font-size: .9375rem; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; } }
.footer-brand img { height: 42px; width: auto; margin-bottom: 16px; }
.footer-brand p { color: var(--ink-2); max-width: 36ch; }
.footer-contact { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; color: var(--ink-2); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--ink-3); }
.footer-contact a { color: var(--ink-2); text-decoration: none; }
.footer-contact a:hover { color: var(--ink); text-decoration: underline; }
.footer-col h2 { font-size: .8125rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.footer-col a { display: inline-block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; color: var(--ink-3); font-size: .8438rem; }
.footer-legal { margin-top: 28px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface-sunken); color: var(--ink-2); font-size: .8438rem; line-height: 1.55; }

/* ---------- 21. Mobile quick-dock ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px;
  padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom));
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  border-top: 1px solid var(--line);
  transition: transform 320ms var(--ease-out);
}
@media (prefers-reduced-transparency: reduce) { .dock { background: var(--surface); backdrop-filter: none; -webkit-backdrop-filter: none; } }
.dock a {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; border-radius: 999px;
  font-size: .9375rem; font-weight: 600; text-decoration: none;
  color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line);
}
.dock a.dock__primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.dock .icon { width: 18px; height: 18px; }
body.menu-open .dock { transform: translateY(110%); }
@media (min-width: 1080px) { .dock { display: none; } }

/* ---------- 22. 404 ---------- */
.nf { text-align: center; padding-block: clamp(64px, 5rem + 4vw, 160px); }
.nf__code { font-family: var(--font-mono); color: var(--accent); font-weight: 600; margin-bottom: 14px; }
.nf .lead { margin: 16px auto 32px; }
.nf .actions { justify-content: center; }

/* ---------- 23. Motion: reveal + view transitions ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
/* Page loading: a thin bar at the top while the next page is on its way (navigation used to
   cross-fade, which made every click wait an extra half second; it now swaps instantly). */
.nav-progress { position: fixed; z-index: 1000; top: 0; left: 0; right: 0; height: 3px; padding-top: env(safe-area-inset-top, 0px); pointer-events: none; opacity: 0; transition: opacity 150ms ease; }
.nav-progress::after { content: ""; display: block; height: 3px; width: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.nav-progress.is-on { opacity: 1; }
.nav-progress.is-on::after { transform: scaleX(.85); transition: transform 8s cubic-bezier(.08, .8, .2, 1); }
@media (prefers-reduced-motion: reduce) { .nav-progress.is-on::after { transform: scaleX(.85); transition: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- 24. Print ---------- */
@media print {
  .site-header, .dock, .sheet, .stage-bar, .cta, .site-footer .footer-grid { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
  .toc { display: none !important; }
  .legal { display: block; }
}

/* ---------- 25. Small utilities (replace inline styles; CSP has no 'unsafe-inline') ---------- */
.pt-0 { padding-top: 0 !important; }
.stack--20 { --stack: 20px; }
.stack--14 { --stack: 14px; }
.mx-auto { margin-inline: auto; }
.measure { max-width: 68ch; }
.icon-head { display: flex; gap: 8px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px 16px; justify-content: space-between; align-items: flex-start; }
.row-between--center { align-items: center; }
.actions--center { justify-content: center; }
.track-num { margin: 2px 0 14px; }
.review-item { scroll-margin-top: 110px; }
.toc a.toc__group { font-weight: 650; color: var(--ink); }
.footer-grid { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); } }
.footer-contact li { flex-wrap: wrap; }
.footer-contact a, .contact-item a { overflow-wrap: anywhere; }
.contact-item > div { min-width: 0; }
/* sr-only children of non-positioned scroll containers must not escape the clip */
.compare td, .compare th { position: relative; }
.nav a, .header-phone { white-space: nowrap; }
@media (min-width: 1080px) and (max-width: 1359px) { .header-actions .header-phone { display: none; } }
@media (max-width: 519px) { .hero .actions .btn, .page-head .actions .btn { flex: 1 1 100%; } }
.letter-stage { max-width: 480px; }
.split .h2 + .lead, .split .h2 + p { margin-top: 16px; }
@media (min-width: 1080px) { .uses--4 { grid-template-columns: repeat(4, 1fr); } }
.use--cta { background: var(--accent-soft); border-color: transparent; }
.use--cta .card__icon { background: var(--accent); color: var(--on-accent); }
.use--cta h3 { color: var(--accent); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .use--cta h3 { color: var(--ink); }
}
:root[data-theme="dark"] .use--cta h3 { color: var(--ink); }

/* ---------- Responsive guards (shared). Found by the width sweep at 320–375px: grid and flex
   children kept their content's natural width (long titles, fingerprints, labels) and pushed the page
   sideways. Children may shrink; long words break; headers and button rows wrap. ---------- */
.cols > *, .cols--even > *, .stack-l > *, .grid > *, .notice > *, .check > span, .filters > * { min-width: 0; }
.answer, .check > span, .notice strong, .notice p { overflow-wrap: anywhere; }
.panel__head { flex-wrap: wrap; row-gap: 8px; }
.btn--block, .btn--lg { white-space: normal; text-align: center; }
.filters .input, .filters .select { max-width: 100%; }
.theme-switch { flex-wrap: wrap; max-width: 100%; }
/* Comfortable targets for small text links in panel headers and similar spots */
.panel__head a:not(.btn), .row-link, .see-all { display: inline-flex; align-items: center; min-height: 32px; }
body { overflow-wrap: break-word; }
.input, .select, .textarea { min-width: 0; max-width: 100%; }
@media (max-width: 480px) {
  .btn { white-space: normal; text-align: center; }
  .filters > * { flex: 1 1 100%; }
}
.toolbar > *, .composer__to > *, .composer__to .grid > * { min-width: 0; max-width: 100%; }
.composer > * { min-width: 0; }
@media (max-width: 480px) { .pill { white-space: normal; } }

/* Progress line (case milestones), shared by both portals */
.milestones { list-style: none; margin: 0; padding: 0; display: flex; align-items: flex-start; overflow-x: auto; scrollbar-width: none; }
.milestones::-webkit-scrollbar { display: none; }
.milestones li { position: relative; flex: 1 0 74px; display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--ink-3); font-size: .8125rem; font-weight: 600; }
.milestones li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.milestones li:first-child::before { display: none; }
.milestones li.is-done::before, .milestones li.is-now::before { background: var(--accent); }
.milestones__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-raised); border: 2px solid var(--line-strong); color: #fff; }
.milestones__dot .icon { width: 14px; height: 14px; }
.milestones li.is-done { color: var(--ink-2); }
.milestones li.is-done .milestones__dot { background: var(--accent); border-color: var(--accent); }
.milestones li.is-now { color: var(--accent); }
.milestones li.is-now .milestones__dot { border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.milestones li.is-now .milestones__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.milestones__label { max-width: 11ch; line-height: 1.25; }
