/* Lente's website (ship-hackathon 5.1, design 6b): the app's own look on a bigger canvas. Plain CSS,
   no web fonts; one tiny script (theme.js) only for the light/dark switch.

   The color, type and elevation tokens mirror src/theme.ts (the tokens the web app loads), with the
   same names and values, copied here because the site has no build step: keep them in step. The
   navigation glass and the spring curves come from the iOS kit (docs/design/ios-kit/nav.css). Every
   text pair keeps the app's 7:1 contrast. Light is the default; dark is html[data-theme="dark"],
   set by the switch. */

:root {
  color-scheme: light;
  /* src/theme.ts, light */
  --bg: #F2F2F7; --surface: #FFFFFF; --raised: #EEF0F5; --line: #E5E6EC; --ink: #0A0C16; --muted: #464C5E;
  --accent: #0842B5; --accent-fill: #0A47C2; --on-accent: #FFFFFF; --tag: #E8F0FE;
  --live: #A3001A; --live-fill: #B0001D; --on-live: #FFFFFF; --ok: #0A5C27;
  --glass: rgba(255, 255, 255, .80); --glass-edge: rgba(10, 12, 22, .08);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  --shadow-float: 0 10px 28px rgba(20, 30, 70, .12), 0 1px 3px rgba(20, 30, 70, .06);
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  /* docs/design/ios-kit/nav.css: the glass capsule, light */
  --nav-bg: rgba(250, 251, 254, .88); --nav-edge: rgba(10, 12, 22, .09); --nav-ink: #3A4052; --nav-on: #0A3A9C; --nav-pill: #DCE7FF;
  --nav-shadow: 0 8px 24px rgba(20, 30, 70, .08), 0 1px 2px rgba(20, 30, 70, .05);
  /* The kit's states on their fills (7:1 or more) */
  --ok-bg: #D5F3EB; --ok-ink: #094D41; --miss-bg: #FDE7EA;
  /* docs/design/ios-kit/nav.css: springs sampled from a damped spring */
  --spring-snappy: linear(0, 0.0253 2.5%, 0.0916 5%, 0.172 7.5%, 0.2614 10%, 0.3528 12.5%, 0.4417 15%, 0.533 17.5%, 0.6082 20%, 0.6752 22.5%, 0.7338 25%, 0.789 27.5%, 0.8312 30%, 0.8666 32.5%, 0.8959 35%, 0.9221 37.5%, 0.9411 40%, 0.9563 42.5%, 0.9683 45%, 0.9784 47.5%, 0.9854 50%, 0.9907 52.5%, 0.995 55%, 0.9977 57.5%, 0.9996 60%, 1.0009 62.5%, 1.0018 65%, 1.0022 67.5%, 1.0024 70%, 1.0025 72.5%, 1.0024 75%, 1.0022 77.5%, 1.002 80%, 1.0018 82.5%, 1.0015 85%, 1.0013 87.5%, 1.0011 90%, 1.0009 92.5%, 1.0008 95%, 1.0006 97.5%, 1);
  /* The site's own surfaces: the alternate band, the cards on it, the stage under a device, and the
     warm field behind the hero photo (the same in both themes). */
  --band: #FFFFFF; --well: #F2F2F7; --warm: #F3ECE6;
  /* An elevation ladder for the site's cards: resting, raised, lifted (hover) */
  --lift-1: 0 1px 2px rgba(20, 30, 70, .05), 0 6px 16px -6px rgba(20, 30, 70, .10);
  --lift-2: 0 1px 2px rgba(20, 30, 70, .05), 0 16px 36px -14px rgba(20, 30, 70, .20);
  --lift-3: 0 2px 4px rgba(20, 30, 70, .06), 0 32px 64px -24px rgba(20, 30, 70, .30);
  --warm-shadow: 0 2px 6px rgba(80, 55, 30, .06), 0 48px 96px -48px rgba(80, 55, 30, .45);
  --stage: radial-gradient(100% 70% at 50% 0%, #DCE7FD, rgba(220, 231, 253, 0) 72%), linear-gradient(180deg, #F7F8FB, #ECEEF4);
  --device-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 1px rgba(10, 12, 22, .5), 0 48px 80px -32px rgba(20, 30, 70, .42), 0 16px 32px -12px rgba(20, 30, 70, .22);
  /* An 8 px spacing scale */
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s12: 96px; --s16: 128px;
  --page: 1200px; --text: 68ch; --radius: 28px; --radius-lg: 32px; --tap: 48px;
  --section: clamp(96px, 12vw, 160px);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  /* src/theme.ts, dark */
  --bg: #000000; --surface: #1C1C1E; --raised: #2C2C2E; --line: #38383A; --ink: #FFFFFF; --muted: #C7C7CC;
  --accent: #8CC8FF; --accent-fill: #8CC8FF; --on-accent: #000000; --tag: #26333F;
  --live: #FF8A8A; --live-fill: #FF6B6B; --on-live: #000000; --ok: #5FE08A;
  --glass: rgba(30, 30, 33, .82); --glass-edge: rgba(255, 255, 255, .10);
  --shadow: none; --shadow-float: 0 10px 30px rgba(0, 0, 0, .6);
  --nav-bg: rgba(30, 30, 33, .88); --nav-edge: rgba(255, 255, 255, .11); --nav-ink: #D1D1D6; --nav-on: #000000; --nav-pill: #8CC8FF;
  --nav-shadow: 0 8px 24px rgba(0, 0, 0, .55);
  --ok-bg: #12382F; --ok-ink: #8CEBD0; --miss-bg: #3A1418;
  --band: #0E0E10; --well: #1C1C1E;
  --lift-1: 0 1px 2px rgba(0, 0, 0, .6); --lift-2: 0 16px 36px -14px rgba(0, 0, 0, .8); --lift-3: 0 32px 64px -24px rgba(0, 0, 0, .9);
  --stage: radial-gradient(100% 70% at 50% 0%, #14233A, rgba(20, 35, 58, 0) 72%), linear-gradient(180deg, #121215, #070708);
  --device-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), 0 0 0 1px rgba(255, 255, 255, .06), 0 48px 90px -32px rgba(0, 0, 0, .9);
}

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img, svg, picture { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 700; color: var(--ink); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: .86em; }
.wrap { width: min(var(--page), 100% - 2 * var(--s3)); margin-inline: auto; }
.center { text-align: center; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: var(--s2); top: -80px; z-index: 20; background: var(--accent-fill); color: var(--on-accent); padding: 12px 20px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: var(--s2); }

/* Type scale (display stack, tight tracking on the large sizes) */
.display { font-size: clamp(40px, 6.2vw, 88px); line-height: 1.03; letter-spacing: -0.04em; font-weight: 650; }
.title { font-size: clamp(32px, 4.4vw, 56px); line-height: 1.07; letter-spacing: -0.032em; font-weight: 650; }
.subtitle { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -0.02em; }
.lead { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: var(--muted); max-width: var(--text); letter-spacing: -0.008em; }
.center .lead { margin-inline: auto; }
.eyebrow { font-size: 15px; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; color: var(--accent); text-wrap: balance; }
.fine { font-size: 14px; color: var(--muted); }

/* ── Navigation: the app's glass capsule ─────────────── */
.top { position: sticky; top: 0; z-index: 10; display: flex; justify-content: center; padding: 12px var(--s2) 0; pointer-events: none; }
.capsule { pointer-events: auto; display: flex; align-items: center; gap: 2px; height: 52px; padding: 0 6px 0 8px; border-radius: 26px;
  background: var(--nav-bg); -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7);
  box-shadow: inset 0 0 0 .5px var(--nav-edge), var(--nav-shadow); }
