/* HookAI site ("Pearl"). Pale pearl surfaces, soft glass, film grain, one loud colour. See DESIGN.md. */

/* Fonts: self-hosted, latin subset, SIL OFL 1.1 (see /fonts/LICENSES.md). */
@font-face {
  font-family: "Instrument Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Instrument Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/instrument-serif-latin-400-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Geologica";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geologica-latin-wght-normal.woff2") format("woff2");
}
/* Size-adjusted system fallbacks so the swap moves the layout as little as possible (metrics are approximate). */
@font-face {
  font-family: "Instrument Serif Fallback";
  font-style: normal;
  src: local("Times New Roman"), local("Georgia");
  size-adjust: 94%;
  ascent-override: 106%;
  descent-override: 32%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Instrument Serif Fallback";
  font-style: italic;
  src: local("Times New Roman Italic"), local("Georgia Italic");
  size-adjust: 94%;
  ascent-override: 106%;
  descent-override: 32%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Geologica Fallback";
  src: local("Arial");
  size-adjust: 103%;
  ascent-override: 94.7%;
  descent-override: 26.7%;
  line-gap-override: 0%;
}

:root {
  /* The four inputs live in colors.css. Everything below is worked out from them. */
  --bg: var(--color-quiet-1);                                    /* quiet 1 */
  --blue: var(--color-quiet-2);                                  /* quiet 2 */
  --ink: var(--color-ink);                                       /* all text, outlines, focus */
  --loud: var(--color-loud);                                     /* ONLY: primary button, the one winner piece, selected states */
  --pearl: color-mix(in srgb, var(--bg) 70%, white);             /* lightest surface */
  --lilac: color-mix(in srgb, var(--loud) 4%, color-mix(in srgb, var(--bg) 55%, var(--blue)));  /* hero gradient midpoint: pink to lilac to blue */
  --mist: color-mix(in srgb, var(--blue) 40%, var(--pearl));     /* section wash */
  --leak: color-mix(in srgb, var(--blue) 70%, var(--pearl));     /* strongest centre of a light leak */
  --glass-alpha: 62%;
  --glass: color-mix(in srgb, var(--pearl) var(--glass-alpha), transparent);  /* glass panel tint; contrast is checked on the worst surface under it */
  --hairline: color-mix(in srgb, var(--ink) 14%, transparent);   /* decorative edges only, never the only cue */
  --muted: color-mix(in srgb, var(--ink) 80%, var(--blue));      /* secondary text */
  --line: color-mix(in srgb, var(--ink) 65%, var(--blue));       /* control borders and notches */
  /* Text on the loud colour: white when the loud colour is dark, near-ink when it is light (check:colors verifies the result). */
  --on-loud: oklch(from var(--loud) clamp(0.25, (0.65 - l) * 1000, 1) 0 0);
  --loud-wash: color-mix(in srgb, var(--loud) 16%, var(--pearl));   /* selected tile */
  --loud-mid: color-mix(in srgb, var(--loud) 55%, var(--pearl));    /* Hook tints in the illustrations */
  --loud-soft: color-mix(in srgb, var(--loud) 28%, var(--pearl));
  --shadow-ink: color-mix(in srgb, var(--ink) 26%, transparent);
  --shadow-soft: color-mix(in srgb, var(--ink) 8%, transparent);
  --font: "Geologica", "Geologica Fallback", Arial, sans-serif;
  --font-display: "Instrument Serif", "Instrument Serif Fallback", Georgia, serif;
  --gutter: 20px;
  --max: 1120px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scrollbar-color: var(--line) var(--pearl);
}
body {
  margin: 0;
  background: var(--pearl);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--ink);
  overflow-x: clip;
}
/* Film grain over the whole page: a tiny tiled SVG, very low opacity, never catches the pointer. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: 50; pointer-events: none;
  background: url("/grain.svg") 0 0 / 220px 220px;
  opacity: 0.16;
}
::selection { background: var(--ink); color: var(--pearl); }
img { display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: currentColor; text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; font-synthesis: none; text-wrap: balance; }
p, li { text-wrap: pretty; }
strong { font-weight: 600; }
em { font-style: italic; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--muted); }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Focus: one ink ring everywhere. */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: var(--gutter); top: -64px; z-index: 60;
  background: var(--ink); color: var(--pearl); padding: 12px 16px; border-radius: 10px; font-weight: 500;
}
.skip:focus { top: 8px; }

