/* Self-hosted from Google Fonts (SIL Open Font License 1.1): latin and latin-ext only. Regenerate with site/README.md. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(/fonts/jetbrains-mono-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url(/fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/*
 * Attentip design tokens, v1 (2026-11-02)
 *
 * A copy of company/brand/tokens.css, the source of truth, without its legacy-alias block. Keep the two in sync.
 * Spec and usage rules: company/brand/brand-book.md. The fonts come from next/font/google in layout.tsx, which
 * sets --font-inter, --font-outfit and --font-jetbrains-mono on <html>.
 *
 * Theme: follows the OS by default; data-theme="light" or "dark" on <html> forces one (see theme-switch.tsx).
 *
 * Every text/background pair listed in brand-book.md §8.3 meets WCAG 2.2 AA (4.5:1 for text,
 * 3:1 for large text and UI boundaries). Re-check the ratios if you change a value.
 */

/* ------------------------------------------------------------------ */
/* 1. Primitives (theme-independent; do not use directly in components) */
/* ------------------------------------------------------------------ */
:root {
  /* Ember: the brand colour */
  --ember-50: #fff4ed;
  --ember-100: #ffe5d5;
  --ember-200: #ffc6a5;
  --ember-300: #ffa06e;
  --ember-400: #ff7a3f;
  --ember-500: #ff5a1f; /* brand */
  --ember-600: #e8440c;
  --ember-700: #c2380a;
  --ember-800: #9a2e0e;
  --ember-900: #7a2810;
  --ember-950: #431205;

  /* Ink: near-black with a cool violet cast; text in light theme, surfaces in dark theme */
  --ink-50: #f4f2ee;
  --ink-100: #e9e7ec;
  --ink-200: #d6d3db;
  --ink-300: #b3afbb;
  --ink-400: #8f8a98;
  --ink-500: #6b6676;
  --ink-600: #4a4653;
  --ink-700: #2f2c38;
  --ink-800: #1d1b24;
  --ink-850: #16151c;
  --ink-900: #15131c;
  --ink-950: #0e0d12;

  /* Sand: warm neutrals for light-theme surfaces */
  --sand-0: #ffffff;
  --sand-50: #faf9f6; /* paper */
  --sand-100: #f3f1ec;
  --sand-200: #ece9e2;
  --sand-300: #e4e0d8;
  --sand-400: #cbc6bc;
  --sand-600: #5c5864;
  --sand-700: #6e6975;

  /* Signal yellow: test mode only */
  --signal-400: #ffd43b;
  --signal-500: #f5c400;
}

/* ------------------------------------------------------------------ */
/* 2. Theme-independent tokens: type, spacing, radius, motion, sizes    */
/* ------------------------------------------------------------------ */
:root {
  /* Font families */
  --font-display: var(--font-outfit, "Outfit"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-sans: var(--font-inter, "Inter"), ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: var(--font-jetbrains-mono, "JetBrains Mono"), ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Font weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* Type scale: size / line height (16px root) */
  --text-xs: 0.75rem;     --leading-xs: 1rem;        /* 12/16  captions, table meta */
  --text-sm: 0.8125rem;   --leading-sm: 1.25rem;     /* 13/20  hints, labels, badges */
  --text-base: 0.9375rem; --leading-base: 1.5rem;    /* 15/24  app body, buttons, inputs */
  --text-md: 1rem;        --leading-md: 1.625rem;    /* 16/26  marketing body, docs */
  --text-lg: 1.125rem;    --leading-lg: 1.75rem;     /* 18/28  lead paragraph, H4 */
  --text-xl: 1.25rem;     --leading-xl: 1.75rem;     /* 20/28  H3 */
  --text-2xl: 1.5rem;     --leading-2xl: 2rem;       /* 24/32  H2 */
  --text-3xl: 1.875rem;   --leading-3xl: 2.25rem;    /* 30/36  H1 in app, stat values */
  --text-4xl: 2.25rem;    --leading-4xl: 2.625rem;   /* 36/42  H1 marketing, checkout price */
  --text-5xl: 3rem;       --leading-5xl: 3.25rem;    /* 48/52  hero (tablet) */
  --text-6xl: 3.75rem;    --leading-6xl: 4rem;       /* 60/64  hero (desktop) */

  /* Letter spacing */
  --tracking-display: -0.025em; /* Outfit at 30px and up */
  --tracking-heading: -0.015em; /* Outfit at 20-24px */
  --tracking-normal: 0;
  --tracking-caps: 0.06em;      /* small uppercase labels, 12px */

  /* Spacing: 4px base */
  --space-0: 0;
  --space-0-5: 2px;
  --space-1: 4px;
  --space-1-5: 6px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Radius */
  --radius-xs: 4px;    /* inline code, kbd, checkbox */
  --radius-sm: 6px;    /* badges (non-pill), tooltips, small buttons */
  --radius-md: 8px;    /* inputs, selects, banners */
  --radius-lg: 10px;   /* buttons, Pay with Attentip button */
  --radius-xl: 14px;   /* cards, tables, code blocks */
  --radius-2xl: 20px;  /* checkout sheet, dialogs, screenshot frames */
  --radius-full: 999px;
  --radius-mark: 23.4%; /* app-mark tile corner, as a share of its size (15/64) */

  /* Control sizes */
  --control-sm: 32px;
  --control-md: 40px;
  --control-lg: 48px;
  --pay-button-height: 44px;

  /* Layout */
  --container-max: 1120px;
  --container-prose: 720px;
  --container-narrow: 480px;
  --checkout-width: 440px;
  --gutter: 16px;

  /* Motion */
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* Focus ring geometry (colour is per theme) */
  --focus-width: 2px;
  --focus-offset: 2px;

  /* Z-index */
  --z-header: 10;
  --z-dropdown: 20;
  --z-overlay: 40;
  --z-toast: 50;
}

/* ------------------------------------------------------------------ */
/* 3. Light theme (default)                                             */
/* ------------------------------------------------------------------ */
:root,
[data-theme="light"] {
  color-scheme: light;

  /* Surfaces */
  --color-bg: var(--sand-50);            /* page background ("paper") */
  --color-surface: var(--sand-0);        /* cards, popup, inputs */
  --color-surface-2: var(--sand-100);    /* sunken: code, table header, tabs track */
  --color-surface-3: var(--sand-200);    /* hover on surface-2, selected rows */
  --color-border: var(--sand-300);       /* hairlines, card borders (decorative) */
  --color-border-strong: #8d8794;        /* input borders, checkbox outline (3:1 UI contrast) */

  /* Text */
  --color-text: var(--ink-900);
  --color-text-muted: var(--sand-600);   /* secondary text, labels, table headers */
  --color-text-subtle: var(--sand-700);  /* placeholders, timestamps; still AA on white and paper */
  --color-text-inverse: var(--sand-50);

  /* Primary action (product UI): ink button */
  --color-primary: var(--ink-900);
  --color-primary-hover: #2d2a36;
  --color-on-primary: #ffffff;

  /* Brand (Ember): Pay button, mark, progress, highlights. Text on it is always ink. */
  --color-brand: var(--ember-500);
  --color-brand-hover: #ff6d38;
  --color-brand-active: var(--ember-600);
  --color-on-brand: var(--ink-900);
  --color-brand-soft: var(--ember-50);   /* tinted backgrounds, selected tab */
  --color-on-brand-soft: var(--ember-800);
  --color-brand-border: rgb(194 56 10 / 0.2); /* 1px edge on Ember buttons */
  --color-progress: var(--ember-600);          /* progress fill: 3:1 on its track */
  --color-progress-track: var(--sand-200);

  /* Accent text: links and accent-coloured text on light surfaces */
  --color-accent: var(--ember-700);
  --color-accent-hover: var(--ember-800);
  --color-on-accent: #ffffff;

  /* Focus */
  --color-focus: var(--ember-600);

  /* Status: text / soft background / border */
  --color-success: #12733a;
  --color-success-soft: #e7f4ec;
  --color-success-border: #a9d8b9;
  --color-warning: #8f5200;
  --color-warning-soft: #fff3d9;
  --color-warning-border: #ecc77a;
  --color-danger: #b4232b;
  --color-danger-soft: #fdecec;
  --color-danger-border: #f1b5b8;
  --color-info: #2450c8;
  --color-info-soft: #ebf0fe;
  --color-info-border: #bccbf7;

  /* Test mode */
  --color-test: var(--signal-400);
  --color-on-test: var(--ink-900);
  --color-test-stripe: rgb(21 19 28 / 0.08);

  /* Shadows */
  --shadow-xs: 0 1px 2px rgb(21 19 28 / 0.06);
  --shadow-sm: 0 1px 2px rgb(21 19 28 / 0.05), 0 1px 3px rgb(21 19 28 / 0.08);
  --shadow-md: 0 2px 4px rgb(21 19 28 / 0.04), 0 6px 16px rgb(21 19 28 / 0.08);
  --shadow-lg: 0 4px 8px rgb(21 19 28 / 0.04), 0 16px 40px rgb(21 19 28 / 0.12);
  --shadow-popup: 0 2px 6px rgb(21 19 28 / 0.06), 0 24px 64px rgb(21 19 28 / 0.18);
  --shadow-brand: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 1px 2px rgb(154 46 14 / 0.25);
}

/* ------------------------------------------------------------------ */
/* 4. Dark theme: OS preference, unless the page forces light           */
/* ------------------------------------------------------------------ */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --color-bg: var(--ink-950);
    --color-surface: var(--ink-850);
    --color-surface-2: var(--ink-800);
    --color-surface-3: #25232d;
    --color-border: #2d2a35;
    --color-border-strong: #6f6a7a;

    --color-text: var(--ink-50);
    --color-text-muted: #aba6b3;
    --color-text-subtle: #918c9a;
    --color-text-inverse: var(--ink-900);

    --color-primary: var(--ink-50);
    --color-primary-hover: #ffffff;
    --color-on-primary: var(--ink-900);

    --color-brand: #ff6a30;
    --color-brand-hover: #ff7d4a;
    --color-brand-active: var(--ember-500);
    --color-on-brand: var(--ink-900);
    --color-brand-soft: #2e1910;
    --color-on-brand-soft: #ffb089;
    --color-brand-border: rgb(255 255 255 / 0.12);
    --color-progress: #ff6a30;
    --color-progress-track: #2d2a35;

    --color-accent: #ff8a57;
    --color-accent-hover: #ffa47c;
    --color-on-accent: var(--ink-900);

    --color-focus: #ff8a57;

    --color-success: #5bd38a;
    --color-success-soft: #0f2a1a;
    --color-success-border: #1f5a36;
    --color-warning: #f5b94a;
    --color-warning-soft: #2c2210;
    --color-warning-border: #5c4416;
    --color-danger: #ff8a8a;
    --color-danger-soft: #34161a;
    --color-danger-border: #6b2a30;
    --color-info: #8eaeff;
    --color-info-soft: #17203a;
    --color-info-border: #2f4275;

    --color-test: var(--signal-400);
    --color-on-test: var(--ink-900);
    --color-test-stripe: rgb(21 19 28 / 0.1);

    --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.4);
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 1px 3px rgb(0 0 0 / 0.3);
    --shadow-md: 0 2px 4px rgb(0 0 0 / 0.3), 0 8px 20px rgb(0 0 0 / 0.35);
    --shadow-lg: 0 4px 8px rgb(0 0 0 / 0.3), 0 16px 40px rgb(0 0 0 / 0.45);
    --shadow-popup: 0 0 0 1px rgb(255 255 255 / 0.06), 0 24px 64px rgb(0 0 0 / 0.6);
    --shadow-brand: 0 1px 0 rgb(255 255 255 / 0.3) inset, 0 1px 2px rgb(0 0 0 / 0.4);
  }
}

