/* ============================================================
   LingoArc — Marketing Site
   Design: Words in Motion · Light · Teal accent
   ============================================================ */

/* ── TOKENS ── */
:root {
  --teal:        #3DB39E;
  --teal-l:      #4FC4B0;
  --teal-d:      #2E9080;
  --orange:      #F0913A;
  --orange-l:    #F9A250;

  --bg:          #FAFAF8;
  --bg-1:        #F3F3F0;
  --bg-card:     #FFFFFF;
  --border:      rgba(0,0,0,0.08);
  --border-h:    rgba(0,0,0,0.15);

  --text:        #111111;
  --text-2:      #5E5E5E;
  --text-3:      #9E9E9E;

  --shadow-sm:   0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 32px rgba(0,0,0,0.09);
  --shadow-lg:   0 20px 60px rgba(0,0,0,0.10);

  --radius:      20px;
  --radius-sm:   12px;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { border: none; cursor: pointer; font-family: inherit; background: none; }

/* ── CONTAINER ── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s ease;
}
.nav.scrolled {
  background: rgba(250,250,248,0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.nav-logo span { color: var(--teal); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--text); }

.nav-cta {
  background: var(--teal);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--teal-d);
  transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 130px 0 90px;
  /* Subtle teal wash at top — makes hero feel distinct from body */
  background: radial-gradient(ellipse 90% 55% at 50% -5%, rgba(61,179,158,0.10) 0%, transparent 65%);
}

/* Word Cloud — dark words on light background */
.word-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, transparent 38%, black 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 50%, transparent 38%, black 78%);
  overflow: hidden;
}
.floating-word {
  position: absolute;
  font-weight: 700;
  white-space: nowrap;
  user-select: none;
  pointer-events: none;
  animation: wordFloat linear infinite;
  will-change: transform;
  /* color set per-element in JS (var(--text) or var(--teal)) */
}
@keyframes wordFloat {
  0%   { transform: translate(0,    0px);   }
  20%  { transform: translate(12px, -22px); }
  45%  { transform: translate(-9px, -38px); }
  65%  { transform: translate(18px, -28px); }
  85%  { transform: translate(-6px, -12px); }
  100% { transform: translate(0,    0px);   }
}

/* Subtle glow behind card */
.hero-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -55%);
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(61,179,158,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Hero content */
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
}

.hero-badge {
  display: inline-block;
  background: rgba(61,179,158,0.10);
  border: 1px solid rgba(61,179,158,0.25);
  color: var(--teal-d);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}

.hero-headline {
  font-size: clamp(40px, 7.5vw, 80px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.04;
  color: var(--text);
}
.hero-headline em {
  font-style: normal;
  color: var(--teal);
}

.hero-sub {
  font-size: 18px;
  color: var(--text-2);
  line-height: 1.65;
  max-width: 480px;
}

/* ── FLASHCARD ── */
.demo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  perspective: 1200px;
  margin: 4px 0;
}

.flashcard {
  width: 300px;
  height: 460px;
  cursor: pointer;
}
.flashcard-inner {
  width: 100%; height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.65s cubic-bezier(0.4, 0.0, 0.2, 1);
}
.flashcard.flipped .flashcard-inner {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: #FFFFFF;
  color: #1C1C1E;
  /* Stronger shadow so white card reads against warm-white bg */
  box-shadow:
    0 2px 0 rgba(0,0,0,0.04),
    0 12px 40px rgba(0,0,0,0.12),
    0 40px 80px rgba(0,0,0,0.08);
  border: 1px solid rgba(0,0,0,0.06);
}
.card-back {
  transform: rotateY(180deg);
}

