/* Revisora website. Palette follows design/ (dark + light boards). */

:root {
  --bg: #F3F6F6;
  --bg-alt: #EAEFF0;
  --surface: #FFFFFF;
  --surface-2: #EEF2F3;
  --border: #E1E7E9;
  --text: #11181B;
  --muted: #5B676C;
  --accent: #0B7F76;        /* accent as text/icon on light */
  --brand: #4FD1C5;         /* button fill, both themes */
  --on-brand: #052321;
  --listen: #3B6FD8;
  --think: #C98A12;
  --shadow: 0 1px 2px rgba(17, 24, 27, .04), 0 12px 32px -12px rgba(17, 24, 27, .14);
  --glow: rgba(79, 209, 197, .30);
  --nav-bg: rgba(243, 246, 246, .72);
  --sky-top: #BFE3F2;
  --sky-mid: #DDF1F4;
  --clouds: .95;
  --stars: 0;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1114;
    --bg-alt: #10161A;
    --surface: #161B1F;
    --surface-2: #1D2428;
    --border: #1E252A;
    --text: #F1F5F5;
    --muted: #98A4A9;
    --accent: #4FD1C5;
    --listen: #86B0FF;
    --think: #F0C26B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -16px rgba(0, 0, 0, .6);
    --glow: rgba(79, 209, 197, .22);
    --nav-bg: rgba(13, 17, 20, .72);
    --sky-top: #0B1828;
    --sky-mid: #0D1620;
    --clouds: .05;
    --stars: 1;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0D1114;
  --bg-alt: #10161A;
  --surface: #161B1F;
  --surface-2: #1D2428;
  --border: #1E252A;
  --text: #F1F5F5;
  --muted: #98A4A9;
  --accent: #4FD1C5;
  --listen: #86B0FF;
  --think: #F0C26B;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 18px 40px -16px rgba(0, 0, 0, .6);
  --glow: rgba(79, 209, 197, .22);
  --nav-bg: rgba(13, 17, 20, .72);
  --sky-top: #0B1828;
  --sky-mid: #0D1620;
  --clouds: .05;
  --stars: 1;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .3s, color .3s;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg .fill, svg.fill, svg.fill * { fill: currentColor; stroke: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 820px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: var(--on-brand); padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--glow); animation: pulse 2s ease-in-out infinite; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.grad {
  background: linear-gradient(100deg, var(--brand) 0%, var(--listen) 55%, var(--brand) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 26px; border-radius: 20px; border: 0;
  font: inherit; font-weight: 600; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 0 var(--glow), 0 10px 30px -10px var(--glow); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 8px var(--glow), 0 14px 34px -10px var(--glow); }
.btn--ghost { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn--ghost:hover { transform: translateY(-2px); }
.btn--sm { height: 42px; padding: 0 18px; border-radius: 14px; font-size: 15px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav.is-scrolled { border-bottom-color: var(--border); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.01em; }
.brand img { border-radius: 10px; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 8px 12px; border-radius: 10px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color .2s, background-color .2s; }
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 14px; border: 0; cursor: pointer;
  background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border);
  display: grid; place-items: center; transition: transform .2s;
}
.theme-toggle:hover { transform: rotate(-12deg); }
.theme-toggle svg { width: 20px; height: 20px; display: none; }
.theme-toggle[data-mode="system"] .i-system,
.theme-toggle[data-mode="light"] .i-light,
.theme-toggle[data-mode="dark"] .i-dark { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background:
    radial-gradient(40% 50% at 78% 40%, var(--glow), transparent 70%),
    radial-gradient(30% 40% at 10% 10%, color-mix(in srgb, var(--listen) 18%, transparent), transparent 70%);
  filter: blur(10px);
}
.hero__grid > * { min-width: 0; }
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(46px, 7.2vw, 92px); font-weight: 800; margin: 18px 0 22px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__meta { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--muted); }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23052321' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 11px no-repeat; }

.hero__stage { position: relative; display: grid; place-items: center; min-height: 640px; }
.ripples { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.ripples span {
  position: absolute; width: 360px; height: 360px; border-radius: 50%;
  border: 1.5px solid var(--state, var(--brand)); opacity: 0;
  animation: ripple 4.5s cubic-bezier(.2, .6, .3, 1) infinite;
  transition: border-color .6s;
}
.ripples span:nth-child(2) { animation-delay: 1.5s; }
.ripples span:nth-child(3) { animation-delay: 3s; }

/* phone mock (screens from design/) */
.phone {
  position: relative; width: 300px; height: 620px; border-radius: 48px; padding: 10px;
  background: linear-gradient(160deg, #2A3238, #0B0F12);
  box-shadow: 0 0 0 1px rgba(255,255,255,.06) inset, 0 40px 80px -30px rgba(0,0,0,.55), 0 0 90px -20px var(--glow);
  transform: rotate(-3deg);
  animation: float 7s ease-in-out infinite;
}
.phone__notch { position: absolute; top: 20px; left: 50%; width: 84px; height: 24px; margin-left: -42px; border-radius: 14px; background: #05080A; z-index: 3; }
.screen {
  --st: var(--accent);
  position: relative; width: 100%; height: 100%; border-radius: 39px; overflow: hidden;
  background: var(--bg); color: var(--text);
  display: flex; flex-direction: column; font-size: 14px;
  transition: background-color .3s;
}
.screen[data-state="speaking"] { --st: var(--accent); }
.screen[data-state="listening"] { --st: var(--listen); }
.screen[data-state="thinking"], .screen[data-state="rate"] { --st: var(--think); }
.screen__top { padding: 54px 20px 0; text-align: center; font-weight: 500; }
.screen__mid { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 0 22px; text-align: center; }
.orb {
  position: relative; width: 196px; height: 196px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 2px solid var(--st);
  background: color-mix(in srgb, var(--st) 10%, transparent);
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--st) 7%, transparent), 0 0 0 26px color-mix(in srgb, var(--st) 3.5%, transparent);
  transition: border-color .5s, background-color .5s, box-shadow .5s;
  animation: breathe 3.4s ease-in-out infinite;
  margin-bottom: 26px;
}
.orb__label { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.bars { display: flex; align-items: center; gap: 4px; height: 26px; }
.bars i { width: 4px; height: 6px; border-radius: 2px; background: var(--st); transition: background-color .5s; }
.screen[data-state="speaking"] .bars i,
.screen[data-state="listening"] .bars i { animation: eq 1s ease-in-out infinite; }
.bars i:nth-child(2) { animation-delay: -.2s !important; }
.bars i:nth-child(3) { animation-delay: -.5s !important; }
.bars i:nth-child(4) { animation-delay: -.1s !important; }
.bars i:nth-child(5) { animation-delay: -.7s !important; }
.bars i:nth-child(6) { animation-delay: -.35s !important; }
.bars i:nth-child(7) { animation-delay: -.6s !important; }
.screen[data-state="thinking"] .bars i { animation: dots 1.2s ease-in-out infinite; height: 6px; }
.screen__q { font-size: 16px; max-width: 220px; line-height: 1.35; }
.screen__sub { font-size: 12px; color: var(--muted); }
.screen__controls { display: flex; gap: 8px; padding: 0 14px 26px; }
.ctl {
  flex: 1; height: 62px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 500;
}
.ctl svg { width: 18px; height: 18px; }
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--surface); border-radius: 26px 26px 0 0; padding: 10px 16px 26px;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  box-shadow: 0 -12px 40px rgba(0,0,0,.25);
  transform: translateY(105%); transition: transform .55s cubic-bezier(.2, .8, .2, 1);
}
.screen[data-state="rate"] .sheet { transform: none; }
.screen[data-state="rate"] .screen__mid, .screen[data-state="rate"] .screen__controls { opacity: .35; }
.screen__mid, .screen__controls { transition: opacity .4s; }
.sheet__grip { width: 34px; height: 4px; border-radius: 2px; background: var(--border); margin-bottom: 12px; }
.sheet__said { font-size: 12px; color: var(--muted); }
.sheet__q { font-size: 34px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.sheet__btns { display: flex; gap: 8px; width: 100%; }
.sheet__btns span { height: 48px; border-radius: 16px; display: grid; place-items: center; font-weight: 600; }
.sheet__btns .yes { flex: 1.5; background: var(--brand); color: var(--on-brand); }
.sheet__btns .chg { flex: 1; background: var(--surface-2); font-weight: 500; }

/* speech bubbles around the phone */
.bubble {
  position: absolute; z-index: 4; max-width: 250px;
  padding: 14px 16px; border-radius: 20px;
  background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
  font-size: 15px; font-weight: 500; line-height: 1.4;
  opacity: .35; transform: translateY(6px) scale(.97);
  transition: opacity .5s, transform .5s, box-shadow .5s;
}
.bubble em { color: var(--accent); font-style: normal; }
.bubble.is-on { opacity: 1; transform: none; }
.bubble__who { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.bubble__who img { width: 16px; height: 16px; border-radius: 5px; }
.bubble--app { top: 150px; left: -20px; max-width: 220px; border-bottom-left-radius: 6px; }
.bubble--you { top: 360px; right: -20px; max-width: 220px; border-bottom-right-radius: 6px; }
.bubble--you.is-on { box-shadow: var(--shadow), inset 0 0 0 1.5px var(--listen); }
.bubble--small { top: auto; bottom: 90px; left: 10px; }


/* ---------- sky ---------- */
.sky {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 45%, var(--bg) 100%);
  transition: background .4s;
}
.sky__stars {
  position: absolute; inset: 0; opacity: var(--stars); transition: opacity .4s;
  background-image:
    radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 120px 80px, #cfe, transparent),
    radial-gradient(1.5px 1.5px at 200px 160px, #fff, transparent),
    radial-gradient(1px 1px at 60px 210px, #bcd, transparent),
    radial-gradient(1px 1px at 260px 40px, #fff, transparent),
    radial-gradient(2px 2px at 310px 120px, #e8fffb, transparent);
  background-size: 340px 260px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 90%);
          mask-image: linear-gradient(180deg, #000 0%, #000 50%, transparent 90%);
  animation: twinkle 5s ease-in-out infinite alternate;
}
.cloud {
  position: absolute; border-radius: 50%; background: #fff; opacity: var(--clouds);
  filter: blur(18px); transition: opacity .4s;
  animation: drift 60s linear infinite;
}
.cloud::before, .cloud::after { content: ""; position: absolute; border-radius: 50%; background: inherit; }
.cloud--1 { width: 340px; height: 90px; top: 12%; left: -10%; }
.cloud--1::before { width: 180px; height: 120px; left: 60px; top: -50px; }
.cloud--1::after { width: 150px; height: 100px; left: 170px; top: -30px; }
.cloud--2 { width: 260px; height: 70px; top: 48%; left: 40%; animation-duration: 85s; animation-delay: -30s; }
.cloud--2::before { width: 140px; height: 90px; left: 50px; top: -40px; }
.cloud--2::after { width: 110px; height: 80px; left: 130px; top: -24px; }
.cloud--3 { width: 300px; height: 80px; top: 26%; left: 70%; animation-duration: 75s; animation-delay: -55s; }
.cloud--3::before { width: 160px; height: 110px; left: 70px; top: -48px; }
.cloud--3::after { width: 120px; height: 90px; left: 160px; top: -28px; }

/* ---------- name band ---------- */
.name { padding: clamp(64px, 9vw, 112px) 0; text-align: center; }
.name__inner { display: grid; justify-items: center; gap: 30px; }
.name__word { font-size: clamp(56px, 11vw, 132px); font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.name__letters { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; width: 100%; max-width: 820px; }
.name__letters li {
  display: grid; justify-items: center; gap: 6px; padding: 22px 10px; border-radius: 24px;
  background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
}
.name__letters b {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-size: 26px; font-weight: 800; color: var(--accent);
  border: 2px solid var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface));
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 7%, transparent);
}
.name__letters span { font-weight: 600; font-size: 18px; }
.name__line { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); max-width: 46ch; }

/* ---------- moments strip ---------- */
.moments { border-block: 1px solid var(--border); background: var(--bg-alt); padding: 26px 0; }
.moments .wrap { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: space-between; }
.moments__title { font-weight: 600; }
.moments__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.moments__list li {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 12px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); font-size: 15px; font-weight: 500;
}
.moments__list svg { width: 18px; height: 18px; color: var(--accent); }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--alt { background: var(--bg-alt); }
.section__head { display: grid; gap: 14px; margin-bottom: 52px; max-width: 760px; }
.section h2 { font-size: clamp(32px, 4.4vw, 52px); font-weight: 800; }
.section h3 { font-size: 20px; font-weight: 650; letter-spacing: -0.015em; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 58px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--border) 0 8px, transparent 8px 16px);
}
.step {
  position: relative; padding: 28px 24px; border-radius: 28px;
  background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
  transition: transform .3s;
}
.step:hover { transform: translateY(-6px); }
.step__n { position: absolute; top: 20px; right: 22px; font-size: 13px; font-weight: 700; color: var(--muted); }
.step__icon, .card__icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px;
  color: var(--c); border: 2px solid var(--c);
  background: color-mix(in srgb, var(--c) 10%, var(--surface));
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--c) 7%, transparent);
}
.card__icon { width: 48px; height: 48px; margin-bottom: 18px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--c) 7%, transparent); }
.card__icon svg { width: 22px; height: 22px; }
.step h3 { margin-bottom: 8px; }
.step p, .pcard p { color: var(--muted); font-size: 16px; }