/* ------------------------------------------------------------------ */
/* 5. Dark theme: forced with data-theme="dark" (same values as §4)      */
/* ------------------------------------------------------------------ */
[data-theme="dark"] {
  color-scheme: dark;

  --color-bg: var(--ink-950);
  --color-surface: var(--ink-850);
  --color-surface-2: var(--ink-800);
  --color-surface-3: #25232d;
  --color-border: #2d2a35;
  --color-border-strong: #6f6a7a;

  --color-text: var(--ink-50);
  --color-text-muted: #aba6b3;
  --color-text-subtle: #918c9a;
  --color-text-inverse: var(--ink-900);

  --color-primary: var(--ink-50);
  --color-primary-hover: #ffffff;
  --color-on-primary: var(--ink-900);

  --color-brand: #ff6a30;
  --color-brand-hover: #ff7d4a;
  --color-brand-active: var(--ember-500);
  --color-on-brand: var(--ink-900);
  --color-brand-soft: #2e1910;
  --color-on-brand-soft: #ffb089;
  --color-brand-border: rgb(255 255 255 / 0.12);
  --color-progress: #ff6a30;
  --color-progress-track: #2d2a35;

  --color-accent: #ff8a57;
  --color-accent-hover: #ffa47c;
  --color-on-accent: var(--ink-900);

  --color-focus: #ff8a57;

  --color-success: #5bd38a;
  --color-success-soft: #0f2a1a;
  --color-success-border: #1f5a36;
  --color-warning: #f5b94a;
  --color-warning-soft: #2c2210;
  --color-warning-border: #5c4416;
  --color-danger: #ff8a8a;
  --color-danger-soft: #34161a;
  --color-danger-border: #6b2a30;
  --color-info: #8eaeff;
  --color-info-soft: #17203a;
  --color-info-border: #2f4275;

  --color-test: var(--signal-400);
  --color-on-test: var(--ink-900);
  --color-test-stripe: rgb(21 19 28 / 0.1);

  --shadow-xs: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / 0.4), 0 1px 3px rgb(0 0 0 / 0.3);
  --shadow-md: 0 2px 4px rgb(0 0 0 / 0.3), 0 8px 20px rgb(0 0 0 / 0.35);
  --shadow-lg: 0 4px 8px rgb(0 0 0 / 0.3), 0 16px 40px rgb(0 0 0 / 0.45);
  --shadow-popup: 0 0 0 1px rgb(255 255 255 / 0.06), 0 24px 64px rgb(0 0 0 / 0.6);
  --shadow-brand: 0 1px 0 rgb(255 255 255 / 0.3) inset, 0 1px 2px rgb(0 0 0 / 0.4);
}

/* ------------------------------------------------------------------ */
/* 6. Reduced motion                                                    */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0ms;
    --duration-base: 0ms;
    --duration-slow: 0ms;
  }
}

/*
 * Components and layout for the platform, built on the tokens in tokens.css (company/brand/brand-book.md §8–9).
 * Class names follow the brand book's reference implementation (company/brand/brand-preview.html).
 */

/* Per-theme values that aren't brand tokens: the tick inside a checked checkbox follows --color-on-primary. */
:root,
[data-theme="light"] {
  --checkbox-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --header-bg: rgb(250 249 246 / 0.88);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --checkbox-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315131c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    --header-bg: rgb(14 13 18 / 0.86);
  }
}
[data-theme="dark"] {
  --checkbox-tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315131c' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --header-bg: rgb(14 13 18 / 0.86);
}
:root {
  --select-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238d8794' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --header-height: 64px;
  --card-pad: var(--space-6);
}
@media (max-width: 639px) {
  :root {
    --header-height: 56px;
    --card-pad: var(--space-5);
  }
}
@media (min-width: 640px) {
  :root { --gutter: 24px; }
}
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
}

/* ------------------------------------------------------------------ */
/* Base                                                                */
/* ------------------------------------------------------------------ */
*,
*::before,
*::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  /* The sticky header must never cover a focused element or an anchor target (WCAG 2.4.11). */
  scroll-padding-top: calc(var(--header-height) + var(--space-4));
}
html, body { margin: 0; }
body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}
h1, h2, h3, h4 { margin: 0 0 var(--space-3); font-weight: var(--weight-semibold); color: var(--color-text); text-wrap: balance; }
h1, h2, h3 { font-family: var(--font-display); }
h1 { font-size: 1.75rem; line-height: 2.125rem; letter-spacing: -0.02em; }
h2 { font-size: 1.375rem; line-height: 1.75rem; letter-spacing: var(--tracking-heading); }
h3 { font-size: var(--text-xl); line-height: var(--leading-xl); letter-spacing: -0.01em; }
h4 { font-family: var(--font-sans); font-size: var(--text-lg); line-height: var(--leading-lg); }
@media (min-width: 640px) {
  h1 { font-size: var(--text-3xl); line-height: var(--leading-3xl); }
  h2 { font-size: var(--text-2xl); line-height: var(--leading-2xl); }
}
p { margin: 0 0 var(--space-3); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 var(--space-3); }
strong, b { font-weight: var(--weight-semibold); }
a {
  color: var(--color-accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover { color: var(--color-accent-hover); }
:focus-visible {
  outline: var(--focus-width) solid var(--color-focus);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-xs);
}
::selection { background: var(--ember-200); color: var(--ink-900); }
/* No ligatures: code is read and copied character by character (=== must not turn into one glyph). */
code, pre, kbd, samp { font-family: var(--font-mono); font-size: 0.86em; font-variant-ligatures: none; }
code {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  padding: 0.05em 0.35em;
  border-radius: var(--radius-xs);
  overflow-wrap: anywhere;
}
pre {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-4);
  margin: 0 0 var(--space-4);
  overflow-x: auto;
  line-height: 1.6;
  tab-size: 2;
}
pre code { background: none; border: 0; padding: 0; font-size: inherit; overflow-wrap: normal; white-space: pre; }
hr { border: 0; border-top: 1px solid var(--color-border); margin: var(--space-8) 0; }
img, svg { flex: none; }
svg.lucide { display: block; }
[hidden] { display: none !important; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -100px; z-index: var(--z-toast);
  background: var(--color-primary); color: var(--color-on-primary); padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md); font-weight: var(--weight-semibold); text-decoration: none;
}
.skip-link:focus { top: var(--space-2); color: var(--color-on-primary); }

/* Utilities */
.muted { color: var(--color-text-muted); }
.subtle { color: var(--color-text-subtle); }
.small { font-size: var(--text-sm); line-height: var(--leading-sm); }
.xsmall { font-size: var(--text-xs); line-height: var(--leading-xs); }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); font-size: 0.86em; }
.nowrap { white-space: nowrap; }
.pos { color: var(--color-success); }
.neg { color: var(--color-danger); }
.accent { color: var(--color-accent); }
.row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.stack > * + * { margin-top: var(--space-3); }
.stack-sm > * + * { margin-top: var(--space-2); }
.grid { display: grid; gap: var(--space-5); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: var(--space-5); }
.overline {
  display: block; font-family: var(--font-sans); font-size: var(--text-xs); line-height: var(--leading-xs);
  letter-spacing: var(--tracking-caps); text-transform: uppercase; font-weight: var(--weight-semibold);
  color: var(--color-accent); margin: 0 0 var(--space-3);
}
.lead { font-size: var(--text-lg); line-height: var(--leading-lg); color: var(--color-text-muted); max-width: 64ch; }
.hint { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); margin: var(--space-1) 0 0; }
.icon-accent { color: var(--color-accent); }

