/* ============================================
   Lingvo Connect — Landing Page
   Design system inherited from authenticated app
   ============================================ */

:root {
  /* Colors — matched to dashboard screenshots */
  --bg: #F4F3F8;
  --bg-elev: #FFFFFF;
  --bg-sidebar: #ECEAF3;
  --ink: #1A1530;
  --ink-2: #2A2440;
  --ink-3: #4A4560;
  --muted: #807A95;
  --muted-2: #B5B0C5;
  --line: #E8E5F0;
  --line-2: #F0EDF7;

  --violet-50: #F3F0FF;
  --violet-100: #E8E1FF;
  --violet-200: #D4C7FF;
  --violet-400: #9B7BFF;
  --violet-500: #7C5CFF;
  --violet-600: #6841F5;
  --violet-700: #4F2FD9;

  /* Soft accent tints from dashboard cards */
  --tint-pink: #F7E8F3;
  --tint-pink-strong: #E8B4D9;
  --tint-peach: #FBE8DA;
  --tint-peach-strong: #F4B582;
  --tint-blue: #E1ECF8;
  --tint-blue-strong: #8FB8E0;
  --tint-mint: #DFF1E6;
  --tint-yellow: #F8EFD1;

  --grad-hero: linear-gradient(135deg, #6841F5 0%, #9B5CFF 35%, #C75BD9 65%, #E94B9C 100%);
  --grad-hero-soft: linear-gradient(135deg, #7C5CFF 0%, #B86DFF 50%, #E94B9C 100%);
  --grad-cta: linear-gradient(135deg, #7C5CFF 0%, #6841F5 100%);
  --grad-night: linear-gradient(160deg, #1B1530 0%, #2A1B5C 50%, #4F2FD9 100%);

  --shadow-card: 0 1px 2px rgba(26, 21, 48, 0.04), 0 8px 24px rgba(26, 21, 48, 0.06);
  --shadow-card-lg: 0 4px 8px rgba(26, 21, 48, 0.04), 0 24px 60px rgba(26, 21, 48, 0.10);
  --shadow-violet: 0 12px 36px rgba(124, 92, 255, 0.35);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --container: 1240px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* ============================================
   Typography
   ============================================ */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet-600);
  margin: 0 0 14px;
}
.eyebrow.on-dark { color: #C7B8FF; }

h1, h2, h3 { margin: 0; line-height: 1.08; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(40px, 5.5vw, 72px); }
h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.01em; }

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 620px;
  margin: 0;
}
.lead.on-dark { color: rgba(255,255,255,0.78); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-cta);
  color: white;
  box-shadow: var(--shadow-violet);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(124, 92, 255, 0.45); }
.btn-white {
  background: white;
  color: var(--ink);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0,0,0,0.18); }
