/* ==========================================================================
   SHOTPOP — BASE + SHARED COMPONENTS
   Requires tokens.css to be loaded FIRST.

   ┌────────────────────────────────────────────────────────────────────────┐
   │ COMPONENT INDEX — what other pages should use                          │
   ├────────────────────────────────────────────────────────────────────────┤
   │ LAYOUT                                                                 │
   │   .container            centred column, --w-content, fluid gutters     │
   │   .container--narrow    --w-narrow  (centred intros)                   │
   │   .container--wide      --w-wide    (showcase rows)                    │
   │   .container--prose     --w-prose   (legal / support long-form)        │
   │   .section              vertical rhythm (--section-y top+bottom)       │
   │   .section--tight       half rhythm                                    │
   │   .section--hairline    adds a top hairline rule                       │
   │   .section-head         eyebrow + title + lede, max-width'd            │
   │   .section-head--center centres it                                     │
   │   .stack > *            uniform vertical rhythm (--stack-gap)          │
   │   .grid .grid--2/3/4    responsive auto-fit grids, no overflow         │
   │                                                                        │
   │ TYPE                                                                   │
   │   .eyebrow              small caps label above a title                 │
   │   .title-xl/.title/.title-sm   h1 / h2 / h3 display sizes              │
   │   .serif-accent         New York serif italic accent word (brand)      │
   │   .lede                 large intro paragraph                          │
   │   .muted / .quiet       secondary / tertiary text colour               │
   │   .mono                 monospace inline run                           │
   │                                                                        │
   │ CHROME                                                                 │
   │   .skip-link            first focusable element on every page          │
   │   .site-header + .nav   sticky header, mobile disclosure nav           │
   │   .site-footer          shared footer                                  │
   │                                                                        │
   │ CONTROLS                                                               │
   │   .btn                  base button/link — 44px min target             │
   │   .btn--primary         violet fill                                    │
   │   .btn--ghost           hairline outline                               │
   │   .btn--quiet           text-only                                      │
   │   .btn--lg / .btn--full size + width modifiers                         │
   │   .link                 inline text link                               │
   │                                                                        │
   │ SURFACES                                                               │
   │   .card                 elevated panel (.card--glass over mesh)        │
   │   .card__title / .card__body / .card__icon                             │
   │   .pill                 small rounded label                            │
   │   .note                 callout box (.note--warn / .note--good)        │
   │   .kv                   definition list, label/value rows              │
   │                                                                        │
   │ LONG-FORM (privacy / terms / support pages)                            │
   │   .prose                styles bare h2/h3/h4/p/ul/ol/table/code/       │
   │                         blockquote/dl/a inside it — write plain HTML   │
   │   .prose-meta           "Last updated" line under a legal page title   │
   │   .toc                  in-page table of contents                      │
   │                                                                        │
   │ MOTION                                                                 │
   │   .reveal               hidden until scrolled into view (site.js adds  │
   │                         .is-visible). No-ops under reduced motion and  │
   │                         when JS is unavailable (see the .no-js rule).  │
   │   [data-year]           site.js writes the current year into it        │
   └────────────────────────────────────────────────────────────────────────┘
   ========================================================================== */