/* ------------------------------------------------------------------ */
/* Layout                                                              */
/* ------------------------------------------------------------------ */
.container { width: 100%; max-width: calc(var(--container-max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: var(--container-narrow); }
.prose-width { max-width: var(--container-prose); }
.center-narrow { max-width: var(--container-narrow); margin: var(--space-6) auto; }
main { display: block; }
.site-main { padding: var(--space-8) 0 var(--space-16); min-height: calc(100vh - var(--header-height) - 220px); }
@media (min-width: 640px) { .site-main { padding-top: var(--space-10); } }
.site-main-flush { padding-top: 0; }

.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--space-3) var(--space-6); margin-bottom: var(--space-6); }
.page-head h1 { margin: 0; }
.page-head p { margin: var(--space-2) 0 0; color: var(--color-text-muted); max-width: 72ch; }
.back-link { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); margin-bottom: var(--space-4); color: var(--color-text-muted); text-decoration: none; }
.back-link:hover { color: var(--color-text); }

/* Site header */
.site-header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.header-inner { display: flex; align-items: center; gap: var(--space-6); height: var(--header-height); }
.brand-link { display: inline-flex; align-items: center; color: var(--color-text); text-decoration: none; padding: var(--space-1) 0; flex: none; }
.brand-link:hover { color: var(--color-text); }
.logo { display: block; height: 22px; width: auto; color: var(--color-text); }
.logo-mark { display: block; width: 24px; height: 24px; }
.nav { display: flex; align-items: center; gap: var(--space-1); flex: 1; min-width: 0; }
.nav a {
  display: inline-flex; align-items: center; height: 36px; padding: 0 var(--space-3); border-radius: var(--radius-md);
  color: var(--color-text-muted); text-decoration: none; font-weight: var(--weight-medium); white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.nav a:hover { color: var(--color-text); background: var(--color-surface-2); }
.nav a[aria-current="page"] { color: var(--color-text); background: var(--color-surface-2); }
.header-user { display: flex; align-items: center; gap: var(--space-2); margin-left: auto; min-width: 0; }
.account-link {
  display: inline-flex; align-items: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-3);
  border-radius: var(--radius-md); color: var(--color-text-muted); text-decoration: none; min-width: 0; font-size: var(--text-sm);
}
.account-link:hover { color: var(--color-text); background: var(--color-surface-2); }
.account-link .email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.btn.menu-button { display: none; }
.mobile-menu { display: none; }
@media (max-width: 899px) {
  .nav, .header-user .account-link, .header-user .sign-out { display: none; }
  .header-inner { gap: var(--space-3); }
  .btn.menu-button { display: inline-flex; }
  .mobile-menu {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--color-surface); border-bottom: 1px solid var(--color-border); box-shadow: var(--shadow-md);
    padding: var(--space-2) var(--gutter) var(--space-4);
  }
  .mobile-menu[hidden] { display: none; }
  .mobile-menu nav { display: grid; }
  .mobile-menu a, .mobile-menu .btn-link {
    display: flex; align-items: center; min-height: 44px; padding: 0 var(--space-2); color: var(--color-text);
    text-decoration: none; font-weight: var(--weight-medium); border-radius: var(--radius-md);
  }
  .mobile-menu a[aria-current="page"] { background: var(--color-surface-2); }
  .mobile-menu .menu-user { border-top: 1px solid var(--color-border); margin-top: var(--space-2); padding-top: var(--space-2); display: grid; }
  .mobile-menu .menu-email { color: var(--color-text-muted); font-size: var(--text-sm); padding: var(--space-2); overflow-wrap: anywhere; }
}

/* Site footer */
.site-footer { border-top: 1px solid var(--color-border); background: var(--color-surface); padding: var(--space-12) 0 var(--space-8); font-size: var(--text-sm); line-height: var(--leading-sm); }
.footer-grid { display: grid; gap: var(--space-8); grid-template-columns: 1fr; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--color-text-muted); margin-top: var(--space-3); max-width: 34ch; }
.footer-brand .tagline { color: var(--color-text); font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-lg); line-height: var(--leading-lg); margin-top: var(--space-4); }
.footer-col h2 { font-family: var(--font-sans); font-size: var(--text-xs); line-height: var(--leading-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-text-muted); margin: 0 0 var(--space-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-1); }
.footer-col a { color: var(--color-text); text-decoration: none; display: inline-flex; min-height: 28px; align-items: center; }
.footer-col a:hover { color: var(--color-accent); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3) var(--space-6); margin-top: var(--space-10); padding-top: var(--space-6); border-top: 1px solid var(--color-border); color: var(--color-text-muted); }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  height: var(--control-md); padding: 0 var(--space-4); border-radius: var(--radius-lg);
  font: var(--weight-semibold) var(--text-base)/1 var(--font-sans); white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; text-decoration: none; position: relative;
  background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong);
  transition: background-color var(--duration-fast) var(--ease-out), border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
.btn:hover { background: var(--color-surface-2); color: var(--color-text); }
.btn:active { background: var(--color-surface-3); }
.btn-sm { height: var(--control-sm); padding: 0 var(--space-3); font-size: var(--text-sm); border-radius: var(--radius-md); }
.btn-lg { height: var(--control-lg); padding: 0 var(--space-5); font-size: var(--text-md); }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--color-primary); color: var(--color-on-primary); border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-hover); border-color: var(--color-primary-hover); color: var(--color-on-primary); }
.btn-primary:active { background: var(--color-primary); }
.btn-secondary { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border-strong); }
.btn-ghost { background: transparent; color: var(--color-text); border-color: transparent; }
.btn-ghost:hover { background: var(--color-surface-2); }
.btn-danger { background: var(--color-surface); color: var(--color-danger); border-color: var(--color-danger-border); }
.btn-danger:hover { background: var(--color-danger-soft); color: var(--color-danger); }
.btn-danger-solid { background: var(--color-danger); color: var(--color-surface); border-color: var(--color-danger); }
.btn-danger-solid:hover { background: var(--color-danger); color: var(--color-surface); opacity: 0.9; }
.btn-brand { background: var(--color-brand); color: var(--color-on-brand); border-color: var(--color-brand-border); box-shadow: var(--shadow-brand); }
.btn-brand:hover { background: var(--color-brand-hover); color: var(--color-on-brand); }
.btn-brand:active { background: var(--color-brand-active); }
.btn[disabled], .btn[aria-disabled="true"], fieldset:disabled .btn {
  background: var(--color-surface-2); color: var(--color-text-subtle); border-color: var(--color-border); box-shadow: none; cursor: not-allowed;
}
.btn[aria-busy="true"] { cursor: progress; }
.btn-icon { width: var(--control-sm); padding: 0; color: var(--color-text-muted); }
.btn-icon:hover { color: var(--color-text); }
.btn-link {
  background: none; border: none; padding: 0; color: var(--color-text-muted); cursor: pointer; font: inherit;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.btn-link:hover { color: var(--color-text); }
.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 700ms linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* "Pay with Attentip", the button builders put on their own sites (brand book §9.2) */
.apt-pay {
  display: inline-flex; align-items: center; gap: 10px; height: var(--pay-button-height); padding: 0 18px 0 11px;
  border-radius: 10px; border: 1px solid rgb(194 56 10 / 0.2); cursor: pointer;
  background: #ff5a1f; color: #15131c; box-shadow: 0 1px 0 rgb(255 255 255 / 0.35) inset, 0 1px 2px rgb(154 46 14 / 0.25);
  font: 600 15px/1 var(--font-inter, Inter), ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  white-space: nowrap; text-decoration: none;
  transition: background-color var(--duration-fast) var(--ease-out);
}
.apt-pay:hover { background: #ff6d38; color: #15131c; }
.apt-pay:active { background: #e8440c; }
.apt-pay:focus-visible { outline: 2px solid #e8440c; outline-offset: 2px; border-radius: 10px; }
.apt-pay[aria-busy="true"] { cursor: progress; }
.apt-pay:disabled { cursor: not-allowed; opacity: 0.7; }
.apt-pay svg { width: 22px; height: 22px; display: block; }
.apt-pay .apt-sep { width: 1px; height: 20px; background: currentColor; opacity: 0.28; margin: 0 2px; }
.apt-pay .apt-price { font-weight: 500; font-variant-numeric: tabular-nums; }
.apt-pay .apt-test { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; background: #ffd43b; color: #15131c; border: 1px solid rgb(21 19 28 / 0.25); border-radius: 999px; padding: 3px 7px; margin-right: -6px; }
/* On a phone the price part goes; the text beside the button names the price, and the accessible name keeps it. */
@media (max-width: 400px) { .apt-pay .apt-sep, .apt-pay .apt-price { display: none; } }
.apt-pay--ink { background: #15131c; color: #f4f2ee; border-color: #15131c; box-shadow: none; }
.apt-pay--ink:hover { background: #2d2a36; color: #f4f2ee; }
.apt-pay--outline { background: #ffffff; color: #15131c; border-color: #8d8794; box-shadow: none; }
.apt-pay--outline:hover { background: #f3f1ec; color: #15131c; }
.apt-pay--compact { padding: 0 14px 0 11px; }
.apt-pay--sm { height: 36px; border-radius: 8px; font-size: 14px; }
.apt-pay--sm svg { width: 18px; height: 18px; }
.apt-pay--lg { height: 52px; border-radius: 12px; font-size: 16px; }
.apt-pay--lg svg { width: 26px; height: 26px; }

/* ------------------------------------------------------------------ */
/* Cards, stats, tables                                                */
/* ------------------------------------------------------------------ */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl);
  padding: var(--card-pad); margin-bottom: var(--space-5); min-width: 0;
}
.card > :last-child { margin-bottom: 0; }
.card:has(> .table-wrap:last-child) { overflow: hidden; }
.card h2 { font-size: var(--text-xl); line-height: var(--leading-xl); letter-spacing: -0.01em; }
.card h3 { font-family: var(--font-sans); font-size: var(--text-md); line-height: var(--leading-md); letter-spacing: 0; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-4); margin-bottom: var(--space-3); }
.card-head h2, .card-head h3 { margin: 0; }
.card-sub { color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); margin: 0 0 var(--space-4); max-width: 72ch; }
a.card-link { display: block; color: inherit; text-decoration: none; transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out); }
a.card-link:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-sm); color: inherit; }
.card-danger { border-color: var(--color-danger-border); }
.card-danger h2 { color: var(--color-danger); }
.card-test { border: 1px dashed var(--signal-500); }
.section-title { font-size: var(--text-xl); line-height: var(--leading-xl); margin: var(--space-8) 0 var(--space-4); }

.stat { display: flex; flex-direction: column; }
.card.stat { margin-bottom: 0; padding: var(--space-5); }
.stat .label { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); display: flex; align-items: center; gap: 6px; }
.stat .label svg { color: var(--color-text-muted); }
.stat .value {
  font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-3xl); line-height: var(--leading-3xl);
  letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
}
.stat .value .unit { font-family: var(--font-sans); font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--color-text-muted); letter-spacing: 0; margin-left: 4px; }
.stat .sub { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); margin-top: 2px; }
.stat-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: var(--space-5); }