.brand { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 6px; border-radius: 20px; color: var(--ink); text-decoration: none; font: 700 17px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 28px; height: 28px; }
.capsule .links { display: flex; gap: 2px; }
.capsule .links a { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border-radius: 20px; color: var(--nav-ink); text-decoration: none; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; transition: background-color 160ms var(--ease), color 160ms var(--ease); }
.capsule .links a:hover { background: var(--raised); color: var(--ink); }
.lang { display: flex; align-items: center; margin-left: 6px; padding: 3px; height: 40px; border-radius: 20px; background: var(--raised); }
.lang a, .lang span { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 34px; padding: 0 10px; border-radius: 17px; font-size: 14px; font-weight: 650; text-decoration: none; color: var(--nav-ink); }
.lang a:hover { color: var(--ink); }
.lang [aria-current="page"] { background: var(--nav-pill); color: var(--nav-on); }
/* The light/dark switch (theme.js shows it; without script the site stays light and it stays hidden) */
.theme { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-left: 4px; border: 0; border-radius: 20px; background: transparent; color: var(--nav-ink); cursor: pointer; transition: background-color 160ms var(--ease); }
.theme[hidden] { display: none; }
.theme:hover { background: var(--raised); color: var(--ink); }
.theme svg { width: 20px; height: 20px; }
.theme .sun, [data-theme="dark"] .theme .moon { display: none; }
[data-theme="dark"] .theme .sun { display: block; }
@media (max-width: 1100px) { .capsule .links a.wide-only { display: none; } }
@media (max-width: 600px) { .capsule .links { display: none; } .brand { padding-right: 16px; } }