/* ==========================================================================
   1. RESET
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Belt and braces against horizontal scroll from decorative overflow.
     NOTE: this must live on <html>, not <body>. Body overflow propagates to
     the viewport and `clip` there kills vertical scrolling outright. */
  overflow-x: clip;
  /* Anchor links must clear the sticky header. */
  scroll-padding-top: calc(var(--header-h) + var(--sp-md));
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  min-height: 100svh;
  background-color: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  font-weight: var(--fw-regular);
  letter-spacing: var(--tr-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, video, canvas {
  display: block;
  max-width: 100%;
}
img, video { height: auto; }

input, button, textarea, select { font: inherit; color: inherit; }

p, h1, h2, h3, h4, h5, h6, li { overflow-wrap: break-word; }

ul[class], ol[class] { list-style: none; padding: 0; }

hr {
  border: 0;
  height: 1px;
  background: var(--c-divider);
}

::selection {
  background: var(--c-accent);
  color: #fff;
}

/* ==========================================================================
   2. FOCUS — one visible ring everywhere, never removed.
   ========================================================================== */
:focus-visible {
  outline: 2px solid var(--c-accent-bright);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

/* ==========================================================================
   3. SKIP LINK — must be the first element inside <body>.
   <a class="skip-link" href="#main">Skip to content</a>
   ========================================================================== */
.skip-link {
  position: fixed;
  top: var(--sp-xs);
  left: var(--sp-xs);
  z-index: var(--z-skip-link);
  padding: var(--sp-sm) var(--sp-md);
  background: var(--c-accent);
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  border-radius: var(--r-sm);
  text-decoration: none;
  transform: translateY(calc(-100% - var(--sp-lg)));
  transition: transform var(--dur-base) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  line-height: var(--lh-title);
  letter-spacing: var(--tr-title);
  text-wrap: balance;
}

.title-xl {
  font-size: var(--fs-h1);
  font-weight: var(--fw-black);
  letter-spacing: var(--tr-display);
  line-height: var(--lh-display);
}
.title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-display);
  line-height: 1.05;
}
.title-sm {
  font-size: var(--fs-h3);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-title);
  line-height: var(--lh-heading);
}

/* The brand's signature: heavy sans, then a serif-italic accent word.
   Mirrors HeroHeadline.swift (DistinctStyleSansBold + New York italic). */
.serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: var(--fw-bold);
  letter-spacing: -0.015em;
  color: var(--c-accent-text);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--c-text-tertiary);
}

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  color: var(--c-text-secondary);
  text-wrap: pretty;
}

.muted { color: var(--c-text-secondary); }
.quiet { color: var(--c-text-tertiary); }

.mono {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: 0;
}

.link {
  color: var(--c-accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease-out);
}
.link:hover { color: var(--c-accent-bright); }

/* ==========================================================================
   5. LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: var(--w-content);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--w-narrow); }
.container--wide   { max-width: var(--w-wide); }
.container--prose  { max-width: var(--w-prose); }

.section {
  padding-block: var(--section-y);
  position: relative;
}
.section--tight { padding-block: calc(var(--section-y) * 0.55); }
.section--hairline { border-top: 1px solid var(--c-divider); }

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2rem, 1rem + 3vw, 3.5rem);
}
.section-head--center {
  margin-inline: auto;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: var(--sp-sm); }
.section-head .lede { margin-top: var(--sp-md); }

/* Uniform vertical rhythm helper: .stack sets gaps between direct children. */
.stack { --stack-gap: var(--sp-md); }
.stack > * + * { margin-top: var(--stack-gap); }
.stack--sm { --stack-gap: var(--sp-xs); }
.stack--lg { --stack-gap: var(--sp-lg); }

/* Auto-fit grids. `min-width: 0` on children prevents blowout from long
   words / wide code blocks — the classic source of horizontal scroll. */
.grid {
  display: grid;
  gap: var(--sp-md);
}
.grid > * { min-width: 0; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  align-items: center;
}

/* ==========================================================================
   6. BUTTONS — every variant is ≥44px tall (WCAG 2.2 target size).
   Use <a class="btn btn--primary"> or <button class="btn btn--ghost">.
   ========================================================================== */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--c-text);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-xs);
  min-height: 44px;
  padding: var(--sp-sm) var(--sp-lg);
  border: 1px solid var(--btn-border);
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-heading);
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  white-space: nowrap;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.985); }

.btn--primary {
  --btn-bg: var(--c-accent);
  --btn-fg: #fff;
  --btn-border: var(--c-accent);
  box-shadow: var(--sh-glow);
}
.btn--primary:hover {
  --btn-bg: #7a6bf0;
  --btn-border: #7a6bf0;
}

