/* Ojito landing page. Colours, type and spacing come from design/ojito/ (the two landing boards); the choreography
   (hero eye, pinned story, parallax, word reveal) is new. Sizes are in rem and the root size grows with the viewport,
   so a 2560 or 3440 wide screen shows the same composition larger instead of stretched.

   Motion rules: only transform and opacity move. Scroll-driven animations (animation-timeline) where the browser has
   them, a small script that sets --p (scroll progress) where it does not, and nothing moves at all under
   prefers-reduced-motion or without JavaScript (the base styles are the finished state). */

@font-face {
  /* Newsreader (SIL Open Font License, assets/fonts/OFL.txt), self-hosted: no request to a font service. Latin only: English and Spanish. */
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("assets/fonts/newsreader-latin.woff2") format("woff2");
}

:root {
  color-scheme: light dark;
  --bg: #F8F7FC;
  --ink: #16142A;
  --ink-2: #3A3858;
  --muted: #6A6788;
  --accent: #4338CA;            /* buttons, the eye's pupil */
  --accent-hover: #3A30B5;
  --accent-text: #4338CA;       /* links and marks on the page background */
  --accent-soft: #B0ABFF;
  --tint: #EFEDFB;
  --pill: #E4E1F7;
  --line: #E3E0F2;
  --field: #D5D1EA;
  --night: #17152B;
  --night-card: #221F3F;
  --night-text: #F4F3FF;
  --night-muted: #A8A5CC;
  --night-faint: #8E8BB0;
  --tile: #17152B;
  --paper: #FFFFFF;             /* the reading window in the story and the demo */
  --paper-ink: #1B1A2E;
  --paper-bar: #F1EFF9;
  --eye-ink: #16142A;
  --eye-pupil: #4338CA;
  --glow: rgba(67, 56, 202, 0.16);
  --shadow: 0 1.5rem 4rem -1rem rgba(22, 20, 42, 0.28), 0 0.25rem 1rem rgba(22, 20, 42, 0.08);
  --focus: #4338CA;
  --serif: Newsreader, "Iowan Old Style", "New York", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --max: 75rem;
  --section: clamp(4.5rem, 10vw, 9rem);
  --bar: 4.25rem;               /* the header's bar */
  --strip: 2.25rem;             /* the strip under it, with the Botón de arrepentimiento (OJI-127) */
  --hdr: calc(var(--bar) + var(--strip));
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0F0E1E;
    --ink: #F4F3FF;
    --ink-2: #C7C4E6;
    --muted: #A19EC8;
    --accent-text: #B0ABFF;
    --accent-hover: #5448E0;
    --tint: #171532;
    --pill: #2B2750;
    --line: #2A2748;
    --field: #3C3868;
    --night: #17152B;
    --tile: #1A1834;
    --paper: #1A1830;
    --paper-ink: #ECEBFA;
    --paper-bar: #24213F;
    --eye-ink: #F4F3FF;
    --eye-pupil: #8F86FF;
    --glow: rgba(120, 108, 255, 0.22);
    --shadow: 0 1.5rem 4rem -1rem rgba(0, 0, 0, 0.7), 0 0.25rem 1rem rgba(0, 0, 0, 0.4);
    --focus: #B0ABFF;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-size: clamp(16px, 0.9vw + 3px, 26px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); line-height: 1.55; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); }
p, h1, h2, h3, li, summary, legend, label, dd { overflow-wrap: break-word; }
h1, h2, h3, h4, p, ul, ol, figure, dl, dd { margin: 0; }
p { text-wrap: pretty; }
h1, h2, h3 { text-wrap: balance; }
button { font: inherit; color: inherit; }

/* Which language and which variant show. site.js sets <html lang> and <html data-variant>; the defaults in index.html
   (English, A) are what the page shows without JavaScript. */
html[lang="en"] [data-l="es"],
html[lang="es"] [data-l="en"],
html[data-variant="a"] [data-v="b"],
html[data-variant="b"] [data-v="a"] { display: none !important; }

.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; }
.skip { position: absolute; left: 0.5rem; top: -6rem; z-index: 60; background: var(--accent); color: #fff; padding: 0.75rem 1rem; border-radius: 0.5rem; text-decoration: none; }
.skip:focus { top: 0.5rem; }

/* Anchor links land below the header. (Not scroll-padding on html: scroll timelines read it and would end early.) */
section[id], .join-wrap { scroll-margin-top: calc(var(--hdr) + 1rem); }

/* Keyboard focus: always visible. */
:focus-visible { outline: 0.1875rem solid var(--focus); outline-offset: 0.1875rem; border-radius: 0.25rem; }
.band-night :focus-visible, .site-footer :focus-visible, .join :focus-visible, .story :focus-visible { outline-color: var(--accent-soft); }
.join-card :focus-visible { outline-color: var(--focus); }
.opt:has(:focus-visible) { outline: 0.1875rem solid var(--focus); outline-offset: 0.125rem; }
.opt input:focus-visible { outline: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- type ---------- */
h1, h2, .lead, .thanks-title, .display { font-family: var(--serif); font-weight: 400; }
h1 { font-size: clamp(2.5rem, 1.2rem + 5.2vw, 6.25rem); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 1rem + 3.6vw, 4rem); line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: 1.125rem; line-height: 1.4; font-weight: 600; }
.kbd { font-family: var(--mono); font-size: 0.85em; background: var(--pill); color: var(--ink); border-radius: 0.375rem; padding: 0.125rem 0.5rem; white-space: nowrap; }
.sec-head { display: flex; flex-direction: column; gap: 1rem; max-width: 52rem; }
.sec-lead { font-size: clamp(1.0625rem, 0.9rem + 0.6vw, 1.375rem); line-height: 1.5; color: var(--ink-2); max-width: 42rem; }

/* ---------- wordmark ---------- */
.wordmark { display: inline-flex; align-items: baseline; font-family: var(--serif); font-weight: 500; font-size: clamp(1.875rem, 3vw, 2.125rem); letter-spacing: -0.02em; line-height: 1; color: var(--ink); text-decoration: none; }
.wordmark .jit::before { content: "jit"; }
.wordmark svg:first-child { margin-right: 0.03em; }
.wordmark svg:last-child { margin-left: 0.03em; }
.wordmark .pupil { fill: var(--eye-pupil); }
.site-footer .wordmark { color: var(--night-text); }
.site-footer .wordmark .pupil { fill: var(--accent-soft); }

/* ---------- buttons, pills ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 3.25rem; padding: 0.5rem 1.75rem; border: 0; border-radius: 0.75rem; background: var(--accent); color: #fff; font-size: 1rem; font-weight: 500; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; transition: background-color 0.15s; }
.btn:hover { background: var(--accent-hover); }
.btn-sm { min-height: 2.75rem; padding: 0.5rem 1.25rem; font-size: 0.875rem; border-radius: 0.625rem; }
.btn-lg { min-height: 3.5rem; padding: 0.5rem 2.25rem; font-size: 1.0625rem; border-radius: 999px; }
.btn-block { width: 100%; }
.pill, .tag { display: inline-block; background: var(--pill); color: var(--ink); border-radius: 9999px; font-weight: 500; }
.pill { font-size: 0.8125rem; padding: 0.375rem 0.875rem; }
.tag { align-self: flex-start; font-size: 0.8125rem; padding: 0.25rem 0.75rem; }

/* ---------- header: translucent, over the hero ---------- */
.site-header { --hdr-ink: var(--ink); position: sticky; top: 0; z-index: 50; height: var(--hdr); margin-bottom: calc(var(--hdr) * -1); isolation: isolate; -webkit-backdrop-filter: saturate(180%) blur(1rem); backdrop-filter: saturate(180%) blur(1rem); }
/* two glass layers, one light and one dark; site.js sets html[data-hdr="dark"] while the header is over a dark section, and they swap by opacity */
.site-header::before, .site-header::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transition: opacity 0.25s; }
.site-header::before { background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); }
.site-header::after { background: rgba(23, 21, 43, 0.72); border-bottom: 1px solid rgba(255, 255, 255, 0.08); opacity: 0; }
html[data-hdr="dark"] .site-header { --hdr-ink: #F4F3FF; }
html[data-hdr="dark"] .site-header::after { opacity: 1; }
html[data-hdr="dark"] .site-header::before { opacity: 0; }
html[data-hdr="dark"] .lang { background: transparent; border-color: rgba(255, 255, 255, 0.22); }
.site-header .wordmark, .site-header .nav-link, .site-header .lang-btn { color: var(--hdr-ink); }
.site-header .lang-btn[aria-pressed="true"] { color: #fff; }
.bar { display: flex; align-items: center; gap: 0.75rem 1.75rem; height: var(--bar); }
.nav { display: none; margin-left: auto; gap: 0.75rem 1.75rem; align-items: center; font-size: 0.875rem; font-weight: 500; }
.nav-link { color: var(--ink); text-decoration: none; padding-block: 0.75rem; }
.nav-link:hover { text-decoration: underline; }
.lang { display: inline-flex; margin-left: auto; padding: 0.1875rem; gap: 0.125rem; border: 1px solid var(--field); border-radius: 0.625rem; background: var(--bg); }
.lang-btn { min-width: 2.75rem; height: 2.375rem; border: 0; border-radius: 0.5rem; background: transparent; font-size: 0.875rem; font-weight: 600; cursor: pointer; }
.lang-btn[aria-pressed="true"] { background: var(--accent); color: #fff; }
.nav-cta { display: none; }
/* The strip under the bar (OJI-127): the "Botón de arrepentimiento", at the right, under EN/ES. Normal ink, underlined, like
   the nav links, not the footer's small print (Growth's L1). Part of the sticky header, so it is always in view. */
.strip { display: flex; align-items: center; justify-content: flex-end; height: var(--strip); font-size: 0.875rem; font-weight: 500; }
.withdraw-link { padding-block: 0.375rem; text-decoration: underline; text-underline-offset: 0.2em; white-space: nowrap; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }
@media (min-width: 1040px) { .nav { display: flex; } .lang { margin-left: 0; } }

/* ============================================================
   Scroll choreography: the engine
   html[data-anim] is set by site.js unless the reader asked for reduced motion. Elements with .sc play a keyframe
   animation named in --a, stretched over a scroll range:
     - browsers with scroll-driven animations: animation-timeline (the @supports block), on the compositor;
     - others: site.js writes --p (0 to 1) on the pin or on the element, and the same keyframes are paused and
       shifted by animation-delay, so both paths show exactly the same frames.
   ============================================================ */
html[data-anim] .sc {
  animation-name: var(--a);
  animation-duration: 1s;
  animation-timing-function: linear;
  animation-fill-mode: both;
  animation-play-state: paused;
  animation-delay: calc(var(--p, 0) * -1s);
}
@supports (animation-timeline: view()) {
  html[data-anim] .sc {
    animation-play-state: running;
    animation-delay: 0s;
    animation-duration: auto;
    animation-timeline: var(--tl);
    animation-range: var(--r0) var(--r1);
  }
}
/* A pin is a tall box with a sticky stage inside. --x is how many screen heights the stage stays pinned; the range
   below maps the keyframes (0 to 100%) onto exactly that stretch of scrolling. */
.pin { --r0: calc(100% / (2 + var(--x))); --r1: calc(100% * (1 + var(--x)) / (2 + var(--x))); }
html[data-anim] .pin { height: calc((1 + var(--x)) * 100svh); }
html[data-anim] .pin > .stage { position: sticky; top: 0; height: 100svh; }
#hero-pin { --x: 0.7; view-timeline: --hero block; }
#story-pin { --x: 2.8; view-timeline: --story block; }
#hero-pin .sc { --tl: --hero; }
#story-pin .sc { --tl: --story; }
/* Things that scrub on their own position (parallax, the word reveal). */
.sc-self { --tl: view(); --r0: cover 0%; --r1: cover 100%; }

/* ---------- hero ---------- */
.hero { position: relative; }
.hero .stage { display: grid; place-items: center; min-height: 100svh; padding: calc(var(--hdr) + 1rem) var(--gutter) 2.5rem; position: relative; overflow: clip; }
.hero .stage::before { content: ""; position: absolute; inset: 0; background: radial-gradient(48rem 34rem at 50% 34%, var(--glow), transparent 70%); pointer-events: none; }
.hero-in { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 62rem; }
.hero-eye { --eye-w: min(80vw, 26rem, 36svh); width: var(--eye-w); height: calc(var(--eye-w) * 0.752); position: relative; margin-bottom: clamp(0.75rem, 2.4svh, 1.75rem); --a: hero-eye; }
.hero-eye svg { position: absolute; left: 50%; top: 50%; width: calc(var(--eye-w) * 1.77); height: calc(var(--eye-w) * 1.77); margin: calc(var(--eye-w) * -0.885) 0 0 calc(var(--eye-w) * -0.885); overflow: visible; }
.hero-copy { --eye-w: min(80vw, 26rem, 36svh); display: flex; flex-direction: column; align-items: center; gap: clamp(0.75rem, 2.4svh, 1.5rem); --a: hero-copy; }
.hero h1 { max-width: 12.5em; font-size: clamp(2.25rem, min(1.2rem + 5.2vw, 8.6svh), 6.25rem); }
.hero .sub { max-width: 34rem; font-size: clamp(1rem, min(1rem + 0.5vw, 2.7svh), 1.4375rem); line-height: 1.45; color: var(--ink-2); }
.capture { display: flex; flex-direction: column; align-items: center; gap: clamp(0.5rem, 1.6svh, 0.875rem); }
.hint { font-size: 0.875rem; line-height: 1.5; color: var(--muted); max-width: 32rem; }
.hero .pill { margin-bottom: 0.25rem; }
@media (max-height: 780px), (max-width: 520px) { .hero .pill { display: none; } }
.eye-ink { fill: none; stroke: var(--eye-ink); stroke-width: 4.5; stroke-linejoin: round; }
.eye-pupil { fill: var(--eye-pupil); fill-rule: evenodd; }
.eye-white-line { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linejoin: round; }
.eye-white-pupil { fill: #fff; fill-rule: evenodd; }
.eye-disc { fill: var(--accent); }
.eye-ring { fill: none; stroke: var(--accent); stroke-width: 2.2; transform-box: fill-box; transform-origin: center; }
.eye-lid { transform-origin: 32px 32px; }
.eye-look { transform: translate(calc(var(--lx, 0) * 1px), calc(var(--ly, 0) * 1px)); transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1); }
html[data-anim] .eye-lid { animation: eye-open 0.95s cubic-bezier(0.2, 0.9, 0.25, 1.15) 0.15s both, eye-blink 0.36s ease-in-out 2.1s both; }
.eye-disc, .eye-ring { opacity: 0; }
.eye-disc.sc { --a: eye-disc; }
.eye-ink-g.sc { --a: eye-ink-out; }
.eye-white.sc { --a: eye-white-in; }
.eye-ring.sc { --a: eye-ring; }
html:not([data-anim]) .eye-white { display: none; }

@keyframes eye-open { from { transform: scaleY(0.06); opacity: 0; } 30% { opacity: 1; } to { transform: scaleY(1); opacity: 1; } }
@keyframes eye-blink { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.08); } }
@keyframes hero-eye { from { transform: scale(1); } to { transform: scale(0.088); } }
@keyframes hero-copy { from { transform: translateY(0); } to { transform: translateY(calc(var(--eye-w, 26rem) * -0.3 + 0.5rem)); } }
@keyframes eye-disc { 0%, 55% { opacity: 0; } 85%, 100% { opacity: 1; } }
@keyframes eye-ink-out { 0%, 55% { opacity: 1; } 80%, 100% { opacity: 0; } }
@keyframes eye-white-in { 0%, 55% { opacity: 0; } 85%, 100% { opacity: 1; } }
@keyframes eye-ring { 0%, 84% { opacity: 0; transform: scale(1); } 88% { opacity: 0.9; } 100% { opacity: 0; transform: scale(1.7); } }

/* ---------- the window and the card (the app's look, built in HTML so it stays sharp) ---------- */
.win { background: var(--paper); color: var(--paper-ink); border-radius: 1rem; box-shadow: var(--shadow); border: 1px solid color-mix(in srgb, var(--line) 80%, transparent); position: relative; }
.win-bar { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; background: var(--paper-bar); border-radius: 1rem 1rem 0 0; font-size: 0.8125rem; font-weight: 600; color: var(--muted); }
.dots { display: inline-flex; gap: 0.4375rem; }
.dots i { width: 0.6875rem; height: 0.6875rem; border-radius: 50%; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.win-body { padding: clamp(1.25rem, 3vw, 2.25rem); position: relative; }
.read { font-family: var(--serif); font-size: clamp(1.1875rem, 1rem + 1vw, 1.75rem); line-height: 1.55; letter-spacing: -0.005em; }
.read .w { color: inherit; }

.ocard { width: 100%; max-width: 26.25rem; background: #202020; color: #fff; border-radius: 0.875rem; border: 1px solid rgba(255, 255, 255, 0.09); box-shadow: 0 1.25rem 3rem -0.5rem rgba(0, 0, 0, 0.55); font-family: var(--sans); text-align: left; overflow: hidden; }
.ocard-head { display: flex; align-items: center; gap: 0.625rem; padding: 0.75rem 0.875rem 0.5rem; }
.ocard-modes { display: inline-flex; background: rgba(255, 255, 255, 0.07); border-radius: 0.5625rem; padding: 0.125rem; }
.ocard-modes span { display: grid; place-items: center; width: 1.625rem; height: 1.5rem; border-radius: 0.4375rem; color: #9b9b9b; }
.ocard-modes .on { background: #4338CA; color: #fff; }
.ocard-title { flex: 1; font-size: 0.8125rem; font-weight: 600; color: #a6a6a6; }
.ocard-x { display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border: 0; border-radius: 0.5rem; background: transparent; color: #a6a6a6; cursor: pointer; }
.ocard-x:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.ocard-body { padding: 0.25rem 1.125rem 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.ocard-term { font-size: 0.9375rem; font-weight: 500; color: #B0ABFF; }
.ocard-here { font-size: 1.4375rem; line-height: 1.2; font-weight: 600; letter-spacing: -0.012em; color: #fff; }
.ocard-label { margin-top: 0.375rem; font-size: 0.75rem; font-weight: 600; color: #8e8e8e; }
.ocard-sentence { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.45; color: #ececec; }
.ocard-sentence mark { background: rgba(176, 171, 255, 0.28); color: #fff; font-weight: 600; border-radius: 0.1875rem; padding: 0 0.125rem; }
.ocard-more { align-self: flex-start; margin-top: 0.25rem; font-size: 0.8125rem; font-weight: 600; color: #B0ABFF; }
.ocard-foot { display: flex; align-items: center; gap: 0.5rem; padding: 0.625rem 1.125rem; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.8125rem; color: #a6a6a6; }

/* the chip: the round button that appears under a selection */
.chip { display: grid; place-items: center; width: 2.375rem; height: 2.375rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 0.375rem 1.125rem rgba(67, 56, 202, 0.45); color: #fff; position: relative; }
.chip svg { display: block; }
.chip-eye { transform-origin: 50% 50%; }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent-soft); opacity: 0; pointer-events: none; }

/* ---------- story: the pinned sequence ---------- */
.story { background: var(--night); color: var(--night-text); position: relative; }
.story .stage { display: grid; align-items: center; padding: calc(var(--hdr) + 0.5rem) 0 1.5rem; overflow: clip; }
.story-grid { display: grid; gap: 1.5rem 4rem; align-items: center; }
.story-copy { min-width: 0; }
.beats { list-style: none; margin: 0; padding: 0; display: grid; }
.beat { grid-area: 1 / 1; font-family: var(--serif); font-size: clamp(1.75rem, 0.8rem + 2.7vw, 3.5rem); line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; align-self: center; }
.beat small { display: block; margin-bottom: 0.875rem; font-family: var(--sans); font-size: 0.8125rem; letter-spacing: 0.02em; font-weight: 600; color: var(--night-muted); }
.beat .k { font-variant-numeric: tabular-nums; }
/* without motion every beat is simply listed, and the picture shows the finished state */
html:not([data-anim]) .beats { gap: 1.5rem; }
html:not([data-anim]) .beat { grid-area: auto; font-size: clamp(1.375rem, 1rem + 1.4vw, 2rem); }
html:not([data-anim]) .story .stage { padding-block: var(--section); }
.story-visual { min-width: 0; display: flex; justify-content: center; }
.story .win { width: 100%; max-width: 38rem; }
.story .win-body { padding-bottom: clamp(1.25rem, 3vw, 2.25rem); }
.story-visual { padding-bottom: 12rem; }
.story-read { position: relative; }
.sel { position: relative; display: inline; border-radius: 0.25rem; }
.sel::before { content: ""; position: absolute; left: -0.125rem; right: -0.125rem; top: 0.05em; bottom: 0.05em; border-radius: 0.25rem; background: rgba(120, 108, 255, 0.3); transform-origin: left center; }
.sel-text { position: relative; }
.story .chip-pos { position: absolute; left: 50%; top: 100%; margin: 0.375rem 0 0 -1.1875rem; z-index: 3; }
.story-read-wrap { position: relative; }
.story-card-wrap { position: absolute; left: 0; right: 0; top: var(--card-y, calc(100% + 3rem)); display: flex; justify-content: center; z-index: 2; }
.story-card { transform-origin: var(--ox, 50%) var(--oy, -2.5rem); }
.story .chip { transform-origin: 50% 0; }

@keyframes st-beat-1 { 0%, 20% { opacity: 1; transform: none; } 25%, 100% { opacity: 0; transform: translateY(-1.25rem); } }
@keyframes st-beat-2 { 0%, 27% { opacity: 0; transform: translateY(1.25rem); } 32%, 40% { opacity: 1; transform: none; } 45%, 100% { opacity: 0; transform: translateY(-1.25rem); } }
@keyframes st-beat-3 { 0%, 47% { opacity: 0; transform: translateY(1.25rem); } 52%, 58% { opacity: 1; transform: none; } 63%, 100% { opacity: 0; transform: translateY(-1.25rem); } }
@keyframes st-beat-4 { 0%, 65% { opacity: 0; transform: translateY(1.25rem); } 70%, 100% { opacity: 1; transform: none; } }
@keyframes st-sel { 0%, 26% { transform: scaleX(0); } 40%, 100% { transform: scaleX(1); } }
@keyframes st-chip { 0%, 47% { opacity: 0; transform: translateY(-0.75rem) scale(0.4); } 49% { opacity: 1; } 56%, 100% { opacity: 1; transform: none; } }
@keyframes st-chip-eye { 0%, 50% { transform: scaleY(0.1); } 57%, 100% { transform: scaleY(1); } }
@keyframes st-ring { 0%, 49% { opacity: 0; transform: scale(1); } 52% { opacity: 0.9; } 62%, 100% { opacity: 0; transform: scale(1.7); } }
@keyframes st-card { 0%, 65% { opacity: 0; transform: translateY(-0.5rem) scale(0.5); } 70% { opacity: 1; } 79%, 100% { opacity: 1; transform: none; } }
@keyframes st-card-in { 0%, 74% { opacity: 0; transform: translateY(0.375rem); } 86%, 100% { opacity: 1; transform: none; } }
.beat:nth-child(1) { --a: st-beat-1; }
.beat:nth-child(2) { --a: st-beat-2; }
.beat:nth-child(3) { --a: st-beat-3; }
.beat:nth-child(4) { --a: st-beat-4; }
.sel::before { --a: st-sel; }
.story .chip { --a: st-chip; }
.story .chip-eye { --a: st-chip-eye; }
.story .ring { --a: st-ring; }
.story-card { --a: st-card; }
.story-card .reveal-in { --a: st-card-in; }
/* an element that is both .sc and pseudo: the pseudo-element needs the class on the host, so the host carries .sc-pseudo */
html[data-anim] .sel::before { animation-name: st-sel; animation-duration: 1s; animation-timing-function: linear; animation-fill-mode: both; animation-play-state: paused; animation-delay: calc(var(--p, 0) * -1s); }
@supports (animation-timeline: view()) {
  html[data-anim] .sel::before { animation-play-state: running; animation-delay: 0s; animation-duration: auto; animation-timeline: --story; animation-range: var(--r0) var(--r1); }
}
html[data-anim] .story .ring { opacity: 0; }

@media (min-width: 900px) {
  .story-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}
@media (max-width: 899px) {
  .story .stage { align-items: start; padding-top: calc(var(--hdr) + 1rem); }
  .beats { min-height: 7.5rem; }
  .story .win-body { padding: 1rem 1.125rem 0.25rem; }
  .story-visual { padding-bottom: 11rem; }
}

/* ---------- demo ---------- */
.demo { padding-block: var(--section); position: relative; }
.demo-grid { display: grid; gap: 2.5rem; margin-top: clamp(2rem, 4vw, 3.5rem); }
.demo-words { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.demo-words .wbtn { min-height: 2.75rem; padding: 0.375rem 1rem; border: 1px solid var(--field); border-radius: 999px; background: transparent; font-size: 0.9375rem; font-weight: 500; cursor: pointer; transition: background-color 0.15s, border-color 0.15s; }
.demo-words .wbtn:hover { border-color: var(--accent-text); }
.demo-words .wbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.demo-stage { position: relative; }
.demo-win .win-bar { justify-content: space-between; }
.demo-title { flex: 1; text-align: center; }
.demo-text { font-size: clamp(1.3125rem, 1rem + 1.3vw, 2rem); position: relative; text-wrap: pretty; }
.demo-hint { margin-top: 1.25rem; font-size: 0.875rem; color: var(--muted); display: flex; align-items: center; gap: 0.5rem; }
.demo-hint::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--accent); }
.tapword { position: relative; display: inline; padding: 0 0.125rem; margin: 0 -0.125rem; border: 0; border-radius: 0.25rem; background: transparent; font: inherit; letter-spacing: inherit; color: inherit; cursor: pointer; text-decoration: underline dotted var(--accent-text); text-decoration-thickness: 0.125rem; text-underline-offset: 0.25em; }
.tapword:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tapword[aria-expanded="true"] { background: color-mix(in srgb, var(--accent-soft) 34%, transparent); text-decoration-color: transparent; }
.demo-toggle { display: flex; justify-content: center; margin-top: 1.5rem; }
.swap { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 3rem; padding: 0.5rem 1.375rem 0.5rem 1.125rem; border: 1px solid var(--field); border-radius: 999px; background: var(--bg); font-size: 1rem; font-weight: 600; cursor: pointer; transition: border-color 0.15s; }
.swap:hover { border-color: var(--accent-text); }
.swap svg { color: var(--accent-text); }
.demo-pop { position: absolute; left: 0; top: 0; width: 100%; height: 0; z-index: 5; pointer-events: none; }
.demo-pop .chip { position: absolute; pointer-events: auto; transform-origin: 50% 0; }
.demo-pop .ocard { position: absolute; pointer-events: auto; transform-origin: var(--ox, 50%) var(--oy, -1.5rem); }
.demo-pop[hidden] { display: none; }
/* the chip hands over to the card and goes, as in the app, so it never hides the text under the word */
.pop-in .chip { animation: chip-pop 0.4s cubic-bezier(0.2, 0.9, 0.3, 1.25) both, chip-out 0.24s ease-in 0.62s both; }
.pop-in .chip .chip-eye { animation: chip-eye 0.34s cubic-bezier(0.2, 0.9, 0.3, 1.2) 0.08s both; }
.pop-in .ring { animation: chip-ring 0.7s ease-out 0.08s both; }
.pop-in .ocard { animation: card-grow 0.46s cubic-bezier(0.2, 0.9, 0.3, 1) 0.24s both; }
@keyframes chip-pop { from { opacity: 0; transform: translateY(-0.625rem) scale(0.4); } to { opacity: 1; transform: none; } }
@keyframes chip-eye { from { transform: scaleY(0.1); } to { transform: none; } }
@keyframes chip-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(1.35); } }
@keyframes chip-ring { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.7); } }
@keyframes card-grow { from { opacity: 0; transform: translateY(-0.5rem) scale(0.55); } to { opacity: 1; transform: none; } }
.demo-note { max-width: 38rem; font-size: 0.9375rem; line-height: 1.55; color: var(--muted); }
.demo-es { font-size: 0.9375rem; color: var(--ink-2); font-weight: 500; }
.demo-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 0.5rem; }
.demo-static { display: grid; gap: 1.5rem; }
.demo-static .win-body { display: flex; flex-direction: column; gap: 1rem; }
.demo-static .ocard { max-width: 100%; }
html.demo-on .demo-static { display: none; }
.demo-app { display: none; }
html.demo-on .demo-app { display: block; }
@media (min-width: 900px) {
  .demo-grid { grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
  .demo-picker { position: sticky; top: calc(var(--hdr) + 2rem); }
  .demo-words { flex-direction: column; align-items: flex-start; }
}
/* phone: the card is a sheet at the bottom of the screen */
@media (max-width: 640px) {
  .demo-pop.sheet .ocard { position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom)); width: auto; max-width: none; top: auto; transform-origin: 50% 100%; z-index: 45; }
  .pop-in.sheet .ocard { animation: sheet-up 0.4s cubic-bezier(0.2, 0.9, 0.3, 1) 0.12s both; }
  .demo-pop.sheet { z-index: 45; }
}
@keyframes sheet-up { from { opacity: 0; transform: translateY(2.5rem); } to { opacity: 1; transform: none; } }

/* ---------- statement (the contrast line) and the word-by-word reveal ---------- */
.statement { padding-block: var(--section) 0; }
.lead { font-size: clamp(1.875rem, 0.9rem + 3.4vw, 4rem); line-height: 1.12; letter-spacing: -0.03em; max-width: 56rem; text-wrap: balance; }
/* Each word rises into place from behind its own line. The text never fades, so it is always at full contrast. */
.wd { display: inline-block; overflow: clip; vertical-align: top; padding: 0.14em 0 0.26em; margin: -0.14em 0 -0.26em; }
.wd-in { display: inline-block; }
html[data-anim] .wd-in { --s0: 0.12; --step: 0.012; --len: 0.14; --a: word-in; }
@keyframes word-in { from { transform: translateY(108%); } to { transform: none; } }
/* each word starts a little after the one before; the same numbers drive the script path */
html[data-anim] .wd-in.sc { animation-delay: calc((var(--i) * var(--step) + var(--s0) - var(--p, 0)) / var(--len) * 1s); animation-timing-function: cubic-bezier(0.2, 0.7, 0.2, 1); }
[data-words] { view-timeline: --lead block; }
@supports (animation-timeline: view()) {
  html[data-anim] .wd-in.sc {
    animation-delay: 0s;
    animation-timeline: --lead;
    animation-range: cover calc((var(--s0) + var(--i) * var(--step)) * 100%) cover calc((var(--s0) + var(--i) * var(--step) + var(--len)) * 100%);
  }
}

/* ---------- features: chapters ---------- */
.band { padding-block: var(--section); }
.band-night { background: var(--night); color: var(--night-text); }
.chapters { padding-block: var(--section); display: flex; flex-direction: column; gap: clamp(4.5rem, 9vw, 9rem); }
.chapter { display: grid; gap: 2rem; align-items: center; }
.chapter-text { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.chapter h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.75rem, 1rem + 2.2vw, 3rem); line-height: 1.08; letter-spacing: -0.028em; }
.chapter p { font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem); line-height: 1.6; color: var(--ink-2); max-width: 34rem; }
.frame { background: var(--tile); border-radius: 1.5rem; padding: clamp(1.25rem, 3vw, 2.5rem); display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 1rem; border: 1px solid rgba(255, 255, 255, 0.06); box-shadow: var(--shadow); }
.frame img { width: 100%; max-width: 26.25rem; }
.frame .shot { border-radius: 0.875rem; }
.chapter-wide .frame img { max-width: 28.75rem; }
.px { --a: px-up; will-change: transform; }
.px.slow { --a: px-down; }
@keyframes px-up { from { transform: translateY(2.25rem); } to { transform: translateY(-2.25rem); } }
@keyframes px-down { from { transform: translateY(-1.5rem); } to { transform: translateY(1.5rem); } }
@media (min-width: 900px) {
  .chapter { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 8rem); }
  .chapter.flip .chapter-visual { order: -1; }
}
.chapter-visual { min-width: 0; }
.cards-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.5rem; }
.card { min-width: 0; background: var(--tint); border-radius: 1.5rem; padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; }
.card h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 1rem + 1.2vw, 2rem); line-height: 1.12; letter-spacing: -0.025em; }
.card p { font-size: 1rem; line-height: 1.6; color: var(--ink-2); }
.aside { max-width: 42rem; padding-left: 1rem; border-left: 0.1875rem solid var(--accent-text); font-size: 1.0625rem; line-height: 1.55; color: var(--ink-2); }
.stack-lg { display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 3rem); }