/* ── Pill buttons (the kit's .l-btn, larger) ─────────── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 26px; font: 600 17px/1 var(--body); letter-spacing: -0.01em; text-decoration: none; white-space: nowrap;
  transition: transform 420ms var(--spring-snappy), filter 160ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease); }
.pill svg { width: 20px; height: 20px; flex: none; }
.pill--accent { background: var(--accent-fill); color: var(--on-accent); box-shadow: 0 1px 2px rgba(10, 71, 194, .2), 0 8px 20px rgba(10, 71, 194, .22); }
.pill--glass { background: var(--nav-bg); color: var(--ink); -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7); box-shadow: inset 0 0 0 .5px var(--nav-edge), var(--nav-shadow); }
.pill--quiet { background: var(--raised); color: var(--ink); min-height: 44px; padding: 0 20px; font-size: 16px; }
.pill:hover { text-decoration: none; filter: brightness(1.07); }
.pill--glass:hover, .pill--quiet:hover { filter: brightness(.97); }
@media (prefers-reduced-motion: no-preference) { .pill:active { transform: scale(.96); transition-duration: 90ms; } }
[data-theme="dark"] .pill--accent { box-shadow: none; }
[data-theme="dark"] .pill--glass:hover, [data-theme="dark"] .pill--quiet:hover { filter: brightness(1.2); }

/* ── Sections: one idea per screen, two calm surfaces taking turns ── */
main > section { padding-block: var(--section); }
main > section.alt { background: var(--band); }
.alt { --card: var(--well); }
.section-head { display: grid; gap: var(--s2); justify-items: center; text-align: center; margin-bottom: clamp(48px, 6vw, 80px); }
.section-head .lead { margin-top: var(--s1); }

/* Hero: the line, the two ways in, then the product as large as the page allows */
main > section.hero { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 112px); text-align: center; }
.hero h1 { max-width: 14ch; margin: var(--s2) auto 0; }
@media (min-width: 1100px) { .hero h1 { max-width: 19ch; } .hero .lead { max-width: 54ch; } }
.hero .lead { margin: var(--s3) auto 0; max-width: 44ch; }
.hero .actions { margin-top: var(--s4); }
.hero .hint { margin-top: var(--s2); }
.product { position: relative; margin: clamp(40px, 6vw, 72px) auto 0; max-width: var(--page); }
.render { position: relative; margin: 0; border-radius: clamp(24px, 3vw, 40px); overflow: hidden; background: var(--warm); isolation: isolate; }
.render { box-shadow: var(--warm-shadow); }
.render::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 .5px rgba(60, 40, 20, .12); pointer-events: none; }
.render img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 55%; transform-origin: 60% 50%; }
@media (min-width: 900px) { .render img { aspect-ratio: 16 / 9; } }
[data-theme="dark"] .render { box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 120px -40px rgba(243, 236, 230, .28); }
/* The hero photo's label keeps light glass in both themes */
.badge { position: absolute; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 1; font-size: 13px; font-weight: 600; letter-spacing: .01em; color: #3B332C; background: rgba(255, 255, 255, .72); padding: 6px 12px; border-radius: 999px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: inset 0 0 0 .5px rgba(60, 40, 20, .14); }
.qr-card { display: inline-flex; align-items: center; gap: var(--s2); padding: 10px 20px 10px 10px; border-radius: 22px; text-align: left;
  background: var(--nav-bg); -webkit-backdrop-filter: blur(20px) saturate(1.7); backdrop-filter: blur(20px) saturate(1.7); box-shadow: inset 0 0 0 .5px var(--nav-edge), var(--nav-shadow); }
.product .qr-card { position: absolute; left: clamp(16px, 2.4vw, 32px); bottom: clamp(16px, 2.4vw, 32px); z-index: 1; }
.qr-card img { width: 88px; height: 88px; border-radius: 12px; background: #fff; }
.qr-card p { font-size: 15px; line-height: 1.35; color: var(--muted); max-width: 22ch; }
.qr-card strong { display: block; color: var(--ink); font-weight: 650; }
@media (max-width: 899px), (pointer: coarse) and (max-width: 1024px) { .hero .qr-card { display: none; } }

/* The video, right under the hero */
main > section.film { padding-top: 0; }
.video { margin: 0 auto; max-width: var(--page); }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(24px, 3vw, 40px); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--glass-edge), var(--lift-2); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-frame .placeholder { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: var(--s2); text-align: center; padding: var(--s3); color: var(--muted); background: radial-gradient(80% 90% at 50% 0%, var(--tag), var(--surface)); }
.play { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--nav-bg); box-shadow: inset 0 0 0 .5px var(--nav-edge), var(--nav-shadow); color: var(--ink); }
.play svg { width: 26px; height: 26px; margin-left: 4px; }
.video figcaption { margin-top: var(--s2); text-align: center; font-size: 16px; color: var(--muted); }

