/* ========================================
   GLINTALE — Design System v3
   Aligned with app.glintale.com
   Primary: #7E7EFF | Buttons: #0A0A0A
   Fonts: Bricolage Grotesque + Archivo
   ======================================== */

/* ----------------------------------------
   DESIGN TOKENS
---------------------------------------- */
:root {
  /* Brand */
  --primary:        #7E7EFF;
  --primary-dark:   #6060E0;
  --primary-light:  #F1F1FF;
  --primary-ultra:  #F8F8FF;

  /* Neutral ink system */
  --ink:     #0A0A0A;
  --ink-2:   #1A1A1A;
  --ink-3:   #404040;
  --ink-4:   #737373;
  --ink-5:   #A3A3A3;
  --ink-6:   #D4D4D4;
  --ink-7:   #E5E5E5;
  --ink-8:   #F5F5F5;
  --paper:   #FAFAFA;

  /* Legacy grays (backwards compat) */
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;

  /* Dark surfaces */
  --dark:   #0A0A0A;
  --dark-2: #111111;
  --dark-3: #1A1A1A;
  --white:  #FFFFFF;

  /* Typography */
  --font-heading: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body:    'Archivo', system-ui, sans-serif;

  /* Radius */
  --radius-xs:    3px;
  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    14px;
  --radius-xl:    20px;
  --radius-2xl:   28px;
  --radius-card:  28px;  /* matches app's rounded-[1.75rem] */
  --radius-full:  9999px;

  /* Shadows */
  --shadow-xs:      0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm:      0 2px 8px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.03);
  --shadow-md:      0 4px 20px rgba(0,0,0,0.07);
  --shadow-lg:      0 8px 32px rgba(0,0,0,0.10);
  --shadow-xl:      0 20px 60px rgba(0,0,0,0.14);
  --shadow-primary: 0 6px 20px rgba(126,126,255,0.30);

  /* Transitions */
  --transition-fast: 0.12s ease;
  --transition:      0.20s ease;
  --transition-slow: 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  /* Layout */
  --nav-height: 70px;
  --max-width:  1200px;
}

/* ----------------------------------------
   RESET & BASE
---------------------------------------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--white);
}
a   { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: var(--font-body); }

#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--primary);
  z-index: 9999;
  transition: width 0.1s linear;
}

/* ----------------------------------------
   TYPOGRAPHY
---------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.08;
  color: var(--ink);
}
h1 { font-size: clamp(42px, 6.5vw, 80px); font-weight: 800; letter-spacing: -0.04em; }
h2 { font-size: clamp(28px, 4vw, 48px);   font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: clamp(18px, 2.5vw, 22px); font-weight: 600; letter-spacing: -0.02em; }
h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
p  { color: var(--ink-4); line-height: 1.7; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 16px;
}

/* ----------------------------------------
   LAYOUT
---------------------------------------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-header {
  max-width: 600px;
  margin-bottom: 56px;
}
.section-header.centered {
  margin: 0 auto 56px;
  text-align: center;
}
.section-header h2 { margin-bottom: 14px; line-height: 1.1; }
.section-header p  { font-size: 17px; color: var(--ink-4); line-height: 1.65; }

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

/* ----------------------------------------
   NAVIGATION
---------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  background: transparent;
}
.nav.nav-transparent { background: transparent; }
.nav.nav-solid       { background: var(--white); border-bottom: 1px solid var(--ink-7); }
.nav.scrolled        { background: var(--white); border-bottom: 1px solid var(--ink-7); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 40px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: var(--primary);
  transition: opacity var(--transition);
}
.nav-logo:hover { opacity: 0.75; }
.nav-logo svg { height: 26px; width: auto; }
.nav.nav-transparent .nav-logo { color: var(--white); }
.nav.scrolled .nav-logo,
.nav.nav-solid .nav-logo       { color: var(--primary); }

/* Nav menu */
.nav-menu { display: flex; align-items: center; gap: 2px; flex: 1; }
.nav-item  { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  font-family: var(--font-body);
}
.nav-link svg { width: 13px; height: 13px; transition: transform var(--transition); }
.nav-link:hover { color: var(--white); }
.nav.scrolled .nav-link,
.nav.nav-solid .nav-link { color: var(--ink-3); }
.nav.scrolled .nav-link:hover,
.nav.nav-solid .nav-link:hover { color: var(--ink); background: var(--paper); }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: -16px;
  background: var(--white);
  border: 1px solid var(--ink-7);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 8px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition), visibility var(--transition);
  z-index: 100;
}
.dropdown-menu.wide {
  min-width: 440px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.nav-item:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  font-family: var(--font-body);
  transition: background var(--transition), color var(--transition);
}
.dropdown-item:hover { background: var(--paper); color: var(--primary); }
.dropdown-dot { width: 7px; height: 7px; border-radius: var(--radius-full); flex-shrink: 0; }

