/* =============================================================================
   drivemind.online — the whole stylesheet.

   This is a web rendering of the app's design system, not a lookalike. Every
   token below is copied from DriveTracker/DesignSystem/Tokens/ and the two
   themes keep their names: "Paper" (light) and "Native glass" (dark).

   Three properties of that system are load-bearing and are preserved here:

   1. The ink ladder is *ink at reduced alpha*, never five hand-picked greys.
      DSColor.swift says why: retune the ink hue and the whole ladder retunes
      with it instead of rotting independently. Hence --ink-rgb + rgb(… / a).
   2. Elevation is rendered differently per theme. Light carries it with a
      shadow on pure-white cards over a warm canvas. Dark carries it with a
      lighter surface value, a hairline, and a top-edge specular highlight —
      because a shadow is invisible on near-black.
   3. Hairlines are 0.5px, not 1px. DSStroke.hairline, and the stated visual
      premise of the light theme: a 1px border at 3x reads as a drawn box
      rather than as paper.

   No @font-face, no @import, no external URL of any kind. The site advertises
   that the app makes no third-party requests; the site had better not either.
   ============================================================================= */

/* ---------------------------------------------------------------- tokens -- */

:root {
  color-scheme: light dark;

  /* Base values — the only hand-authored colours. Everything else derives.
     DSColor.inkLight / emberLight. Deliberately not #000: pure black type on
     paper is harsh. */
  --ink-rgb: 18 17 20;            /* #121114 warm near-black */
  --ember-rgb: 192 73 42;         /* #C0492A */

  /* Surfaces — DSColor.UI.canvas / surface / surfaceRaised / surfaceSunken */
  --canvas: #F6F4F0;              /* warm off-white */
  --canvas-elevated: #FBFAF8;
  --surface: #FFFFFF;             /* pure white cards */
  --surface-raised: #FFFFFF;
  --surface-sunken: #EFEDE8;

  /* The ink ladder — alpha, not greys. DSColor.dynamicInk. */
  --ink: rgb(var(--ink-rgb));
  --ink-secondary: rgb(var(--ink-rgb) / 0.62);
  --ink-tertiary: rgb(var(--ink-rgb) / 0.42);
  --ink-quaternary: rgb(var(--ink-rgb) / 0.26);

  /* Lines — DSColor.hairline / hairlineStrong / separator */
  --hairline: rgb(var(--ink-rgb) / 0.10);
  --hairline-strong: rgb(var(--ink-rgb) / 0.18);
  --separator: rgb(var(--ink-rgb) / 0.07);

  /* Accent — "ember". DSColor.emberLight, and accentSoft = emberSoft. */
  --ember: rgb(var(--ember-rgb));
  --ember-soft: rgb(var(--ember-rgb) / 0.13);
  --ember-hover: #A23A1F;         /* emberLightHC, reused as the hover tone */
  --on-ember: #FFFFFF;            /* accentInk on accent = 4.97:1 in light */

  /* Elevation. Light = shadow; see the per-theme block below for dark. */
  --shadow-sm: 0 1px 2px rgb(var(--ink-rgb) / 0.05),
               0 1px 3px rgb(var(--ink-rgb) / 0.04);
  --shadow-md: 0 2px 4px rgb(var(--ink-rgb) / 0.04),
               0 6px 16px rgb(var(--ink-rgb) / 0.07);
  --shadow-lg: 0 4px 8px rgb(var(--ink-rgb) / 0.04),
               0 16px 40px rgb(var(--ink-rgb) / 0.10);
  --specular: transparent;        /* dark-only; see below */

  /* Radii — DSRadius. Five values, everything collapses onto them. */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Spacing — DSSpace. A 4pt grid with a 2pt half-step. */
  --s-hair: 2px;
  --s-xxs: 4px;
  --s-xs: 8px;
  --s-sm: 12px;
  --s-md: 16px;
  --s-lg: 20px;
  --s-xl: 24px;
  --s-xxl: 32px;
  --s-xxxl: 40px;

  /* Strokes — DSStroke. hairline is a true half-pixel. */
  --stroke-hairline: 0.5px;
  --stroke-regular: 1px;

  /* Motion — DSMotion's register: quick, and never bouncy on content. */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --dur-fast: 140ms;
  --dur: 240ms;
  --dur-slow: 420ms;

  /* Layout */
  --measure: 68rem;               /* the wide content column */
  --measure-prose: 40rem;         /* legal + support reading column */
  --header-h: 56px;

  /* Type. Fluid, so there are no breakpoint cliffs between 320px and ultrawide. */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --t-display: clamp(2.5rem, 1.5rem + 4.4vw, 4.5rem);
  --t-h1: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  --t-h2: clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);
  --t-h3: clamp(1.1875rem, 1.1rem + 0.5vw, 1.4375rem);
  --t-body-lg: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  --t-body: 1.0625rem;
  --t-sm: 0.9375rem;
  --t-xs: 0.8125rem;
}

