/*
 * Lexy landing — one stylesheet for the marketing page and the legal pages.
 *
 * Colour roles mirror the app's Material 3 light scheme (see
 * front/src/design/m3/generated-theme.css) so the landing and the product do
 * not look like two different companies. Values are literal here on purpose:
 * this page must render standalone, with no build step and no Tailwind.
 */

:root {
  --surface: #faf8ff;
  --surface-container: #f4f3fa;
  --surface-container-high: #eeedf4;
  --on-surface: #1a1b21;
  --on-surface-variant: #44464f;
  --outline: #74777f;
  --outline-variant: #c4c6d0;
  --primary: #2c5ea8;
  --primary-hover: #17457f;
  --on-primary: #ffffff;
  --primary-container: #dbe2f9;
  --on-primary-container: #001b3e;
  --tertiary-container: #fff8e1;
  --on-tertiary-container: #4a3b00;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
  --radius: 20px;
  --maxw: 1120px;
  --font: "Figtree", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #121318;
    --surface-container: #1e1f25;
    --surface-container-high: #292a30;
    --on-surface: #e3e2e9;
    --on-surface-variant: #c5c6d0;
    --outline: #8f9099;
    --outline-variant: #45464f;
    --primary: #adc6ff;
    --primary-hover: #cddbff;
    --on-primary: #002f65;
    --primary-container: #1c3f74;
    --on-primary-container: #d8e2ff;
    --tertiary-container: #3d3000;
    --on-tertiary-container: #ffe08c;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); text-decoration: underline; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: 12px 20px;
  border-radius: 0 0 12px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--outline-variant);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }

.brand { display: flex; align-items: baseline; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -0.01em; color: var(--on-surface); }
.brand:hover { text-decoration: none; color: var(--on-surface); }
.brand small { font-size: 13px; font-weight: 500; color: var(--on-surface-variant); }
/* On a narrow phone the tagline is the first thing to go: brand, language
   switch and CTA still need to fit on one line without wrapping. */
@media (max-width: 480px) { .brand small { display: none; } }

.site-nav { display: none; gap: 22px; }
.site-nav a { color: var(--on-surface-variant); font-size: 15px; font-weight: 600; }
.site-nav a:hover { color: var(--primary); text-decoration: none; }
@media (min-width: 940px) { .site-nav { display: flex; } }

/* Everything right of the logo: nav (desktop only), language switch, CTA.
   One flex group pushed right by its own margin, so a page without a nav
   (the legal pages) aligns the same way without a rule per page shape. */
.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
@media (max-width: 480px) {
  .header-actions { gap: 8px; }
  /* The header CTA duplicates the hero button a few dozen pixels below it;
     on the smallest phones it can afford to be the compact one. */
  .header-actions > .btn { padding: 0 14px; font-size: 14px; }
}

.lang-switch {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--outline-variant);
  border-radius: 999px;
  background: var(--surface);
  flex: none;
}
.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: var(--on-surface-variant);
}
@media (max-width: 480px) { .lang-switch a { padding: 0 7px; } }
.lang-switch a:hover { color: var(--primary); text-decoration: none; }
.lang-switch a[aria-current="page"] { background: var(--primary); color: var(--on-primary); }
.lang-switch a[aria-current="page"]:hover { color: var(--on-primary); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  white-space: nowrap;
  transition: filter 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow); }
.btn-primary:hover { filter: brightness(1.08); color: var(--on-primary); }
.btn-ghost { background: transparent; color: var(--primary); border: 1px solid var(--outline); }
.btn-ghost:hover { background: var(--surface-container-high); color: var(--primary); }
.btn-lg { height: 60px; padding: 0 34px; font-size: 18px; }
.btn-block { width: 100%; }

.cta-note { margin: 12px 0 0; font-size: 14px; color: var(--on-surface-variant); }

/* ---------- sections ---------- */

section { padding: 72px 0; }
@media (max-width: 700px) { section { padding: 52px 0; } }

