/* Restora — Apple-inspired, Liquid Glass */
:root {
  --font: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bg: #ffffff;
  --ink: #111111;
  --ink-2: #444444;
  --ink-3: #6e6e6e;   /* AA on white */
  --accent: #111111;
  --accent-2: #000000;
  --line: rgba(0,0,0,.08);
  --radius: 28px;
  --nav-h: 56px;
  --ease: cubic-bezier(.22,1,.36,1);
  --spring: cubic-bezier(.34,1.4,.64,1);
  /* Glass material */
  --glass-tint: rgba(255,255,255,.42);
  --glass-edge: rgba(255,255,255,.75);
  --glass-shadow: 0 1px 1px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06), 0 24px 60px rgba(0,0,0,.08);
  --glass-hi: rgba(255,255,255,.55); --glass-lo: rgba(255,255,255,.28);
  --glass-border: rgba(255,255,255,.55); --rim-lo: rgba(255,255,255,.25); --rim-hair: rgba(255,255,255,.35);
  --sheen: rgba(255,255,255,.55); --sheen-2: rgba(255,255,255,.18);
  --nav-hi: rgba(255,255,255,.80); --nav-lo: rgba(255,255,255,.68); --nav-blur: 20px;
  --surface: rgba(255,255,255,.62); --surface-hover: rgba(255,255,255,.85); --surface-strong: rgba(255,255,255,.92);
  --surface-border: rgba(255,255,255,.8); --hl: #fff;
  --fill: rgba(0,0,0,.045); --fill-2: rgba(0,0,0,.07);
  --input-bg: rgba(255,255,255,.75); --input-border: rgba(0,0,0,.10);
  --footer-bg: rgba(255,255,255,.35); --ambient-top: #ffffff;
  --h1-from: #111111; --h1-to: #444444; --on-ink: #ffffff;
  --tile: linear-gradient(145deg, rgba(255,255,255,.9), rgba(255,255,255,.5));
  --drop-tint: rgba(255,255,255,.14); --drop-shadow: 0 8px 22px rgba(0,0,0,.14);
  --orb-alpha: .55; --field-alpha: .42; --top-tint: #ffffff;
  /* Overlay scrims over --top-tint, and exact src-over composites for Safari chrome */
  --watch-scrim: rgba(0,0,0,.52);
  --watch-chrome: #7a7a7a; /* 0.52 black over #ffffff */
  --menu-scrim: rgba(17,17,17,.28);
  --menu-chrome: #bcbcbc; /* 0.28 * rgb(17,17,17) over #ffffff */
  --success-ink: #1a7f37; --err: #c4000f;
  --field-a: rgba(0,0,0,.07); --field-b: rgba(0,0,0,.03);
  --orb-1a: rgba(0,0,0,.10); --orb-1b: rgba(0,0,0,.04);
  --orb-2a: rgba(0,0,0,.08); --orb-2b: rgba(0,0,0,.03);
  --orb-3a: rgba(0,0,0,.07); --orb-3b: rgba(0,0,0,.03);
  --orb-4a: rgba(0,0,0,.09); --orb-4b: rgba(0,0,0,.04);
}
*,*::before,*::after { box-sizing: border-box; }
/* Safari 26 tints the status-bar zone from the root background-color, so that colour is set to match the
   blobs at the top of the page; a full-cover image of --bg keeps the actual page background unchanged. */
html { background-color: var(--top-tint); background-image: linear-gradient(var(--bg), var(--bg)); transition: background-color .4s; scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: transparent; transition: color .4s;
  font-size: 17px; line-height: 1.5; letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 12px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--bg); color: var(--ink); padding: 10px 16px; border-radius: 12px; box-shadow: var(--glass-shadow); }
.skip:focus { top: 16px; }
.container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.container.narrow { width: min(760px, 100% - 40px); }
.center { text-align: center; }

/* ── Ambient background ───────────────────────────── */
/* Ambient blobs live IN the document (position:absolute), not position:fixed.
   Safari 26 tints its status bar / toolbar from fixed elements touching the viewport edges;
   with none there, its bars stay translucent and the blobs scroll underneath them. */
body { position: relative; min-height: 100vh; }
.ambient { position: absolute; top: -120px; left: 0; right: 0; bottom: 0; z-index: -1; overflow: hidden; pointer-events: none;
  /* a soft colour field that repeats down the whole page, so every scroll position has colour */
  background:
    radial-gradient(75% 21% at 0% 23%, var(--blob-1), transparent 70%) 0 0 / 100% 1500px repeat-y,
    radial-gradient(70% 20% at 100% 44%, var(--blob-2), transparent 70%) 0 0 / 100% 1500px repeat-y,
    radial-gradient(75% 21% at 8% 62%, var(--blob-3), transparent 70%) 0 0 / 100% 1500px repeat-y,
    radial-gradient(70% 20% at 95% 78%, var(--blob-4), transparent 70%) 0 0 / 100% 1500px repeat-y; }
