/* Belong website. Plain CSS, no build. Bump ?v= on every page when this file changes.

   Design system
   - Colour: the brand kit (branding/README.md). Belong Blue for actions, Ink for the dark "bands"
     (hero, interview, closing), Amber only for the dot motif. Neutrals from the app.
   - Type: Newsreader for display and section titles, Public Sans for everything else.
   - Motif: the symbol's ring-and-dot marks every section label (.kicker).
   - Rhythm: light and Ink sections alternate; each section has its own composition.
   - Phones: one frame (.phone), sized by its own width, with the camera in a strip above the
     screen so it never covers app content. The portfolio uses the same proportions.
   - Motion: short entrances, reveals on headings and visuals only, a slow float on hero phones,
     pointer tilt on desktop. Everything is off under prefers-reduced-motion. */

@font-face { font-family: "Public Sans"; src: url("../assets/fonts/public_sans_regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../assets/fonts/public_sans_medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../assets/fonts/public_sans_semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../assets/fonts/public_sans_bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../assets/fonts/public_sans_extrabold.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/newsreader-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../assets/fonts/newsreader-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --mist: #F4F6FA;
  --tint: #EEF3FF;
  --ink: #0F1B2D;
  --body: #3D4859;
  --muted: #5B6678;
  --line: #E3E6EB;
  --line-2: #CBD2DB;
  --accent: #1D4ED8;
  --accent-ink: #1E3A8A;
  --amber: #F5A524;
  --good: #15803D;
  --good-soft: #E7F4EC;
  --pill: #FDF3D6; --pill-ink: #8A5A00;
  --surface: #FFFFFF;
  /* the dark bands keep the brand Ink in both themes */
  --band: #0F1B2D; --band-text: #C3CCDB; --band-muted: #9AA6B8; --band-line: rgba(255, 255, 255, .1); --band-accent: #7FA2F5;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(80px, 11vw, 144px);
  --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E1116; --mist: #141921; --tint: #16213A; --ink: #ECF0F6; --body: #C3CAD5; --muted: #98A3B3;
    --line: #232A35; --line-2: #343D4A; --accent: #7FA2F5; --accent-ink: #A9C0FA; --good: #5FD08A; --good-soft: #14281C;
    --pill: #3A2F14; --pill-ink: #F2C46B; --surface: #161B23;
    --band: #0B1424; --mark-ring: rgba(255, 255, 255, .16);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E1116; --mist: #141921; --tint: #16213A; --ink: #ECF0F6; --body: #C3CAD5; --muted: #98A3B3;
  --line: #232A35; --line-2: #343D4A; --accent: #7FA2F5; --accent-ink: #A9C0FA; --good: #5FD08A; --good-soft: #14281C;
  --pill: #3A2F14; --pill-ink: #F2C46B; --surface: #161B23;
  --band: #0B1424; --mark-ring: rgba(255, 255, 255, .16);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 17px/1.6 var(--sans); overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main > section { padding-block: var(--section); overflow-x: clip; }

/* ---------- type ---------- */
.display { font: 500 clamp(2.6rem, 5.4vw, 4.75rem)/.98 var(--serif); letter-spacing: -0.025em; }
.h2 { font: 500 clamp(2.15rem, 4.4vw, 3.6rem)/1.03 var(--serif); letter-spacing: -0.02em; }
.h3 { font: 700 1.3rem/1.25 var(--sans); letter-spacing: -0.012em; }
.lead { font-size: clamp(1.08rem, 1.45vw, 1.22rem); line-height: 1.55; color: var(--body); max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.num { font-variant-numeric: tabular-nums; }
.eyebrow, .kicker { font: 700 .76rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
/* the symbol in miniature: a ring holding the amber dot */
.kicker { display: inline-flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 13px; height: 13px; border-radius: 50%; flex: none;
  background: radial-gradient(circle, var(--amber) 0 2.6px, transparent 3.1px); box-shadow: inset 0 0 0 2.6px currentColor; }
.sec-head { display: grid; gap: 18px; justify-items: start; max-width: 760px; margin-bottom: clamp(44px, 6vw, 76px); }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.sec-head.center .lead { margin-inline: auto; }
.pro { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--pill); color: var(--pill-ink); font: 800 .66rem/1 var(--sans); letter-spacing: .08em; vertical-align: middle; }

/* dark bands */
.band { background: var(--band); color: var(--band-text); }
.band h1, .band h2, .band h3, .band .h3 { color: #FFFFFF; }
.band .kicker, .band .eyebrow { color: var(--band-accent); }
.band .lead { color: var(--band-text); }
.band .muted { color: var(--band-muted); }
.band a:not(.btn):not(.play) { color: var(--band-accent); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent; font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .2s, border-color .2s, color .2s, box-shadow .25s; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn:active { transform: translateY(0) scale(.98); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { color: var(--bg); box-shadow: 0 10px 24px -12px rgba(15, 27, 45, .5); }
.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-quiet:hover { border-color: var(--ink); color: var(--ink); }
.band .btn-quiet { color: #FFFFFF; border-color: rgba(255, 255, 255, .28); }
.band .btn-quiet:hover { border-color: #FFFFFF; color: #FFFFFF; background: rgba(255, 255, 255, .06); }
.play { display: inline-block; border-radius: 12px; transition: transform .25s var(--ease); }
.play:hover { transform: translateY(-2px); }
.play:active { transform: scale(.98); }
.play img { height: 56px; width: auto; }
.band .play img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .35); border-radius: 9px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 84%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: background-color .35s, border-color .35s; }
.top.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font: 800 1.2rem/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; transition: color .35s; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px var(--mark-ring, transparent); }
.brand:hover { color: var(--ink); }
.nav-links { display: flex; gap: 2px; margin-left: auto; list-style: none; padding: 0; }
.nav-links a { position: relative; display: block; padding: 10px 12px; color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; transition: color .35s; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.nav .btn { min-height: 42px; padding: 0 16px; font-size: .92rem; border-radius: 12px; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; margin: 0 auto; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.menu-btn span + span { margin-top: 5px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.drawer { display: none; }
/* over the Ink hero the header is Ink too, then turns light once the page scrolls past it */
.top.on-band { background: color-mix(in srgb, var(--band) 90%, transparent); border-bottom-color: transparent; }
.top.on-band .brand, .top.on-band .nav-links a, .top.on-band .menu-btn { color: #FFFFFF; }
.top.on-band .menu-btn { border-color: rgba(255, 255, 255, .25); }
.top.on-band .nav .btn-ink { background: #FFFFFF; color: #0F1B2D; }
.top.on-band .brand img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .18); }
@media (max-width: 900px) {
  .nav-links, .nav > .btn { display: none; }
  .menu-btn { display: block; }
  .drawer { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .4s var(--ease), visibility 0s .4s; background: var(--bg); }
  .drawer > div { overflow: hidden; min-height: 0; }
  .drawer.open { grid-template-rows: 1fr; visibility: visible; transition: grid-template-rows .4s var(--ease); border-top: 1px solid var(--line); }
  .drawer ul { list-style: none; padding: 8px var(--gutter) 0; }
  .drawer li { opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s var(--ease); }
  .drawer.open li { opacity: 1; transform: none; }
  .drawer.open li:nth-child(2) { transition-delay: .03s; } .drawer.open li:nth-child(3) { transition-delay: .06s; }
  .drawer.open li:nth-child(4) { transition-delay: .09s; } .drawer.open li:nth-child(5) { transition-delay: .12s; }
  .drawer.open li:nth-child(6) { transition-delay: .15s; }
  .drawer a:not(.btn) { display: block; padding: 15px 4px; border-bottom: 1px solid var(--line); color: var(--ink); font-weight: 600; text-decoration: none; }
  .drawer .btn { margin: 16px var(--gutter) 22px; width: calc(100% - 2 * var(--gutter)); }
}

/* ---------- the phone frame ---------- */
/* Proportions are in cqw of the phone's own width, so a phone looks the same at any size.
   --strip is the colour of the band above the screen (the app's top colour). */
.phone { width: var(--w, 300px); max-width: 100%; container-type: inline-size; flex: none; }
.device { position: relative; border-radius: 14cqw; padding: 3.4cqw; background: #0B0F15;
  box-shadow: 0 0 0 1px rgba(15, 27, 45, .08), 0 1px 1px rgba(0, 0, 0, .1), 0 40px 70px -36px rgba(15, 27, 45, .55); }
.device::before { content: ""; position: absolute; z-index: 2; top: 5.6cqw; left: 50%; width: 6cqw; height: 6cqw; margin-left: -3cqw; border-radius: 50%; background: #0B0F15; }
.screen { border-radius: 11cqw; overflow: hidden; background: var(--strip, #FFFFFF); padding-top: 10cqw; }
.screen img { width: 100%; height: auto; }
.band .device { box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 40px 80px -30px rgba(0, 0, 0, .7); }
/* a screen that changes: images stacked in one cell, one shown */
.swap { display: grid; }
.swap > img { grid-area: 1 / 1; transition: opacity .45s var(--ease), transform .6s var(--ease); }
.js .swap > img:not(.on) { opacity: 0; transform: scale(1.015); }

/* ---------- hero ---------- */
.hero { padding-block: clamp(40px, 6vw, 88px) 0 !important; overflow: hidden; position: relative; isolation: isolate; }
/* faint ruled lines behind the phones, like a study sheet */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(var(--band-line) 1px, transparent 1px); background-size: 100% 46px;
  -webkit-mask-image: radial-gradient(60% 75% at 75% 70%, #000 10%, transparent 75%); mask-image: radial-gradient(60% 75% at 75% 70%, #000 10%, transparent 75%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); }
.hero-copy { display: grid; gap: 26px; align-content: center; padding-bottom: clamp(56px, 8vw, 112px); }
.hero .display { max-width: 15ch; }
.hero .display .ln { display: block; }
.hero .display em { font-style: italic; position: relative; white-space: nowrap; }
.hero .display em::after { content: ""; position: absolute; left: 1%; right: 3%; bottom: .02em; height: .07em; border-radius: 1em; background: var(--amber); transform-origin: left; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 22px; padding: 0; list-style: none; font-size: .93rem; color: var(--band-text); }
.facts li { display: inline-flex; align-items: center; gap: 9px; }
.facts li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.indep { font-size: .84rem; color: var(--band-muted); max-width: 50ch; padding-top: 18px; border-top: 1px solid var(--band-line); }
.stage { position: relative; min-height: clamp(560px, 50vw, 680px); perspective: 1600px; }
.stage .tilt { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.stage .phone { position: absolute; }
.stage .p-main { --w: clamp(250px, 22vw, 310px); left: 50%; margin-left: calc(var(--w) / -2); top: 4%; z-index: 3; }
.stage .p-left { --w: clamp(190px, 17vw, 240px); left: -5%; top: 22%; z-index: 2; }
.stage .p-right { --w: clamp(190px, 17vw, 240px); right: -9%; top: 30%; z-index: 1; }
.stage .p-left .device { transform: rotate(-6deg); }
.stage .p-right .device { transform: rotate(6deg); }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 0; }
  .hero .display { max-width: 14ch; }
  .stage { min-height: 0; height: clamp(400px, 112vw, 600px); }
  .stage .p-main { --w: min(62vw, 290px); top: 8%; }
  .stage .p-left { --w: min(44vw, 220px); left: -6%; top: 26%; }
  .stage .p-right { --w: min(44vw, 220px); right: -6%; top: 32%; }
}

/* ---------- facts strip ---------- */
.strip { padding-block: clamp(56px, 7vw, 92px) !important; border-bottom: 1px solid var(--line); }
.strip ol { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip li { padding: 4px 28px 4px 0; display: grid; gap: 12px; align-content: start; }
.strip li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.strip b { font: 500 clamp(2.5rem, 4vw, 3.5rem)/1 var(--serif); color: var(--ink); letter-spacing: -0.02em; }
.strip span { font-size: .96rem; color: var(--muted); max-width: 30ch; }
@media (max-width: 900px) {
  .strip ol { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .strip li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 480px) { .strip ol { grid-template-columns: 1fr; row-gap: 0; } .strip li, .strip li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); } .strip li:last-child { border-bottom: 0; } }

/* ---------- study: a feature switcher ---------- */
.study-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 110px); align-items: center; }
.tabs { display: grid; gap: 6px; margin-top: 12px; }
.tab { display: grid; grid-template-columns: 44px 1fr; gap: 6px 14px; width: 100%; padding: 20px 22px 20px 18px; border: 0; border-left: 2px solid var(--line); border-radius: 0 16px 16px 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: border-color .3s, background-color .3s; }
.tab .n { grid-row: span 2; font: 500 1.6rem/1 var(--serif); color: var(--muted); transition: color .3s; }
.tab b { color: var(--ink); font-size: 1.1rem; }
.tab .d { color: var(--muted); font-size: .97rem; }
.tab:hover { background: var(--mist); }
.tab[aria-selected="true"] { border-left-color: var(--accent); background: var(--tint); }
.tab[aria-selected="true"] .n { color: var(--accent); }
.study-art { position: relative; isolation: isolate; padding: 6% 0; }
.study-art .phone { --w: clamp(260px, 25vw, 320px); }
.study-art::before { content: ""; position: absolute; z-index: -1; inset: 0 -16%; border-radius: 50% 50% 28px 28px / 36% 36% 28px 28px; background: var(--tint); }
@media (max-width: 860px) {
  /* heading, then the phone, then the tabs right under it, so a tap changes what is in view */
  .study-grid { grid-template-columns: 1fr; gap: 28px; }
  .study-grid > div:first-child { display: contents; }
  .study-grid .sec-head { margin-bottom: 0; }
  .study-art { justify-self: center; order: 1; }
  .tabs { order: 2; margin-top: 0; }
}

/* try a real question */
.try { margin-top: clamp(64px, 9vw, 112px); display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 60px -44px rgba(15, 27, 45, .35); }
.try .copy { display: grid; gap: 12px; }
.try h3 { font: 500 clamp(1.7rem, 2.6vw, 2.2rem)/1.08 var(--serif); }
.qcard { display: grid; gap: 14px; padding: 22px; border-radius: 18px; background: var(--mist); }
.qcard .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.qcard .tag { font: 700 .7rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.qcard .ver { font-size: .8rem; color: var(--muted); }
.qcard .q { font: 700 1.22rem/1.35 var(--sans); color: var(--ink); min-height: 2.7em; }
.answer { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--good-soft); color: var(--good); font-weight: 600; animation: pop .35s var(--ease); }
.answer[hidden] { display: none; }
.qcard .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font: 600 .9rem/1 var(--sans); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.chip:hover { border-color: var(--ink); }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--tint); border-color: var(--accent); color: var(--accent); }
.chip[hidden] { display: none; }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .try { grid-template-columns: 1fr; } }

/* ---------- interview (band) ---------- */
.iv-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(48px, 8vw, 128px); align-items: center; }
.iv-art { position: relative; isolation: isolate; padding: 4% 6%; }
.iv-art .phone { --w: clamp(270px, 26vw, 330px); }
/* listening rings, from the app's microphone button */
.iv-art::before, .iv-art::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 76%; width: 118%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 1px solid var(--band-line); }
.iv-art::after { width: 160%; opacity: .55; }
.steps { list-style: none; padding: 0; counter-reset: s; margin-top: 36px; display: grid; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 6px 16px; padding: 22px 0; border-top: 1px solid var(--band-line); }
.steps li::before { content: "0" counter(s); grid-row: span 2; font: 500 1.6rem/1 var(--serif); color: var(--band-accent); }
.steps b { color: #FFFFFF; font-size: 1.08rem; }
.steps span { color: var(--band-text); }
.iv-note { padding-top: 22px; border-top: 1px solid var(--band-line); font-size: .95rem; color: var(--band-muted); }
@media (max-width: 860px) { .iv-grid { grid-template-columns: 1fr; } .iv-art { justify-self: center; } }

/* ---------- which test ---------- */
.tests-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 6vw, 96px); align-items: start; }
.tests-grid > *, .study-grid > *, .officials > *, .iv-grid > * { min-width: 0; }
.tests-art { position: sticky; top: 110px; }
.tests-art .phone { --w: clamp(240px, 21vw, 280px); }
.tests-art figcaption { margin-top: 18px; font-size: .88rem; color: var(--muted); text-align: center; max-width: 28ch; margin-inline: auto; }
.table-scroll { overflow-x: auto; }
.rules { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .98rem; }
.rules th, .rules td { text-align: left; padding: 16px 14px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rules thead th { font: 700 1.02rem/1.3 var(--sans); color: var(--ink); padding-top: 0; border-bottom: 2px solid var(--ink); }
.rules thead th small { display: block; margin-top: 6px; font: 400 .84rem/1.4 var(--sans); color: var(--muted); }
.rules tbody th { font-weight: 600; color: var(--muted); font-size: .9rem; width: 22%; }
.rules td { font: 500 1.35rem/1.2 var(--serif); color: var(--ink); }
.segs { display: flex; gap: 3px; }
.segs i { flex: 1; height: 8px; min-width: 3px; border-radius: 3px; background: var(--line-2); }
.segs i.on { background: var(--good); }
.js .segs i { transform: scaleY(.25); transition: transform .5s var(--ease); }
.js .in .segs i { transform: none; }
.rules-foot { margin-top: 22px; font-size: .93rem; color: var(--muted); }
@media (max-width: 860px) { .tests-grid { grid-template-columns: 1fr; } .tests-art { position: static; justify-self: center; } }
/* on phones the three columns fit without a sideways scroll */
@media (max-width: 600px) {
  .rules { min-width: 0; table-layout: fixed; font-size: .9rem; }
  .rules tbody th { width: 27%; font-size: .8rem; }
  .rules th, .rules td { padding-right: 8px; }
  .rules td { font-size: 1.02rem; }
  .rules thead th { font-size: .9rem; }
  .rules thead th small { font-size: .74rem; }
}

/* ---------- more than memorization ---------- */
.more { background: var(--mist); }
.officials { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: clamp(40px, 7vw, 110px); align-items: center; }
.officials .phone { --w: clamp(250px, 24vw, 310px); }
.ledger { margin-top: 30px; border-top: 1px solid var(--line-2); }
.ledger div { display: flex; justify-content: space-between; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line-2); }
.ledger span:first-child { color: var(--ink); font-weight: 600; }
.ledger span:last-child { color: var(--muted); font-size: .9rem; text-align: right; flex: none; max-width: 40%; }
.private { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; font-size: .95rem; color: var(--muted); }
.private svg { flex: none; color: var(--good); margin-top: 3px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); margin-top: clamp(80px, 11vw, 140px); }
.tile { display: flex; flex-direction: column; gap: 28px; padding: clamp(26px, 3.4vw, 44px) clamp(26px, 3.4vw, 44px) 0; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.tile.alt { background: var(--tint); border-color: transparent; }
.tile .copy { display: grid; gap: 14px; align-content: start; }
/* the phone rises from the bottom edge of the tile */
.peek { display: flex; justify-content: center; align-items: flex-start; height: clamp(300px, 30vw, 380px); overflow: hidden; margin-top: auto; }
.peek .phone { --w: clamp(230px, 22vw, 280px); }
.words { border-top: 1px solid var(--line); }
.words div { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.words b { color: var(--ink); }
.words em { grid-column: 2; font-style: normal; font-size: .78rem; font-weight: 700; color: var(--accent); }
.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; }
.checks svg { color: var(--good); margin-top: 4px; }
.es { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(24px, 5vw, 72px); background: var(--band); border-color: transparent; color: var(--band-text); }
.es h3 { color: #FFFFFF; }
.es .kicker { color: var(--band-accent); }
.es p { color: var(--band-text); }
.es .note { padding-left: 16px; border-left: 2px solid var(--amber); font-size: .95rem; }
.es .copy { align-self: center; padding-bottom: clamp(26px, 3.4vw, 44px); }
.es .peek { height: clamp(280px, 26vw, 340px); }
@media (max-width: 860px) {
  .officials { grid-template-columns: 1fr; } .officials .art { justify-self: center; }
  .tiles { grid-template-columns: 1fr; }
  .es { grid-template-columns: 1fr; }
  .es .copy { padding-bottom: 0; }
}

/* ---------- everyday study ---------- */
.habit { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.habit .col { display: grid; gap: clamp(36px, 5vw, 64px); }
.habit .col:first-child { text-align: right; }
.habit .item { display: grid; gap: 8px; }
.habit .item b { font: 500 1.65rem/1.1 var(--serif); color: var(--ink); }
.habit .item span { color: var(--muted); }
.duo { position: relative; width: clamp(340px, 38vw, 500px); aspect-ratio: 500 / 640; }
.duo .phone { position: absolute; --w: 56%; }
.duo .phone:first-child { left: 0; top: 0; z-index: 2; }
.duo .phone:last-child { right: 0; bottom: 0; }
@media (max-width: 960px) {
  .habit { grid-template-columns: 1fr; }
  .habit .col:first-child { text-align: left; }
  .habit .art { justify-self: center; order: -1; }
  .habit .col { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) { .habit .col { grid-template-columns: 1fr; gap: 28px; } .duo { width: min(100%, 360px); } }

/* ---------- pricing ---------- */
.pricing { background: var(--mist); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); max-width: 1000px; margin-inline: auto; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 3.4vw, 44px); background: var(--surface); display: grid; gap: 22px; align-content: start; position: relative; overflow: hidden; }
.plan h3 { font: 700 .82rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.price b { font: 500 3.6rem/1 var(--serif); color: var(--ink); letter-spacing: -0.02em; }
.price span { color: var(--muted); font-size: .95rem; }
.ticks { list-style: none; padding: 0; display: grid; gap: 12px; font-size: .99rem; }
.ticks li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; }
.ticks svg { color: var(--good); margin-top: 4px; }
.plan-note { font-size: .88rem; color: var(--muted); }
.pro-plan { background: var(--band); border-color: transparent; color: var(--band-text); }
.pro-plan h3 { color: var(--band-accent); }
.pro-plan .price { border-bottom-color: var(--band-line); }
.pro-plan .price b { color: #FFFFFF; }
.pro-plan .price span, .pro-plan .plan-note { color: var(--band-muted); }
.pro-plan .ticks svg { color: var(--amber); }
/* the symbol's ring, large and faint, in the corner */
.pro-plan::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; box-shadow: inset 0 0 0 52px rgba(255, 255, 255, .035); pointer-events: none; }
.plans-foot { text-align: center; margin-top: 28px; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- trust ---------- */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 48px); }
.trust article { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 2px solid var(--ink); }
.trust h3 { font: 700 1.1rem/1.3 var(--sans); }
.sources { margin-top: clamp(36px, 5vw, 56px); padding-top: 22px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); display: grid; gap: 6px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.faq-sec { border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-grid .sec-head { position: sticky; top: 110px; margin-bottom: 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 52px 22px 0; position: relative; font: 600 1.1rem/1.4 var(--sans); color: var(--ink); transition: color .2s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 2px; margin-top: -1px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq .ans { overflow: hidden; }
.faq .ans p { padding: 0 0 24px; max-width: 64ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .sec-head { position: static; } }

/* ---------- closing (band) ---------- */
.closing { padding-bottom: 0 !important; overflow: hidden; text-align: center; }
.closing .wrap { display: grid; justify-items: center; gap: 24px; }
.closing .h2 { font-size: clamp(2.6rem, 5.6vw, 4.6rem); max-width: 14ch; }
.closing .mark { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16); }
.closing .lead { margin-inline: auto; }
.closing .row { display: flex; justify-content: center; align-items: flex-start; gap: clamp(16px, 4vw, 48px); margin-top: clamp(24px, 4vw, 48px); height: clamp(250px, 28vw, 360px); overflow: hidden; width: 100%; }
.closing .row .phone { --w: clamp(180px, 20vw, 260px); }
.closing .row .phone:nth-child(2) { margin-top: 0; }
.closing .row .phone:nth-child(odd) { margin-top: 56px; }
@media (max-width: 640px) { .closing .row .phone:nth-child(3) { display: none; } .closing .row .phone { --w: 44vw; } }

/* ---------- footer ---------- */
footer { padding-block: 64px 36px; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-grid h2 { font: 700 .76rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot-grid ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.foot-grid a { color: var(--ink); text-decoration: none; }
.foot-grid a:hover { text-decoration: underline; }
.foot-about { display: grid; gap: 14px; max-width: 40ch; color: var(--muted); align-content: start; }
.foot-about p a { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--muted); font-size: .86rem; }
.legal p:first-child { color: var(--body); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-about { grid-column: 1 / -1; } }

/* ---------- legal pages and 404 ---------- */
.doc { max-width: 760px; margin: 0 auto; padding-inline: var(--gutter); padding-block: clamp(40px, 6vw, 72px) var(--section); }
.doc h1 { font: 500 clamp(2.2rem, 5vw, 3.2rem)/1.08 var(--serif); margin-bottom: 10px; }
.doc h2 { font: 700 1.3rem/1.3 var(--sans); margin: 40px 0 12px; }
.doc h3 { font: 700 1.05rem/1.3 var(--sans); margin: 24px 0 8px; }
.doc p, .doc li { max-width: 70ch; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; display: grid; gap: 8px; margin: 12px 0; }
.doc .meta { color: var(--muted); font-size: .95rem; }
.doc .box { background: var(--mist); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 22px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: .93rem; margin: 14px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { color: var(--ink); font-weight: 700; }
.table-wrap { overflow-x: auto; }
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: var(--section) var(--gutter); }
.lost .wrap { display: grid; gap: 18px; justify-items: center; }

/* ---------- motion ---------- */
/* Content is visible without JS; the .js class (set in <head>) opts into reveals. */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; }
/* hero entrance: the headline line by line, then copy and actions, then the phones settle */
/* the label above the headline is drawn at once: it is the first thing painted (LCP) */
.hero .display .ln, .hero-copy > :not(h1):not(.kicker) { animation: rise .7s var(--ease) both; }
.hero .display .ln:nth-child(2) { animation-delay: .06s; }
.hero .display .ln:nth-child(3) { animation-delay: .12s; }
.hero-copy > .lead { animation-delay: .16s; }
.hero-copy > .cta-row { animation-delay: .22s; }
.hero-copy > .facts { animation-delay: .28s; }
.hero-copy > .indep { animation-delay: .32s; }
.hero .display em::after { animation: underline .8s var(--ease) .55s both; }
.stage .phone { animation: settle 1.1s var(--ease) both; }
.stage .p-main { animation-delay: .08s; }
.stage .p-left { animation-delay: .2s; }
.stage .p-right { animation-delay: .28s; }
/* a slow drift once settled, on different periods so the phones never move in step */
.stage .p-main .device { animation: float 9s ease-in-out 1.2s infinite; }
.stage .p-left .device { animation: float-l 11s ease-in-out 1.4s infinite; }
.stage .p-right .device { animation: float-r 12s ease-in-out 1.6s infinite; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes settle { from { opacity: 0; transform: translateY(90px); } to { opacity: 1; transform: none; } }
@keyframes underline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes float { 50% { transform: translateY(-10px); } }
@keyframes float-l { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(-6deg) translateY(-8px); } }
@keyframes float-r { 0%, 100% { transform: rotate(6deg); } 50% { transform: rotate(6deg) translateY(-12px); } }
/* screenshots lift a little under the pointer */
@media (hover: hover) and (pointer: fine) {
  .lift .device { transition: transform .5s var(--ease); }
  .lift:hover .device { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .segs i { transform: none; }
}