/* Header: logo icon and wordmark; text links only. On the home page it floats over the hero. */
.site-header { position: relative; z-index: 5; }
.home .site-header { position: absolute; inset: 0 0 auto 0; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--ink); text-decoration: none; font: 400 1.75rem/1 var(--font-display); }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 6px 14px -6px var(--shadow-ink); }
.bar-nav { display: flex; gap: 8px 22px; align-items: center; }
.bar-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 0.9375rem; font-weight: 400; text-decoration: none; }
.bar-link:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.bar-nav .bar-link:first-child { display: none; }

/* Type roles */
.display-h2 { font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1; letter-spacing: -0.015em; font-style: italic; }
.display-h3 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.08; font-style: italic; }
.lead { font-size: 1.1875rem; line-height: 1.55; font-weight: 300; max-width: 30em; }

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh; max-height: 1100px;
  display: grid; align-items: end;
  padding: 112px 0 40px;
  /* Pearl pink to lilac to pale blue, lightest on the left behind the text. */
  background: radial-gradient(70% 90% at 22% 50%, var(--bg) 0%, var(--lilac) 45%, var(--blue) 100%);
}
.stage { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 900ms var(--ease); }
.stage.is-live .stage-canvas { opacity: 1; }
.stage-fallback {
  position: absolute; right: -4%; top: 12%; width: min(60vw, 760px); height: auto;
  color: var(--ink); transition: opacity 600ms var(--ease);
}
.stage.is-live .stage-fallback { opacity: 0; }
.fb-s0 { stop-color: white; }
.fb-s1 { stop-color: var(--leak); }
.fb-s2 { stop-color: var(--pearl); }
.fb-rings ellipse { fill: none; stroke: white; stroke-width: 2; opacity: 0.95; }
.fb-torus { fill: url(#fb-glass); stroke: white; stroke-width: 2; }
.fb-torus-hole { fill: var(--pearl); stroke: white; stroke-width: 2; }

.hero-copy { position: relative; width: 100%; }
.hero h1 {
  font-size: clamp(3.25rem, 9.4vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  max-width: 9em;
}
.hero h1 em { font-style: italic; }
.hero .lead { margin-top: 24px; max-width: 24em; }
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.text-link { display: inline-flex; align-items: center; min-height: 48px; font-weight: 400; }
.hero-note { margin-top: 28px; font-size: 0.875rem; color: var(--muted); }
/* Benefits right under the main button: a free-to-join promise that lowers the cost of signing up. */
.perks { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.perks li { display: inline-flex; align-items: center; gap: 8px; }
.perks li::before {
  content: ""; flex: none; width: 16px; height: 16px; background: var(--ink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.5 3.5L12 3.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.5 3.5L12 3.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Buttons. The primary button is the loud colour's main job. */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 30px; border: 0; border-radius: 16px;
  font: 500 1.0625rem/1 var(--font); text-decoration: none; cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), background-color 160ms;
}
.btn-primary {
  background: var(--loud); color: var(--on-loud);
  box-shadow: 0 14px 28px -12px var(--shadow-ink), 0 2px 4px var(--shadow-soft), inset 0 1px 0 color-mix(in srgb, white 45%, transparent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 32px -12px var(--shadow-ink), 0 2px 4px var(--shadow-soft), inset 0 1px 0 color-mix(in srgb, white 45%, transparent); }
.btn-primary:disabled { background: var(--muted); color: var(--pearl); cursor: progress; transform: none; }
.btn-block { width: 100%; }

/* Soft glass: backdrop blur, hairline edge, real blurred shadow. */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
  backdrop-filter: blur(22px) saturate(1.25);
  border: 1px solid var(--hairline);
  border-radius: 28px;
  box-shadow: 0 40px 70px -34px var(--shadow-ink), 0 4px 14px var(--shadow-soft), inset 0 1px 0 color-mix(in srgb, white 85%, transparent);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: color-mix(in srgb, var(--pearl) 94%, transparent); }
}

/* How it works */
.how { position: relative; padding-top: 96px; padding-bottom: 40px; isolation: isolate; }
.how::before, .join::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -10% -30vw;
  background:
    radial-gradient(34% 22% at 12% 20%, color-mix(in srgb, var(--blue) 85%, transparent), transparent 70%),
    radial-gradient(30% 20% at 92% 62%, color-mix(in srgb, var(--leak) 80%, transparent), transparent 70%),
    radial-gradient(26% 18% at 20% 92%, color-mix(in srgb, var(--blue) 70%, transparent), transparent 70%);
}
.step { display: grid; gap: 32px; margin-top: 88px; align-items: center; }
.how .display-h2 + .step { margin-top: 56px; }
.step-copy { max-width: 30em; position: relative; }
.step-no { display: block; font: italic 400 clamp(4.5rem, 12vw, 7rem)/0.8 var(--font-display); color: var(--ink); opacity: 0.9; margin-bottom: 8px; }
.step h3 { font-size: clamp(1.75rem, 4vw, 2.5rem); line-height: 1.08; margin-bottom: 12px; }
.step-copy p { font-weight: 300; font-size: 1.125rem; }

/* Step 1: one video fans into three Versions. */
.split { display: grid; grid-template-columns: 22% 9% 1fr; align-items: stretch; min-height: 240px; }
.split-src {
  display: flex; align-items: flex-end; padding: 12px; border-radius: 18px; border: 1px solid var(--line); position: relative; overflow: hidden;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 9%, transparent) 0 2px, transparent 2px 22px), var(--glass);
  box-shadow: 0 30px 50px -30px var(--shadow-ink);
}
.split-src span { font-size: 0.875rem; font-weight: 500; background: var(--pearl); padding: 3px 8px; border-radius: 8px; }
/* 196px = three 56px rows + two 14px gaps; the line ends (y 28, 98, 168 in the viewBox) sit on the row centres. */
.split-lines { width: 100%; height: 196px; align-self: center; overflow: visible; }
.split-lines path { fill: none; stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.split-rows { display: grid; gap: 14px; align-content: center; }
.split-row { display: grid; grid-template-columns: 30% 1fr; gap: 4px; height: 56px; }
.seg { display: flex; align-items: center; padding: 0 14px; font-size: 0.9375rem; font-weight: 500; border: 1px solid var(--line); }
.seg-hook { background: var(--glass); border-radius: 16px 4px 4px 16px; box-shadow: 0 14px 24px -14px var(--shadow-ink), inset 0 1px 0 color-mix(in srgb, white 85%, transparent); }
.seg-body {
  border-radius: 4px 16px 16px 4px;
  background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--ink) 7%, transparent) 0 2px, transparent 2px 22px), var(--pearl);
}

