/* =========================================
   REKONA — GLOBAL STYLESHEET
   ========================================= */

/* 1. Custom Properties
   2. Reset & Base
   3. Typography
   4. Layout Utilities
   5. Buttons
   6. Navbar
   7. Hero
   8. Stats Bar
   9. Section Titles
   10. Flashcard Demo
   11. Product Cards
   12. Steps
   13. Pricing Cards
   14. FAQ
   15. Waitlist
   16. Deck Filter & Grid
   17. Extension & Add-on Pages
   18. Footer
   19. Animations & Utilities
   20. Responsive
*/

/* ── 1. Custom Properties ─────────────────── */

:root {
  --bg:           #F5F0E8;
  --bg-card:      #FDFAF4;
  --bg-alt:       #EDE8DF;
  --accent:       #C17F3E;
  --accent-hover: #A56830;
  --accent-light: rgba(193, 127, 62, 0.12);
  --accent-mid:   rgba(193, 127, 62, 0.25);

  --text-primary:   #2C2416;
  --text-secondary: #5E4A32;
  --text-muted:     #9A836A;

  --border:       rgba(193, 127, 62, 0.18);
  --border-solid: #DDD0BC;

  --shadow-xs: 0 1px 3px rgba(44, 36, 22, 0.06);
  --shadow-sm: 0 2px 8px rgba(44, 36, 22, 0.08);
  --shadow:    0 4px 16px rgba(44, 36, 22, 0.10);
  --shadow-lg: 0 8px 32px rgba(44, 36, 22, 0.13);

  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;

  --navbar-h:  64px;
  --navbar-bg: rgba(245, 240, 232, 0.96);

  --trans: 0.2s ease;
  --trans-slow: 0.4s ease;
}

[data-theme="dark"] {
  --bg:           #1B1610;
  --bg-card:      #241E12;
  --bg-alt:       #201A0E;
  --accent:       #D4935A;
  --accent-hover: #E0A56A;
  --accent-light: rgba(212, 147, 90, 0.12);
  --accent-mid:   rgba(212, 147, 90, 0.22);

  --text-primary:   #EDE6D6;
  --text-secondary: #C4B49A;
  --text-muted:     #8A7A62;

  --border:       rgba(212, 147, 90, 0.18);
  --border-solid: #3A3020;

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.25);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.28);
  --shadow:    0 4px 16px rgba(0,0,0,0.32);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.40);

  --navbar-bg: rgba(27, 22, 16, 0.96);
}

/* ── 2. Reset & Base ──────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  background-color: var(--bg);
  color: var(--text-primary);
  transition: background-color var(--trans-slow), color var(--trans-slow);
  padding-top: var(--navbar-h);
}

img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--accent-hover); }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ── 3. Typography ────────────────────────── */

h1, h2, h3, h4 {
  font-family: 'Lora', Georgia, serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1rem; font-family: 'DM Sans', sans-serif; font-weight: 600; }

p { color: var(--text-secondary); }
em { font-style: italic; color: var(--accent); }
strong { font-weight: 600; color: var(--text-primary); }

/* ── 4. Layout Utilities ──────────────────── */

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

.section {
  padding: 80px 0;
}

.section-alt {
  background-color: var(--bg-alt);
  transition: background-color var(--trans-slow);
}