/* A feature: text beside the product's own UI on a device */
.feature { display: grid; gap: clamp(48px, 6vw, 96px); align-items: center; }
.section-head + .feature { margin-top: 0; }
@media (min-width: 960px) { .feature { grid-template-columns: 1fr 1fr; } .feature--flip > .copy { order: 2; } }
.feature > * { min-width: 0; }
.copy { display: grid; gap: var(--s3); justify-items: start; }
.copy .title { font-size: clamp(30px, 3.6vw, 48px); }
.copy p:not(.eyebrow) { max-width: 44ch; }
.copy .eyebrow + .title { margin-top: calc(var(--s1) * -1); }
.stat { margin-top: var(--s1); padding-top: var(--s3); border-top: 1px solid var(--line); display: grid; gap: 6px; max-width: 44ch; }
.stat strong { font: 650 clamp(40px, 4.6vw, 60px)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 16px; color: var(--muted); }
.stat--pending strong { font-size: clamp(26px, 2.6vw, 32px); color: var(--muted); letter-spacing: -0.02em; }

/* The stage and the device the interface stands on */
.stage { margin: 0; }
.stage-floor { display: grid; place-items: center; padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 56px); border-radius: var(--radius-lg); background: var(--stage); box-shadow: inset 0 0 0 .5px var(--glass-edge), var(--lift-1); }
.stage figcaption { margin-top: var(--s2); font-size: 14px; color: var(--muted); text-align: center; }
.device { width: min(360px, 100%); padding: 10px; border-radius: 52px; background: linear-gradient(155deg, #3B3B40, #141416 42%, #2A2A2E); box-shadow: var(--device-shadow); }
.screen { position: relative; display: grid; align-content: center; min-height: 540px; padding: 64px 14px 28px; border-radius: 42px; overflow: hidden; background: var(--bg); }
.screen::before { content: ""; position: absolute; top: 14px; left: 50%; width: 100px; height: 30px; margin-left: -50px; border-radius: 15px; background: #000; }
.screen--dark { background: #000; }
.ui { width: 100%; display: grid; gap: var(--s2); }

/* The listening pill (kit .l-listen) */
.listen { justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 12px; border-radius: 20px; font-size: 15px; font-weight: 600; color: var(--ink);
  background: var(--nav-bg); box-shadow: inset 0 0 0 .5px var(--nav-edge), var(--nav-shadow); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--live-fill); box-shadow: 0 0 0 5px color-mix(in srgb, var(--live-fill) 22%, transparent); }
.dot--on { background: var(--ok); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 22%, transparent); }

/* The Dilo card (kit .l-card + .l-tag + .l-say) */
.card { background: var(--surface); border-radius: 22px; padding: 20px; box-shadow: var(--shadow-float); }
.tag { display: inline-block; height: 24px; padding: 0 11px; border-radius: 12px; background: var(--tag); color: var(--accent); font-size: 12px; line-height: 24px; font-weight: 650; letter-spacing: .07em; }
.say { margin-top: 12px; font: 700 clamp(24px, 2.2vw, 28px)/1.18 var(--display); letter-spacing: -0.025em; color: var(--ink); }
.means { margin-top: 10px; font-size: 16px; line-height: 1.4; color: var(--muted); }
.asked { margin-top: var(--s2); font-size: 14px; color: var(--muted); }
.card-actions { display: flex; gap: 8px; margin-top: var(--s3); }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 19px; font-size: 15px; font-weight: 550; background: var(--raised); color: var(--ink); }
.chip--accent { background: var(--tag); color: var(--accent); }
.chip svg { width: 17px; height: 17px; }

/* Ver: the screen as a blind or low-vision person sets it, large type, high contrast */
.ver { background: #000; color: #fff; border-radius: 28px; padding: var(--s1); display: grid; gap: var(--s3); min-height: 420px; align-content: space-between; }
.ver .state { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: #fff; }
.ver .state .dot { background: #5FE08A; box-shadow: 0 0 0 5px rgba(95, 224, 138, .22); }
.ver .line { font: 700 clamp(28px, 2.6vw, 34px)/1.2 var(--display); letter-spacing: -0.02em; }
.ver .hints { display: flex; flex-wrap: wrap; gap: 8px; }
.ver .hints span { font-size: 14px; color: #fff; background: #1C1C1E; border: 1px solid #38383A; border-radius: 999px; padding: 6px 12px; }

/* Practicar: the lesson's notes */
.lesson-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s2); }
.lesson-head h3 { font-size: 20px; letter-spacing: -0.02em; }
.notes { display: grid; grid-template-columns: repeat(8, 1fr); gap: 4px; margin-top: var(--s3); }
.note { display: grid; justify-items: center; gap: 4px; padding: 10px 0 8px; border-radius: 12px; background: var(--raised); color: var(--muted); font-weight: 650; font-size: 13px; }
.note b { font-size: 13px; font-weight: 650; }
.note i { font-style: normal; font-size: 13px; line-height: 1; min-height: 13px; }
.note--ok { background: var(--ok-bg); color: var(--ok-ink); }
.note--miss { background: var(--miss-bg); color: var(--live); }
.note--now { background: var(--surface); color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.hearing { display: flex; align-items: baseline; gap: 12px; margin-top: var(--s3); }
.hearing strong { font: 700 44px/1 var(--display); letter-spacing: -0.03em; color: var(--ink); }
.coach { margin-top: var(--s2); padding: 14px 16px; border-radius: 18px; background: var(--tag); color: var(--ink); font-size: 16px; line-height: 1.4; }

/* Inset grouped lists (kit .l-group, .l-list, .l-row) */
.group { max-width: 880px; margin-inline: auto; background: var(--card, var(--surface)); border-radius: var(--radius); box-shadow: inset 0 0 0 .5px var(--glass-edge), var(--lift-1); overflow: hidden; }
.group > li { position: relative; display: grid; grid-template-columns: auto 1fr; gap: var(--s2); align-items: center; padding: 16px var(--s3); }
.group > li + li::before { content: ""; position: absolute; left: 76px; right: 0; top: 0; height: 1px; background: var(--line); }
.group.plain > li { grid-template-columns: 1fr; }
.group.plain > li + li::before { left: var(--s3); }
.row-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.row-sub { font-size: 16px; color: var(--muted); margin-top: 2px; }
.row-sub code { color: var(--ink); }
.tile { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--tag); color: var(--accent); }
.tile svg { width: 22px; height: 22px; }
.tile--n { font: 700 17px/1 var(--display); }
.group-label { max-width: 880px; margin: var(--s5) auto var(--s1); padding-left: var(--s3); font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.group-label:has(+ .stats) { max-width: none; padding-left: 0; }

/* Measured: number tiles */
.stats { display: grid; gap: var(--s2); grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: var(--s8); }
.stats > li { background: var(--card, var(--surface)); border-radius: var(--radius); padding: var(--s4) var(--s3) var(--s3); box-shadow: inset 0 0 0 .5px var(--glass-edge), var(--lift-1); transition: box-shadow 300ms var(--ease), transform 300ms var(--ease); display: grid; gap: 10px; align-content: start; }
.stats > li:hover, .photo:hover { box-shadow: inset 0 0 0 .5px var(--glass-edge), var(--lift-3); }
.stats strong { font: 650 clamp(32px, 3vw, 44px)/1.05 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.stats .what { font-size: 17px; font-weight: 550; }
.stats .run { font-size: 14px; color: var(--muted); }

/* The app's real screens: a browser window with one card lifted off it */
.shots { margin: 0 auto; max-width: 1120px; }
.shots-stage { position: relative; padding: 0 0 clamp(56px, 9vw, 128px); }
.window { border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--glass-edge), var(--lift-3); }
.window-bar { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; background: var(--raised); box-shadow: inset 0 -1px 0 var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: color-mix(in srgb, var(--muted) 30%, transparent); }
.window-bar span { position: absolute; left: 50%; translate: -50% 0; font-size: 13px; font-weight: 500; color: var(--muted); background: var(--surface); padding: 4px 16px; border-radius: 8px; white-space: nowrap; }
.window img { width: 100%; }
.float { position: absolute; right: -3%; bottom: 0; width: min(50%, 560px); border-radius: 20px; box-shadow: 0 0 0 .5px var(--glass-edge), var(--lift-3); }
.shots--flip .float { right: auto; left: -3%; width: min(48%, 520px); }
.shots figcaption { margin-top: var(--s3); text-align: center; font-size: 14px; color: var(--muted); }
@media (max-width: 760px) {
  .shots-stage { padding: 0; }
  .float, .shots--flip .float { position: relative; right: auto; left: auto; width: 86%; margin: -14% 0 0 auto; }
  .shots--flip .float { margin: -14% auto 0 0; }
  .window-bar span { display: none; }
  .pillars { grid-template-columns: 1fr 1fr; gap: var(--s4) var(--s2); }
  .pillar-t { font-size: 17px; }
  .pillars p { font-size: 15px; }
}
/* Four short points under a showcase */
.pillars { display: grid; gap: var(--s5) var(--s4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); margin-top: clamp(48px, 6vw, 80px); }
.pillars li { display: grid; gap: 12px; align-content: start; }
.pillar-t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 650 19px/1.25 var(--display); letter-spacing: -0.015em; }
.pillars p { font-size: 16px; line-height: 1.5; color: var(--muted); max-width: 36ch; }
.pillars strong { color: var(--ink); font-weight: 650; font-variant-numeric: tabular-nums; }
.soon-tag { font: 600 12px/1 var(--body); letter-spacing: .02em; color: var(--muted); background: var(--raised); padding: 5px 9px; border-radius: 999px; }
.pillars .soon .tile { background: var(--raised); color: var(--muted); }

/* Try it and install */
.try { display: grid; gap: var(--s3); align-items: start; }
@media (min-width: 960px) { .try { grid-template-columns: 1.2fr 1fr; } }
.try .group { max-width: none; }
.asks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.asks li { font-size: 16px; background: var(--tag); color: var(--ink); border-radius: 999px; padding: 7px 14px; }
.install { padding: var(--s4); border-radius: var(--radius-lg); background: var(--card, var(--surface)); box-shadow: inset 0 0 0 .5px var(--glass-edge), var(--lift-1); display: grid; gap: var(--s3); }
.install .qr { width: 180px; height: 180px; padding: 10px; border-radius: 20px; background: #fff; justify-self: center; box-shadow: inset 0 0 0 .5px rgba(10, 12, 22, .1); }
.install ol { display: grid; gap: 12px; counter-reset: s; }
.install ol li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; font-size: 16px; }
.install ol li::before { content: counter(s); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--tag); color: var(--accent); font-weight: 700; font-size: 14px; }

/* The clip */
.pair { display: grid; gap: var(--s3); }
@media (min-width: 860px) { .pair { grid-template-columns: 1fr 1fr; } }
.photo { margin: 0; position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--glass-edge), var(--lift-2); transition: box-shadow 300ms var(--ease), transform 300ms var(--ease); }
.photo img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 1 / 1; }
.photo figcaption { position: absolute; left: var(--s2); bottom: var(--s2); font-size: 13px; font-weight: 600; color: var(--ink); background: var(--nav-bg); padding: 6px 12px; border-radius: 999px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 .5px var(--nav-edge); }
.lists { display: grid; gap: var(--s3); margin-top: var(--s5); }
@media (min-width: 860px) { .lists { grid-template-columns: 1fr 1fr; } }
.lists .group { max-width: none; }