.section-alt { background: var(--surface-container); }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 16px; }
h1 { font-size: clamp(34px, 5.2vw, 54px); font-weight: 800; text-wrap: balance; }
h2 { font-size: clamp(27px, 3.4vw, 38px); font-weight: 800; text-wrap: balance; }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 16px; }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--on-surface-variant); text-wrap: pretty; }
.eyebrow {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head-wide { max-width: none; }
.section-head-wide > h2 { max-width: 720px; }
.section-head-wide > .lead { max-width: none; }
.section-head-no-limit > h2 { max-width: none; }

/* ---------- hero ---------- */

.hero {
  padding: 64px 0 72px;
  background: radial-gradient(circle at 50% -10%, var(--primary-container) 0%, var(--surface) 60%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) { .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; } }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.trust {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 26px 0 0;
  padding: 0;
  font-size: 15px;
  color: var(--on-surface-variant);
}
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { color: var(--primary); flex: none; }

.hero-card {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px;
}
.hero-card figcaption { margin-top: 16px; font-size: 14px; color: var(--on-surface-variant); }

/* ---------- live demo hero widget ---------- */
.live-demo-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  overflow: hidden;
}
.live-demo-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.live-demo-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}
.live-demo-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0;
  line-height: 1.3;
}
.live-demo-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 2px;
}
.live-demo-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 9999px;
  border: 1px solid var(--outline-variant);
  background: var(--surface-container-high);
  color: var(--on-surface-variant);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  font-family: inherit;
}
.live-demo-tab:hover {
  background: var(--surface-container);
  color: var(--on-surface);
}
.live-demo-tab.is-active {
  background: var(--primary);
  color: var(--on-primary);
  border-color: var(--primary);
  box-shadow: 0 2px 6px rgba(44, 94, 168, 0.25);
}
.live-demo-stage {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.live-demo-bubble {
  border-radius: 18px;
  padding: 12px 14px;
  position: relative;
  transition: all 0.2s ease;
}
.live-demo-bubble-lexy {
  background: var(--primary-container);
  color: var(--on-primary-container);
  align-self: flex-start;
  width: 100%;
}
.live-demo-bubble-user {
  background: var(--surface-container-high);
  color: var(--on-surface);
  align-self: flex-end;
  width: 100%;
  border: 1px solid var(--outline-variant);
}
.live-demo-bubble-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  opacity: 0.85;
}
.live-demo-bubble-user .live-demo-bubble-head {
  color: var(--primary);
}
.live-demo-audio-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: var(--surface);
  color: var(--primary);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
  padding: 0;
}
.live-demo-audio-btn:hover {
  transform: scale(1.08);
  background: var(--surface-container-high);
}
.live-demo-audio-btn:active {
  transform: scale(0.96);
}
.live-demo-audio-btn.is-playing svg {
  animation: demo-audio-pulse 0.7s ease infinite alternate;
}
@keyframes demo-audio-pulse {
  0% { transform: scale(1); }
  100% { transform: scale(1.22); }
}
.live-demo-phrase {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 3px;
}
.live-demo-pronounce {
  font-size: 12px;
  opacity: 0.8;
  margin-bottom: 2px;
}
.live-demo-translate {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}
.live-demo-prompt-box {
  background: var(--surface-container);
  border: 1px solid var(--outline-variant);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.live-demo-prompt-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--on-surface-variant);
}
.live-demo-target-phrase {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}
.live-demo-target-sub {
  font-size: 12px;
  color: var(--on-surface-variant);
}
.live-demo-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}
@media (min-width: 440px) {
  .live-demo-actions {
    flex-direction: row;
  }
  .live-demo-actions .btn {
    flex: 1;
    min-width: 0;
  }
}
.live-demo-mic-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 700;
  position: relative;
  transition: all 0.2s ease;
  padding: 10px 14px;
}
.live-demo-mic-btn.is-recording {
  background: #c62828 !important;
  color: #ffffff !important;
  animation: demo-mic-pulse 1.2s infinite;
}
.live-demo-mic-btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
}
@keyframes demo-mic-pulse {
  0% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(198, 40, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); }
}
.live-demo-fallback-btn {
  font-weight: 600;
  font-size: 14px;
  background: var(--surface-container-high);
  color: var(--on-surface);
  border: 1px solid var(--outline-variant);
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.live-demo-fallback-btn:hover {
  background: var(--surface-container-highest);
}
.live-demo-status-tip {
  font-size: 11px;
  color: var(--on-surface-variant);
  text-align: center;
  min-height: 15px;
}
.live-demo-congrats {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--tertiary-container);
  color: var(--on-tertiary-container);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
}
.live-demo-congrats-icon {
  font-size: 18px;
  flex: none;
}
.live-demo-continue-cta {
  font-weight: 700;
  text-align: center;
  padding: 12px 16px;
}
.live-demo-reset-link {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-align: center;
  padding: 4px;
  font-family: inherit;
}
.live-demo-reset-link:hover {
  opacity: 0.8;
}

