/* ════════════════════════════════════════════════════════════════════
   Pustak by Vyoma Labs — landing page
   Warm cream paper · ink line art · Vyoma orange
   ════════════════════════════════════════════════════════════════════ */

/* ─── TOKENS ─────────────────────────────────────────────────────── */
:root {
  --paper: #f4efe6;
  --paper-2: #ece4d6;
  --card: #fbf8f2;
  --card-2: #f6f0e6;
  --ink: #1f1b16;
  --ink-2: #4a433b;
  --muted: #847a6e;
  --line: #ddd3c3;
  --line-2: #cfc2ad;

  --orange: #e8622a;
  --orange-h: #d4561f;
  --orange-soft: rgba(232, 98, 42, .12);
  --f-orange: #f4a27a;
  --f-clay: #efc3a6;
  --f-sun: #f3d48a;
  --f-sage: #c9d7b4;
  --f-sky: #bfd0dd;
  --f-paper: #fffdf8;
  --green: #4ea65a;
  --red: #c9543a;

  --stroke: #1f1b16;
  --grain: .42;
  --grain-blend: multiply;
  --shadow-1: 0 1px 2px rgba(60, 40, 20, .05), 0 8px 24px -10px rgba(60, 40, 20, .18);
  --shadow-2: 0 2px 4px rgba(60, 40, 20, .05), 0 30px 70px -24px rgba(60, 40, 20, .32);

  --f-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-serif: 'Playfair Display', Georgia, serif;
  --f-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --f-deva: 'Noto Sans Devanagari', 'Nirmala UI', sans-serif;
  --f-deva-serif: 'Tiro Devanagari Hindi', 'Nirmala UI', serif;

  --max: 1200px;
  --nav-h: 72px;
  --r: 28px;
  --r-sm: 16px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #15120e; --paper-2: #1c1813; --card: #1f1a15; --card-2: #251f19;
    --ink: #f2eadd; --ink-2: #cfc4b3; --muted: #978c7d; --line: #2f2922; --line-2: #3e352b;
    --orange: #f2763f; --orange-h: #f8894f; --orange-soft: rgba(242, 118, 63, .14);
    --f-orange: #c9643a; --f-clay: #a8735a; --f-sun: #b8994e; --f-sage: #7f9068; --f-sky: #6f8596; --f-paper: #2a241d;
    --green: #6cc078; --red: #e07a5f;
    --stroke: #f2eadd; --grain: .3; --grain-blend: overlay;
    --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -10px rgba(0,0,0,.6);
    --shadow-2: 0 2px 4px rgba(0,0,0,.3), 0 30px 70px -24px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #15120e; --paper-2: #1c1813; --card: #1f1a15; --card-2: #251f19;
  --ink: #f2eadd; --ink-2: #cfc4b3; --muted: #978c7d; --line: #2f2922; --line-2: #3e352b;
  --orange: #f2763f; --orange-h: #f8894f; --orange-soft: rgba(242, 118, 63, .14);
  --f-orange: #c9643a; --f-clay: #a8735a; --f-sun: #b8994e; --f-sage: #7f9068; --f-sky: #6f8596; --f-paper: #2a241d;
  --green: #6cc078; --red: #e07a5f;
  --stroke: #f2eadd; --grain: .3; --grain-blend: overlay;
  --shadow-1: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -10px rgba(0,0,0,.6);
  --shadow-2: 0 2px 4px rgba(0,0,0,.3), 0 30px 70px -24px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* ─── BASE ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 10px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
.deva, .deva * { font-family: var(--f-deva); }

.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
  opacity: var(--grain); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; background: var(--orange); transform-origin: 0 50%; transform: scaleX(0); }