/* Step 2: three phones, each a Version. */
.phones { position: relative; height: 340px; display: flex; justify-content: center; align-items: center; }
.phone {
  position: absolute; width: 150px; height: 300px; border-radius: 30px; padding: 9px;
  background: var(--pearl); border: 2px solid var(--ink);
  box-shadow: 0 40px 50px -26px var(--shadow-ink), inset 0 0 0 1px var(--hairline);
}
.phone::before { content: ""; position: absolute; top: 14px; left: 50%; width: 44px; height: 10px; margin-left: -22px; border-radius: 6px; background: var(--ink); z-index: 2; }
.screen { height: 100%; border-radius: 22px; overflow: hidden; display: grid; grid-template-rows: 34% 1fr; border: 1px solid var(--line); }
.screen span { display: flex; align-items: flex-end; padding: 10px 12px; font-size: 0.875rem; font-weight: 500; }
.p-hook { padding-top: 26px; }
.p-body { background: repeating-linear-gradient(0deg, color-mix(in srgb, var(--ink) 6%, transparent) 0 2px, transparent 2px 24px), var(--glass); }
.p-h1 { background: var(--loud-mid); }
.p-h2 { background: var(--loud-soft); }
.p-h3 { background: var(--loud-mid); }
.phone-l { transform: translateX(-98px) rotate(-8deg) scale(0.9); }
.phone-r { transform: translateX(98px) rotate(8deg) scale(0.9); }
.phone-m { z-index: 2; }
/* The middle phone overlaps the inner edge of the side phones, so keep their labels on the visible outer side. */
.phone-r .p-hook, .phone-r .p-body { justify-content: flex-end; }