/* ---------- hero conditions strip ---------- */
.hero-strip {
  background: var(--surface-container-high);
  border-top: 1px solid var(--outline-variant);
  border-bottom: 1px solid var(--outline-variant);
  padding: 12px 0;
  text-align: center;
}
.hero-strip-inner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}
.hero-strip-free {
  display: inline-flex;
  align-items: center;
  background: #dbeafe;
  color: #1e40af;
  font-size: 15px;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 9999px;
  line-height: 1.3;
}
.hero-strip-sep {
  color: var(--on-surface-variant);
  font-size: 16px;
  font-weight: 600;
}
.hero-strip-price {
  display: inline-flex;
  align-items: center;
  background: #dcfce7;
  color: #15803d;
  font-size: 15px;
  font-weight: 600;
  padding: 5px 16px;
  border-radius: 9999px;
  line-height: 1.3;
}
@media (prefers-color-scheme: dark) {
  .hero-strip-free {
    background: #1e3a8a;
    color: #bfdbfe;
  }
  .hero-strip-price {
    background: #064e3b;
    color: #a7f3d0;
  }
}

/* ---------- generic cards ---------- */

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
/* Hairline accent along the top edge — the only ornament these cards get. */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), #d4af6a);
  opacity: 0.85;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--outline-variant)); }
.section-alt .card { background: var(--surface); }
.card h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 10px; }
.card p { color: var(--on-surface-variant); margin-bottom: 0; }
.card p:last-child { margin-bottom: 0; }
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--primary-container), color-mix(in srgb, #d4af6a 28%, var(--primary-container)));
  color: var(--on-primary-container);
  margin-bottom: 20px;
}
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }

/* ---------- steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 96px;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.step-num {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--primary-container);
  color: var(--on-primary-container);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 600;
}
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--on-surface-variant); font-size: 16px; }
.step .time {
  justify-self: end;
  min-width: 96px;
  padding: 8px 10px;
  border-radius: 999px;
  text-align: center;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.1;
}
.step .time-1 { background: #f8d8d8; color: #8a2030; }
.step .time-2 { background: #f8e1c1; color: #754500; }
.step .time-3 { background: #d9e5ff; color: #174a99; }
.step .time-3-7 { background: #cedbfa; color: #1c376d; }
.step .time-10 { background: #cdd5e6; color: #17243d; }
@media (prefers-color-scheme: dark) {
  .step .time-1 { background: #5c2731; color: #ffdadd; }
  .step .time-2 { background: #5a411e; color: #ffe0a0; }
  .step .time-3 { background: #233e6d; color: #d7e5ff; }
  .step .time-3-7 { background: #293a5b; color: #dce7ff; }
  .step .time-10 { background: #202b40; color: #e1e8f8; }
}
@media (max-width: 620px) {
  .step { grid-template-columns: 42px minmax(0, 1fr); }
  .step .time { display: none; }
}

/* ---------- languages ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  border: 1px solid var(--outline-variant);
  background: var(--surface);
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 15px;
}
.chips li b { font-weight: 700; }
.chips li span { color: var(--on-surface-variant); }

/* ---------- levels ---------- */