/* line-art primitives */
.ln { fill: none; stroke: var(--stroke); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ln.thin { stroke-width: 1.5; opacity: .55; }
.fl { stroke: none; transition: fill .4s var(--ease); }
.fl-orange { fill: var(--f-orange); } .fl-clay { fill: var(--f-clay); } .fl-sun { fill: var(--f-sun); }
.fl-sage { fill: var(--f-sage); } .fl-sky { fill: var(--f-sky); } .fl-paper { fill: var(--f-paper); }
.dot-ink { fill: var(--stroke); }
.dot-ln { stroke: var(--stroke); stroke-width: 2; }

/* ─── BUTTONS ────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 1rem; white-space: nowrap; transition: transform .35s var(--spring), background .2s, border-color .2s, color .2s, box-shadow .3s; -webkit-tap-highlight-color: transparent; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-sm svg { width: 17px; height: 17px; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 1.05rem; }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 10px 26px -10px rgba(232, 98, 42, .7); }
.btn-primary:hover { background: var(--orange-h); transform: translateY(-3px); box-shadow: 0 16px 34px -12px rgba(232, 98, 42, .75); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { transform: translateY(-2px); }
.btn-line { border: 1.5px solid var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
.btn-ghost-light { border: 1.5px solid rgba(255, 255, 255, .35); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; transform: translateY(-3px); }

.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; position: relative; transition: border-color .2s, transform .35s var(--spring); }
.icon-btn:hover { border-color: var(--ink); }

/* ─── NAV ────────────────────────────────────────────────────────── */
.nav { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.nav.is-stuck { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2); border-bottom-color: var(--line); }
.nav-inner { max-width: var(--max); height: var(--nav-h); margin: 0 auto; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo { width: 34px; height: 34px; transition: transform .6s var(--spring); }
.brand:hover .brand-logo { transform: rotate(-10deg) scale(1.06); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text b { font-weight: 700; font-size: 1.18rem; letter-spacing: -.02em; }
.brand-text small { font-size: .7rem; color: var(--muted); letter-spacing: .02em; }
.nav-links { display: flex; gap: 2px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: .94rem; color: var(--ink-2); transition: background .2s, color .2s; }
.nav-links a:hover, .nav-links a.is-active { background: var(--paper-2); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.theme-btn svg { position: absolute; width: 20px; height: 20px; transition: opacity .3s, transform .5s var(--spring); }
.theme-btn:hover { transform: rotate(-15deg); }
.i-moon { opacity: 0; transform: rotate(-60deg) scale(.6); }
.is-dark .i-sun { opacity: 0; transform: rotate(60deg) scale(.6); }
.is-dark .i-moon { opacity: 1; transform: none; }
.menu-btn { display: none; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 1.8px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--spring), top .35s var(--spring); }
.menu-btn span:first-child { top: 16px; } .menu-btn span:last-child { top: 24px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.menu { display: none; }

/* ─── HERO ───────────────────────────────────────────────────────── */
.hero { position: relative; padding-top: clamp(48px, 8vw, 96px); overflow: hidden; }
.doodles { position: absolute; inset: 0; pointer-events: none; }
.doodle { position: absolute; overflow: visible; will-change: transform; }
.d1 { width: 64px; top: 9%; left: 9%; }
.d2 { width: 120px; top: 18%; right: 7%; }
.d3 { width: 104px; top: 46%; left: 4%; }
.d4 { width: 56px; top: 6%; right: 26%; }
.d5 { width: 130px; top: 40%; right: 3%; }
.d6 { width: 78px; top: 4%; left: 30%; }
/* float via `transform`; scroll parallax via the separate `translate` property, so they combine */
.d1 { animation: floaty 8s ease-in-out infinite; }
.d2 { animation: floaty 11s ease-in-out infinite -2s; }
.d3 { animation: floaty 10s ease-in-out infinite -3s; }
.d4 { animation: floaty 7s ease-in-out infinite -1s; }
.d5 { animation: floaty 9s ease-in-out infinite -5s; }
.d6 { animation: floaty 12s ease-in-out infinite -6s; }
.doodles .doodle { opacity: 0; transition: opacity 1.2s var(--ease); }
.doodles.is-in .doodle { opacity: 1; }

.hero-inner { position: relative; z-index: 2; text-align: center; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .88rem; font-weight: 500; color: var(--ink-2); box-shadow: var(--shadow-1); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: ping 2s infinite; }
.hero-title { margin-top: 26px; font-weight: 600; font-size: clamp(3rem, 9vw, 7.4rem); line-height: .98; letter-spacing: -.045em; }
.hero-title .line { display: block; }
.hero-title .word { display: inline-block; }
.hero-title .word-em { font-family: var(--f-serif); font-weight: 500; letter-spacing: -.02em; color: var(--orange); position: relative; padding-right: .06em; }
.hero-title .word-em::after { content: ""; position: absolute; left: 2%; right: 2%; bottom: -.04em; height: .16em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 13C60 4 120 5 160 9s100 6 137-4' fill='none' stroke='%23e8622a' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 100% 100%; transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .9s; opacity: .55; }
.hero-title.is-in .word-em::after { transform: scaleX(1); }
.js .hero-title .word { opacity: 0; transform: translateY(.5em) rotate(4deg); transition: opacity .8s var(--ease), transform .9s var(--spring); transition-delay: calc(var(--i, 0) * 80ms + 120ms); }
.js .hero-title.is-in .word { opacity: 1; transform: none; }
.hero-sub { max-width: 640px; margin-top: 26px; font-size: clamp(1.05rem, 1.8vw, 1.22rem); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 36px; }
.hero-trust { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 26px; font-size: .92rem; color: var(--muted); }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--green); }
.js .reveal-now { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; }
.js .pill.reveal-now { animation-delay: .05s; }
.js .hero-sub.reveal-now { animation-delay: .55s; }
.js .hero-cta.reveal-now { animation-delay: .7s; }
.js .hero-trust.reveal-now { animation-delay: .85s; }

/* app mockup */
.mock-wrap { position: relative; z-index: 2; margin-top: clamp(56px, 8vw, 88px); perspective: 1800px; }
.mock { position: relative; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-2); overflow: hidden; transform-origin: 50% 0; transform: rotateX(var(--tilt, 14deg)) scale(var(--sc, .94)); transition: transform .1s linear; will-change: transform; }
.js .mock { opacity: 0; animation: rise 1.1s var(--ease) 1s forwards; }
.mock-bar { display: flex; align-items: center; gap: 14px; height: 48px; padding: 0 18px; border-bottom: 1px solid var(--line); background: var(--card-2); }
.mock-dots { display: inline-flex; gap: 7px; }
.mock-dots i { width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.mock-dots i:first-child { background: var(--f-orange); border-color: transparent; }
.mock-title { flex: 1; text-align: center; font-size: .86rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-title b { color: var(--ink); font-weight: 600; }
.mock-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; color: var(--green); background: color-mix(in srgb, var(--green) 12%, transparent); }
.lock svg { width: 13px; height: 13px; }
.mock-body { display: grid; grid-template-columns: 230px 1fr 280px; min-height: 440px; }
.mock-body > * { min-width: 0; }
.mock-side { padding: 20px 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.mock-label { font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.src-list { list-style: none; display: grid; gap: 6px; }
.src { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; font-size: .84rem; color: var(--ink-2); transition: background .3s, border-color .3s, color .3s; }
.src.is-on { background: var(--orange-soft); border-color: color-mix(in srgb, var(--orange) 30%, transparent); color: var(--ink); }
.src-ico { flex: none; font-family: var(--f-mono); font-size: .58rem; font-weight: 500; padding: 4px 5px; border-radius: 5px; background: var(--paper-2); color: var(--muted); }
.src.is-on .src-ico { background: var(--orange); color: #fff; }
.src-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-drop { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 10px; border: 1.5px dashed var(--line-2); border-radius: 12px; font-size: .8rem; color: var(--muted); }
.mock-drop svg { width: 17px; height: 17px; animation: nudge 2.4s ease-in-out infinite; }
.mock-model { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 12px; background: var(--paper-2); font-size: .82rem; color: var(--ink-2); margin-top: auto; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pingG 2s infinite; }

.mock-chat { display: flex; flex-direction: column; padding: 22px; gap: 16px; min-width: 0; }
.chat-scroll { flex: 1; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 92%; font-size: .95rem; line-height: 1.55; }
.msg-user { align-self: flex-end; padding: 11px 16px; border-radius: 18px 18px 4px 18px; background: var(--ink); color: var(--paper); transition: opacity .35s, transform .45s var(--spring); }
.msg-ai { display: flex; gap: 10px; align-items: flex-start; transition: opacity .35s; }
.msg-ai p { padding: 12px 16px; border-radius: 4px 18px 18px 18px; background: var(--card-2); border: 1px solid var(--line); min-height: 48px; }
.ai-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); border: 1px solid var(--line); }
.msg.is-hidden { opacity: 0; transform: translateY(8px); }
.caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; vertical-align: -.15em; background: var(--orange); animation: blink 1s steps(2) infinite; }
.cite { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 5px; margin: 0 2px; border-radius: 6px; font-family: var(--f-mono); font-size: .7rem; font-weight: 500; vertical-align: 1px; background: var(--orange-soft); color: var(--orange); border: 1px solid color-mix(in srgb, var(--orange) 35%, transparent); transition: background .2s, color .2s, transform .3s var(--spring); }
button.cite:hover, .cite.is-active { background: var(--orange); color: #fff; transform: translateY(-1px); }
.cite.pop { animation: pop .5s var(--spring); }
.chat-input { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; padding: 0 6px 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card-2); font-size: .88rem; color: var(--muted); }
.chat-input span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.send { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: #fff; }
.send svg { width: 17px; height: 17px; }

.mock-pdf { border-left: 1px solid var(--line); padding: 18px; background: var(--paper-2); display: flex; flex-direction: column; gap: 12px; }
.pdf-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .78rem; color: var(--muted); }
.pdf-head span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdf-page { flex: none; font-family: var(--f-mono); font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--ink); transition: transform .35s var(--spring); }
.pdf-page.pop { animation: pop .5s var(--spring); }
.pdf-sheet { position: relative; flex: 1; border-radius: 10px; background: var(--f-paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); padding: 22px 18px; display: flex; flex-direction: column; gap: 11px; }
.pdf-h { display: block; width: 55%; height: 10px; border-radius: 4px; background: var(--ink); opacity: .75; margin-bottom: 6px; }
.pdf-l { display: block; width: var(--w); height: 6px; border-radius: 3px; background: var(--line-2); }
.pdf-hl { position: absolute; left: 12px; right: 12px; height: 34px; border-radius: 8px; background: color-mix(in srgb, var(--orange) 22%, transparent); border: 1.5px solid color-mix(in srgb, var(--orange) 55%, transparent); top: var(--hl-top, 120px); transition: top .6s var(--spring), opacity .3s; }
.pdf-hl.hl-go { animation: hlFlash .9s var(--ease); }
.mock-caption { margin-top: 18px; text-align: center; font-size: .86rem; color: var(--muted); }

/* marquee */
.marquee { margin-top: clamp(64px, 9vw, 110px); border-block: 1px solid var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; align-items: center; gap: 30px; width: max-content; padding: 22px 0; animation: marquee 40s linear infinite; font-weight: 500; font-size: 1.1rem; color: var(--ink-2); white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--orange); font-size: .9rem; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ─── SECTIONS ───────────────────────────────────────────────────── */
.section { position: relative; padding: clamp(88px, 12vw, 160px) 0; }
.head { text-align: center; max-width: 720px; margin: 0 auto clamp(48px, 7vw, 80px); }
.kicker { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.section h2 { margin-top: 14px; font-weight: 600; font-size: clamp(2.1rem, 5vw, 3.7rem); line-height: 1.06; letter-spacing: -.035em; }
.section h2 em { font-family: var(--f-serif); font-weight: 500; letter-spacing: -.015em; color: var(--orange); }
.lede { margin-top: 18px; font-size: clamp(1.02rem, 1.6vw, 1.15rem); color: var(--ink-2); }

/* reveal */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--delay, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ─── HOW (sticky story) ─────────────────────────────────────────── */
.story { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story-visual { position: sticky; top: calc(var(--nav-h) + 40px); height: min(520px, 68vh); }
.sv-frame { position: relative; height: 100%; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); overflow: hidden;
  background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 22px 22px; }
.sv { position: absolute; inset: 0; display: grid; place-items: center; padding: 30px; opacity: 0; transform: scale(.96) translateY(14px); transition: opacity .55s var(--ease), transform .7s var(--spring); pointer-events: none; }
.sv.is-on { opacity: 1; transform: none; }
.sv svg { width: min(100%, 380px); height: auto; overflow: visible; }
.sv-1 .fall { transform-box: fill-box; }
.sv-1.is-on .f1 { animation: fall 2.8s var(--spring) infinite; }
.sv-1.is-on .f2 { animation: fall 2.8s var(--spring) infinite .45s; }
.sv-1.is-on .f3 { animation: fall 2.8s var(--spring) infinite .9s; }
.sv-chat { display: flex; flex-direction: column; gap: 14px; width: min(100%, 360px); }
.sv-bubble { padding: 13px 18px; border-radius: 20px; font-size: 1rem; max-width: 86%; }
.sv-bubble.user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; }
.sv-bubble.small { font-size: .92rem; }
.sv-bubble.ai { align-self: flex-start; display: inline-flex; gap: 6px; background: var(--card-2); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.sv-bubble.ai i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); animation: dots 1.2s ease-in-out infinite; }
.sv-bubble.ai i:nth-child(2) { animation-delay: .15s; } .sv-bubble.ai i:nth-child(3) { animation-delay: .3s; }
.sv-2 .sv-bubble { opacity: 0; transform: translateY(10px); }
.sv-2.is-on .sv-bubble { animation: rise .6s var(--spring) forwards; }
.sv-2.is-on .sv-bubble:nth-child(2) { animation-delay: .5s; }
.sv-2.is-on .sv-bubble:nth-child(3) { animation-delay: 1.1s; }
.sv-cite { display: grid; gap: 4px; width: min(100%, 360px); }
.sv-answer { padding: 14px 18px; border-radius: 18px; background: var(--card-2); border: 1px solid var(--line); font-size: 1rem; }
.sv-arrow { width: 120px !important; justify-self: center; margin-left: 40px; }
.sv-page { position: relative; justify-self: end; width: 70%; padding: 20px 16px; border-radius: 12px; background: var(--f-paper); border: 1px solid var(--line); box-shadow: var(--shadow-1); display: grid; gap: 10px; }
.sv-page span { display: block; height: 7px; border-radius: 3px; background: var(--line-2); }
.sv-page span.hl { height: 22px; margin: -2px -6px; border-radius: 6px; background: color-mix(in srgb, var(--orange) 25%, transparent); border: 1.5px solid color-mix(in srgb, var(--orange) 55%, transparent); }
.sv-3.is-on .sv-page span.hl { animation: hlFlash 1.4s var(--ease) .6s; }
.sv-page b { position: absolute; top: -10px; right: -10px; font-family: var(--f-mono); font-size: .7rem; padding: 3px 8px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 500; }
.draw-me { stroke-dasharray: 1; stroke-dashoffset: 1; }
.sv-3.is-on .draw-me { animation: draw 1s var(--ease) .2s forwards; }
.sv-cards { position: relative; width: min(100%, 320px); height: 210px; }
.sv-card { position: absolute; inset: 0; border-radius: 20px; background: var(--card-2); border: 1.5px solid var(--stroke); }
.sv-card.c1 { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 26px; font-size: 1.2rem; font-weight: 600; line-height: 1.3; background: var(--f-paper); box-shadow: var(--shadow-1); }
.sv-card.c1 small { font-family: var(--f-mono); font-size: .68rem; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.sv-card.c2 { background: var(--f-sun); transform: rotate(-4deg) translate(-10px, 8px); }
.sv-card.c3 { background: var(--f-sky); transform: rotate(5deg) translate(12px, 12px); }
.sv-4.is-on .c1 { animation: deal .9s var(--spring); }
.sv-4.is-on .c2 { animation: deal2 .9s var(--spring) .08s backwards; }
.sv-4.is-on .c3 { animation: deal3 .9s var(--spring) .16s backwards; }

.story-steps { list-style: none; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 20px 0; opacity: .28; transition: opacity .5s var(--ease); }
.step.is-on { opacity: 1; }
.step-no { font-family: var(--f-mono); font-size: .85rem; color: var(--orange); }
.step h3 { margin-top: 10px; font-weight: 600; font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.12; letter-spacing: -.03em; }
.step p { margin-top: 14px; max-width: 460px; font-size: 1.1rem; color: var(--ink-2); }
.step:first-child { min-height: 50vh; justify-content: flex-start; padding-top: 60px; }
.step:last-child { min-height: 56vh; }

/* ─── STUDIO (bento) ─────────────────────────────────────────────── */
.studio { background: var(--paper-2); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.tile { display: flex; flex-direction: column; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .5s var(--spring), box-shadow .5s var(--ease), border-color .3s, opacity .9s var(--ease); }
.tile:hover { transform: translateY(-6px); box-shadow: var(--shadow-2); border-color: color-mix(in srgb, var(--ink) 22%, var(--line)); }
.tile-podcast, .tile-map { grid-column: span 3; }
.tile-flash, .tile-quiz { grid-column: span 3; }
.tile-sum, .tile-time { grid-column: span 3; }
.tile-art { position: relative; min-height: 250px; display: grid; place-items: center; padding: 28px; border-bottom: 1px solid var(--line); }
.tile-podcast .tile-art { background: color-mix(in srgb, var(--f-clay) 45%, var(--card)); }
.tile-flash .tile-art { background: color-mix(in srgb, var(--f-sun) 40%, var(--card)); }
.tile-quiz .tile-art { background: color-mix(in srgb, var(--f-sage) 45%, var(--card)); }
.tile-map .tile-art { background: color-mix(in srgb, var(--f-sky) 40%, var(--card)); }
.tile-sum .tile-art { background: color-mix(in srgb, var(--f-orange) 30%, var(--card)); }
.tile-time .tile-art { background: color-mix(in srgb, var(--f-clay) 30%, var(--card)); }
.tile-body { padding: 24px 28px 28px; }
.tile-body h3 { font-weight: 600; font-size: 1.45rem; letter-spacing: -.02em; }
.tile-body p { margin-top: 6px; color: var(--ink-2); }

/* pointer spotlight on cards (position set from JS) */
.tile, .lang-card { position: relative; isolation: isolate; }
.lang-card { overflow: hidden; }
.tile::after, .lang-card::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .35s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--orange) 10%, transparent), transparent 70%); }
.tile:hover::after, .lang-card:hover::after { opacity: 1; }
.tile-art, .tile-body { position: relative; }

