/* Fikra's site, on the app's tokens (Fikra/Design/Tokens.swift). */

@font-face { font-family: "DM Sans"; src: url(assets/fonts/DMSans-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(assets/fonts/DMSans-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url(assets/fonts/DMSans-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url(assets/fonts/DMMono-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url(assets/fonts/SpaceGrotesk-Bold.ttf); font-weight: 700; font-display: swap; }
@font-face { font-family: "Literata"; src: url(assets/fonts/LiterataText-Regular.ttf); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url(assets/fonts/LiterataText-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: "Literata Display"; src: url(assets/fonts/LiterataDisplay-Medium.ttf); font-weight: 500; font-display: swap; }
@font-face { font-family: "Excalifont"; src: url(assets/fonts/Excalifont-Regular.ttf); font-display: swap; }

:root {
  color-scheme: light dark;
  --canvas: #F9F7F4; --surface: #FFFFFF; --surface-alt: #F5F3EE; --sunken: #EFEDE8; --hairline: #E4E2DD;
  --ink-strong: #1B3139; --ink: #3A3838; --ink-soft: #5A5755; --ink-muted: #6F6A65;
  --accent-fill: #0066FF; --accent-deep: #0050C8; --on-accent: #FFFFFF;
  --success: #00A972; --success-ink: #00875C; --success-soft: #DDF0E6;
  --wrong: #D1443C;
  --lift: 0 1px 2px rgb(27 49 57 / .06), 0 14px 30px -12px rgb(27 49 57 / .22);
  --float: 0 2px 6px rgb(27 49 57 / .06), 0 34px 70px -24px rgb(27 49 57 / .38);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sans: "DM Sans", system-ui, sans-serif;
  --serif: "Literata", Georgia, serif;
  --display: "Literata Display", "Literata", Georgia, serif;
  --mono: "DM Mono", ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --canvas: #0A1424; --surface: #14243C; --surface-alt: #1B2E4A; --sunken: #1A2A44; --hairline: #27395A;
    --ink-strong: #EAF1FF; --ink: #D6E2F5; --ink-soft: #A8BAD6; --ink-muted: #8A9CB9;
    --accent-fill: #2A66C4; --accent-deep: #2F72D6; --on-accent: #EAF1FF;
    --success: #2ED39A; --success-ink: #4EDCAB; --success-soft: #0F3327;
    --wrong: #F08078;
    --lift: 0 1px 2px rgb(0 0 0 / .3), 0 14px 30px -12px rgb(0 0 0 / .6);
    --float: 0 2px 6px rgb(0 0 0 / .3), 0 34px 70px -24px rgb(0 0 0 / .7);
  }
}

/* Topic families: tint, tone, and the tone darkened for a label. */
[data-topic=mind] { --tint: #FBE3EA; --tone: #B5486B; --deep: #943B58; }
@media (prefers-color-scheme: dark) {
  [data-topic] { --tint: color-mix(in srgb, var(--tone) 24%, #0A1424); --deep: color-mix(in srgb, var(--tone) 45%, #fff); }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 400 16px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent-fill); outline-offset: 4px; border-radius: 6px; }
::selection { background: #D2E2FF; color: #1B3139; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--surface); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.micro { margin: 0; font: 500 11px/1.4 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); }
.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.headline { margin: 0; font: 500 clamp(34px, 4.4vw, 54px)/1.08 var(--display); letter-spacing: -.02em; color: var(--ink-strong); text-wrap: balance; }
.body-lg { margin: 18px 0 0; max-width: 34em; font-size: 19px; line-height: 1.6; color: var(--ink-soft); text-wrap: pretty; }
.section { padding-block: 120px; }
.sec-head { max-width: 780px; margin: 0 auto 64px; text-align: center; }
.sec-head .micro { margin-bottom: 16px; }
.sec-head .body-lg { margin-inline: auto; }

/* Motion: an entrance on load and endings only. Nothing waits for a scroll to become visible. */
@keyframes rise { from { opacity: 0; translate: 0 24px; } }
@keyframes pop { from { opacity: 0; scale: .9; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rise { animation: rise .9s var(--ease) var(--d, 0s) both; }
.pop { animation: pop 1s var(--ease) var(--d, 0s) both; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 54px; padding: 0 26px; border: 1px solid transparent; border-radius: 999px; font: 700 15px/1 var(--sans); letter-spacing: .02em; text-decoration: none; white-space: nowrap; cursor: pointer; transition: background .2s, border-color .2s, box-shadow .2s, transform .15s; }
.btn:active { transform: scale(.96); }
/* A store button before the app is live: it says Coming soon and does nothing. */
.btn[data-store]:not([href]) { cursor: default; transform: none; }
.btn-primary[data-store]:not([href]):hover { background: var(--accent-fill); }
.btn-primary { background: var(--accent-fill); color: var(--on-accent); box-shadow: 0 12px 26px -12px rgb(0 102 255 / .7); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ink { background: var(--ink-strong); color: var(--canvas); }
.btn-ghost { background: var(--surface); border-color: var(--hairline); color: var(--ink-strong); }
.btn-ghost:hover { border-color: var(--ink-muted); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--canvas) 82%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.site-head.scrolled { border-bottom-color: var(--hairline); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; text-decoration: none; color: var(--ink-strong); font: 700 28px/1 "Space Grotesk", var(--sans); letter-spacing: -.04em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.bar nav { display: flex; align-items: center; gap: 26px; font: 500 14px var(--sans); color: var(--ink-soft); }
.bar nav a, .lang a { text-decoration: none; }
.bar nav a:hover, .lang a:hover { color: var(--ink-strong); }
.lang { display: flex; gap: 10px; font: 500 13px var(--sans); color: var(--ink-muted); }
.lang [aria-current] { color: var(--ink-strong); font-weight: 700; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-block: 48px 90px; }
.tag { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface); font: 500 13px var(--sans); color: var(--ink-soft); }
.tag b { padding: 4px 10px; border-radius: 999px; background: var(--ink-strong); color: var(--canvas); font: 500 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.hero h1 { margin: 26px 0 24px; font: 500 clamp(48px, 6.4vw, 86px)/1.02 var(--display); letter-spacing: -.03em; color: var(--ink-strong); text-wrap: balance; }
.mark { position: relative; white-space: nowrap; }
.mark svg { position: absolute; left: -1%; bottom: -.16em; width: 102%; height: .32em; overflow: visible; }
/* No non-scaling-stroke here: it breaks pathLength, and the draw stopped part way along. */
.mark path { fill: none; stroke: var(--success); stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1s cubic-bezier(.6, 0, .2, 1) .7s forwards; }
.lede { margin: 0; max-width: 31em; font-size: 20px; line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 24px 0 0; padding: 0; list-style: none; font: 500 13px var(--sans); color: var(--ink-muted); }
.trust li { display: flex; align-items: center; gap: 7px; }
.trust .i { width: 16px; height: 16px; color: var(--success); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 660px; }
.hero-visual::before { content: ""; position: absolute; inset: 6% 0; z-index: -1; border-radius: 50%; background: radial-gradient(circle at 28% 30%, #FBE3EA, transparent 58%), radial-gradient(circle at 74% 72%, #DDF0E6, transparent 58%), radial-gradient(circle at 64% 18%, #E4EEFF, transparent 52%); filter: blur(24px); }
@media (prefers-color-scheme: dark) { .hero-visual::before { opacity: .14; } }

.phone { position: relative; width: min(300px, 72vw); padding: 9px; border-radius: 52px; background: #0E1116; box-shadow: inset 0 0 0 1.5px #3A3F47, var(--float); }
.phone::after { content: ""; position: absolute; top: calc(9px + 1.4%); left: 50%; translate: -50% 0; width: 31%; height: 3.6%; border-radius: 999px; background: #000; z-index: 2; }
.screen { position: relative; aspect-ratio: 900 / 1956; border-radius: 43px; overflow: hidden; background: var(--sunken); }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero .phone { rotate: -3deg; translate: calc(var(--px, 0) * -12px) calc(var(--py, 0) * -12px); transition: translate .3s ease-out; }

.float { position: absolute; z-index: 3; background: var(--surface); border-radius: 18px; box-shadow: var(--float); translate: calc(var(--px, 0) * var(--depth)) calc(var(--py, 0) * var(--depth)); transition: translate .3s ease-out; }
.float-idea { top: 3%; left: -12%; width: 224px; display: grid; gap: 7px; padding: 16px 18px; rotate: -5deg; --depth: 28px; }
.float-idea .term { font-size: 24px; }
.float-idea .hook { margin: 0; font: 400 14px/1.45 var(--serif); color: var(--ink); }
.float-back { bottom: 8%; right: -10%; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; rotate: 4deg; --depth: 22px; }
.float-back .tick { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--success-soft); color: var(--success); }
.float-back strong { display: block; font: 500 18px/1.2 var(--display); color: var(--ink-strong); }
.float-audio { top: 50%; left: -3%; display: flex; align-items: center; gap: 10px; padding: 9px 16px 9px 9px; border-radius: 999px; rotate: -2deg; font: 500 13px var(--sans); color: var(--ink-strong); --depth: 36px; }
.play { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink-strong); color: var(--canvas); }
.play svg { width: 13px; height: 13px; fill: currentColor; margin-left: 2px; }
.eq { display: flex; align-items: center; gap: 3px; height: 18px; }
/* Composited, and it retires after a few seconds. */
.eq span { width: 3px; height: 100%; border-radius: 2px; background: var(--success); scale: 1 .35; animation: eq .9s ease-in-out 8 alternate; }
.eq span:nth-child(2) { animation-delay: -.45s; } .eq span:nth-child(3) { animation-delay: -.2s; } .eq span:nth-child(4) { animation-delay: -.7s; }
@keyframes eq { to { scale: 1 1; } }

/* The index card pieces */
.chip { margin: 0; display: flex; align-items: center; gap: 7px; font: 500 11px/1.2 var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--deep); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tone); }
.rule { display: block; height: 8px; margin: -4px 0 2px; background: var(--ink-muted); opacity: .55; -webkit-mask: url(assets/rule.svg) center / 100% 100% no-repeat; mask: url(assets/rule.svg) center / 100% 100% no-repeat; }
.term { margin: 0; font: 500 32px/1.12 var(--display); letter-spacing: -.01em; color: var(--ink-strong); }

/* Why: the forgetting curve */
.split { display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 72px; }
.points { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 22px; }
.points li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.points .ic { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--hairline); border-radius: 13px; background: var(--surface); color: var(--ink-strong); }
.points h3 { margin: 0 0 3px; font: 700 17px/1.3 var(--sans); color: var(--ink-strong); }
.points p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-soft); }
.chart { margin: 0; padding: 30px 28px 20px; border: 1px solid var(--hairline); border-radius: 26px; background: var(--surface); box-shadow: var(--float); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .base { stroke: var(--hairline); stroke-width: 1.5; }
.chart .curve { fill: none; stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.chart .forget { stroke: var(--ink-muted); opacity: .55; }
.chart .keep { stroke: var(--success); }
.chart .dot { fill: var(--surface); stroke: var(--success); stroke-width: 3; }
.chart text { font: 15px "Excalifont", var(--sans); fill: var(--ink-soft); }
.chart .lbl-keep { fill: var(--success-ink); }
.chart .day { font: 500 11px var(--mono); fill: var(--ink-muted); }
html.js .chart .curve { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.8s cubic-bezier(.5, 0, .2, 1) .3s; }
html.js .chart .keep { transition-delay: .7s; transition-duration: 2.2s; }
html.js .chart .dot, html.js .chart .lbl { opacity: 0; transition: opacity .4s var(--dd, 1.6s); }
html.js .chart.in .curve { stroke-dashoffset: 0; }
html.js .chart.in .dot, html.js .chart.in .lbl { opacity: 1; }
.caption { margin: 12px 0 0; font-size: 12px; color: var(--ink-muted); }

/* How: the phone holds while the steps pass */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.story-phone { position: sticky; top: calc(50vh - 310px); display: grid; place-items: center; height: 640px; }
/* The incoming screen fades in over the outgoing one, which stays until it is covered. */
.story-phone .screen img { opacity: 0; transition: opacity 0s .35s; }
.story-phone .screen img.on { z-index: 1; opacity: 1; transition: opacity .35s ease; }
html:not(.js) .story-phone .screen img:first-child { opacity: 1; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: flex; flex-direction: column; justify-content: center; min-height: 76vh; max-width: 480px; }
.step.on .n { color: var(--ink-strong); }
.step .n { display: flex; align-items: center; gap: 12px; font: 500 12px var(--mono); letter-spacing: .07em; text-transform: uppercase; color: var(--ink-muted); }
.step .n::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.step h3 { margin: 16px 0 0; font: 500 clamp(30px, 3.3vw, 42px)/1.1 var(--display); letter-spacing: -.015em; color: var(--ink-strong); text-wrap: balance; }
.step p { margin: 16px 0 0; font-size: 18px; line-height: 1.6; color: var(--ink-soft); }
.step .phone { display: none; }

/* Try: a Short, playable */
.try { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 72px; }
.score { display: flex; gap: 6px; max-width: 220px; margin-top: 34px; }
.score span { flex: 1; height: 8px; border-radius: 4px; background: var(--sunken); transition: background .3s, box-shadow .3s; }
.score .named { background: var(--success); }
.score .missed { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink-strong); }
.guess, .listen { justify-self: center; width: 100%; max-width: 480px; display: grid; gap: 16px; padding: 34px 26px 22px; border-radius: 30px; background: var(--tint); }
.flip { perspective: 1600px; }
.flip-inner { display: grid; transform-style: preserve-3d; transition: transform .65s cubic-bezier(.3, .9, .3, 1); }
.flip.over .flip-inner { transform: rotateY(180deg); }
.face { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 11px; min-height: 260px; padding: 22px; border-radius: 22px; background: var(--surface); box-shadow: var(--lift); backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.face.back { transform: rotateY(180deg); }
.g-scene { margin: 0; font: 400 20px/1.5 var(--serif); color: var(--ink); text-wrap: pretty; }
.g-verdict { margin: 0; font: 700 14px var(--sans); color: var(--ink-muted); }
.g-verdict.named { color: var(--success-ink); }
.g-hook, .g-twist { margin: 0; font: 400 17px/1.5 var(--serif); color: var(--ink); }
.options { display: grid; gap: 9px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 9px 14px 9px 9px; border: 1px solid color-mix(in srgb, var(--tone) 28%, transparent); border-radius: 16px; background: var(--surface); font: 500 16px var(--sans); color: var(--ink-strong); text-align: left; cursor: pointer; transition: border-color .2s, opacity .3s, transform .15s; }
.opt:hover:not(:disabled) { border-color: var(--tone); }
.opt:active:not(:disabled) { transform: scale(.98); }
.opt:disabled { cursor: default; }
.opt:disabled:not(.right, .wrong) { opacity: .5; }
.key { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--tint); color: var(--deep); font: 500 13px var(--mono); transition: background .2s, color .2s; }
.opt.right { border-color: var(--success); }
.opt.right .key { background: var(--success); color: #fff; }
.opt.wrong { border-color: var(--wrong); }
.opt.wrong .key { background: var(--wrong); color: #fff; }
.guess-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 54px; }
.linkish { min-height: 44px; padding: 0; border: 0; background: none; font: 500 14px var(--sans); color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.guess-foot .btn { margin-left: auto; }

/* Listen: a card read aloud, its words filling as they are said */
.voiced .def { margin: 0; font: 400 18px/1.5 var(--serif); color: var(--ink); }
.voiced .uses { margin: 0; padding-left: 18px; display: grid; gap: 5px; font: 400 15px/1.5 var(--serif); color: var(--ink); }
.voiced .uses li::marker { color: var(--tone); }
.w { transition: color .18s ease; }
.w.said { color: var(--deep); }
.listen .face { grid-area: auto; min-height: 0; }
.sound-hint { display: flex; align-items: center; gap: 8px; margin: 26px 0 0; font: 500 14px var(--sans); color: var(--ink-muted); }
.dock { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px 10px; border-radius: 22px; background: var(--surface); box-shadow: var(--float); }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.dock-title { display: grid; gap: 2px; min-width: 0; }
.dock-title strong { overflow: hidden; font: 500 17px/1.2 var(--display); color: var(--ink-strong); white-space: nowrap; text-overflow: ellipsis; }
.by { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-muted); }
.by .eq, .g-listen .eq { height: 12px; }
.by .eq span, .g-listen .eq span { background: var(--tone); animation: none; }
/* The bars move only while a voice is actually speaking. */
.playing .by .eq span, .g-listen.speaking .eq span { animation: eq .9s ease-in-out infinite alternate; }
.play-btn { display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: var(--ink-strong); color: var(--canvas); cursor: pointer; transition: transform .15s; }
.play-btn:active { transform: scale(.94); }
.play-btn svg { width: 20px; height: 20px; fill: currentColor; }
.ic-pause, .playing .ic-play { display: none; }
.playing .ic-pause { display: block; }
.scrub { grid-column: 1 / -1; display: grid; grid-template-columns: 3.2em minmax(0, 1fr) 3.6em auto; align-items: center; gap: 10px; font: 500 12px var(--mono); color: var(--ink-muted); }
.scrub time:last-of-type { text-align: right; }
/* .seek, not .bar: the header row is .bar, and a shared name put this track over it. */
.seek { position: relative; height: 24px; cursor: pointer; touch-action: none; }
.seek::before, .seek .fill { content: ""; position: absolute; inset: 10px 0; border-radius: 2px; }
.seek::before { background: var(--sunken); }
.seek .fill { background: var(--tone); transform: scaleX(0); transform-origin: left; }
.rate { min-width: 46px; min-height: 30px; padding: 0 9px; border: 1px solid var(--hairline); border-radius: 999px; background: none; font: 500 12px var(--mono); color: var(--ink-strong); cursor: pointer; }
.face-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.g-listen { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface); font: 500 13px var(--sans); color: var(--ink-strong); cursor: pointer; }
.g-listen .i { width: 16px; height: 16px; }
.g-listen .eq, .g-listen.speaking .i { display: none; }
.g-listen.speaking .eq { display: flex; }
a.float-audio { text-decoration: none; cursor: pointer; }

/* Inside: the screens, and the subjects */
.gallery-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.gallery-head .body-lg { margin-top: 14px; }
.rail-btns { display: flex; gap: 9px; }
.round { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--hairline); border-radius: 50%; background: var(--surface); color: var(--ink-strong); cursor: pointer; transition: border-color .2s; }
.round:hover { border-color: var(--ink-muted); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 256px; gap: 36px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 20px max(24px, calc((100vw - 1112px) / 2)) 44px; scroll-padding-inline: max(24px, calc((100vw - 1112px) / 2)); scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail figure { margin: 0; display: grid; justify-items: center; gap: 22px; scroll-snap-align: start; }
.rail .phone { width: 100%; }
.rail figcaption { text-align: center; }
.rail figcaption strong { display: block; font: 700 16px var(--sans); color: var(--ink-strong); }
.rail figcaption span { font-size: 14px; color: var(--ink-muted); }
.subjects { margin-top: 70px; text-align: center; }
.subjects h3 { margin: 0 0 30px; font: 500 clamp(24px, 2.6vw, 30px)/1.2 var(--display); color: var(--ink-strong); }
.marquee { position: relative; display: grid; gap: 14px; overflow: hidden; padding-block: 4px; }
/* Edge fades painted over the rows, where a mask on a moving layer repaints every frame. */
.marquee::before, .marquee::after { content: ""; position: absolute; inset-block: 0; z-index: 1; width: 8%; pointer-events: none; }
.marquee::before { left: 0; background: linear-gradient(90deg, var(--canvas), transparent); }
.marquee::after { right: 0; background: linear-gradient(-90deg, var(--canvas), transparent); }
/* It runs only while on screen (app.js), and holds under the pointer. */
.track { display: flex; gap: 12px; width: max-content; animation: marquee 90s linear infinite paused; }
.track.rev { animation-direction: reverse; animation-duration: 100s; }
.marquee.playing .track { animation-play-state: running; }
.marquee.playing:hover .track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 6px)); } }
.term-chip { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 16px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--surface); font: 500 17px/1 var(--serif); color: var(--ink-strong); white-space: nowrap; }
.term-chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tone); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 900px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 36px; border: 1px solid var(--hairline); border-radius: 26px; background: var(--surface); }
.plan.plus { border: 2px solid var(--ink-strong); box-shadow: var(--float); }
.badge { position: absolute; top: -13px; left: 34px; padding: 5px 12px; border-radius: 999px; background: var(--success); color: #fff; font: 500 11px var(--mono); letter-spacing: .07em; text-transform: uppercase; }
.plan h3 { margin: 10px 0 0; font: 500 32px/1.15 var(--display); color: var(--ink-strong); }
.plan .sub { margin: 6px 0 0; font-size: 15px; color: var(--ink-muted); }
.plan ul { list-style: none; margin: 28px 0 32px; padding: 0; display: grid; gap: 13px; }
.plan li { display: flex; align-items: flex-start; gap: 11px; font-size: 16px; color: var(--ink); }
.plan li .i { margin-top: 2px; color: var(--ink-muted); }
.plan.plus li .i { color: var(--success); }
.plan .btn { width: 100%; margin-top: auto; }
.fine { max-width: 660px; margin: 26px auto 0; text-align: center; font-size: 13px; line-height: 1.6; color: var(--ink-muted); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; border-top: 1px solid var(--hairline); }
.faq details { border-bottom: 1px solid var(--hairline); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 0; list-style: none; cursor: pointer; font: 500 20px/1.35 var(--display); color: var(--ink-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 14px; height: 14px; background: linear-gradient(currentColor, currentColor) center / 100% 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 100% no-repeat; transition: rotate .25s var(--ease); }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0 0 24px; max-width: 44em; font-size: 16px; line-height: 1.65; color: var(--ink-soft); }
.faq a { color: var(--ink-strong); text-underline-offset: 3px; }

/* Closing: the paywall's night */
.night { position: relative; overflow: hidden; margin-bottom: 100px; padding: 96px 30px; border-radius: 36px; background: radial-gradient(120% 90% at 50% 0%, #1B2E4A, #0A1424 70%); color: #EAF1FF; text-align: center; isolation: isolate; }
.night::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff, transparent), radial-gradient(1px 1px at 28% 68%, #fff, transparent), radial-gradient(1.5px 1.5px at 72% 18%, #fff, transparent), radial-gradient(1px 1px at 88% 58%, #fff, transparent), radial-gradient(1px 1px at 55% 84%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 12%, #fff, transparent); }
.night img { width: 112px; height: auto; }
.night .headline { max-width: 15em; margin: 20px auto 0; color: #EAF1FF; }
.night p { margin: 16px auto 0; max-width: 30em; font-size: 18px; color: #A8BAD6; }
.night .actions { justify-content: center; }
.night .btn-primary { background: #0066FF; color: #fff; }

/* Footer */
.site-foot { border-top: 1px solid var(--hairline); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 30px; padding: 26px 0; font-size: 13px; }
.foot-row p { margin: 0; }
.foot-row nav { display: flex; gap: 20px; font-weight: 500; }
.foot-row nav a { text-decoration: none; color: var(--ink-soft); }
.foot-row nav a:hover { color: var(--ink-strong); }
.ar { font-size: 18px; color: var(--ink-strong); }
.muted { color: var(--ink-muted); }
/* Line height 1 and a top pad keep the letters inside their box, off the links above. */
.giant { margin: 0; padding-block: .08em 20px; font: 700 clamp(110px, 26vw, 340px)/1 "Space Grotesk", var(--sans); letter-spacing: -.06em; color: var(--ink-strong); white-space: nowrap; pointer-events: none; user-select: none; }
.giant img { width: .3em; height: auto; margin-left: .05em; }

/* Legal pages */
.legal { max-width: 680px; margin: 0 auto; padding: 56px 20px 84px; }
.legal h1 { margin: 9px 0 9px; font: 500 clamp(34px, 5vw, 46px)/1.1 var(--display); color: var(--ink-strong); }
.legal .updated { margin: 0 0 30px; font-size: 13px; color: var(--ink-muted); }
.legal section { padding: 20px 0; border-top: 1px solid var(--hairline); }
.legal h2 { margin: 0 0 9px; font: 700 18px/1.3 var(--sans); color: var(--ink-strong); }
.legal p { margin: 0; }
.legal p + p { margin-top: 9px; }
.legal ul { margin: 9px 0; padding-left: 20px; }
.legal li + li { margin-top: 5px; }
.legal a { color: var(--ink-strong); text-underline-offset: 3px; }

@media (max-width: 980px) {
  .nav-links { display: none !important; }
  .hero, .split, .try, .story { grid-template-columns: 1fr; }
  .hero { gap: 24px; padding-block: 36px 70px; }
  .split, .try { gap: 56px; }
  .story-phone { display: none; }
  .step { min-height: 0; max-width: none; padding-block: 30px; opacity: 1; }
  .step .phone { display: block; width: min(270px, 70vw); margin: 30px auto 0; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .bar { gap: 14px; }
  .section { padding-block: 84px; }
  .hero h1 { font-size: clamp(36px, 10.4vw, 48px); }
  .hero-visual { min-height: 560px; }
  .hero .phone { width: 250px; }
  .float-idea { width: 190px; left: 0; padding: 13px 14px; }
  .float-idea .term { font-size: 20px; }
  .float-idea .hook { display: none; }
  .float-audio { display: none; }
  .float-back { right: 0; }
  .rail-btns { display: none; }
  .plan { padding: 28px 24px; }
  .guess { padding: 26px 16px 16px; }
  .night { padding: 72px 22px; border-radius: 28px; }
}
/* Reduce Motion: drop the transform, keep the fade. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; }
  .hero .phone, .float { translate: none; }
  .track { animation: none !important; }
  .marquee { overflow-x: auto; }
  .flip-inner, .flip.over .flip-inner { transition: none; transform: none; }
  .face { transition: opacity .25s; }
  .face.back { transform: none; opacity: 0; }
  .flip.over .face.back { opacity: 1; }
  .flip.over .face.front { opacity: 0; }
}