.levels { display: grid; gap: 12px; }
@media (min-width: 700px) { .levels { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .levels { grid-template-columns: repeat(4, 1fr); } }
.level { border: 1px solid var(--outline-variant); border-radius: var(--radius); padding: 20px; background: var(--surface); }
.level .code { font-family: var(--mono); font-size: 13px; color: var(--primary); font-weight: 600; }

/* A1 is the product's main route — the card says so in colour, not only in copy. */
.level-featured {
  position: relative;
  border: 2px solid var(--primary);
  background: linear-gradient(165deg, var(--primary-container), var(--surface) 62%);
  box-shadow: var(--shadow);
  padding-top: 34px;
}
.level-featured .level-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.level-featured .code { color: var(--on-primary-container); font-weight: 700; }
.level-featured h3 { color: var(--on-surface); }

/* ---------- pricing ---------- */

.plans { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 820px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--outline-variant);
  border-radius: 24px;
  padding: 28px;
  background: var(--surface);
}
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow); }
.plan .badge {
  align-self: flex-start;
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.plan .price { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.plan .price small { font-size: 16px; font-weight: 600; color: var(--on-surface-variant); }
.plan ul { list-style: none; margin: 18px 0 26px; padding: 0; display: grid; gap: 10px; font-size: 16px; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; }
.plan ul svg { flex: none; margin-top: 4px; color: var(--primary); }
.plan .btn { margin-top: auto; }

/* Homepage version: one free-trial card instead of a 3-tier comparison. The
   full breakdown (month/year prices) lives on its own page — see /price.html
   — reached through .trial-card-note below, not shown here. Comparing plans
   is a decision a visitor makes after trying the product, not before. */
.trial-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 2px solid var(--primary);
  border-radius: 28px;
  padding: 40px 32px;
  box-shadow: var(--shadow);
}
.trial-card-amount { font-size: 56px; font-weight: 800; letter-spacing: -0.02em; line-height: 1; color: var(--primary); }
.trial-card-caption { display: block; margin-top: 8px; font-size: 15px; color: var(--on-surface-variant); }
.trial-card ul {
  list-style: none;
  margin: 28px 0;
  padding: 0;
  display: grid;
  gap: 12px;
  text-align: left;
  font-size: 16px;
}
.trial-card ul li { display: flex; gap: 10px; align-items: flex-start; }
.trial-card ul svg { flex: none; margin-top: 3px; color: var(--primary); }
.trial-card-note { margin: 18px 0 0; font-size: 14px; color: var(--on-surface-variant); }

/* ---------- faq ---------- */

.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details {
  border: 1px solid var(--outline-variant);
  border-radius: 16px;
  background: var(--surface);
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 18px;
  padding: 16px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-weight: 500;
  font-size: 26px;
  line-height: 1;
  color: var(--primary);
  flex: none;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--on-surface-variant); margin: 0 0 16px; }

/* ---------- final cta ---------- */

