/* ==========================================================================
   Whisp — website styles
   --------------------------------------------------------------------------
   The palette is lifted from Whisp/Design/Theme.swift so the site and the
   app are visibly the same product. Fonts are ui-serif / ui-rounded, which on
   Apple devices *are* the app's New York and SF Pro Rounded — so for the
   people actually arriving from the App Store, the type matches exactly, and
   no font is ever requested from a third party.

   No inline styles anywhere, so the Content-Security-Policy in _headers can
   stay strict (style-src 'self').
   ========================================================================== */

/* ---------- 1. Tokens ---------- */

:root {
  color-scheme: light;

  --cream: #FFF8F2;
  --paper: #FFFDFB;
  --mist: #F5F0FA;
  --bezel: #FFFFFF;
  --bezel-2: #EFE9FB;

  --ink: #2A2238;
  --ink-soft: #5B5272;
  --ink-faint: #6E6485;
  --hairline: rgba(42, 34, 56, 0.09);
  --hairline-strong: rgba(42, 34, 56, 0.16);
  --on-ink: #FFF8F2;

  --lavender: #B9A7F6;
  --lavender-light: #ECE6FD;
  --lilac: #9278EE;
  --grape: #5B3FC9;
  --peach: #FFB68C;
  --peach-light: #FFE6D6;
  --tangerine: #A4501B;
  --blush: #FF9EC3;
  --blush-light: #FFE3EE;
  --rose: #B93667;
  --mint: #86E6AE;
  --mint-light: #DDF8E8;
  --mint-deep: #1F7A4C;
  --butter: #FFD978;
  --butter-light: #FFF4D2;
  --butter-deep: #7A5A00;
  --sky: #A7D8FF;
  --sky-light: #E3F2FF;
  --sky-deep: #1D5E94;

  --g-dream: linear-gradient(135deg, #B9A7F6 0%, #FF9EC3 55%, #FFB68C 100%);
  --g-sunset: linear-gradient(135deg, #FFC58F 0%, #FF8B4E 100%);
  --g-haze: linear-gradient(135deg, #C9BBFA 0%, #9278EE 100%);
  --g-candy: linear-gradient(135deg, #FFC2D8 0%, #FF8FB8 100%);
  --g-fresh: linear-gradient(135deg, #B7F0CE 0%, #6FDDA0 100%);
  --g-sky: linear-gradient(135deg, #CDE9FF 0%, #8FCBFF 100%);
  --g-text: linear-gradient(100deg, #7C5CE8 0%, #D2477F 60%, #E07A3E 100%);

  --shadow: rgba(91, 63, 160, 0.14);
  --shadow-strong: rgba(70, 45, 140, 0.30);
  --wash-strength: 52%;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 30px;
  --r-xl: 40px;

  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Dark mode, twice: once for "follow the system", once for the explicit toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --cream: #15111C; --paper: #221C2E; --mist: #2A2338; --bezel: #2E2640; --bezel-2: #1C1726;
    --ink: #F6F2FB; --ink-soft: #C9C0DC; --ink-faint: #A69CBC;
    --hairline: rgba(255, 255, 255, 0.09); --hairline-strong: rgba(255, 255, 255, 0.18); --on-ink: #15111C;
    --lavender: #A892F2; --lavender-light: #312A46; --lilac: #A78BFF; --grape: #C9B8FF;
    --peach: #FFA877; --peach-light: #3B2A22; --tangerine: #FFB08A;
    --blush: #FF8FB8; --blush-light: #3B2430; --rose: #FF9BBE;
    --mint: #6FDDA0; --mint-light: #1F3329; --mint-deep: #7FE3AB;
    --butter: #FFD15C; --butter-light: #3A3220; --butter-deep: #FFD873;
    --sky: #8FCBFF; --sky-light: #1F2A38; --sky-deep: #9FD2FF;
    --g-text: linear-gradient(100deg, #B9A2FF 0%, #FF9BC2 60%, #FFB98F 100%);
    --shadow: rgba(0, 0, 0, 0.42); --shadow-strong: rgba(0, 0, 0, 0.6);
    --wash-strength: 30%;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --cream: #15111C; --paper: #221C2E; --mist: #2A2338; --bezel: #2E2640; --bezel-2: #1C1726;
  --ink: #F6F2FB; --ink-soft: #C9C0DC; --ink-faint: #A69CBC;
  --hairline: rgba(255, 255, 255, 0.09); --hairline-strong: rgba(255, 255, 255, 0.18); --on-ink: #15111C;
  --lavender: #A892F2; --lavender-light: #312A46; --lilac: #A78BFF; --grape: #C9B8FF;
  --peach: #FFA877; --peach-light: #3B2A22; --tangerine: #FFB08A;
  --blush: #FF8FB8; --blush-light: #3B2430; --rose: #FF9BBE;
  --mint: #6FDDA0; --mint-light: #1F3329; --mint-deep: #7FE3AB;
  --butter: #FFD15C; --butter-light: #3A3220; --butter-deep: #FFD873;
  --sky: #8FCBFF; --sky-light: #1F2A38; --sky-deep: #9FD2FF;
  --g-text: linear-gradient(100deg, #B9A2FF 0%, #FF9BC2 60%, #FFB98F 100%);
  --shadow: rgba(0, 0, 0, 0.42); --shadow-strong: rgba(0, 0, 0, 0.6);
  --wash-strength: 30%;
}

/* Increase Contrast: the same move the app makes — deepen the quiet text tiers. */
@media (prefers-contrast: more) {
  :root { --ink-soft: #3F3756; --ink-faint: #4E4664; --grape: #45299F; --hairline: rgba(42, 34, 56, 0.28); }
  :root[data-theme="dark"] { --ink-soft: #E2DCEE; --ink-faint: #C9C1DA; --grape: #DACCFF; --hairline: rgba(255,255,255,.3); }
}

/* ---------- 2. Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--rounded);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* Author `display` rules beat the browser's own [hidden] style, so anything we toggle
   with the hidden attribute would otherwise stay visible. */
[hidden] { display: none !important; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
::selection { background: var(--lavender); color: #1A1427; }

/* The drifting pastel wash behind every page — the web twin of SoftBackground. */
.wash {
  position: fixed; inset: -18vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40vmax 40vmax at 10% 6%, color-mix(in srgb, var(--lavender) var(--wash-strength), transparent), transparent 64%),
    radial-gradient(36vmax 36vmax at 90% 16%, color-mix(in srgb, var(--peach) var(--wash-strength), transparent), transparent 62%),
    radial-gradient(42vmax 42vmax at 74% 90%, color-mix(in srgb, var(--blush) var(--wash-strength), transparent), transparent 64%),
    radial-gradient(34vmax 34vmax at 14% 84%, color-mix(in srgb, var(--sky) var(--wash-strength), transparent), transparent 62%);
  filter: blur(14px);
  animation: drift 26s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  to   { transform: translate3d(2.5%, -2%, 0) scale(1.07) rotate(2deg); }
}
/* Film grain, as on the app's gradient cards. */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain); opacity: .16; mix-blend-mode: multiply;
}
:root[data-theme="dark"] .grain { mix-blend-mode: overlay; opacity: .22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .grain { mix-blend-mode: overlay; opacity: .22; } }

.container { width: min(1140px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 32px); margin-inline: auto; }

/* ---------- 3. Type ---------- */

h1, h2, h3, h4 { margin: 0; color: var(--ink); }
.display, h1 {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.02em; line-height: 1.02;
  font-size: clamp(2.6rem, 6.4vw, 4.8rem); text-wrap: balance;
}
.h2, h2 {
  font-family: var(--serif); font-weight: 700; letter-spacing: -0.015em; line-height: 1.08;
  font-size: clamp(2rem, 4.4vw, 3.2rem); text-wrap: balance;
}
h3, .h3 { font-family: var(--rounded); font-weight: 800; font-size: clamp(1.12rem, 2vw, 1.3rem); line-height: 1.25; letter-spacing: -0.005em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }
.lede { font-size: clamp(1.08rem, 2vw, 1.3rem); line-height: 1.55; color: var(--ink-soft); max-width: 58ch; }
.muted { color: var(--ink-faint); }
.small { font-size: .9rem; }
strong, b { color: var(--ink); font-weight: 800; }
em { font-style: italic; }
a { color: var(--grape); text-decoration-thickness: 1.5px; text-underline-offset: 3px;
    text-decoration-color: color-mix(in srgb, var(--grape) 40%, transparent); }
a:hover { text-decoration-color: currentColor; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--grape); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--g-dream); }

/* A highlighter swipe under a word, like the app's gradient emphasis. */
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::after {
  content: ""; position: absolute; left: -.06em; right: -.06em; bottom: .06em; height: .34em; z-index: -1;
  background: var(--g-dream); border-radius: .2em; opacity: .55; transform: rotate(-1.2deg);
}
.grad-text { background: var(--g-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- 4. Layout helpers ---------- */

.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }
.section--flush-top { padding-top: 0; }
.section-head { max-width: 64ch; margin-bottom: clamp(30px, 5vw, 52px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.row.center { justify-content: center; }
.mt-s { margin-top: 12px; } .mt-m { margin-top: 24px; } .mt-l { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.mx-auto { margin-inline: auto; }

.grid { display: grid; gap: 18px; }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(380px, 100%), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.split { display: grid; gap: clamp(32px, 6vw, 72px); align-items: center; grid-template-columns: 1fr; }
.split > * { min-width: 0; }
@media (min-width: 940px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.15fr .85fr; }
}

/* Coloured bands between sections. */
.band { position: relative; isolation: isolate; }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--band, var(--mint-light)); opacity: .78;
  border-radius: clamp(28px, 5vw, 60px); margin-inline: clamp(0px, 1.5vw, 20px);
}
.band--mint { --band: var(--mint-light); }
.band--lav { --band: var(--lavender-light); }
.band--peach { --band: var(--peach-light); }
.band--sky { --band: var(--sky-light); }
.band--blush { --band: var(--blush-light); }

/* ---------- 5. Header ---------- */

.skip {
  position: absolute; left: 12px; top: -100px; z-index: 200;
  background: var(--ink); color: var(--on-ink); padding: 12px 18px;
  border-radius: 14px; font-weight: 800; text-decoration: none;
}
.skip:focus { top: 12px; }

.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: color-mix(in srgb, var(--cream) 72%, transparent);
  border-bottom: 1px solid var(--hairline);
}
.site-header .inner { display: flex; align-items: center; gap: 12px; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 4px 12px var(--shadow); }
.brand span { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; letter-spacing: -.02em; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.primary-nav a {
  display: block; padding: 8px 13px; border-radius: 999px;
  font-size: .93rem; font-weight: 700; color: var(--ink-soft); text-decoration: none;
  transition: background .18s, color .18s;
}
.primary-nav a:hover { background: var(--mist); color: var(--ink); }
.primary-nav a[aria-current="page"] { background: var(--ink); color: var(--on-ink); }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; flex: none;
  border-radius: 50%; border: 1px solid var(--hairline); background: var(--paper);
  color: var(--ink); cursor: pointer; transition: transform .2s var(--spring), background .2s;
}
.icon-btn:hover { transform: rotate(-12deg) scale(1.06); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

.menu-toggle { display: none; }
.mobile-menu { display: none; }

@media (max-width: 960px) {
  .primary-nav { display: none; }
  .theme-toggle { margin-left: auto; }
  .menu-toggle { display: inline-grid; }
  .mobile-menu {
    display: block; position: fixed; inset: 66px 0 auto 0; z-index: 99;
    background: color-mix(in srgb, var(--cream) 96%, transparent);
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--hairline); box-shadow: 0 24px 40px var(--shadow);
    padding: 12px 16px 22px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    /* Closing: fade, then hide. Opening (below): visible at once, so the first link can
       take focus immediately instead of only after the fade has played out. */
    transition: opacity .2s, transform .2s, visibility 0s linear .2s;
    max-height: calc(100dvh - 66px); overflow-y: auto;
  }
  .mobile-menu.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s, transform .2s, visibility 0s; }
  .mobile-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
  .mobile-menu a {
    display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px;
    font-weight: 800; font-size: 1.05rem; color: var(--ink); text-decoration: none;
  }
  .mobile-menu a:hover, .mobile-menu a[aria-current="page"] { background: var(--mist); }
  .mobile-menu .emoji { width: 28px; text-align: center; }
}
/* With JS off neither button can do anything, so hide them and, on narrow screens,
   show the real links as a sideways-scrolling strip instead of a dead menu button. */
html:not(.js) .theme-toggle, html:not(.js) .menu-toggle, html:not(.js) .mobile-menu { display: none; }
@media (max-width: 960px) {
  html:not(.js) .primary-nav { display: block; overflow-x: auto; scrollbar-width: none; min-width: 0; }
  html:not(.js) .primary-nav ul { width: max-content; }
}

/* ---------- 6. Buttons, pills, stickers ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 800 1rem/1.1 var(--rounded); text-decoration: none; letter-spacing: .005em;
  transition: transform .18s var(--spring), box-shadow .18s, filter .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ink { background: var(--ink); color: var(--on-ink); box-shadow: 0 12px 28px var(--shadow-strong); }
.btn--dream { background: var(--g-dream); color: #2A2238; box-shadow: 0 12px 30px color-mix(in srgb, var(--blush) 45%, transparent); }
.btn--soft { background: var(--paper); color: var(--ink); border: 1px solid var(--hairline); box-shadow: 0 8px 22px var(--shadow); }
.btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--hairline-strong); }
.btn--lg { padding: 18px 30px; font-size: 1.06rem; }
.btn--sm { padding: 10px 16px; font-size: .9rem; }
.btn[aria-disabled="true"] { cursor: default; }
.btn[aria-disabled="true"]:hover { transform: none; }

.pill {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 7px 14px; border-radius: 999px; font-size: .84rem; font-weight: 800; line-height: 1.2;
}
.pill--lav { background: var(--lavender-light); color: var(--grape); }
.pill--mint { background: var(--mint-light); color: var(--mint-deep); }
.pill--blush { background: var(--blush-light); color: var(--rose); }
.pill--peach { background: var(--peach-light); color: var(--tangerine); }
.pill--sky { background: var(--sky-light); color: var(--sky-deep); }
.pill--butter { background: var(--butter-light); color: var(--butter-deep); }
.pill--paper { background: var(--paper); color: var(--ink); border: 1px solid var(--hairline); }

.sticker {
  position: absolute; display: grid; place-items: center;
  border-radius: 50%; border: 5px solid var(--paper);
  box-shadow: 0 14px 30px var(--shadow-strong);
  font-weight: 900; color: #fff; z-index: 3;
}

/* ---------- 7. Cards ---------- */

.card {
  position: relative;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: 0 1px 0 rgba(255,255,255,.6) inset, 0 16px 40px var(--shadow);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.card--hover { transition: transform .25s var(--spring), box-shadow .25s; }
.card--hover:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 24px 54px var(--shadow-strong); }
.card--lav { background: color-mix(in srgb, var(--lavender-light) 88%, transparent); }
.card--mint { background: color-mix(in srgb, var(--mint-light) 88%, transparent); }
.card--blush { background: color-mix(in srgb, var(--blush-light) 88%, transparent); }
.card--peach { background: color-mix(in srgb, var(--peach-light) 88%, transparent); }
.card--sky { background: color-mix(in srgb, var(--sky-light) 88%, transparent); }
.card--butter { background: color-mix(in srgb, var(--butter-light) 88%, transparent); }
.tilt-l { rotate: -1.2deg; } .tilt-r { rotate: 1.2deg; }

.tile__icon {
  width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.6rem; margin-bottom: 16px; box-shadow: 0 8px 18px var(--shadow);
}
.ic-lav { background: var(--g-haze); } .ic-peach { background: var(--g-sunset); }
.ic-blush { background: var(--g-candy); } .ic-mint { background: var(--g-fresh); }
.ic-sky { background: var(--g-sky); } .ic-dream { background: var(--g-dream); }
.ic-butter { background: linear-gradient(135deg, #FFE7A3, #FFC94D); }
.tile h3 { margin-bottom: 8px; }

/* ---------- 8. Device frames ---------- */

.phone {
  width: clamp(200px, 23vw, 290px); aspect-ratio: 1206 / 2622;
  padding: 9px; border-radius: 48px;
  background: linear-gradient(150deg, var(--bezel), var(--bezel-2));
  box-shadow: 0 0 0 1px var(--hairline) inset, 0 50px 90px -24px var(--shadow-strong), 0 12px 28px var(--shadow);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 39px; }
.ipad {
  width: min(880px, 100%); aspect-ratio: 2064 / 2752; max-height: 760px;
  padding: 14px; border-radius: 44px; margin-inline: auto;
  background: linear-gradient(150deg, var(--bezel), var(--bezel-2));
  box-shadow: 0 0 0 1px var(--hairline) inset, 0 60px 100px -30px var(--shadow-strong);
}
.ipad img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 32px; }

/* ---------- 9. Home: hero ---------- */

.hero { padding: clamp(36px, 7vw, 90px) 0 clamp(30px, 5vw, 60px); }
.hero__grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
.hero__grid > * { min-width: 0; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.05fr .95fr; } }
.hero h1 { margin: 18px 0 22px; font-size: clamp(2.5rem, 4.9vw, 4.1rem); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 26px 0 0; }
.hero__trust li { display: inline-flex; align-items: center; gap: 7px; font-size: .92rem; font-weight: 700; color: var(--ink-soft); }
.hero__trust svg { width: 18px; height: 18px; color: var(--mint-deep); }

.hero__stage { position: relative; height: clamp(470px, 52vw, 640px); }
.hero__stage .phone { position: absolute; }
.phone--back { left: 6%; top: 8%; rotate: -8deg; }
.phone--front { right: 4%; top: 0; rotate: 5deg; z-index: 2; }
.sticker--heart { width: 74px; height: 74px; left: 0; top: 2%; background: var(--g-candy); font-size: 1.9rem; rotate: -10deg; animation: bob 5s ease-in-out infinite alternate; }
.sticker--plus { width: 66px; height: 66px; left: 3%; bottom: 14%; background: linear-gradient(135deg,#FFE7A3,#FFC94D); color: #2A2238; font-size: 1.15rem; animation: bob 4.4s ease-in-out -1.5s infinite alternate; }
.sticker--clue {
  border-radius: 999px; width: auto; height: auto; padding: 10px 16px 10px 12px; gap: 8px;
  display: inline-flex; right: -2%; bottom: 20%; background: var(--paper); color: var(--ink);
  font-size: .9rem; border-width: 0; box-shadow: 0 16px 34px var(--shadow-strong); rotate: 4deg;
  animation: bob 5.6s ease-in-out -2.4s infinite alternate;
}
.sticker--clue .check { width: 24px; height: 24px; border-radius: 50%; background: var(--g-fresh); display: grid; place-items: center; color: #134A2E; font-size: .8rem; }
.bubble-note {
  position: absolute; z-index: 4; left: 16%; bottom: 2%; max-width: 250px;
  background: var(--paper); border-radius: 22px 22px 22px 6px; padding: 14px 16px;
  box-shadow: 0 18px 40px var(--shadow-strong); border: 1px solid var(--hairline);
  font-family: var(--serif); font-size: 1.05rem; line-height: 1.3; color: var(--ink);
  rotate: -3deg; animation: bob 6s ease-in-out -3s infinite alternate;
}
.bubble-note small { display: block; font-family: var(--rounded); font-size: .76rem; font-weight: 800; color: var(--rose); margin-bottom: 4px; }
.mascot { position: absolute; width: clamp(96px, 11vw, 130px); right: 34%; top: -4%; z-index: 5; animation: float 6.5s ease-in-out infinite alternate; filter: drop-shadow(0 18px 24px var(--shadow)); }
@keyframes bob { from { translate: 0 0; } to { translate: 0 -12px; } }
@keyframes float { from { translate: 0 0; rotate: -3deg; } to { translate: 0 -16px; rotate: 3deg; } }

@media (max-width: 979px) {
  .hero__stage { height: 520px; max-width: 520px; margin-inline: auto; width: 100%; }
}
@media (max-width: 560px) {
  .hero__stage { height: 440px; }
  .phone--back { left: 0; width: 190px; }
  .phone--front { right: 0; width: 200px; }
  .bubble-note { left: 6%; max-width: 210px; font-size: .95rem; }
  .sticker--clue { right: 0; }
  .mascot { right: 38%; }
}

/* ---------- 10. Home: marquee ---------- */

.marquee {
  overflow: hidden; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee + .marquee { margin-top: 12px; }
.marquee__track { display: flex; gap: 12px; width: max-content; animation: marquee 70s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; animation-duration: 80s; }
.marquee:hover .marquee__track, .marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 13px 20px; border-radius: 999px; background: var(--paper);
  border: 1px solid var(--hairline); box-shadow: 0 8px 20px var(--shadow);
  font-family: var(--serif); font-size: 1.06rem; color: var(--ink);
}
.marquee__item .tag { font-family: var(--rounded); font-size: .72rem; font-weight: 900; letter-spacing: .04em; padding: 4px 9px; border-radius: 999px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 11. Home: steps ---------- */

.steps { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.step { display: flex; flex-direction: column; gap: 16px; overflow: hidden; padding-bottom: 0; }
.step__num {
  width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center;
  font: 900 1.15rem var(--rounded); color: #fff; box-shadow: 0 8px 18px var(--shadow);
}
.step__shot {
  margin: 8px -6px -1px; height: 290px; overflow: hidden; border-radius: 26px 26px 0 0;
  border: 1px solid var(--hairline); border-bottom: 0; background: var(--mist);
}
.step__shot img { width: 100%; object-fit: cover; object-position: top; }

/* ---------- 12. Home: the clue game ---------- */

.game { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; }
.game > * { min-width: 0; }
@media (min-width: 900px) { .game { grid-template-columns: 1fr 1.1fr; } }
.game__whisper { position: sticky; top: 90px; }
@media (max-width: 899px) { .game__whisper { position: static; } }
.whisper-card { padding: 28px; border-radius: 34px; }
.whisper-card__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.whisper-card__text { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.22; color: var(--ink); margin: 0 0 22px; }
.whisper-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dots { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; font-weight: 800; color: var(--ink-faint); }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 14%, transparent); transition: background .3s, transform .3s var(--spring); }
.dots i.on { background: var(--rose); transform: scale(1.15); }
.dots span { margin-left: 4px; }
.wallet { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--paper); border: 1px solid var(--hairline); font-weight: 900; box-shadow: 0 6px 14px var(--shadow); }
.wallet__coin { width: 28px; height: 28px; border-radius: 50%; background: conic-gradient(from 200deg, #B9A7F6, #FF9EC3, #FFB68C, #A7D8FF, #B9A7F6); display: grid; place-items: center; color: #fff; font-size: .8rem; box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.wallet.is-bump { animation: bump .45s var(--spring); }
@keyframes bump { 40% { transform: scale(1.12); } }

.clues { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.clue {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  padding: 14px 14px 14px 16px; border-radius: 26px; cursor: pointer;
  background: var(--paper); border: 1.5px solid var(--hairline); color: var(--ink);
  font: 700 1.02rem/1.35 var(--rounded); box-shadow: 0 8px 20px var(--shadow);
  transition: transform .2s var(--spring), border-color .2s, background .2s;
}
.clue:hover:not([aria-disabled="true"]) { transform: translateY(-2px); }
.clue__icon { width: 48px; height: 48px; border-radius: 16px; flex: none; display: grid; place-items: center; font-size: 1.45rem; background: var(--lavender-light); }
.clue__text { flex: 1; min-width: 0; }
.clue__secret { display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--lavender-light); color: var(--lilac); letter-spacing: .2em; font-size: .78rem; vertical-align: middle; }
.clue__value { color: var(--rose); font-weight: 900; }
.clue__cta { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 13px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-weight: 900; font-size: .9rem; }
.clue__done { flex: none; width: 34px; height: 34px; border-radius: 50%; display: none; place-items: center; background: var(--g-fresh); color: #134A2E; font-weight: 900; }
.clue.is-open { border-color: color-mix(in srgb, var(--mint) 90%, transparent); background: color-mix(in srgb, var(--mint-light) 55%, var(--paper)); cursor: default; }
.clue.is-open .clue__icon { background: var(--mint-light); }
.clue.is-open .clue__cta { display: none; }
.clue.is-open .clue__done { display: grid; }
.clue.is-open .clue__text { animation: flipIn .5s var(--spring); }
.clue[aria-disabled="true"]:not(.is-open) { opacity: .55; cursor: not-allowed; }
@keyframes flipIn { from { transform: rotateX(80deg); opacity: 0; } to { transform: none; opacity: 1; } }

.reveal-card {
  position: relative; overflow: hidden; border: 0; width: 100%; text-align: left; cursor: pointer;
  padding: 26px; border-radius: 34px; color: #fff; min-height: 190px; margin-top: 14px;
  background: linear-gradient(135deg, #8E78E8 0%, #6C4FD6 100%);
  box-shadow: 0 22px 50px color-mix(in srgb, var(--lilac) 45%, transparent);
  font: inherit; isolation: isolate; display: block;
}
.reveal-card::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .25; mix-blend-mode: overlay; z-index: -1; }
.reveal-card::after { /* the travelling sheen */
  content: ""; position: absolute; inset: -40% -60%; z-index: -1;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.35) 50%, transparent 60%);
  animation: sheen 3.4s ease-in-out .8s infinite;
}
@keyframes sheen { from { transform: translateX(-60%); } to { transform: translateX(60%); } }
.reveal-card .pill { background: rgba(255,255,255,.92); color: #2A2238; }
.reveal-card__title { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(1.7rem, 3.4vw, 2.2rem); line-height: 1.05; margin: 14px 0 16px; color: #fff; max-width: 12ch; }
.reveal-card__chip { display: inline-flex; gap: 8px; align-items: center; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.2); border: 1px solid rgba(255,255,255,.55); font-weight: 900; }
.reveal-card__ghost { position: absolute; right: -4px; bottom: -16px; width: 118px; z-index: 0; }
.reveal-card:hover { filter: saturate(1.08) brightness(1.03); }

.reveal-result { display: none; text-align: center; padding: 30px 24px; border-radius: 34px; margin-top: 14px; }
.reveal-result.is-shown { display: block; animation: popIn .6s var(--spring); }
.reveal-result__avatar { width: 96px; height: 96px; margin: 8px auto 14px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; background: linear-gradient(135deg, #FFE8B5, #F7C46B); border: 5px solid var(--paper); box-shadow: 0 14px 30px var(--shadow-strong); }
.reveal-result__name { font-family: var(--serif); font-weight: 700; font-size: 2.1rem; line-height: 1.1; color: var(--ink); }
@keyframes popIn { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.game__note { font-size: .88rem; color: var(--ink-faint); margin-top: 14px; }

/* Bubble burst for the reveal (removed by JS when done). */
.burst { position: fixed; pointer-events: none; z-index: 300; left: 0; top: 0; width: 0; height: 0; }
.burst i { position: absolute; width: var(--s, 12px); height: var(--s, 12px); border-radius: 50%; background: var(--c, #FF9EC3); animation: burst 1.1s var(--ease-out) forwards; }
@keyframes burst {
  from { transform: translate(0, 0) scale(.6); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(1); opacity: 0; }
}

/* ---------- 13. Home: poll demo ---------- */

.poll { padding: 26px; border-radius: 34px; }
.poll__meta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.poll__emoji { width: 50px; height: 50px; border-radius: 50%; background: var(--peach-light); display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.poll__q { font-family: var(--serif); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 1.8rem); line-height: 1.2; margin: 0 0 18px; color: var(--ink); }
.poll__options { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }
.poll__opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 16px 12px 12px; border-radius: 999px; font: 800 1.02rem var(--rounded); color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--hairline); box-shadow: 0 6px 16px var(--shadow);
  transition: transform .2s var(--spring), border-color .2s, opacity .2s;
}
.poll__opt:hover:not([aria-disabled="true"]) { transform: translateX(4px); }
.poll__opt .av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; border: 3px solid var(--paper); box-shadow: 0 4px 10px var(--shadow); flex: none; }
.av--peach { background: linear-gradient(135deg, #FFE8B5, #F7C46B); }
.av--mint { background: linear-gradient(135deg, #C9F5DC, #7FDCA6); }
.av--sky { background: linear-gradient(135deg, #D7ECFF, #9BCBF5); }
.av--lav { background: linear-gradient(135deg, #E6DEFF, #B9A7F6); }
.poll__opt .tick { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: none; place-items: center; background: var(--g-fresh); color: #134A2E; font-weight: 900; }
.poll__opt[aria-pressed="true"] { border-color: var(--mint); }
.poll__opt[aria-pressed="true"] .tick { display: grid; }
.poll__opt[aria-disabled="true"]:not([aria-pressed="true"]) { opacity: .5; cursor: default; }
.poll__foot { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: .9rem; font-weight: 700; color: var(--ink-soft); flex-wrap: wrap; }
.poll__reset { margin-left: auto; }

/* ---------- 14. Anonymity vault diagram ---------- */

.vault { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.vault li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; padding: 18px; border-radius: 24px; background: var(--paper); border: 1px solid var(--hairline); box-shadow: 0 10px 24px var(--shadow); }
.vault__icon { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 1.6rem; }
.vault li h3 { margin: 2px 0 4px; }
.vault li p { margin: 0; font-size: .96rem; }
.vault__who { display: inline-block; margin-top: 8px; font-size: .76rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--grape); }
.vault li.locked { background: linear-gradient(135deg, #3A2F52, #241C33); border-color: transparent; }
.vault li.locked h3 { color: #FFF8F2; }
.vault li.locked p { color: #DCD3EC; }
.vault li.locked .vault__who { color: #FFD978; }

/* ---------- 15. Stats, pricing, FAQ, CTA ---------- */

.stat { font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1; letter-spacing: -.02em; color: var(--ink); }
.stat-label { margin-top: 10px; font-size: .92rem; font-weight: 700; color: var(--ink-soft); }

.pricing { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); align-items: stretch; }
.price-card { display: flex; flex-direction: column; gap: 10px; }
.price-card > .pill:not(.ribbon) { align-self: flex-start; }
.price-card ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 9px; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); font-size: .97rem; }
.price-card li::before { content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-light); color: var(--mint-deep); font-size: .75rem; font-weight: 900; margin-top: 2px; }
.price { font-family: var(--serif); font-weight: 700; font-size: clamp(2.4rem, 5vw, 3.2rem); line-height: 1; color: var(--ink); }
.price small { font-family: var(--rounded); font-size: .95rem; font-weight: 800; color: var(--ink-faint); margin-left: 4px; }
.price-card--featured { border: 2px solid transparent; background: linear-gradient(var(--paper), var(--paper)) padding-box, var(--g-dream) border-box; }
.price-card .ribbon { position: absolute; top: -14px; right: 22px; }
.fine-print { font-size: .88rem; color: var(--ink-faint); margin-top: 22px; max-width: 86ch; }

.faq { display: grid; gap: 12px; }
details.q {
  background: color-mix(in srgb, var(--paper) 92%, transparent); border: 1px solid var(--hairline);
  border-radius: 24px; padding: 2px 22px; box-shadow: 0 8px 22px var(--shadow); transition: box-shadow .2s;
}
details.q[open] { box-shadow: 0 16px 34px var(--shadow); }
details.q summary {
  list-style: none; cursor: pointer; padding: 18px 0; font-weight: 800; color: var(--ink);
  display: flex; align-items: center; gap: 14px; font-size: 1.04rem;
}
details.q summary::-webkit-details-marker { display: none; }
details.q summary::after {
  content: ""; margin-left: auto; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--mist) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239278EE' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .25s var(--spring);
}
details.q[open] summary::after { transform: rotate(45deg); }
details.q > div { padding: 0 0 18px; }
details.q > div p + p { margin-top: .8em; }

.cta {
  text-align: center; padding: clamp(40px, 7vw, 76px) clamp(22px, 5vw, 60px);
  border-radius: var(--r-xl); position: relative; overflow: hidden; isolation: isolate;
  background: var(--g-dream); color: #2A2238;
}
.cta::before { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .3; mix-blend-mode: overlay; z-index: -1; }
.cta h2 { color: #2A2238; }
.cta p { color: #3B3150; }
.cta .lede { margin-inline: auto; }
.cta .mascot-static { width: 110px; margin: 0 auto 12px; filter: drop-shadow(0 16px 22px rgba(70,45,140,.3)); }
.cta .btn--soft { background: rgba(255,255,255,.9); color: #2A2238; border-color: transparent; }
.cta .btn--ink { background: #2A2238; color: #FFF8F2; }

/* Audience tiles on the Safety page. */
.audience { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.audience a { display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: var(--ink); }
.audience a .tile__icon { margin-bottom: 8px; }
.audience a span { color: var(--ink-soft); font-size: .93rem; font-weight: 600; }
.audience a strong { font-size: 1.1rem; }

.crisis { display: grid; gap: 2px; margin-top: 14px; }
.crisis div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.crisis div:last-child { border-bottom: 0; }
.crisis dt { font-weight: 900; color: var(--ink); }
.crisis dd { margin: 0; color: var(--ink-soft); }
.crisis dd b { color: var(--ink); }

/* ---------- 16. Footer ---------- */

.site-footer { position: relative; margin-top: clamp(60px, 9vw, 120px); padding: 64px 0 36px; border-top: 1px solid var(--hairline); background: color-mix(in srgb, var(--paper) 60%, transparent); }
.footer__ghost { position: absolute; width: 88px; top: -64px; right: max(6%, 24px); filter: drop-shadow(0 10px 18px var(--shadow)); }
.footer__grid { display: grid; gap: 30px; grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.footer__grid h2 { font-family: var(--rounded); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 12px; font-weight: 900; }
.footer__grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer__grid a { color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: .95rem; }
.footer__grid a:hover { color: var(--ink); text-decoration: underline; }
.footer__about p { font-size: .93rem; max-width: 30ch; margin-top: 12px; }
.footer__wordmark {
  font-family: var(--serif); font-weight: 700; letter-spacing: -.045em; line-height: .78;
  font-size: clamp(5rem, 24vw, 16rem); margin: 48px 0 0; text-align: center;
  background: var(--g-text); -webkit-background-clip: text; background-clip: text; color: transparent;
  user-select: none;
}
.footer__base { display: flex; flex-wrap: wrap; gap: 10px 18px; justify-content: space-between; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--hairline); font-size: .86rem; color: var(--ink-faint); }
.footer__base p { color: var(--ink-faint); margin: 0; }

/* ---------- 17. Legal & long-form documents ---------- */

.doc-hero { padding: clamp(44px, 8vw, 88px) 0 clamp(20px, 3vw, 34px); }
.doc-hero h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); margin: 14px 0 16px; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.doc-meta li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--hairline); font-size: .86rem; font-weight: 700; color: var(--ink-soft); }
.doc-meta b { color: var(--ink); }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.doc-layout { display: grid; gap: 44px; grid-template-columns: 1fr; padding-bottom: clamp(30px, 5vw, 60px); }
.doc-layout > * { min-width: 0; }
@media (min-width: 1000px) { .doc-layout { grid-template-columns: 250px minmax(0, 1fr); } }

.toc { position: sticky; top: 88px; align-self: start; max-height: calc(100vh - 110px); overflow-y: auto; padding-right: 6px; }
.toc h2 { font-family: var(--rounded); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 10px 12px; font-weight: 900; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.toc a { display: block; padding: 7px 12px; border-radius: 12px; font-size: .88rem; font-weight: 700; line-height: 1.3; color: var(--ink-soft); text-decoration: none; border-left: 3px solid transparent; }
.toc a:hover { background: var(--mist); color: var(--ink); }
.toc a.is-active { background: var(--lavender-light); color: var(--grape); border-left-color: var(--lilac); }
@media (max-width: 999px) { .toc { display: none; } }

details.toc-mobile { display: none; margin-bottom: 26px; }
@media (max-width: 999px) { details.toc-mobile { display: block; } }
details.toc-mobile ol { margin: 0; padding-left: 1.4em; display: grid; gap: 4px; }
details.toc-mobile a { font-weight: 700; }

.doc { counter-reset: section; }
.doc > section { scroll-margin-top: 90px; padding: 6px 0 4px; }
.doc > section + section { margin-top: 34px; padding-top: 34px; border-top: 1px dashed var(--hairline-strong); }
.doc h2 {
  font-family: var(--rounded); font-weight: 900; font-size: clamp(1.3rem, 2.4vw, 1.6rem); letter-spacing: -.01em;
  display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px;
}
.doc > section > h2::before {
  counter-increment: section; content: counter(section);
  flex: none; display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px;
  border-radius: 12px; background: linear-gradient(135deg, #8E78E8, #6C4FD6); color: #fff; font-size: .95rem; font-weight: 900;
  transform: translateY(-3px);
}
.doc h3 { font-size: 1.08rem; margin: 26px 0 10px; }
.doc p, .doc li { color: var(--ink-soft); font-size: 1rem; line-height: 1.72; }
.doc ul, .doc ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.doc li + li { margin-top: .45em; }
.doc li::marker { color: var(--lilac); font-weight: 900; }
.doc .caps { text-transform: uppercase; font-size: .92rem; letter-spacing: .01em; }

.anchor {
  margin-left: auto; opacity: 0; flex: none; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--hairline); background: var(--paper); color: var(--ink-faint);
  display: inline-grid; place-items: center; cursor: pointer; transition: opacity .2s;
}
.anchor svg { width: 15px; height: 15px; }
.doc h2:hover .anchor, .anchor:focus-visible { opacity: 1; }
@media (hover: none) { .anchor { opacity: .7; } }

.tldr { border-radius: var(--r-lg); padding: clamp(22px, 3.5vw, 32px); margin-bottom: 40px; background: linear-gradient(135deg, color-mix(in srgb, var(--lavender-light) 92%, transparent), color-mix(in srgb, var(--blush-light) 80%, transparent)); border: 1px solid var(--hairline); }
.tldr > h2 { font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 6px; }
.tldr ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.tldr li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--ink); font-weight: 600; line-height: 1.5; }
.tldr li > span:first-child { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; background: var(--paper); font-size: 1.05rem; box-shadow: 0 4px 10px var(--shadow); }
.tldr .disclaim { margin-top: 18px; font-size: .86rem; color: var(--ink-faint); }

.callout { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 18px 20px; border-radius: 20px; margin: 18px 0; background: var(--sky-light); border: 1px solid var(--hairline); }
.callout > span:first-child { font-size: 1.25rem; line-height: 1.5; }
.callout p { margin: 0; color: var(--ink); font-size: .97rem; }
.callout p + p { margin-top: .6em; }
.callout--warn { background: var(--peach-light); }
.callout--mint { background: var(--mint-light); }
.callout--blush { background: var(--blush-light); }

.table-wrap { overflow-x: auto; margin: 16px 0 22px; border-radius: 18px; border: 1px solid var(--hairline); background: var(--paper); -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--hairline); }
table.data thead th { background: var(--mist); color: var(--ink); font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 900; }
table.data td { color: var(--ink-soft); line-height: 1.55; }
table.data td:first-child, table.data th[scope="row"] { color: var(--ink); font-weight: 800; }
table.data tr:last-child td, table.data tr:last-child th { border-bottom: 0; }
.yes { color: var(--mint-deep); font-weight: 900; }
.no { color: var(--rose); font-weight: 900; }

/* Values the operator must supply before relying on a document. Loud on purpose. */
.fill-me { background: #FFE58A; color: #3A2A00; padding: 1px 6px; border-radius: 6px; font-weight: 800; outline: 2px dashed #C9A100; outline-offset: 1px; }

.doc-end { margin-top: 44px; padding: 22px; border-radius: 22px; background: var(--mist); font-size: .92rem; color: var(--ink-soft); }
.doc-end p { font-size: .92rem; }

/* ---------- 18. Toast ---------- */

.toast-region { position: fixed; z-index: 250; left: 50%; bottom: 22px; translate: -50% 0; display: grid; gap: 10px; width: min(460px, calc(100% - 32px)); pointer-events: none; }
.toast {
  display: flex; gap: 12px; align-items: center; padding: 14px 18px; border-radius: 20px;
  background: var(--ink); color: var(--on-ink); font-weight: 700; font-size: .95rem; line-height: 1.4;
  box-shadow: 0 18px 40px var(--shadow-strong); animation: toastIn .35s var(--spring);
}
.toast b { color: var(--on-ink); }
.toast.is-leaving { animation: toastOut .3s ease forwards; }
@keyframes toastIn { from { translate: 0 20px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
@keyframes toastOut { to { translate: 0 12px; opacity: 0; } }

/* ---------- 19. 404 ---------- */

.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.lost .mascot-static { width: 150px; margin: 0 auto 18px; animation: float 6s ease-in-out infinite alternate; }

/* ---------- 20. Scroll reveal (only when JS is running) ---------- */

.js [data-reveal] { opacity: 0; translate: 0 26px; transition: opacity .7s var(--ease-out), translate .7s var(--ease-out); }
.js [data-reveal].is-visible { opacity: 1; translate: 0 0; }
.js [data-reveal="2"] { transition-delay: .08s; }
.js [data-reveal="3"] { transition-delay: .16s; }
.js [data-reveal="4"] { transition-delay: .24s; }

/* ---------- 21. Focus, motion, print ---------- */

:focus-visible { outline: 3px solid var(--lilac); outline-offset: 3px; border-radius: 10px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .wash { animation: none; }
  .reveal-card::after { display: none; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .js [data-reveal] { opacity: 1; translate: none; }
}

@media print {
  .site-header, .mobile-menu, .wash, .grain, .site-footer, .toc, .toc-mobile, .doc-actions, .anchor, .skip, .toast-region { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .card, .tldr, .callout, .table-wrap, .doc-meta li { box-shadow: none; background: #fff; border-color: #bbb; backdrop-filter: none; }
  .doc p, .doc li, table.data td { color: #111; }
  .doc > section > h2::before { background: none; color: #000; border: 1px solid #000; }
  .doc > section { break-inside: avoid-page; }
  a { color: #000; text-decoration: underline; }
  .doc a[href^="http"]::after, .doc a[href^="mailto"]::after { content: " <" attr(href) ">"; font-size: .85em; word-break: break-all; }
  .doc-layout { grid-template-columns: 1fr; }
  .js [data-reveal] { opacity: 1; translate: none; }
}