.nav-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.nav-login {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  padding: 8px 12px;
  transition: color var(--transition);
  font-family: var(--font-body);
}
.nav-login:hover { color: var(--white); }
.nav.scrolled .nav-login,
.nav.nav-solid .nav-login { color: var(--ink-3); }
.nav.scrolled .nav-login:hover,
.nav.nav-solid .nav-login:hover { color: var(--ink); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; margin-left: auto; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }
.nav.scrolled .hamburger span,
.nav.nav-solid .hamburger span { background: var(--ink-2); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height); left: 0; right: 0;
  background: var(--white);
  border-top: 1px solid var(--ink-7);
  padding: 16px 24px 24px;
  box-shadow: var(--shadow-lg);
  z-index: 999;
  max-height: calc(100vh - var(--nav-height));
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  border-bottom: 1px solid var(--ink-8);
  font-family: var(--font-body);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu .mobile-cta { margin-top: 16px; width: 100%; text-align: center; }

/* ----------------------------------------
   BUTTONS — Archivo font, sentence case
---------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  border: 1.5px solid transparent;
  letter-spacing: -0.005em;
}
/* Black primary — matches app */
.btn-primary {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-primary:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.18);
}
/* Yellow secondary — matches app */
.btn-yellow {
  background: #FACC15;
  color: var(--ink);
  border-color: #FACC15;
}
.btn-yellow:hover {
  background: #EAB308;
  border-color: #EAB308;
  transform: translateY(-1px);
}
/* Outline white (for dark backgrounds) */
.btn-outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.30);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.65);
}
/* Outline dark (for light backgrounds — solid black border) */
.btn-outline-dark {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--white);
  transform: translateY(-1px);
}
/* Brand outline */
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover { background: var(--primary-light); }
/* Ghost */
.btn-ghost {
  background: transparent;
  color: var(--ink-2);
  border-color: var(--ink-7);
}
.btn-ghost:hover { background: var(--paper); border-color: var(--ink-6); }
/* Dark (same as primary but aliased) */
.btn-dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}
.btn-dark:hover { background: var(--ink-2); transform: translateY(-1px); }

.btn-sm  { padding: 8px 18px; font-size: 13px; }
.btn-lg  { padding: 14px 30px; font-size: 16px; }
.btn-xl  { padding: 16px 38px; font-size: 17px; }
.btn svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ----------------------------------------
   BADGES & TAGS