/* modes: Explain and Write */
.modes { padding-bottom: var(--section); display: flex; flex-direction: column; gap: clamp(4rem, 8vw, 7rem); }
.mode-head { display: flex; align-items: center; gap: 0.75rem; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.mode-ico { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 0.625rem; background: var(--accent); color: #fff; }
.tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tabs span { padding: 0.3125rem 0.875rem; border-radius: 999px; background: var(--pill); font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.pair { display: grid; gap: 1.5rem; }
.pair .frame { padding: clamp(1rem, 2.5vw, 2rem); }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; align-items: start; } .pair .px.slow { margin-top: 3rem; } }

/* ---------- planned / needs ---------- */
.planned, .needs { display: flex; flex-wrap: wrap; gap: 2rem 3rem; padding-block: var(--section); }
.planned-head { flex: 1 1 22rem; min-width: 0; }
.planned-head h2 { font-size: clamp(1.75rem, 1rem + 2.2vw, 2.75rem); max-width: 32rem; }
.planned-list { flex: 1 1 26rem; min-width: 0; margin: 0; padding: 0; list-style: none; }
.planned-list li { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: baseline; justify-content: space-between; padding: 1.25rem 0; border-top: 1px solid var(--line); }
.planned-list li:last-child { border-bottom: 1px solid var(--line); }
.planned-list p { flex: 1 1 16rem; min-width: 0; font-size: 1.125rem; line-height: 1.5; font-weight: 600; }
.planned-list p.long { font-size: 1.0625rem; font-weight: 400; color: var(--ink-2); }
.planned-list .tag { order: 2; flex: none; }
.needs-body { flex: 1 1 26rem; min-width: 0; font-size: 1.125rem; line-height: 1.6; color: var(--ink-2); max-width: 40rem; }

/* two ways to answer */
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 21rem), 1fr)); gap: 1.5rem; align-items: start; }
.way { min-width: 0; background: var(--night-card); border-radius: 1.25rem; padding: clamp(1.5rem, 3vw, 2rem); display: flex; flex-direction: column; gap: 1rem; }
.way h3 { display: flex; align-items: center; gap: 0.75rem; font-size: 1.25rem; }
.way p, .sends { font-size: 1rem; line-height: 1.55; color: var(--night-text); }
.sends { margin: 0; padding-left: 1.25em; display: flex; flex-direction: column; gap: 0.5rem; }
.ways-one { max-width: 47.5rem; }
.hero-needs strong { font-weight: 600; color: var(--ink-2); }
.ways-foot { max-width: 47.5rem; display: flex; flex-direction: column; gap: 1rem; font-size: 1rem; line-height: 1.55; }
.ways-foot p { color: var(--night-text); }
.ways-foot .exception { padding: 1rem 1.25rem; border: 1px solid rgba(176, 171, 255, 0.4); border-radius: 0.75rem; color: var(--night-muted); }

