/* Leket landing. Hand-written, no framework. Dark cinematic chapters alternate with warm paper ones.
   Brand blues come from the calabash mark; red = recording, green = consent/quality (same semantics as the app). */

@font-face { font-family: "Instrument Serif"; src: url("/assets/InstrumentSerif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/InstrumentSerif-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Lexend"; src: url("/assets/Lexend.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --night: #040922;
  --night-2: #071238;
  --deep: #0A1A55;
  --blue: #1F6BFF;
  --blue-2: #4E9BFF;
  --sky: #9CC8FF;
  --paper: #F4F1EA;
  --paper-2: #EAE5D8;
  --ink: #0D1124;
  --ink-2: #464B5E;
  --line-dark: rgba(255, 255, 255, .12);
  --line-light: #DCD6C6;
  --text-on-dark: #EEF2FF;
  --muted-on-dark: #A6B1D4;
  --red: #FF4B3E;
  --green: #2ECC7F;
  --green-ink: #16794A;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Lexend", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(16px, 5vw, 72px);
  --maxw: 1320px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--night); color: var(--text-on-dark);
  font-family: var(--sans); font-weight: 300; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
em { font-style: italic; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p { margin: 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; padding: .1em .4em; border-radius: 6px; background: rgba(13, 17, 36, .07); }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--ink); border-radius: 10px; text-decoration: none; font-weight: 500; }
.skip:focus { top: 12px; }

/* Film grain over everything: cheap SVG turbulence, fixed so it does not scroll. */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain { 0%{transform:translate(0,0)} 20%{transform:translate(-3%,2%)} 40%{transform:translate(2%,-3%)} 60%{transform:translate(-2%,-1%)} 80%{transform:translate(3%,3%)} 100%{transform:translate(0,0)} }

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; gap: 10px; height: var(--h); padding: 0 24px; border-radius: 999px;
  font: 500 16px/1 var(--sans); text-decoration: none; white-space: nowrap; cursor: pointer; border: 0;
  transition: transform .5s var(--ease-out), background-color .3s, box-shadow .5s var(--ease-out), color .3s;
}
.btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn-primary { color: #fff; background: linear-gradient(180deg, #3B82FF, #1756E8); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 10px 30px -8px rgba(31,107,255,.8), 0 0 0 1px rgba(31,107,255,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255,255,255,.35) inset, 0 18px 44px -10px rgba(31,107,255,.95), 0 0 0 1px rgba(78,155,255,.9); }
.btn-ghost { color: var(--text-on-dark); background: rgba(255,255,255,.06); box-shadow: 0 0 0 1px var(--line-dark) inset; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); }
.btn-ghost:hover svg { transform: translateX(3px); }
.btn-ghost svg { transition: transform .4s var(--ease-out); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { --h: 62px; padding: 0 30px; font-size: 17px; }

/* ─── Nav ─────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 14px var(--gutter) auto; z-index: 50; height: 60px; padding: 0 10px 0 16px;
  display: flex; align-items: center; gap: 24px; border-radius: 999px;
  transition: background-color .5s, box-shadow .5s, transform .6s var(--ease-out), color .4s, opacity .4s;
}
.nav.is-solid { background: rgba(6, 12, 40, .62); box-shadow: 0 0 0 1px var(--line-dark) inset, 0 20px 40px -24px rgba(0,0,0,.6); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); }
.nav.is-light { color: var(--ink); background: rgba(244, 241, 234, .72); box-shadow: 0 0 0 1px rgba(13,17,36,.08) inset, 0 20px 40px -24px rgba(13,17,36,.35); }
.nav.is-light .btn-ghost { color: var(--ink); background: rgba(13,17,36,.05); box-shadow: 0 0 0 1px rgba(13,17,36,.12) inset; }
.nav.is-hidden { transform: translateY(-130%); opacity: 0; box-shadow: none; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 26px/1 var(--serif); letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-size: 14px; font-weight: 400; opacity: .78; transition: opacity .3s, background-color .3s; }
.nav-links a:hover { opacity: 1; background: rgba(127,140,190,.14); }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } .nav { height: 54px; inset: 10px 12px auto; } }

/* ─── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate;
  padding: 120px var(--gutter) 110px;
  background: radial-gradient(120% 90% at 70% 40%, #0B1E66 0%, #061037 45%, var(--night) 75%);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-glow { position: absolute; z-index: 0; width: 70vmax; height: 70vmax; right: -18vmax; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(31,107,255,.45), rgba(31,107,255,0) 62%); filter: blur(20px); animation: breathe 9s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .7; transform: translateY(-50%) scale(1.06); } }
.hero-inner { position: relative; z-index: 3; max-width: 720px; width: 100%; margin: 0 auto 0 max(0px, calc((100vw - var(--maxw)) / 2 - var(--gutter))); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px; font-size: 13px; letter-spacing: .02em; color: var(--sky); background: rgba(78,155,255,.1); box-shadow: 0 0 0 1px rgba(78,155,255,.25) inset; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255,75,62,.7); animation: rec 1.8s infinite; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(255,75,62,.7); } 70% { box-shadow: 0 0 0 9px rgba(255,75,62,0); } 100% { box-shadow: 0 0 0 0 rgba(255,75,62,0); } }
.hero-title { margin: 26px 0 26px; font-family: var(--serif); font-size: clamp(64px, min(11.5vw, 19vh), 184px); line-height: .88; letter-spacing: -.035em; }
.hero-title .line { display: block; overflow: hidden; padding: .04em 0 .08em; }
.hero-title .word { display: inline-block; }
.hero-title em { background: linear-gradient(100deg, #7DB6FF 0%, #3F87FF 45%, #A9D0FF 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero-sub { max-width: 540px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted-on-dark); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: 13px; color: rgba(166,177,212,.75); }
.hero-mark { position: absolute; z-index: 2; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); top: 50%; width: min(46vw, 640px); transform: translate3d(var(--px, 0), calc(-50% + var(--py, 0px)), 0); pointer-events: none; }
.hero-mark img { width: 100%; height: auto; filter: drop-shadow(0 40px 80px rgba(5, 20, 90, .8)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
.scroll-cue { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 10px; text-decoration: none; font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--muted-on-dark); }
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--muted-on-dark), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: drip 2.2s var(--ease-out) infinite; }
@keyframes drip { to { top: 100%; } }
@media (max-width: 900px) {
  .hero { align-items: end; padding-top: 270px; padding-bottom: 56px; }
  .hero-mark { width: min(54vw, 230px); right: 50%; top: 170px; transform: translate3d(calc(50% + var(--px, 0px)), calc(-50% + var(--py, 0px)), 0); }
  .hero-glow { top: 170px; right: 50%; transform: translate(50%, -50%); width: 120vw; height: 120vw; animation: none; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .hero-inner { margin: 0; }
  .hero-title { margin-top: 20px; }
  .scroll-cue { display: none; }
}

/* Intro choreography: words rise out of their line masks, then the rest fades up. */
.js .hero-title .word { transform: translateY(105%) rotate(4deg); transform-origin: 0 100%; }
.js .reveal-up { opacity: 0; transform: translateY(24px); filter: blur(6px); }
.js .hero-mark { opacity: 0; }
.is-ready .hero-title .word { transform: none; transition: transform 1.4s var(--ease-out) var(--d, 0s); }
.is-ready .reveal-up { opacity: 1; transform: none; filter: none; transition: opacity 1.2s var(--ease-out) var(--d, 0s), transform 1.2s var(--ease-out) var(--d, 0s), filter 1.2s var(--ease-out) var(--d, 0s); }
.is-ready .hero-mark { opacity: 1; transition: opacity 2s var(--ease-out) .3s; }

/* ─── Story (pinned canvas) ───────────────────────────────── */
.story { position: relative; height: 560vh; background: var(--night); }
.story-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(90% 70% at 62% 50%, #081A58 0%, var(--night) 70%); }
.story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chapters { position: absolute; inset: 0; pointer-events: none; }
.chapter {
  position: absolute; left: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); top: 50%; width: min(460px, 38vw);
  transform: translateY(calc(-50% + var(--y, 40px))); opacity: var(--o, 0); filter: blur(calc((1 - var(--o, 0)) * 8px));
  will-change: transform, opacity;
}
.kicker { font-size: 12px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--blue-2); }
.kicker.dark { color: var(--blue); }
.chapter h2 { margin: 16px 0 18px; font-family: var(--serif); font-size: clamp(40px, 4.4vw, 68px); line-height: 1; letter-spacing: -.025em; }
.chapter h2 em { color: var(--sky); }
.chapter[data-step="2"] h2 em { color: #FF8A7E; }
.chapter[data-step="4"] h2 em { color: #7EE6B0; }
.chapter p:last-child { color: var(--muted-on-dark); font-size: 17px; max-width: 420px; }
.story-rail { position: absolute; right: max(var(--gutter), calc((100vw - var(--maxw)) / 2)); top: 50%; transform: translateY(-50%); margin: 0; padding: 0 0 0 18px; list-style: none; display: grid; gap: 22px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: rgba(166,177,212,.45); }
.story-rail::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line-dark); }
.story-rail .rail-fill { position: absolute; left: 0; top: 4px; width: 1px; height: calc((100% - 8px) * var(--p, 0)); background: linear-gradient(var(--blue-2), var(--sky)); box-shadow: 0 0 12px var(--blue-2); }
.story-rail li { transition: color .5s; }
.story-rail li span { display: block; font-family: var(--serif); font-size: 22px; letter-spacing: 0; line-height: 1; margin-bottom: 2px; }
.story-rail li.on { color: #fff; }
.story-hud { position: absolute; left: 50%; top: 92px; transform: translateX(-50%); display: flex; gap: 18px; align-items: center; font: 400 12px/1 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .08em; color: var(--muted-on-dark); opacity: var(--rec, 0); transition: opacity .4s; }
.story-hud .rec { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; color: #FFD2CE; background: rgba(255,75,62,.12); box-shadow: 0 0 0 1px rgba(255,75,62,.35) inset; }
.story-hud .rec i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: blink 1s steps(2) infinite; }
.story-hud b { font-weight: 500; color: #fff; }
@keyframes blink { 50% { opacity: .2; } }
@media (max-width: 900px) {
  .story { height: 520vh; }
  .chapter { left: 16px; right: 16px; width: auto; top: auto; bottom: 7vh; transform: translateY(var(--y, 40px)); padding: 22px 20px; border-radius: 22px; background: rgba(4,9,34,.72); box-shadow: 0 0 0 1px var(--line-dark) inset; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .chapter h2 { font-size: 36px; margin: 10px 0 10px; }
  .chapter p:last-child { font-size: 15px; }
  .story-rail { display: none; }
  .story-hud { top: 78px; }
}

/* ─── Marquee ─────────────────────────────────────────────── */
.marquee { position: relative; padding: 10vh 0 18vh; overflow: hidden; background: linear-gradient(var(--night), #0A1440); }
.marquee-row { display: flex; align-items: center; gap: 4vw; white-space: nowrap; width: max-content; font-family: var(--serif); font-size: clamp(64px, 13vw, 210px); line-height: 1.02; letter-spacing: -.03em; transform: translate3d(var(--x, 0), 0, 0); will-change: transform; }
.marquee-row i { width: .22em; height: .22em; background: var(--blue); border-radius: .05em; flex: none; transform: rotate(12deg); }
.marquee-row.outline { color: transparent; -webkit-text-stroke: 1.2px rgba(156,200,255,.55); font-style: italic; }
.marquee-row.outline i { background: var(--red); }

/* ─── Shared section heads (paper sections) ───────────────── */
.how, .principles { background: var(--paper); color: var(--ink); padding: 12vh var(--gutter) 14vh; }
/* The paper sheet slides over the dark marquee with rounded shoulders. */
.how { position: relative; margin-top: -8vh; border-radius: clamp(28px, 4vw, 56px) clamp(28px, 4vw, 56px) 0 0; box-shadow: 0 -30px 80px -40px rgba(31,107,255,.5); }
.section-head { max-width: var(--maxw); margin: 0 auto 8vh; }
.display { margin-top: 14px; font-family: var(--serif); font-size: clamp(52px, 8vw, 128px); line-height: .92; letter-spacing: -.035em; }
.display em { color: var(--blue); }
.display.light em { color: var(--sky); }

/* ─── How it works ────────────────────────────────────────── */
.how-grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(300px, 5fr) 6fr; gap: clamp(32px, 7vw, 120px); align-items: start; }
.phone-wrap { position: sticky; top: calc(50vh - 330px); display: grid; place-items: center; }
.phone {
  position: relative; width: 320px; height: 660px; border-radius: 52px; padding: 14px; background: linear-gradient(145deg, #23283A, #0C0F1C);
  box-shadow: 0 0 0 1.5px #3A4057 inset, 0 0 0 7px #0F1220, 0 60px 120px -30px rgba(13,17,36,.55), 0 30px 60px -30px rgba(31,107,255,.45);
  transform: perspective(1400px) rotateY(var(--ry, -8deg)) rotateX(var(--rx, 4deg)); transition: transform 1.2s var(--ease-out);
}
.phone-notch { position: absolute; z-index: 5; top: 26px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 20px; background: #05060C; }
.screen {
  position: absolute; inset: 14px; border-radius: 40px; overflow: hidden; background: #F6F4ED; color: #1A1E2C; font-family: var(--sans);
  opacity: 0; transform: scale(.96) translateY(14px); filter: blur(6px); transition: opacity .7s var(--ease-out), transform .9s var(--ease-out), filter .7s var(--ease-out);
}
.screen.is-active { opacity: 1; transform: none; filter: none; }
.scr-top { display: flex; justify-content: space-between; align-items: center; padding: 62px 20px 16px; font-weight: 600; font-size: 16px; background: #fff; border-bottom: 1px solid #DCD8CB; }
.scr-top.indigo { background: #2C4396; color: #fff; border: 0; }
.pill { font-size: 12px; font-weight: 500; padding: 5px 10px; border-radius: 999px; background: #E9EDF9; color: #1E2F6B; }
.pill.light { background: rgba(255,255,255,.18); color: #fff; }
.scr-body { padding: 18px 18px; display: grid; gap: 14px; }
.scr-label { font-size: 13px; color: #5A5F70; font-weight: 400; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: center; padding: 12px 12px; border-radius: 14px; background: #fff; border: 1px solid #DCD8CB; font-size: 13.5px; font-weight: 400; }
.checks li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; background: #1D7A46 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/13px no-repeat; }
.screen.is-active .checks li { animation: pop .6s var(--ease-out) backwards; }
.screen.is-active .checks li:nth-child(2) { animation-delay: .12s; } .screen.is-active .checks li:nth-child(3) { animation-delay: .24s; } .screen.is-active .checks li:nth-child(4) { animation-delay: .36s; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } }
.rec-btn { margin-top: 6px; display: flex; align-items: center; justify-content: center; gap: 10px; height: 58px; border-radius: 18px; color: #fff; font-weight: 600; font-size: 15px; background: #D0271A; box-shadow: 0 12px 24px -12px rgba(208,39,26,.8); }
.rec-btn i { width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.rec-btn.live { width: 116px; height: 116px; border-radius: 50%; justify-self: center; font-size: 18px; font-variant-numeric: tabular-nums; flex-direction: column; gap: 6px; animation: pulse 1.6s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(208,39,26,.55); } 70% { box-shadow: 0 0 0 22px rgba(208,39,26,0); } 100% { box-shadow: 0 0 0 0 rgba(208,39,26,0); } }
.card-prompt { padding: 18px; border-radius: 20px; background: #fff; border: 1px solid #DCD8CB; }
.prompt { margin-top: 6px; font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 90px; }
.wave i { width: 5px; border-radius: 3px; background: #D0271A; height: 20%; animation: bar 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-duration: .8s; } .wave i:nth-child(4n) { animation-duration: 1.3s; } .wave i:nth-child(5n+1) { animation-delay: -.4s; } .wave i:nth-child(2n) { animation-delay: -.7s; }
@keyframes bar { 50% { height: 95%; } }
.sync-ring { position: relative; width: 170px; height: 170px; margin: 18px auto 6px; display: grid; place-items: center; align-content: center; }
.sync-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); fill: none; stroke-width: 9; }
.sync-ring circle { stroke: #E9EDF9; }
.sync-ring .prog { stroke: #2C4396; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; }
.screen.is-active .sync-ring .prog { animation: fill 2.2s var(--ease-out) .2s forwards; }
@keyframes fill { to { stroke-dashoffset: 0; } }
.sync-ring b { font-size: 46px; font-weight: 800; line-height: 1; }
.sync-ring small { font-size: 13px; color: #5A5F70; }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.queue li { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid #DCD8CB; font-size: 13.5px; font-weight: 400; }
.queue em { font-style: normal; font-weight: 500; color: #5A5F70; }
.queue em.ok { color: #155C35; }

.steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 72vh; display: grid; align-content: center; gap: 16px; padding: 40px 0; opacity: .25; transform: translateX(0); transition: opacity .7s var(--ease-out); border-top: 1px solid var(--line-light); }
.step:first-child { border-top: 0; }
.step.is-active { opacity: 1; }
.step-n { font-family: var(--serif); font-size: 26px; color: var(--blue); }
.step h3 { font-family: var(--serif); font-size: clamp(36px, 4vw, 60px); line-height: 1; letter-spacing: -.025em; }
.step p { max-width: 480px; font-size: 18px; color: var(--ink-2); }
.step .inline-phone { display: none; }
@media (max-width: 900px) {
  .how-grid { grid-template-columns: 1fr; }
  .phone-wrap { display: none; }
  .step { min-height: 0; opacity: 1; padding: 36px 0 44px; }
  .step .inline-phone { display: block; margin-top: 20px; position: relative; width: 100%; max-width: 320px; height: 520px; border-radius: 40px; padding: 10px; background: #111526; box-shadow: 0 30px 60px -30px rgba(13,17,36,.5); }
  .step .inline-phone .screen { inset: 10px; border-radius: 32px; opacity: 1; transform: none; filter: none; }
  .step .inline-phone .scr-top { padding-top: 24px; }
}

/* ─── Manifesto ───────────────────────────────────────────── */
.manifesto { position: relative; height: 240vh; background: var(--paper); color: var(--ink); }
.manifesto-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: grid; place-items: center; padding: 0 var(--gutter); }
.manifesto-text { max-width: 1180px; font-family: var(--serif); font-size: clamp(40px, 6.4vw, 104px); line-height: 1.02; letter-spacing: -.03em; text-align: center; }
.manifesto-text .w { opacity: .12; transition: opacity .35s, color .35s; }
.manifesto-text .w.on { opacity: 1; }
.manifesto-text .w.hl { font-style: italic; color: var(--blue); }

/* ─── Principles bento ────────────────────────────────────── */
.bento { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  --mx: 50%; --my: 50%;
  position: relative; overflow: hidden; padding: 34px 30px 32px; min-height: 260px; border-radius: 28px; display: grid; align-content: end; gap: 12px;
  background: #fff; box-shadow: 0 0 0 1px rgba(13,17,36,.07) inset, 0 30px 60px -44px rgba(13,17,36,.4);
  opacity: 0; transform: translateY(50px) scale(.98); transition: opacity 1s var(--ease-out) calc(var(--i) * 90ms), transform 1.2s var(--ease-out) calc(var(--i) * 90ms), box-shadow .4s;
}
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(31,107,255,.12), transparent 60%); opacity: 0; transition: opacity .4s; }
.tile:hover::before { opacity: 1; }
.tile.in { opacity: 1; transform: none; }
.tile svg { position: absolute; top: 28px; left: 28px; width: 34px; height: 34px; fill: none; stroke: var(--blue); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-family: var(--serif); font-size: 32px; line-height: 1.04; letter-spacing: -.02em; }
.tile p { color: var(--ink-2); font-size: 15.5px; }
.tile-lg { grid-column: span 2; min-height: 320px; }
.tile.green { background: linear-gradient(150deg, #0F5E39, #1D7A46 55%, #2E9A5F); color: #F1FFF6; }
.tile.green p { color: rgba(241,255,246,.82); }
.tile.green svg { stroke: #BDF5D5; width: 48px; height: 48px; }
.tile.green h3 { font-size: clamp(34px, 3.4vw, 52px); max-width: 520px; }
.tile.indigo { grid-column: 1 / -1; min-height: 300px; background: linear-gradient(120deg, #0A1A55, #1F3FA8 55%, #2F6BFF); color: #EEF2FF; }
.tile.indigo p { color: rgba(238,242,255,.82); max-width: 560px; }
.tile.indigo svg { stroke: var(--sky); width: 48px; height: 48px; }
.tile.indigo h3 { font-size: clamp(34px, 3.4vw, 52px); max-width: 560px; }
.tile.green code, .tile.indigo code { background: rgba(255,255,255,.14); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .tile-lg { grid-column: auto; } .tile { min-height: 230px; } }

/* ─── Download ────────────────────────────────────────────── */
.download { position: relative; overflow: hidden; padding: 16vh var(--gutter); background: var(--night); isolation: isolate; }
.download-glow { position: absolute; z-index: -1; inset: auto -20% -60% -20%; height: 120%; background: radial-gradient(50% 50% at 50% 50%, rgba(31,107,255,.4), transparent 70%); filter: blur(30px); }
.download-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 7fr 4fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.lead { margin-top: 26px; max-width: 560px; font-size: 19px; color: var(--muted-on-dark); }
.install { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 12px; }
.install li { display: flex; align-items: center; gap: 14px; font-size: 16px; }
.install b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; font: 500 15px/1 var(--sans); color: var(--sky); background: rgba(78,155,255,.12); box-shadow: 0 0 0 1px rgba(78,155,255,.3) inset; }
.download-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 40px; }
.store-soon { display: inline-flex; align-items: center; gap: 8px; height: 62px; padding: 0 22px; border-radius: 999px; font-size: 14px; color: var(--muted-on-dark); box-shadow: 0 0 0 1px var(--line-dark) inset; }
.store-soon svg { width: 18px; height: 18px; fill: currentColor; opacity: .8; }
.fine { margin-top: 20px; font-size: 13px; color: rgba(166,177,212,.7); }
.download-side { display: grid; gap: 16px; }
.qr-card {
  position: relative; display: grid; justify-items: center; gap: 18px; padding: 30px; border-radius: 30px; background: var(--paper); color: var(--ink); text-align: center; font-size: 14px; line-height: 1.45;
  box-shadow: 0 50px 100px -40px rgba(31,107,255,.6);
}
.qr-card::after { content: ""; position: absolute; inset: -1px; border-radius: 31px; padding: 1px; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, var(--blue-2) 80%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 4s linear infinite; pointer-events: none; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --a: 360deg; } }
.qr-card img { width: 176px; height: 176px; padding: 12px; background: #fff; border-radius: 16px; }
.qr-card b { font-weight: 600; }
.admin-card { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 22px; text-decoration: none; background: rgba(255,255,255,.05); box-shadow: 0 0 0 1px var(--line-dark) inset; transition: background-color .3s, transform .5s var(--ease-out); }
.admin-card:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.admin-card b { display: block; font-weight: 500; }
.admin-card small { color: var(--muted-on-dark); font-size: 13px; }
.admin-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: rgba(78,155,255,.14); flex: none; }
.admin-ico svg, .admin-card .arrow { width: 20px; height: 20px; fill: none; stroke: var(--sky); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-card .arrow { margin-left: auto; stroke: var(--muted-on-dark); transition: transform .4s var(--ease-out); }
.admin-card:hover .arrow { transform: translateX(4px); stroke: #fff; }
@media (max-width: 900px) { .download-inner { grid-template-columns: 1fr; } .qr-card { display: none; } .btn-lg { width: 100%; justify-content: center; } .store-soon { width: 100%; justify-content: center; } }

/* ─── Footer ──────────────────────────────────────────────── */
.footer { position: relative; overflow: hidden; padding: 60px var(--gutter) 28px; background: var(--night); border-top: 1px solid var(--line-dark); color: var(--muted-on-dark); font-size: 14px; }
.footer-top { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; }
.footer .brand { color: #fff; font-size: 24px; }
.footer .brand img { width: 28px; height: 28px; }
.footer b { color: #fff; font-weight: 500; }
.footer nav { display: flex; gap: 22px; margin-left: auto; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { color: #fff; }
.footer-word { margin: 5vh 0 -4.5vw; text-align: center; font-family: var(--serif); font-size: 31vw; line-height: .8; letter-spacing: -.05em; color: transparent; background: linear-gradient(180deg, rgba(78,155,255,.55), rgba(78,155,255,0) 85%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.footer-legal { position: relative; max-width: var(--maxw); margin: 0 auto; font-size: 12px; color: rgba(166,177,212,.6); }

/* ─── Reduced motion: keep the story readable, drop the choreography ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01s !important; }
  .js .hero-title .word, .js .reveal-up, .js .hero-mark { transform: none; opacity: 1; filter: none; }
  .grain { display: none; }
}