.btn-ghost {
  background: white;
  color: var(--violet-600);
  border: 1.5px solid var(--violet-200);
}
.btn-ghost:hover { background: var(--violet-50); }
.btn-outline-light {
  background: transparent;
  color: white;
  border: 1.5px solid rgba(255,255,255,0.3);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-sm { padding: 10px 18px; font-size: 14px; }

.btn-sub {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--muted);
}
.btn-sub.on-dark { color: rgba(255,255,255,0.6); }

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 243, 248, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--container);
  margin: 0 auto;
}
.logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.logo span { color: var(--violet-600); }
.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  transition: color .15s;
}
.nav-links a:hover { color: var(--violet-600); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.nav-cta .btn { padding: 11px 22px; font-size: 14px; }
.nav-login {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}

@media (max-width: 860px) {
  .nav-links { display: none; }
}
@media (max-width: 540px) {
  .nav-login { display: none; }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 32px 0 64px;
}
.hero-full {
  padding: 24px 0 64px;
}
.hero-full .hero-card-full {
  margin: 0 24px;
  border-radius: 32px;
  padding: 64px clamp(40px, 6vw, 96px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-full .hero-card-full { grid-template-columns: 1fr; padding: 56px 32px; margin: 0 16px; }
}
@media (max-width: 560px) {
  .hero-full .hero-card-full { padding: 40px 24px; margin: 0 12px; border-radius: 24px; }
}
.hero-card {
  position: relative;
  background: var(--grad-hero);
  border-radius: var(--r-xl);
  padding: 72px 64px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 32px;
  align-items: center;
  min-height: 560px;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 90% 10%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(255,80,180,0.25), transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; color: white; }
.hero-content h1 {
  color: white;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero-content h1 .accent {
  display: inline-block;
  font-style: italic;
  background: linear-gradient(90deg, #FFE6A1 0%, #FFB07C 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 0 36px;
}
.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 28px;
  color: rgba(255,255,255,0.75);
  font-size: 13.5px;
}
.hero-meta-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #67F0AC;
  box-shadow: 0 0 0 4px rgba(103, 240, 172, 0.25);
}

.hero-visual {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 460px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.hero-alice-frame {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4/5;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02));
}
.hero-alice-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.hero-bubble {
  position: absolute;
  background: white;
  border-radius: 18px;
  padding: 14px 18px;
  box-shadow: 0 16px 40px rgba(20,10,50,0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.hero-bubble.b1 { top: 18%; left: -28px; }
.hero-bubble.b2 { bottom: 22%; right: -12px; }
.bubble-mic {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-cta);
  display: flex; align-items: center; justify-content: center;
  color: white;
}
.wave {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 22px;
}
.wave i {
  width: 3px;
  background: var(--violet-500);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
}
.wave i:nth-child(1) { height: 30%; animation-delay: -0.4s; }
.wave i:nth-child(2) { height: 70%; animation-delay: -0.2s; }
.wave i:nth-child(3) { height: 100%; animation-delay: 0s; }
.wave i:nth-child(4) { height: 60%; animation-delay: -0.3s; }
.wave i:nth-child(5) { height: 40%; animation-delay: -0.1s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.4); }
  50% { transform: scaleY(1); }
}

.hero-stats {
  display: flex;
  gap: 36px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
  position: relative;
  z-index: 2;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.02em;
}
.hero-stat-lbl {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

@media (max-width: 980px) {
  .hero-card { grid-template-columns: 1fr; padding: 56px 40px; min-height: 0; }
  .hero-visual { min-height: 380px; margin-top: 24px; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
}
@media (max-width: 560px) {
  .hero-card { padding: 40px 24px; border-radius: 24px; }
  .hero-bubble.b1 { left: 8px; }
  .hero-bubble.b2 { right: 8px; }
  .hero-stat-num { font-size: 22px; }
}

/* ============================================
   Section base
   ============================================ */
.section {
  padding: 96px 0;
}
.section-head {
  max-width: 760px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { margin-bottom: 16px; }
.section-head .lead { margin: 0 auto; }
.section-head.left { text-align: left; margin-left: 0; }
.section-head.left .lead { margin-left: 0; }

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

/* ============================================
   PROBLEM block
   ============================================ */
.problem {
  background: white;
  border-radius: var(--r-xl);
  margin: 0 24px;
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
}
.problem-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.problem h2 strong {
  background: var(--grad-cta);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
  font-weight: 700;
}
.problem p { font-size: 18px; color: var(--ink-3); line-height: 1.6; margin: 24px 0 0; }
.problem .pivot {
  display: inline-block;
  margin-top: 24px;
  padding: 14px 22px;
  background: var(--violet-50);
  border-radius: var(--r-md);
  color: var(--ink);
  font-weight: 500;
  border-left: 4px solid var(--violet-500);
}

.problem-visual {
  position: relative;
  display: grid;
  gap: 14px;
}
.book-stack {
  position: relative;
  height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.book {
  position: absolute;
  width: 220px;
  height: 280px;
  border-radius: 8px;
  background: linear-gradient(135deg, #E8E5F0, #D4CFE5);
  box-shadow: 0 20px 40px rgba(26,21,48,0.12);
}
.book::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 16px;
  right: 16px;
  bottom: 16px;
  border: 2px solid rgba(124, 92, 255, 0.25);
  border-radius: 4px;
}
.book.b1 { transform: rotate(-8deg) translate(-30px, 10px); background: linear-gradient(135deg, #FBE8DA, #F4B582); }
.book.b2 { transform: rotate(4deg) translate(20px, -20px); background: linear-gradient(135deg, #E1ECF8, #8FB8E0); }
.book.b3 { transform: rotate(-2deg); background: linear-gradient(135deg, #F3F0FF, #9B7BFF); }
.book span {
  position: absolute;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 32px;
  color: rgba(26,21,48,0.4);
}
.book-x {
  position: absolute;
  z-index: 5;
  width: 80px; height: 80px;
  background: var(--ink);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 300;
  top: 16px;
  right: 24px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.2);
  transform: rotate(15deg);
}

@media (max-width: 860px) {
  .problem { margin: 0 16px; padding: 56px 32px; }
  .problem-grid { grid-template-columns: 1fr; gap: 40px; }
  .book-stack { height: 280px; }
  .book { width: 170px; height: 220px; }
}

/* ============================================
   ALICE block
   ============================================ */
.alice-section {
  padding: 96px 0;
  background: var(--grad-night);
  position: relative;
  overflow: hidden;
  color: white;
}
.alice-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(233, 75, 156, 0.25), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(124, 92, 255, 0.4), transparent 60%);
  pointer-events: none;
}
.alice-section .container { position: relative; z-index: 2; }
.alice-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 64px;
}
.alice-hero h2 { color: white; }
.alice-hero h2 em {
  font-style: italic;
  background: linear-gradient(90deg, #FFE6A1, #FFB07C);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.alice-portrait {
  position: relative;
  aspect-ratio: 1/1;
  max-width: 460px;
  margin: 0 auto;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle, rgba(255,255,255,0.1), transparent);
}
.alice-portrait::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #7C5CFF, #E94B9C, #FFB07C, #7C5CFF);
  z-index: 0;
  animation: spin 12s linear infinite;
}
.alice-portrait::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  background: linear-gradient(180deg, #2A1B5C, #4F2FD9);
  z-index: 1;
}
.alice-portrait img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
@keyframes spin { to { transform: rotate(360deg); } }

.alice-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}
.alice-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  backdrop-filter: blur(20px);
  transition: transform .25s ease, background .25s ease;
}
.alice-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.09); }
.alice-card-icon {
  width: 56px; height: 56px;
  border-radius: 16px;
  background: var(--grad-hero-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 22px;
  box-shadow: 0 12px 28px rgba(124,92,255,0.4);
}
.alice-card h3 { color: white; margin-bottom: 10px; }
.alice-card p { color: rgba(255,255,255,0.7); font-size: 15px; line-height: 1.55; margin: 0; }

.alice-cta-row {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.alice-quote {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px 12px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-pill);
  margin-bottom: 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.85);
}
.alice-quote-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background-image: url('images/alice-cover.jpeg');
  background-size: cover;
  background-position: 50% 30%;
}

