/* ==========================================================================
   Langsist landing page
   Dependency-free. Design tokens mirror the extension (indigo → violet).
   ========================================================================== */

:root {
  /* Brand */
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-rgb: 99, 102, 241;
  --accent-ink: #ffffff;
  --accent-soft: rgba(99, 102, 241, 0.14);
  --accent-soft-2: rgba(139, 92, 246, 0.16);

  /* Surfaces (dark default) */
  --bg: #0b0d14;
  --bg-2: #0f1118;
  --surface: #151824;
  --surface-2: #1b1f2e;
  --surface-3: #232838;
  --text: #eef1f8;
  --muted: #9aa4bd;
  --subtle: #6c748c;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --hairline: rgba(255, 255, 255, 0.07);

  --success: #34d399;
  --warn: #fbbf24;
  --danger: #fb7185;
  --info: #38bdf8;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-2: 0 14px 40px rgba(0, 0, 0, 0.45);
  --shadow-3: 0 30px 80px rgba(0, 0, 0, 0.55);
  --glow: 0 18px 60px rgba(var(--accent-rgb), 0.35);

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 30px;
  --pill: 999px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --container: 1160px;
  --header-h: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 220ms;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f7fb;
    --bg-2: #eef0f7;
    --surface: #ffffff;
    --surface-2: #f5f6fb;
    --surface-3: #ebedf5;
    --text: #12141c;
    --muted: #566074;
    --subtle: #8b93a7;
    --border: rgba(18, 22, 40, 0.10);
    --border-strong: rgba(18, 22, 40, 0.18);
    --hairline: rgba(255, 255, 255, 0.9);
    --accent: #5b5ff0;
    --accent-2: #7c3aed;
    --accent-rgb: 91, 95, 240;
    --accent-soft: rgba(91, 95, 240, 0.10);
    --accent-soft-2: rgba(124, 58, 237, 0.10);
    --shadow-1: 0 1px 2px rgba(20, 30, 60, 0.08);
    --shadow-2: 0 16px 40px rgba(20, 30, 60, 0.12);
    --shadow-3: 0 30px 70px rgba(20, 30, 60, 0.16);
    --glow: 0 18px 50px rgba(var(--accent-rgb), 0.22);
    color-scheme: light;
  }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
  font-weight: 680;
}

p {
  margin: 0;
}

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

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 0.1em 0.42em;
  border-radius: 6px;
  color: var(--text);
}

mark {
  background: var(--accent-soft);
  color: inherit;
  border-radius: 4px;
  padding: 0 0.15em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow {
  max-width: 820px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 10px 16px;
  border-radius: 0 0 10px 0;
  z-index: 100;
}
.skip-link:focus {
  left: 0;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  box-shadow: 0 10px 26px rgba(var(--accent-rgb), 0.35);
}
.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(var(--accent-rgb), 0.45);
}

.btn-outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--text);
  background: var(--surface-2);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
}
.btn-ghost:hover {
  color: var(--text);
}

.btn-lg {
  padding: 15px 26px;
  font-size: 16px;
}
.btn-block {
  width: 100%;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur), background var(--dur);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 720;
  font-size: 18px;
  letter-spacing: -0.02em;
}
.brand-logo {
  border-radius: 9px;
  box-shadow: 0 6px 18px rgba(var(--accent-rgb), 0.4);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a {
  padding: 8px 14px;
  border-radius: var(--pill);
  font-size: 14.5px;
  font-weight: 550;
  color: var(--muted);
  transition: color var(--dur), background var(--dur);
}
.site-nav a:hover {
  color: var(--text);
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header-actions .btn {
  padding: 10px 18px;
  font-size: 14.5px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--dur) var(--ease), opacity var(--dur);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  padding: 84px 0 64px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 720px;
  background:
    radial-gradient(600px 340px at 22% 20%, var(--accent-soft), transparent 62%),
    radial-gradient(560px 320px at 82% 6%, var(--accent-soft-2), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  margin-bottom: 22px;
}
.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 25%, transparent);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.9rem);
  font-weight: 760;
  margin-bottom: 20px;
}
.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--info));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--muted);
  max-width: 30em;
  margin-bottom: 30px;
}
.lead strong {
  color: var(--text);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 26px;
}
.hero-cta.center {
  justify-content: center;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  color: var(--subtle);
  font-size: 13.5px;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-trust li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
}

