/* Voxlora — voxlora.app
   Tokens, layout, components, motion. No framework. */

:root {
  --bg: #F6F3FF;
  --bg2: #ECE7FB;
  --surface: #FFFFFF;
  --cream: #FFF7E8;
  --ink: #1B1530;
  --ink2: #5B5470;
  --accent: #6A47DB;
  --accent-strong: #4E31B3;
  --accent-soft: #E9E1FF;
  --line: rgba(27, 21, 48, 0.08);
  --shadow: 0 24px 60px rgba(60, 40, 120, 0.14);
  --shadow-sm: 0 10px 30px rgba(60, 40, 120, 0.10);
  --blob1: #E3DAFF;
  --blob2: #D4F3E3;
  --blob3: #FFE2D3;
  --tile1: #ECE5FF;
  --tile2: #DCF5E8;
  --tile3: #FFE9DD;
  --chip: #F1EDFF;
  --ok: #1F8A4C;
  --okbg: #DCF5E8;
  --premium: #1B1530;
  --premium-ink: #FFFFFF;
  --premium-ink2: #C9C1E6;
  --header-bg: rgba(246, 243, 255, 0.72);

  --a1: #89CC7B;
  --a2: #E8AA4E;
  --b1: #99B5FE;
  --b2: #BFA6FF;
  --c1: #F294CA;
  --c2: #21D1CA;
  --mint: #A9EBC8;
  --coral: #FFC4AE;

  --font-display: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xl: 32px;
  --r-lg: 24px;
  --r-md: 16px;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --dur: 0.7s;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #110D1F;
    --bg2: #1A1431;
    --surface: #1F1836;
    --ink: #F4F0FF;
    --ink2: #B9B1D1;
    --accent: #B39CFF;
    --accent-strong: #D3C6FF;
    --accent-soft: #2E2554;
    --line: rgba(255, 255, 255, 0.09);
    --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.35);
    --blob1: #2A2150;
    --blob2: #17352A;
    --blob3: #3A2622;
    --tile1: #2A2150;
    --tile2: #1B3A2C;
    --tile3: #3B2A24;
    --chip: #2A2150;
    --ok: #7BE0A6;
    --okbg: #1B3A2C;
    --premium: #2A2150;
    --header-bg: rgba(17, 13, 31, 0.72);
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #110D1F;
  --bg2: #1A1431;
  --surface: #1F1836;
  --ink: #F4F0FF;
  --ink2: #B9B1D1;
  --accent: #B39CFF;
  --accent-strong: #D3C6FF;
  --accent-soft: #2E2554;
  --line: rgba(255, 255, 255, 0.09);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --shadow-sm: 0 10px 30px rgba(0, 0, 0, 0.35);
  --blob1: #2A2150;
  --blob2: #17352A;
  --blob3: #3A2622;
  --tile1: #2A2150;
  --tile2: #1B3A2C;
  --tile3: #3B2A24;
  --chip: #2A2150;
  --ok: #7BE0A6;
  --okbg: #1B3A2C;
  --premium: #2A2150;
  --header-bg: rgba(17, 13, 31, 0.72);
  color-scheme: dark;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--accent); }
a:hover { color: var(--accent-strong); }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-weight: 700;
  z-index: 100;
  text-decoration: none;
}
.skip:focus { top: 16px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-bottom: clamp(72px, 9vw, 120px); }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Type ---------- */

.h1 { font-size: clamp(44px, 6.2vw, 76px); line-height: 1.02; letter-spacing: -0.025em; }
.h2 { font-size: clamp(32px, 4.2vw, 50px); }
.h3 { font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.01em; }
.lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--ink2); }
.muted { color: var(--ink2); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .dot {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--a1);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 700px;
  margin-bottom: clamp(32px, 4vw, 48px);
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  align-items: center;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  border: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(60, 40, 120, 0.18); }
.btn:active { transform: translateY(0); }
.btn .ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  flex: none;
  transition: transform 0.3s var(--ease);
}
.btn:hover .ico { transform: translateX(3px); }
.btn .ico svg { width: 18px; height: 18px; }