/* ── 5. Buttons ───────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 50px;
  padding: 10px 24px;
  transition: all var(--trans);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(193, 127, 62, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}
.btn-outline:hover {
  background: var(--accent-light);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-solid);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-sm  { font-size: 0.85rem; padding: 7px 18px; }
.btn-lg  { font-size: 1.05rem; padding: 14px 32px; }
.btn-block { width: 100%; }

/* ── 6. Navbar ────────────────────────────── */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--navbar-h);
  background: var(--navbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: background var(--trans-slow), border-color var(--trans-slow);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { color: var(--accent); }
.logo svg { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 6px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all var(--trans);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-solid);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: all var(--trans);
  padding: 0;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun  { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  padding: 8px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-solid);
  background: var(--bg-card);
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 7. Hero ──────────────────────────────── */

.hero {
  padding: 80px 0 60px;
  background: var(--bg);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: var(--accent-light);
  border: 1px solid var(--accent-mid);
  border-radius: 50px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title { margin-bottom: 18px; }

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 480px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Page heroes (decks, extension, addon, pricing) */
.page-hero {
  padding: 70px 0 56px;
  text-align: center;
}
.page-hero h1 { margin-bottom: 16px; }
.page-hero p  { font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ── 8. Stats Bar ─────────────────────────── */

.stats-bar {
  background: var(--accent);
  padding: 20px 0;
}

.stats-grid {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
}
.stat strong {
  display: block;
  font-size: 1.35rem;
  font-family: 'Lora', serif;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 2px;
}

/* ── 9. Section Titles ────────────────────── */

.section-header {
  text-align: center;
  margin-bottom: 52px;
}
.section-header h2 { margin-bottom: 12px; }
.section-header p  { font-size: 1.05rem; max-width: 520px; margin: 0 auto; }

/* ── 10. Flashcard Demo ───────────────────── */

.demo-section { padding: 80px 0; }

.demo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.flashcard {
  width: 360px;
  height: 220px;
  perspective: 1200px;
  cursor: pointer;
  user-select: none;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.55s cubic-bezier(0.45, 0.05, 0.55, 0.95);
}

.flashcard-inner.flipped {
  transform: rotateY(180deg);
}

.flashcard-front,
.flashcard-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.flashcard-back {
  transform: rotateY(180deg);
}

.card-lang {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.card-word {
  font-family: 'Lora', serif;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--text-primary);
  text-align: center;
  margin: auto 0;
}

.card-ipa {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: -4px;
  font-style: italic;
}

.card-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.card-translation {
  font-family: 'Lora', serif;
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
  margin: auto 0;
}

.card-example {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
}

.card-controls {
  display: flex;
  gap: 12px;
}

.btn-card {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--trans);
  border: 2px solid;
}
.btn-again  { background: rgba(220,53,53,0.08); color: #c0392b; border-color: rgba(220,53,53,0.25); }
.btn-hard   { background: rgba(243,156,18,0.08); color: #c07c0a; border-color: rgba(243,156,18,0.25); }
.btn-good   { background: rgba(39,174,96,0.08);  color: #1a7a48; border-color: rgba(39,174,96,0.25); }
.btn-again:hover  { background: rgba(220,53,53,0.18); transform: translateY(-1px); }
.btn-hard:hover   { background: rgba(243,156,18,0.18); transform: translateY(-1px); }
.btn-good:hover   { background: rgba(39,174,96,0.18); transform: translateY(-1px); }

[data-theme="dark"] .btn-again { color: #e05c5c; }
[data-theme="dark"] .btn-hard  { color: #e0a04a; }
[data-theme="dark"] .btn-good  { color: #4ec97c; }

.card-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── 11. Product Cards ────────────────────── */

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

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: all var(--trans);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: var(--accent);
}

.product-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  border: 1px solid var(--accent-mid);
}

.product-card h3 { margin-bottom: 4px; }
.product-card p  { font-size: 0.92rem; }
.product-card .btn { margin-top: auto; }

/* ── 12. Steps ────────────────────────────── */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}

.step {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all var(--trans);
}
.step:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}

.step-icon { font-size: 1.8rem; margin-bottom: 10px; }
.step h3   { font-size: 1rem; margin-bottom: 6px; }
.step p    { font-size: 0.88rem; }

/* ── 13. Pricing Cards ────────────────────── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: box-shadow var(--trans);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pricing-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-mid), var(--shadow-lg);
  position: relative;
}

.pricing-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 50px;
  margin-bottom: 4px;
}

.pricing-tier {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pricing-price {
  font-family: 'Lora', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}
.pricing-price span {
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.pricing-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-features {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pricing-feature {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.pricing-feature::before {
  content: '✓';
  flex-shrink: 0;
  font-weight: 700;
  color: var(--accent);
  margin-top: 0.05em;
}

/* ── 14. FAQ ──────────────────────────────── */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.faq-item {
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text-primary);
  gap: 16px;
  text-align: left;
  transition: background var(--trans);
}
.faq-question:hover { background: var(--accent-light); }

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

.faq-answer p { font-size: 0.92rem; }

/* ── 15. Waitlist ─────────────────────────── */

.waitlist-section {
  background: var(--accent);
  padding: 72px 0;
  text-align: center;
}

.waitlist-section h2 { color: #fff; margin-bottom: 10px; }
.waitlist-section p  { color: rgba(255,255,255,0.85); margin-bottom: 32px; font-size: 1.05rem; }

.waitlist-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
}

.waitlist-form input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 50px;
  border: 2px solid transparent;
  font-size: 0.95rem;
  font-family: 'DM Sans', sans-serif;
  background: rgba(255,255,255,0.15);
  color: #fff;
  outline: none;
  transition: border-color var(--trans), background var(--trans);
}
.waitlist-form input::placeholder { color: rgba(255,255,255,0.65); }
.waitlist-form input:focus {
  border-color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.2);
}

.waitlist-form .btn {
  background: #fff;
  color: var(--accent);
  border-color: #fff;
  flex-shrink: 0;
}
.waitlist-form .btn:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.success-msg {
  color: rgba(255,255,255,0.9);
  font-size: 1.05rem;
  font-weight: 500;
}

/* ── 16. Deck Filter & Grid ───────────────── */

.onboarding-box {
  background: var(--bg-card);
  border: 2px solid var(--accent-mid);
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  max-width: 680px;
  margin: 0 auto 60px;
  text-align: center;
  box-shadow: var(--shadow);
}

.onboarding-box h3 {
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.onboarding-box p {
  font-size: 0.92rem;
  margin-bottom: 24px;
}

.onboarding-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.onboarding-form select,
.onboarding-form input {
  padding: 11px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-solid);
  background: var(--bg);
  color: var(--text-primary);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.92rem;
  outline: none;
  transition: border-color var(--trans);
  min-width: 180px;
}
.onboarding-form select:focus,
.onboarding-form input:focus {
  border-color: var(--accent);
}

.filter-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  min-width: 68px;
}

