/* ReadFluo website. Dark, editorial, motion that follows the scroll.
   Palette and type follow the app (DESIGN.md): brand pink on black, Literata for display,
   IBM Plex Sans for everything else. */

/* ---------- Fonts (self-hosted, latin + latin-ext for Turkish) ---------- */
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Plex'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/ibm-plex-sans-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/literata-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/literata-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/literata-latin-400-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/literata-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 600; font-display: swap; src: url(/fonts/literata-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/literata-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Literata'; font-style: normal; font-weight: 700; font-display: swap; src: url(/fonts/literata-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- Tokens ---------- */
:root {
  --bg: #000;
  --bg-2: #0b0b0d;
  --surface: #121215;
  --surface-2: #1c1c1f;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);
  --fg: #f5f5f7;
  --muted: #a1a1a6;
  --subtle: #6e6e73;
  --pink: #ff3b6e;
  --pink-light: #ff7a9c;
  --pink-deep: #e0134d;
  --pink-soft: rgba(255, 59, 110, 0.14);
  --success: #34c77b;
  --sans: 'Plex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --serif: 'Literata', Georgia, 'Times New Roman', serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --nav-h: 56px;
  --gutter: clamp(16px, 5vw, 32px);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p, li { text-wrap: pretty; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--pink-light); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--pink); color: #fff; }

.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.icon { flex: none; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--fg); color: #000; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 8px 24px -8px rgba(255, 59, 110, 0.6); }
.btn-primary:hover { background: #ff527f; }
.btn-sm { height: 34px; padding: 0 16px; font-size: 14px; }

/* ---------- Store buttons ---------- */
.stores { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 20px 0 16px; min-width: 176px;
  border-radius: 14px; background: #000; color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  transition: border-color 0.2s, transform 0.2s var(--ease), background-color 0.2s;
}
.store:hover { border-color: #fff; background: #0c0c0e; transform: translateY(-2px); }
.store:active { transform: scale(0.98); }
.store-glyph { width: 26px; height: 28px; }
.store[data-store='ios'] .store-glyph { width: 24px; margin-top: -3px; }
.store-text { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.store-top { font-size: 11px; font-weight: 500; letter-spacing: 0.01em; }
.store-name { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.stores-sm { justify-content: flex-start; gap: 10px; }
.stores-sm .store { height: 44px; min-width: 0; padding: 0 14px 0 12px; border-radius: 11px; }
.stores-sm .store-glyph { width: 20px; height: 22px; }
.stores-sm .store[data-store='ios'] .store-glyph { width: 19px; }
.stores-sm .store-top { font-size: 9px; }
.stores-sm .store-name { font-size: 16px; }

/* ---------- Header ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled, .nav.is-open {
  background: rgba(10, 10, 12, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: var(--border);
}
.nav-inner { height: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.brand .logo-mark { border-radius: 8px; }
.nav-links { display: flex; gap: 28px; margin-inline-start: auto; font-size: 14px; color: var(--muted); }
.nav-links a { transition: color 0.2s; }
.nav-links a:hover { color: var(--fg); }
.nav-toggle { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; margin-inline-end: -8px; }
.nav-toggle-close { display: none; }
.nav.is-open .nav-toggle-open { display: none; }
.nav.is-open .nav-toggle-close { display: block; }

@media (max-width: 760px) {
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto; margin: 0;
    flex-direction: column; gap: 0; padding: 8px var(--gutter) 20px;
    background: rgba(10, 10, 12, 0.96);
    -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    font-size: 20px; color: var(--fg);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; }
  .nav-cta { margin-inline-start: auto; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Reveal on scroll (only once the script runs, so nothing hides without it) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Shared section pieces ---------- */
section { position: relative; }
.eyebrow, .kicker { font-size: 15px; font-weight: 600; color: var(--pink-light); letter-spacing: 0.01em; }
.section-head { text-align: center; max-width: 820px; margin: 0 auto 64px; }
.section-head h2 { margin-top: 12px; font-family: var(--serif); font-size: clamp(36px, 5.6vw, 64px); line-height: 1.05; letter-spacing: -0.025em; }
.section-lead { margin-top: 20px; font-size: clamp(17px, 1.6vw, 21px); color: var(--muted); }
.lead { font-size: clamp(18px, 1.9vw, 22px); line-height: 1.45; color: var(--muted); }
.grad {
  background: linear-gradient(100deg, #ff9ab6 0%, var(--pink) 45%, #ff6a3d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Soft brand light behind heroes */
.hero-glow {
  position: absolute; left: 50%; top: -20vh; width: min(1200px, 160vw); height: 900px; transform: translateX(-50%);
  background:
    radial-gradient(closest-side, rgba(255, 59, 110, 0.32), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(255, 106, 61, 0.14), transparent 70%);
  filter: blur(40px); pointer-events: none; z-index: -1;
}
.hero-glow-sm { height: 520px; top: -260px; opacity: 0.7; }

/* ---------- Phone ---------- */
.phone {
  --w: 320px;
  position: relative; width: var(--w); max-width: 100%;
  padding: calc(var(--w) * 0.034);
  border-radius: calc(var(--w) * 0.16);
  background: linear-gradient(145deg, #3b3b40 0%, #151517 38%, #2c2c30 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 0 calc(var(--w) * 0.012) #0a0a0b,
    0 0 0 1px rgba(0, 0, 0, 0.8),
    0 50px 100px -30px rgba(0, 0, 0, 0.9),
    0 30px 80px -40px rgba(255, 59, 110, 0.35);
}
.phone-screen {
  position: relative; overflow: hidden;
  border-radius: calc(var(--w) * 0.128);
  background: #000;
  aspect-ratio: 390 / 844;
  isolation: isolate;
}
/* The status bar (time, island, battery) the web captures lack */
.phone-screen::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5.6%; z-index: 2;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 47'%3E%3Ctext x='52' y='31' font-family='-apple-system,Helvetica,Arial' font-size='16' font-weight='600' fill='white' text-anchor='middle'%3E9:41%3C/text%3E%3Crect x='142' y='11' width='106' height='30' rx='15' fill='%23050505'/%3E%3Cg fill='white'%3E%3Crect x='296' y='24' width='3' height='5' rx='1'/%3E%3Crect x='301' y='21' width='3' height='8' rx='1'/%3E%3Crect x='306' y='18' width='3' height='11' rx='1'/%3E%3Crect x='311' y='15' width='3' height='14' rx='1'/%3E%3Cpath d='M327 18.5a9.5 9.5 0 0 1 13 0l-1.6 1.6a7.3 7.3 0 0 0-9.8 0Zm3.2 3.2a5 5 0 0 1 6.6 0L333.5 25Z'/%3E%3Crect x='349' y='15' width='24' height='13' rx='4' fill='none' stroke='white' stroke-opacity='.45'/%3E%3Crect x='351' y='17' width='18' height='9' rx='2.2'/%3E%3Crect x='374.5' y='19.5' width='1.5' height='4' rx='.7' fill-opacity='.45'/%3E%3C/g%3E%3C/svg%3E")
    center / 100% 100% no-repeat, #000;
}
.phone-screen img { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 94.4%; object-fit: cover; object-position: top; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + clamp(56px, 10vh, 110px)); text-align: center; overflow: clip; isolation: isolate; }
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-title {
  margin-top: 18px;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(48px, 10.5vw, 128px); line-height: 0.98; letter-spacing: -0.035em;
}
.hero .lead { margin-top: 28px; max-width: 640px; }
.hero .stores { margin-top: 40px; }
.hero-note { margin-top: 16px; font-size: 14px; color: var(--subtle); }
.js .hero [data-reveal]:nth-child(2) { --delay: 0.08s; }
.js .hero [data-reveal]:nth-child(3) { --delay: 0.16s; }
.js .hero [data-reveal]:nth-child(4) { --delay: 0.24s; }
.js .hero [data-reveal]:nth-child(5) { --delay: 0.32s; }

.hero-stage {
  --p: 0;
  position: relative; margin: clamp(56px, 9vh, 96px) auto 0; width: fit-content;
  perspective: 1400px; padding-bottom: 80px;
}
.phone-hero {
  --w: clamp(260px, 30vw, 360px);
  transform: rotateX(calc((1 - var(--p)) * 22deg)) translateY(calc((1 - var(--p)) * 40px)) scale(calc(0.9 + var(--p) * 0.1));
  transform-origin: 50% 0%;
  will-change: transform;
}
.js .phone-hero { animation: rise 1.4s var(--ease) both 0.2s; }
@keyframes rise { from { opacity: 0; translate: 0 80px; } to { opacity: 1; translate: 0 0; } }

.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; border-radius: 18px;
  background: rgba(28, 28, 31, 0.7);
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border-strong);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  font-size: 15px; white-space: nowrap;
  translate: 0 calc(var(--p) * var(--drift, -60px));
}
.js .float { animation: pop 0.9s var(--ease) both; }
@keyframes pop { from { opacity: 0; scale: 0.85; } to { opacity: 1; scale: 1; } }
.float-word { left: -150px; top: 22%; flex-direction: column; align-items: flex-start; gap: 2px; --drift: -90px; animation-delay: 0.9s !important; }
.float-k { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.float-v { font-size: 13px; color: var(--muted); }
.float-streak { right: -140px; top: 46%; --drift: -40px; animation-delay: 1.1s !important; }
.float-streak b { font-weight: 700; }
.flame { width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 50% 60%, #ffd36b, var(--pink) 55%, transparent 70%); box-shadow: 0 0 16px rgba(255, 59, 110, 0.8); }
.float-check { left: -110px; top: 66%; color: var(--success); --drift: -120px; animation-delay: 1.3s !important; }
.float-check span { color: var(--fg); }
@media (max-width: 760px) {
  .float { font-size: 13px; padding: 9px 12px; border-radius: 14px; }
  .float-k { font-size: 17px; }
  .float-v { font-size: 11px; }
  .float-word { left: -28px; top: 16%; }
  .float-streak { right: -24px; top: 44%; }
  .float-check { left: -20px; top: 70%; }
}

/* ---------- Statement: words light up as they scroll by ---------- */
.statement { padding: clamp(100px, 22vh, 220px) 0; }
.statement-text {
  max-width: 980px; margin-inline: auto;
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(30px, 5vw, 64px); line-height: 1.16; letter-spacing: -0.02em;
}
.js .statement-text .w { color: var(--fg); opacity: 0.16; transition: opacity 0.35s linear; }
.js .statement-text .w.is-lit { opacity: 1; }
.js .statement-text .w.is-accent.is-lit { color: var(--pink-light); }

/* ---------- Tour: pinned phone, steps scroll past ---------- */
.tour { padding: 60px 0 40px; }
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.tour-step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; max-width: 460px; opacity: 0.28; transition: opacity 0.5s var(--ease); }
.tour-step.is-active { opacity: 1; }
.tour-step h3 { margin-top: 14px; font-family: var(--serif); font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.025em; }
.tour-step > p:not(.kicker) { margin-top: 18px; font-size: 19px; color: var(--muted); }
.tour-step .kicker { font-variant-numeric: tabular-nums; }
.phone-inline { display: none; }
.tour-sticky { position: sticky; top: calc(50vh - 330px); display: flex; align-items: center; justify-content: center; gap: 28px; padding-block: 0 40px; }
.phone-tour { --w: 300px; }
.phone-tour img { opacity: 0; transform: scale(1.04); transition: opacity 0.6s var(--ease), transform 0.8s var(--ease); }
.phone-tour img.is-active { opacity: 1; transform: none; }
.tour-dots { display: flex; flex-direction: column; gap: 10px; }
.tour-dots span { width: 6px; height: 6px; border-radius: 3px; background: var(--border-strong); transition: height 0.4s var(--ease), background-color 0.4s; }
.tour-dots span.is-active { height: 26px; background: var(--pink); }
@media (max-height: 760px) { .tour-sticky { top: calc(var(--nav-h) + 24px); } .phone-tour { --w: 260px; } }

@media (max-width: 900px) {
  .tour-grid { grid-template-columns: 1fr; gap: 0; }
  .tour-stage { display: none; }
  .tour-step { min-height: 0; opacity: 1; max-width: 560px; margin: 0 auto; padding: 48px 0; text-align: center; align-items: center; }
  .phone-inline { display: block; --w: min(300px, 76vw); margin-top: 40px; }
}

/* ---------- Stats ---------- */
.stats { padding: clamp(60px, 12vh, 120px) 0; border-block: 1px solid var(--border); background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.stat-value {
  font-family: var(--serif); font-weight: 700; font-size: clamp(52px, 7vw, 92px); line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 30%, #8a8a90 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat-label { margin-top: 12px; color: var(--muted); font-size: 16px; }
.js .stats [data-reveal]:nth-child(2) { --delay: 0.1s; }
.js .stats [data-reveal]:nth-child(3) { --delay: 0.2s; }
.js .stats [data-reveal]:nth-child(4) { --delay: 0.3s; }
@media (max-width: 760px) { .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px 16px; } }

/* ---------- Features bento ---------- */
.features { padding: clamp(100px, 16vh, 160px) 0; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card {
  position: relative; overflow: hidden;
  padding: 32px; border-radius: 28px;
  background: linear-gradient(180deg, #161619 0%, #0f0f11 100%);
  border: 1px solid var(--border);
  min-height: 280px; display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.card-wide { grid-column: span 2; }
.card-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--pink-soft); color: var(--pink-light); }
.card h3 { margin-top: 24px; font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; }
.card p { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 460px; }
.js .bento [data-reveal]:nth-child(3n + 2) { --delay: 0.08s; }
.js .bento [data-reveal]:nth-child(3n) { --delay: 0.16s; }

.level-chips { display: flex; gap: 10px; margin-top: auto; padding-top: 28px; flex-wrap: wrap; }
.level-chips span {
  display: grid; place-items: center; min-width: 58px; height: 58px; border-radius: 16px;
  font-weight: 700; font-size: 18px; background: var(--surface-2); border: 1px solid var(--border);
  transition: background-color 0.5s, color 0.5s, transform 0.6s var(--ease); transition-delay: calc(var(--i) * 0.08s + 0.3s);
}
.js .level-chips span { transform: translateY(16px); opacity: 0.4; }
.is-in .level-chips span { transform: none; opacity: 1; }
.is-in .level-chips span:nth-child(3) { background: var(--pink); color: #fff; border-color: transparent; }

.lang-pills { display: flex; gap: 10px; margin-top: auto; padding-top: 28px; flex-wrap: wrap; }
.lang-pills span { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--border-strong); font-size: 18px; font-weight: 600; }
.lang-pills span:first-child { background: var(--pink); border-color: transparent; }

.wave { display: flex; align-items: center; gap: 4px; height: 56px; margin-top: auto; padding-top: 24px; }
.wave i { flex: 1; max-width: 6px; height: 30%; border-radius: 3px; background: var(--pink); opacity: 0.85; animation: wave 1.3s ease-in-out infinite; animation-delay: calc(var(--i) * -0.09s); }
.wave i:nth-child(3n) { background: var(--pink-light); }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: 100%; } }

@media (max-width: 900px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .card { min-height: 0; padding: 28px 24px; }
}

/* ---------- Language pairs ---------- */
.pairs { padding: clamp(60px, 10vh, 120px) 0; }
.pair-table { max-width: 720px; margin: 0 auto; border-radius: 28px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.pair-row { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 16px; padding: 22px 28px; border-top: 1px solid var(--border); }
.pair-head { border-top: 0; padding-block: 14px; font-size: 13px; font-weight: 600; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.08em; }
.pair-from { display: flex; flex-direction: column; }
.pair-from b { align-self: flex-start; font-size: 22px; font-weight: 600; }
.pair-from small { color: var(--muted); font-size: 14px; }
.pair-to { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: var(--pink-light); }
.pair-chip { padding: 7px 14px; border-radius: 999px; background: var(--pink-soft); color: var(--fg); font-weight: 600; font-size: 15px; }
@media (max-width: 520px) { .pair-row { padding: 18px 20px; grid-template-columns: 1fr 1.2fr; } .pair-from b { font-size: 19px; } }

/* ---------- How it works ---------- */
.how { padding: clamp(100px, 14vh, 160px) 0; }
.how-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.how .section-head { text-align: left; margin: 0 0 48px; }
.how-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.how-steps li { display: flex; gap: 20px; align-items: flex-start; }
.how-num { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-family: var(--serif); font-weight: 700; font-size: 22px; background: var(--surface-2); border: 1px solid var(--border-strong); }
.how-steps li:first-child .how-num { background: var(--pink); border-color: transparent; }
.how-steps h3 { font-size: 22px; letter-spacing: -0.01em; }
.how-steps p { margin-top: 4px; color: var(--muted); }
.js .how-steps li:nth-child(2) { --delay: 0.1s; }
.js .how-steps li:nth-child(3) { --delay: 0.2s; }
.how-stage { display: flex; justify-content: center; }
.phone-how { --w: 300px; transform: rotate(4deg); }
@media (max-width: 900px) {
  .how-inner { grid-template-columns: 1fr; gap: 56px; }
  .how .section-head { text-align: center; margin-inline: auto; }
  .how-steps { max-width: 460px; margin-inline: auto; }
  .phone-how { --w: min(280px, 72vw); }
}

/* ---------- FAQ ---------- */
.faq { padding: clamp(80px, 12vh, 140px) 0; }
.faq-inner { max-width: 820px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { font-size: clamp(18px, 2vw, 21px); font-weight: 600; letter-spacing: -0.01em; }
.faq-item summary .icon { color: var(--muted); transition: transform 0.35s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); color: var(--pink-light); }
.faq-item summary:hover h3 { color: #fff; }
.faq-a { padding: 0 48px 26px 0; color: var(--muted); font-size: 17px; }
.faq-a a, .prose a, .panel a, .contact-card a:not(.btn) { color: var(--pink-light); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.faq-item[open] .faq-a { animation: fade-down 0.4s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- Final call to action ---------- */
.cta { padding: clamp(120px, 20vh, 220px) 0; text-align: center; overflow: clip; isolation: isolate; }
.cta-glow { position: absolute; inset: auto 0 -40%; height: 120%; background: radial-gradient(50% 50% at 50% 60%, rgba(255, 59, 110, 0.35), transparent 70%); filter: blur(30px); z-index: -1; }
.cta h2 { font-family: var(--serif); font-size: clamp(40px, 7vw, 88px); line-height: 1.02; letter-spacing: -0.03em; }
.cta .lead { margin: 20px auto 40px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; background: var(--bg-2); font-size: 14px; color: var(--muted); }
.footer-top { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; }
.footer-brand { max-width: 340px; display: grid; gap: 16px; }
.footer-brand .brand { color: var(--fg); }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(120px, auto)); gap: 32px 56px; }
.footer-cols h2 { font-size: 13px; font-weight: 600; color: var(--fg); margin-bottom: 14px; }
.footer-cols a { display: block; padding: 5px 0; transition: color 0.2s; }
.footer-cols a:hover { color: var(--fg); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-langs { display: inline-flex; align-items: center; gap: 8px; }
.footer-langs .icon { width: 16px; height: 16px; }
.footer-langs [aria-current] { color: var(--fg); }
.footer-legal { margin-top: 16px; font-size: 12px; color: var(--subtle); max-width: 820px; }
@media (max-width: 620px) { .footer-cols { grid-template-columns: 1fr 1fr; } }

/* ---------- Text pages ---------- */
.doc-head { position: relative; isolation: isolate; overflow: clip; padding: calc(var(--nav-h) + clamp(56px, 10vh, 100px)) 0 clamp(40px, 6vh, 64px); }
.doc-head h1 { font-family: var(--serif); font-size: clamp(40px, 6.5vw, 72px); line-height: 1.04; letter-spacing: -0.03em; }
.doc-head .lead { margin-top: 18px; max-width: 680px; }
.doc-updated { margin-top: 16px; color: var(--subtle); font-size: 15px; }
.doc-container { max-width: 1040px; }
.doc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 64px; padding-bottom: 120px; }
.doc-toc { position: sticky; top: calc(var(--nav-h) + 32px); align-self: start; font-size: 14px; }
.doc-toc p { font-weight: 600; margin-bottom: 12px; }
.doc-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.doc-toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 1px solid transparent; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.doc-toc a:hover, .doc-toc a.is-active { color: var(--fg); border-left-color: var(--pink); }

.prose { max-width: 720px; font-size: 17px; line-height: 1.7; color: #d2d2d7; }
.prose section { padding-top: 12px; }
.prose h2 { margin: 40px 0 14px; font-size: 26px; line-height: 1.2; color: var(--fg); letter-spacing: -0.015em; }
.prose h3 { margin: 28px 0 8px; font-size: 18px; color: var(--fg); }
.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--pink); }
.prose strong { color: var(--fg); }
.sec-num { color: var(--subtle); font-variant-numeric: tabular-nums; }
.doc-intro { font-size: 19px; color: var(--fg); }
.doc-summary { margin: 32px 0 16px; padding: 28px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.doc-summary h2 { margin: 0 0 16px; font-size: 20px; }
.doc-summary ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.doc-summary li { display: flex; gap: 12px; margin: 0; }
.doc-summary .icon { color: var(--success); margin-top: 3px; }
.prose-narrow { margin-top: 24px; padding-bottom: 120px; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .doc-toc { position: static; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); }
}

.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px; border-radius: 28px; background: linear-gradient(135deg, rgba(255, 59, 110, 0.16), rgba(255, 59, 110, 0.03) 60%), var(--surface); border: 1px solid var(--border); }
.contact-card h2 { font-size: 26px; letter-spacing: -0.015em; }
.contact-card p { margin-top: 8px; color: var(--muted); max-width: 560px; }
@media (max-width: 700px) { .contact-card { flex-direction: column; align-items: flex-start; padding: 28px 24px; } }
.faq-doc { padding: 72px 0 24px; }
.faq-doc > h2 { font-size: 28px; margin-bottom: 20px; letter-spacing: -0.015em; }
.doc-download { padding: 40px 0 120px; }
.doc-download .stores { justify-content: flex-start; }

.delete-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.panel { padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--border); }
.panel h2 { font-size: 24px; margin-bottom: 18px; letter-spacing: -0.015em; }
.panel p { color: var(--muted); }
.num-list { list-style: none; counter-reset: n; margin: 0; padding: 0; display: grid; gap: 14px; }
.num-list li { counter-increment: n; display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.num-list li::before { content: counter(n); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; font-weight: 700; font-size: 14px; }
@media (max-width: 760px) { .delete-grid { grid-template-columns: 1fr; } .panel { padding: 26px 22px; } }

.not-found { position: relative; isolation: isolate; overflow: clip; min-height: 80vh; display: grid; place-items: center; text-align: center; padding: calc(var(--nav-h) + 60px) 0 100px; }
.nf-code { font-family: var(--serif); font-weight: 700; font-size: clamp(120px, 24vw, 260px); line-height: 0.9; letter-spacing: -0.06em; background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.05)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found h1 { font-family: var(--serif); font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.02em; }
.not-found .lead { margin: 14px auto 32px; max-width: 520px; }

/* ---------- Less motion when asked ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .phone-hero { transform: none; }
  .float { translate: none; }
  .js .statement-text .w { opacity: 1; }
}