/* (each ellipse stays inside its 1500px tile — gradient radius reaches 0 at 70% — so tiles never show a seam) */
:root { --blob-1: rgba(0,0,0,.045); --blob-2: rgba(0,0,0,.03); --blob-3: rgba(0,0,0,.035); --blob-4: rgba(0,0,0,.025); }
[data-theme="dark"] { --blob-1: rgba(255,255,255,.055); --blob-2: rgba(255,255,255,.04); --blob-3: rgba(255,255,255,.045); --blob-4: rgba(255,255,255,.03); }
@media (max-width: 720px) { .ambient { background-size: 100% 1100px, 100% 1100px, 100% 1100px, 100% 1100px; } }
.orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: calc(.55 * var(--orb-alpha)); will-change: transform; }
.o1 { width: 520px; height: 520px; left: -120px; top: -80px; background: radial-gradient(circle at 30% 30%, var(--orb-1a), var(--orb-1b) 60%, transparent 70%); animation: drift1 26s ease-in-out infinite alternate; }
.o2 { width: 460px; height: 460px; right: -100px; top: -60px; background: radial-gradient(circle at 60% 40%, var(--orb-2a), var(--orb-2b) 60%, transparent 70%); animation: drift2 30s ease-in-out infinite alternate; }
.o3 { width: 420px; height: 420px; left: 30%; top: 560px; background: radial-gradient(circle, var(--orb-3a), var(--orb-3b) 60%, transparent 70%); opacity: calc(.4 * var(--orb-alpha)); animation: drift1 34s ease-in-out infinite alternate-reverse; }
.o4 { width: 360px; height: 360px; right: 10%; bottom: -120px; background: radial-gradient(circle, var(--orb-4a), var(--orb-4b) 60%, transparent 70%); opacity: calc(.35 * var(--orb-alpha)); animation: drift2 28s ease-in-out infinite alternate-reverse; }
.o5 { width: 480px; height: 480px; left: -140px; top: 24%; background: radial-gradient(circle, var(--orb-1a), var(--orb-1b) 60%, transparent 70%); opacity: calc(.4 * var(--orb-alpha)); animation: drift2 32s ease-in-out infinite alternate; }
.o6 { width: 440px; height: 440px; right: -120px; top: 42%; background: radial-gradient(circle, var(--orb-2a), var(--orb-2b) 60%, transparent 70%); opacity: calc(.4 * var(--orb-alpha)); animation: drift1 29s ease-in-out infinite alternate; }
.o7 { width: 460px; height: 460px; left: -100px; top: 62%; background: radial-gradient(circle, var(--orb-3a), var(--orb-3b) 60%, transparent 70%); opacity: calc(.38 * var(--orb-alpha)); animation: drift2 35s ease-in-out infinite alternate-reverse; }
.o8 { width: 420px; height: 420px; right: -80px; top: 80%; background: radial-gradient(circle, var(--orb-4a), var(--orb-4b) 60%, transparent 70%); opacity: calc(.35 * var(--orb-alpha)); animation: drift1 31s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate(120px, 80px) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-100px, 60px) scale(.92); } }

/* ── Liquid glass material ────────────────────────── */
.glass {
  position: relative;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass-lo));
  background-blend-mode: normal;
  -webkit-backdrop-filter: blur(var(--glass-blur, 18px)) saturate(180%);
  backdrop-filter: blur(var(--glass-blur, 18px)) saturate(180%);
  border: 1px solid var(--glass-border);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),          /* top specular rim */
    inset 0 -1px 0 var(--rim-lo),     /* bottom rim */
    inset 0 0 0 .5px var(--rim-hair),
    var(--glass-shadow);
  isolation: isolate;
}
/* Specular sheen layer */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    radial-gradient(120% 60% at 20% 0%, var(--sheen), transparent 55%),
    linear-gradient(135deg, var(--sheen-2), transparent 40%, transparent 70%, var(--sheen-2));
}

/* ── Navigation ───────────────────────────────────── */
.nav-wrap { position: fixed; z-index: 50; view-transition-name: site-nav; top: max(12px, env(safe-area-inset-top)); left: 0; right: 0; display: flex; flex-direction: column; align-items: center; pointer-events: none; padding-inline: 12px; }
.nav {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 4px;
  height: var(--nav-h); padding: 6px; border-radius: 999px;
  width: min(760px, 100%);
  touch-action: none;          /* lets a finger drag along the bar without scrolling the page */
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
  background: linear-gradient(180deg, var(--nav-hi), var(--nav-lo));
  -webkit-backdrop-filter: blur(22px) saturate(190%);
  backdrop-filter: blur(22px) saturate(190%);
}
/* Chromium: real refraction via SVG displacement on the backdrop (filter built in nav-drop.js) */
.lg-refract .nav { backdrop-filter: url(#lg-nav-filter) blur(var(--nav-blur, 20px)) saturate(190%) brightness(var(--nav-bright, 1.04)); }
.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-item {
  position: relative; z-index: 2;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 16px; border-radius: 999px;
  color: var(--ink); font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap;
  transition: color .2s;
}
.nav-item:hover { text-decoration: none; }
.nav-item > span, .nav-item .wordmark { display: inline-block; transform: scale(var(--mag, 1)); transform-origin: center; will-change: transform; }
.brand { padding-left: 6px; font-weight: 600; font-size: 17px; }
.logo { width: 30px; height: 30px; display: inline-block; transform: scale(var(--mag, 1)); }
.logo { color: var(--ink); }
.logo svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 6px rgba(0,0,0,.22)); }
.logo path { stroke: var(--on-ink); }
.nav-cta { background: var(--ink); color: var(--on-ink); font-weight: 600; padding: 0 18px; }
.nav-cta:hover { filter: brightness(1.15); }
.l-short { display: none; }
.menu-btn { display: none; border: 0; background: transparent; width: 44px; padding: 0; cursor: pointer; }
.menu-btn .burger { display: grid; gap: 5px; width: 18px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease); }
.menu-btn[aria-expanded="true"] .burger i:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .burger i:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* The liquid drop (lens) */
.drop {
  position: absolute; left: 0; top: 50%; z-index: 1; pointer-events: none;
  width: 96px; height: 64px; margin-top: -32px; border-radius: 999px;
  opacity: 0; transform: translate3d(-200px,0,0) scale(.2);
  background: radial-gradient(120% 90% at 50% 120%, rgba(255,255,255,.4), rgba(255,255,255,0) 60%), var(--drop-tint);
  -webkit-backdrop-filter: blur(1.5px) saturate(160%) brightness(1.06);
  backdrop-filter: blur(1.5px) saturate(160%) brightness(1.06);
  box-shadow:
    inset 0 1.5px 1px rgba(255,255,255,.95),
    inset 0 -2px 3px rgba(255,255,255,.55),
    inset 3px 0 6px rgba(255,255,255,.35),
    inset -3px 0 6px rgba(255,255,255,.35),
    inset 0 0 0 .5px rgba(0,0,0,.07),
    inset 0 -10px 16px -10px rgba(0,0,0,.10),
    inset 0 0 18px rgba(255,255,255,.18),
    var(--drop-shadow), 0 1px 3px rgba(0,0,0,.08);
  will-change: transform, opacity;
}
.lg-refract .drop { backdrop-filter: url(#lg-drop-filter) saturate(170%) brightness(1.06); }
.drop-shine { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; }
.drop-shine::before { content: ""; position: absolute; left: 14%; right: 14%; top: 6%; height: 38%; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,0)); opacity: .55; filter: blur(.5px); }
.drop-shine::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 7%; height: 14%; border-radius: 999px;
  background: radial-gradient(closest-side, rgba(255,255,255,.7), rgba(255,255,255,0)); }