/* Dark — "Native glass". A near-black canvas, progressively lighter elevated
   surfaces, a system-material feel. */
@media (prefers-color-scheme: dark) {
  :root {
    --ink-rgb: 244 242 239;       /* #F4F2EF warm near-white */
    --ember-rgb: 255 122 92;      /* #FF7A5C */

    --canvas: #0B0B0C;
    --canvas-elevated: #131315;
    --surface: #1A1A1D;
    --surface-raised: #242428;
    --surface-sunken: #08080A;

    --ink-secondary: rgb(var(--ink-rgb) / 0.68);
    --ink-tertiary: rgb(var(--ink-rgb) / 0.48);
    --ink-quaternary: rgb(var(--ink-rgb) / 0.30);

    --hairline: rgb(var(--ink-rgb) / 0.12);
    --hairline-strong: rgb(var(--ink-rgb) / 0.24);
    --separator: rgb(var(--ink-rgb) / 0.09);

    --ember-soft: rgb(var(--ember-rgb) / 0.20);
    --ember-hover: #FF9679;
    --on-ember: #1A0A05;          /* accentInk on accent = 7.37:1 in dark */

    /* A shadow is invisible on near-black. Elevation is carried by the surface
       value, the hairline, and a specular top edge instead. */
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: 0 24px 64px rgb(0 0 0 / 0.55);
    --specular: rgb(255 255 255 / 0.07);
  }
}

/* High contrast. DSColor reads accessibilityContrast on every token and it is
   explicitly not a no-op — the ink ladder pushes toward opaque and hairlines
   strengthen. */
@media (prefers-contrast: more) {
  :root {
    --ink-rgb: 0 0 0;
    --ember-rgb: 162 58 31;
    --canvas: #FFFFFF;
    --surface: #FFFFFF;
    --ink-secondary: rgb(var(--ink-rgb) / 0.80);
    --ink-tertiary: rgb(var(--ink-rgb) / 0.64);
    --hairline: rgb(var(--ink-rgb) / 0.24);
    --hairline-strong: rgb(var(--ink-rgb) / 0.36);
  }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root {
    --ink-rgb: 255 255 255;
    --ember-rgb: 255 150 121;
    --canvas: #000000;
    --surface: #1F1F23;
    --ink-secondary: rgb(var(--ink-rgb) / 0.84);
    --ink-tertiary: rgb(var(--ink-rgb) / 0.68);
    --hairline: rgb(var(--ink-rgb) / 0.30);
    --hairline-strong: rgb(var(--ink-rgb) / 0.44);
  }
}

/* ----------------------------------------------------------------- reset -- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-lg));
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.028em; font-weight: 640; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }

a { color: var(--ember); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--ember-hover); }

:focus-visible {
  outline: 2px solid var(--ember);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: var(--ember-soft); }

.skip {
  position: absolute; left: var(--s-md); top: -100px; z-index: 100;
  padding: var(--s-sm) var(--s-md); border-radius: var(--r-md);
  background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg); border: var(--stroke-hairline) solid var(--hairline);
  text-decoration: none; font-weight: 600;
  transition: top var(--dur) var(--ease);
}
.skip:focus { top: calc(var(--header-h) + var(--s-xs)); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* ---------------------------------------------------------------- layout -- */

.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--s-lg); }
@media (min-width: 40rem) { .wrap { padding-inline: var(--s-xxl); } }

.section { padding-block: clamp(var(--s-xxxl), 8vw, 6.5rem); }
.section--tight { padding-block: clamp(var(--s-xxl), 5vw, 4rem); }
.section--sunken { background: var(--surface-sunken); }
.section + .section--sunken,
.section--sunken + .section { border-top: var(--stroke-hairline) solid var(--separator); }