/* Built during the hackathon, privacy, footer */
.links-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--s5); }
.alt .pill--quiet { background: var(--well); }
.checks > li { grid-template-columns: 28px 1fr; }
.checks svg { width: 24px; height: 24px; color: var(--ok); }
.after { max-width: 880px; margin: var(--s3) auto 0; padding-left: var(--s3); font-size: 16px; color: var(--muted); }
footer { padding: var(--s8) 0 var(--s12); font-size: 15px; color: var(--muted); text-align: center; border-top: 1px solid var(--line); }
footer .mark { width: 32px; height: 32px; margin: 0 auto var(--s2); }
footer ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: var(--s2); }

/* Short pages: terms, privacy, 404 */
.doc { max-width: 760px; margin-inline: auto; }
.doc h1 { margin-top: var(--s3); }
.doc .lead { margin-top: var(--s3); }
.doc h2 { margin: var(--s8) 0 var(--s2) var(--s3); font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-family: var(--body); }
.doc .group > li { font-size: 17px; line-height: 1.5; }
.doc .group { max-width: none; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin: var(--s12) 0 0; }
.version { margin-top: var(--s2); font-size: 15px; color: var(--muted); }
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; }
.lost .mark { width: 64px; height: 64px; margin: 0 auto var(--s3); }
.lost .actions { margin-top: var(--s5); }
.stack > * + * { margin-top: var(--s3); }
.doc h2.subtitle { margin: var(--s3) 0 0; font: 700 clamp(24px, 2.6vw, 32px)/1.15 var(--display); letter-spacing: -0.02em; text-transform: none; color: var(--ink); }
.group.plain > li { display: block; }
.doc .version + .group { margin-top: var(--s3); }