.filter-btn {
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid var(--border-solid);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  transition: all var(--trans);
  cursor: pointer;
}
.filter-btn:hover  { border-color: var(--accent); color: var(--accent); }
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

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

.deck-card {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--trans);
}
.deck-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.deck-card--locked {
  opacity: 0.72;
}
.deck-card--locked:hover {
  opacity: 1;
}

.deck-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.deck-flag { font-size: 1.6rem; }

.level-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.level-badge.a1 { background: rgba(39,174,96,0.12);  color: #1a7a48; }
.level-badge.a2 { background: rgba(52,152,219,0.12); color: #1a6fa8; }
.level-badge.b1 { background: rgba(155,89,182,0.12); color: #6a3d9a; }
.level-badge.b2 { background: rgba(230,126,34,0.12); color: #a05a10; }
.level-badge.c1 { background: rgba(231,76,60,0.12);  color: #a02020; }
.level-badge.c2 { background: rgba(44,62,80,0.12);   color: #2c3e50; }

[data-theme="dark"] .level-badge.a1 { background: rgba(39,174,96,0.18);  color: #5dc98a; }
[data-theme="dark"] .level-badge.a2 { background: rgba(52,152,219,0.18); color: #5aacde; }
[data-theme="dark"] .level-badge.b1 { background: rgba(155,89,182,0.18); color: #b07ed0; }
[data-theme="dark"] .level-badge.b2 { background: rgba(230,126,34,0.18); color: #e09048; }
[data-theme="dark"] .level-badge.c1 { background: rgba(231,76,60,0.18);  color: #e07070; }
[data-theme="dark"] .level-badge.c2 { background: rgba(150,168,180,0.18);color: #b0c4d0; }

.deck-card h3 { font-size: 1rem; }
.deck-words { font-size: 0.82rem; color: var(--text-muted); }

.deck-badges {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--bg-alt);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.requirements-note {
  margin-top: 48px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
}
.requirements-note a { color: var(--accent); }

/* ── 17. Extension & Add-on Pages ─────────── */

.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
  position: relative;
}

.flow-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 2px;
  background: linear-gradient(to right, var(--accent-mid), var(--accent-mid));
  z-index: 0;
}

.flow-step {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  position: relative;
  z-index: 1;
  transition: all var(--trans);
}
.flow-step:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.flow-step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-light);
  border: 2px solid var(--accent-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 16px;
}

.flow-step h3 { font-size: 1rem; margin-bottom: 6px; }
.flow-step p  { font-size: 0.88rem; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius);
  transition: all var(--trans);
}
.feature-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }

.feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.feature-item h4  { margin-bottom: 4px; }
.feature-item p   { font-size: 0.88rem; }

.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 820px;
  margin: 0 auto;
}

.mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-solid);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  transition: all var(--trans);
}
.mode-card:hover {
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.mode-card--featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-mid), var(--shadow-sm);
}

.mode-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.mode-card p  { font-size: 0.9rem; margin-bottom: 16px; }

.mode-card ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.mode-card li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.mode-card li::before {
  content: '→';
  color: var(--accent);
  flex-shrink: 0;
  font-weight: 700;
}

.install-cta {
  text-align: center;
  padding: 60px 0 0;
}
.install-cta h2 { margin-bottom: 10px; }
.install-cta p  { margin-bottom: 28px; max-width: 440px; margin-left: auto; margin-right: auto; }

/* ── 18. Footer ───────────────────────────── */

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border-solid);
  padding: 56px 0 24px;
  transition: background var(--trans-slow);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--trans);
}
.footer-col a:hover { color: var(--accent); }

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