---------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
}
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-dark    { background: rgba(255,255,255,0.10); color: rgba(255,255,255,0.9); border: 1px solid rgba(255,255,255,0.15); }
.badge-gray    { background: var(--paper); color: var(--ink-3); }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-family: var(--font-body);
}
/* Cover-label tags: pink pill — uniform brand accent */
.cover-label .tag { background: #F527BE; color: #ffffff; }
/* Genre tag variants (used outside cards, e.g. filter chips) */
.tag-sci-fi    { background: #dbeafe; color: #1d4ed8; }
.tag-fantasy   { background: #ede9fe; color: #6d28d9; }
.tag-drama     { background: var(--ink-8); color: var(--ink-3); }
.tag-thriller  { background: #fef3c7; color: #92400e; }
.tag-horror    { background: #fee2e2; color: #991b1b; }
.tag-romance   { background: #fce7f3; color: #9d174d; }
.tag-comedy    { background: #dcfce7; color: #166534; }
.tag-mystery   { background: #e0f2fe; color: #0369a1; }
.tag-adventure { background: #d1fae5; color: #065f46; }
.tag-crime     { background: #f1f5f9; color: #475569; }
.tag-blog      { background: var(--primary-light); color: var(--primary); }
/* Badge on light page-hero backgrounds */
.page-hero .badge-dark {
  background: var(--ink-8);
  color: var(--ink-3);
  border-color: var(--ink-7);
}

/* ----------------------------------------
   HERO — centered, editorial, minimal
   Inspired by aboardhr.com / poolmoney.com
---------------------------------------- */
.hero {
  background: var(--white);
  padding: calc(var(--nav-height) + 80px) 0 88px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--ink-7);
}

/* Subtle radial glow — very faint brand tint */
.hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(126,126,255,0.055) 0%, transparent 60%);
  pointer-events: none;
}

.hero-center {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--primary-ultra);
  border: 1px solid rgba(126,126,255,0.18);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 32px;
  letter-spacing: 0.02em;
  font-family: var(--font-body);
}
.hero-eyebrow-dot {
  width: 6px; height: 6px;
  border-radius: var(--radius-full);
  background: var(--primary);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.35; transform: scale(0.7); }
}

.hero h1 {
  color: var(--ink);
  font-size: clamp(48px, 7vw, 86px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.96;
  margin-bottom: 26px;
}
.hero h1 .accent { color: var(--primary); }

.hero-sub {
  font-size: clamp(16px, 1.8vw, 18px);
  color: var(--ink-4);
  max-width: 480px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 52px;
}

/* Trust / stats bar */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-4);
  font-weight: 500;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--ink-7);
}
.hero-trust-item { white-space: nowrap; }
.hero-trust-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; white-space: nowrap; }
.hero-trust-num  { font-size: 15px; font-weight: 700; color: var(--ink-2); font-family: var(--font-heading); line-height: 1.2; }
.hero-trust-label { font-size: 11px; font-weight: 500; color: var(--ink-5); text-transform: uppercase; letter-spacing: .06em; }
.hero-trust-divider { width: 1px; height: 28px; background: var(--ink-7); flex-shrink: 0; }

/* Legacy hero classes (backwards compat) */
.hero-content { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; padding: 80px 32px 60px; text-align: center; }
.hero-cards   { position: relative; z-index: 1; max-width: var(--max-width); margin: 0 auto; padding: 0 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; transform: translateY(60px); }
.section-hero-offset { padding-top: 96px; }

/* ----------------------------------------
   STORY CAROUSEL — horizontal scroll
---------------------------------------- */
.story-carousel-wrap {
  position: relative;
  margin: 0 -32px;
  padding: 0 32px;
}
.story-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 12px;
  /* hide scrollbar */
  scrollbar-width: none;
}
.story-carousel::-webkit-scrollbar { display: none; }
.story-carousel .story-card {
  flex: 0 0 220px;
  scroll-snap-align: start;
}
@media (max-width: 768px) {
  .story-carousel-wrap { margin: 0 -20px; padding: 0 20px; }
  .story-carousel .story-card { flex: 0 0 155px; }
}

/* ----------------------------------------
   STORY CARDS — app.glintale.com/series
   No outer box: cover has its own radius,
   text sits below (exactly like the app).
---------------------------------------- */
.story-card {
  display: block;
  cursor: pointer;
  text-decoration: none;
}
.story-card:hover .story-cover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Dark card (legacy dark hero — keep working) */
.story-card.dark { }
.story-card.dark .story-cover { border: 1px solid rgba(255,255,255,0.10); }

/* Portrait cover — matches app's aspect-[2/3] rounded-[1.75rem] */
.story-cover {
  width: 100%;
  aspect-ratio: 2 / 3;
  border-radius: var(--radius-card);   /* 28px — own radius, not card wrapper */
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
}
/* Legacy fixed-height fallback */
.story-cover-fixed { height: 190px; aspect-ratio: unset; }

/* Cover genre art — solid color + subtle texture */
.story-cover::before,
.story-cover::after { content: ''; position: absolute; pointer-events: none; }

.cover-sci-fi {
  background: radial-gradient(circle 55px at 80% 18%, #1e3d7a 0%, #0d2040 40%, transparent 55%),
    linear-gradient(155deg, #040d1e 0%, #071428 45%, #0c1e3a 100%);
}
.cover-sci-fi::before {
  inset: 0;
  background:
    radial-gradient(1.5px 1.5px at 12% 15%, rgba(255,255,255,0.9) 0%, transparent 0),
    radial-gradient(1px 1px at 28% 8%, rgba(255,255,255,0.7) 0%, transparent 0),
    radial-gradient(2px 2px at 48% 20%, rgba(255,255,255,0.85) 0%, transparent 0),
    radial-gradient(1px 1px at 22% 42%, rgba(255,255,255,0.6) 0%, transparent 0),
    radial-gradient(1.5px 1.5px at 62% 32%, rgba(255,255,255,0.5) 0%, transparent 0),
    radial-gradient(1px 1px at 16% 74%, rgba(255,255,255,0.7) 0%, transparent 0),
    radial-gradient(1px 1px at 56% 66%, rgba(255,255,255,0.45) 0%, transparent 0),
    radial-gradient(1px 1px at 88% 52%, rgba(255,255,255,0.5) 0%, transparent 0);
}
.cover-sci-fi::after {
  top: -14px; right: -14px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 36%, #1e4080 0%, #0a1d44 65%);
  box-shadow: 0 0 28px rgba(126,126,255,0.40), 0 0 55px rgba(126,126,255,0.15);
}
.cover-fantasy {
  background: linear-gradient(185deg, #0a0522 0%, #140838 50%, #1e0c48 100%);
}
.cover-fantasy::before {
  inset: 0;
  background:
    radial-gradient(ellipse 90px 70px at 50% 30%, rgba(255,195,80,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 140px 50px at 50% 100%, rgba(110,55,180,0.45) 0%, transparent 65%);
}
.cover-fantasy::after {
  top: 0; left: calc(50% - 1px);
  width: 2px; height: 58%;
  background: linear-gradient(to bottom, rgba(255,200,90,0.65) 0%, transparent 100%);
  box-shadow: 0 0 14px rgba(255,195,80,0.45);
}
.cover-thriller {
  background: linear-gradient(160deg, #090704 0%, #141008 50%, #1c160a 100%);
}
.cover-thriller::before {
  inset: 0;
  background: linear-gradient(128deg, transparent 35%, rgba(255,155,35,0.22) 50%, transparent 65%);
}
.cover-thriller::after {
  bottom: 0; left: 0; right: 0; height: 45%;
  background: radial-gradient(ellipse at 50% 100%, rgba(190,90,15,0.22) 0%, transparent 70%);
}
.cover-romance {
  background: linear-gradient(145deg, #1e0b14 0%, #2d1020 55%, #3d1528 100%);
}
.cover-romance::before {
  inset: 0;
  background:
    radial-gradient(circle 60px at 28% 35%, rgba(255,180,170,0.11) 0%, transparent 65%),
    radial-gradient(circle 80px at 72% 58%, rgba(255,150,120,0.09) 0%, transparent 65%),
    radial-gradient(ellipse at 50% 100%, rgba(180,60,80,0.28) 0%, transparent 60%);
}
.cover-romance::after {
  top: 18%; left: 50%; transform: translateX(-50%);
  width: 64px; height: 64px; border-radius: 50%;
  background: transparent;
  box-shadow: 0 0 45px 20px rgba(220,100,100,0.18);
}
.cover-horror {
  background: linear-gradient(180deg, #030303 0%, #080208 55%, #0d0310 100%);
}
.cover-horror::before {
  inset: 0;
  background:
    radial-gradient(circle 36px at 50% 55%, rgba(180,0,0,0.16) 0%, transparent 60%),
    radial-gradient(circle 150px at 50% 55%, rgba(40,0,0,0.06) 0%, transparent 80%);
}
.cover-horror::after {
  bottom: 28%; left: 50%; transform: translateX(-50%);
  width: 7px; height: 7px; border-radius: 50%;
  background: #bb0000;
  box-shadow: 0 0 22px 10px rgba(200,0,0,0.32), 0 0 55px 25px rgba(140,0,0,0.15);
}
.cover-mystery {
  background: linear-gradient(175deg, #060e18 0%, #091520 55%, #0e1e2c 100%);
}
.cover-mystery::before {
  inset: 0;
  background:
    conic-gradient(from -14deg at 50% -8%, transparent 0deg, rgba(215,155,55,0.13) 14deg, rgba(215,155,55,0.07) 20deg, transparent 26deg),
    radial-gradient(ellipse 90px 45px at 50% 80%, rgba(175,115,35,0.14) 0%, transparent 70%);
}
.cover-mystery::after {
  top: 0; left: 50%; transform: translateX(-50%);
  width: 2px; height: 52%;
  background: linear-gradient(to bottom, rgba(215,155,55,0.55) 0%, transparent 100%);
  box-shadow: 0 0 16px rgba(215,155,55,0.32);
}
.cover-drama {
  background: linear-gradient(145deg, #141210 0%, #1e1c18 55%, #2a2620 100%);
}
.cover-drama::before {
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(225,182,112,0.14) 50%, transparent 100%);
}
.cover-drama::after {
  left: -5%; top: 47%; width: 110%; height: 1px;
  background: linear-gradient(to right, transparent 0%, rgba(225,182,112,0.28) 30%, rgba(225,182,112,0.28) 70%, transparent 100%);
}
.cover-adventure {
  background: linear-gradient(145deg, #041a0a 0%, #082810 55%, #0c3415 100%);
}
.cover-adventure::before {
  inset: 0;
  background:
    radial-gradient(circle at 40% 60%, rgba(20,180,80,0.12) 0%, transparent 50%),
    radial-gradient(circle at 68% 28%, rgba(40,200,100,0.07) 0%, transparent 40%);
}
.cover-adventure::after {
  inset: 0;
  background-image: linear-gradient(rgba(50,170,85,0.07) 1px, transparent 1px), linear-gradient(90deg, rgba(50,170,85,0.07) 1px, transparent 1px);
  background-size: 26px 26px;
}
.cover-comedy {
  background: linear-gradient(145deg, #0d1a08 0%, #162a0a 55%, #1e3610 100%);
}
.cover-comedy::before {
  inset: 0;
  background: radial-gradient(circle 80px at 55% 42%, rgba(180,228,100,0.13) 0%, transparent 60%), radial-gradient(ellipse at 50% 100%, rgba(120,185,55,0.20) 0%, transparent 60%);
}
.cover-comedy::after {
  top: 12%; right: 18%; width: 52px; height: 52px; border-radius: 50%;
  background: transparent; box-shadow: 0 0 35px 8px rgba(150,220,75,0.14);
}
.cover-crime {
  background: linear-gradient(145deg, #0a0a08 0%, #141410 55%, #1c1c18 100%);
}
.cover-crime::before {
  inset: 0;
  background-image: linear-gradient(rgba(200,190,165,0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(200,190,165,0.045) 1px, transparent 1px);
  background-size: 38px 38px;
}
.cover-crime::after {
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent;
  border: 1px solid rgba(200,190,165,0.18);
  box-shadow: 0 0 0 18px rgba(200,190,165,0.05);
}

/* Cover label */
.cover-label { position: absolute; top: 12px; left: 12px; z-index: 2; }

/* Story body — minimal, app-style */
.story-body { padding: 0; }
.story-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.story-season {
  font-size: 11px; font-weight: 600;
  color: var(--ink-5);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.story-read-time {
  display: flex; align-items: center; gap: 4px;
  font-size: 11px; color: var(--ink-5); font-weight: 500;
}
.story-title {
  font-family: var(--font-heading);
  font-size: 15px; font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.story-card.dark .story-title { color: var(--white); }
/* Description hidden by default (app style — click-through to read) */
.story-desc { display: none; }
/* Link hidden — entire card is the link */
.story-link { display: none; }

/* ----------------------------------------
   GENRE CARDS — matching app's Browse by Category
---------------------------------------- */
.genre-card {
  background: var(--paper);
  border: 1px solid var(--ink-7);
  border-radius: var(--radius-card);
  padding: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition-slow), transform var(--transition-slow);
  position: relative;
  min-height: 140px;
}
.genre-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

/* Icon circle — matches app */
.genre-card-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(126,126,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 14px;
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.genre-card:hover .genre-card-icon { background: var(--primary); color: var(--white); }

/* Hide old bg and arrow elements */
.genre-card-bg    { display: none; }
.genre-card-arrow { display: none; }

.genre-card-content { text-align: center; }
.genre-card-title {
  font-family: var(--font-heading);
  font-size: 16px; font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.genre-card-count { font-size: 12px; color: var(--ink-4); font-weight: 500; }

/* ----------------------------------------
   FEATURE CARDS
---------------------------------------- */
.feature-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--ink-7);
  border-radius: var(--radius-card);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-icon {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(126,126,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p  { font-size: 15px; color: var(--ink-4); line-height: 1.65; }

/* ----------------------------------------
   USE CASE CARDS — Mingcute icons, no emojis
---------------------------------------- */
.use-case-card {
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--white);
  border: 1px solid var(--ink-7);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition);
  position: relative;
  overflow: hidden;
}
.use-case-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-slow);
}
.use-case-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--ink-6); }
.use-case-card:hover::before { transform: scaleX(1); }

.use-case-icon {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(126,126,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
  transition: background var(--transition), color var(--transition);
  font-size: 0; /* hide any emoji fallback */
}
.use-case-card:hover .use-case-icon { background: var(--primary); color: var(--white); }
.use-case-icon iconify-icon { font-size: 22px; }

.use-case-card h3 { font-size: 18px; margin-bottom: 8px; }
.use-case-card p  { font-size: 15px; color: var(--ink-4); line-height: 1.65; margin-bottom: 16px; }
.use-case-link {
  font-size: 13px; font-weight: 600;
  color: var(--primary);
  display: inline-flex; align-items: center; gap: 4px;
  transition: gap var(--transition);
}
.use-case-link:hover { gap: 7px; }

/* ----------------------------------------
   STEPS
---------------------------------------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 27px;
  left: calc(16.66% + 20px);
  right: calc(16.66% + 20px);
  height: 1px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--ink-7) 100%);
}
.step { text-align: center; }
.step-num {
  width: 54px; height: 54px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 20px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  position: relative; z-index: 1;
  box-shadow: 0 4px 16px rgba(126,126,255,0.30);
}
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p  { font-size: 15px; color: var(--ink-4); }

/* ----------------------------------------
   STATS BAND — clean white
---------------------------------------- */
.stats-band {
  background: var(--white);
  border-top: 1px solid var(--ink-7);
  border-bottom: 1px solid var(--ink-7);
  padding: 48px 0;
}
.stats-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 8px 24px;
  border-right: 1px solid var(--ink-7);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 38px; font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 5px;
}
.stat-num span { color: var(--primary); }
.stat-label { font-size: 13px; color: var(--ink-4); font-weight: 500; }

/* ----------------------------------------
   GAMIFICATION — leaderboard centered
---------------------------------------- */
.gamification-center {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Legacy grid layout */
.gamification-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.points-card {
  background: var(--ink);
  border-radius: var(--radius-card);
  padding: 32px;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.06);
}
.points-title {
  font-family: var(--font-heading);
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.points-score {
  font-family: var(--font-heading);
  font-size: 54px; font-weight: 800;
  color: var(--white);
  letter-spacing: -0.04em; line-height: 1;
  margin-bottom: 4px;
}
.points-score span { color: var(--primary); }
.points-label { font-size: 13px; color: rgba(255,255,255,0.35); margin-bottom: 28px; }
.points-progress { margin-bottom: 24px; }
.progress-label {
  display: flex; justify-content: space-between;
  font-size: 12px; color: rgba(255,255,255,0.35);
  margin-bottom: 8px;
}
.progress-bar-track { height: 5px; background: rgba(255,255,255,0.08); border-radius: var(--radius-full); overflow: hidden; }
.progress-bar-fill {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary) 0%, #a5b4fc 100%);
}
.badges-row { display: flex; gap: 10px; flex-wrap: wrap; }
.badge-pill {
  display: flex; align-items: center; gap: 7px;
  padding: 7px 13px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius-full);
  font-size: 12px; color: rgba(255,255,255,0.75); font-weight: 500;
}
.badge-icon { font-size: 14px; }

.leaderboard-card {
  background: var(--white);
  border: 1px solid var(--ink-7);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.leaderboard-header {
  padding: 18px 22px;
  border-bottom: 1px solid var(--ink-8);
  display: flex; align-items: center; justify-content: space-between;
}
.leaderboard-header h4 { font-size: 15px; }
.leaderboard-header a  { font-size: 13px; color: var(--primary); font-weight: 600; }
.leaderboard-item {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 22px;
  border-bottom: 1px solid var(--ink-8);
  transition: background var(--transition);
}
.leaderboard-item:last-child { border-bottom: none; }
.leaderboard-item:hover { background: var(--paper); }
.leaderboard-rank {
  width: 26px; height: 26px; border-radius: var(--radius-full);
  background: var(--ink-8);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--ink-3);
  flex-shrink: 0;
}
.leaderboard-rank.gold   { background: #fef3c7; color: #92400e; }
.leaderboard-rank.silver { background: #f3f4f6; color: #6b7280; }
.leaderboard-rank.bronze { background: #fef3c7; color: #b45309; }
.leaderboard-avatar {
  width: 34px; height: 34px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), #a5b4fc);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 13px; font-weight: 700;
  color: var(--white); flex-shrink: 0;
}
.leaderboard-info { flex: 1; }
.leaderboard-name     { font-size: 14px; font-weight: 600; color: var(--ink); }
.leaderboard-chapters { font-size: 12px; color: var(--ink-4); }
.leaderboard-points   { font-family: var(--font-heading); font-size: 15px; font-weight: 700; color: var(--primary); }

/* Points note (below leaderboard) */
.points-note {
  padding: 16px 20px;
  background: var(--primary-ultra);
  border: 1px solid rgba(126,126,255,0.14);
  border-radius: var(--radius-lg);
  font-size: 14px; color: var(--primary);
  font-weight: 600; line-height: 1.6;
  text-align: center;
}

/* ----------------------------------------
   TESTIMONIALS
---------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--ink-7);
  border-radius: var(--radius-card);
  padding: 28px;
  display: flex; flex-direction: column; gap: 20px;
  transition: box-shadow var(--transition-slow), transform var(--transition-slow);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.testimonial-quote {
  font-size: 15px; line-height: 1.65; color: var(--ink-2);
  font-style: italic; letter-spacing: -0.005em; flex: 1;
  padding-top: 6px;
}
.testimonial-quote::before {
  content: '\201C';
  font-family: var(--font-heading);
  font-size: 56px; font-weight: 800;
  line-height: 0.6;
  color: var(--primary-light);
  display: block; margin-bottom: 10px; font-style: normal;
}
.testimonial-author {
  display: flex; align-items: center; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--ink-8);
}
.testimonial-avatar {
  width: 36px; height: 36px; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary), #a5b4fc);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading); font-size: 14px; font-weight: 700;
  color: var(--white); flex-shrink: 0;
}
.testimonial-name  { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.testimonial-since { font-size: 12px; color: var(--ink-4); }

/* ----------------------------------------
   BLOG CARDS
---------------------------------------- */
.blog-card {
  background: var(--white);
  border: 1px solid var(--ink-7);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: transform var(--transition-slow), box-shadow var(--transition-slow);
  display: block;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-cover { height: 190px; background: var(--paper); position: relative; overflow: hidden; }
.blog-cover-img { width: 100%; height: 100%; object-fit: cover; }
.blog-cover-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.bc-habits   { background: linear-gradient(145deg, #1a2e50, #3474FF); }
.bc-culture  { background: linear-gradient(145deg, #2a1465, #7c3aed); }
.bc-fiction  { background: linear-gradient(145deg, #0a2040, #0c4a6e); }
.bc-mystery  { background: linear-gradient(145deg, #1a1810, #363220); }
.bc-ai       { background: linear-gradient(145deg, #0c1428, #1a2e50); }
.bc-wellness { background: linear-gradient(145deg, #062a14, #059669); }
.blog-cover-text {
  font-family: var(--font-heading); font-size: 26px; font-weight: 800;
  color: rgba(255,255,255,0.15); text-align: center; padding: 16px; user-select: none;
}
.blog-body { padding: 20px 22px 22px; }
.blog-tag-row { margin-bottom: 10px; }
.blog-title {
  font-family: var(--font-heading); font-size: 17px; font-weight: 700;
  color: var(--ink); line-height: 1.3; letter-spacing: -0.02em;
  margin-bottom: 8px; transition: color var(--transition);
}
.blog-card:hover .blog-title { color: var(--primary); }
.blog-excerpt {
  font-size: 14px; color: var(--ink-4); line-height: 1.65;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; margin-bottom: 14px;
}
.blog-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-5); font-weight: 500; }
.blog-meta-dot { width: 3px; height: 3px; border-radius: var(--radius-full); background: var(--ink-6); }

/* ----------------------------------------
   CTA BANNER — light, clean (no dark bg)
---------------------------------------- */
.cta-banner {
  background: var(--primary-ultra);
  border-top: 1px solid rgba(126,126,255,0.14);
  border-bottom: 1px solid rgba(126,126,255,0.14);
  position: relative;
  overflow: hidden;
  padding: 96px 0;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(126,126,255,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.cta-banner-content {
  position: relative; z-index: 1;
  text-align: center;
  max-width: 600px; margin: 0 auto; padding: 0 32px;
}
.cta-banner h2  { color: var(--ink); margin-bottom: 14px; }
.cta-banner p   { color: var(--ink-4); font-size: 17px; margin-bottom: 36px; line-height: 1.65; }
.cta-banner .eyebrow { color: var(--primary); }
.cta-banner-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; flex-wrap: wrap;
}
.cta-banner-note { margin-top: 16px; font-size: 13px; color: var(--ink-5); }

/* ----------------------------------------
   FOOTER — pure black
---------------------------------------- */
.footer {
  background: #000000;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 64px 0 0;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 32px; }
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}
.footer-logo { display: block; margin-bottom: 16px; color: var(--white); }
.footer-logo svg { height: 24px; width: auto; }
.footer-brand-name {
  font-family: var(--font-heading); font-size: 22px; font-weight: 800;
  color: var(--white); letter-spacing: -0.04em; margin-bottom: 12px;
}
.footer-brand-name span { color: var(--primary); }
.footer-tagline { font-size: 14px; color: rgba(255,255,255,0.55); line-height: 1.7; margin-bottom: 24px; max-width: 270px; }
.footer-cta-mini {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--white);
  color: var(--ink);
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600;
  transition: background var(--transition), opacity var(--transition);
}
.footer-cta-mini:hover { opacity: 0.88; }
.footer-col-title {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.50);
  text-transform: uppercase; letter-spacing: 0.09em;
  margin-bottom: 16px; font-family: var(--font-body);
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-link { font-size: 14px; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-link:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.45); }
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { font-size: 13px; color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-legal a:hover { color: var(--white); }

/* ----------------------------------------
   PAGE HERO — inner pages, light/clean
---------------------------------------- */
.page-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--ink-7);
  padding: calc(var(--nav-height) + 56px) 0 60px;
  position: relative;
}
.page-hero-content {
  position: relative; z-index: 1;
  max-width: var(--max-width); margin: 0 auto; padding: 0 32px;
}
.page-hero h1 { color: var(--ink); margin-bottom: 16px; }
.page-hero p  { font-size: 18px; color: var(--ink-4); max-width: 540px; }

/* Subtle left accent stripe per genre */
.page-hero.genre-sci-fi    { border-top: 3px solid #1d4ed8; }
.page-hero.genre-fantasy   { border-top: 3px solid #6d28d9; }
.page-hero.genre-drama     { border-top: 3px solid #4b5563; }
.page-hero.genre-thriller  { border-top: 3px solid #92400e; }
.page-hero.genre-horror    { border-top: 3px solid #991b1b; }
.page-hero.genre-romance   { border-top: 3px solid #9d174d; }
.page-hero.genre-comedy    { border-top: 3px solid #166534; }
.page-hero.genre-mystery   { border-top: 3px solid #0369a1; }
.page-hero.genre-adventure { border-top: 3px solid #065f46; }
.page-hero.genre-crime     { border-top: 3px solid #475569; }
.page-hero.use-case-bedtime,
.page-hero.use-case-kids,
.page-hero.use-case-english,
.page-hero.use-case-commute { border-top: 3px solid var(--primary); }

/* ----------------------------------------
   BG UTILITIES
---------------------------------------- */
.bg-white { background: var(--white); }
.bg-gray  { background: var(--paper); }
.bg-dark  { background: #000000; }
.border-top { border-top: 1px solid var(--ink-7); }
.divider { height: 1px; background: var(--ink-8); }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-4); margin-bottom: 20px;
}
.breadcrumb a { color: var(--ink-4); transition: color var(--transition); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--ink-6); }
.breadcrumb .current { color: var(--ink-2); font-weight: 500; }

/* ----------------------------------------
   FAQ
---------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { border: 1px solid var(--ink-7); border-radius: var(--radius-md); overflow: hidden; transition: border-color var(--transition); }
.faq-item.open { border-color: var(--primary); }
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
  font-family: var(--font-heading); font-size: 16px; font-weight: 600;
  color: var(--ink); text-align: left; gap: 16px;
  cursor: pointer; background: var(--white); transition: background var(--transition);
}
.faq-question:hover { background: var(--paper); }
.faq-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--ink-5); transition: transform var(--transition), color var(--transition); }
.faq-item.open .faq-icon { transform: rotate(45deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height var(--transition-slow); }
.faq-answer-inner { padding: 0 20px 18px; font-size: 15px; color: var(--ink-4); line-height: 1.65; }

/* ----------------------------------------
   BENEFIT LIST
---------------------------------------- */
.benefit-list { display: flex; flex-direction: column; gap: 16px; }
.benefit-item { display: flex; align-items: flex-start; gap: 14px; }
.benefit-check {
  width: 22px; height: 22px; border-radius: var(--radius-full);
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
}
.benefit-check svg { width: 11px; height: 11px; color: var(--primary); }
.benefit-item h4 { font-size: 15px; margin-bottom: 2px; }
.benefit-item p  { font-size: 14px; color: var(--ink-4); margin: 0; }

/* ----------------------------------------
   GENRE RELATED PILLS
---------------------------------------- */
.related-genres { display: flex; flex-wrap: wrap; gap: 10px; }
.related-genre-pill {
  padding: 8px 18px; border: 1px solid var(--ink-7); border-radius: var(--radius-full);
  font-size: 14px; font-weight: 500; color: var(--ink-2); transition: all var(--transition);
}
.related-genre-pill:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-ultra); }

/* ----------------------------------------
   LEGAL PAGES
---------------------------------------- */
.legal-hero {
  background: var(--paper);
  border-bottom: 1px solid var(--ink-7);
  padding: calc(var(--nav-height) + 48px) 0 48px;
}
.legal-hero h1 { font-size: clamp(32px, 4vw, 52px); margin-bottom: 12px; }
.legal-hero p  { font-size: 15px; color: var(--ink-4); }
.legal-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 32px 96px;
}
.legal-content h2 { font-size: 22px; margin: 48px 0 14px; padding-top: 0; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p  { font-size: 15px; line-height: 1.75; color: var(--ink-3); margin-bottom: 16px; }
.legal-content ul { margin: 0 0 16px 24px; list-style: disc; }
.legal-content ul li { font-size: 15px; line-height: 1.75; color: var(--ink-3); margin-bottom: 6px; }
.legal-content a  { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
.legal-content .legal-updated {
  display: inline-block;
  background: var(--primary-light); color: var(--primary);
  font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: var(--radius-full);
  margin-bottom: 32px;
}

/* ----------------------------------------
   RESPONSIVE
---------------------------------------- */
@media (max-width: 1024px) {
  .footer-top    { grid-template-columns: 1fr 1fr; gap: 32px; }
  .gamification-grid { grid-template-columns: 1fr; }
  .grid-4        { grid-template-columns: repeat(2, 1fr); }
  .grid-5        { grid-template-columns: repeat(3, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; gap: 16px; }
  .stats-inner   { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
  :root { --nav-height: 62px; }
  .nav-menu { display: none; }
  .nav-right .btn { display: none; }
  .nav-right .nav-login { display: none; }
  .hamburger { display: flex; }
  .container { padding: 0 20px; }

  .hero { padding: calc(var(--nav-height) + 52px) 0 64px; }
  .hero h1 { font-size: clamp(40px, 10vw, 56px); }
  .hero-sub { font-size: 16px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { text-align: center; justify-content: center; }
  .hero-trust { gap: 8px; }

  /* Mobile: 2-col story grid so cards aren't full-width giants */
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 32px; }
  .steps-grid::before { display: none; }
  .section { padding: 72px 0; }
  .section-hero-offset { padding-top: 48px; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .gamification-center { max-width: 100%; }
  .cta-banner-actions { flex-direction: column; align-items: stretch; }
  .cta-banner-actions .btn { text-align: center; justify-content: center; }
  .hero-cards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .page-hero { padding: calc(var(--nav-height) + 36px) 0 44px; }
  .legal-content { padding: 48px 20px 72px; }
  /* Compact story card body on mobile */
  .story-title { font-size: 13px; }
  .story-season { font-size: 10px; }
  .story-cover { margin-bottom: 8px; }
}

@media (max-width: 480px) {
  .hero-cards { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
  .stat-item { padding: 8px 12px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
