/* ThinkEnglish — landing page */

/* ---------- Fonts (variable, self-hosted) ---------- */
@font-face {
  font-family: "Unbounded";
  src: url(fonts/unbounded-cyrillic.woff2) format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  src: url(fonts/unbounded-latin.woff2) format("woff2");
  font-weight: 200 900;
  font-display: swap;
  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: "Manrope";
  src: url(fonts/manrope-cyrillic.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url(fonts/manrope-latin.woff2) format("woff2");
  font-weight: 200 800;
  font-display: swap;
  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;
}

/* Animated custom properties drive the looping demos */
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --f { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --t { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --sec { syntax: "<integer>"; inherits: true; initial-value: 60; }
@property --accent { syntax: "<color>"; inherits: true; initial-value: #7c5cfa; }

:root {
  --bg: #050507;
  --text: #f5f5f7;
  --muted: #a1a1aa;
  --dim: #6b6b74;
  --line: rgba(255, 255, 255, 0.08);
  --violet: #7c5cfa;
  --violet-2: #9f87ff;
  --lilac: #c3b4ff;
  --blue: #2f6bff;
  --gold: #ffd60a;
  --flame: #ff9f0a;
  --green: #30d158;
  --red: #ff453a;
  --sky: #64d2ff;
  --graphite: #1c1c1e;
  --graphite-2: #2c2c2e;
  --grad: linear-gradient(135deg, #9b82ff 0%, #7253f5 50%, #5f3fe6 100%);
  --gold-grad: linear-gradient(135deg, #ffe7a0 0%, #f2c14e 45%, #c98a1c 100%);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --max: 1200px;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --ipa: "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--bg);
  color-scheme: dark;
  interpolate-size: allow-keywords;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 500 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(124, 92, 250, 0.5); color: #fff; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 10px; }
.nowrap { white-space: nowrap; }
.ipa { font-family: var(--ipa); font-weight: 400; letter-spacing: 0; }
.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; }
.ico { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico--fill { fill: currentColor; stroke: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .wrap { padding-inline: 32px; } }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  transform: translateZ(0);
}

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 12.5px/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--lilac);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--violet-2); box-shadow: 0 0 12px 2px rgba(159, 135, 255, 0.75);
}
.h2 { margin-top: 20px; font-size: clamp(32px, 5.6vw, 64px); }
.lead { margin-top: 20px; max-width: 620px; color: var(--muted); font-size: clamp(16.5px, 1.5vw, 19px); }
.section { position: relative; overflow-x: clip; padding-block: clamp(96px, 13vw, 168px); }
.section-head { max-width: 780px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.grad-text {
  background: linear-gradient(100deg, #ffffff 0%, #ddd4ff 22%, #a58fff 45%, #7a9bff 65%, #ddd4ff 82%, #ffffff 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 9s linear infinite;
}
@keyframes sheen { to { background-position: -200% 0; } }

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--h); padding: 0 24px; border: 0; border-radius: 999px;
  font: 700 16px/1.1 var(--sans); letter-spacing: -0.005em; white-space: nowrap; cursor: pointer;
  translate: var(--mx, 0) var(--my, 0);
  transition: translate 0.6s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s;
}
.btn:active { transform: scale(0.97); }
.btn .ico { font-size: 22px; }
.btn__two { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-align: left; }
.btn__two small { font-size: 12.5px; font-weight: 600; opacity: 0.78; letter-spacing: 0; }
.btn--lg { --h: 64px; padding: 0 30px 0 24px; font-size: 17px; }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 14.5px; }

.btn--primary {
  color: #fff; background: var(--grad);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(159, 135, 255, 0.45),
    0 14px 36px -10px rgba(124, 92, 250, 0.75);
}
.btn--primary::before, .btn--gold::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.42) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%; background-position: 160% 0;
  animation: btn-sheen 5.5s var(--ease-io) infinite;
}
@keyframes btn-sheen { 0%, 62% { background-position: 160% 0; } 100% { background-position: -60% 0; } }
.btn--primary:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2),
    0 0 0 1px rgba(195, 180, 255, 0.6),
    0 20px 50px -12px rgba(124, 92, 250, 0.95);
}
.btn--glass {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn--glass:hover { background: rgba(255, 255, 255, 0.1); }
.btn--gold {
  color: #241a00;
  background: linear-gradient(180deg, #ffe45c 0%, #ffd60a 55%, #f2c200 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -1px 0 rgba(120, 80, 0, 0.25), 0 16px 40px -12px rgba(255, 200, 0, 0.7);
}
.btn--gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), inset 0 -1px 0 rgba(120, 80, 0, 0.25), 0 22px 54px -12px rgba(255, 200, 0, 0.9); }
.btn .arrow { transition: transform 0.4s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 70; height: 2px; pointer-events: none;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #9b82ff, #6d8bff 60%, #ffd60a);
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
}
@keyframes grow { to { transform: scaleX(1); } }