.drop.over-cta { box-shadow: inset 0 1.5px 1px rgba(255,255,255,.9), inset 0 -2px 3px rgba(255,255,255,.4), 0 6px 18px rgba(0,0,0,.22); }

.mobile-menu {
  pointer-events: auto; margin-top: 10px; width: min(760px, 100%); border-radius: 26px; padding: 10px;
  display: grid; gap: 2px; transform-origin: top center; animation: menuIn .35s var(--ease);
  /* Denser frost than default .glass so hero type cannot read through the open panel. */
  --glass-blur: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.94));
  border: 1px solid rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(36px) saturate(190%);
  backdrop-filter: blur(36px) saturate(190%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.92),
    inset 0 -1px 0 rgba(255,255,255,.28),
    inset 0 0 0 .5px rgba(255,255,255,.45),
    0 8px 28px rgba(0,0,0,.12),
    0 24px 60px rgba(0,0,0,.14);
}
[data-theme="dark"] .mobile-menu {
  background: linear-gradient(180deg, rgba(22,22,24,.97), rgba(14,14,16,.94));
  border-color: rgba(255,255,255,.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.18),
    inset 0 -1px 0 rgba(255,255,255,.04),
    inset 0 0 0 .5px rgba(255,255,255,.08),
    0 8px 28px rgba(0,0,0,.45),
    0 24px 60px rgba(0,0,0,.4);
}
.lg-refract .mobile-menu {
  -webkit-backdrop-filter: url(#lg-menu-filter) blur(36px) saturate(190%);
  backdrop-filter: url(#lg-menu-filter) blur(36px) saturate(190%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-menu { background: #f2f2f4; }
  [data-theme="dark"] .mobile-menu { background: #141416; }
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { padding: 14px 16px; border-radius: 16px; color: var(--ink); font-size: 19px; font-weight: 500; }
.mobile-menu a:hover { background: var(--fill); text-decoration: none; }
.mobile-menu .btn { margin-top: 6px; color: var(--on-ink); justify-content: center; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }

/* Dim the page behind the open menu. Full-bleed into safe areas; Safari chrome uses --menu-chrome. Tap to close. */
.menu-scrim {
  position: fixed;
  z-index: 40;
  top: calc(-1 * env(safe-area-inset-top, 0px));
  right: calc(-1 * env(safe-area-inset-right, 0px));
  bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
  left: calc(-1 * env(safe-area-inset-left, 0px));
  width: 100lvw; min-height: 100lvh;
  padding: 0; border: 0; border-radius: 0;
  background: var(--menu-scrim);
  cursor: pointer;
  animation: scrimIn .3s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.menu-scrim[hidden] { display: none; }
@keyframes scrimIn { from { opacity: 0; } }

/* ── Buttons ──────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; border: 0; transition: transform .45s var(--spring), background .2s, box-shadow .25s var(--ease); }
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 17px; }
.btn-primary { background: var(--accent-2); color: var(--on-ink); box-shadow: 0 6px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.22); }
.btn-primary:hover { background: var(--accent); }
.btn-glass { color: var(--ink); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ── Hero ─────────────────────────────────────────── */
.hero { position: relative; padding: clamp(140px, 20vh, 200px) 0 clamp(80px, 12vh, 140px); text-align: center; }
.eyebrow { margin: 0 0 14px; color: var(--ink-3); font-size: 15px; font-weight: 600; letter-spacing: .01em; }
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; }
h1 { font-size: clamp(48px, 9vw, 104px); line-height: 1.02; font-weight: 700; letter-spacing: -0.045em;
  background: linear-gradient(180deg, var(--h1-from) 30%, var(--h1-to)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 640px; margin: 24px auto 0; font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; color: var(--ink-2); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; padding: 0; margin: 44px 0 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.chip svg { width: 18px; height: 18px; color: var(--accent-2); }
.hero-lens { position: absolute; right: max(4vw, calc(50% - 640px)); top: 62%; width: 230px; padding: 18px; border-radius: 24px; text-align: left; display: none; transform: rotate(4deg); }
.lens-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.lens-dot { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #e8e8e8, #c0c0c0); }
.lens-dot.ok { background: linear-gradient(135deg, #a7f3d0, #6ee7b7); }
.lens-line { height: 9px; border-radius: 9px; background: var(--fill-2); }
.w70 { width: 70%; } .w50 { width: 50%; }
.lens-status { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(52,199,89,.14); color: var(--success-ink); font-size: 14px; font-weight: 600; }
.lens-status svg { width: 16px; height: 16px; }
@media (min-width: 1180px) { .hero-lens { display: block; } }

/* ── Sections ─────────────────────────────────────── */
.section { padding: clamp(72px, 11vw, 140px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-inline: auto; }
h2 { font-size: clamp(36px, 5.6vw, 64px); line-height: 1.05; font-weight: 700; }
.section-lede { margin: 18px 0 0; font-size: clamp(18px, 2vw, 21px); color: var(--ink-2); }
.center .section-lede { margin-inline: auto; }
h3 { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; }

.grid-3 { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card { border-radius: var(--radius); padding: 30px; }
.card p { color: var(--ink-2); margin: 8px 0 18px; }
.card-icon {
  position: relative; width: 64px; height: 64px; margin-bottom: 22px;
  display: grid; place-items: center; isolation: isolate; overflow: hidden;
  border-radius: 18px; corner-shape: squircle;
  /* Light mode: faint neutral grey glass so the tile reads against a pale card.
     Dark mode re-declares background, border, shadows and sheen exactly as before. */
  background: linear-gradient(165deg, rgba(255,255,255,.46) 0%, rgba(255,255,255,.16) 42%, rgba(0,0,0,.07) 100%);
  border: 1px solid rgba(0,0,0,.14);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  backdrop-filter: blur(12px) saturate(180%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 1px 0 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(0,0,0,.10),
    inset 0 -12px 18px rgba(0,0,0,.06),
    inset 0 0 0 .5px rgba(255,255,255,.45),
    0 10px 22px rgba(0,0,0,.10),
    0 2px 6px rgba(0,0,0,.06);
}
.card-icon::before {
  content: ""; position: absolute; left: 8%; right: 30%; top: 5%; height: 44%;
  border-radius: 50%; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,0)); opacity: .82;
}
.card-icon::after {
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 4%; height: 34%;
  border-radius: 50%; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.10)); opacity: .8;
}
.lg-refract .card-icon { backdrop-filter: url(#lg-card-icon-filter) blur(10px) saturate(180%); }
[data-theme="dark"] .card-icon {
  background: linear-gradient(180deg, var(--clear-hi), var(--clear-lo));
  border: 1px solid var(--clear-border);
  box-shadow: inset 0 1.5px 0 rgba(255,255,255,.22), inset 0 0 0 .5px rgba(255,255,255,.06), 0 8px 22px rgba(0,0,0,.35);
}
[data-theme="dark"] .card-icon::before {
  left: 18%; right: 18%; top: 6%; height: 40%;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0)); opacity: .18;
}
[data-theme="dark"] .card-icon::after { content: none; }
.card-icon .card-glyph {
  position: relative; z-index: 1; display: block; overflow: visible;
  fill: rgba(17,17,17,.88);
  stroke: rgba(255,255,255,.4);
  stroke-width: .6px;
  vector-effect: non-scaling-stroke;
  paint-order: stroke fill;
  width: 41px; height: 41px;
  filter:
    drop-shadow(0 0.5px 0.6px rgba(0,0,0,.18))
    drop-shadow(0 1px 2px rgba(0,0,0,.10));
}
.card-icon .card-glyph-fb {
  /* tight f bounds, ~58% of the 64px tile, geometrically centred */
  width: 20.8px; height: 37px;
  transform: none;
}
[data-theme="dark"] .card-icon .card-glyph {
  fill: #fff;
  stroke: none;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.55)) drop-shadow(0 2px 8px rgba(0,0,0,.35));
}
/* Quiz / compact size — same glass treatment, scaled to option rows */
.card-icon-sm {
  width: 48px; height: 48px; margin-bottom: 0; border-radius: 13.5px; flex: none;
}
.card-icon-sm .card-glyph { width: 31px; height: 31px; }
.card-icon-sm .card-glyph-fb { width: 15.6px; height: 27.8px; transform: none; }
.lg-refract .card-icon-sm { backdrop-filter: blur(10px) saturate(180%); -webkit-backdrop-filter: blur(10px) saturate(180%); }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; font-size: 16px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: rgba(0,0,0,.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23111111' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat; }

.situations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(40px, 5vw, 56px); border-top: 1px solid var(--line); }
.situation { display: flex; flex-direction: column; gap: 16px; }
.situation p { color: var(--ink-2); margin: 8px 0 0; }
.sit-icon { position: relative; flex: none; width: 48px; height: 48px; min-width: 48px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden; isolation: isolate;
  color: var(--accent, #111111);
  background: linear-gradient(180deg, var(--clear-hi), var(--clear-lo));
  border: 1px solid var(--clear-border);
  -webkit-backdrop-filter: blur(12px) saturate(180%); backdrop-filter: blur(12px) saturate(180%);
  box-shadow: inset 0 1.5px 0 var(--glass-edge), inset 0 -1px 0 var(--rim-lo), inset 0 0 0 .5px var(--rim-hair), 0 8px 22px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.06); }
.sit-icon::before { content: ""; position: absolute; left: 18%; right: 18%; top: 6%; height: 40%; border-radius: 50%; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.75), rgba(255,255,255,0)); opacity: .7; }
[data-theme="dark"] .sit-icon { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.22), inset 0 0 0 .5px rgba(255,255,255,.06), 0 8px 22px rgba(0,0,0,.35); }
[data-theme="dark"] .sit-icon::before { opacity: .18; }
.sit-icon svg { width: 22px; height: 22px; flex: none; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { border-radius: var(--radius); padding: 26px; }
.step p { color: var(--ink-2); margin: 8px 0 0; font-size: 16px; }
.step-n { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; margin-bottom: 40px; font-weight: 700; font-size: 16px;
  background: var(--tile); box-shadow: inset 0 1px 0 var(--hl), 0 3px 10px rgba(0,0,0,.10); }
.promise { margin-top: 20px; border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.promise-item { display: flex; gap: 14px; align-items: flex-start; }
.promise-item svg { width: 26px; height: 26px; flex: none; color: var(--accent-2); margin-top: 2px; }
.promise-item h3 { font-size: 17px; }
.promise-item p { margin: 4px 0 0; color: var(--ink-2); font-size: 15px; }

/* ── FAQ ──────────────────────────────────────────── */
.faq { border-radius: var(--radius); padding: 6px 26px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 36px 22px 0; position: relative; font-weight: 600; font-size: 18px; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: -6px 0 22px; color: var(--ink-2); }

.cta-final { padding-top: 40px; }
.cta-final .btn { margin-top: 30px; }

/* ── Footer ───────────────────────────────────────── */
.footer {
  /* The page background (not the panel) fades into the base colour Safari paints behind its bottom toolbar */
  padding: 56px max(12px, env(safe-area-inset-right)) calc(120px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  background: linear-gradient(to bottom, transparent 0%, color-mix(in srgb, var(--top-tint) 55%, transparent) 50%, var(--top-tint) 82%, var(--top-tint) 100%);
  font-size: 14px; color: var(--ink-3);
}
.footer-bubble {
  width: min(1120px, 100%); margin-inline: auto; border-radius: 34px; padding: clamp(26px, 4vw, 40px);
  /* clear glass: lighter tint than other panels */
  background: linear-gradient(180deg, var(--clear-hi), var(--clear-lo));
  border: 1px solid var(--clear-border);
  -webkit-backdrop-filter: blur(14px) saturate(180%); backdrop-filter: blur(14px) saturate(180%);
  box-shadow: inset 0 1.5px 0 var(--glass-edge), inset 0 -1px 0 var(--rim-lo), inset 0 0 0 .5px var(--rim-hair), 0 18px 50px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.05);
}
.lg-refract .footer-bubble { backdrop-filter: url(#lg-foot-filter) blur(10px) saturate(180%); }
:root { --clear-hi: rgba(255,255,255,.30); --clear-lo: rgba(255,255,255,.08); --clear-border: rgba(255,255,255,.6); }
[data-theme="dark"] { --clear-hi: rgba(255,255,255,.10); --clear-lo: rgba(255,255,255,.03); --clear-border: rgba(255,255,255,.16); }
[data-theme="dark"] .footer-bubble { box-shadow: inset 0 1.5px 0 rgba(255,255,255,.2), inset 0 0 0 .5px rgba(255,255,255,.06), 0 18px 50px rgba(0,0,0,.35); }
.footer-top { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.brand-foot { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; }
.brand-foot .logo { width: 26px; height: 26px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-links a { color: var(--ink-2); }
.disclaimer { margin: 28px 0 0; max-width: 900px; line-height: 1.55; color: var(--ink-2); }
.copyright { margin: 14px 0 0; }

/* ── Questionnaire ────────────────────────────────── */
.quiz { border-radius: 32px; padding: clamp(22px, 4vw, 40px); min-height: 460px; display: flex; flex-direction: column; overflow: hidden; }
.quiz-top { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.quiz-back { width: 40px; height: 40px; flex: none; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--ink);
  background: var(--surface); box-shadow: inset 0 1px 0 var(--hl), 0 2px 8px rgba(0,0,0,.06); transition: opacity .2s, transform .2s; }
.quiz-back svg { width: 20px; height: 20px; }
.quiz-back:disabled { opacity: 0; pointer-events: none; }
.progress { flex: 1; height: 6px; border-radius: 6px; background: var(--fill-2); overflow: hidden; }
.progress-bar { height: 100%; width: 0; border-radius: inherit; background: var(--ink); transition: width .5s var(--ease); }
.quiz-count { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; min-width: 44px; text-align: right; }
.quiz-stage { position: relative; flex: 1; }
.q { animation: qIn .45s var(--ease) both; }
.q.back { animation-name: qInBack; }
@keyframes qIn { from { opacity: 0; transform: translateX(28px); } }
@keyframes qInBack { from { opacity: 0; transform: translateX(-28px); } }
.q-title { font-size: clamp(26px, 3.6vw, 34px); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; margin: 0; }
.q-title:focus { outline: none; }
.q-sub { margin: 10px 0 0; color: var(--ink-2); }
.options { display: grid; gap: 10px; margin-top: 26px; }
.options.cols-3 { grid-template-columns: repeat(3, 1fr); }
.options.cols-2 { grid-template-columns: repeat(2, 1fr); }
.opt {
  position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  min-height: 58px; padding: 14px 18px; border-radius: 18px; cursor: pointer; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--surface-border);
  box-shadow: inset 0 1px 0 var(--hl), 0 1px 2px rgba(0,0,0,.04), 0 4px 14px rgba(0,0,0,.05);
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.opt:hover { background: var(--surface-hover); transform: translateY(-1px); box-shadow: inset 0 1px 0 var(--hl), 0 6px 20px rgba(0,0,0,.10); }
.opt:active { transform: scale(.985); }
.opt[aria-pressed="true"] { border-color: var(--accent-2); box-shadow: 0 0 0 1px var(--accent-2), 0 6px 20px rgba(0,0,0,.12); background: var(--surface-strong); }
.opt-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--fill); }
.opt-icon svg { width: 22px; height: 22px; }
.opt-text { display: grid; gap: 2px; }
.opt-label { font-weight: 600; font-size: 17px; letter-spacing: -0.015em; }
.opt-hint { font-size: 14px; color: var(--ink-3); }
.cols-3 .opt { flex-direction: column; justify-content: center; text-align: center; min-height: 128px; gap: 12px; }
.cols-3 .opt-icon { width: 52px; height: 52px; border-radius: 16px; }
.cols-3 .opt-icon svg { width: 28px; height: 28px; }
.field { display: grid; gap: 8px; margin-top: 22px; }
.field label { font-weight: 600; font-size: 15px; }
.field .req { color: var(--ink-3); font-weight: 400; }
.input {
  width: 100%; font: inherit; font-size: 17px; color: var(--ink); padding: 15px 16px; border-radius: 16px;
  background: var(--input-bg); border: 1px solid var(--input-border); box-shadow: inset 0 1px 2px rgba(0,0,0,.04);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 4px rgba(0,0,0,.12); }
textarea.input { min-height: 150px; resize: vertical; }
.input[aria-invalid="true"] { border-color: #d70015; box-shadow: 0 0 0 4px rgba(215,0,21,.10); }
.err { color: var(--err); font-size: 14px; min-height: 0; }
.err:empty { display: none; }
.hint-line { font-size: 13px; color: var(--ink-3); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-top: 20px; font-size: 15px; color: var(--ink-2); cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent-2); flex: none; }
.q-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 28px; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.review { margin-top: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--surface-border); overflow: hidden; }
.review-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.review-row:last-child { border-bottom: 0; }
.review-q { grid-column: 1; font-size: 13px; color: var(--ink-3); }
.review-a { grid-column: 1; font-weight: 600; word-break: break-word; }
.review-edit { grid-column: 2; grid-row: 1 / span 2; border: 0; background: none; color: var(--accent); font: inherit; font-size: 15px; cursor: pointer; padding: 6px 4px; }
.form-error { margin-top: 14px; padding: 12px 16px; border-radius: 14px; background: rgba(215,0,21,.08); color: #a3000c; font-size: 15px; }
.success { text-align: center; padding: 30px 0 10px; animation: qIn .5s var(--ease) both; }
.success-badge { width: 84px; height: 84px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, #7ee08f, #34c759 60%, #248a3d); box-shadow: inset 0 2px 2px rgba(255,255,255,.6), inset 0 -4px 10px rgba(0,0,0,.12), 0 12px 30px rgba(52,199,89,.35);
  animation: pop .6s cubic-bezier(.34,1.56,.64,1) both .1s; }
.success-badge svg { width: 40px; height: 40px; }
.success p { color: var(--ink-2); max-width: 460px; margin: 12px auto 0; }
.case-id { display: inline-block; margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: var(--fill); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Reveal on scroll ─────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ── Legal pages ──────────────────────────────────── */
.legal { padding: 140px 0 80px; }
.legal h1 { font-size: clamp(40px, 6vw, 60px); }
.legal h2 { font-size: 22px; margin-top: 2.4em; letter-spacing: -0.03em; scroll-margin-top: 96px; }
.legal h3 { font-size: 17px; margin: 1.4em 0 0.4em; }
.legal p, .legal li { color: var(--ink-2); max-width: 42em; }
.legal ul, .legal ol { padding-left: 1.25em; }
.legal li + li { margin-top: 6px; }
.legal-updated { margin: 10px 0 0; color: var(--ink-3); font-size: 15px; font-weight: 500; }
.legal-lede { margin: 22px 0 0; font-size: 18px; line-height: 1.5; max-width: 40em; }
.legal-toc { margin: 36px 0 12px; padding: 22px 24px; border-radius: 20px; }
.legal-toc h2 { margin: 0 0 12px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.legal-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; }
.legal-toc a { color: var(--ink); font-weight: 500; }
.legal-toc a:hover { text-decoration: underline; }
.legal .note { padding: 14px 18px; border-radius: 16px; background: rgba(255,204,0,.14); color: #6b5300; font-size: 15px; }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 960px) {
  .grid-3, .situations { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .promise { grid-template-columns: 1fr; }
  .situations { gap: 32px; }
  .situation { flex-direction: row; }
}
@media (max-width: 720px) {
  :root { --nav-h: 54px; }
  .nav-cta, .brand .wordmark, .l-long { display: none; }
  .l-short { display: inline; }
  .nav-links { margin-inline: auto; gap: 0; }
  .nav-item { padding: 0 13px; }
  .brand { padding: 0 7px; }
  .menu-btn { display: inline-flex; }
  .options.cols-3 { grid-template-columns: 1fr; }
  .cols-3 .opt { flex-direction: row; text-align: left; min-height: 64px; justify-content: flex-start; }
  .cols-3 .opt-icon { width: 40px; height: 40px; border-radius: 12px; }
  .options.cols-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .step-n { margin-bottom: 20px; }
  .card { padding: 24px; }
  .faq { padding: 4px 20px; }
  .quiz { border-radius: 26px; min-height: 420px; }
  .hero { text-align: left; }
  .hero .cta-row, .hero-chips { justify-content: flex-start; }
  .lede { margin-left: 0; }
  .cta-row .btn { flex: 1 1 auto; }
}
@media (max-width: 360px) { .nav-item { padding: 0 9px; font-size: 14px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
.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; }

/* Soft colour fields behind sections so the glass has something to bend */
.section { position: relative; }
#services::before, #how::before, #start::before, #faq::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(70px); opacity: var(--field-alpha);
}
#services::before { width: 60vw; max-width: 760px; aspect-ratio: 1.6; left: -8vw; top: 22%; background: radial-gradient(closest-side, var(--field-a), var(--field-b) 60%, transparent); }
#how::before { width: 50vw; max-width: 640px; aspect-ratio: 1.4; right: -6vw; top: 30%; background: radial-gradient(closest-side, var(--field-a), var(--field-b) 60%, transparent); }
#start::before { width: 80vw; max-width: 980px; aspect-ratio: 1.5; left: 50%; top: 52%; transform: translate(-50%, -50%); opacity: calc(var(--field-alpha) * 1.2);
  background: conic-gradient(from 120deg, var(--field-a), var(--field-b), var(--field-a), var(--field-b), var(--field-a)); }
#faq::before { width: 50vw; max-width: 600px; aspect-ratio: 1.3; left: -10vw; top: 40%; background: radial-gradient(closest-side, var(--field-a), var(--field-b) 60%, transparent); }
main { position: relative; z-index: 0; overflow-x: clip; }
@media (max-width: 720px) { .hero { padding-bottom: 56px; } }

.chip-free { color: var(--success-ink); }
.chip-free svg { color: #34c759; }

.nav-cta { margin-left: 2px; }
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition-duration: .4s !important; transition-property: background-color, color, border-color, box-shadow, fill, opacity !important; }

/* ── Dark mode ────────────────────────────────────── */
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --ink: #f5f5f5; --ink-2: #c8c8c8; --ink-3: #999999;
  --accent: #f5f5f5; --accent-2: #ffffff; --line: rgba(255,255,255,.1);
  --glass-edge: rgba(255,255,255,.22);
  --glass-shadow: 0 1px 1px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.35), 0 30px 70px rgba(0,0,0,.35);
  --glass-hi: rgba(255,255,255,.10); --glass-lo: rgba(255,255,255,.035);
  --glass-border: rgba(255,255,255,.13); --rim-lo: rgba(255,255,255,.05); --rim-hair: rgba(255,255,255,.07);
  --sheen: rgba(255,255,255,.10); --sheen-2: rgba(255,255,255,.04);
  --nav-hi: rgba(28,28,30,.88); --nav-lo: rgba(14,14,16,.78);
  --surface: rgba(255,255,255,.06); --surface-hover: rgba(255,255,255,.10); --surface-strong: rgba(255,255,255,.12);
  --surface-border: rgba(255,255,255,.10); --hl: rgba(255,255,255,.10);
  --fill: rgba(255,255,255,.08); --fill-2: rgba(255,255,255,.12);
  --input-bg: rgba(255,255,255,.06); --input-border: rgba(255,255,255,.16);
  --footer-bg: rgba(0,0,0,.25); --ambient-top: #000000;
  --h1-from: #ffffff; --h1-to: #c8c8c8; --on-ink: #000000;
  --tile: linear-gradient(145deg, rgba(255,255,255,.16), rgba(255,255,255,.04));
  --drop-tint: rgba(255,255,255,.05); --drop-shadow: 0 8px 24px rgba(0,0,0,.45);
  --orb-alpha: .7; --field-alpha: .38; --nav-bright: 1.12; --top-tint: #000000;
  --watch-scrim: rgba(0,0,0,.62);
  --watch-chrome: #000000; /* 0.62 black over #000000 */
  --menu-scrim: rgba(0,0,0,.55);
  --menu-chrome: #000000; /* 0.55 black over #000000 */
  --success-ink: #30d158; --err: #ff6b6b;
  --field-a: rgba(255,255,255,.08); --field-b: rgba(255,255,255,.03);
  --orb-1a: rgba(255,255,255,.12); --orb-1b: rgba(255,255,255,.04);
  --orb-2a: rgba(255,255,255,.10); --orb-2b: rgba(255,255,255,.035);
  --orb-3a: rgba(255,255,255,.09); --orb-3b: rgba(255,255,255,.03);
  --orb-4a: rgba(255,255,255,.11); --orb-4b: rgba(255,255,255,.04);
}
[data-theme="dark"] .drop { box-shadow: inset 0 1.5px 1px rgba(255,255,255,.55), inset 0 -2px 3px rgba(255,255,255,.18), inset 3px 0 6px rgba(255,255,255,.12), inset -3px 0 6px rgba(255,255,255,.12), inset 0 0 0 .5px rgba(255,255,255,.18), inset 0 0 18px rgba(255,255,255,.10), var(--drop-shadow); }
[data-theme="dark"] .drop-shine::before { opacity: .28; }
[data-theme="dark"] .drop-shine::after { opacity: .4; }
[data-theme="dark"] .form-error { background: rgba(255,69,58,.14); color: #ff8a80; }
[data-theme="dark"] .legal .note { background: rgba(255,214,10,.12); color: #ffd60a; }
[data-theme="dark"] .lens-dot { opacity: .8; }
[data-theme="dark"] .ticks li::before { background-color: rgba(255,255,255,.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23f5f5f5' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
[data-theme="dark"] .opt[aria-pressed="true"] { box-shadow: 0 0 0 1px var(--accent-2), 0 6px 20px rgba(255,255,255,.12); }
[data-theme="dark"] .logo svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,.55)); }
[data-theme="dark"] .input:focus { box-shadow: 0 0 0 4px rgba(255,255,255,.16); }
[data-theme="dark"] .btn-primary { box-shadow: 0 6px 20px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.28); }
[data-theme="dark"] #start::before { opacity: .22; }
[data-theme="dark"] .opt-hint { color: var(--ink-2); opacity: .8; }
[data-theme="dark"] .quiz { background: linear-gradient(180deg, rgba(28,28,28,.55), rgba(16,16,16,.45)); }


/* Footer text on the tinted end of the page */
.footer .copyright { color: var(--ink-2); }
.footer-bubble .disclaimer { color: var(--ink-2); }
.footer-bubble .footer-links a { color: var(--ink); opacity: .82; }
.footer-bubble .footer-links a:hover { opacity: 1; }

/* ── Back to top ──────────────────────────────────── */
/* Centred with left/right + margin, not translateX, so backdrop-filter glass still paints.
   Slide uses margin-bottom so no transform is applied to the glass element. */
.back-to-top {
  position: fixed;
  z-index: 40;
  left: 0;
  right: 0;
  width: max-content;
  max-width: calc(100vw - 2 * max(18px, env(safe-area-inset-left, 0px) + 18px, env(safe-area-inset-right, 0px) + 18px));
  margin-inline: auto;
  bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 22px));
  margin-bottom: -12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px 0 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
  color: var(--ink);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(180deg, var(--glass-hi), var(--glass-lo));
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    inset 0 -1px 0 var(--rim-lo),
    inset 0 0 0 .5px var(--rim-hair),
    var(--glass-shadow);
  isolation: isolate;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .35s var(--ease), margin-bottom .35s var(--ease), visibility 0s linear .35s, background .25s var(--ease), box-shadow .25s var(--ease);
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  margin-bottom: 0;
  transition-delay: 0s;
}
.back-to-top::before, .back-to-top::after { pointer-events: none; }
.back-to-top svg {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.back-to-top:hover { background: linear-gradient(180deg, var(--surface-hover), var(--glass-lo)); }
.back-to-top:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
}
.lg-refract .back-to-top {
  backdrop-filter: url(#lg-top-filter) blur(10px) saturate(180%);
  -webkit-backdrop-filter: url(#lg-top-filter) blur(10px) saturate(180%);
}
@media (prefers-reduced-motion: reduce) {
  .back-to-top, .back-to-top.is-visible {
    transition: none;
    margin-bottom: 0;
  }
}

/* Keep the control readable on pale Mono Noir pages without colouring it. */
html:not([data-theme="dark"]) .back-to-top {
  border-color: rgba(0,0,0,.14);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.9),
    inset 0 -1px 0 rgba(0,0,0,.04),
    0 6px 20px rgba(0,0,0,.12),
    0 1px 3px rgba(0,0,0,.08);
}

/* ── Hero drift (idea 67) ─────────────────────────── */
.hero-drift {
  position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }
.hero-lens { z-index: 1; }
.hero-blob, .hero-shard {
  position: absolute;
  will-change: transform;
  pointer-events: none;
}
.hero-blob {
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(0,0,0,.09), rgba(0,0,0,.03) 52%, transparent 72%);
}
[data-theme="dark"] .hero-blob {
  background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.12), rgba(255,255,255,.03) 52%, transparent 72%);
}
.hb1 { width: 440px; height: 440px; top: -18%; left: -12%; animation: hero-drift-a 32s ease-in-out infinite alternate; }
.hb2 { width: 360px; height: 360px; top: 8%; right: -14%; animation: hero-drift-b 38s ease-in-out infinite alternate; }
.hb3 { width: 300px; height: 300px; bottom: -16%; left: 30%; animation: hero-drift-a 36s ease-in-out infinite alternate-reverse; }
.hero-shard {
  border-radius: 28px;
  background: linear-gradient(165deg, rgba(255,255,255,.42), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7);
  /* translucent shapes only — no backdrop-filter, so nav refraction is untouched */
}
[data-theme="dark"] .hero-shard {
  background: linear-gradient(165deg, rgba(255,255,255,.12), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2);
}
.hs1 { width: 150px; height: 150px; top: 22%; left: 6%; opacity: .7; animation: hero-float-a 22s ease-in-out infinite alternate; }
.hs2 { width: 108px; height: 108px; top: 48%; right: 10%; border-radius: 22px; opacity: .55; animation: hero-float-b 26s ease-in-out infinite alternate; }
@keyframes hero-drift-a { to { transform: translate3d(44px, 32px, 0); } }
@keyframes hero-drift-b { to { transform: translate3d(-36px, 46px, 0); } }
@keyframes hero-float-a { to { transform: translate3d(22px, -26px, 0) rotate(8deg); } }
@keyframes hero-float-b { to { transform: translate3d(-24px, 18px, 0) rotate(-6deg); } }
.hero-drift.is-paused .hero-blob,
.hero-drift.is-paused .hero-shard { animation-play-state: paused; }
.motion-paused .orb { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero-blob, .hero-shard { animation: none !important; }
}

/* ── View Transitions (idea 68) ───────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .32s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .4s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none !important; }
}

/* ── Tactile micro-animations (idea 72) ───────────── */
.chip, .card, .step, .opt, .nav-item, .sit-icon {
  transition: transform .45s var(--spring), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover:not([disabled]) { transform: translateY(-2px); }
  .btn-primary:hover:not([disabled]) { box-shadow: 0 10px 26px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.22); }
  .chip:hover, .nav-cta:hover { transform: translateY(-2px); }
  .card.glass:hover, .step:hover { transform: translateY(-3px); }
  .js .reveal.in.card:hover,
  .js .reveal.in.step:hover { transform: translateY(-3px); }
  .opt:hover { transform: translateY(-2px); }
  .back-to-top.is-visible:hover > * { transform: translateY(-1px); }
}
.btn:active:not([disabled]),
.chip:active,
.nav-item:active,
.opt:active,
.card.glass:active,
.step:active { transform: scale(.97); }
.js .reveal.in.card:active,
.js .reveal.in.step:active { transform: scale(.97); }
.btn[disabled] { transform: none !important; }
/* Don't transform the back-to-top control itself (backdrop-filter + transform can drop the layer). */
.back-to-top > * { transition: transform .45s var(--spring); }
.back-to-top.is-visible:active > * { transform: scale(.97); }
@media (prefers-reduced-motion: reduce) {
  .btn:hover, .btn:active, .chip:hover, .chip:active,
  .card:hover, .card:active, .step:hover, .step:active,
  .opt:hover, .opt:active, .nav-item:active,
  .js .reveal.in.card:hover, .js .reveal.in.step:hover { transform: none; }
  .back-to-top > * { transition: none; transform: none !important; }
}


/* ── Hero background loop ─────────────────────────── */
.hero { position: relative; overflow: hidden; }
.hero-media {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
  background: #f3f3f4 url("/video/hero-loop-light.jpg") center / cover no-repeat;
}
[data-theme="dark"] .hero-media { background-color: #0a0a0c; background-image: url("/video/hero-loop-dark.jpg"); }
@media (max-width: 720px) {
  .hero-media { background-image: url("/video/hero-loop-light-portrait.jpg"); }
  [data-theme="dark"] .hero-media { background-image: url("/video/hero-loop-dark-portrait.jpg"); }
}
.hero-loop {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0; transition: opacity .5s var(--ease);
}
.hero-loop.is-on { opacity: 1; }
.hero-media-wash {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.58) 0%, rgba(255,255,255,.42) 42%, rgba(255,255,255,.72) 100%);
}
[data-theme="dark"] .hero-media-wash {
  background: linear-gradient(180deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.40) 42%, rgba(0,0,0,.68) 100%);
}
.hero-media-wash::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%;
  background: linear-gradient(transparent, var(--bg));
}
.hero > .container, .hero > .hero-lens { position: relative; z-index: 1; }
.hero-watch-link { margin: 18px 0 0; }
.hero-watch-link a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; padding: 0 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none;
}
.hero-watch-link a:hover { text-decoration: none; }