.btn--ghost {
  --btn-border: var(--c-hairline-strong);
  --btn-fg: var(--c-text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: var(--c-glass);
}
.btn--ghost:hover {
  --btn-border: var(--c-text-tertiary);
  background: var(--c-glass-strong);
}

.btn--quiet {
  --btn-fg: var(--c-text-secondary);
  padding-inline: var(--sp-sm);
}
.btn--quiet:hover { --btn-fg: var(--c-text); }

.btn--lg {
  min-height: 52px;
  padding: var(--sp-md) var(--sp-xl);
  font-size: var(--fs-body);
}
.btn--full { width: 100%; }

.btn__sub {
  display: block;
  font-size: var(--fs-micro);
  font-weight: var(--fw-medium);
  letter-spacing: var(--tr-caption);
  opacity: 0.75;
}

/* ==========================================================================
   7. SITE HEADER / NAV
   Markup contract (see index.html):
     <header class="site-header">
       <div class="nav container container--wide">
         <a class="nav__brand" href="/">…</a>
         <nav class="nav__links" id="nav-links" aria-label="Primary">…</nav>
         <button class="nav__toggle" aria-expanded="false"
                 aria-controls="nav-links" data-nav-toggle>…</button>
       </div>
     </header>
   site.js toggles [data-nav-open] on <html> for the mobile panel.
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: color-mix(in srgb, var(--c-bg-deep) 72%, transparent);
  backdrop-filter: saturate(1.6) blur(16px);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) var(--ease-out),
              background-color var(--dur-base) var(--ease-out);
}
/* site.js adds .is-scrolled once the page has moved. */
.site-header.is-scrolled {
  border-bottom-color: var(--c-divider);
  background: color-mix(in srgb, var(--c-bg-deep) 92%, transparent);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  min-height: var(--header-h);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  color: var(--c-text);
  text-decoration: none;
  font-weight: var(--fw-bold);
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  padding-block: var(--sp-xs);
}
.nav__mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  flex: none;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}
.nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: var(--sp-sm);
  color: var(--c-text-secondary);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  text-decoration: none;
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__link:hover { color: var(--c-text); }
.nav__link[aria-current="page"] { color: var(--c-text); }

.nav__cta { margin-left: var(--sp-xs); }

.nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-sm);
  background: var(--c-glass);
  cursor: pointer;
}
.nav__toggle-bars,
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--c-text);
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
}
.nav__toggle-bars::before,
.nav__toggle-bars::after {
  content: "";
  position: absolute;
}
.nav__toggle-bars::before { transform: translateY(-5px); }
.nav__toggle-bars::after  { transform: translateY(5px); }
.nav__toggle { position: relative; }

@media (max-width: 860px) {
  .nav__toggle { display: inline-flex; }

  .nav__links {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: var(--z-nav-panel);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--sp-sm) var(--gutter) var(--sp-lg);
    background: var(--c-bg-deep);
    border-bottom: 1px solid var(--c-border);
    box-shadow: var(--sh-lg);
    /* Collapsed by default on small screens. */
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--dur-base) var(--ease-out),
                opacity var(--dur-base) var(--ease-out),
                visibility var(--dur-base) step-end;
  }
  .nav__link {
    min-height: 52px;
    padding-inline: var(--sp-xs);
    font-size: var(--fs-body);
    border-bottom: 1px solid var(--c-divider);
    border-radius: 0;
  }
  .nav__cta {
    margin: var(--sp-md) 0 0;
    width: 100%;
  }

  [data-nav-open] .nav__links {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform var(--dur-base) var(--ease-out),
                opacity var(--dur-base) var(--ease-out),
                visibility 0s;
  }
  [data-nav-open] .nav__toggle-bars { background: transparent; }
  [data-nav-open] .nav__toggle-bars::before { transform: rotate(45deg); }
  [data-nav-open] .nav__toggle-bars::after  { transform: rotate(-45deg); }
  [data-nav-open] body { overflow: hidden; }
}

/* No-JS safety: the toggle is useless without JS, so hide it and let the
   links sit inline (they wrap). site.js removes .no-js from <html>. */
.no-js .nav__toggle { display: none; }
@media (max-width: 860px) {
  .no-js .nav__links {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0 0 var(--sp-sm);
    background: none;
    border: 0;
    box-shadow: none;
  }
  .no-js .nav__link { border-bottom: 0; min-height: 44px; }
  .no-js .nav__cta { width: auto; margin: 0; }
}