/* Step 3: which Hook won. The loud colour marks the winner. */
.compare { margin: 0; }
.cmp { display: grid; gap: 14px; padding: 28px 22px; border-radius: 24px; background: var(--glass); border: 1px solid var(--hairline); box-shadow: 0 40px 60px -34px var(--shadow-ink); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.cmp-row { display: grid; grid-template-columns: 4.5rem 1fr; align-items: center; gap: 12px; }
.cmp-name { font-size: 0.9375rem; font-weight: 500; }
.cmp-bar { display: flex; align-items: center; justify-content: flex-end; width: var(--w); min-height: 44px; border-radius: 6px 14px 14px 6px; background: color-mix(in srgb, var(--blue) 75%, var(--pearl)); border: 1px solid var(--line); box-shadow: 0 10px 20px -14px var(--shadow-ink); }
.cmp-win .cmp-bar { background: var(--loud); border: 2px solid var(--loud); box-shadow: 0 14px 26px -12px var(--shadow-ink); }
.cmp-tag { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font-size: 0.875rem; font-weight: 500; color: var(--on-loud); white-space: nowrap; }
.cmp-tag::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.5 3.5L12 3.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.5 3.5L12 3.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; }
.compare figcaption { margin-top: 12px; font-size: 0.875rem; color: var(--muted); }

/* On-device note */
.device { margin-top: 96px; padding: 36px 28px; max-width: 760px; }
.device p { margin-top: 10px; font-weight: 300; font-size: 1.125rem; }

/* Waitlist */
.join { position: relative; isolation: isolate; padding-top: 96px; padding-bottom: 104px; scroll-margin-top: 16px; display: grid; gap: 36px; align-items: start; }
.join-intro .lead { margin-top: 20px; }
.card { padding: 28px 22px; max-width: 600px; width: 100%; }
form { display: grid; gap: 30px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
label, legend { display: block; font-weight: 500; font-size: 0.9375rem; padding: 0; margin-bottom: 10px; }
input[type="email"] {
  width: 100%; min-height: 56px; padding: 6px 2px;
  background: transparent; color: var(--ink); border: 0; border-bottom: 2px solid var(--line); border-radius: 0;
  font: 300 1.625rem/1.2 var(--font);
}
input[type="email"]::placeholder { color: var(--muted); opacity: 1; }
input[type="email"]:focus { outline: 0; border-bottom-color: var(--ink); box-shadow: 0 3px 0 0 var(--ink); }
input[type="email"]:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; border-radius: 4px; }
input[type="email"][aria-invalid="true"] { border-bottom: 4px solid var(--ink); }
.hint { margin-top: 10px; color: var(--muted); font-size: 0.875rem; line-height: 1.4; }
.fine { margin-top: -10px; }
.fine a { display: inline-block; padding: 14px 6px; margin: -14px -6px; }

/* Platform tiles: real checkboxes. Selected = ink border, loud wash and a check mark. */
.tiles { display: grid; gap: 12px; }
.tile { position: relative; display: block; margin: 0; font-weight: 400; }
.tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.tile-face {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  min-height: 72px; padding: 0 20px; border: 2px solid var(--line); border-radius: 20px;
  background: color-mix(in srgb, var(--pearl) 70%, transparent);
  transition: background-color 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}