.cta-band {
  background: var(--primary-container);
  color: var(--on-primary-container);
  border-radius: 28px;
  padding: 44px 32px;
  text-align: center;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--on-primary-container); opacity: 0.85; max-width: 620px; margin-inline: auto; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--outline-variant);
  background: var(--surface-container);
  padding: 40px 0 32px;
  font-size: 13px;
  color: var(--on-surface-variant);
}
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.site-footer h2 { font-size: 12px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-surface); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer .legal-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--outline-variant); font-size: 12px; }
.site-footer address { font-style: normal; }
.site-footer .footer-legal-link { font-size: 12px; }
.footer-languages {
  order: -1;
  grid-column: 1 / -1;
  border-top: none;
  padding-top: 0;
}
.footer-languages h2 { margin-bottom: 14px; }
.footer-languages ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 24px;
}
.footer-languages a { color: var(--on-surface-variant); }
.footer-languages a:hover { color: var(--primary); }
@media (min-width: 660px) {
  .footer-languages ul { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- sticky mobile cta ---------- */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--outline-variant);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky-cta.is-visible { transform: none; }
@media (min-width: 940px) { .sticky-cta { display: none; } }
body.has-sticky-cta { padding-bottom: 84px; }
@media (min-width: 940px) { body.has-sticky-cta { padding-bottom: 0; } }

/* ---------- legal pages ---------- */

.legal { max-width: 820px; padding-top: 48px; }
.legal h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal .updated { color: var(--on-surface-variant); font-size: 15px; margin-bottom: 36px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; letter-spacing: -0.01em; }
.legal h3 { font-size: 18px; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--on-surface-variant); font-size: 16px; }
.legal ul, .legal ol { padding-left: 22px; margin: 0 0 16px; display: grid; gap: 8px; }
.legal .requisites {
  background: var(--surface-container);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-top: 32px;
}
.legal .requisites p { margin: 0 0 6px; }
.breadcrumbs { font-size: 14px; color: var(--on-surface-variant); padding-top: 24px; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: var(--outline); }

/* ---------- vip hero (parallax intro) ---------- */