/* ── Watch how it works ───────────────────────────── */
.watch-card {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  cursor: pointer; overflow: hidden; border-radius: var(--radius);
  text-align: left; color: inherit; font: inherit;
  -webkit-tap-highlight-color: transparent;
}
.watch-card img {
  width: 100%; height: auto; display: block; aspect-ratio: 16 / 9; object-fit: cover;
}
.watch-play {
  position: absolute; left: 50%; top: 50%;
  width: 78px; height: 78px; margin: -39px 0 0 -39px;
  border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,.86), rgba(255,255,255,.72));
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
}
[data-theme="dark"] .watch-play {
  background: linear-gradient(180deg, rgba(36,36,38,.90), rgba(18,18,20,.84));
}
.watch-play svg { width: 28px; height: 28px; margin-left: 3px; fill: var(--ink); }
.watch-card:hover .watch-play, .watch-card:focus-visible .watch-play { transform: scale(1.05); }
.watch-label {
  position: absolute; left: 18px; bottom: 16px;
  color: #fff; font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
}
.watch-modal[hidden] { display: none !important; }
.watch-modal {
  position: fixed; z-index: 200;
  inset: 0;
  width: 100lvw; height: 100lvh; min-height: 100lvh;
  display: grid; place-items: center;
  overflow: visible;
}
html.watch-open,
html.watch-open body { overflow: hidden; }
/* Safari status/toolbar while any dimmed overlay (menu, lightbox) is open. */
html.chrome-dim { background-color: var(--overlay-chrome); transition: none; }
html.chrome-dim::before,
html.chrome-dim::after {
  content: "";
  position: fixed;
  left: 0; right: 0;
  z-index: 150;
  pointer-events: none;
  background: var(--overlay-chrome);
}
html.chrome-dim::before {
  top: 0;
  height: max(env(safe-area-inset-top, 0px), 1px);
}
html.chrome-dim::after {
  bottom: 0;
  height: max(env(safe-area-inset-bottom, 0px), 1px);
}
html.watch-open .nav-wrap {
  z-index: 1;
  pointer-events: none;
  view-transition-name: none;
}
.watch-scrim {
  position: absolute;
  /* Extend into safe areas / under Safari chrome; modal overflow is visible. */
  top: calc(-1 * env(safe-area-inset-top, 0px));
  right: calc(-1 * env(safe-area-inset-right, 0px));
  bottom: calc(-1 * env(safe-area-inset-bottom, 0px));
  left: calc(-1 * env(safe-area-inset-left, 0px));
  min-height: 100lvh;
  padding: 0; border: 0; border-radius: 0;
  background: var(--watch-scrim);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.watch-dialog {
  position: relative; z-index: 1;
  width: min(960px, calc(100% - 36px));
  padding: 10px; border-radius: 24px;
}
.watch-dialog video {
  width: 100%; display: block; border-radius: 16px; background: #000; vertical-align: middle;
}
@media (prefers-reduced-motion: reduce) {
  .hero-loop, .watch-card:hover .watch-play { transition: none; transform: none; }
}