/* ---------- Hero visual: browser + panel ---------- */
.hero-visual {
  position: relative;
}
.window {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3), var(--glow);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.dot-r {
  background: #ff5f57;
}
.dot-y {
  background: #febc2e;
}
.dot-g {
  background: #28c840;
}
.window-url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--subtle);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window-body {
  position: relative;
  padding: 16px;
  min-height: 380px;
}

.video-frame {
  position: relative;
  border-radius: var(--radius);
  height: 340px;
  background:
    radial-gradient(120% 120% at 20% 10%, #2b3566 0%, transparent 55%),
    radial-gradient(120% 120% at 90% 90%, #4c2b6b 0%, transparent 55%),
    #0a0b12;
  border: 1px solid var(--border);
  overflow: hidden;
}
.video-scene {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.55));
}
.video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

/* The Langsist panel overlay */
.ls-panel {
  position: absolute;
  top: 30px;
  right: 26px;
  width: 300px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  animation: float-in 900ms var(--ease) both;
}
@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.ls-tabs {
  display: flex;
  gap: 4px;
  padding: 10px 12px 0;
  border-bottom: 1px solid var(--border);
}
.ls-tab {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--subtle);
  padding: 7px 9px 9px;
  border-bottom: 2px solid transparent;
}
.ls-tab.is-active {
  color: var(--text);
  border-bottom-color: var(--accent);
}

.ls-caption {
  padding: 14px;
  display: grid;
  gap: 7px;
}
.ls-prev,
.ls-next {
  font-size: 11.5px;
  color: var(--subtle);
  line-height: 1.45;
}
.ls-current {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
}
.w {
  border-bottom: 1px dashed color-mix(in srgb, var(--accent) 55%, transparent);
  cursor: pointer;
  border-radius: 3px;
  padding: 1px 0;
}
.w:hover {
  background: var(--accent-soft);
}
.w.is-saved {
  background: var(--accent-soft);
  color: var(--text);
  border-bottom-color: transparent;
  box-shadow: inset 0 -2px 0 var(--accent);
}

.ls-card {
  margin: 0 12px 14px;
  padding: 13px;
  border-radius: 13px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.ls-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.ls-word {
  font-weight: 700;
  font-size: 15px;
}
.ls-tag {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 3px 8px;
  border-radius: var(--pill);
}
.ls-meaning {
  font-size: 12.5px;
  color: var(--text);
  margin-bottom: 8px;
}
.ls-meaning strong {
  color: var(--text);
}
.ls-why {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  margin-bottom: 11px;
}
.ls-why-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 2px;
}
.ls-actions {
  display: flex;
  gap: 8px;
}
.ls-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: var(--pill);
  border: 1px solid var(--border-strong);
  color: var(--muted);
}
.ls-chip-on {
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.float-card {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-2);
  font-size: 13px;
  color: var(--muted);
  animation: bob 6s ease-in-out infinite;
}
.float-card strong {
  color: var(--text);
}
.float-k {
  color: var(--warn);
}
.float-card-a {
  left: -20px;
  bottom: 78px;
}
.float-card-b {
  left: -14px;
  top: 96px;
  animation-delay: -3s;
}
.float-card-offline {
  top: 66px;
  left: -22px;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

/* ---------- Platform strip ---------- */
.platform-strip {
  padding: 40px 0 12px;
}
.strip-label {
  text-align: center;
  color: var(--subtle);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
}
.strip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.strip-item {
  padding: 11px 22px;
  border-radius: var(--pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 14.5px;
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  padding: 92px 0;
}
.section-alt {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
}
.section-head.left {
  text-align: left;
  margin-left: 0;
}
.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section h2 {
  font-size: clamp(1.75rem, 3.4vw, 2.6rem);
  margin-bottom: 16px;
}
.section-sub {
  color: var(--muted);
  font-size: 1.03rem;
}
.section-sub.left {
  text-align: left;
  margin-bottom: 26px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
}
.step:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}
.step-num {
  display: inline-block;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 10px;
  border-radius: var(--pill);
  margin-bottom: 14px;
}
.step h3 {
  font-size: 1.02rem;
  margin-bottom: 8px;
}
.step p {
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bento-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform var(--dur) var(--ease), border-color var(--dur), box-shadow var(--dur);
}
.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}
.bento-lg {
  grid-column: span 2;
  background:
    linear-gradient(135deg, var(--accent-soft), transparent 60%),
    var(--surface);
}
.icon-badge {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  margin-bottom: 18px;
}
.bento-card h3 {
  font-size: 1.12rem;
  margin-bottom: 10px;
}
.bento-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Split sections ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 60px;
  align-items: center;
}
.split.reverse .split-visual {
  order: -1;
}
.split-visual {
  position: relative;
}
.split-copy .section-sub {
  margin-bottom: 24px;
}