.vip-hero {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
  background: radial-gradient(120% 100% at 20% 0%, #16171f 0%, #0b0c10 55%, #07080b 100%);
  color: #f4ecd8;
  padding: 72px 0;
}
.vip-hero-bg { position: absolute; inset: 0; z-index: 0; }
.vip-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.5;
  will-change: transform;
}
.vip-glow-1 { width: 46vw; height: 46vw; max-width: 620px; max-height: 620px; top: -14%; left: -8%; background: radial-gradient(circle, #d4af6a 0%, transparent 70%); }
.vip-glow-2 { width: 36vw; height: 36vw; max-width: 480px; max-height: 480px; bottom: -18%; right: -6%; background: radial-gradient(circle, #4b7fd4 0%, transparent 70%); }
.vip-glow-3 { width: 28vw; height: 28vw; max-width: 360px; max-height: 360px; top: 28%; right: 22%; background: radial-gradient(circle, #d4af6a 0%, transparent 72%); opacity: 0.3; }

.vip-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 32px;
  align-items: center;
  text-align: center;
  justify-items: center;
}
@media (min-width: 900px) {
  .vip-hero-inner { grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); text-align: left; justify-items: start; gap: 48px; }
}

/* Entrance: each line rises in turn, so the wordmark lands before the promise. */
.vip-wordmark,
.vip-headline,
.vip-sub,
.vip-avatar { animation: vipRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.vip-wordmark { animation-delay: 0.05s; }
.vip-headline { animation-delay: 0.22s; }
.vip-sub { animation-delay: 0.4s; }
.vip-avatar { animation-delay: 0.3s; }
@keyframes vipRise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* The wordmark is the loudest thing on the page — sans, heavy, edge to edge. */
.vip-wordmark {
  margin: 0 0 6px;
  font-family: var(--font);
  font-weight: 800;
  font-size: clamp(64px, 15vw, 190px);
  line-height: 0.88;
  letter-spacing: -0.035em;
  background: linear-gradient(115deg, #fff6e0 0%, #e2c184 38%, #fff9ec 58%, #d4af6a 100%);
  background-size: 260% 260%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: vipRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.05s backwards, vipShine 11s ease-in-out 1s infinite;
}
.vip-headline {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 44px);
  line-height: 1.16;
  letter-spacing: -0.02em;
  color: #f4ecd8;
}
.vip-sub {
  margin: 20px 0 0;
  font-size: clamp(15px, 1.6vw, 19px);
  color: rgba(244, 236, 216, 0.68);
  letter-spacing: 0.02em;
}
@keyframes vipShine {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---- Lexy avatar, idle loop ---- */

.vip-avatar { width: min(320px, 72vw); will-change: transform; }
.vip-avatar svg { width: 100%; height: auto; overflow: visible; }

.vip-av-body { transform-origin: 200px 390px; animation: vipBreathe 3.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite; }
.vip-av-head { transform-origin: 200px 240px; animation: vipSway 5s cubic-bezier(0.42, 0, 0.58, 1) infinite; }
.vip-av-ears { animation: vipEarPulse 1.6s ease-in-out infinite; transform-origin: 200px 155px; }
/* Open eyes and closed lids cross-fade: one blink every ~4.5s. */
.vip-av-eyes { animation: vipEyesOpen 4.5s steps(1, end) infinite; }
.vip-av-lids { animation: vipLidsShut 4.5s steps(1, end) infinite; }
.vip-av-mouth { transform-origin: 200px 188px; animation: vipTalk 2.6s ease-in-out infinite; }

@keyframes vipBreathe {
  0%, 100% { transform: scaleY(1) scaleX(1); }
  50% { transform: scaleY(1.035) scaleX(0.985); }
}
@keyframes vipSway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}
@keyframes vipEarPulse {
  0%, 100% { opacity: 0.55; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}
@keyframes vipEyesOpen {
  0%, 95% { opacity: 1; }
  96%, 99% { opacity: 0; }
  100% { opacity: 1; }
}
@keyframes vipLidsShut {
  0%, 95% { opacity: 0; }
  96%, 99% { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes vipTalk {
  0%, 100% { transform: scaleY(0.7) scaleX(0.95); }
  30% { transform: scaleY(1.5) scaleX(1.1); }
  55% { transform: scaleY(0.85) scaleX(1); }
  75% { transform: scaleY(1.25) scaleX(1.05); }
}

@media (max-width: 700px) {
  .vip-hero { min-height: 76vh; padding: 56px 0; }
  .vip-glow { filter: blur(48px); }
  .vip-avatar { width: min(240px, 62vw); }
}

/* ---------- demo (animated live-lesson preview) ---------- */

.demo-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 940px) { .demo-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; } }

.demo-phone {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
  padding: 20px 18px 24px;
  max-width: 380px;
  margin: 0 auto;
}
.demo-phone-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--outline-variant);
  font-weight: 700;
  font-size: 15px;
  color: var(--on-surface);
}
.demo-phone-head .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #33c26a;
  box-shadow: 0 0 0 3px color-mix(in srgb, #33c26a 25%, transparent);
  flex: none;
}
.demo-phone-head small { margin-left: auto; font-weight: 500; color: var(--on-surface-variant); font-family: var(--mono); font-size: 12px; }

.demo-log { display: grid; gap: 10px; min-height: 232px; }

.demo-bubble {
  max-width: 84%;
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(6px);
  animation: demoBubbleIn 6s infinite;
}
.demo-bubble b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 3px; opacity: 0.7; }
.demo-bubble.lexy { justify-self: start; background: var(--primary-container); color: var(--on-primary-container); border-bottom-left-radius: 4px; }
.demo-bubble.me { justify-self: end; background: var(--surface-container-high); color: var(--on-surface); border-bottom-right-radius: 4px; text-align: right; }

.demo-bubble:nth-child(1) { animation-delay: 0s; }
.demo-bubble:nth-child(2) { animation-delay: 1.5s; }
.demo-bubble:nth-child(3) { animation-delay: 3s; }
.demo-bubble:nth-child(4) { animation-delay: 4.5s; }

@keyframes demoBubbleIn {
  0%, 100% { opacity: 0; transform: translateY(6px); }
  4%, 22% { opacity: 1; transform: translateY(0); }
  27% { opacity: 0; transform: translateY(-4px); }
}

.demo-mic {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--outline-variant);
  color: var(--on-surface-variant);
  font-size: 13px;
  font-family: var(--mono);
}
.demo-mic .ring {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent);
  animation: demoMicPulse 6s infinite;
}
@keyframes demoMicPulse {
  0%, 27% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 45%, transparent); }
  4% { box-shadow: 0 0 0 8px color-mix(in srgb, var(--primary) 0%, transparent); }
  50%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--primary) 0%, transparent); }
}
.demo-speed { font-size: 13px; color: var(--on-surface-variant); margin-top: 10px; text-align: center; }