.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { color: var(--bg); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--line);
  padding-right: 24px;
}
.btn-ghost:hover { color: var(--ink); border-color: var(--accent); box-shadow: none; }
.btn-light { background: #FFFFFF; color: #1B1530; }
.btn-light:hover { color: #1B1530; }
.btn-light .ico { background: #E9E1FF; color: #6A47DB; }
.btn-sm { min-height: 48px; font-size: 15px; padding-left: 20px; }
.btn-sm .ico { width: 34px; height: 34px; }

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.header.is-scrolled {
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--ink); }
.brand img { width: 40px; height: 40px; border-radius: 11px; }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 999px;
  transition: background 0.2s;
}
.nav a:hover { background: var(--accent-soft); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s;
}
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn svg { width: 22px; height: 22px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}

.nav-toggle { display: none; }
.nav-toggle .close { display: none; }
.nav-toggle[aria-expanded="true"] .open { display: none; }
.nav-toggle[aria-expanded="true"] .close { display: block; }

/* ---------- Hero ---------- */

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding-top: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(48px, 6vw, 72px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2.4vw, 28px);
  min-width: 0;
}
.hero-copy .h1 .accent { color: var(--accent); }
.hero-copy .lead { max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
  color: var(--ink2);
  font-size: 15px;
  font-weight: 600;
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 18px; height: 18px; color: var(--ok); }