.checklist {
  display: grid;
  gap: 12px;
}
.checklist li {
  position: relative;
  padding-left: 30px;
  color: var(--text);
  font-size: 0.96rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 8px;
  width: 5px;
  height: 9px;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.checklist.tight {
  gap: 10px;
  margin-bottom: 22px;
}
.checklist.tight li {
  font-size: 0.93rem;
}

/* ---------- Coach card ---------- */
.coach-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
}
.coach-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.coach-word {
  font-size: 1.6rem;
  font-weight: 750;
  letter-spacing: -0.02em;
}
.coach-badge {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 5px 12px;
  border-radius: var(--pill);
}
.coach-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.meta-chip {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface-3);
  border: 1px solid var(--border);
  padding: 4px 11px;
  border-radius: var(--pill);
}
.coach-block {
  margin-bottom: 16px;
}
.coach-label {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--subtle);
  margin-bottom: 5px;
}
.coach-block p {
  color: var(--text);
  font-size: 0.95rem;
}
.coach-why {
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}
.coach-why .coach-label {
  color: var(--accent);
}
.coach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 16px;
}
.coach-grid p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Anki card ---------- */
.anki-card {
  padding: 26px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
}
.anki-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
}
.anki-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--subtle);
  font-family: var(--mono);
}
.anki-due {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 16%, transparent);
  padding: 4px 11px;
  border-radius: var(--pill);
}
.anki-front {
  font-size: 1.28rem;
  line-height: 1.6;
  margin-bottom: 22px;
}
.blank {
  color: var(--accent);
  font-weight: 750;
  letter-spacing: 0.08em;
  border-bottom: 2px solid var(--accent);
  padding: 0 2px;
}
.anki-bar {
  height: 6px;
  border-radius: var(--pill);
  background: var(--surface-3);
  overflow: hidden;
  margin-bottom: 20px;
}
.anki-bar span {
  display: block;
  height: 100%;
  width: 42%;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.anki-buttons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.anki-btn {
  text-align: center;
  padding: 10px 0;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 650;
  border: 1px solid var(--border);
}
.anki-btn.again {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 12%, transparent);
}
.anki-btn.hard {
  color: var(--warn);
  background: color-mix(in srgb, var(--warn) 12%, transparent);
}
.anki-btn.good {
  color: var(--info);
  background: color-mix(in srgb, var(--info) 12%, transparent);
}
.anki-btn.easy {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 12%, transparent);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}
.stat {
  padding: 16px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 750;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Callout ---------- */
.callout {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 34px 38px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(120deg, var(--accent-soft), transparent 55%),
    var(--surface);
  border: 1px solid var(--border-strong);
}
.callout-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
}
.callout-copy {
  flex: 1;
}
.callout-copy h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.callout-copy p {
  color: var(--muted);
  font-size: 0.96rem;
}