/* ── 19. Animations & Utilities ──────────── */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: none;
}

.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }
.text-center { text-align: center; }

.divider {
  height: 1px;
  background: var(--border-solid);
  margin: 40px 0;
}

/* ── 20. Responsive ───────────────────────── */

@media (max-width: 1024px) {
  .hero-inner     { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual    { display: none; }
  .products-grid  { grid-template-columns: repeat(3, 1fr); }
  .steps-grid     { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid   { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .decks-grid     { grid-template-columns: repeat(2, 1fr); }
  .footer-grid    { grid-template-columns: 1fr 1fr; }
  .footer-brand   { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  body { padding-top: var(--navbar-h); }

  .nav-links {
    position: fixed;
    top: var(--navbar-h);
    left: 0;
    right: 0;
    background: var(--navbar-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-solid);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px 16px 16px;
    transform: translateY(-110%);
    transition: transform 0.3s ease;
    z-index: 999;
    margin-left: 0;
  }
  .nav-links.open    { transform: translateY(0); }
  .nav-links a       { padding: 10px 14px; border-radius: 8px; }

  .nav-actions .btn  { display: none; }
  .hamburger         { display: flex; }

  .section { padding: 56px 0; }

  .hero { padding: 48px 0 40px; }

  .products-grid  { grid-template-columns: 1fr; }
  .steps-grid     { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid   { grid-template-columns: 1fr; }
  .flow-steps     { grid-template-columns: 1fr; }
  .flow-steps::before { display: none; }
  .feature-grid   { grid-template-columns: 1fr; }
  .modes-grid     { grid-template-columns: 1fr; }
  .decks-grid     { grid-template-columns: 1fr; }
  .footer-grid    { grid-template-columns: 1fr; gap: 28px; }

  .flashcard      { width: 100%; max-width: 340px; }
  .waitlist-form  { flex-direction: column; }

  .onboarding-box { padding: 28px 20px; }
  .onboarding-form { flex-direction: column; }
  .onboarding-form select,
  .onboarding-form input { min-width: 100%; }

  .hero-title { font-size: 2rem; }
}

@media (max-width: 480px) {
  .stats-grid     { gap: 24px; }
  .steps-grid     { grid-template-columns: 1fr; }
  .hero-ctas      { flex-direction: column; align-items: flex-start; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .card-controls  { flex-direction: column; }
  .pricing-card   { padding: 28px 20px; }
}