.stage {
  position: relative;
  min-height: 720px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blob {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  transition: transform 0.6s var(--ease);
}
.blob-1 { width: 440px; height: 440px; background: var(--blob1); left: 0; top: 40px; }
.blob-2 { width: 240px; height: 240px; background: var(--blob2); right: 10px; bottom: 60px; }
.blob-3 { width: 150px; height: 150px; background: var(--blob3); right: 40px; top: 10px; }

.phone-wrap { position: relative; }
.phone {
  position: relative;
  width: 320px;
  border-radius: 56px;
  background: #1B1530;
  padding: 12px;
  box-shadow: 0 50px 90px rgba(40, 25, 90, 0.28);
  z-index: 1;
}
.phone img {
  width: 100%;
  border-radius: 44px;
  aspect-ratio: 1178 / 2556;
  object-fit: cover;
}
.phone-sm { width: 100%; max-width: 240px; border-radius: 44px; padding: 9px; box-shadow: 0 30px 60px rgba(40, 25, 90, 0.2); }
.phone-sm img { border-radius: 36px; }

.float {
  position: absolute;
  z-index: 2;
  --rot: 0deg;
  --px: 0px;
  --py: 0px;
  transform: translate(var(--px), var(--py)) rotate(var(--rot));
  transition: transform 0.6s var(--ease);
}
.float-word {
  left: -150px;
  top: 150px;
  width: 236px;
  --rot: -6deg;
  background: var(--cream);
  color: #1B1530;
  border-radius: 24px;
  padding: 18px 18px 16px;
  box-shadow: 0 24px 50px rgba(60, 40, 120, 0.18);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.float-word .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.float-word .word { font-family: var(--font-display); font-weight: 900; font-size: 26px; letter-spacing: -0.01em; }
.float-word .meaning { font-size: 15px; color: #5B5470; }
.float-word .lvl-tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--b1);
  color: #1B1530;
}
.speaker-dot {
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: #E9E1FF;
  color: #6A47DB;
  align-items: center;
  justify-content: center;
}
.speaker-dot svg { width: 18px; height: 18px; }

.float-done {
  right: -130px;
  bottom: 150px;
  width: 232px;
  --rot: 5deg;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 16px 18px;
  box-shadow: 0 24px 50px rgba(60, 40, 120, 0.16);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-done .row { display: flex; align-items: center; gap: 10px; }
.ok-dot {
  display: inline-flex;
  width: 32px; height: 32px;
  border-radius: 999px;
  background: var(--okbg);
  color: var(--ok);
  align-items: center;
  justify-content: center;
}
.ok-dot svg { width: 16px; height: 16px; }
.float-done strong { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.float-done .sub { font-size: 14px; color: var(--ink2); }
.bar { height: 6px; border-radius: 999px; background: var(--accent-soft); overflow: hidden; }
.bar > span { display: block; width: 0; height: 100%; background: var(--accent); border-radius: 999px; transition: width 1.2s var(--ease) 0.4s; }
.in .bar > span, .bar.go > span { width: 62%; }

.pill {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 12px 30px rgba(60, 40, 120, 0.14);
  --px: 0px; --py: 0px;
  transform: translate(var(--px), var(--py));
  transition: transform 0.6s var(--ease);
}
.pill svg { width: 16px; height: 16px; }
.pill-xp { right: -40px; top: 36px; background: var(--accent-soft); color: var(--ink); }
.pill-time { left: -60px; bottom: 50px; background: var(--mint); color: #1B1530; }

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}
.anim .float-word { animation: floaty 6s ease-in-out infinite; }
.anim .float-done { animation: floaty 7s ease-in-out infinite 1s; }
.anim .pill-xp { animation: floaty 5s ease-in-out infinite 0.5s; }
.anim .pill-time { animation: floaty 6.5s ease-in-out infinite 1.5s; }

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 20px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 34px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat span { font-size: 14px; color: var(--ink2); }

/* ---------- Cards ---------- */

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

.step {
  padding: 20px 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.step .tile {
  border-radius: 24px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.step .tile img { width: 76%; transition: transform 0.5s var(--ease); }
.step:hover .tile img { transform: scale(1.05) rotate(-2deg); }
.tile-1 { background: var(--tile1); }
.tile-2 { background: var(--tile2); }
.tile-3 { background: var(--tile3); }
.step-body { display: flex; flex-direction: column; gap: 10px; padding: 0 8px; }
.step-no {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.step p { color: var(--ink2); font-size: 16px; }

/* ---------- Levels ---------- */

.levels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.lvl {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-height: 236px;
  padding: 26px 26px 24px;
  border-radius: var(--r-xl);
  color: #1B1530;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.lvl:hover { transform: translateY(-5px) rotate(-0.6deg); box-shadow: var(--shadow); }
.lvl-a1 { background: var(--a1); }
.lvl-a2 { background: var(--a2); }
.lvl-b1 { background: var(--b1); }
.lvl-b2 { background: var(--b2); }
.lvl-c1 { background: var(--c1); }
.lvl-c2 { background: var(--c2); }
.lvl-info { display: flex; flex-direction: column; justify-content: space-between; }
.lvl-top { display: flex; flex-direction: column; gap: 6px; }
.lvl-tag {
  align-self: flex-start;
  font-size: 12px; font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
}
.lvl-tag.premium { background: #1B1530; color: #FFFFFF; }
.lvl-code { font-family: var(--font-display); font-weight: 900; font-size: 44px; line-height: 1; margin-top: 8px; }
.lvl-count { font-weight: 700; font-size: 17px; }
.lvl-name { font-size: 15px; opacity: 0.85; }
.lvl img { width: 150px; height: 150px; align-self: flex-end; transition: transform 0.5s var(--ease); }
.lvl:hover img { transform: translateY(-6px) scale(1.04); }

/* ---------- Screens ---------- */

.band {
  background: var(--bg2);
  border-radius: 40px;
  padding: clamp(40px, 5vw, 64px) clamp(16px, 4vw, 48px) clamp(40px, 5vw, 56px);
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
}
.band .section-head { margin-bottom: 0; }
.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.screen {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
}
.screen figcaption { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.screen strong { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.screen span { font-size: 15px; color: var(--ink2); }

/* ---------- Exercises ---------- */

.two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
.two-col .section-head { margin-bottom: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chips li {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--chip);
  font-weight: 700;
  font-size: 15px;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.chips li:hover { transform: translateY(-2px); background: var(--accent-soft); }

.demo-wrap { position: relative; display: flex; justify-content: center; min-width: 0; }
.demo-wrap .blob { width: 360px; height: 360px; background: var(--blob1); right: 0; top: -30px; }
.demo {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow);
}
.demo-head { display: flex; align-items: center; justify-content: space-between; }
.demo-label { font-family: var(--font-display); font-weight: 800; font-size: 13px; letter-spacing: 0.08em; color: var(--accent); }
.demo-count { font-size: 13px; font-weight: 700; color: var(--ink2); }
.demo-sentence { font-family: var(--font-display); font-weight: 800; font-size: 24px; line-height: 1.35; }
.demo-sentence .blank {
  display: inline-block;
  min-width: 96px;
  border-bottom: 3px solid var(--accent);
  color: var(--accent);
  text-align: center;
}
.demo-tr { font-size: 15px; color: var(--ink2); }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease);
}
.opt:hover { border-color: var(--accent); transform: translateY(-1px); }
.opt svg { width: 18px; height: 18px; opacity: 0; transition: opacity 0.2s; }
.opt.is-correct { border-color: var(--ok); background: var(--okbg); }
.opt.is-correct svg { opacity: 1; }
.opt.is-wrong { border-color: #D9534F; }
.audio {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--cream);
  color: #1B1530;
}
.play {
  display: inline-flex;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 0;
  background: #1B1530;
  color: #FFFFFF;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
.play svg { width: 20px; height: 20px; }
.audio-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.audio-text strong { font-family: var(--font-display); font-weight: 900; font-size: 18px; }
.audio-text span { font-size: 14px; color: #5B5470; }
.wave { margin-left: auto; display: flex; align-items: center; gap: 3px; height: 32px; }
.wave span {
  width: 4px;
  border-radius: 2px;
  background: #6A47DB;
  height: var(--h);
  transform-origin: center;
}
.wave span:nth-child(n+8) { background: #BFA6FF; }
@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(0.35); }
}
.anim .wave span { animation: wave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * 0.07s); }

/* ---------- Bento ---------- */

.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bento .card { padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.bento .span-2 { grid-column: span 2; justify-content: space-between; gap: 20px; }
.bento h3 { font-size: 24px; }
.bento .span-2 h3 { font-size: 28px; }
.bento p { color: var(--ink2); font-size: 16px; }
.bento .span-2 p { font-size: 17px; }
.bento .row { position: relative; }
.bento .row > div { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bento .row img { width: 104px; height: 104px; margin: -12px 0 0 -8px; }
.ico-lg {
  display: inline-flex;
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  align-items: center;
  justify-content: center;
}
.ico-lg svg { width: 24px; height: 24px; }
.timeline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.timeline .t {
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--chip);
  font-weight: 700;
  font-size: 15px;
}
.timeline .t.now { background: var(--accent); color: #FFFFFF; }
.timeline svg { width: 20px; height: 20px; color: var(--ink2); }
.mini-widget {
  align-self: flex-start;
  width: 150px;
  border-radius: 22px;
  background: var(--tile1);
  border: 1px solid var(--line);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mini-widget .k { font-size: 10px; font-weight: 800; letter-spacing: 0.1em; color: var(--accent); }
.mini-widget .w { font-family: var(--font-display); font-weight: 900; font-size: 18px; }
.mini-widget .m { font-size: 12px; color: var(--ink2); }

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.plan { padding: 36px; display: flex; flex-direction: column; gap: 24px; }
.plan-head { display: flex; flex-direction: column; gap: 8px; }
.plan-head h3 { font-size: 28px; }
.plan-head p { color: var(--ink2); font-size: 16px; }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price strong {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 52px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price span { color: var(--ink2); font-weight: 600; }
.checks { display: flex; flex-direction: column; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--ok); }
.plan .btn { align-self: flex-start; margin-top: auto; }

.plan-premium {
  position: relative;
  overflow: hidden;
  background: var(--premium);
  color: var(--premium-ink);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  border: 0;
}
.plan-premium .plan-head { padding-right: 150px; }
.plan-premium .plan-head p, .plan-premium .price span, .plan-premium .fine { color: var(--premium-ink2); }
.plan-premium .checks svg { color: var(--mint); }
.plan-premium .art {
  position: absolute;
  right: -10px;
  top: -10px;
  width: 170px;
  height: 170px;
}
.badge {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--mint);
  color: #1B1530;
}
.plan-premium .plan-head h3 { margin-top: 6px; }
.plan-foot { display: flex; flex-direction: column; gap: 12px; margin-top: auto; }
.plan-foot .btn { margin-top: 0; }
.fine { font-size: 13px; }

/* ---------- FAQ ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 56px);
  align-items: start;
}
.faq-grid .section-head { margin-bottom: 0; }
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq .plus {
  display: inline-flex;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  align-items: center;
  justify-content: center;
  flex: none;
  transition: transform 0.3s var(--ease);
}
.faq .plus svg { width: 18px; height: 18px; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq .answer {
  padding: 0 48px 24px 4px;
  color: var(--ink2);
  font-size: 17px;
  line-height: 1.6;
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.faq details[open] .answer { animation: faq-in 0.35s var(--ease); }

/* ---------- CTA ---------- */

.cta {
  position: relative;
  overflow: hidden;
  background: var(--premium);
  color: var(--premium-ink);
  border-radius: 40px;
  padding: clamp(40px, 5vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta .glow {
  position: absolute;
  width: 420px; height: 420px;
  border-radius: 999px;
  background: #6A47DB;
  opacity: 0.35;
  right: -120px;
  top: -160px;
  pointer-events: none;
}
.cta-copy { position: relative; display: flex; flex-direction: column; gap: 20px; max-width: 560px; }
.cta-copy .icon { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35); }
.cta-copy .h2 { font-size: clamp(30px, 3.6vw, 44px); }
.cta-copy p { color: var(--premium-ink2); font-size: 18px; }
.cta-copy .btn { align-self: flex-start; }
.cta-art { position: relative; width: 300px; height: 300px; flex: none; }

/* ---------- Footer ---------- */

.footer { padding-bottom: 48px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .brand { font-size: 20px; }
.footer-brand .brand img { width: 32px; height: 32px; border-radius: 9px; }
.footer-brand p { color: var(--ink2); font-size: 15px; max-width: 320px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink2);
}
.footer-col a { color: var(--ink2); text-decoration: none; font-size: 15px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 13px;
  color: var(--ink2);
}
.footer-bottom a { color: var(--ink2); text-decoration: none; }
.footer-bottom a:hover { color: var(--ink); }
.footer-bottom .links { display: flex; gap: 20px; }

/* ---------- Legal page ---------- */

.legal-head { padding-top: clamp(32px, 4vw, 48px); padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.legal-head .h1 { font-size: clamp(40px, 5vw, 56px); max-width: 760px; }
.legal-head .lead { max-width: 680px; }
.legal-head .chips { margin-top: 8px; }
.legal-head .chips li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.legal-head .chips svg { width: 16px; height: 16px; color: var(--ok); }
.legal-head .note { font-size: 14px; color: var(--ink2); }
.legal {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
}
.toc strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink2);
  margin-bottom: 8px;
}
.toc a { color: var(--ink2); text-decoration: none; font-size: 15px; font-weight: 600; padding: 8px 0; }
.toc a:hover { color: var(--accent); }
.legal-body { display: flex; flex-direction: column; max-width: 720px; }
.legal-body section { display: flex; flex-direction: column; gap: 12px; padding: 28px 0; border-top: 1px solid var(--line); }
.legal-body section:first-child { border-top: 0; padding-top: 0; }
.legal-body h2 { font-size: 26px; scroll-margin-top: 100px; }
.legal-body p, .legal-body li { color: var(--ink2); line-height: 1.65; }
.legal-body ul { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: disc; }

/* ---------- Reveal ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */

@media (max-width: 1200px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .stat:nth-child(3) { border-right: 0; }
  .screens { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1100px) {
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento .span-2 { grid-column: span 2; }
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .stage { min-height: 640px; order: 2; }
  .phone { width: 280px; }
  .float-word { left: -40px; top: 60px; width: 210px; }
  .float-done { right: -40px; bottom: 90px; width: 210px; }
  .pill-xp { right: -16px; }
  .pill-time { left: -24px; }
  .blob-1 { width: 360px; height: 360px; left: 10%; }
  .grid-3 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .two-col { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 560px; }
  .faq-grid { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; gap: 32px; }
  .toc { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .nav {
    position: absolute;
    left: var(--gutter);
    right: var(--gutter);
    top: calc(100% + 4px);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 14px 16px; font-size: 16px; }
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .header { background: var(--header-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
  .stat { border-right: 0; padding: 10px 12px; }
  .stat strong { font-size: 28px; }
  .screens {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 16px;
    margin: 0 -4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .screens::-webkit-scrollbar { display: none; }
  .screen { flex: 0 0 72%; scroll-snap-align: center; }
  .band { border-radius: 28px; }
  .cta { border-radius: 28px; }
  .cta-art { width: 200px; height: 200px; margin: 0 auto; }
  .plan { padding: 28px; }
  .plan-premium .plan-head { padding-right: 110px; }
  .plan-premium .art { width: 130px; height: 130px; right: -16px; top: -16px; }
  .price strong { font-size: 44px; }
  .bento .card, .bento .span-2 { padding: 24px; }
  .faq summary { font-size: 18px; padding: 18px 4px; }
  .faq .answer { padding-right: 8px; }
}

@media (max-width: 640px) {
  .levels { grid-template-columns: 1fr; }
  .lvl { min-height: 200px; }
  .lvl img { width: 120px; height: 120px; }
  .bento { grid-template-columns: 1fr; }
  .bento .span-2 { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; }
  .options { grid-template-columns: 1fr; }
  .demo { padding: 20px; }
  .demo-sentence { font-size: 20px; }
  .wave { display: none; }
}

@media (max-width: 420px) {
  .phone { width: 250px; }
  .stage { min-height: 600px; }
  .float-word { left: -20px; top: 40px; width: 190px; padding: 14px; }
  .float-word .word { font-size: 22px; }
  .float-done { right: -20px; bottom: 80px; width: 190px; }
  .pill-time { left: -8px; bottom: 30px; }
  .pill-xp { right: -8px; top: 20px; }
}

/* ---------- Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .anim .float-word, .anim .float-done, .anim .pill-xp, .anim .pill-time, .anim .wave span { animation: none; }
  .float, .pill, .blob, .card, .lvl, .btn, .btn .ico, .step .tile img, .lvl img { transition: none; }
  .bar > span { transition: none; width: 62%; }
}

/* Alıştırma türleri (eight exercise kinds, three stages) */
.ex-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.ex-legend li { padding: 8px 14px; border-radius: 999px; font-size: 14px; color: var(--ink2); background: var(--ex-bg); }
.ex-legend strong { color: var(--ink); margin-right: 6px; }
.ex-tani { --ex-bg: var(--tile1); --ex-tag: #6A47DB; }
.ex-hatirla { --ex-bg: var(--tile3); --ex-tag: #B4570F; }
.ex-yaz { --ex-bg: var(--tile2); --ex-tag: #1F8A4C; }
.ex-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.ex {
  position: relative;
  padding: 18px 18px 22px;
  border-radius: var(--r-xl);
  background: var(--ex-bg);
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.ex:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ex img { display: block; width: 62%; height: auto; margin: 0 auto 8px; }
.ex-stage {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--ex-tag);
}
.ex h3 { margin-top: 8px; font-size: 19px; }
.ex p { margin-top: 4px; color: var(--ink2); font-size: 15px; }
.ex-note { margin-top: 18px; color: var(--ink2); font-size: 15px; }
@media (max-width: 1000px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 420px) { .ex-grid { gap: 12px; } .ex { padding: 14px; } .ex h3 { font-size: 17px; } }

/* Özellikler: 3D art instead of line icons, the same style as the reminder card */
.feat-art { display: block; width: 88px; height: 88px; object-fit: contain; margin: -6px 0 6px -6px; }