/* ---------- Offline player ---------- */
.open-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.open-hint {
  font-size: 0.85rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: var(--pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.open-hint-k {
  color: var(--accent);
  font-weight: 650;
}

.player-window {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-3), var(--glow);
  overflow: hidden;
}
.player-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.player-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--subtle);
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-stage {
  position: relative;
  min-height: 210px;
  background:
    radial-gradient(120% 120% at 15% 15%, #2b3566 0%, transparent 55%),
    radial-gradient(120% 120% at 88% 92%, #4c2b6b 0%, transparent 55%),
    #0a0b12;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.player-sub {
  font-size: 15px;
  line-height: 1.6;
  color: #f3f5ff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7);
}
.player-sub .w {
  border-bottom-color: color-mix(in srgb, #c7b6ff 70%, transparent);
}
.player-sub .w:hover {
  background: rgba(255, 255, 255, 0.14);
}
.player-sub .w.is-saved {
  background: rgba(124, 131, 255, 0.42);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.player-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
}

.player-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.pc-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
  line-height: 1;
}
.pc-btn-play {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--accent-ink);
  border-color: transparent;
}
.player-progress {
  flex: 1;
  height: 5px;
  border-radius: var(--pill);
  background: var(--surface-3);
  overflow: hidden;
}
.player-progress span {
  display: block;
  height: 100%;
  width: 28%;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.player-time {
  font-size: 11px;
  font-family: var(--mono);
  color: var(--subtle);
  white-space: nowrap;
}

.player-tracks {
  padding: 8px 10px;
  display: grid;
  gap: 4px;
}
.track {
  display: flex;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.45;
}
.track-active {
  background: var(--accent-soft);
  color: var(--text);
}
.track-time {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--subtle);
  flex-shrink: 0;
  padding-top: 1px;
}
.track-active .track-time {
  color: var(--accent);
}

.player-files {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 16px;
}
.file-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-family: var(--mono);
  color: var(--muted);
  padding: 6px 12px;
  border-radius: var(--pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.file-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.file-dot-video {
  background: var(--info);
}
.file-dot-sub {
  background: var(--success);
}

/* ---------- Privacy ---------- */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.privacy-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}
.privacy-card h3 {
  font-size: 1rem;
  margin-bottom: 10px;
}
.privacy-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 820px;
  margin: 0 auto;
}
.price-card {
  position: relative;
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}
.price-card-best {
  border-color: var(--accent);
  box-shadow: var(--shadow-2), var(--glow);
}
.best-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 5px 14px;
  border-radius: var(--pill);
  white-space: nowrap;
}
.price-card header {
  margin-bottom: 22px;
}
.price-card h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.price span {
  font-size: 2.6rem;
  font-weight: 780;
  letter-spacing: -0.03em;
}
.price small {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 500;
}
.price-sub {
  font-size: 0.88rem;
  color: var(--muted);
  margin-top: 6px;
}
.price-card .checklist {
  flex: 1;
}
.pricing-note {
  text-align: center;
  color: var(--subtle);
  font-size: 0.9rem;
  margin-top: 24px;
}

/* ---------- FAQ ---------- */
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 4px 22px;
  transition: border-color var(--dur), background var(--dur);
}
.faq details[open] {
  border-color: var(--border-strong);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0;
  font-weight: 620;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform var(--dur) var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  color: var(--muted);
  padding: 0 0 18px;
  font-size: 0.94rem;
}
.faq details a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---------- CTA ---------- */
.cta-section {
  padding-bottom: 110px;
}
.cta {
  position: relative;
  text-align: center;
  padding: 66px 34px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(600px 300px at 50% -20%, var(--accent-soft), transparent 70%),
    var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset: auto -20% -60% -20%;
  height: 340px;
  background: radial-gradient(500px 240px at 50% 0%, var(--accent-soft-2), transparent 70%);
  pointer-events: none;
}
.cta h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  margin-bottom: 14px;
}
.cta p {
  color: var(--muted);
  max-width: 44ch;
  margin: 0 auto 28px;
  font-size: 1.04rem;
}
.install-steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 40px;
}
.install-steps li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: var(--pill);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--muted);
}
.install-steps li span {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 16px;
  max-width: 34ch;
}
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--subtle);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  color: var(--muted);
  font-size: 0.93rem;
  padding: 6px 0;
  transition: color var(--dur);
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 0.86rem;
  flex-wrap: wrap;
}
.footer-made {
  color: var(--muted);
  font-weight: 550;
}

/* ==========================================================================
   Reveal on scroll
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 46px;
  }
  .hero-copy {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
  }
  .lead,
  .section-sub {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta,
  .hero-trust {
    justify-content: center;
  }
  .float-card-a {
    left: 8px;
  }
  .float-card-b {
    left: 8px;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-lg {
    grid-column: span 2;
  }
  .privacy-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .section {
    padding: 68px 0;
  }

  .hide-sm {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 24px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-2);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur), transform var(--dur) var(--ease);
  }
  .site-nav.is-open {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 12px 14px;
    font-size: 16px;
  }

  .steps {
    grid-template-columns: 1fr;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-lg {
    grid-column: span 1;
  }
  .split {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .split.reverse .split-visual {
    order: 0;
  }
  .coach-grid {
    grid-template-columns: 1fr;
  }
  .privacy-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .callout {
    flex-direction: column;
    text-align: center;
    padding: 30px 24px;
  }
  .callout .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ls-panel {
    position: relative;
    top: auto;
    right: auto;
    width: auto;
    margin: -120px 10px 0;
    animation: none;
  }
  .window-body {
    min-height: 0;
  }
  .video-frame {
    height: 300px;
  }
  .float-card {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }
  .hero {
    padding-top: 56px;
  }
  .anki-buttons {
    grid-template-columns: repeat(2, 1fr);
  }
  .install-steps {
    flex-direction: column;
    align-items: stretch;
  }
  .install-steps li {
    justify-content: flex-start;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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