/* ==========================================================================
   8. SITE FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--c-divider);
  background: var(--c-bg-deep);
  padding-block: var(--sp-3xl) var(--sp-xl);
  margin-top: auto;
}
.site-footer__grid {
  display: grid;
  gap: var(--sp-xl);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
}
.site-footer__brandcol { max-width: 22rem; }
.site-footer__tagline {
  margin-top: var(--sp-sm);
  font-size: var(--fs-sm);
  color: var(--c-text-tertiary);
}
.footer-heading {
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--c-text-tertiary);
  margin-bottom: var(--sp-sm);
}
.footer-list { display: flex; flex-direction: column; }
.footer-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--c-text-secondary);
  font-size: var(--fs-sm);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer-list a:hover { color: var(--c-text); text-decoration: underline; }

.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm) var(--sp-lg);
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-2xl);
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--c-divider);
  font-size: var(--fs-xs);
  color: var(--c-text-tertiary);
}

/* ==========================================================================
   9. SURFACES
   ========================================================================== */
.card {
  position: relative;
  padding: var(--sp-lg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg-elevated);
  box-shadow: var(--sh-inset-hairline);
}
.card--glass {
  border-color: var(--c-hairline);
  background: var(--c-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.card--pad-lg { padding: var(--sp-xl); }
.card--interactive {
  transition: transform var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}
.card--interactive:hover {
  transform: translateY(-3px);
  border-color: var(--c-border-strong);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: var(--sp-md);
  border-radius: var(--r-sm);
  background: var(--c-accent-wash);
  border: 1px solid var(--c-accent-line);
  color: var(--c-accent-text);
}
.card__title {
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-heading);
  line-height: var(--lh-heading);
}
.card__body {
  margin-top: var(--sp-xs);
  font-size: var(--fs-sm);
  line-height: 1.55;
  color: var(--c-text-secondary);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2xs);
  padding: 5px 11px;
  border: 1px solid var(--c-hairline);
  border-radius: var(--r-pill);
  background: var(--c-glass);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--c-text-secondary);
  white-space: nowrap;
}
.pill--accent {
  border-color: var(--c-accent-line);
  background: var(--c-accent-wash);
  color: var(--c-accent-text);
}

.note {
  padding: var(--sp-md) var(--sp-lg);
  border: 1px solid var(--c-border);
  border-left: 3px solid var(--c-border-strong);
  border-radius: var(--r-sm);
  background: var(--c-bg-inset);
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
}
.note--good { border-left-color: var(--c-success); }
.note--warn { border-left-color: var(--c-warning); }
.note--accent { border-left-color: var(--c-accent); }

/* Label / value rows — good for "Developer", "Category", "Contact". */
.kv { display: grid; gap: var(--sp-sm); }
.kv > div {
  display: grid;
  grid-template-columns: minmax(8rem, 12rem) 1fr;
  gap: var(--sp-sm);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--c-divider);
}
.kv dt { color: var(--c-text-tertiary); font-size: var(--fs-sm); }
.kv dd { margin: 0; font-size: var(--fs-sm); }
@media (max-width: 540px) {
  .kv > div { grid-template-columns: 1fr; gap: var(--sp-2xs); }
}

/* ==========================================================================
   10. PROSE — long-form pages (/privacy, /terms, /support)
   Wrap the body copy in <div class="prose"> and write plain semantic HTML.
   ========================================================================== */
.prose {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--c-text-secondary);
}
.prose > * + * { margin-top: var(--sp-md); }

.prose h2 {
  margin-top: var(--sp-2xl);
  font-size: var(--fs-h3);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tr-title);
  color: var(--c-text);
  scroll-margin-top: calc(var(--header-h) + var(--sp-lg));
}
.prose h3 {
  margin-top: var(--sp-xl);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  scroll-margin-top: calc(var(--header-h) + var(--sp-lg));
}
.prose h4 {
  margin-top: var(--sp-lg);
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}
.prose h2 + *, .prose h3 + *, .prose h4 + * { margin-top: var(--sp-xs); }

.prose strong { color: var(--c-text); font-weight: var(--fw-semibold); }