/* Positioned, so absolutely positioned content (a visually hidden column header) scrolls inside it instead of
   widening the page. */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.card .table-wrap { margin: 0 calc(-1 * var(--card-pad)) var(--space-4); border-top: 1px solid var(--color-border); }
.card .table-wrap:last-child { margin-bottom: calc(-1 * var(--card-pad)); }
.card > .table-wrap:first-child { margin-top: calc(-1 * var(--card-pad)); border-top: 0; }
table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: var(--leading-sm); }
th, td { text-align: left; vertical-align: middle; border-bottom: 1px solid var(--color-border); }
th {
  height: 36px; padding: 0 var(--space-3); background: var(--color-surface-2); color: var(--color-text-muted);
  font-weight: var(--weight-medium); white-space: nowrap;
}
td { height: 48px; padding: var(--space-2) var(--space-3); }
th:first-child, td:first-child { padding-left: var(--space-5); }
th:last-child, td:last-child { padding-right: var(--space-5); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr { transition: background-color var(--duration-fast) var(--ease-out); }
tbody tr:hover td { background: var(--color-surface-2); }
td.num, th.num, .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td .sub, td .small { font-size: var(--text-xs); line-height: var(--leading-xs); }
td code { font-size: 0.82rem; }
@media (max-width: 639px) {
  .table-wrap th:first-child, .table-wrap td:first-child { position: sticky; left: 0; z-index: 1; background: var(--color-surface); }
  .table-wrap th:first-child { background: var(--color-surface-2); }
  .table-wrap tbody tr:hover td:first-child { background: var(--color-surface-2); }
  td { white-space: nowrap; }
}

/* Facts: label/value pairs */
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--space-2) var(--space-6); margin: 0 0 var(--space-4); font-size: var(--text-sm); line-height: var(--leading-sm); }
.facts dt { color: var(--color-text-muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
/* One held survey on an admin's user page, each with its own release form. */
.held-survey { border-top: 1px solid var(--color-border); padding-top: var(--space-4); margin-top: var(--space-4); }
@media (max-width: 479px) { .facts { grid-template-columns: 1fr; gap: 0; } .facts dd { margin-bottom: var(--space-3); } }

/* Empty states: one sentence and one action */
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); padding: var(--space-4) 0; color: var(--color-text-muted); }
.empty svg { color: var(--color-text-subtle); }

/* ------------------------------------------------------------------ */
/* Banners, badges                                                      */
/* ------------------------------------------------------------------ */
.banner {
  display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md); border: 1px solid; font-size: var(--text-sm); line-height: var(--leading-sm);
  margin: 0 0 var(--space-4); color: var(--color-text); text-align: left;
}
.banner > svg { margin-top: 2px; }
.banner-body { min-width: 0; flex: 1; }
.banner-body > :last-child { margin-bottom: 0; }
.banner-info { background: var(--color-info-soft); border-color: var(--color-info-border); }
.banner-info > svg { color: var(--color-info); }
.banner-success { background: var(--color-success-soft); border-color: var(--color-success-border); }
.banner-success > svg { color: var(--color-success); }
.banner-warning { background: var(--color-warning-soft); border-color: var(--color-warning-border); }
.banner-warning > svg { color: var(--color-warning); }
.banner-danger { background: var(--color-danger-soft); border-color: var(--color-danger-border); }
.banner-danger > svg { color: var(--color-danger); }
.banner-test {
  justify-content: center; align-items: center; border: 0; border-radius: 0; margin: 0; padding: var(--space-2) var(--space-4);
  font-weight: var(--weight-semibold); letter-spacing: 0.01em; font-size: var(--text-sm);
  background: repeating-linear-gradient(-45deg, var(--signal-400) 0 14px, var(--signal-500) 14px 28px); color: var(--color-on-test);
}
.banner-test > svg { margin-top: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: var(--weight-semibold); line-height: 1; white-space: nowrap; border: 1px solid var(--color-border);
  background: var(--color-surface-2); color: var(--color-text-muted); vertical-align: middle;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge-pending { background: var(--color-warning-soft); color: var(--color-warning); border-color: var(--color-warning-border); }
.badge-success { background: var(--color-success-soft); color: var(--color-success); border-color: var(--color-success-border); }
.badge-danger { background: var(--color-danger-soft); color: var(--color-danger); border-color: var(--color-danger-border); }
.badge-info { background: var(--color-info-soft); color: var(--color-info); border-color: var(--color-info-border); }
.badge-test { background: var(--color-test); color: var(--color-on-test); border-color: transparent; }
.badge-test::before { display: none; }

/* ------------------------------------------------------------------ */
/* Forms                                                               */
/* ------------------------------------------------------------------ */
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; }
label { display: block; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); margin-bottom: 6px; color: var(--color-text); }
input, textarea, select {
  width: 100%; font: inherit; font-size: var(--text-base); color: var(--color-text); background: var(--color-surface);
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); padding: 0 12px; min-height: var(--control-md);
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out);
}
input:hover, textarea:hover, select:hover { box-shadow: var(--shadow-xs); }
textarea { font-family: var(--font-mono); font-size: var(--text-sm); line-height: 1.6; min-height: 88px; padding: 10px 12px; resize: vertical; }
select { appearance: none; background-image: var(--select-arrow); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 36px; }
input::placeholder, textarea::placeholder { color: var(--color-text-subtle); opacity: 1; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline: var(--focus-width) solid var(--color-focus); outline-offset: -1px; border-color: var(--color-focus); border-radius: var(--radius-md); }
input[aria-invalid="true"], select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--color-danger); }
input:disabled, select:disabled, textarea:disabled, fieldset:disabled input, fieldset:disabled select, fieldset:disabled textarea { background: var(--color-surface-2); color: var(--color-text-muted); cursor: not-allowed; }
input[type="number"] { font-variant-numeric: tabular-nums; }
input[type="checkbox"], input[type="radio"] {
  appearance: none; width: 20px; height: 20px; min-height: 0; padding: 0; margin: 0; flex: none; cursor: pointer;
  border: 1.5px solid var(--color-border-strong); background: var(--color-surface) center / 14px no-repeat; display: inline-grid;
}
input[type="checkbox"] { border-radius: var(--radius-xs); }
input[type="checkbox"]:checked { background-color: var(--color-primary); border-color: var(--color-primary); background-image: var(--checkbox-tick); }
input[type="radio"] { border-radius: 50%; }
input[type="radio"]:checked { background: var(--color-primary); border-color: var(--color-primary); box-shadow: inset 0 0 0 4px var(--color-surface); }
input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline-offset: 2px; border-color: var(--color-border-strong); }
input[type="checkbox"]:checked:focus-visible, input[type="radio"]:checked:focus-visible { border-color: var(--color-primary); }
input[type="checkbox"]:disabled, input[type="radio"]:disabled { cursor: not-allowed; opacity: 0.6; }
@media (forced-colors: active) {
  input[type="checkbox"], input[type="radio"] { appearance: auto; }
}
.field { margin-bottom: var(--space-4); }
.field-error { display: flex; gap: 6px; align-items: flex-start; color: var(--color-danger); font-size: var(--text-sm); line-height: var(--leading-sm); margin-top: var(--space-1); }
.field-error svg { margin-top: 2px; }
.optional { color: var(--color-text-muted); font-weight: var(--weight-regular); }
.check { display: flex; align-items: flex-start; gap: 10px; font-weight: var(--weight-regular); font-size: var(--text-sm); line-height: var(--leading-sm); cursor: pointer; margin: 0; }
.check input { margin-top: 0; }
.filter-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.filter-grid label { display: block; margin-bottom: var(--space-1); }
.input-group { display: flex; align-items: stretch; }
.input-group input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .suffix {
  display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--color-border-strong); border-left: 0;
  border-radius: 0 var(--radius-md) var(--radius-md) 0; background: var(--color-surface-2); color: var(--color-text-muted); font-size: var(--text-sm);
}
.form-row { display: grid; gap: var(--space-3); grid-template-columns: 1fr 1.4fr 150px auto; align-items: end; }
.form-row label { margin-bottom: 6px; }
@media (max-width: 799px) { .form-row { grid-template-columns: 1fr; } }
.form-grid { display: grid; gap: 0 var(--space-4); grid-template-columns: 1fr 1fr; }
@media (max-width: 639px) { .form-grid { grid-template-columns: 1fr; } }
.form-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; align-items: center; margin-top: var(--space-2); }
.inline-form { display: flex; gap: var(--space-2); align-items: stretch; flex-wrap: nowrap; }
.inline-form input { flex: 1; min-width: 0; }
details > summary { cursor: pointer; font-weight: var(--weight-semibold); list-style: none; display: inline-flex; align-items: center; gap: var(--space-2); min-height: 32px; }
details > summary::-webkit-details-marker { display: none; }
details > summary::before {
  content: ""; width: 16px; height: 16px; background: var(--select-arrow) center / 16px no-repeat; transform: rotate(-90deg);
  transition: transform var(--duration-base) var(--ease-out);
}
details[open] > summary::before { transform: none; }
details[open] > summary { margin-bottom: var(--space-3); }