/* podcast */
.hosts { display: flex; align-items: center; justify-content: center; gap: 18px; width: 100%; }
.host { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: .78rem; color: var(--ink-2); }
.face { position: relative; width: 66px; height: 66px; border-radius: 50%; border: 2.2px solid var(--stroke); background: var(--f-sun); display: block; transition: transform .3s var(--spring); }
.h-b .face { background: var(--f-sky); }
.face i { position: absolute; top: 24px; width: 6px; height: 8px; border-radius: 50%; background: var(--stroke); animation: blinkEye 4.5s infinite; }
.face i:first-child { left: 20px; } .face i:nth-child(2) { right: 20px; }
.h-b .face i { animation-delay: 1.4s; }
.face b { position: absolute; left: 50%; bottom: 15px; width: 18px; height: 8px; margin-left: -9px; border: 2.2px solid var(--stroke); border-top: 0; border-radius: 0 0 12px 12px; transition: height .12s; }
.hosts.is-playing .h-a.talking .face b, .hosts.is-playing .h-b.talking .face b { height: 12px; border-radius: 0 0 14px 14px; }
.hosts.is-playing .talking .face { transform: translateY(-3px) rotate(-3deg); }
.eq { flex: 1; max-width: 220px; display: flex; align-items: center; justify-content: center; gap: 4px; height: 60px; }
.eq i { width: 5px; height: 8px; border-radius: 4px; background: var(--stroke); opacity: .75; transition: height .12s ease; }
.play { position: absolute; right: 20px; bottom: 20px; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); box-shadow: var(--shadow-1); transition: transform .35s var(--spring); }
.play:hover { transform: scale(1.08); }
.play svg { width: 22px; height: 22px; }
.play .i-pause { display: none; }
.play[aria-pressed="true"] .i-play { display: none; }
.play[aria-pressed="true"] .i-pause { display: block; }