/* ── Motion: a fade and a short rise, nothing loops, nothing bounces, nothing over 600 ms;
   all of it off under reduced motion ─────────────────── */
@media (prefers-reduced-motion: no-preference) {
  /* The hero enters once on load: 480 ms each, 30 ms apart, done by 600 ms */
  .hero > .wrap > * { animation: rise 480ms var(--ease) both; animation-delay: var(--intro-wait, 0ms); }
  .hero > .wrap > :nth-child(2) { animation-delay: calc(var(--intro-wait, 0ms) + 30ms); }
  .hero > .wrap > :nth-child(3) { animation-delay: calc(var(--intro-wait, 0ms) + 60ms); }
  .hero > .wrap > :nth-child(4) { animation-delay: calc(var(--intro-wait, 0ms) + 90ms); }
  .hero > .wrap > :nth-child(n + 5) { animation-delay: calc(var(--intro-wait, 0ms) + 120ms); }
  /* Under the intro the headline waits for the layer to lift; the hero photo is already there,
     painted, so the largest paint is not delayed */
  [data-intro] { --intro-wait: 1000ms; }
  [data-intro] .hero .product { animation: none; }

  /* The intro: the mark assembles, «Lente» closes in, the layer lifts. Each step ≤ 600 ms,
     all done by 1.45 s. No pointer events, so it never blocks a click. */
  [data-intro] .intro { display: grid; animation: intro-lift 450ms var(--ease) 1000ms forwards; }
  .intro .i-base, .intro .i-wing, .intro .i-lens, .intro .i-bar { transform-box: fill-box; transform-origin: center; }
  .intro .i-base { animation: intro-base 520ms var(--ease) both; }
  .intro .i-wing { animation: intro-wing 520ms var(--ease) 140ms both; }
  .intro .i-lens { animation: intro-iris 460ms var(--ease) 300ms both; }
  .intro .i-bar { transform-origin: 50% 50%; animation: intro-bar 360ms var(--ease) 540ms both; }
  .intro .i-bar--2 { animation-delay: 600ms; }
  .intro .i-bar--3 { animation-delay: 660ms; }
  .intro-word { animation: intro-word 560ms var(--ease) 480ms both; }
}
.intro { position: fixed; inset: 0; z-index: 30; display: none; place-items: center; background: var(--bg); pointer-events: none; }
.intro-mark { display: flex; align-items: center; gap: 18px; }
.intro-mark svg { width: 88px; height: 88px; overflow: visible; }
.intro-word { font: 650 52px/1 var(--display); letter-spacing: -0.035em; color: var(--ink); }
@media (max-width: 600px) { .intro-mark svg { width: 64px; height: 64px; } .intro-word { font-size: 38px; } }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    /* Each child reveals on its own as it enters; side-by-side children start a step apart */
    .reveal > * { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
    .reveal > :nth-child(2) { animation-range: entry 8% entry 63%; }
    .reveal > :nth-child(3) { animation-range: entry 16% entry 71%; }
    .reveal > :nth-child(n + 4) { animation-range: entry 24% entry 79%; }
    /* Headings and the big numbers come into focus: a short blur that clears as they rise */
    .section-head > .title, .copy > .title, .stat strong { animation: focus linear both; animation-timeline: view(); animation-range: entry 5% entry 75%; }
    /* The phones land on their stage: tilted back and lower, they settle flat as they come up */
    .device { animation: land linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    /* The video opens from a smaller, rounder frame */
    .video-frame { animation: open linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    /* The clip photos drift inside their frames: a gentle parallax */
    .photo img { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    /* The app's screens: the window settles flat, the card floats up past it */
    .window { animation: land-soft linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .float { animation: float-up linear both; animation-timeline: view(); animation-range: entry 0% exit 60%; }
    /* The privacy checks draw themselves */
    .checks svg path { stroke-dasharray: 21; animation: draw linear both; animation-timeline: view(); animation-range: entry 30% cover 35%; }
  }
  @supports (animation-timeline: scroll()) {
    /* The hero product settles a little closer as the page scrolls away from it */
    .render img { animation: closer linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
    /* The navigation gains its shadow as the page leaves the top */
    .capsule { animation: nav-lift linear both; animation-timeline: scroll(root); animation-range: 0 160px; }
  }
  .stats > li:hover, .photo:hover { transform: translateY(-3px); }
}
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }
@keyframes intro-base { from { opacity: 0; transform: scale(.82); } }
@keyframes intro-wing { from { opacity: 0; transform: translateX(22%); } }
@keyframes intro-iris { from { opacity: 0; transform: scale(.3); } }
@keyframes intro-bar { from { transform: scaleY(0); } }
@keyframes intro-word { from { opacity: 0; letter-spacing: .25em; transform: translateX(-10px); } }
@keyframes intro-lift { to { opacity: 0; visibility: hidden; } }
@keyframes closer { to { transform: scale(1.05); } }
@keyframes focus { from { opacity: 0; filter: blur(8px); transform: translateY(16px); } }
@keyframes land { from { opacity: .3; transform: perspective(1400px) translateY(72px) rotateX(16deg) scale(.94); } }
@keyframes open { from { opacity: .5; transform: scale(.9); border-radius: 64px; } }
@keyframes drift { from { transform: translateY(-5%) scale(1.12); } to { transform: translateY(5%) scale(1.12); } }
@keyframes land-soft { from { opacity: .4; transform: perspective(1800px) translateY(56px) rotateX(10deg) scale(.96); } }
@keyframes float-up { from { opacity: 0; transform: translateY(96px); } 30% { opacity: 1; } to { transform: translateY(-48px); } }
@keyframes draw { from { stroke-dashoffset: 21; } }
@keyframes nav-lift { from { box-shadow: inset 0 0 0 .5px var(--nav-edge); } }

/* The story and the real screens (ship-hackathon 5.1, from the README): the problem as three
   short paragraphs, four real Android screens, a real screen on the Dilo stage, and the build
   filmed while it happened. Static; the reveal motion above applies through .reveal. */
.story { max-width: var(--text); margin: 0 auto var(--s4, 32px); display: grid; gap: 18px; }
.story p { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.55; color: var(--muted); margin: 0; }
.story strong { color: var(--ink); }
.screens { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin: 0; padding: 0; }
.screens figure { margin: 0; display: grid; gap: 12px; align-content: start; }
.screens img, .stage .shot { width: 100%; height: auto; border-radius: 28px; background: var(--surface); box-shadow: var(--device-shadow), var(--lift-2); }
.screens figcaption { font-size: 15px; line-height: 1.45; color: var(--muted); }
.screens figcaption b { color: var(--ink); font-weight: 600; }
.stage .shot { display: block; width: min(300px, 72%); margin: 0 auto; }
.build { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); margin: var(--s4, 32px) 0; padding: 0; list-style: none; }
.build li { display: grid; gap: 8px; align-content: start; }
.build img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 20px; box-shadow: inset 0 0 0 .5px var(--glass-edge), var(--lift-1); }
.build span { font-size: 14px; line-height: 1.4; color: var(--muted); }
.build b { color: var(--ink); font-weight: 600; }
@media (max-width: 760px) {
  .screens, .build { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