/* features wall */
.wall {
  display: grid; gap: 16px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 210px;
  grid-template-areas:
    "grade grade hero hero voice voice"
    "think place hero hero screen screen"
    "manual manual math langs langs habit";
}
.tile {
  position: relative; overflow: hidden; border-radius: 28px; padding: 20px;
  background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 14px;
  text-align: center; transition: transform .3s;
}
.tile:hover { transform: translateY(-4px); }
.tile > :first-child { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; }
.tile > .mini-orb { flex: none; width: 96px; height: 96px; margin-block: auto; }
.tile h3 { font-size: 18px; font-weight: 650; position: relative; }
.t-hero { grid-area: hero; justify-content: center; gap: 30px; padding: 32px; }
.t-hero > .sky { flex: none; position: absolute; }
.t-hero h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.03em; }
.t-grade { grid-area: grade; } .t-voice { grid-area: voice; } .t-think { grid-area: think; }
.t-place { grid-area: place; } .t-screen { grid-area: screen; } .t-manual { grid-area: manual; }
.t-math { grid-area: math; } .t-langs { grid-area: langs; } .t-habit { grid-area: habit; }

.hero-orb {
  --st: var(--accent);
  position: relative; flex: none !important; width: 210px; height: 210px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  border: 2px solid var(--st); background: color-mix(in srgb, var(--st) 12%, var(--surface));
  box-shadow: 0 0 0 16px color-mix(in srgb, var(--st) 8%, transparent), 0 0 0 34px color-mix(in srgb, var(--st) 4%, transparent);
  transition: border-color .6s, background-color .6s, box-shadow .6s;
  animation: breathe 3.4s ease-in-out infinite;
}
.hero-orb[data-state="listening"] { --st: var(--listen); }
.hero-orb[data-state="thinking"] { --st: var(--think); }
.hero-orb__label { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.hero-orb .bars i { animation: eq 1s ease-in-out infinite; background: var(--st); }
.hero-orb[data-state="thinking"] .bars i { animation: dots 1.2s ease-in-out infinite; height: 6px; }

.marquee {
  display: grid !important; gap: 10px; align-content: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__row { display: flex; gap: 8px; width: max-content; animation: marquee 22s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 26s; }
.tile:hover .marquee__row { animation-play-state: paused; }
.marquee__row span { padding: 8px 13px; border-radius: 12px; font-size: 14px; font-weight: 500; white-space: nowrap; background: var(--bg); box-shadow: inset 0 0 0 1px var(--border); }
.marquee__row .hl { background: color-mix(in srgb, var(--listen) 16%, var(--surface)); color: var(--listen); box-shadow: none; }

.grade-demo { width: 100%; max-width: 340px; display: grid !important; gap: 12px; font-size: 15px; padding: 16px; border-radius: 18px; background: var(--bg); }
.gd-row { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: baseline; }
.gd-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gd-you .gd-val { color: var(--listen); font-weight: 500; }
.gd-chips { display: flex; gap: 6px; padding-top: 4px; }
.chip { padding: 7px 13px; border-radius: 12px; background: var(--surface-2); font-size: 13px; font-weight: 600; color: var(--muted); }
.chip--on { background: var(--brand); color: var(--on-brand); box-shadow: 0 0 0 4px var(--glow); }


.lock { width: 100%; max-width: 320px; text-align: left; padding: 14px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); display: grid; gap: 3px; font-size: 14px; }
.lock__head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.lock__head img { width: 16px; height: 16px; border-radius: 5px; }
.lock__title { font-weight: 600; }
.lock__sub { font-size: 12.5px; color: var(--muted); }

.mini-orb {
  flex: none !important; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; font-size: 16px; color: var(--c);
  border: 2px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent);
  box-shadow: 0 0 0 9px color-mix(in srgb, var(--c) 7%, transparent);
  animation: breathe 3.4s ease-in-out infinite;
}
.say { font-size: 14px; font-style: italic; color: var(--text); }
.say--dot { font-style: normal; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.say--dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.flip { width: 100%; perspective: 900px; display: grid !important; place-items: center; }
.flip__card { position: relative; width: 100%; max-width: 300px; height: 120px; transform-style: preserve-3d; animation: flip 6s ease-in-out infinite; }
.flip__face {
  position: absolute; inset: 0; border-radius: 18px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  font-size: 19px; font-weight: 600; letter-spacing: -0.01em;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border);
}
.flip__face small { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.flip__back { transform: rotateY(180deg); background: color-mix(in srgb, var(--brand) 14%, var(--surface)); color: var(--accent); }

.math { display: grid !important; justify-items: center; align-content: center; gap: 6px; text-align: center; }
.math__tex { font-family: 'Times New Roman', serif; font-style: italic; font-size: 34px; }
.math__say { font-size: 15px; font-weight: 500; color: var(--accent); }

.langs { display: flex !important; flex-direction: row !important; align-items: center; gap: 10px; color: var(--muted); }
.langs span { padding: 10px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); color: var(--text); font-weight: 600; font-size: 15px; }
.langs span.on { background: color-mix(in srgb, var(--listen) 14%, var(--surface)); color: var(--listen); box-shadow: none; }