/* flashcard */
.flash { width: min(100%, 320px); height: 190px; perspective: 1000px; -webkit-tap-highlight-color: transparent; }
.flash-in { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .8s var(--spring); }
.flash.is-flipped .flash-in { transform: rotateY(180deg); }
.flash-face { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 22px 24px; border-radius: 20px; border: 1.8px solid var(--stroke); background: var(--f-paper); text-align: left; font-size: 1.12rem; font-weight: 600; line-height: 1.3; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: var(--shadow-1); }
.flash-face small { font-family: var(--f-mono); font-size: .66rem; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); }
.flash-face em { font-style: normal; font-size: .78rem; font-weight: 500; color: var(--muted); margin-top: auto; }
.flash-face.back { transform: rotateY(180deg); background: var(--ink); color: var(--paper); font-size: 1.6rem; }
.flash-face.back em { color: color-mix(in srgb, var(--paper) 60%, transparent); }
.flash:hover .flash-in { transform: rotateY(-8deg); }
.flash.is-flipped:hover .flash-in { transform: rotateY(172deg); }

/* quiz */
.quiz { width: min(100%, 340px); display: grid; gap: 8px; }
.quiz-q { font-weight: 600; font-size: 1rem; line-height: 1.35; margin-bottom: 4px; }
.quiz-o { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 0 16px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--f-paper); text-align: left; font-size: .94rem; font-weight: 500; transition: border-color .2s, background .2s, transform .3s var(--spring); }
.quiz-o:hover { border-color: var(--ink); transform: translateX(3px); }
.quiz-o.right { border-color: var(--green); background: color-mix(in srgb, var(--green) 14%, var(--f-paper)); }
.quiz-o.right::after { content: "✓"; color: var(--green); font-weight: 700; }
.quiz-o.wrong { border-color: var(--red); background: color-mix(in srgb, var(--red) 12%, var(--f-paper)); animation: shake .4s ease; }
.quiz-o.wrong::after { content: "✕"; color: var(--red); font-weight: 700; }
.quiz-fb { min-height: 1.4em; font-size: .85rem; color: var(--ink-2); }