.tile:hover .tile-face { transform: translateY(-1px); border-color: var(--ink); }
.tile-name { font: 400 1.75rem/1 var(--font-display); }
.tile-check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.tile input:checked + .tile-face { border-color: var(--ink); background: var(--loud-wash); box-shadow: 0 18px 30px -20px var(--shadow-ink); }
.tile input:checked + .tile-face .tile-name { font-style: italic; }
.tile input:checked + .tile-face .tile-check { background: var(--ink); border-color: var(--ink); }
.tile input:checked + .tile-face .tile-check::before {
  content: ""; width: 14px; height: 14px; background: var(--pearl);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.5 3.5L12 3.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.5 3.5L12 3.5' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tile input:focus-visible + .tile-face { outline: 3px solid var(--ink); outline-offset: 3px; }

/* Follower range: a notched slider built on a radio group (arrow keys work natively). */
.slider { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 4px; touch-action: pan-y; user-select: none; }
.stop { position: relative; display: grid; justify-items: center; align-content: start; gap: 12px; margin: 0; padding: 0 2px 4px; font-weight: 400; text-align: center; cursor: pointer; }
.stop input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 2; }
.stop::before, .stop::after { content: ""; position: absolute; top: 15px; height: 3px; width: 50%; background: var(--line); opacity: 0.55; }
.stop::before { left: 0; }
.stop::after { right: 0; }
.stop:first-child::before, .stop:last-child::after { display: none; }
.notch { position: relative; z-index: 1; width: 22px; height: 22px; margin-top: 4px; border-radius: 50%; background: var(--pearl); border: 2px solid var(--line); transition: transform 220ms var(--ease), background-color 200ms; display: grid; place-items: center; }
.stop-label { font-size: 0.9375rem; line-height: 1.25; max-width: 6em; }
.stop:has(~ .stop input:checked)::before, .stop:has(~ .stop input:checked)::after, .stop:has(input:checked)::before { background: var(--ink); opacity: 1; }
.stop input:checked ~ .notch { transform: scale(1.35); background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ink) 14%, transparent); }
.stop input:checked ~ .notch::before {
  content: ""; width: 10px; height: 10px; background: var(--pearl);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.5 3.5L12 3.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2 7.5l3.5 3.5L12 3.5' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.stop input:checked ~ .stop-label { font-weight: 600; }
.stop input:focus-visible ~ .notch { outline: 3px solid var(--ink); outline-offset: 5px; }

/* Honeypot: off-screen, not display:none (some bots skip those). */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

.status { font-size: 0.9375rem; }
.status:empty { display: none; }
.status.err { color: var(--ink); font-weight: 500; background: var(--pearl); border: 2px solid var(--ink); border-radius: 14px; padding: 10px 14px; }

.success { padding: 12px 0; }
.success p { margin-top: 10px; font-weight: 300; font-size: 1.125rem; }
.success[hidden], form[hidden] { display: none; }

/* Footer */
.site-footer { background: color-mix(in srgb, var(--pearl) 60%, var(--mist)); border-top: 1px solid var(--hairline); padding: 28px 0 40px; position: relative; }
.foot { display: grid; gap: 16px; }
.foot p { font-size: 0.9375rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0 22px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); }