/* Tabs and segmented controls */
.tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--color-surface-2); border: 1px solid var(--color-border); border-radius: var(--radius-lg); margin: 0 0 var(--space-4); max-width: 100%; }
.tab {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 var(--space-3); border-radius: var(--radius-md);
  border: 1px solid transparent; background: transparent; color: var(--color-text-muted); font: var(--weight-medium) var(--text-sm)/1 var(--font-sans);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.tab:hover { color: var(--color-text); background: var(--color-surface-3); }
.tab[aria-selected="true"], .tab[aria-current="page"], .tab[aria-pressed="true"] { background: var(--color-surface); color: var(--color-text); border-color: var(--color-border); box-shadow: var(--shadow-xs); }
.admin-nav { margin-bottom: var(--space-6); }
.pager { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-4) 0 0; }
.card .table-wrap + .pager { padding-top: var(--space-4); }

/* Progress bar */
.progress { height: 8px; border-radius: var(--radius-full); background: var(--color-progress-track); overflow: hidden; }
.progress > div, .progress > i { display: block; height: 100%; background: var(--color-progress); border-radius: inherit; transition: width var(--duration-slow) var(--ease-out); }

/* Code blocks with a header and a copy button (docs, dashboard, landing) */
.code-block { border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface-2); margin: 0 0 var(--space-4); overflow: hidden; }
.code-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); min-height: 40px;
  padding: 4px 6px 4px var(--space-4); border-bottom: 1px solid var(--color-border); background: var(--color-surface);
}
.code-lang { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); }
.code-block pre { border: 0; border-radius: 0; margin: 0; background: transparent; }
.copy-button { gap: 6px; }
.copy-button[data-copied="true"] { color: var(--color-success); }

/* Key panels on the app page */
.keys-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.key-panel { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); min-width: 0; background: var(--color-surface); }
.key-panel h3 { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.key-panel-test { border: 1px dashed var(--signal-500); background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box; }
.key-value { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.key-value code { display: block; flex: 1; min-width: 0; padding: 8px 10px; font-size: 0.8rem; overflow-x: auto; white-space: nowrap; border-radius: var(--radius-md); }

/* ------------------------------------------------------------------ */
/* Checkout popup (brand book §9.4)                                     */
/* ------------------------------------------------------------------ */
.checkout-page { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; background: var(--color-surface); }
.checkout-sheet { width: 100%; max-width: var(--checkout-width); display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; background: var(--color-surface); }
@media (min-width: 560px) and (min-height: 760px) {
  .checkout-page { background: var(--color-bg); padding: var(--space-10) var(--space-4); align-items: flex-start; }
  .checkout-sheet { min-height: 0; border: 1px solid var(--color-border); border-radius: var(--radius-2xl); box-shadow: var(--shadow-popup); overflow: hidden; }
}
.checkout-head { display: flex; align-items: center; gap: var(--space-2); height: 52px; padding: 0 var(--space-2) 0 var(--space-5); border-bottom: 1px solid var(--color-border); flex: none; }
.checkout-head .logo { height: 18px; }
.checkout-head .who { margin-left: auto; font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.checkout-head .close { margin-left: auto; width: 32px; height: 32px; padding: 0; color: var(--color-text-muted); border-radius: var(--radius-md); }
.checkout-head .who + .close { margin-left: 0; }
.checkout-body { padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-4); flex: 1; }
.checkout-body > * { margin: 0; }
.checkout-body .banner { margin: 0; }
.app-row { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.app-avatar {
  width: 36px; height: 36px; border-radius: var(--radius-lg); display: grid; place-items: center; flex: none;
  background: var(--color-info-soft); color: var(--color-info); font-weight: 700; font-size: var(--text-sm); letter-spacing: 0.02em;
}
.app-row .app-name { font-size: var(--text-sm); line-height: 1.3; color: var(--color-text-muted); overflow-wrap: anywhere; }
.app-row .action-name { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-xl); line-height: 1.25; letter-spacing: -0.01em; margin: 0; color: var(--color-text); overflow-wrap: anywhere; }
/* Focus lands on the heading for screen readers; it is not a tab stop, so no ring. */
.app-row .action-name:focus { outline: none; }
.price-line { display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.price-line .amt { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-4xl); line-height: 1; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price-line .unit { font-size: var(--text-md); font-weight: var(--weight-medium); color: var(--color-text-muted); }
.minutes { display: flex; align-items: center; gap: 6px; font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); margin-top: var(--space-2); }
.ledger { background: var(--color-surface-2); border-radius: var(--radius-lg); padding: 2px var(--space-4); font-size: var(--text-sm); line-height: var(--leading-sm); }
.ledger > div { display: flex; justify-content: space-between; gap: var(--space-3); padding: 9px 0; font-variant-numeric: tabular-nums; }
.ledger > div + div { border-top: 1px solid var(--color-border); }
.ledger dt, .ledger .k { color: var(--color-text-muted); }
.ledger dd { margin: 0; }
.ledger .total { font-weight: var(--weight-semibold); }
.have-line { display: flex; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); margin-bottom: var(--space-2); font-variant-numeric: tabular-nums; }
.have-line b { color: var(--color-text); }
.earn-box { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-4); display: grid; gap: var(--space-3); }
.earn-box h2 { font-family: var(--font-sans); font-size: var(--text-lg); line-height: var(--leading-lg); letter-spacing: 0; margin: 0; }
.fact-list { display: grid; gap: var(--space-2); font-size: var(--text-sm); line-height: var(--leading-sm); list-style: none; padding: 0; margin: 0; }
.fact-list li { display: flex; gap: 10px; align-items: flex-start; }
.fact-list svg { margin-top: 2px; color: var(--color-accent); }
.wall-frame { display: block; width: 100%; height: 420px; min-height: 380px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.waiver { display: flex; align-items: flex-start; gap: 10px; font-weight: var(--weight-regular); font-size: var(--text-sm); line-height: var(--leading-sm); cursor: pointer; margin: 0; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-lg); }
.waiver:has(input:checked) { border-color: var(--color-border-strong); background: var(--color-surface-2); }
.checkout-actions { display: grid; gap: var(--space-2); }
.checkout-actions .btn-lg { height: var(--control-lg); }
.cancel-reasons { display: grid; gap: var(--space-2); justify-items: center; text-align: center; }
.cancel-reasons p { margin: 0; font-size: var(--text-xs); line-height: 1.5; color: var(--color-text-muted); }
.cancel-reasons > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.cancel-reason {
  height: 28px; padding: 0 var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-full);
  background: var(--color-surface); color: var(--color-text-muted); font: inherit; font-size: var(--text-xs); cursor: pointer;
  transition: border-color var(--duration-fast) var(--ease-out), color var(--duration-fast) var(--ease-out);
}
.cancel-reason:hover { border-color: var(--color-border-strong); color: var(--color-text); }
.cancel-reason:disabled { opacity: 0.5; cursor: default; }
.checkout-foot { padding: var(--space-4) var(--space-5) var(--space-5); border-top: 1px solid var(--color-border); font-size: var(--text-xs); line-height: 1.6; color: var(--color-text-muted); text-align: center; flex: none; }
.checkout-foot p { margin: 0; }
.checkout-foot b, .checkout-foot strong { color: var(--color-text); }
.checkout-foot a { color: var(--color-text-muted); }
.checkout-foot a:hover { color: var(--color-text); }
.checkout-done { text-align: center; padding: var(--space-8) var(--space-2); display: grid; justify-items: center; gap: var(--space-2); }
.done-icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--color-success-soft); color: var(--color-success); border: 1px solid var(--color-success-border); margin-bottom: var(--space-2); }
.checkout-done h2 { margin: 0; }
.checkout-intro { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }
.consent { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-4); background: var(--color-surface-2); }
.consent h3 { font-family: var(--font-sans); font-size: var(--text-md); line-height: var(--leading-md); margin: 0 0 var(--space-2); letter-spacing: 0; }
.consent p { font-size: var(--text-sm); line-height: var(--leading-sm); }
.wall-choices { border: 0; padding: 0; margin: 0 0 var(--space-3); display: grid; gap: var(--space-2); }
.wall-choices legend { padding: 0; margin-bottom: var(--space-2); }
.wall-choice { display: flex; align-items: flex-start; gap: 10px; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-3); cursor: pointer; font-weight: var(--weight-regular); margin: 0; transition: border-color var(--duration-fast) var(--ease-out); }
.wall-choice:hover { border-color: var(--color-border-strong); }
.wall-choice:has(input:checked) { border-color: var(--color-text); background: var(--color-surface-2); }
.wall-choice > span { display: grid; gap: 2px; min-width: 0; font-size: var(--text-sm); line-height: var(--leading-sm); }
.wall-choice strong { font-size: var(--text-base); }
.dob-fields { display: grid; gap: var(--space-3); grid-template-columns: minmax(56px, 0.8fr) minmax(0, 1.5fr) minmax(72px, 1fr); }