/* mind map */
.mindmap { width: 100%; max-width: 400px; overflow: visible; }
.mindmap text { font-family: var(--f-sans); font-size: 12.5px; font-weight: 600; text-anchor: middle; fill: var(--ink); }
.mindmap .n0 text { font-size: 13px; }
.mindmap .node { transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.5); transition: opacity .5s var(--ease), transform .6s var(--spring); cursor: pointer; }
.tile-map.in .node { opacity: 1; transform: none; }
.tile-map.in .n1 { transition-delay: .5s; } .tile-map.in .n2 { transition-delay: .6s; } .tile-map.in .n3 { transition-delay: .7s; } .tile-map.in .n4 { transition-delay: .8s; }
.tile-map.in .draw-me { animation: draw 1s var(--ease) .2s forwards; }
.mindmap .node:hover { transform: scale(1.08); }

/* summary */
.sum { width: min(100%, 360px); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.seg-b { height: 34px; padding: 0 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--ink-2); transition: background .25s, color .25s; }
.seg-b.is-on { background: var(--ink); color: var(--paper); }
.sum-text { margin-top: 16px; padding: 16px 18px; border-radius: 16px; background: var(--f-paper); border: 1px solid var(--line); font-size: .95rem; line-height: 1.55; min-height: 96px; transition: opacity .25s; }
.sum-text.fade { opacity: 0; }