@media (max-width: 860px) {
  .alice-hero { grid-template-columns: 1fr; gap: 40px; }
  .alice-portrait { max-width: 320px; }
  .alice-features { grid-template-columns: 1fr; }
}

/* ============================================
   HOW IT WORKS — 4 features
   ============================================ */
.how-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.how-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 36px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  display: flex;
  flex-direction: column;
  min-height: 420px;
}
.how-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-lg); }
.how-num {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--violet-600);
  margin-bottom: 14px;
}
.how-card h3 { margin-bottom: 12px; }
.how-card p { color: var(--ink-3); font-size: 15.5px; line-height: 1.6; margin: 0 0 24px; }

.how-mock {
  margin-top: auto;
  border-radius: var(--r-md);
  padding: 18px;
  position: relative;
  overflow: hidden;
}

/* Flashcards mock */
.mock-flash {
  background: linear-gradient(135deg, var(--tint-pink) 0%, #F3E1F0 100%);
  display: flex;
  gap: 10px;
  padding: 22px 18px;
}
.flash-card {
  flex: 1;
  background: white;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(26,21,48,0.06);
  font-size: 13px;
}
.flash-card .word { font-weight: 700; color: var(--ink); }
.flash-card .ipa { color: var(--muted); font-size: 11px; margin-top: 2px; }
.flash-card .tag {
  margin-top: 10px;
  display: inline-block;
  padding: 3px 8px;
  background: var(--violet-50);
  border-radius: 999px;
  font-size: 10px;
  color: var(--violet-600);
  font-weight: 600;
}
.flash-card.flip { transform: rotate(-3deg); background: var(--violet-500); color: white; }
.flash-card.flip .word { color: white; }
.flash-card.flip .ipa { color: rgba(255,255,255,0.7); }

/* Books mock */
.mock-books {
  background: linear-gradient(135deg, var(--tint-peach) 0%, #F8DBC2 100%);
  display: flex;
  gap: 8px;
  padding: 18px;
  align-items: flex-end;
  height: 160px;
}
.mini-book {
  flex: 1;
  background: white;
  border-radius: 6px 6px 2px 2px;
  box-shadow: 0 4px 14px rgba(26,21,48,0.08);
  position: relative;
  overflow: hidden;
}
.mini-book::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 60%;
  background: linear-gradient(135deg, #B86DFF, #E94B9C);
}
.mini-book::after {
  content: '';
  position: absolute;
  bottom: 12px; left: 12px; right: 12px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  box-shadow: 0 6px 0 var(--ink), 0 12px 0 var(--ink);
}
.mini-book.b1 { height: 80%; }
.mini-book.b2 { height: 95%; }
.mini-book.b2::before { background: linear-gradient(135deg, #FFB07C, #FF6B9D); }
.mini-book.b3 { height: 70%; }
.mini-book.b3::before { background: linear-gradient(135deg, #67F0AC, #4FC9D9); }
.mini-book.b4 { height: 88%; }
.mini-book.b4::before { background: linear-gradient(135deg, #7C5CFF, #B86DFF); }
.mini-book.b5 { height: 76%; }
.mini-book.b5::before { background: linear-gradient(135deg, #E94B9C, #FFB07C); }

/* Audio drama mock */
.mock-audio {
  background: linear-gradient(135deg, var(--tint-blue) 0%, #C9DCEC 100%);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 20px;
}
.audio-thumb {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2A1B5C, #6841F5);
  display: flex; align-items: center; justify-content: center;
  color: white;
  flex-shrink: 0;
}
.audio-info { flex: 1; }
.audio-title { font-size: 13px; font-weight: 600; color: var(--ink); }
.audio-step { font-size: 11px; color: var(--muted); margin-top: 2px; }
.audio-progress {
  height: 6px;
  background: rgba(124,92,255,0.2);
  border-radius: 3px;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
}
.audio-progress::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 65%;
  background: var(--violet-500);
  border-radius: 3px;
}

/* Materials mock */
.mock-materials {
  background: linear-gradient(135deg, var(--tint-mint) 0%, #C5E4D2 100%);
  padding: 18px;
  position: relative;
}
.material-tags {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.mat-tag {
  padding: 4px 10px;
  background: white;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
}
.mat-tag.active { background: var(--ink); color: white; }
.mat-text {
  background: white;
  border-radius: 10px;
  padding: 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-3);
  position: relative;
}
.mat-text .underlined {
  background: linear-gradient(transparent 60%, #FFE6A1 60%);
  padding: 0 2px;
  cursor: pointer;
  position: relative;
}
.mat-popover {
  position: absolute;
  bottom: -50px;
  left: 30%;
  background: var(--ink);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 12px;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  z-index: 2;
}
.mat-popover::before {
  content: '';
  position: absolute;
  top: -5px; left: 20px;
  width: 10px; height: 10px;
  background: var(--ink);
  transform: rotate(45deg);
}
.mat-popover .ru { color: rgba(255,255,255,0.7); margin-left: 8px; font-size: 11px; }

@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-card { min-height: 0; padding: 28px; }
}

/* ============================================
   SOCIAL block — friends
   ============================================ */
.social {
  background: white;
  border-radius: var(--r-xl);
  margin: 0 24px;
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
}
.social-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.social-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 14px;
}
.social-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: var(--ink-2);
}
.social-list li .icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--violet-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--violet-600);
  flex-shrink: 0;
}

.social-visual {
  position: relative;
  height: 480px;
}
.chat-mock {
  position: absolute;
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card-lg);
  border: 1px solid var(--line);
  width: 320px;
  padding: 18px;
}
.chat-mock.c1 {
  top: 0; left: 0;
  background: linear-gradient(180deg, #F3F0FF, white 30%);
}
.chat-mock.c2 {
  bottom: 20px; right: 0;
  width: 280px;
}
.chat-mock.c3 {
  top: 200px; left: 80px;
  width: 220px;
  z-index: 2;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.chat-avatar {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B86DFF, #E94B9C);
}
.chat-avatar.b { background: linear-gradient(135deg, #FFB07C, #FF6B9D); }
.chat-avatar.c { background: linear-gradient(135deg, #67F0AC, #4FC9D9); }
.chat-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.chat-status { font-size: 11px; color: var(--violet-600); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.chat-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #67F0AC; }

.chat-body { padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.chat-msg {
  padding: 8px 12px;
  border-radius: 14px;
  font-size: 13px;
  max-width: 80%;
}
.chat-msg.them { background: var(--violet-50); color: var(--ink-2); border-bottom-left-radius: 4px; }
.chat-msg.me {
  background: var(--violet-500);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.call-mock {
  display: flex;
  align-items: center;
  gap: 14px;
}
.call-icon {
  width: 44px; height: 44px;
  background: #67F0AC;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink);
  flex-shrink: 0;
}
.call-info .call-name { font-size: 14px; font-weight: 600; color: var(--ink); }
.call-info .call-time { font-size: 12px; color: var(--muted); margin-top: 2px; }

@media (max-width: 980px) {
  .social { margin: 0 16px; padding: 56px 32px; }
  .social-grid { grid-template-columns: 1fr; gap: 56px; }
  .social-visual { height: 400px; }
  .chat-mock.c1, .chat-mock.c2, .chat-mock.c3 { width: 84%; max-width: 320px; }
  .chat-mock.c1 { top: 0; left: 0; }
  .chat-mock.c3 { top: 160px; left: 8%; }
  .chat-mock.c2 { bottom: 0; right: 0; }
}
@media (max-width: 480px) {
  .social-visual { height: 460px; }
}

/* ============================================
   PROGRESS block — gamification
   ============================================ */
.progress-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
}
.progress-screenshot {
  background: white;
  border-radius: var(--r-xl);
  padding: 16px;
  box-shadow: var(--shadow-card-lg);
  overflow: hidden;
}
.progress-screenshot img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
}
.progress-dash {
  background: white;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card-lg);
  padding: 24px;
  border: 1px solid var(--line);
}
.dash-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.dash-card {
  border-radius: var(--r-md);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
}
.dash-card .dc-label { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.dash-card .dc-num { font-size: 28px; font-weight: 700; color: var(--ink); margin-top: 4px; letter-spacing: -0.02em; }
.dash-card .dc-icon {
  position: absolute;
  top: 16px; right: 16px;
  font-size: 20px;
}
.dash-card.streak { background: linear-gradient(135deg, #FBE8DA, #F4B582); }
.dash-card.words { background: linear-gradient(135deg, var(--tint-pink), #E8B4D9); }
.dash-card.lessons { background: linear-gradient(135deg, var(--tint-mint), #A4D7B7); }
.dash-card.level { background: linear-gradient(135deg, var(--tint-blue), #8FB8E0); }

.dash-goal {
  margin-top: 14px;
  background: var(--violet-50);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.dash-goal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.dash-goal-title { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.dash-goal-val { font-size: 13px; font-weight: 600; color: var(--violet-600); }
.dash-bar {
  height: 8px;
  background: white;
  border-radius: 4px;
  overflow: hidden;
}
.dash-bar i {
  display: block;
  height: 100%;
  width: 73%;
  background: var(--grad-cta);
  border-radius: 4px;
}

.calendar-mini {
  margin-top: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
}
.cal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--muted);
  border-radius: 6px;
}
.cal-cell.done { background: var(--violet-100); color: var(--violet-700); font-weight: 600; }
.cal-cell.today { background: var(--violet-500); color: white; font-weight: 600; }

@media (max-width: 860px) {
  .progress-grid { grid-template-columns: 1fr; gap: 40px; }
  .progress-grid > div:first-child { order: 2; }
}

/* ============================================
   PRICING
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.pricing-card {
  background: white;
  border-radius: var(--r-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
}
.pricing-card .tier-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--violet-600);
  margin-bottom: 6px;
}
.pricing-card .tier-tagline { font-size: 14px; color: var(--ink-3); margin-bottom: 24px; }
.pricing-card .price {
  font-size: 44px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.pricing-card .price small {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
}
.pricing-card .price-prefix { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 28px 0;
  display: grid;
  gap: 12px;
}
.pricing-card li {
  display: flex;
  gap: 10px;
  font-size: 15px;
  color: var(--ink-2);
}
.pricing-card li svg { flex-shrink: 0; color: var(--violet-500); margin-top: 2px; }
.pricing-card .btn { margin-top: auto; width: 100%; }

.pricing-card.pro {
  background: linear-gradient(160deg, #1B1530 0%, #2A1B5C 100%);
  color: white;
  border: none;
}
.pricing-card.pro::before {
  content: 'ПОПУЛЯРНЫЙ';
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--grad-hero-soft);
  color: white;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  box-shadow: var(--shadow-violet);
}
.pricing-card.pro .tier-name { color: #C7B8FF; }
.pricing-card.pro .tier-tagline { color: rgba(255,255,255,0.7); }
.pricing-card.pro .price { color: white; }
.pricing-card.pro .price small { color: rgba(255,255,255,0.6); }
.pricing-card.pro .price-prefix { color: rgba(255,255,255,0.6); }
.pricing-card.pro li { color: rgba(255,255,255,0.85); }
.pricing-card.pro li svg { color: #FFB07C; }

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.pricing-note .badge-pay {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 500;
  color: var(--ink-2);
}

@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}

/* ============================================
   WHY IT WORKS — methodology
   ============================================ */
.why {
  background: white;
  border-radius: var(--r-xl);
  margin: 0 24px;
  padding: 80px 64px;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.why-card { padding: 0; }
.why-num {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--violet-600);
  margin-bottom: 14px;
}
.why-card h3 { margin-bottom: 12px; font-size: 20px; }
.why-card p { color: var(--ink-3); font-size: 15.5px; line-height: 1.6; margin: 0; }
.why-author {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--bg);
  border-radius: var(--r-lg);
}
.why-author-avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #B86DFF, #E94B9C);
  flex-shrink: 0;
}
.why-author-name { font-weight: 600; color: var(--ink); font-size: 15px; }
.why-author-role { font-size: 13px; color: var(--muted); }

@media (max-width: 860px) {
  .why { margin: 0 16px; padding: 56px 32px; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ============================================
   FAQ
   ============================================ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq-item {
  background: white;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color .2s;
}
.faq-item.open { border-color: var(--violet-200); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  width: 100%;
  text-align: left;
}
.faq-q .toggle {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--violet-50);
  display: flex; align-items: center; justify-content: center;
  color: var(--violet-600);
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform .2s, background .2s;
}
.faq-item.open .toggle { background: var(--violet-500); color: white; transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 26px 24px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.6;
}
.faq-item.open .faq-a { display: block; }

@media (max-width: 860px) {
  .faq-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============================================
   FINAL CTA
   ============================================ */
.final-cta {
  position: relative;
  background: var(--grad-hero);
  border-radius: var(--r-xl);
  margin: 0 24px;
  padding: 96px 64px;
  overflow: hidden;
  color: white;
  text-align: center;
}
.final-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 80% 20%, rgba(255,255,255,0.18), transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(255,80,180,0.25), transparent 60%);
  pointer-events: none;
}
.final-cta-inner { position: relative; z-index: 2; max-width: 720px; margin: 0 auto; }
.final-cta h2 { color: white; margin-bottom: 18px; }
.final-cta p { color: rgba(255,255,255,0.85); font-size: 18px; margin: 0 0 32px; }
.final-cta .alice-mini {
  position: absolute;
  z-index: 2;
  bottom: 0;
  right: 4%;
  width: 240px;
  border-top-left-radius: 200px;
  border-top-right-radius: 200px;
  overflow: hidden;
  pointer-events: none;
}
.final-cta .alice-mini img { display: block; width: 100%; }

@media (max-width: 980px) {
  .final-cta { padding: 72px 40px; margin: 0 16px; }
  .final-cta .alice-mini { display: none; }
}
@media (max-width: 560px) {
  .final-cta { padding: 56px 24px; }
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  padding: 64px 0 32px;
  color: var(--ink-3);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.footer-brand p {
  margin: 14px 0 24px;
  font-size: 14px;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.55;
}
.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-3);
  transition: all .2s;
}
.footer-socials a:hover { color: var(--violet-600); border-color: var(--violet-200); transform: translateY(-2px); }
.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a {
  font-size: 14px;
  color: var(--ink-3);
  transition: color .15s;
}
.footer-col a:hover { color: var(--violet-600); }

.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================
   Utility
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