/* ------------------------------------------------------------------ */
/* Marketing (landing page)                                             */
/* ------------------------------------------------------------------ */
.hero { position: relative; padding: var(--space-12) 0 var(--space-16); overflow: hidden; }
.hero-grid { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: var(--space-16); } .hero { padding: var(--space-20) 0 var(--space-24); } }
.display {
  font-family: var(--font-display); font-weight: var(--weight-semibold); letter-spacing: var(--tracking-display);
  font-size: 2.5rem; line-height: 2.75rem; margin: 0 0 var(--space-5);
}
@media (min-width: 640px) { .display { font-size: var(--text-5xl); line-height: var(--leading-5xl); } }
@media (min-width: 1280px) { .display { font-size: var(--text-6xl); line-height: var(--leading-6xl); } }
.hero .lead { margin-bottom: var(--space-8); }
.hero-cta { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-note { margin-top: var(--space-4); font-size: var(--text-sm); color: var(--color-text-muted); }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-8); padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: var(--space-2); height: 36px; padding: 0 var(--space-4) 0 var(--space-3);
  border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface); font-size: var(--text-sm); font-weight: var(--weight-medium);
}
.chip svg { color: var(--color-accent); }
.hero-visual { position: relative; display: grid; place-items: center; padding: var(--space-6) 0; }
.hero-arc { position: absolute; width: min(540px, 150%); aspect-ratio: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.preview-wrap { position: relative; width: 100%; max-width: 360px; }
@media (max-width: 959px) { .hero-arc { display: none; } }
.preview-sheet { position: relative; width: 100%; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-2xl); box-shadow: var(--shadow-popup); overflow: hidden; }
.preview-sheet .checkout-body { gap: var(--space-3); padding: var(--space-4) var(--space-5) var(--space-5); }
.preview-sheet .checkout-foot { padding: var(--space-3) var(--space-5); }
.preview-tag { position: absolute; top: -12px; right: 16px; z-index: 1; }

.section { padding: var(--space-16) 0; border-top: 1px solid var(--color-border); }
@media (min-width: 960px) { .section { padding: var(--space-24) 0; } }
.section-alt { background: var(--color-surface); }
.section-head { max-width: 760px; margin-bottom: var(--space-10); }
.section-head h2 { font-size: 1.75rem; line-height: 2.125rem; letter-spacing: var(--tracking-display); margin-bottom: var(--space-3); }
@media (min-width: 640px) { .section-head h2 { font-size: var(--text-4xl); line-height: var(--leading-4xl); } }
.section-head p { font-size: var(--text-lg); line-height: var(--leading-lg); color: var(--color-text-muted); margin: 0; }
.marketing { font-size: var(--text-md); line-height: var(--leading-md); }
.pillars { display: grid; gap: var(--space-5); grid-template-columns: 1fr; margin-bottom: var(--space-16); }
@media (min-width: 800px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: var(--space-6); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); }
.section-alt .pillar { background: var(--color-bg); }
.pillar-icon { width: 40px; height: 40px; border-radius: var(--radius-lg); display: grid; place-items: center; background: var(--color-surface-2); color: var(--color-accent); border: 1px solid var(--color-border); margin-bottom: var(--space-4); }
.pillar h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.pillar p { color: var(--color-text-muted); font-size: var(--text-base); line-height: var(--leading-base); }
.split { display: grid; gap: var(--space-8); align-items: start; margin-bottom: var(--space-16); }
.split:last-child { margin-bottom: 0; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: var(--space-12); } }
.split h3 { font-size: var(--text-2xl); line-height: var(--leading-2xl); letter-spacing: var(--tracking-heading); }
.split p { color: var(--color-text-muted); }
.numbered { list-style: none; padding: 0; margin: var(--space-5) 0; counter-reset: step; display: grid; gap: var(--space-3); }
.numbered li { counter-increment: step; display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); align-items: baseline; }
.numbered li::before {
  content: counter(step); width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--color-text);
  display: grid; place-items: center; font-size: var(--text-xs); font-weight: 700; font-variant-numeric: tabular-nums; transform: translateY(-1px);
}
.test-card { border: 1px dashed var(--signal-500); border-radius: var(--radius-xl); overflow: hidden; background: var(--color-surface); }
.test-card .banner-test { border-radius: 0; }
.test-card-body { padding: var(--space-6); }
.key-chips { display: flex; gap: var(--space-2); flex-wrap: wrap; margin: var(--space-4) 0; }
.timeline { display: grid; gap: var(--space-4); grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; counter-reset: tl; }
@media (min-width: 720px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.timeline li { position: relative; padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); }
.section-alt .timeline li { background: var(--color-bg); }
.timeline .step-k { display: flex; align-items: center; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-muted); margin-bottom: var(--space-2); }
.timeline .step-v { font-family: var(--font-display); font-weight: var(--weight-semibold); font-size: var(--text-xl); line-height: var(--leading-xl); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; margin-bottom: var(--space-2); }
.timeline p { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }
.user-steps { display: grid; gap: var(--space-5); grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0 0 var(--space-8); }
@media (min-width: 800px) { .user-steps { grid-template-columns: repeat(3, 1fr); } }
.user-steps li { padding: var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); }
.user-steps .pillar-icon { color: var(--color-text); }
.user-steps h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.user-steps p { color: var(--color-text-muted); }
.price-example { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--weight-semibold); color: var(--color-text); font-variant-numeric: tabular-nums; }
.note-row { display: flex; gap: var(--space-3); align-items: flex-start; padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--color-surface-2); font-size: var(--text-sm); line-height: var(--leading-sm); margin-bottom: var(--space-6); }
.note-row svg { margin-top: 2px; color: var(--color-accent); }