/* timeline */
.timeline { position: relative; width: 100%; max-width: 420px; height: 120px; }
.tl-line { position: absolute; left: 4%; right: 4%; top: 50%; border-top: 2px solid var(--stroke); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease) .1s; }
.tl-dot { position: absolute; left: var(--x); top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--orange); border: 2.2px solid var(--stroke); opacity: 0; transform: scale(0); transition: opacity .4s, transform .6s var(--spring); transition-delay: calc(var(--d) + .6s); }
.tl-dot b, .tl-dot small { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.tl-dot b { bottom: 24px; font-family: var(--f-mono); font-size: .8rem; font-weight: 500; }
.tl-dot small { top: 24px; font-size: .78rem; color: var(--ink-2); }
.tile-time.in .tl-line { transform: scaleX(1); }
.tile-time.in .tl-dot { opacity: 1; transform: none; }

/* ─── PRIVACY ────────────────────────────────────────────────────── */
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.privacy-art svg { width: 100%; max-width: 520px; margin: 0 auto; overflow: visible; }
.boundary { stroke-dasharray: 4 9; opacity: .5; animation: spinDash 30s linear infinite; }
.dashy { stroke-dasharray: 3 6; opacity: .6; }
.cloud .x { stroke: var(--orange); stroke-width: 3; }
.orbit { transform-origin: 190px 214px; }
.o1 { animation: orbit 9s linear infinite; }
.o2 { animation: orbit 12s linear infinite reverse; }
.o3 { animation: orbit 7s linear infinite; }
.checks { list-style: none; display: grid; gap: 22px; margin-top: 36px; }
.checks li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; }
.ck { width: 34px; height: 34px; border-radius: 50%; border: 1.8px solid var(--stroke); position: relative; background: var(--f-sage); }
.ck::after { content: ""; position: absolute; left: 11px; top: 7px; width: 8px; height: 14px; border: solid var(--stroke); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }
.checks b { font-size: 1.1rem; font-weight: 600; }
.checks p { margin-top: 2px; color: var(--ink-2); }