/* The one authored moment: each step's graphic draws in once as it scrolls into view. Off under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready [data-reveal] .split-src,
  .reveal-ready [data-reveal] .seg,
  .reveal-ready [data-reveal] .phone,
  .reveal-ready [data-reveal] .cmp-bar { opacity: 0; transition: opacity 700ms var(--ease), transform 900ms var(--ease), width 1100ms var(--ease); }
  .reveal-ready [data-reveal] .split-lines path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms var(--ease) 250ms; }
  .reveal-ready [data-reveal] .seg-hook { transform: translateX(-28px) scaleX(0.7); transform-origin: left center; }
  .reveal-ready [data-reveal] .seg-body { transform: translateX(-12px); }
  .reveal-ready [data-reveal] .split-row:nth-child(2) .seg { transition-delay: 160ms; }
  .reveal-ready [data-reveal] .split-row:nth-child(3) .seg { transition-delay: 320ms; }
  .reveal-ready [data-reveal] .phone-l { transform: translateX(0) rotate(0) scale(0.9); }
  .reveal-ready [data-reveal] .phone-r { transform: translateX(0) rotate(0) scale(0.9); }
  .reveal-ready [data-reveal] .phone-m { transform: translateY(28px); }
  .reveal-ready [data-reveal] .cmp-bar { width: 6%; }
  .reveal-ready [data-reveal] .cmp-row:nth-child(2) .cmp-bar { transition-delay: 180ms; }
  .reveal-ready [data-reveal] .cmp-row:nth-child(3) .cmp-bar { transition-delay: 360ms; }
  .reveal-ready [data-reveal].in .split-src,
  .reveal-ready [data-reveal].in .seg,
  .reveal-ready [data-reveal].in .phone,
  .reveal-ready [data-reveal].in .cmp-bar { opacity: 1; }
  .reveal-ready [data-reveal].in .split-lines path { stroke-dashoffset: 0; }
  .reveal-ready [data-reveal].in .seg { transform: none; }
  .reveal-ready [data-reveal].in .phone-l { transform: translateX(-98px) rotate(-8deg) scale(0.9); }
  .reveal-ready [data-reveal].in .phone-r { transform: translateX(98px) rotate(8deg) scale(0.9); }
  .reveal-ready [data-reveal].in .phone-m { transform: none; }
  .reveal-ready [data-reveal].in .cmp-bar { width: var(--w); }
}
.split-lines path { stroke-dasharray: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile-face, .notch, .stage-canvas, .stage-fallback { transition: none; }
}

@media (min-width: 720px) {
  :root { --gutter: 40px; }
  .bar-nav .bar-link:first-child { display: inline-flex; }
  .lead { font-size: 1.3125rem; }
  .how { padding-top: 128px; }
  .step { margin-top: 128px; }
  .how .display-h2 + .step { margin-top: 72px; }
  .step-two, .step-three { grid-template-columns: 1fr 1fr; gap: 64px; }
  .step-one .split { min-height: 300px; }
  .tiles { grid-template-columns: repeat(3, 1fr); }
  .tile-face { min-height: 96px; padding: 0 18px; }
  .card { padding: 44px 44px 40px; }
  .foot { grid-template-columns: 1fr auto; align-items: center; }
  .device { padding: 48px 48px; }
}
@media (min-width: 900px) {
  .hero { align-items: center; padding-bottom: 72px; }
  /* Keep the copy in the left ~54% of its own container. (Percentage padding would resolve against the whole viewport and squeeze the text on very wide screens.) */
  .hero-copy > * { max-width: 54%; }
  .hero h1 { max-width: min(9em, 54%); }
  .hero .lead { max-width: min(24em, 54%); }
  .stage-fallback { top: 14%; }
  .join { grid-template-columns: 0.8fr 1.2fr; gap: 64px; }
}
@media (max-width: 899px) {
  .hero { padding-top: 104px; }
  .hero-copy { padding-bottom: 46svh; }
  .hero { align-items: start; }
  .stage-fallback { right: 50%; transform: translateX(50%); top: auto; bottom: 3%; width: min(92vw, 520px); }
}

/* Legal and support pages: calm document layout on pearl, no 3D. */
.doc { padding-top: 24px; padding-bottom: 72px; max-width: 760px; }
.doc h1 { font-size: clamp(2.5rem, 8vw, 4rem); line-height: 1.02; font-style: italic; letter-spacing: -0.015em; }
.doc .updated { margin-top: 12px; font-size: 0.9375rem; }
.doc h2 { font-size: 2rem; line-height: 1.15; margin-top: 52px; font-style: italic; }
.doc h3 { font: 500 1.125rem/1.3 var(--font); margin-top: 28px; }
.doc p, .doc ul, .doc ol { margin-top: 14px; max-width: 40em; font-weight: 300; font-size: 1.0625rem; }
.doc strong { font-weight: 500; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc .notice { background: var(--glass); border: 1px solid var(--hairline); border-radius: 20px; padding: 16px 22px; margin-top: 24px; }
.doc .later { background: var(--glass); border: 1px solid var(--hairline); border-radius: 20px; padding: 4px 22px 22px; margin-top: 32px; }
.doc .later h2 { margin-top: 20px; }
.doc .later h3 { margin-top: 24px; }
.doc code { background: var(--mist); border-radius: 6px; padding: 1px 6px; font-size: 0.92em; }
.doc-page { background: radial-gradient(50% 30% at 90% 0%, color-mix(in srgb, var(--leak) 90%, transparent), transparent 70%), var(--pearl); }

/* Hero melts into the page: no hard seam under the gradient. */
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 24%; z-index: -1; pointer-events: none; background: linear-gradient(to bottom, transparent, var(--pearl)); }
@media (max-width: 719px) {
  .split { grid-template-columns: 24% 7% 1fr; }
  .split-row { grid-template-columns: 38% 1fr; }
  .seg { padding: 0 9px; font-size: 0.8125rem; white-space: nowrap; }
  .phones { transform: scale(0.9); }
}