/* Card front */
.card-front-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 28px 0;
}
.card-word {
  font-size: 52px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1C1C1E;
  line-height: 1;
}
.card-audio {
  color: var(--teal);
  display: flex;
  align-items: center;
}
.card-pos {
  font-size: 14px;
  color: #8E8E93;
}
.card-diff {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 20px;
  border-radius: 100px;
}
.card-diff.easy   { background: var(--teal);   color: #fff; }
.card-diff.medium { background: var(--orange);  color: #fff; }
.card-diff.hard   { background: #E55555;        color: #fff; }
.card-tap-hint {
  padding: 18px 28px 24px;
  font-size: 13px;
  color: #8E8E93;
  text-align: center;
}

/* Card back */
.card-back-body {
  flex: 1;
  padding: 26px 24px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.card-definition {
  font-size: 16px;
  font-weight: 700;
  color: #1C1C1E;
  line-height: 1.45;
}
.card-divider {
  border: none;
  border-top: 1px solid rgba(0,0,0,0.10);
  margin: 0;
}
.card-examples {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.example-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.example-quote {
  font-size: 20px;
  color: #C7C7CC;
  line-height: 1;
  flex-shrink: 0;
  margin-top: -2px;
}
.example-item span:last-child {
  font-size: 13px;
  color: #8E8E93;
  line-height: 1.5;
}

/* 2×2 rating grid */
.card-rating-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}
.rate-btn {
  padding: 14px 8px;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
  color: #fff;
  line-height: 1.3;
  border-radius: 0;
  transition: filter 0.15s;
}
.rate-btn:hover { filter: brightness(1.08); }
.rate-btn.forgot  { background: #E55555;       border-radius: 0 0 0 28px; }
.rate-btn.partial { background: #F0913A;       border-radius: 0; }
.rate-btn.slow    { background: #C9853A;       border-radius: 0; }
.rate-btn.knew    { background: var(--teal);   border-radius: 0 0 28px 0; }

/* Progress dots */
.card-dots { display: flex; gap: 7px; }
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(0,0,0,0.15);
  transition: background 0.3s, transform 0.3s;
}
.dot.active {
  background: var(--teal);
  transform: scale(1.4);
}

/* ── CTA GROUP ── */
.cta-group {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--teal);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 28px;
  border-radius: 100px;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  background: var(--teal-d);
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(61,179,158,0.30);
}
.btn-primary.large {
  font-size: 17px;
  padding: 16px 36px;
}
.btn-primary.full { width: 100%; justify-content: center; }

.btn-ghost {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-2);
  transition: color 0.2s;
}
.btn-ghost:hover { color: var(--text); }

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--border-h);
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
  padding: 13px 28px;
  border-radius: 100px;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.btn-outline:hover {
  border-color: var(--text-3);
  background: rgba(0,0,0,0.03);
}
.btn-outline.full { width: 100%; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  padding: 36px 0;
}
.stats-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.stat-num {
  font-size: 30px;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 12px;
  color: var(--text-3);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
}

/* ============================================================
   SECTION HELPERS
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.section-header h2 {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}
.section-sub {
  font-size: 17px;
  color: var(--text-2);
  margin-top: 14px;
}

/* ============================================================
   FEATURES
   ============================================================ */
.features {
  padding: 110px 0;
  background: var(--bg-1);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.feat-card:hover {
  border-color: var(--border-h);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feat-large { grid-column: span 2; }

.feat-icon-wrap {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: rgba(61,179,158,0.10);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feat-icon-wrap.orange {
  background: rgba(240,145,58,0.10);
  color: var(--orange);
}

.feat-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: 0.10em;
}

.feat-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.feat-card > p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ── SM-2 Visual ── */
.sm2-visual {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.sm2-item {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sm2-label {
  font-size: 11px;
  color: var(--text-3);
  width: 60px;
  flex-shrink: 0;
  text-align: right;
}
.sm2-bar {
  flex: 1;
  height: 7px;
  background: rgba(0,0,0,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.sm2-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), var(--teal-l));
  border-radius: 100px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.sm2-pct {
  font-size: 10px;
  color: var(--text-3);
  width: 30px;
  text-align: right;
  flex-shrink: 0;
}

/* ── AI Enrichment Preview ── */
.enrich-preview {
  margin-top: 14px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.enrich-word {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
}
.enrich-rows { display: flex; flex-direction: column; gap: 5px; }
.enrich-row { display: flex; gap: 10px; font-size: 12px; }
.enrich-label {
  color: var(--text-3);
  width: 68px;
  flex-shrink: 0;
}
.enrich-row span:last-child { color: var(--text-2); }
.enrich-diff {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  align-self: flex-start;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.enrich-diff.medium {
  background: rgba(240,145,58,0.14);
  color: var(--orange);
}

/* ── Photo Preview ── */
.photo-preview {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}
.camera-frame {
  width: 200px;
  height: 140px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-1);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  overflow: hidden;
}
.camera-corners { position: absolute; inset: 0; }
.cc {
  position: absolute;
  width: 18px; height: 18px;
  border-color: var(--teal);
  border-style: solid;
  border-width: 0;
}
.cc.tl { top:8px;    left:8px;  border-top-width:2px;    border-left-width:2px;  border-radius: 4px 0 0 0; }
.cc.tr { top:8px;    right:8px; border-top-width:2px;    border-right-width:2px; border-radius: 0 4px 0 0; }
.cc.bl { bottom:8px; left:8px;  border-bottom-width:2px; border-left-width:2px;  border-radius: 0 0 0 4px; }
.cc.br { bottom:8px; right:8px; border-bottom-width:2px; border-right-width:2px; border-radius: 0 0 4px 0; }

.camera-subject { font-size: 36px; line-height: 1; }
.camera-label {
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 5px 12px;
  text-align: center;
}
.camera-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}
.camera-trans {
  display: block;
  font-size: 10px;
  color: var(--teal-l);
  margin-top: 1px;
}

/* ── Translate Preview ── */
.translate-preview {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.t-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
}
.t-row.natural { background: rgba(61,179,158,0.08);  border: 1px solid rgba(61,179,158,0.18); }
.t-row.formal  { background: var(--bg-1);             border: 1px solid var(--border); }
.t-row.slang   { background: rgba(240,145,58,0.08);   border: 1px solid rgba(240,145,58,0.18); }
.t-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  padding-top: 1px;
  width: 50px;
}
.t-row.natural .t-label { color: var(--teal-d); }
.t-row.formal  .t-label { color: var(--text-3); }
.t-row.slang   .t-label { color: var(--orange); }
.t-text { font-size: 12px; color: var(--text-2); }

/* ── Speaking Premium ── */
.feat-premium {
  background: rgba(61,179,158,0.05);
  border-color: rgba(61,179,158,0.22);
}
.premium-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  background: rgba(240,145,58,0.10);
  border: 1px solid rgba(240,145,58,0.22);
  padding: 3px 10px;
  border-radius: 100px;
  letter-spacing: 0.04em;
  align-self: flex-start;
}
.speaking-preview {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.speak-score {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.score-ring {
  position: relative;
  width: 72px; height: 72px;
  display: flex; align-items: center; justify-content: center;
}
.score-ring svg {
  position: absolute;
  inset: 0;
}
.score-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
  position: relative;
  z-index: 1;
}
/* Update SVG circle color for light theme in HTML */
.score-ring circle:first-child { stroke: rgba(0,0,0,0.08); }
.score-label {
  font-size: 10px;
  color: var(--text-3);
  text-align: center;
  line-height: 1.4;
}
.speak-feedback {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fb-item {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 7px;
}
.fb-item.correct { color: var(--teal-d);  background: rgba(61,179,158,0.10); }
.fb-item.wrong   { color: #C0392B;        background: rgba(192,57,43,0.08);  }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: 110px 0;
  background: var(--bg-card);
}
.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
}
.step {
  flex: 1;
  max-width: 290px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.step-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--teal);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.step h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.step p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}
.step-connector {
  color: var(--teal);
  font-size: 30px;
  font-weight: 300;
  padding-top: 30px;
  flex-shrink: 0;
  opacity: 0.55;
}

/* ============================================================
   TIPS — How to learn a language
   ============================================================ */
.tips {
  padding: 110px 0;
  background: var(--bg);
}

.tips-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  background: var(--bg-card);
}
.tip-card {
  padding: 44px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}
.tip-card:hover { background: #F7FBF9; }
.tip-card:nth-child(even)      { border-right: none; }
.tip-card:nth-last-child(-n+2) { border-bottom: none; }

.tip-num {
  font-size: 56px;
  font-weight: 900;
  color: var(--teal);
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: 0.22;
}
.tip-card h3 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}
.tip-card p {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.75;
}
.tip-card p strong {
  color: var(--text);
  font-weight: 600;
}

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { padding: 110px 0; background: var(--bg-1); }
.cta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 90px 40px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(circle, rgba(61,179,158,0.10) 0%, transparent 70%);
  pointer-events: none;
}
.cta-card h2 {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}
.cta-card > p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 380px;
}
.cta-fine {
  font-size: 13px !important;
  color: var(--text-3) !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: var(--bg-card);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.footer-logo span { color: var(--teal); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  font-size: 13px;
  color: var(--text-3);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-2); }
.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: var(--text-3);
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .features-grid  { grid-template-columns: 1fr 1fr; }
  .feat-large     { grid-column: span 2; }
}

@media (max-width: 680px) {
  .nav-link { display: none; }

  .hero-headline { font-size: 38px; }
  .hero-sub      { font-size: 15px; }
  .flashcard     { width: 280px; height: 430px; }
  .card-word     { font-size: 44px; }

  .cta-group { flex-direction: column; align-items: stretch; }
  .btn-ghost { text-align: center; }

  .stats-inner  { gap: 28px; }
  .stat-divider { display: none; }

  .features-grid { grid-template-columns: 1fr; }
  .feat-large    { grid-column: span 1; }

  .steps         { flex-direction: column; align-items: center; }
  .step-connector { transform: rotate(90deg); padding: 0; }

  .tips-grid { grid-template-columns: 1fr; border-radius: 16px; }
  .tip-card  { border-right: none; border-bottom: 1px solid var(--border); }
  .tip-card:last-child { border-bottom: none; }
  .tip-num   { font-size: 42px; }

  .footer-inner  { flex-direction: column; text-align: center; }
  .footer-links  { justify-content: center; }
}

/* ============================================================
   LEGAL PAGES (Terms of Service, Privacy Policy)
   ============================================================ */
.legal-page {
  padding-top: 120px;
  padding-bottom: 100px;
  min-height: 100vh;
}
.legal-header {
  margin-bottom: 48px;
}
.legal-header .section-tag {
  display: inline-block;
  margin-bottom: 12px;
}
.legal-header h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 10px;
}
.legal-header .legal-meta {
  font-size: 14px;
  color: var(--text-3);
}
.legal-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 52px;
  max-width: 780px;
  box-shadow: var(--shadow-sm);
}
.legal-body h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-top: 36px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p {
  font-size: 15px;
  color: var(--text-2);
  margin-bottom: 12px;
  line-height: 1.75;
}
.legal-body ul {
  list-style: none;
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.legal-body ul li {
  font-size: 15px;
  color: var(--text-2);
  padding-left: 20px;
  position: relative;
  line-height: 1.7;
}
.legal-body ul li::before {
  content: '–';
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 600;
}
.legal-body strong { color: var(--text); font-weight: 600; }
.legal-caps {
  font-size: 13px !important;
  letter-spacing: 0.01em;
  line-height: 1.65 !important;
}

@media (max-width: 640px) {
  .legal-body { padding: 28px 22px; }
}

@media (max-width: 400px) {
  .flashcard { width: 270px; height: 420px; }
  .card-word { font-size: 40px; }
}