.stack { display: grid; gap: var(--s-md); }
.stack--lg { gap: var(--s-xl); }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* ---------------------------------------------------------------- header -- */

.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgb(from var(--canvas) r g b / 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: var(--stroke-hairline) solid var(--separator);
}
@supports not (background: rgb(from white r g b / 0.5)) {
  .header { background: var(--canvas); }
}

.header .wrap { display: flex; align-items: center; gap: var(--s-md); }

.brand {
  display: inline-flex; align-items: center; gap: var(--s-xs);
  font-weight: 680; font-size: 1.0625rem; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand .mark { width: 26px; height: 26px; border-radius: var(--r-xs); flex: none; }

.nav { display: flex; align-items: center; gap: var(--s-lg); }
.nav a {
  color: var(--ink-secondary); text-decoration: none;
  font-size: var(--t-sm); font-weight: 520;
  transition: color var(--dur-fast) var(--ease);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 46rem) { .nav .nav-hide { display: none; } }

/* --------------------------------------------------------------- buttons -- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-xs);
  padding: 0.8125rem 1.375rem;
  border-radius: var(--r-md);
  border: var(--stroke-hairline) solid transparent;
  font: inherit; font-size: var(--t-body); font-weight: 600; letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform var(--dur-fast) var(--ease),
              background-color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease);
}
.btn:active { transform: scale(0.975); }

.btn--primary { background: var(--ember); color: var(--on-ember); box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--ember-hover); color: var(--on-ember); }

.btn--secondary {
  background: var(--surface); color: var(--ink);
  border-color: var(--hairline); box-shadow: var(--shadow-sm);
}
.btn--secondary:hover { background: var(--surface-raised); color: var(--ink); border-color: var(--hairline-strong); }

.btn--sm { padding: 0.5rem 0.9375rem; font-size: var(--t-sm); border-radius: var(--r-sm); }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-sm); }
.center .btn-row { justify-content: center; }

/* On a narrow phone two buttons of different intrinsic widths stack into a
   ragged left edge. Full width is the platform-native answer. */
@media (max-width: 30rem) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
  .header .btn { width: auto; }
}

/* --------------------------------------------------------------- surface -- */

/* dsSurface(): radius lg by default, hairline border, and elevation that is a
   shadow in light and a specular top edge in dark. */
.card {
  position: relative;
  background: var(--surface);
  border: var(--stroke-hairline) solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--s-xl);
  box-shadow: var(--shadow-md);
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: linear-gradient(90deg, transparent, var(--specular) 22%, var(--specular) 78%, transparent);
  pointer-events: none;
}
.card--raised { background: var(--surface-raised); }

.card--link {
  display: block; text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card--link:hover {
  color: inherit; transform: translateY(-2px);
  box-shadow: var(--shadow-lg); border-color: var(--hairline-strong);
}

/* ------------------------------------------------------------------ type -- */

.eyebrow {
  font-size: var(--t-xs); font-weight: 660; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ember); margin-bottom: var(--s-sm);
}
.eyebrow--quiet { color: var(--ink-tertiary); }

.display { font-size: var(--t-display); letter-spacing: -0.04em; font-weight: 700; }
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); font-weight: 620; }

.lede {
  font-size: var(--t-body-lg); color: var(--ink-secondary);
  line-height: 1.5; max-width: 34rem; letter-spacing: -0.014em;
}
.muted { color: var(--ink-secondary); }
.fine { font-size: var(--t-sm); color: var(--ink-tertiary); }

/* The trademark glyphs sit high and heavy at body size; ease them back. */
.tm { font-size: 0.62em; vertical-align: 0.42em; letter-spacing: 0; font-weight: 500; }

/* ------------------------------------------------------------------ hero -- */

.hero { padding-block: clamp(var(--s-xxxl), 7vw, 5.5rem) 0; overflow: hidden; }
.hero__grid { display: grid; gap: clamp(var(--s-xxl), 5vw, 4rem); align-items: center; }
@media (min-width: 56rem) { .hero__grid { grid-template-columns: 1fr 0.82fr; } }

.hero__copy { display: grid; gap: var(--s-lg); justify-items: start; }
.hero .lede { max-width: 32rem; }