.week { display: flex !important; flex-direction: row !important; gap: 6px; }
.week .d { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.week .d.on { background: var(--brand); color: var(--on-brand); box-shadow: none; }

/* anki */
.anki { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.anki__copy { display: grid; gap: 18px; }
.ticks { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li strong { color: var(--text); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--brand) 18%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232BB8AB' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.ticks--sm { gap: 11px; font-size: 15.5px; }
.ticks--sm li { color: var(--text); }
.anki__visual { position: relative; padding: 30px 20px; }
.deck-list { position: relative; border-radius: 30px; padding: 26px 0 30px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--border); }
.deck-list__head { padding: 0 24px 16px; font-weight: 600; font-size: 19px; }
.deck { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 24px; border-top: 1px solid var(--border); font-weight: 500; }
.deck:last-of-type { border-bottom: 1px solid var(--border); }
.due { font-size: 14px; color: var(--accent); white-space: nowrap; }
.due.zero { color: var(--muted); }
.tag { font-style: normal; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 8px; margin-left: 6px; background: color-mix(in srgb, var(--listen) 16%, transparent); color: var(--listen); vertical-align: 2px; }
.deck-list__fab { position: absolute; right: 22px; bottom: -22px; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; font-weight: 400; background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -6px var(--glow); }
.file-chip { position: absolute; padding: 10px 16px; border-radius: 14px; font-weight: 700; font-size: 14px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--border); animation: float 6s ease-in-out infinite; }
.file-chip--a { top: 0; right: 0; color: var(--accent); }
.file-chip--b { bottom: 10px; left: 0; color: var(--listen); animation-delay: -3s; }

/* privacy */
.privacy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard { padding: 26px; border-radius: 26px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--border); display: grid; align-content: start; gap: 8px; }
.disclosure, .faq details {
  margin-top: 22px; border-radius: 22px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--border);
}
.disclosure summary, .faq summary {
  list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.disclosure summary::-webkit-details-marker, .faq summary::-webkit-details-marker { display: none; }
.disclosure summary::after, .faq summary::after {
  content: ""; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2398A4A9' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .3s;
}
details[open] > summary::after { transform: rotate(45deg); }
.disclosure ul { margin: 0; padding: 0 24px 0 46px; color: var(--muted); display: grid; gap: 6px; }
.disclosure p { padding: 14px 24px 22px; color: var(--muted); font-size: 15px; }

/* pricing */
.plans { display: grid; grid-template-columns: 1fr 1.15fr; gap: 20px; align-items: stretch; max-width: 960px; }
.plan { position: relative; padding: 34px; border-radius: 30px; background: var(--surface); box-shadow: var(--shadow), inset 0 0 0 1px var(--border); display: grid; align-content: start; gap: 12px; }
.plan--pro { box-shadow: var(--shadow), inset 0 0 0 2px var(--brand), 0 0 70px -24px var(--glow); }
.plan__badge { position: absolute; top: -14px; left: 30px; padding: 6px 14px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font-size: 13px; font-weight: 700; }
.plan__price { font-size: 36px; font-weight: 800; letter-spacing: -0.03em; }
.plan__price span { font-size: 16px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan__note { color: var(--muted); font-size: 15px; margin-top: -6px; }
.fine { margin-top: 26px; font-size: 14.5px; color: var(--muted); max-width: 760px; }

/* faq */
.faq { display: grid; gap: 12px; }
.faq details { margin: 0; transition: box-shadow .3s; }
.faq details[open] { box-shadow: inset 0 0 0 1px var(--border), var(--shadow); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* cta */
.cta { position: relative; padding: clamp(80px, 11vw, 140px) 0; overflow: hidden; text-align: center; }
.cta .sky { background: linear-gradient(0deg, var(--sky-top) 0%, var(--sky-mid) 50%, var(--bg) 100%); }
.cta .sky__stars { -webkit-mask-image: linear-gradient(0deg, #000 0%, #000 40%, transparent 85%); mask-image: linear-gradient(0deg, #000 0%, #000 40%, transparent 85%); }
.cta__inner { position: relative; display: grid; justify-items: center; gap: 18px; }
.cta h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; max-width: 16ch; }
.cta__orb { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: 28px; }
.cta__orb > span { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--brand); animation: ripple-sm 3.4s ease-out infinite; opacity: 0; }
.cta__orb > span:nth-child(2) { animation-delay: 1.7s; }
.cta__start {
  width: 144px; height: 144px; border-radius: 50%; background: var(--brand); color: var(--on-brand);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; letter-spacing: .1em;
  box-shadow: 0 0 0 14px rgba(79,209,197,.10), 0 0 0 30px rgba(79,209,197,.05);
}
.cta__start svg { width: 32px; height: 32px; fill: currentColor; stroke: none; }
.store { margin-top: 14px; }
.store__badge {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; border-radius: 18px;
  background: var(--text); color: var(--bg); text-align: left; line-height: 1.15; font-weight: 600; font-size: 19px;
}
.store__badge small { display: block; font-size: 11.5px; font-weight: 500; opacity: .75; }
.store__badge svg { width: 28px; height: 28px; }

/* footer */
.footer { border-top: 1px solid var(--border); padding: 34px 0; font-size: 14.5px; color: var(--muted); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
.footer .brand { color: var(--text); }
.footer nav { display: flex; gap: 22px; }
.footer nav a:hover { color: var(--text); }

/* ---------- reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- keyframes ---------- */
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes ripple { 0% { transform: scale(.75); opacity: .55; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes ripple-sm { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes eq { 0%, 100% { height: 5px; } 50% { height: 24px; } }
@keyframes dots { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-4px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drift { from { transform: translateX(-40vw); } to { transform: translateX(80vw); } }
@keyframes twinkle { from { opacity: calc(var(--stars) * .55); } to { opacity: var(--stars); } }
@keyframes flip { 0%, 35% { transform: rotateY(0); } 50%, 85% { transform: rotateY(180deg); } 100% { transform: rotateY(360deg); } }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
  .privacy { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .wall {
    grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 190px;
    grid-template-areas: "hero hero" "hero hero" "grade grade" "voice voice" "think place" "screen screen" "manual manual" "math habit" "langs langs";
  }
  .hero__grid, .anki { grid-template-columns: 1fr; }
  .hero__copy { text-align: center; display: grid; justify-items: center; }
  .hero__cta, .hero__meta { justify-content: center; }
  .hero__stage { min-height: 600px; }
  .plans { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  body { font-size: 16px; }
  .nav__actions .btn { display: none; }
  .steps, .privacy { grid-template-columns: 1fr; }
  .name__letters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__stage { min-height: 560px; }
  .phone { width: 260px; height: 540px; border-radius: 42px; }
  .screen { border-radius: 33px; }
  .orb { width: 168px; height: 168px; margin-bottom: 18px; }
  .orb__label { font-size: 26px; }
  .bubble { max-width: 170px; font-size: 13px; padding: 10px 12px; }
  .bubble--app { top: 0; left: 0; }
  .bubble--you { top: auto; bottom: 0; right: 0; }
  .bubble--small { display: none; }
  .hero__stage { padding: 56px 0; min-height: 0; }
  .ripples span { width: 280px; height: 280px; }
  .moments .wrap { justify-content: center; text-align: center; }
  .moments__list { justify-content: center; }
  .plan { padding: 28px 22px; }
  .footer__inner { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}