/* FAQ */
.faq { max-width: calc(55rem + 2 * var(--gutter)); padding-block: 0 var(--section); }
.faq h2 { margin-bottom: 1.75rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; display: block; min-height: 2.75rem; padding: 1.25rem 2.75rem 1.25rem 0; font-size: 1.125rem; line-height: 1.4; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 0.5rem; top: 50%; width: 0.875rem; height: 2px; margin-top: -1px; background: var(--accent-text); }
.faq summary::after { transform: rotate(90deg); transition: transform 0.15s; }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { max-width: 70ch; padding-bottom: 1.25rem; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }

/* the form */
.join-wrap { padding-bottom: var(--section); }
.join { display: flex; flex-wrap: wrap; gap: 2rem 3rem; align-items: flex-start; background: var(--accent); color: #fff; border-radius: 1.5rem; padding: clamp(1.5rem, 5vw, 4rem); }
.join-copy { flex: 1 1 18.75rem; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.join-copy h2 { font-size: clamp(2.125rem, 1rem + 3.6vw, 4rem); line-height: 1.04; }
.join-copy p { font-size: 1.125rem; line-height: 1.55; }
@media (min-width: 1000px) { .join-copy { position: sticky; top: calc(var(--hdr) + 1.5rem); } }
.join-card { flex: 1 1 25rem; min-width: 0; background: var(--bg); color: var(--ink); border-radius: 1rem; padding: clamp(1.25rem, 3vw, 2rem); }
.wl-form { display: flex; flex-direction: column; gap: 1.25rem; }
.label { display: block; margin-bottom: 0.5rem; font-size: 0.875rem; font-weight: 600; }
.input { display: block; width: 100%; height: 2.75rem; padding: 0 0.875rem; border: 1px solid var(--field); border-radius: 0.5rem; background: var(--paper); color: var(--ink); font: inherit; font-size: 1rem; }
.input::placeholder { color: var(--muted); opacity: 1; }
.questions { display: flex; flex-direction: column; gap: 1.375rem; }
.q { min-width: 0; margin: 0; padding: 0; border: 0; }
.q legend { padding: 0; margin-bottom: 0.5rem; font-size: 0.875rem; line-height: 1.4; font-weight: 600; }
.help { margin: -0.125rem 0 0.5rem; font-size: 0.8125rem; line-height: 1.5; color: var(--muted); }
.optional { display: inline-block; margin-left: 0.375rem; font-weight: 400; color: var(--muted); }
.options { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.options.stack { flex-direction: column; }
.opt { display: inline-flex; align-items: center; gap: 0.625rem; min-height: 2.75rem; padding: 0.5rem 0.875rem; border: 1px solid var(--field); border-radius: 0.5rem; background: var(--paper); font-size: 0.9375rem; line-height: 1.35; cursor: pointer; }
.stack .opt { display: flex; }
.opt input { flex: none; width: 1.125rem; height: 1.125rem; margin: 0; accent-color: var(--accent); }
.opt:has(input:checked) { border-color: var(--accent-text); background: var(--tint); }
.input-other { margin-top: 0.5rem; }
.input-other:disabled { display: none; }
.fine { font-size: 0.8125rem; line-height: 1.5; color: var(--muted); display: flex; flex-direction: column; gap: 0.5rem; }
.form-error { padding: 0.75rem 1rem; border: 1px solid #E7B4BC; border-radius: 0.5rem; background: #FFF1F3; color: #7A1020; font-size: 0.9375rem; font-weight: 500; }
.form-error[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .form-error { background: #3A1520; border-color: #7A2A3C; color: #FFC2CD; } }

/* the thank-you: shown after ?thanks=1 instead of the form (and instead of the hero button) */
.thanks { display: none; }
.thanks p + p { margin-top: 0.5rem; }
.thanks-title { font-size: clamp(1.625rem, 3vw, 2rem); line-height: 1.2; }
.thanks p:not(.thanks-title) { font-size: 1.0625rem; line-height: 1.55; color: var(--ink-2); }
html[data-state="thanks"] .thanks { display: block; }
html[data-state="thanks"] .wl-form,
html[data-state="thanks"] .hero-cta,
html[data-state="thanks"] .hero-hint, html[data-state="thanks"] .hero-needs { display: none; }
.hero .thanks { text-align: center; }

/* ---------- footer ---------- */
.site-footer { background: var(--night); color: var(--night-muted); padding-block: clamp(3rem, 6vw, 4rem) 2.5rem; }
.foot { display: flex; flex-wrap: wrap; gap: 2.5rem 4rem; justify-content: space-between; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 1.5rem 4rem; font-size: 0.875rem; line-height: 1.4; }
.foot-col { display: flex; flex-direction: column; gap: 0.25rem; }
.foot-h { margin-bottom: 0.5rem; color: var(--night-text); font-weight: 600; }
.foot-col a { display: inline-flex; align-items: center; min-height: 2.25rem; color: var(--night-muted); text-decoration: none; }
.foot-col a:hover { text-decoration: underline; }
/* The footer's Botón de arrepentimiento (OJI-127): the footer's own ink, underlined, not its small print (Growth's L1). */
.foot-col .foot-withdraw { color: var(--night-text); text-decoration: underline; text-underline-offset: 0.2em; }
.foot-legal { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 2.5rem; font-size: 0.8125rem; line-height: 1.5; color: var(--night-faint); }

/* ---------- reveal on enter ---------- */
.rv { --a: rv-in; --tl: view(); --r0: entry 4%; --r1: entry 62%; }
@keyframes rv-in { from { opacity: 0; transform: translateY(2.25rem); } to { opacity: 1; transform: none; } }
/* script path: a timed fade when the element scrolls into view (site.js adds .is-in) */
html[data-anim="js"] .rv { opacity: 0; transform: translateY(2.25rem); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); animation: none; }
html[data-anim="js"] .rv.is-in { opacity: 1; transform: none; }
@supports (animation-timeline: view()) {
  html[data-anim] .rv { animation-name: rv-in; animation-duration: auto; animation-timing-function: ease-out; animation-fill-mode: both; animation-play-state: running; animation-delay: 0s; animation-timeline: view(); animation-range: entry 4% entry 62%; opacity: 1; transform: none; transition: none; }
}

/* ---------- reduced motion and big screens ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media (min-width: 1900px) {
  .hero-in { max-width: 70rem; }
}

/* ---------- small additions ---------- */
.dots-ghost { visibility: hidden; }
.static-term { background: color-mix(in srgb, var(--accent-soft) 34%, transparent); border-radius: 0.1875rem; padding: 0 0.125rem; font-weight: 500; }
.demo-static-set { display: grid; gap: 1.5rem; }
.demo-static .read { font-size: clamp(1.1875rem, 1rem + 0.8vw, 1.5rem); }
.statement-wrap { position: relative; }
@media (min-width: 1000px) { .demo-title { text-align: center; } }

select.input { appearance: auto; padding-right: 0.5rem; cursor: pointer; }
.q-label { font-size: 0.875rem; line-height: 1.4; margin-bottom: 0.5rem; }

@media (min-width: 900px) {
  .chapter.chapter-stack { grid-template-columns: 1fr; gap: 2.5rem; }
  .chapter-stack .chapter-text { max-width: 44rem; }
  .chapter-stack .pair { gap: clamp(1.5rem, 4vw, 3rem); }
}

.win-body.has-card .demo-hint { visibility: hidden; }
.demo-stage { display: flex; flex-direction: column; }
@media (max-width: 640px) { .demo-toggle { order: -1; margin: 0 0 1.25rem; } }

.frame .cap { font-size: 0.8125rem; line-height: 1.4; color: var(--night-muted); }

/* ---------- the withdrawal page (arrepentimiento/, OJI-127): one heading, one line, one button ---------- */
/* A page with no nav and no strip (it is the page the strip opens): the language switch goes to the right edge as on the
   home page, and the footer to the bottom. */
.page-sub { --hdr: var(--bar); display: flex; flex-direction: column; min-height: 100svh; }
.page-sub .lang { margin-left: auto; }
.withdraw { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; padding-block: calc(var(--hdr) + clamp(3rem, 9vw, 7rem)) var(--section); }
.withdraw > * { max-width: 48rem; }
.withdraw h1 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); line-height: 1.06; letter-spacing: -0.03em; }
.withdraw-send { margin-top: 0.5rem; }

/* ---------- the privacy policy and the terms (privacy/, terms/, OJI-114): long text to read ---------- */
/* Both are .page-sub pages (no nav, no strip). Each holds the text twice, one <article> per language (data-l). The text
   column is the withdrawal page's width; a wide table scrolls inside its own box (focusable, so a keyboard can scroll it). */
.legal { flex: 1; padding-block: calc(var(--hdr) + clamp(2.5rem, 7vw, 5.5rem)) var(--section); }
.legal-doc { max-width: 48rem; font-size: 1rem; line-height: 1.65; color: var(--ink-2); }
.legal-doc > * + * { margin-top: 1rem; }
.legal-doc h1 { font-size: clamp(2.25rem, 1.2rem + 3.6vw, 4rem); line-height: 1.06; letter-spacing: -0.03em; color: var(--ink); }
.legal-doc > .updated { margin-top: 1rem; font-size: 0.875rem; color: var(--muted); }
.legal-doc > h2 { margin-top: 3rem; font-family: var(--serif); font-size: clamp(1.5rem, 1.15rem + 1vw, 2rem); line-height: 1.2; letter-spacing: -0.015em; color: var(--ink); }
.legal-doc > h3 { margin-top: 1.75rem; font-size: 1.0625rem; color: var(--ink); }
.legal-doc h2, .legal-doc h3 { scroll-margin-top: calc(var(--hdr) + 1rem); }
.legal-doc strong { font-weight: 600; color: var(--ink); }
.legal-doc code { font-family: var(--mono); font-size: 0.875em; background: var(--pill); color: var(--ink); border-radius: 0.25rem; padding: 0.0625rem 0.3125rem; overflow-wrap: anywhere; }
.legal-doc ul, .legal-doc ol { padding-left: 1.25rem; }
.legal-doc li + li, .legal-doc li > ul, .legal-doc li > ol, .legal-doc li > p { margin-top: 0.375rem; }
.legal-doc .toc { margin-top: 2rem; padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: 0.75rem; background: var(--tint); }
.legal-doc .toc-h { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.legal-doc .toc ol { margin-top: 0.5rem; padding-left: 0; list-style: none; columns: 2 16rem; column-gap: 2rem; font-size: 0.9375rem; line-height: 1.4; }
.legal-doc .toc li { break-inside: avoid; padding-block: 0.1875rem; }
.legal-doc .toc li + li { margin-top: 0; }
.legal-doc .table { margin-top: 1.25rem; overflow-x: auto; border: 1px solid var(--line); border-radius: 0.75rem; }
.legal-doc table { width: 100%; min-width: 40rem; border-collapse: collapse; font-size: 0.875rem; line-height: 1.5; }
.legal-doc th, .legal-doc td { padding: 0.625rem 0.875rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.legal-doc thead th { border-top: 0; background: var(--tint); color: var(--ink); font-weight: 600; }
.foot-col a[aria-current="page"] { color: var(--night-text); }