.nav { position: fixed; top: 10px; left: 0; right: 0; z-index: 60; padding-inline: 10px; pointer-events: none; }
.nav__inner {
  pointer-events: auto;
  display: flex; align-items: center; gap: 10px;
  max-width: 1136px; height: 60px; margin-inline: auto; padding: 0 9px 0 12px;
  border-radius: 999px;
  background: rgba(16, 16, 22, 0.55);
  -webkit-backdrop-filter: saturate(170%) blur(18px); backdrop-filter: saturate(170%) blur(18px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 12px 40px -12px rgba(0, 0, 0, 0.7);
  transition: background-color 0.5s, box-shadow 0.5s;
}
.nav.is-scrolled .nav__inner { background: rgba(16, 16, 22, 0.8); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 15px/1 var(--display); letter-spacing: -0.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 6px 18px -6px rgba(47, 107, 255, 0.7); }
.nav__links { position: relative; display: none; margin-left: auto; }
.nav__links a {
  position: relative; z-index: 1; display: block; padding: 9px 14px; border-radius: 999px;
  color: var(--muted); font-size: 14.5px; font-weight: 600; transition: color 0.3s;
}
.nav__links a:hover, .nav__links a.is-active { color: #fff; }
.nav__pill {
  position: absolute; top: 0; left: 0; height: 100%; width: var(--w, 0); border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateX(var(--x, 0)); opacity: 0;
  transition: transform 0.6s var(--ease), width 0.6s var(--ease), opacity 0.4s;
}
.nav__links.has-active .nav__pill { opacity: 1; }
.nav .btn { margin-left: auto; }
@media (min-width: 920px) {
  .nav { top: 14px; }
  .nav__links { display: flex; }
  .nav .btn { margin-left: 6px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; padding-top: clamp(124px, 15vw, 172px); }
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora { position: absolute; border-radius: 50%; will-change: transform; }
.aurora--1 {
  width: 1100px; height: 900px; left: 50%; top: -420px; margin-left: -550px;
  background: radial-gradient(closest-side, rgba(124, 92, 250, 0.5), rgba(124, 92, 250, 0.18) 45%, transparent);
  animation: drift-a 16s ease-in-out infinite alternate;
}
.aurora--2 {
  width: 760px; height: 760px; left: -260px; top: 360px;
  background: radial-gradient(closest-side, rgba(47, 107, 255, 0.32), transparent);
  animation: drift-b 20s ease-in-out infinite alternate;
}
.aurora--3 {
  width: 680px; height: 680px; right: -260px; top: 520px;
  background: radial-gradient(closest-side, rgba(159, 135, 255, 0.3), transparent);
  animation: drift-b 24s ease-in-out infinite alternate-reverse;
}
@keyframes drift-a { to { transform: translate3d(6%, 8%, 0) scale(1.08); } }
@keyframes drift-b { to { transform: translate3d(14%, -10%, 0) scale(1.12); } }
.hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 22%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 22%, #000 10%, transparent 72%);
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 32%; z-index: 5; pointer-events: none;
  background: linear-gradient(to bottom, rgba(5, 5, 7, 0), var(--bg) 92%);
}
.hero__content { display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  font-size: 13.5px; font-weight: 600; color: #d4d4d8;
}
.badge__tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px;
  background: rgba(48, 209, 88, 0.14); color: #7ee2a0; font-weight: 700; font-size: 12.5px;
}
.badge__tag .ico { font-size: 15px; }
.hero__title { margin-top: 26px; font-size: clamp(40px, 10.6vw, 128px); font-weight: 600; line-height: 1; letter-spacing: -0.05em; }
.hero__title .line { display: block; overflow: hidden; padding: 0.06em 0.04em 0.12em; margin: -0.06em -0.04em -0.12em; }
.hero__title .line > span { display: inline-block; }
.hero__lead { margin-top: 26px; max-width: 640px; color: var(--muted); font-size: clamp(16.5px, 1.7vw, 20px); }
.hero__cta { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 360px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 22px; color: var(--dim); font-size: 13.5px; font-weight: 600; }
.hero__meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero__meta .ico { color: var(--green); font-size: 15px; stroke-width: 2.6; }
@media (min-width: 560px) {
  .hero__cta { flex-direction: row; justify-content: center; align-items: center; max-width: none; width: auto; }
}

/* Stage with phones */
.stage-wrap { position: relative; height: clamp(470px, 66vw, 760px); margin-top: clamp(44px, 6vw, 72px); perspective: 1600px; }
.stage {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 1.2s var(--ease);
}
.stage::before {
  content: ""; position: absolute; left: 50%; top: 4%; width: 760px; height: 760px; margin-left: -380px;
  background: radial-gradient(closest-side, rgba(124, 92, 250, 0.45), rgba(124, 92, 250, 0.12) 50%, transparent);
  pointer-events: none;
}
.slot {
  --w: clamp(190px, 23vw, 300px);
  position: absolute; left: 50%; top: 0;
  translate: calc(var(--px, 0) * var(--depth, 1) * 16px) calc(var(--py, 0) * var(--depth, 1) * 12px);
  transition: translate 1.2s var(--ease);
}
.slot--center { z-index: 3; margin-left: calc(var(--w) / -2); }
.slot--left { z-index: 2; margin-left: calc(var(--w) / -2); transform: translateX(-66%) translateY(9%) rotate(-7deg) scale(0.86); }
.slot--right { z-index: 2; margin-left: calc(var(--w) / -2); transform: translateX(66%) translateY(9%) rotate(7deg) scale(0.86); }
.slot .phone { --w: inherit; }
.slot--left .phone, .slot--right .phone { filter: brightness(0.72) saturate(0.9); }

/* Phone mockup */
.phone {
  --w: 280px;
  position: relative; width: var(--w); padding: calc(var(--w) * 0.034); border-radius: calc(var(--w) * 0.165);
  background: linear-gradient(150deg, #4a4a54 0%, #1a1a20 16%, #0b0b0e 48%, #1b1b21 80%, #50505a 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.12),
    inset 0 0 0 calc(var(--w) * 0.012) #0a0a0d,
    0 60px 100px -40px rgba(0, 0, 0, 0.95),
    0 30px 60px -30px rgba(0, 0, 0, 0.8);
}
.phone::before, .phone::after {
  content: ""; position: absolute; right: calc(var(--w) * -0.011); width: calc(var(--w) * 0.014);
  border-radius: 0 4px 4px 0; background: linear-gradient(90deg, #26262c, #55555f);
}
.phone::before { top: 21%; height: 8%; }
.phone::after { top: 32%; height: 13%; }
.phone__screen { position: relative; overflow: hidden; border-radius: calc(var(--w) * 0.132); background: #000; aspect-ratio: 9 / 19.2; }
.phone__screen > img {
  position: absolute; left: 0; top: calc(var(--w) * 0.082); width: 100%; height: auto; aspect-ratio: 1 / 2;
  object-fit: cover; object-position: top center;
}
.phone__bar {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; height: calc(var(--w) * 0.082);
  display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--w) * 0.085);
  font: 700 calc(var(--w) * 0.04) / 1 var(--sans); color: #fff; letter-spacing: 0;
}
.phone__bar svg { width: calc(var(--w) * 0.15); height: auto; }
.phone__cam {
  position: absolute; top: calc(var(--w) * 0.024); left: 50%; z-index: 3;
  width: calc(var(--w) * 0.038); height: calc(var(--w) * 0.038); margin-left: calc(var(--w) * -0.019);
  border-radius: 50%; background: #0b0b0c; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.07), inset 1px 1px 2px rgba(80, 110, 255, 0.35);
}
.phone__home {
  position: absolute; bottom: calc(var(--w) * 0.016); left: 34%; right: 34%; z-index: 2;
  height: calc(var(--w) * 0.011); border-radius: 9px; background: rgba(255, 255, 255, 0.5);
}
.phone__screen::after {
  content: ""; position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 26%, transparent 42%);
}

/* Floating chips */
.float {
  position: absolute; z-index: 6; left: calc(50% + var(--x)); top: var(--y);
  translate: calc(var(--px, 0) * var(--depth, 1) * 16px) calc(var(--py, 0) * var(--depth, 1) * 12px);
  transition: translate 1.2s var(--ease);
}
.float > * { animation: bob 6s ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes bob { 50% { transform: translateY(-12px); } }
.chip {
  display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 20px;
  background: rgba(26, 26, 32, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 40px -12px rgba(0, 0, 0, 0.8);
  white-space: nowrap; text-align: left;
}
@media (hover: hover) and (pointer: fine) {
  .chip { background: rgba(26, 26, 32, 0.62); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%); }
}
.chip b { display: block; font: 600 15px/1.15 var(--display); letter-spacing: -0.02em; }
.chip small { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.2; }
.chip__ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 13px; flex: none; }
.chip__ico .ico { font-size: 20px; }
.chip__ico--flame { background: linear-gradient(160deg, #ffb340, #ff7a00); color: #fff; box-shadow: 0 6px 18px -4px rgba(255, 140, 0, 0.7); }
.chip__ico--xp { background: var(--grad); color: #fff; box-shadow: 0 6px 18px -4px rgba(124, 92, 250, 0.8); }
.chip__ico--gold { background: var(--gold-grad); color: #3a2a06; font: 700 13px/1 var(--display); border-radius: 50%; box-shadow: 0 6px 18px -4px rgba(242, 193, 78, 0.6); }

.flash { width: 150px; height: 104px; perspective: 700px; }
.flash__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: flip 7s var(--ease-io) infinite; animation-delay: 1.8s; }
.flash__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(180deg, #ffffff, #ece8ff); color: #1d1550;
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, 0.85), inset 0 -2px 0 rgba(124, 92, 250, 0.18);
}
.flash__face b { font: 700 20px/1 var(--display); letter-spacing: -0.03em; }
.flash__face span { color: #6a5fb0; font-size: 13px; }
.flash__back { transform: rotateY(180deg); background: var(--grad); color: #fff; }
.flash__back span { color: rgba(255, 255, 255, 0.75); }
@keyframes flip { 0%, 40% { transform: rotateY(0); } 50%, 90% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

.f-streak { --x: -96%; --y: 6%; --depth: 1.8; }
.f-medal { --x: -104%; --y: 52%; --depth: 1.4; --delay: -2s; }
.f-xp { --x: 30%; --y: 2%; --depth: 2; --delay: -4s; }
.f-card { --x: 22%; --y: 46%; --depth: 2.4; --delay: -1s; }
@media (max-width: 559px) {
  .f-streak { --x: -48%; --y: 5%; }
  .f-card { --x: 12%; --y: 50%; }
  .f-xp, .f-medal { display: none; }
  .chip { padding: 8px 12px 8px 8px; gap: 10px; border-radius: 17px; }
  .chip__ico { width: 32px; height: 32px; border-radius: 11px; }
  .chip b { font-size: 13px; }
  .chip small { font-size: 11px; }
  .flash { width: 118px; height: 84px; }
  .flash__face b { font-size: 16px; }
}
@media (min-width: 560px) and (max-width: 979px) {
  .f-streak { --x: -47%; --y: 4%; }
  .f-medal { --x: -49%; --y: 56%; }
  .f-xp { --x: 22%; --y: 3%; }
  .f-card { --x: 26%; --y: 50%; }
}
@media (min-width: 980px) {
  .f-streak { --x: -470px; --y: 9%; }
  .f-medal { --x: -500px; --y: 50%; }
  .f-xp { --x: 300px; --y: 4%; }
  .f-card { --x: 330px; --y: 42%; }
}

/* Hero intro */
.js .hero [data-intro] { opacity: 0; transform: translateY(24px); }
.js .hero__title .line > span { transform: translateY(105%); }
.js .slot .phone { opacity: 0; transform: translateY(18%); }
.js .float > * { opacity: 0; }
.is-loaded .hero [data-intro] { opacity: 1; transform: none; transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.is-loaded .hero__title .line > span { transform: none; transition: transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.is-loaded .slot .phone { opacity: 1; transform: none; transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); transition-delay: var(--d, 0.35s); }
.is-loaded .float > * { opacity: 1; transition: opacity 1s var(--ease) var(--d, 1s); }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; display: grid; gap: 14px; padding-block: 8px 0; 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__row { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 84s; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translate3d(-50%, 0, 0); } }
.word {
  display: inline-flex; align-items: baseline; gap: 12px; margin-right: 14px; padding: 15px 22px; border-radius: 18px;
  background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); white-space: nowrap;
}
.word b { font: 500 19px/1 var(--display); letter-spacing: -0.02em; color: #fff; }
.word i { font-style: normal; color: var(--muted); font-size: 15px; font-weight: 600; }
.marquee__row--rev .word b { color: transparent; -webkit-text-stroke: 1px rgba(195, 180, 255, 0.75); }

/* ---------- Stats ---------- */
.stats-sec { padding-top: clamp(72px, 9vw, 120px); }
.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; overflow: hidden; border-radius: 28px;
  background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.stat { position: relative; background: #08080b; padding: 26px 20px 28px; }
.stat__num {
  display: block; font: 600 clamp(36px, 5vw, 62px)/1 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff 30%, #a7a7b2); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat__label { display: block; margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.4; }
@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: 40px 32px 42px; }
}

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: 1fr; grid-auto-flow: dense; gap: 16px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 720px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .span-2 { grid-column: span 2; }
}
@media (min-width: 1040px) { .bento { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(520px circle at var(--cx, 50%) var(--cy, 0%), rgba(124, 92, 250, 0.16), transparent 42%);
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity 0.5s;
  background: radial-gradient(360px circle at var(--cx, 50%) var(--cy, 0%), rgba(195, 180, 255, 0.7), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card__viz { position: relative; height: 224px; display: grid; place-items: center; overflow: hidden; }
.card__body { padding: 4px 26px 28px; }
.card__body h3 { font-size: 19px; letter-spacing: -0.025em; line-height: 1.25; }
.card__body p { margin-top: 10px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
@media (min-width: 1040px) { .card__viz { height: 236px; } .card__body { padding: 4px 30px 30px; } }

/* Shared demo bits */
.loop { animation: loop var(--dur, 7s) linear infinite; }
@keyframes loop { 0% { --p: 0; --f: 1; } 80% { --p: 1; } 90% { --f: 1; } 100% { --p: 1; --f: 0; } }
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 12px;
  background: var(--graphite-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 14px; font-weight: 700; white-space: nowrap;
}

/* 1. Flashcards + spaced repetition */
.card--srs .card__viz { height: auto; padding: 36px 20px 20px; display: flex; flex-direction: column; align-items: center; gap: 34px; }
@media (min-width: 720px) {
  .card--srs .card__viz { flex-direction: row; justify-content: center; gap: clamp(32px, 6vw, 80px); min-height: 236px; padding: 28px 28px 12px; }
}
.deck { position: relative; width: 196px; height: 128px; perspective: 900px; flex: none; }
.deck::before, .deck::after {
  content: ""; position: absolute; inset: 0; border-radius: 22px; background: #26262b; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.deck::before { transform: rotate(-7deg) translate(-10px, 6px); }
.deck::after { transform: rotate(5deg) translate(10px, 4px); background: #303036; }
.deck__card { position: absolute; inset: 0; z-index: 2; transform-style: preserve-3d; animation: flip 6s var(--ease-io) infinite; }
.deck__face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  border-radius: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  background: linear-gradient(180deg, #3a3a42, #2a2a30); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 20px 40px -14px rgba(0, 0, 0, 0.9);
}
.deck__face b { font: 600 25px/1 var(--display); letter-spacing: -0.03em; }
.deck__face span { color: var(--muted); font-size: 15px; }
.deck__back { transform: rotateY(180deg); background: var(--grad); }
.deck__back span { color: rgba(255, 255, 255, 0.8); }

.srs { --dur: 7.5s; position: relative; width: min(100%, 380px); }
.srs__track { position: absolute; left: 10%; right: 10%; top: 17px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.srs__track i { position: absolute; inset: 0; background: linear-gradient(90deg, #9b82ff, #6d8bff); transform-origin: 0 50%; transform: scaleX(calc(min(var(--p), 1) * var(--f))); }
.srs ol { position: relative; display: flex; justify-content: space-between; }
.srs li {
  --on: calc(clamp(0, (var(--p) * 4 - var(--i)) * 6 + 1, 1) * var(--f));
  width: 20%; display: flex; flex-direction: column; align-items: center; gap: 9px; color: var(--muted); font-size: 12.5px; font-weight: 600;
}
.srs li > span { position: relative; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #1e1e23; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.srs li > span::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad);
  box-shadow: 0 0 22px rgba(124, 92, 250, 0.75); opacity: var(--on); transform: scale(calc(0.5 + var(--on) * 0.5));
}
.srs li > span .ico { position: relative; font-size: 16px; color: #fff; stroke-width: 3; opacity: var(--on); }
.srs li b { font: 600 19px/1 var(--display); color: #fff; opacity: calc(0.35 + var(--on) * 0.65); }

/* 2. Lesson path */
.path { position: relative; width: 240px; height: 200px; }
.node {
  position: absolute; display: grid; place-items: center; width: 70px; height: 70px; border-radius: 24px;
  background: linear-gradient(180deg, #34343a, #232328); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 -4px 0 rgba(0, 0, 0, 0.35);
  color: #6a6a72;
}
.node .ico { font-size: 28px; }
.node--done { left: 10px; top: 6px; background: linear-gradient(180deg, #3d2f80, #2c2163); color: #c3b4ff; }
.node--done::after {
  content: ""; position: absolute; right: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: 0 0 0 3px #111114;
}
.node--current {
  left: 84px; top: 64px; width: 84px; height: 84px; border-radius: 28px; color: #fff; z-index: 2;
  background: linear-gradient(180deg, #9b82ff, #6a4af0); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2), inset 0 -5px 0 rgba(40, 20, 120, 0.45), 0 0 40px rgba(124, 92, 250, 0.7);
}
.node--current .ico { font-size: 34px; }
.node--current::before {
  content: ""; position: absolute; inset: -8px; border-radius: 34px; border: 2px solid rgba(159, 135, 255, 0.7);
  animation: ring 2.4s var(--ease) infinite;
}
@keyframes ring { 0% { transform: scale(0.9); opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.node__tip {
  position: absolute; left: 50%; bottom: calc(100% + 12px); transform: translateX(-50%); padding: 6px 11px; border-radius: 10px;
  background: #2c2c32; color: var(--lilac); font-size: 13px; font-weight: 800; white-space: nowrap; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: tip 2.4s ease-in-out infinite;
}
.node__tip::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #2c2c32; }
@keyframes tip { 50% { transform: translate(-50%, -4px); } }
.node--locked { left: 166px; top: 132px; }
.path__line { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }

/* 3. Pronunciation */
.speak { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.speak__row { display: flex; align-items: center; gap: 18px; }
.mic { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(180deg, #ff6b61, #e5352b); color: #fff; box-shadow: 0 10px 30px -6px rgba(255, 69, 58, 0.7); }
.mic .ico { font-size: 28px; }
.mic::before, .mic::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(255, 107, 97, 0.6); animation: ripple 2.2s var(--ease) infinite; }
.mic::after { animation-delay: 1.1s; }
@keyframes ripple { 0% { transform: scale(1); opacity: 0.9; } 100% { transform: scale(1.9); opacity: 0; } }
.wave { display: flex; align-items: center; gap: 4px; height: 56px; }
.wave i { width: 5px; height: 100%; border-radius: 3px; background: linear-gradient(180deg, #ffb2ad, #ff6b61); transform: scaleY(0.2); animation: wave 1.1s ease-in-out infinite; animation-delay: calc(var(--i) * -0.13s); }
.wave i:nth-child(3n) { animation-duration: 0.9s; }
.wave i:nth-child(4n + 1) { animation-duration: 1.3s; }
@keyframes wave { 0%, 100% { transform: scaleY(0.18); } 50% { transform: scaleY(var(--h, 0.9)); } }
.speak__word { font: 600 22px/1 var(--display); letter-spacing: -0.03em; }
.speak__word .ipa { margin-left: 8px; color: var(--muted); font-size: 15px; }
.verdict {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: rgba(48, 209, 88, 0.14); color: #6ee695; font-size: 14px; font-weight: 800;
  animation: verdict 5s var(--ease) infinite;
}
.verdict .ico { stroke-width: 3; }
@keyframes verdict { 0%, 45% { opacity: 0; transform: translateY(8px) scale(0.96); } 55%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 4. Sentence builder */
.builder { --dur: 7s; width: min(100%, 330px); display: flex; flex-direction: column; gap: 14px; }
.builder__ru { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.builder__answer {
  --done: calc(clamp(0, (var(--p) * 6 - 5.4) * 3, 1) * var(--f));
  position: relative; min-height: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 0 1.5px rgba(48, 209, 88, calc(var(--done) * 0.8)), 0 0 30px rgba(48, 209, 88, calc(var(--done) * 0.25));
}
.builder__bank { display: flex; flex-wrap: wrap; gap: 6px; }
.builder .pill { --on: calc(clamp(0, (var(--p) * 6 - var(--i) - 0.6) * 4, 1) * var(--f)); padding: 8px 12px; font-size: 14px; }
.builder__answer .pill { opacity: var(--on); transform: translateY(calc((1 - var(--on)) * 10px)) scale(calc(0.85 + var(--on) * 0.15)); background: #34343b; }
.builder__bank .pill { opacity: calc(1 - var(--on) * 0.8); }
.builder__ok {
  position: absolute; right: 10px; top: 50%; display: grid; place-items: center; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%;
  background: var(--green); color: #fff; opacity: var(--done); transform: scale(calc(0.5 + var(--done) * 0.5));
}
.builder__ok .ico { font-size: 15px; stroke-width: 3.4; }

/* 5. Reading */
.read { width: min(100%, 330px); font-size: 15px; font-weight: 600; line-height: 1.55; color: #d4d4d8; }
.read p + p { margin-top: 8px; }
.read p:first-child { color: var(--dim); }
.read mark { position: relative; z-index: 0; padding: 1px 3px; margin: 0 -3px; border-radius: 6px; background: none; color: inherit; }
.read mark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--violet);
  transform-origin: 0 50%; animation: hl 5s var(--ease) infinite;
}
@keyframes hl { 0%, 12% { transform: scaleX(0); } 24%, 90% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
.popover {
  margin-top: 14px; padding: 14px 16px; border-radius: 18px; background: #1f1f24; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 40px -16px rgba(0, 0, 0, 0.9);
  animation: pop 5s var(--ease) infinite;
}
@keyframes pop { 0%, 22% { opacity: 0; transform: translateY(14px); } 34%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(6px); } }
.popover__top { display: flex; align-items: center; justify-content: space-between; }
.popover__top b { font: 600 18px/1 var(--display); color: #fff; }
.popover__spk { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--violet); color: #fff; }
.popover__spk .ico { font-size: 16px; }
.popover__tr { margin-top: 6px; color: var(--violet-2); font-weight: 700; }

/* 6. Daily quests */
.quests { --dur: 6.5s; width: min(100%, 330px); display: grid; gap: 10px; }
.quest { display: grid; grid-template-columns: 38px 1fr auto; align-items: center; gap: 4px 12px; padding: 11px 13px; border-radius: 16px; background: #1b1b20; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.quest__ico { grid-row: span 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; }
.quest__ico .ico { font-size: 19px; }
.quest b { font-size: 13.5px; font-weight: 700; line-height: 1.2; }
.quest__val { grid-row: span 2; font-size: 12px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.quest__bar { height: 7px; border-radius: 9px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.quest__bar i { display: block; height: 100%; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(calc(var(--fill) * var(--f))); }
.quest:nth-child(1) { --fill: min(var(--p) * 2.2, 1); }
.quest:nth-child(2) { --fill: clamp(0, (var(--p) - 0.3) * 3, 1); }
.quest:nth-child(3) { --fill: min(var(--p) * 0.4, 0.4); }
.quest:nth-child(1) .quest__bar i, .quest:nth-child(2) .quest__bar i { background: linear-gradient(90deg, #30d158, #5fe38a); }
.quest:nth-child(3) .quest__bar i { background: linear-gradient(90deg, #64d2ff, #8fdfff); }

/* 7. Streak */
.card--streak .card__viz { height: auto; min-height: 224px; padding: 30px 20px 18px; }
.streak { --dur: 6.5s; width: min(100%, 700px); display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: center; }
@media (min-width: 720px) { .streak { grid-template-columns: auto minmax(0, 1fr); gap: 24px 48px; } }
.streak__big { display: flex; align-items: center; gap: 14px; }
.streak__flame { position: relative; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22px; background: linear-gradient(160deg, #ffb340, #ff7a00); color: #fff; box-shadow: 0 12px 30px -8px rgba(255, 140, 0, 0.8); }
.streak__flame .ico { font-size: 32px; animation: flicker 1.6s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes flicker { 50% { transform: scale(1.08, 0.94) rotate(-2deg); } }
.streak__big b { display: block; font: 600 34px/1 var(--display); letter-spacing: -0.04em; }
.streak__big small { display: block; margin-top: 5px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day { --on: calc(clamp(0, (var(--p) * 5 - var(--i)) * 4, 1) * var(--f)); display: flex; flex-direction: column; align-items: center; gap: 7px; color: var(--dim); font-size: 12px; font-weight: 700; }
.day > span { position: relative; display: grid; place-items: center; width: 100%; max-width: 46px; aspect-ratio: 1; border-radius: 50%; background: #222227; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); color: #fff; }
.day > span::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(160deg, #ffb340, #ff8a00); opacity: var(--on); transform: scale(calc(0.4 + var(--on) * 0.6)); }
.day--ice > span::before { background: linear-gradient(160deg, #6fd0ff, #2f9bff); }
.day > span .ico { position: relative; font-size: 18px; opacity: var(--on); transform: scale(calc(0.5 + var(--on) * 0.5)); }
.day--today { color: var(--flame); }
.badges { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; }
.badges .pill { font-size: 12.5px; padding: 7px 11px; color: #e4e4e7; }
.badges .pill .ico { font-size: 15px; }

/* 8. Grammar */
.gram { width: min(100%, 300px); border-radius: 18px; overflow: hidden; background: #1b1b20; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.gram__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, 0.07); font-size: 13px; font-weight: 700; color: var(--muted); }
.gram__head b { font: 600 15px/1 var(--display); color: #fff; }
.gram__row { position: relative; display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; padding: 11px 16px; font-size: 14.5px; font-weight: 700; }
.gram__row + .gram__row { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.gram__row em { font-style: normal; color: var(--violet-2); }
.gram__row span:last-child { color: var(--muted); font-weight: 600; }
.gram__row::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(124, 92, 250, 0.26), rgba(124, 92, 250, 0.04)); box-shadow: inset 3px 0 0 var(--violet-2); opacity: 0; animation: rowhl 6s ease-in-out infinite; animation-delay: calc(var(--i) * 2s); }
@keyframes rowhl { 0% { opacity: 0; } 6%, 30% { opacity: 1; } 36%, 100% { opacity: 0; } }

/* 9. Dictation */
.dict { width: min(100%, 320px); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.dict__btns { display: flex; align-items: center; gap: 12px; }
.spk-btn { display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; box-shadow: 0 10px 28px -8px rgba(124, 92, 250, 0.8); }
.spk-btn--lg { width: 58px; height: 58px; }
.spk-btn--lg .ico { font-size: 26px; }
.spk-btn--sm { width: 42px; height: 42px; background: #2c2c32; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: var(--lilac); font: 800 11px/1 var(--sans); }
.dict__input { position: relative; width: 100%; padding: 14px 16px; border-radius: 16px; background: #1b1b20; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); font-size: 15px; font-weight: 700; white-space: nowrap; }
.dict__typed { display: inline-block; vertical-align: bottom; width: 0; overflow: hidden; font-family: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Roboto Mono", monospace; font-size: 14.5px; animation: type 6s steps(24, end) infinite; }
.dict__caret { display: inline-block; width: 2px; height: 18px; margin-left: 2px; vertical-align: -3px; background: var(--violet-2); animation: blink 1s steps(1) infinite; }
@keyframes type { 0%, 6% { width: 0; } 62%, 94% { width: 24ch; } 100% { width: 0; } }
@keyframes blink { 50% { opacity: 0; } }
.dict .verdict { animation: verdict2 6s var(--ease) infinite; }
@keyframes verdict2 { 0%, 64% { opacity: 0; transform: translateY(8px) scale(0.96); } 70%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* 10. 60 seconds */
.timer { position: relative; display: grid; place-items: center; width: 152px; height: 152px; }
.timer__ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, #ffd60a calc(var(--t) * 1turn), rgba(255, 255, 255, 0.08) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 10px), #000 calc(100% - 9px));
  animation: drain 10s linear infinite;
}
@keyframes drain { from { --t: 1; } to { --t: 0; } }
.timer__num { counter-reset: sec var(--sec); animation: count 10s linear infinite; font: 600 42px/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.timer__num::after { content: counter(sec); }
@keyframes count { from { --sec: 60; } to { --sec: 0; } }
.timer small { position: absolute; bottom: 38px; color: var(--muted); font-size: 12px; font-weight: 700; }
.timer__glow { position: absolute; inset: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 214, 10, 0.2), transparent); }
.blitz { display: flex; align-items: center; gap: 26px; }
.blitz__words { display: grid; gap: 8px; }
.blitz__words .pill { font-size: 13px; padding: 7px 11px; animation: blitzw 3s var(--ease) infinite; animation-delay: calc(var(--i) * 0.5s); }
.blitz__words .pill .ico { color: var(--green); stroke-width: 3; font-size: 14px; }
@keyframes blitzw { 0% { opacity: 0.25; transform: translateX(-6px); } 15%, 70% { opacity: 1; transform: none; } 100% { opacity: 0.25; } }
@media (max-width: 380px) { .blitz__words { display: none; } }

/* Extras */
.extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.extras li {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #d4d4d8; font-size: 14.5px; font-weight: 600;
}
.extras .ico { color: var(--violet-2); font-size: 18px; }

/* ---------- Showcase ---------- */
.show { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; margin-top: clamp(48px, 6vw, 80px); align-items: center; }
.show__stage { position: relative; display: grid; place-items: center; padding-block: 12px; transition: --accent 0.9s ease; }
.show__stage::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 620px; height: 620px; margin: -310px 0 0 -310px; max-width: 160vw;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 50%, transparent), transparent);
  pointer-events: none;
}
.show__tilt { transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 1s var(--ease); }
.show .phone { --w: clamp(240px, 68vw, 330px); }
.show .phone__screen > img { opacity: 0; transform: scale(1.04); transition: opacity 0.7s var(--ease), transform 1.1s var(--ease); }
.show .phone__screen > img.is-active { opacity: 1; transform: none; }
.tabs { position: relative; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 8px; margin-inline: -20px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative; flex: none; scroll-snap-align: center; display: block; padding: 11px 16px; border: 0; border-radius: 999px; cursor: pointer; text-align: left;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: var(--muted); font-weight: 700; font-size: 14.5px; transition: color 0.3s, background-color 0.3s;
}
.tab:hover { color: #fff; }
.tab[aria-selected="true"] { color: #fff; background: rgba(124, 92, 250, 0.18); box-shadow: inset 0 0 0 1px rgba(159, 135, 255, 0.4); }
.tab__title { display: block; }
.tab__desc { display: none; }
.tab__bar { position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px; overflow: hidden; background: transparent; }
.tab__bar i { display: block; height: 100%; background: var(--violet-2); transform-origin: 0 50%; transform: scaleX(0); }
.show.is-auto .tab[aria-selected="true"] .tab__bar i { animation: tabprog var(--tab-dur, 5s) linear forwards; }
.show.is-paused .tab[aria-selected="true"] .tab__bar i { animation-play-state: paused; }
@keyframes tabprog { to { transform: scaleX(1); } }
.show__caption { min-height: 3.2em; margin-top: 14px; text-align: center; color: var(--muted); font-size: 16px; }
@media (min-width: 960px) {
  .show { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .show__stage { order: 2; }
  .tabs { flex-direction: column; overflow: visible; padding: 0; margin: 0; gap: 6px; }
  .tab { border-radius: 22px; padding: 18px 24px 20px; background: transparent; box-shadow: none; }
  .tab:hover { background: rgba(255, 255, 255, 0.03); }
  .tab[aria-selected="true"] { background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.06); }
  .tab__title { font: 600 19px/1.2 var(--display); letter-spacing: -0.02em; }
  .tab__desc { display: block; overflow: hidden; height: 0; opacity: 0; color: var(--muted); font-size: 15.5px; font-weight: 500; line-height: 1.5; transition: height 0.5s var(--ease), opacity 0.4s, margin 0.5s var(--ease); }
  .tab[aria-selected="true"] .tab__desc { height: auto; opacity: 1; margin-top: 8px; }
  .tab__bar { left: 24px; right: 24px; bottom: 0; background: rgba(255, 255, 255, 0.06); opacity: 0; }
  .tab[aria-selected="true"] .tab__bar { opacity: 1; }
  .show__caption { display: none; }
}

/* ---------- Levels ---------- */
.ladder { position: relative; display: grid; gap: 0; margin-top: clamp(48px, 6vw, 80px); }
.ladder::before, .ladder::after { content: ""; position: absolute; left: 31px; top: 32px; bottom: 32px; width: 2px; border-radius: 2px; }
.ladder::before { background: rgba(255, 255, 255, 0.08); }
.ladder::after { background: linear-gradient(180deg, #ffe7a0, #f2c14e 50%, #9b82ff); transform-origin: 50% 0; transform: scaleY(0); transition: transform 2.2s var(--ease) 0.2s; }
.ladder.is-in::after { transform: scaleY(1); }
.rung { position: relative; display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 4px 20px; padding-block: 12px; }
.medal {
  position: relative; z-index: 1; grid-row: span 3; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; overflow: hidden;
  background: var(--gold-grad); color: #2b2112; font: 700 19px/1 var(--display); letter-spacing: -0.03em;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.55), inset 0 -3px 0 rgba(120, 70, 0, 0.35), 0 0 0 6px var(--bg), 0 12px 30px -8px rgba(242, 193, 78, 0.5);
}
.medal::after { content: ""; position: absolute; inset: -50%; background: linear-gradient(115deg, transparent 40%, rgba(255, 255, 255, 0.65) 50%, transparent 60%); transform: translateX(-60%); animation: medal-shine 6s var(--ease-io) infinite; animation-delay: calc(var(--i) * 0.25s + 1s); }
@keyframes medal-shine { 0%, 70% { transform: translateX(-60%); } 100% { transform: translateX(60%); } }
.rung b { font: 600 18px/1.2 var(--display); letter-spacing: -0.02em; }
.rung > span:not(.medal) { color: #d4d4d8; font-size: 15.5px; }
.rung small { color: var(--dim); font-size: 13.5px; font-weight: 700; }
@media (min-width: 900px) {
  .ladder { grid-template-columns: repeat(7, 1fr); gap: 12px; }
  .ladder::before, .ladder::after { left: 8%; right: 8%; top: 40px; bottom: auto; width: auto; height: 2px; }
  .ladder::after { background: linear-gradient(90deg, #9b82ff, #f2c14e 50%, #ffe7a0); transform-origin: 0 50%; transform: scaleX(0); }
  .ladder.is-in::after { transform: scaleX(1); }
  .rung { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; padding: 0; }
  .medal { grid-row: auto; width: 80px; height: 80px; font-size: 22px; margin-bottom: 14px; }
  .rung b { font-size: 16px; }
  .rung > span:not(.medal) { font-size: 14.5px; line-height: 1.35; }
}
.js .ladder .rung { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--i) * 0.12s + 0.15s); }
.js .ladder.is-in .rung { opacity: 1; transform: none; }

.exam { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; margin-top: clamp(80px, 10vw, 140px); }
@media (min-width: 960px) { .exam { grid-template-columns: 1fr 1fr; gap: 64px; } }
.exam h3 { font-size: clamp(26px, 3.4vw, 40px); }
.exam p { margin-top: 18px; color: var(--muted); font-size: 17px; max-width: 520px; }
.checks { display: grid; gap: 12px; margin-top: 26px; }
.checks li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #e4e4e7; }
.checks li > span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; flex: none; background: rgba(48, 209, 88, 0.14); color: var(--green); }
.checks .ico { font-size: 15px; stroke-width: 3; }

.cert-wrap { perspective: 1200px; display: grid; place-items: center; }
.cert {
  --rx: 0deg; --ry: 0deg;
  position: relative; width: min(100%, 400px); padding: 9px; border-radius: 30px; overflow: hidden;
  background: linear-gradient(140deg, #ffe7a0, #e9b44c 30%, #b8801e 55%, #f5d27a 80%, #c9922a);
  box-shadow: 0 50px 100px -30px rgba(242, 193, 78, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.9s var(--ease);
}
.cert__inner { position: relative; padding: 30px 26px 26px; border-radius: 22px; background: radial-gradient(120% 80% at 50% 0%, #fffdf6, #fbf3df); color: #2b2112; text-align: center; }
.cert__brand { display: inline-flex; align-items: center; gap: 8px; color: #6d5a3a; font: 700 12px/1 var(--display); letter-spacing: 0.18em; }
.cert__brand .ico { font-size: 18px; }
.cert__title { margin-top: 16px; font: 700 clamp(26px, 6.6vw, 34px)/1 var(--display); letter-spacing: 0.08em; }
.cert__sub { margin-top: 8px; color: #6d5a3a; font-size: 13px; font-weight: 600; }
.cert__medal { position: relative; overflow: hidden; display: grid; place-items: center; width: 96px; height: 96px; margin: 22px auto 0; border-radius: 50%; background: var(--gold-grad); font: 700 30px/1 var(--display); letter-spacing: -0.03em; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.6), inset 0 -4px 0 rgba(120, 70, 0, 0.3), 0 12px 24px -8px rgba(185, 128, 30, 0.6); }
.cert__lvl { margin-top: 14px; font: 600 18px/1.2 var(--display); }
.cert__desc { margin-top: 4px; color: #6d5a3a; font-size: 14px; font-weight: 600; }
.cert__rule { height: 1px; margin: 20px 0 16px; background: linear-gradient(90deg, transparent, rgba(109, 90, 58, 0.35), transparent); }
.cert__label { color: #8a7650; font-size: 11.5px; font-weight: 800; letter-spacing: 0.2em; }
.cert__name { margin-top: 6px; font: 600 24px/1.1 var(--display); letter-spacing: -0.02em; }
.cert__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 20px; }
.cert__stats b { display: block; font: 700 16px/1.1 var(--sans); }
.cert__stats span { display: block; margin-top: 3px; color: #8a7650; font-size: 12px; font-weight: 600; }
.cert__shine {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.9) 45%, rgba(255, 220, 255, 0.6) 50%, transparent 62%);
  background-size: 250% 100%; background-position: 140% 0; animation: cert-shine 6s var(--ease-io) infinite 1s;
}
@keyframes cert-shine { 0%, 55% { background-position: 140% 0; } 100% { background-position: -40% 0; } }

/* ---------- Quiz ---------- */
.try__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; align-items: center; }
@media (min-width: 960px) { .try__grid { grid-template-columns: 1fr minmax(0, 480px); gap: 72px; } }
.quiz {
  position: relative; padding: 22px; border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 80px -40px rgba(124, 92, 250, 0.5);
}
@media (min-width: 560px) { .quiz { padding: 28px; } }
.quiz__top { display: flex; align-items: center; gap: 14px; }
.quiz__steps { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.quiz__steps i { height: 8px; border-radius: 9px; background: rgba(255, 255, 255, 0.09); transition: background-color 0.4s; }
.quiz__steps i.is-ok { background: var(--green); }
.quiz__steps i.is-bad { background: var(--red); }
.quiz__steps i.is-now { background: rgba(159, 135, 255, 0.55); }
.quiz__xp { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(124, 92, 250, 0.16); color: var(--lilac); font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.quiz__xp .ico { font-size: 15px; }
.quiz__xp.is-bump { animation: bump 0.6s var(--ease); }
@keyframes bump { 40% { transform: scale(1.18); } }
.quiz__card {
  position: relative; margin-top: 20px; padding: 34px 20px 30px; border-radius: 26px; text-align: center;
  background: linear-gradient(180deg, #2d2d34, #1f1f25); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: opacity 0.35s, transform 0.5s var(--ease);
}
.quiz__card.is-out { opacity: 0; transform: translateY(-10px) scale(0.98); }
.quiz__level { position: absolute; left: 16px; top: 16px; padding: 4px 9px; border-radius: 8px; background: rgba(242, 193, 78, 0.16); color: #f5d27a; font: 700 11.5px/1 var(--display); }
.quiz__speak { position: absolute; right: 14px; top: 14px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; cursor: pointer; background: var(--grad); color: #fff; box-shadow: 0 8px 20px -6px rgba(124, 92, 250, 0.8); transition: transform 0.3s var(--ease); }
.quiz__speak:hover { transform: scale(1.06); }
.quiz__speak:active { transform: scale(0.94); }
.quiz__speak .ico { font-size: 20px; }
.quiz__speak[hidden] { display: none; }
.quiz__word { font: 600 clamp(30px, 8vw, 40px)/1.1 var(--display); letter-spacing: -0.035em; overflow-wrap: anywhere; }
.quiz__ipa { margin-top: 10px; color: var(--muted); font-size: 17px; }
.quiz__q { margin-top: 20px; color: var(--muted); font-size: 14.5px; font-weight: 700; text-align: center; }
.quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.opt {
  position: relative; min-height: 58px; padding: 12px 14px; border: 0; border-radius: 18px; cursor: pointer;
  background: #1d1d22; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 -3px 0 rgba(0, 0, 0, 0.35);
  font-size: 16px; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere;
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease), opacity 0.3s;
}
.opt:hover:not([aria-disabled="true"]) { background: #26262c; transform: translateY(-2px); }
.opt:active:not([aria-disabled="true"]) { transform: translateY(1px); }
.opt[aria-disabled="true"] { cursor: default; }
.opt.is-ok { background: rgba(48, 209, 88, 0.18); color: #7ee2a0; box-shadow: inset 0 0 0 1.5px rgba(48, 209, 88, 0.8); }
.opt.is-bad { background: rgba(255, 69, 58, 0.16); color: #ff8a82; box-shadow: inset 0 0 0 1.5px rgba(255, 69, 58, 0.75); animation: shake 0.45s; }
.opt.is-dim { opacity: 0.4; }
@keyframes shake { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }
.xp-float { position: absolute; left: 50%; top: 40%; z-index: 5; pointer-events: none; color: var(--lilac); font: 700 20px/1 var(--display); text-shadow: 0 4px 20px rgba(124, 92, 250, 0.9); animation: xpfloat 1.1s var(--ease) forwards; }
@keyframes xpfloat { from { opacity: 0; transform: translate(-50%, 10px) scale(0.8); } 25% { opacity: 1; transform: translate(-50%, -8px) scale(1.05); } to { opacity: 0; transform: translate(-50%, -54px); } }
.quiz__done { padding: 26px 6px 6px; text-align: center; }
.quiz__done[hidden] { display: none; }
.quiz__score { font: 600 clamp(40px, 10vw, 56px)/1 var(--display); letter-spacing: -0.04em; }
.quiz__score b { font-weight: inherit; }
.quiz__score span { color: var(--muted); }
.quiz__msg { margin: 14px auto 0; max-width: 340px; color: var(--muted); }
.quiz__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.quiz__main[hidden] { display: none; }

/* ---------- Install ---------- */
.steps { position: relative; display: grid; gap: 14px; margin-top: clamp(48px, 6vw, 72px); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
.step { position: relative; overflow: hidden; padding: 28px 26px 30px; border-radius: 28px; background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075); }
.step__num { position: absolute; right: 18px; top: 6px; font: 700 84px/1 var(--display); letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.12); }
.step__ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 17px; background: rgba(124, 92, 250, 0.16); color: var(--lilac); box-shadow: inset 0 0 0 1px rgba(159, 135, 255, 0.25); }
.step__ico .ico { font-size: 24px; }
.step h3 { margin-top: 22px; font-size: 19px; letter-spacing: -0.025em; }
.step p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }
.note {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; padding: 18px 20px; border-radius: 22px;
  background: rgba(255, 159, 10, 0.08); box-shadow: inset 0 0 0 1px rgba(255, 159, 10, 0.25); color: #ffd9a3; font-size: 15px;
}
.note .ico { flex: none; margin-top: 2px; font-size: 22px; color: var(--flame); }
.install__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 32px; }
.install__cta p { color: var(--dim); font-size: 14px; font-weight: 600; }
.iphone {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 18px 22px;
  margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(124, 92, 250, 0.08));
}
.iphone__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: #fff; color: #000; }
.iphone__ico .ico { font-size: 28px; }
.iphone h3 { font-size: 19px; letter-spacing: -0.02em; }
.iphone p { margin-top: 6px; color: var(--muted); font-size: 15px; }
@media (max-width: 720px) {
  .iphone { grid-template-columns: auto minmax(0, 1fr); }
  .iphone .btn { grid-column: 1 / -1; justify-self: start; }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: start; } .faq-grid .section-head { position: sticky; top: 120px; } }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 22px; background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.075); transition: background-color 0.3s; }
.faq details[open] { background: rgba(255, 255, 255, 0.055); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; border-radius: 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, 0.07); transition: transform 0.5s var(--ease), background-color 0.3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: #fff; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { transform: rotate(45deg); background: var(--violet); }
.faq details p { padding: 0 22px 22px; color: var(--muted); font-size: 16px; }
.faq details p a { color: var(--lilac); text-decoration: underline; text-underline-offset: 3px; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.5s var(--ease), content-visibility 0.5s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; isolation: isolate; padding: 1px; border-radius: 40px; }
.final::before {
  content: ""; position: absolute; left: 50%; top: 50%; z-index: -1; width: max(150%, 900px); aspect-ratio: 1; translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0 64%, rgba(159, 135, 255, 0.9) 76%, rgba(255, 214, 10, 0.9) 84%, transparent 92%);
  animation: spin 9s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn); } }
.final__inner {
  position: relative; overflow: hidden; padding: clamp(56px, 8vw, 96px) 24px; border-radius: 39px; text-align: center;
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(124, 92, 250, 0.55), transparent 70%),
    radial-gradient(50% 60% at 85% 100%, rgba(47, 107, 255, 0.35), transparent 70%),
    radial-gradient(40% 50% at 10% 90%, rgba(255, 214, 10, 0.12), transparent 70%),
    #0b0a14;
}
.final__ghost {
  position: absolute; left: 50%; bottom: -0.2em; transform: translateX(-50%); z-index: 0; white-space: nowrap; pointer-events: none;
  font: 700 clamp(80px, 17vw, 230px)/1 var(--display); letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.09);
}
.final__inner > *:not(.final__ghost) { position: relative; z-index: 1; }
.final__icon { width: 96px; height: 96px; margin: 0 auto 26px; border-radius: 26px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 24px 60px -10px rgba(47, 107, 255, 0.8); animation: bob 6s ease-in-out infinite; }
.final h2 { font-size: clamp(30px, 5.4vw, 60px); max-width: 860px; margin-inline: auto; }
.final p { margin: 18px auto 0; max-width: 540px; color: rgba(255, 255, 255, 0.78); font-size: clamp(16.5px, 1.6vw, 19px); }
.final .btn { margin-top: 34px; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 56px; border-top: 1px solid var(--line); margin-top: clamp(80px, 10vw, 140px); color: var(--dim); font-size: 14.5px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer nav a { color: var(--muted); font-weight: 600; transition: color 0.3s; }
.footer nav a:hover { color: #fff; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 1s var(--ease), transform 1.2s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="scale"] { transform: translateY(24px) scale(0.96); }
.js [data-reveal="scale"].is-in { transform: none; }

/* Pause looping demos while off-screen */
.is-idle, .is-idle *, .is-idle *::before, .is-idle *::after { animation-play-state: paused !important; }

/* ---------- Legal page ---------- */
.legal { max-width: 760px; margin: 0 auto; padding: 120px 20px 40px; }
.legal h1 { margin-top: 14px; font-size: clamp(30px, 5vw, 46px); }
.legal .updated { margin-top: 14px; color: var(--dim); font-size: 14.5px; font-weight: 600; }
.legal h2 { margin: 40px 0 10px; font-size: 20px; letter-spacing: -0.02em; }
.legal p, .legal li { color: #c7c7cc; }
.legal p + p { margin-top: 12px; }
.legal ul { display: grid; gap: 6px; margin-top: 10px; padding-left: 22px; list-style: disc; }
.legal .form { display: grid; gap: 14px; margin-top: 28px; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255, 255, 255, 0.03); }
.legal .form label { display: grid; gap: 6px; font-size: 14.5px; font-weight: 700; color: #c7c7cc; }
.legal .form input {
  height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05); color: #fff; font: 600 16px/1 inherit;
}
.legal .form input:focus-visible { outline: 2px solid #7c5cfa; outline-offset: 1px; border-color: transparent; }
.legal .form .check { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; }
.legal .form .check input { width: 20px; height: 20px; margin-top: 2px; accent-color: #ff453a; flex: none; }
.legal .form .btn { justify-self: start; }
.btn--danger { background: #ff453a; color: #fff; }
.btn--danger:hover { background: #ff5a50; }
.btn[aria-disabled="true"] { opacity: 0.5; pointer-events: none; }
.legal .status { min-height: 1.5em; font-weight: 600; }
.legal .status.is-error { color: #ff6961; }
.legal .status.is-ok { color: #30d158; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .loop { --p: 1; --f: 1; }
  .timer__ring { --t: 0.7; }
  .timer__num { --sec: 42; }
  .verdict, .popover { opacity: 1; }
  .dict__typed { width: 24ch; }
  .read mark::before { transform: none; }
  .js [data-reveal], .js .ladder .rung, .js .hero [data-intro], .js .slot .phone, .js .float > * { opacity: 1; transform: none; }
  .js .hero__title .line > span { transform: none; }
  .ladder::after { transform: none !important; }
}