.hero__note {
  display: flex; align-items: center; gap: var(--s-xs);
  font-size: var(--t-sm); color: var(--ink-tertiary);
}
.hero__note .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ember); flex: none; }

/* --------------------------------------------------------------- devices -- */

/* A CSS-drawn iPhone. Aspect is the real 1290x2796 so a dropped-in screenshot
   is never letterboxed. See assets/img/screens/README.md. */
/* Sized by HEIGHT, with width derived from the aspect ratio. A phone is a tall
   object: sizing it by width makes it ~660px tall on a desktop column, which
   forces a screen's worth of whitespace beside every short paragraph. Height is
   the dimension that actually needs bounding. */
.device {
  position: relative;
  height: clamp(21rem, 40vw, 29rem);
  aspect-ratio: 1290 / 2796;
  width: auto;
  max-width: 100%;
  border-radius: 12.5%/5.8%;
  padding: 2.6%;
  background: linear-gradient(160deg, #3a3a3e, #17171a 42%, #2b2b30);
  box-shadow: var(--shadow-lg), 0 0 0 var(--stroke-hairline) rgb(0 0 0 / 0.4);
  flex: none;
}
.device--hero { height: clamp(24rem, 48vw, 34rem); }
/* The screenshot is a background layer on ::after, not an <img>, and that is
   deliberate: a missing file leaves ::after transparent and the placeholder
   below simply shows through. An <img> whose src 404s renders a broken-image
   icon instead, which is the one failure mode a drop-in slot must not have.
   Set --shot inline on .device__screen; leave it unset for an empty slot. */
.device__screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 10.6%/5.0%;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, transparent, transparent 9px,
      rgb(var(--ink-rgb) / 0.035) 9px, rgb(var(--ink-rgb) / 0.035) 18px),
    var(--surface-sunken);
}
.device__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: var(--shot, none);
  background-size: cover; background-position: top center;
}
.device__placeholder {
  z-index: 0; padding: var(--s-lg); text-align: center;
  color: var(--ink-quaternary); font-size: var(--t-xs); line-height: 1.45;
}

.device-pair { display: flex; gap: var(--s-md); align-items: flex-start; justify-content: center; }
.device-pair .device { height: clamp(16rem, 30vw, 22rem); }
.device-pair .device:nth-child(2) { margin-top: var(--s-xxxl); }

/* -------------------------------------------------------------- features -- */

.grid { display: grid; gap: var(--s-md); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }

.feature { display: grid; gap: var(--s-xs); align-content: start; }
.feature .h3 { letter-spacing: -0.022em; }
.feature p { color: var(--ink-secondary); font-size: var(--t-sm); line-height: 1.55; }

.feature__icon {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  display: grid; place-items: center; margin-bottom: var(--s-xs);
  background: var(--ember-soft); color: var(--ember);
  /* Glyph only — never a text label. DSColor measures ember on emberSoft at
     4.15:1, which clears WCAG 1.4.11's 3:1 non-text floor and fails 4.5:1. */
}
.feature__icon svg { width: 20px; height: 20px; }

/* A full-bleed alternating showcase row: copy one side, device the other. */
.showcase { display: grid; gap: clamp(var(--s-xl), 4vw, 3.5rem); align-items: center; }
@media (min-width: 52rem) {
  .showcase { grid-template-columns: 1fr 1fr; }
  .showcase--flip .showcase__media { order: -1; }
}
.showcase__media { display: flex; justify-content: center; }
.showcase__copy { display: grid; gap: var(--s-md); align-content: center; }
.showcase__copy ul { display: grid; gap: var(--s-xs); list-style: none; }
.showcase__copy li {
  position: relative; padding-left: 1.5rem;
  color: var(--ink-secondary); font-size: var(--t-sm);
}
.showcase__copy li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--ember);
}

/* --------------------------------------------------------------- pricing -- */

.price-grid { display: grid; gap: var(--s-md); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.price { display: grid; gap: var(--s-xs); align-content: start; }
.price__tier { font-size: var(--t-xs); font-weight: 660; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-tertiary); }
.price__what { font-size: var(--t-h3); font-weight: 640; }
.price--accent { border-color: var(--ember); }
.price--accent .price__tier { color: var(--ember); }

/* ------------------------------------------------------------------- faq -- */