.prose a {
  color: var(--c-accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.prose a:hover { color: var(--c-accent-bright); }

.prose ul, .prose ol {
  padding-left: 1.35em;
  display: grid;
  gap: var(--sp-xs);
}
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li::marker { color: var(--c-text-quiet); }
.prose li > ul, .prose li > ol { margin-top: var(--sp-xs); }

.prose code {
  font-family: var(--font-mono);
  font-size: 0.88em;
  padding: 0.15em 0.4em;
  border: 1px solid var(--c-border);
  border-radius: var(--r-xs);
  background: var(--c-bg-inset);
  color: var(--c-text);
}
.prose pre {
  padding: var(--sp-md);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  background: var(--c-bg-inset);
  overflow-x: auto;
}
.prose pre code { padding: 0; border: 0; background: none; }

.prose blockquote {
  padding-left: var(--sp-md);
  border-left: 2px solid var(--c-accent);
  color: var(--c-text-secondary);
  font-style: italic;
}

/* Tables scroll inside their own box rather than pushing the page wide. */
.prose .table-wrap,
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  -webkit-overflow-scrolling: touch;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
  min-width: 30rem;
}
.prose thead th {
  position: sticky;
  top: 0;
  text-align: left;
  padding: var(--sp-sm) var(--sp-md);
  background: var(--c-bg-inset);
  color: var(--c-text);
  font-weight: var(--fw-semibold);
  border-bottom: 1px solid var(--c-border);
  white-space: nowrap;
}
.prose tbody td {
  padding: var(--sp-sm) var(--sp-md);
  border-bottom: 1px solid var(--c-divider);
  vertical-align: top;
}
.prose tbody tr:last-child td { border-bottom: 0; }

.prose dl { display: grid; gap: var(--sp-md); }
.prose dt { color: var(--c-text); font-weight: var(--fw-semibold); }
.prose dd { margin: var(--sp-2xs) 0 0; }

.prose hr { margin-block: var(--sp-xl); }

.prose-meta {
  margin-top: var(--sp-sm);
  font-size: var(--fs-sm);
  color: var(--c-text-tertiary);
}

/* In-page table of contents for legal pages. */
.toc {
  padding: var(--sp-md) var(--sp-lg);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: var(--c-bg-elevated);
}
.toc h2 {
  margin: 0 0 var(--sp-xs);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-eyebrow);
  text-transform: uppercase;
  color: var(--c-text-tertiary);
}
.toc ol, .toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
}
.toc a {
  display: block;
  padding-block: var(--sp-xs);
  min-height: 40px;
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  text-decoration: none;
}
.toc a:hover { color: var(--c-accent-text); text-decoration: underline; }

/* ==========================================================================
   11. FAQ / DISCLOSURE — native <details>, keyboard-accessible for free.
   ========================================================================== */
.faq-item {
  border-bottom: 1px solid var(--c-divider);
}
.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  min-height: 60px;
  padding-block: var(--sp-md);
  font-size: var(--fs-h4);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tr-heading);
  color: var(--c-text);
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast) var(--ease-out);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--c-accent-text); }
.faq-item__sign {
  flex: none;
  width: 22px;
  height: 22px;
  position: relative;
  color: var(--c-text-tertiary);
}
.faq-item__sign::before,
.faq-item__sign::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq-item__sign::after { transform: rotate(90deg); }
.faq-item[open] .faq-item__sign::after { transform: rotate(0deg); }
.faq-item[open] .faq-item__sign { color: var(--c-accent-text); }
.faq-item__body {
  padding-bottom: var(--sp-lg);
  max-width: 58ch;
  color: var(--c-text-secondary);
  font-size: var(--fs-sm);
  line-height: 1.65;
}
.faq-item__body > * + * { margin-top: var(--sp-sm); }

/* ==========================================================================
   12. SCROLL REVEAL
   site.js observes [class~="reveal"] and adds .is-visible.
   Falls back to fully visible with no JS and under reduced motion.
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: transform, opacity;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  will-change: auto;
}
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   13. UTILITIES
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.full { width: 100%; }

/* Print: legal pages get printed. Make them legible on paper. */
@media print {
  .site-header, .site-footer, .skip-link, .hero__mesh { display: none !important; }
  body { background: #fff; color: #000; }
  .prose, .prose h2, .prose h3, .prose strong { color: #000; }
  .prose a { color: #000; }
  .card, .note, .toc { border-color: #999; background: none; }
}