/* ─── LANGUAGES ──────────────────────────────────────────────────── */
.lang-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lang-card { padding: 28px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; transition: transform .5s var(--spring), box-shadow .5s, opacity .9s var(--ease); }
.lang-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-2); }
.lang-tag { align-self: flex-start; font-family: var(--f-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.deva .lang-tag { font-family: var(--f-deva); letter-spacing: 0; font-size: .82rem; text-transform: none; }
.lq { align-self: flex-end; max-width: 92%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--ink); color: var(--paper); font-size: .98rem; }
.la { max-width: 94%; padding: 12px 16px; border-radius: 4px 18px 18px 18px; background: var(--card-2); border: 1px solid var(--line); font-size: .98rem; }

/* ─── HARDWARE ───────────────────────────────────────────────────── */
.hw { background: var(--paper-2); }
.hw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.hw-card { padding: clamp(26px, 4vw, 40px); border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.hw-label { font-weight: 600; margin-bottom: 14px; }
.seg-lg { display: flex; width: 100%; }
.seg-lg .seg-b { flex: 1; height: 44px; font-size: .95rem; }
.hw-result { margin-top: 28px; }
.hw-model { font-weight: 600; font-size: 1.7rem; letter-spacing: -.02em; }
.hw-desc { margin-top: 4px; color: var(--ink-2); min-height: 3.2em; }
.meters { display: grid; gap: 14px; margin-top: 22px; }
.meter { display: grid; grid-template-columns: 120px 1fr; align-items: center; gap: 14px; font-size: .9rem; color: var(--ink-2); }
.meter i { display: block; height: 10px; border-radius: 10px; background: var(--paper-2); overflow: hidden; border: 1px solid var(--line); }
.meter b { display: block; height: 100%; width: var(--v); border-radius: inherit; background: var(--orange); transition: width .8s var(--spring); }
.hw-note { margin-top: 22px; font-size: .82rem; color: var(--muted); }

/* ─── COMPARE ────────────────────────────────────────────────────── */
.table-wrap { max-width: 900px; margin: 0 auto; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); overflow: hidden; box-shadow: var(--shadow-1); }
.cmp { width: 100%; border-collapse: collapse; }
.cmp th, .cmp td { padding: 18px 24px; text-align: left; border-bottom: 1px solid var(--line); font-size: .98rem; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp thead th { font-size: .9rem; font-weight: 600; color: var(--muted); background: var(--card-2); }
.cmp thead th.us { color: var(--orange); font-size: 1.05rem; }
.cmp tbody th { font-weight: 500; }
.cmp td.us { background: var(--orange-soft); }
.yes, .no { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.yes::before, .no::before { content: ""; width: 20px; height: 20px; border-radius: 50%; flex: none; background-repeat: no-repeat; background-position: center; background-size: 12px; }
.yes { color: var(--green); }
.yes::before { background-color: color-mix(in srgb, var(--green) 18%, transparent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m2.5 6 2.3 2.3L9.5 3.7' fill='none' stroke='%234ea65a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.no { color: var(--muted); font-weight: 500; }
.no::before { background-color: var(--paper-2); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3.5 3.5l5 5M8.5 3.5l-5 5' fill='none' stroke='%23847a6e' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ─── ROADMAP ────────────────────────────────────────────────────── */
.road { list-style: none; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.road::before { content: ""; position: absolute; left: 14px; right: 14px; top: 13px; border-top: 2px dashed var(--line-2); }
.road-item { position: relative; padding-top: 48px; }
.road-dot { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--stroke); background: var(--card); }
.road-item.now .road-dot { background: var(--orange); box-shadow: 0 0 0 6px var(--orange-soft); animation: pingO 2.2s infinite; }
.road-tag { font-family: var(--f-mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.road-item.now .road-tag { color: var(--orange); }
.road-item h3 { margin-top: 8px; font-weight: 600; font-size: 1.3rem; letter-spacing: -.02em; }
.road-item p { margin-top: 6px; color: var(--ink-2); font-size: .97rem; }

/* ─── FAQ ────────────────────────────────────────────────────────── */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq-head h2 { margin-top: 14px; }
.faq-list { display: grid; gap: 12px; }
.qa { border-radius: 20px; background: var(--card); border: 1px solid var(--line); transition: border-color .25s, box-shadow .3s, opacity .9s var(--ease), transform .9s var(--ease); }
.qa[open] { border-color: color-mix(in srgb, var(--ink) 25%, var(--line)); box-shadow: var(--shadow-1); }
.qa summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 1.06rem; cursor: pointer; }
.qa summary::-webkit-details-marker { display: none; }
.qa-ico { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); transition: transform .4s var(--spring), background .2s; }
.qa-ico::before, .qa-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.8px; margin: -.9px 0 0 -6px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--spring); }
.qa-ico::after { transform: rotate(90deg); }
.qa[open] .qa-ico { transform: rotate(180deg); background: var(--ink); }
.qa[open] .qa-ico::before { background: var(--paper); }
.qa[open] .qa-ico::after { transform: rotate(0); background: var(--paper); }
.qa-a { padding: 0 24px 22px; color: var(--ink-2); }
.qa[open] .qa-a { animation: rise .45s var(--ease); }

/* ─── CTA ────────────────────────────────────────────────────────── */
.cta-sec { padding-top: 0; padding-bottom: clamp(24px, 4vw, 48px); }
.cta { position: relative; overflow: hidden; text-align: center; padding: clamp(56px, 8vw, 100px) clamp(24px, 6vw, 80px); border-radius: 36px; background: #1f1b16; color: #f2eadd; }
.cta::before { content: ""; position: absolute; inset: 0; background: radial-gradient(55% 80% at 50% 120%, rgba(232, 98, 42, .5), transparent 70%); pointer-events: none; }
.cta > * { position: relative; }
.cta .ln { stroke: #f2eadd; }
.cta-book { width: 150px; margin: 0 auto 20px; overflow: visible; }
.page-flip { transform-origin: 100px 44px; animation: flip 3.2s var(--ease) infinite; }
.cta h2 { margin-top: 0; color: #f2eadd; }
.cta h2 em { color: #f4a27a; }
.cta p { max-width: 520px; margin: 18px auto 0; color: rgba(242, 234, 221, .75); font-size: 1.1rem; }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.footer { padding: clamp(64px, 8vw, 96px) 0 calc(28px + env(safe-area-inset-bottom)); }
.foot-top { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-brand p { margin-top: 14px; max-width: 320px; color: var(--ink-2); font-size: .95rem; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col p { font-weight: 600; margin-bottom: 4px; }
.foot-col a { color: var(--ink-2); font-size: .95rem; transition: color .2s; }
.foot-col a:hover { color: var(--orange); }
.wordmark { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: clamp(48px, 8vw, 90px) 0 20px; font-weight: 700; font-size: clamp(4rem, 17vw, 15rem); line-height: .85; letter-spacing: -.06em; }
.deva-mark { font-family: var(--f-deva-serif); font-weight: 400; letter-spacing: 0; font-size: .34em; color: var(--orange); line-height: 1.4; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.foot-bottom a:hover { color: var(--ink); }

/* ─── KEYFRAMES ──────────────────────────────────────────────────── */
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(4deg); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(232, 98, 42, .5); } 80%, 100% { box-shadow: 0 0 0 9px rgba(232, 98, 42, 0); } }
@keyframes pingG { 0% { box-shadow: 0 0 0 0 rgba(78, 166, 90, .5); } 80%, 100% { box-shadow: 0 0 0 7px rgba(78, 166, 90, 0); } }
@keyframes pingO { 0%, 100% { box-shadow: 0 0 0 4px var(--orange-soft); } 50% { box-shadow: 0 0 0 10px transparent; } }
@keyframes nudge { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-3px); } }
@keyframes blink { to { visibility: hidden; } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }
@keyframes hlFlash { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 50%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fall { 0% { transform: translateY(-60px) rotate(-12deg); opacity: 0; } 15% { opacity: 1; } 55%, 75% { transform: translateY(110px) rotate(0); opacity: 1; } 100% { transform: translateY(130px) scale(.6); opacity: 0; } }
@keyframes dots { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-4px); opacity: 1; } }
@keyframes deal { from { transform: translateY(40px) rotate(8deg); opacity: 0; } }
@keyframes deal2 { from { transform: translateY(40px) rotate(-12deg); opacity: 0; } }
@keyframes deal3 { from { transform: translateY(40px) rotate(14deg); opacity: 0; } }
@keyframes blinkEye { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes spinDash { to { stroke-dashoffset: -260; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes flip { 0%, 30% { transform: rotate(0); opacity: 1; } 60% { transform: rotate(-30deg) scaleX(-1); opacity: .6; } 61%, 100% { opacity: 0; } }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .mock-body { grid-template-columns: 200px 1fr; }
  .mock-pdf { display: none; }
  .road { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .road::before { display: none; }
  .foot-top { grid-template-columns: 1fr 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: grid; }
  .menu { display: grid; padding: 0 20px; max-height: 0; overflow: hidden; background: var(--paper); border-bottom: 1px solid transparent; transition: max-height .45s var(--ease), padding .45s var(--ease), border-color .3s; }
  .menu a { padding: 15px 6px; font-size: 1.15rem; font-weight: 500; border-bottom: 1px solid var(--line); opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
  .menu .menu-cta { border-bottom: 0; color: var(--orange); font-weight: 600; }
  .menu.is-open { max-height: 480px; padding: 4px 20px 16px; border-bottom-color: var(--line); }
  .menu.is-open a { opacity: 1; transform: none; }
  .menu.is-open a:nth-child(2) { transition-delay: .03s; } .menu.is-open a:nth-child(3) { transition-delay: .06s; }
  .menu.is-open a:nth-child(4) { transition-delay: .09s; } .menu.is-open a:nth-child(5) { transition-delay: .12s; } .menu.is-open a:nth-child(6) { transition-delay: .15s; }

  .story { grid-template-columns: 1fr; gap: 0; }
  .story-visual { top: calc(var(--nav-h) + 12px); height: 300px; z-index: 2; }
  .sv-frame { box-shadow: var(--shadow-2); }
  .story-steps { position: relative; z-index: 1; }
  .step, .step:first-child, .step:last-child { min-height: 58vh; justify-content: center; padding: 40px 0; }
  .step p { max-width: none; }
  .privacy-grid, .hw-grid, .faq-grid { grid-template-columns: 1fr; }
  .privacy-art { max-width: 460px; margin: 0 auto; width: 100%; }
  .faq-head { position: static; text-align: center; }
  .lang-row { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .tile-podcast, .tile-map, .tile-flash, .tile-quiz, .tile-sum, .tile-time { grid-column: span 6; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; --r: 22px; }
  body { font-size: 16px; }
  .container, .nav-inner { padding: 0 18px; }
  .hide-sm { display: none; }
  .brand-text small { font-size: .66rem; }
  .doodles .d2, .doodles .d3, .doodles .d5, .doodles .d6 { display: none; }
  .d1 { width: 30px; top: 6px; left: 5%; }
  .d4 { width: 34px; top: 8px; right: 7%; }
  .hero-title { font-size: clamp(2.7rem, 13vw, 3.6rem); }
  .hero-cta { width: 100%; flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .mock-wrap { padding: 0 12px; }
  .mock { border-radius: 18px; }
  .mock-bar { height: 42px; padding: 0 12px; gap: 8px; }
  .mock-badge { padding: 3px 8px; font-size: .68rem; }
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mock-side { border-right: 0; border-bottom: 1px solid var(--line); padding: 12px; gap: 8px; }
  .mock-side .mock-label, .mock-drop, .mock-model { display: none; }
  .src-list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .src-list::-webkit-scrollbar { display: none; }
  .src { flex: none; padding: 7px 10px; font-size: .78rem; }
  .mock-chat { padding: 16px 14px; min-height: 300px; }
  .msg { font-size: .9rem; max-width: 96%; }
  .marquee-track { font-size: 1rem; gap: 22px; }
  .section h2 { font-size: clamp(2rem, 9vw, 2.6rem); }
  .story-visual { height: 260px; }
  .sv { padding: 18px; }
  .sv-bubble { font-size: .92rem; }
  .step h3 { font-size: 1.6rem; }
  .step p { font-size: 1.02rem; }
  .tile-art { min-height: 220px; padding: 22px 18px; }
  .tile-body { padding: 20px 22px 24px; }
  .face { width: 54px; height: 54px; }
  .face i { top: 19px; } .face i:first-child { left: 15px; } .face i:nth-child(2) { right: 15px; }
  .face b { bottom: 11px; }
  .eq { gap: 3px; }
  .eq i { width: 4px; }
  .play { right: 14px; bottom: 14px; width: 46px; height: 46px; }
  .meter { grid-template-columns: 100px 1fr; }
  .cmp th, .cmp td { padding: 14px 12px; font-size: .88rem; }
  .cmp thead th { font-size: .8rem; }
  .cmp thead th.us { font-size: .92rem; }
  .yes::before, .no::before { display: none; }
  .road { grid-template-columns: 1fr; }
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .wordmark { flex-direction: column; align-items: flex-start; gap: 0; }
  .deva-mark { font-size: .4em; }
  .cta { border-radius: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-now, .js .mock, .js .hero-title .word { opacity: 1; transform: none; }
  .mock { transform: none; }
  .draw-me { stroke-dashoffset: 0; }
}