.faq-layout { display: grid; gap: var(--s-xl); align-items: start; }
@media (min-width: 52rem) {
  .faq-layout { grid-template-columns: 0.7fr 1fr; gap: var(--s-xxxl); }
  .faq-layout__intro { position: sticky; top: calc(var(--header-h) + var(--s-xl)); }
}

/* Standalone (support page): a reading column, not the full 68rem — a 68rem-wide
   line of prose is unreadable. Inside .faq-layout the column already bounds it. */
.faq { display: grid; gap: var(--s-xs); max-width: 46rem; }
.faq-layout .faq { max-width: none; }
.faq details {
  background: var(--surface);
  border: var(--stroke-hairline) solid var(--hairline);
  border-radius: var(--r-md);
  padding: var(--s-md) var(--s-lg);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer; font-weight: 600; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 2px;
  border-right: 2px solid var(--ink-tertiary); border-bottom: 2px solid var(--ink-tertiary);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details[open] summary { margin-bottom: var(--s-sm); }
.faq p + p { margin-top: var(--s-sm); }
.faq details > *:not(summary) { color: var(--ink-secondary); font-size: var(--t-sm); }

/* ----------------------------------------------------------------- prose -- */

/* Privacy, terms, delete-account: a single measured reading column. */
.prose { max-width: var(--measure-prose); }
.prose h2 {
  font-size: var(--t-h3); margin-top: var(--s-xxl); margin-bottom: var(--s-xs);
  scroll-margin-top: calc(var(--header-h) + var(--s-lg));
}
.prose h2:first-of-type { margin-top: var(--s-lg); }
.prose p, .prose li { color: var(--ink-secondary); }
.prose p + p { margin-top: var(--s-sm); }
.prose ul { margin: var(--s-sm) 0; padding-left: 1.15rem; list-style: disc; }
.prose li { margin-bottom: var(--s-xxs); }
.prose strong { color: var(--ink); font-weight: 620; }

.callout {
  background: var(--ember-soft);
  border: var(--stroke-hairline) solid rgb(var(--ember-rgb) / 0.28);
  border-radius: var(--r-md);
  padding: var(--s-md) var(--s-lg);
  margin: var(--s-lg) 0;
  font-size: var(--t-sm);
}
.callout strong { color: var(--ink); }

.steps { counter-reset: step; display: grid; gap: var(--s-sm); list-style: none; padding: 0; margin: var(--s-lg) 0; }
.steps li {
  counter-increment: step; position: relative; padding-left: 2.6rem;
  color: var(--ink-secondary); font-size: var(--t-sm); line-height: 1.55;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -1px;
  width: 1.75rem; height: 1.75rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: var(--stroke-hairline) solid var(--hairline);
  color: var(--ink); font-size: var(--t-xs); font-weight: 660;
}
.steps strong { color: var(--ink); }

/* ---------------------------------------------------------------- footer -- */

.footer {
  border-top: var(--stroke-hairline) solid var(--separator);
  padding-block: var(--s-xxxl);
  background: var(--surface-sunken);
}
.footer__grid { display: grid; gap: var(--s-xl); }
@media (min-width: 44rem) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer h2 {
  font-size: var(--t-xs); font-weight: 660; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-tertiary); margin-bottom: var(--s-sm);
}
.footer ul { list-style: none; display: grid; gap: var(--s-xs); }
.footer a { color: var(--ink-secondary); text-decoration: none; font-size: var(--t-sm); }
.footer a:hover { color: var(--ember); }
.footer__legal {
  margin-top: var(--s-xxl); padding-top: var(--s-md);
  border-top: var(--stroke-hairline) solid var(--separator);
  display: flex; flex-wrap: wrap; gap: var(--s-xs) var(--s-md);
  align-items: center; justify-content: space-between;
  font-size: var(--t-xs); color: var(--ink-tertiary);
}

/* ---------------------------------------------------------------- motion -- */

/* Scroll reveal with no JavaScript. Content is visible by default and only
   animates where the browser supports a view timeline, so nothing is ever
   hidden by a feature that failed to load. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal {
      animation: reveal-in linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 62%;
    }
  }
}
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .card--link:hover, .btn:active { transform: none; }
}

/* ----------------------------------------------------------------- print -- */

@media print {
  .header, .footer, .btn, .skip { display: none; }
  body { background: #fff; color: #000; }
  .prose { max-width: none; }
  .prose p, .prose li { color: #000; }
}