/* ---------- rare languages ---------- */

.rare-block {
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  padding: 30px 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}
.rare-block h3 { font-size: clamp(20px, 2.4vw, 26px); letter-spacing: -0.01em; margin-bottom: 12px; }
.rare-block > p { color: var(--on-surface-variant); margin: 0 0 22px; }
.rare-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 20px; padding: 0; list-style: none; }
.rare-chips li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 15px;
  background: linear-gradient(135deg, var(--primary-container), color-mix(in srgb, #d4af6a 22%, var(--primary-container)));
  color: var(--on-primary-container);
  border: 1px solid color-mix(in srgb, #d4af6a 35%, transparent);
}
.rare-chips li b { font-weight: 700; }
.rare-chips li span { opacity: 0.75; font-size: 14px; }
.rare-note { margin: 0; font-size: 14px; color: var(--on-surface-variant); }
.chips-title { font-size: 16px; margin: 0 0 14px; color: var(--on-surface-variant); font-weight: 700; }

/* ---------- science (research behind the method) ---------- */

.science-list { display: grid; gap: 16px; align-items: start; counter-reset: sci; }
@media (min-width: 940px) { .science-list { grid-template-columns: repeat(2, 1fr); } }
.science-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius);
  padding: 28px 26px 26px 74px;
  counter-increment: sci;
}
.science-item summary {
  cursor: pointer;
  list-style: none;
}
.science-item summary::-webkit-details-marker { display: none; }
.science-item summary::after {
  content: "";
  position: absolute;
  top: 25px;
  right: 28px;
  width: 10px;
  height: 10px;
  border: solid var(--primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.science-item[open] summary::after { top: 31px; transform: rotate(-135deg); }
.science-item summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 45%, transparent);
  outline-offset: 5px;
  border-radius: 8px;
}
.science-item::before {
  content: counter(sci, decimal-leading-zero);
  position: absolute;
  left: 26px;
  top: 28px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: #b08a3e;
  letter-spacing: 0.04em;
}
@media (max-width: 560px) {
  .science-item { padding: 52px 20px 22px; }
  .science-item::before { top: 22px; left: 20px; }
  .science-item summary::after { top: 22px; right: 22px; }
  .science-item[open] summary::after { top: 28px; }
}
.science-item h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 8px; padding-right: 32px; }
.science-preview { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--on-surface-variant); }
.science-body { margin-top: 20px; }
.science-what { color: var(--on-surface); margin: 0 0 16px; font-size: 16px; }
.science-quote {
  margin: 0 0 16px;
  padding: 14px 18px;
  border-left: 3px solid #d4af6a;
  background: var(--surface-container);
  border-radius: 0 12px 12px 0;
}
.science-quote p { margin: 0 0 8px; font-style: italic; font-size: 15px; color: var(--on-surface); }
.science-quote cite { font-style: normal; font-size: 13px; color: var(--on-surface-variant); line-height: 1.5; display: block; }
.science-src { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--on-surface-variant); }
.science-note {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--on-surface-variant);
  max-width: none;
}

/* ---------- benefits / differentiation ---------- */

.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.compare-table th, .compare-table td { padding: 14px 16px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--outline-variant); }
.compare-table th { font-size: 13px; text-transform: uppercase; letter-spacing: 0.03em; color: var(--on-surface-variant); font-weight: 700; background: var(--surface-container); }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: center; }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td:first-child { font-weight: 600; }
.compare-table .yes { color: #1f9254; font-weight: 700; }
.compare-table .no { color: var(--on-surface-variant); }
.compare-table-wrap { overflow-x: auto; border-radius: var(--radius); }