/* How it works diagram: monoline nodes, Ember only on the moment of payment */
.flow { display: grid; gap: 0; list-style: none; padding: 0; margin: 0 0 var(--space-8); grid-template-columns: 1fr; }
@media (min-width: 1000px) { .flow { grid-template-columns: repeat(5, 1fr); } }
.flow li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: var(--space-3); padding-bottom: var(--space-6); }
@media (min-width: 1000px) { .flow li { grid-template-columns: 1fr; padding: 0 var(--space-4) 0 0; } }
.flow .node { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--color-text); display: grid; place-items: center; background: var(--color-bg); position: relative; z-index: 1; }
.section-alt .flow .node { background: var(--color-surface); }
.flow .node-pay { border-color: var(--color-brand); background: var(--color-brand); color: var(--color-on-brand); }
.flow li::after { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--color-text); opacity: 0.85; }
.flow li:last-child::after { display: none; }
@media (min-width: 1000px) {
  .flow li::after { left: 44px; right: 0; top: 21px; bottom: auto; width: auto; height: 2px; }
}
.flow .who { font-size: var(--text-xs); line-height: var(--leading-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; font-weight: var(--weight-semibold); color: var(--color-text-muted); margin: 2px 0 var(--space-1); }
@media (min-width: 1000px) { .flow .who { margin-top: var(--space-4); } }
.flow h3 { font-family: var(--font-sans); font-size: var(--text-md); line-height: var(--leading-md); letter-spacing: 0; margin: 0 0 var(--space-1); }
.flow p { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); margin: 0; }
.flow code { font-size: 0.78rem; }
.supply { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3); padding: var(--space-4) var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); font-size: var(--text-sm); line-height: var(--leading-sm); }
.section-alt .supply { background: var(--color-bg); }
.supply .arrow { color: var(--color-text-subtle); }
.supply b { white-space: nowrap; }
@media (max-width: 719px) {
  .supply { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
  .supply .arrow { transform: rotate(90deg); }
}

.faq { max-width: 800px; border-top: 1px solid var(--color-border); }
.faq details { border-bottom: 1px solid var(--color-border); padding: var(--space-2) 0; }
.faq summary { width: 100%; min-height: 56px; font-family: var(--font-display); font-size: var(--text-lg); line-height: var(--leading-lg); letter-spacing: -0.005em; justify-content: space-between; flex-direction: row-reverse; }
.faq summary::before { transform: none; }
.faq details[open] > summary::before { transform: rotate(180deg); }
.faq details[open] > summary { margin-bottom: var(--space-2); }
.faq .answer { padding: 0 var(--space-8) var(--space-4) 0; color: var(--color-text-muted); font-size: var(--text-md); line-height: var(--leading-md); max-width: 68ch; }
.cta-band { display: grid; gap: var(--space-6); align-items: center; padding: var(--space-10); border-radius: var(--radius-2xl); background: var(--color-primary); color: var(--color-on-primary); }
.cta-band h2 { color: var(--color-on-primary); font-size: var(--text-2xl); line-height: var(--leading-2xl); margin-bottom: var(--space-2); }
.cta-band p { color: var(--color-on-primary); opacity: 0.8; margin: 0; }
.cta-band .btn-secondary { background: transparent; color: var(--color-on-primary); border-color: currentColor; }
.cta-band .btn-secondary:hover { background: rgb(127 127 127 / 0.18); color: var(--color-on-primary); }
.cta-band .btn-primary { background: var(--color-on-primary); color: var(--color-primary); border-color: var(--color-on-primary); }
.cta-band .btn-primary:hover { opacity: 0.92; background: var(--color-on-primary); color: var(--color-primary); }
.cta-band :focus-visible { outline-color: var(--color-on-primary); }
@media (min-width: 800px) { .cta-band { grid-template-columns: 1fr auto; } }
@media (max-width: 639px) { .cta-band { padding: var(--space-6); } }

/* ------------------------------------------------------------------ */
/* Docs and legal pages (rendered markdown)                             */
/* ------------------------------------------------------------------ */
.docs-layout { display: grid; gap: var(--space-10); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .docs-layout { grid-template-columns: 220px minmax(0, 1fr); gap: var(--space-16); } }
.docs-toc { font-size: var(--text-sm); line-height: var(--leading-sm); }
@media (min-width: 1024px) { .docs-toc { position: sticky; top: calc(var(--header-height) + var(--space-8)); align-self: start; max-height: calc(100vh - var(--header-height) - var(--space-16)); overflow-y: auto; } }
.docs-toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 1px solid var(--color-border); }
.docs-toc a { display: block; padding: 5px var(--space-3); margin-left: -1px; border-left: 2px solid transparent; color: var(--color-text-muted); text-decoration: none; }
.docs-toc a:hover { color: var(--color-text); border-left-color: var(--color-border-strong); }
.docs-toc .toc-title { font-size: var(--text-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; font-weight: var(--weight-semibold); color: var(--color-text-muted); margin-bottom: var(--space-3); }
.docs-toc .toc-links { margin-top: var(--space-6); display: grid; gap: var(--space-2); }
.docs-toc .toc-links a { display: flex; align-items: center; gap: var(--space-2); border-left: 0; padding-left: 0; }
.docs-toc .toc-links a:hover { color: var(--color-accent); }
@media (max-width: 1023px) { .docs-toc { border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface); padding: var(--space-4) var(--space-5); } }
.prose { max-width: var(--container-prose); font-size: var(--text-md); line-height: var(--leading-md); }
.prose > :first-child { margin-top: 0; }
.prose h1 { font-size: 1.75rem; line-height: 2.125rem; letter-spacing: var(--tracking-display); margin: 0 0 var(--space-4); }
@media (min-width: 640px) { .prose h1 { font-size: var(--text-4xl); line-height: var(--leading-4xl); } }
.prose h2 { margin: var(--space-12) 0 var(--space-4); padding-top: var(--space-8); border-top: 1px solid var(--color-border); }
.prose h3 { font-size: var(--text-xl); margin: var(--space-8) 0 var(--space-3); }
.prose h4 { margin: var(--space-6) 0 var(--space-2); }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--space-4); }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: var(--space-1); }
.prose li > ul, .prose li > ol { margin: var(--space-1) 0 0; }
.prose blockquote { margin: 0 0 var(--space-6); padding: var(--space-3) var(--space-5); border-left: 3px solid var(--color-brand); background: var(--color-surface-2); border-radius: 0 var(--radius-md) var(--radius-md) 0; color: var(--color-text-muted); }
.prose blockquote > :last-child { margin-bottom: 0; }
.prose .prose-table { overflow-x: auto; margin: 0 0 var(--space-6); border: 1px solid var(--color-border); border-radius: var(--radius-xl); }
.prose table { width: 100%; font-size: var(--text-sm); }
.prose table th, .prose table td { height: auto; padding: var(--space-2) var(--space-3); vertical-align: top; border-bottom: 1px solid var(--color-border); }
.prose table th:first-child, .prose table td:first-child { padding-left: var(--space-4); }
.prose table tbody tr:last-child td { border-bottom: 0; }
.prose table tbody tr:hover td { background: none; }
.prose table td code { white-space: nowrap; }
.prose hr { margin: var(--space-10) 0; }
.prose hr + h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.prose .code-block { margin-bottom: var(--space-6); }
.prose h2 + .code-block, .prose h3 + .code-block { margin-top: var(--space-2); }
.prose th:empty { padding: 0; border: 0; }
.prose .heading-anchor { color: inherit; text-decoration: none; }
.prose .heading-anchor:hover { text-decoration: underline; text-decoration-color: var(--color-border-strong); }
.legal-draft {
  background: var(--color-warning-soft); color: var(--color-text); border: 1px solid var(--color-warning-border); border-left: 4px solid var(--color-warning);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-6); font-size: var(--text-sm); line-height: var(--leading-sm);
}
.legal-draft > :last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ */
/* Public demo                                                          */
/* ------------------------------------------------------------------ */
.demo-grid { display: grid; gap: var(--space-10); align-items: start; }
@media (min-width: 1000px) { .demo-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: var(--space-12); } }
.browser { border: 1px solid var(--color-border); border-radius: var(--radius-2xl); overflow: hidden; background: var(--color-surface); box-shadow: var(--shadow-lg); }
.browser-bar { height: 40px; display: flex; align-items: center; gap: 6px; padding: 0 var(--space-4); background: var(--color-surface-2); border-bottom: 1px solid var(--color-border); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border-strong); opacity: 0.5; display: block; }
.browser-bar .url { margin-left: var(--space-3); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-full); padding: 3px 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.browser-body { padding: var(--space-6); }
@media (max-width: 479px) { .browser-body { padding: var(--space-4); } }
.invoice { border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); margin-bottom: var(--space-5); background: var(--color-bg); }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-3); margin-bottom: var(--space-4); }
.invoice-head h2 { font-size: var(--text-xl); line-height: var(--leading-xl); margin: 0; }
.invoice table { font-size: var(--text-sm); }
.invoice th { background: transparent; padding-left: 0; height: 32px; }
.invoice td { height: 40px; padding-left: 0; }
.invoice th:last-child, .invoice td:last-child { padding-right: 0; }
.invoice tbody tr:hover td { background: none; }
.invoice tfoot td { font-weight: var(--weight-semibold); border-bottom: 0; border-top: 1px solid var(--color-border-strong); }
.pay-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); }
.pay-row .what { font-size: var(--text-sm); color: var(--color-text-muted); }
.unlocked { margin-top: var(--space-5); border: 1px solid var(--color-success-border); background: var(--color-success-soft); border-radius: var(--radius-lg); padding: var(--space-4) var(--space-5); }
.unlocked h3 { font-family: var(--font-sans); font-size: var(--text-md); display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.unlocked h3 svg { color: var(--color-success); }
.unlocked pre { background: var(--color-surface); margin: var(--space-3) 0 0; font-size: 0.8rem; }
.explain ol { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); counter-reset: ex; }
.explain li { counter-increment: ex; display: grid; grid-template-columns: 32px 1fr; gap: var(--space-3); }
.explain li::before {
  content: counter(ex); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--color-text); font-weight: 700; font-size: var(--text-sm); font-variant-numeric: tabular-nums;
}
.explain li.done::before { background: var(--color-success-soft); border-color: var(--color-success); color: var(--color-success); }
.explain h3 { font-family: var(--font-sans); font-size: var(--text-md); line-height: var(--leading-md); margin: 2px 0 var(--space-1); letter-spacing: 0; }
.explain p { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); margin: 0; }

/* ------------------------------------------------------------------ */
/* Sign-in, status pages                                               */
/* ------------------------------------------------------------------ */
.auth-wrap { max-width: 440px; margin: var(--space-4) auto var(--space-8); }
@media (min-width: 640px) { .auth-wrap { margin-top: var(--space-10); } }
.auth-card { padding: var(--space-8); }
@media (max-width: 479px) { .auth-card { padding: var(--space-6) var(--space-5); } }
.auth-card .logo-mark { width: 40px; height: 40px; margin-bottom: var(--space-5); }
.divider { display: flex; align-items: center; gap: var(--space-3); color: var(--color-text-subtle); font-size: var(--text-xs); margin: var(--space-4) 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--color-border); }
.status-page { max-width: 560px; margin: var(--space-12) auto; text-align: left; }
.status-page .code { font-size: var(--text-xs); letter-spacing: var(--tracking-caps); text-transform: uppercase; font-weight: var(--weight-semibold); color: var(--color-accent); margin-bottom: var(--space-3); display: block; }
.status-page h1 { font-size: var(--text-4xl); line-height: var(--leading-4xl); letter-spacing: var(--tracking-display); }
.status-page p { color: var(--color-text-muted); font-size: var(--text-md); line-height: var(--leading-md); }
.status-page .row { margin-top: var(--space-6); }

/* Theme switch */
.theme-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--color-border); border-radius: var(--radius-full); background: var(--color-surface-2); }
.theme-switch button {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--radius-full); border: 0;
  background: transparent; color: var(--color-text-muted); font: var(--weight-medium) var(--text-xs)/1 var(--font-sans); cursor: pointer;
}
.theme-switch button:hover { color: var(--color-text); }
.theme-switch button[aria-pressed="true"] { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-xs); }

/* Mock survey wall (inside an iframe) */
.mock-wall { padding: var(--space-4); background: var(--color-surface); min-height: 100vh; }
.mock-wall .btn-block { height: auto; min-height: var(--control-lg); padding: var(--space-3) var(--space-4); flex-direction: column; gap: 2px; white-space: normal; }
.mock-wall .btn-sub { font-weight: var(--weight-regular); font-size: var(--text-sm); opacity: 0.85; }

/* Admin column chart: one series, bars grow from the baseline, values in the tooltip and the table below. */
.col-chart { margin: var(--space-4) 0 0; }
.col-chart-plot { position: relative; display: flex; gap: 3px; height: 180px; padding: 20px 0 0 44px; border-bottom: 1px solid var(--color-border-strong); }
.col-chart-grid { position: absolute; left: 0; right: 0; top: 20px; bottom: 0; pointer-events: none; }
.col-chart-grid div { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--color-border); }
.col-chart-grid span { position: absolute; left: 0; bottom: 2px; font-size: var(--text-xs); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.col-chart-col { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.col-chart-bar { width: 100%; max-width: 24px; background: var(--color-progress); border-radius: 4px 4px 0 0; }
.col-chart-col:hover .col-chart-bar { background: var(--color-brand-hover); }
.col-chart-value { position: absolute; left: 0; right: 0; text-align: center; font-size: var(--text-xs); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.col-chart-axis { display: flex; gap: 3px; padding-left: 44px; margin-top: var(--space-1); }
.col-chart-axis span { flex: 1; min-width: 0; text-align: center; font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; }
@media (max-width: 639px) { .col-chart-axis .minor { visibility: hidden; } }
.funnel-bar { min-width: 80px; }

.plain-list { padding-left: 1.2em; margin: 0 0 var(--space-4); }
.plain-list li + li { margin-top: var(--space-1); }
.banner-spaced { margin: var(--space-3) 0 0; }
.earn-facts { display: grid; gap: var(--space-4); grid-template-columns: 1fr; margin: 0 0 var(--space-6); }
@media (min-width: 800px) { .earn-facts { grid-template-columns: repeat(3, 1fr); } }
.earn-facts li { padding: var(--space-4); border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.label-text { display: block; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); margin-bottom: 6px; }

/* Builder analytics: daily column chart. One series in the progress colour (3:1 on the surface); the y axis is its
   own fixed-width SVG so the plot can stretch without scaling text. */
.analytics-bar { margin-bottom: var(--space-5); }
.analytics-stats .value { overflow-wrap: anywhere; }
.day-chart { display: grid; grid-template-columns: 60px minmax(0, 1fr); margin: var(--space-2) 0 var(--space-4); }
.day-chart svg { display: block; overflow: visible; font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.day-chart-y text { font-size: var(--text-xs); fill: var(--color-text-muted); }
.day-chart-plot .grid { stroke: var(--color-border); stroke-dasharray: 3 3; }
.day-chart-plot .baseline { stroke: var(--color-border-strong); }
.day-chart-plot .fill { fill: var(--color-progress); }
.day-chart-plot .hit { fill: transparent; }
.day-chart-col:hover .fill { fill: var(--color-brand-hover); }
.day-chart-plot .value { font-size: var(--text-xs); font-weight: var(--weight-semibold); fill: var(--color-text); }
.day-chart-plot .axis { font-size: var(--text-xs); fill: var(--color-text-muted); }
@media (forced-colors: active) {
  .day-chart-plot .fill { fill: CanvasText; }
  .day-chart-plot .grid, .day-chart-plot .baseline { stroke: GrayText; }
  .day-chart text { fill: CanvasText; }
}
.chart-table { margin-top: var(--space-2); }
.chart-table summary { font-size: var(--text-sm); }

/* App directory (/apps) and its preview on the app page. Avatars are letters, never an image from the builder. */
.letter-avatar {
  display: inline-grid; place-items: center; flex: none; border-radius: var(--radius-lg);
  font: var(--weight-semibold) var(--text-md)/1 var(--font-sans); letter-spacing: 0.02em; user-select: none;
}
.letter-avatar[data-tone="0"] { background: var(--color-brand-soft); color: var(--color-on-brand-soft); }
.letter-avatar[data-tone="1"] { background: var(--color-primary); color: var(--color-on-primary); }
.letter-avatar[data-tone="2"] { background: var(--color-surface-3); color: var(--color-text); }
.letter-avatar[data-tone="3"] { background: var(--color-brand); color: var(--color-on-brand); }
@media (forced-colors: active) { .letter-avatar { border: 1px solid CanvasText; } }
.directory-grid { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); margin: 0 0 var(--space-5); padding: 0; list-style: none; }
.directory-grid > li { display: flex; min-width: 0; }
.app-card {
  display: flex; flex-direction: column; gap: var(--space-3); flex: 1; min-width: 0; padding: var(--space-5);
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl);
}
.app-card-head { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.app-card-title { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.app-card-title h2, .app-card-title h3 {
  margin: 0; font-family: var(--font-sans); font-size: var(--text-md); line-height: var(--leading-md); letter-spacing: 0; overflow-wrap: anywhere;
}
.app-card p { margin: 0; flex: 1; color: var(--color-text-muted); font-size: var(--text-sm); line-height: var(--leading-sm); overflow-wrap: anywhere; }
.app-card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-width: 0; }
.app-card-host { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--text-xs); color: var(--color-text-muted); }
.app-card-report { display: inline-flex; align-items: center; gap: var(--space-1); align-self: flex-start; min-height: 24px; font-size: var(--text-xs); color: var(--color-text-muted); text-decoration: underline; text-underline-offset: 2px; }
.app-card-report:hover { color: var(--color-text); }
.listing-preview { display: grid; gap: var(--space-2); max-width: 380px; margin: 0 0 var(--space-4); }
.directory-search { display: flex; gap: var(--space-2); margin: 0 0 var(--space-4); max-width: 560px; }
.directory-search input { flex: 1; min-width: 0; }
.category-tabs { margin-bottom: var(--space-5); }
.category-tabs .count { color: var(--color-text-muted); font-variant-numeric: tabular-nums; }

/* Admin review lists */
.report-text { white-space: pre-wrap; }
.decision-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-4); }
.decision-list > li + li { border-top: 1px solid var(--color-border); padding-top: var(--space-4); }
.decision-list p { margin: 0 0 var(--space-2); }
.decision-list .facts { margin: 0; }
.decision-choices { display: grid; gap: var(--space-2); margin: 0 0 var(--space-4); padding: 0; border: 0; }
.decision-choices legend { font-size: var(--text-sm); font-weight: var(--weight-medium); margin-bottom: var(--space-2); padding: 0; }
.review-panel { margin: 0 0 var(--space-4); }
.review-panel:last-child { margin-bottom: 0; }
.review-grid { display: grid; gap: var(--space-5); grid-template-columns: minmax(0, 340px) minmax(0, 1fr); align-items: start; margin: 0 0 var(--space-4); }
@media (max-width: 719px) { .review-grid { grid-template-columns: minmax(0, 1fr); } }
.inline-details { margin-top: var(--space-2); }
.inline-details > summary { font-weight: var(--weight-medium); min-height: 24px; }

.pre-line { white-space: pre-line; }
.textarea-prose { font-family: var(--font-sans); font-size: var(--text-md); line-height: var(--leading-md); }
.narrow-field { max-width: 280px; }

/* The honeypot in public forms (src/lib/reports.ts): never shown, so only bots fill it in. */
.hp-field { display: none; }

/*
 * Additions for the pre-launch site. The platform's tokens.css and globals.css come first in the bundle
 * (build.mjs), so everything here reuses the brand's tokens and only covers what the platform doesn't have.
 */

/* Header and hero */
.header-user .btn { white-space: nowrap; }
.hero-status { display: flex; gap: var(--space-2); align-items: flex-start; margin-top: var(--space-6); font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-text-muted); }
.hero-status svg { margin-top: 2px; color: var(--color-accent); }
.hero-visual { margin: 0; }

/* In-browser demo */
.invoice-head .invoice-title { font-size: var(--text-xl); line-height: var(--leading-xl); margin: 0; }
.explain-title { margin-bottom: var(--space-5); }
.explain h4 { font-family: var(--font-sans); font-size: var(--text-md); line-height: var(--leading-md); margin: 2px 0 var(--space-1); letter-spacing: 0; }
.pay-row .what svg { display: inline; vertical-align: -3px; margin-right: 6px; }
.demo-wallet { margin: var(--space-4) 0 0; }
.demo-wallet .btn-link { font-size: inherit; }
.demo-dialog {
  padding: 0; border: 0; background: transparent; color: var(--color-text);
  width: min(100% - 2 * var(--space-4), var(--checkout-width)); max-width: var(--checkout-width); max-height: calc(100dvh - 2 * var(--space-4));
  overflow: visible;
}
.demo-dialog::backdrop { background: rgb(21 19 28 / 0.55); backdrop-filter: blur(2px); }
.demo-dialog .demo-sheet {
  min-height: 0; max-height: calc(100dvh - 2 * var(--space-4)); overflow-y: auto;
  border: 1px solid var(--color-border); border-radius: var(--radius-2xl); box-shadow: var(--shadow-popup); background: var(--color-surface);
}
.demo-sheet > .banner-test { margin: 0; border-radius: 0; border-width: 0 0 1px; }
.demo-sheet .checkout-head .close { display: inline-grid; place-items: center; }
.demo-sheet .earn-box .btn { margin-top: var(--space-1); }
.demo-sheet .sim-note { font-size: var(--text-xs); line-height: 1.5; color: var(--color-text-muted); margin: 0; }
.progress { height: 8px; border-radius: var(--radius-full); background: var(--color-surface-2); overflow: hidden; }
.progress > div { height: 100%; background: var(--color-brand); border-radius: inherit; transition: width var(--duration-base, 200ms) var(--ease-out); }
.video-block { display: grid; gap: var(--space-6); align-items: center; margin-top: var(--space-16); }
@media (min-width: 1000px) { .video-block { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: var(--space-12); } }
.video-text h3 { margin-top: 0; }
.video-text p { color: var(--color-text-muted); }
.demo-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-surface-2); box-shadow: var(--shadow-lg); }

/* Builders */
.code-block pre .c { color: var(--color-text-subtle); }
.payouts-intro { max-width: 64ch; margin-bottom: var(--space-6); }
#code .fact-list { margin-top: var(--space-4); }

/* Pilot form */
.pilot-grid { display: grid; gap: var(--space-10); align-items: start; }
@media (min-width: 1000px) { .pilot-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: var(--space-16); } }
.pilot-intro h1 { margin-top: var(--space-2); }
.h-small { font-family: var(--font-sans); font-size: var(--text-md); line-height: var(--leading-md); letter-spacing: 0; margin: var(--space-6) 0 var(--space-2); }
.pilot-intro p { color: var(--color-text-muted); }
.pilot-intro .lead { color: var(--color-text); }
.pilot-form { padding: var(--space-6); }
.card-title { font-size: var(--text-xl); line-height: var(--leading-xl); margin: 0 0 var(--space-5); }
.textarea-prose { font-family: var(--font-sans); font-size: var(--text-base); line-height: var(--leading-base, 1.5); }
.radio-row { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); }
.label-text { display: block; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: var(--weight-medium); margin-bottom: var(--space-2); }
.consents { display: grid; gap: var(--space-3); margin: var(--space-2) 0 var(--space-5); }
.field .hint { margin: var(--space-1) 0 0; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-errors:empty { display: none; }
.form-errors { margin-bottom: var(--space-4); }

/* Text pages */
.narrow { max-width: 760px; }
.prose h2 { font-size: var(--text-xl); line-height: var(--leading-xl); margin: var(--space-8) 0 var(--space-3); }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: var(--space-2); }
.address { line-height: 1.7; }
.thanks { text-align: center; padding: var(--space-12) 0; display: grid; justify-items: center; }
.thanks .row { justify-content: center; }
.thanks .done-icon { margin-bottom: var(--space-4); }

/* Pages from the Worker (errors, the founder's list) */
.logo-img { height: 22px; width: auto; }
.error-list { color: var(--color-danger); }
.admin-table { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); margin: var(--space-4) 0; }
.admin-table table { font-size: var(--text-sm); min-width: 1100px; }
.admin-table td { vertical-align: top; max-width: 28ch; overflow-wrap: anywhere; }
.admin-table form { margin: 0; }
