/* ============================================
   Parenting.GodPal.ch — Design System
   Aesthetic: Warm, Cheerful, Modern Light
   Fonts: Fraunces (display) + Plus Jakarta Sans (body)
   Palette: Cream base, coral/rose accents, sage greens
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400&display=swap');

:root {
  /* Core Palette — warm cream light theme */
  --bg-base: #fdf8f3;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #fff5ee;
  --surface: #fef6ef;

  /* Borders */
  --border-subtle: rgba(180, 120, 80, 0.10);
  --border-default: rgba(180, 120, 80, 0.18);
  --border-strong: rgba(180, 120, 80, 0.35);

  /* Text */
  --text-primary: #1c1410;
  --text-secondary: #6b5344;
  --text-muted: #a88c7a;
  --text-dim: #c9b5a8;

  /* Primary Accent — Coral Rose */
  --accent: #f4614c;
  --accent-hover: #e04535;
  --accent-glow: rgba(244, 97, 76, 0.15);
  --accent-dim: rgba(244, 97, 76, 0.10);
  --accent-light: #fff0ee;

  /* Secondary — Warm Sage */
  --sage: #5a9e78;
  --sage-light: #edf7f1;
  --sage-hover: #3d8260;

  /* Tertiary — Soft Gold */
  --gold: #f5a623;
  --gold-light: #fff8ec;

  /* Lilac */
  --lilac: #9b7fc8;
  --lilac-light: #f4eeff;

  /* Sky */
  --sky: #4ba8d8;
  --sky-light: #edf6fd;

  /* Complexity Colors */
  --c-foundation: #5a9e78;
  --c-depth: #f5a623;
  --c-authority: #9b7fc8;

  /* Category Colors */
  --cat-baby-products: #f4614c;
  --cat-parenting: #f5a623;
  --cat-family-activities: #5a9e78;
  --cat-schooling: #4ba8d8;
  --cat-wellness: #9b7fc8;
  --cat-nutrition: #e8a04e;
  --cat-finances: #2dd4bf;
  --cat-special: #fb7185;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 5rem;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 4px rgba(100, 60, 30, 0.08);
  --shadow-md: 0 4px 20px rgba(100, 60, 30, 0.10);
  --shadow-lg: 0 12px 48px rgba(100, 60, 30, 0.13);
  --shadow-colored: 0 8px 32px rgba(244, 97, 76, 0.15);

  /* Transitions */
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);

  /* Navbar height */
  --navbar-h: 106px;  /* top bar ~58px + category links row ~48px */
}

/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* Decorative background texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 50% at 0% 0%, rgba(244,97,76,0.05) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 100% 100%, rgba(90,158,120,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body > * { position: relative; z-index: 1; }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}
.container--narrow {
  max-width: 760px;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253, 248, 243, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.navbar--scrolled {
  background: rgba(253, 248, 243, 0.98);
  border-bottom-color: var(--border-default);
  box-shadow: var(--shadow-sm);
}
.navbar__inner {
  min-height: var(--navbar-h);
  display: flex;
  align-items: center;
  flex-wrap: wrap;          /* allows links row to wrap below */
  padding: 10px 0 0;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  padding-bottom: 10px;
}
.logo-icon {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8f80 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(244,97,76,0.3);
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--text-primary);
}
.logo-dot { color: var(--accent); }
.logo-tld { color: var(--text-muted); font-size: 0.88em; font-weight: 400; }

/* Category links — always a full-width second row, never clipped */
.navbar__links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px;
  width: 100%;
  order: 3;                 /* sits below logo + actions */
  padding: 4px 0 8px;
  border-top: 1px solid var(--border-subtle);
  overflow: visible;
}
.nav-link {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  transition: var(--transition);
  white-space: nowrap;
}
.nav-link:hover {
  background: color-mix(in srgb, var(--cat-color, var(--accent)) 14%, transparent);
  color: var(--text-primary);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;        /* push to right, same row as logo */
  padding-bottom: 10px;
}
.nav-icon-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-icon-btn:hover { background: var(--accent-dim); color: var(--accent); }

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
}
.nav-btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(244,97,76,0.30);
}
.nav-btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(244,97,76,0.35);
}
.nav-btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
}
.nav-btn--ghost:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.nav-score-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-default);
  background: var(--bg-card);
  transition: var(--transition);
}
.nav-score-badge:hover { border-color: var(--accent); }
.nav-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.score-ring-sm {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-display);
}

/* Mobile menu */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  padding: var(--space-md) 0 var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mobile-nav-link {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.mobile-nav-link:hover { background: var(--accent-dim); color: var(--accent); }
.mobile-nav-link--cta { background: var(--accent); color: white; text-align: center; margin-top: var(--space-sm); }
.mobile-nav-link--cta:hover { background: var(--accent-hover); color: white; }
.mobile-menu__divider { height: 1px; background: var(--border-subtle); margin: var(--space-sm) 0; }

/* Google icon */
.google-icon { flex-shrink: 0; }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(244,97,76,0.30);
}
.btn--primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244,97,76,0.40);
}
.btn--ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1.5px solid var(--border-default);
}
.btn--ghost:hover {
  background: var(--bg-card);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn--sage {
  background: var(--sage);
  color: white;
}
.btn--sage:hover { background: var(--sage-hover); }
.btn--lg { padding: 14px 32px; font-size: 1rem; }
.btn--sm { padding: 8px 16px; font-size: 0.8125rem; }

/* ============================================
   AD SLOTS
   Ads are placed out-of-flow inside fixed-size
   wrappers. If Brave (or any blocker) removes
   the <ins> child, the wrapper keeps its
   dimensions and the surrounding layout is
   completely unaffected.
   ============================================ */
.landing-ad-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
.ad-rail { display: none; }

/* The wrapper always holds space — never collapses */
.ad-slot {
  display: block;
  position: relative;          /* establishes containing block for the ad */
  width: 100%;
  min-width: 100px;
  min-height: 100px;
  overflow: hidden;            /* clip any oversized ad creative */
  border-radius: var(--radius-md);
}

/* The actual ad element (ins.adsbygoogle or any direct child)
   is taken out of flow so its presence/absence is irrelevant */
.ad-slot > * {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}

/* Optional visual placeholder shown while/if ad is empty */
.ad-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.02);
  border: 1px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  pointer-events: none;
  z-index: 0;
}

.ad-slot--mobile-inline {
  margin: var(--space-xl) auto;
  max-width: 600px;
  height: 100px;               /* explicit height so wrapper never collapses */
}

.ad-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

@media (min-width: 1400px) {
  .landing-ad-layout {
    grid-template-columns: 140px 1fr 140px;
    gap: var(--space-lg);
    align-items: start;
  }
  .ad-rail {
    display: block;
    position: sticky;
    top: calc(var(--navbar-h) + 20px);
    /* Fixed dimensions — layout never shifts when ad is blocked */
    width: 140px;
    align-self: flex-start;
  }
  .ad-slot--vertical {
    height: 600px;             /* explicit height, not min-height */
    min-height: unset;
  }
  .ad-slot--sticky {
    position: sticky;
    top: calc(var(--navbar-h) + 20px);
  }
  .ad-slot--mobile-inline { display: none; }
  .landing-main { min-width: 0; }
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--accent-light);
  border: 1px solid rgba(244,97,76,0.2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-lg);
  animation: fadeInDown 0.6s ease both;
}
.pulse-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.6; }
}
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.7s ease 0.1s both;
}
.hero__title em {
  font-style: italic;
  color: var(--accent);
}

.hero__sub {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  max-width: 480px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
  animation: fadeInUp 0.7s ease 0.2s both;
}
.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.7s ease 0.3s both;
}
.hero__score-preview {
  display: inline-flex;
  align-items: center;
  gap: var(--space-md);
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  animation: fadeInUp 0.7s ease 0.4s both;
}
.score-mini-ring {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}
.score-mini-ring svg { width: 44px; height: 44px; }
.score-mini-ring span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--accent);
}
.score-label { font-size: 0.875rem; color: var(--text-secondary); }
.score-label strong { color: var(--text-primary); }

/* Hero Visual */
.hero__visual {
  position: relative;
  height: 420px;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero__orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.25;
}
.orb--coral { width: 240px; height: 240px; background: var(--accent); top: 10%; left: 5%; animation: float1 8s ease-in-out infinite; }
.orb--sage { width: 180px; height: 180px; background: var(--sage); bottom: 10%; right: 10%; animation: float2 10s ease-in-out infinite; }
.orb--gold { width: 150px; height: 150px; background: var(--gold); top: 50%; left: 40%; animation: float3 9s ease-in-out infinite; }

/* backwards compat — keep original orb color names */
.orb--green { width: 240px; height: 240px; background: var(--sage); top: 10%; left: 5%; animation: float1 8s ease-in-out infinite; }
.orb--blue { width: 180px; height: 180px; background: var(--sky); bottom: 10%; right: 10%; animation: float2 10s ease-in-out infinite; }
.orb--orange { width: 150px; height: 150px; background: var(--gold); top: 50%; left: 40%; animation: float3 9s ease-in-out infinite; }

@keyframes float1 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(15px,-20px); } }
@keyframes float2 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-12px,18px); } }
@keyframes float3 { 0%,100% { transform: translate(0,0); } 50% { transform: translate(10px,-10px); } }

.hero__card-stack {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 240px;
}
.hero__stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.hero__stat-card:hover { transform: translateX(6px); box-shadow: var(--shadow-lg); }
.hero__stat-card--mid { margin-left: 24px; }
.hero__stat-card--top { margin-left: 48px; }
.stat-card__label { font-size: 0.75rem; color: var(--text-muted); margin-bottom: 4px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.stat-card__value { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; }

/* ============================================
   VALUE PROPS
   ============================================ */
.value-props { padding: var(--space-2xl) 0; }
.value-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--sage));
  opacity: 0;
  transition: opacity 0.2s;
}
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value-card:hover::before { opacity: 1; }
.value-icon { font-size: 2rem; margin-bottom: var(--space-md); }
.value-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}
.value-card p { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.6; }

/* ============================================
   FEATURED ARTICLE
   ============================================ */
.featured-section { padding: var(--space-2xl) 0; }
.section-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}
.section-label {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.section-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--text-primary);
}
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-left: auto;
}
.cat-filter-btn {
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--cat-color) 12%, transparent);
  color: var(--cat-color, var(--accent));
  border: 1px solid color-mix(in srgb, var(--cat-color) 25%, transparent);
  transition: var(--transition);
}
.cat-filter-btn:hover {
  background: color-mix(in srgb, var(--cat-color) 20%, transparent);
}

.featured-article {
  display: block;
  background: var(--bg-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.featured-article::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--gold), var(--sage));
}
.featured-article:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.featured-article__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.featured-article__title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}
.featured-article__tldr {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  background: var(--sage-light);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: var(--space-xl);
}
.tldr-label {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  flex-shrink: 0;
  margin-top: 2px;
}
.featured-article__tldr p { font-size: 0.9375rem; color: var(--text-secondary); }
.featured-article__excerpt {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}
.featured-article__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9375rem;
}

/* ============================================
   ARTICLE GRID
   ============================================ */
.articles-section { padding: var(--space-xl) 0 var(--space-3xl); }
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

/* Article Card */
.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
}
.article-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-default);
}
.article-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-xl);
}
.article-card__meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}
.article-card__title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  transition: color 0.2s;
}
.article-card:hover .article-card__title { color: var(--accent); }
.article-card__title--lg { font-size: 1.4rem; }
.article-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--space-lg);
}
.article-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-subtle);
}
.article-card__date { font-size: 0.8rem; color: var(--text-muted); }
.article-card__stats { display: flex; align-items: center; gap: 12px; }
.stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Badges */
.complexity-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: color-mix(in srgb, var(--complexity-color) 14%, transparent);
  color: var(--complexity-color, var(--accent));
  border: 1px solid color-mix(in srgb, var(--complexity-color) 30%, transparent);
}
.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--cat-color) 12%, transparent);
  color: var(--cat-color, var(--sage));
  border: 1px solid color-mix(in srgb, var(--cat-color) 25%, transparent);
}
.reading-time {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}
.phase-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  background: var(--lilac-light);
  color: var(--lilac);
  border: 1px solid rgba(155,127,200,0.25);
}

/* ============================================
   SCORE CTA SECTION
   ============================================ */
.score-cta-section { padding: var(--space-2xl) 0; }
.score-cta {
  background: linear-gradient(135deg, #fff8f6 0%, #f0fdf5 100%);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-3xl);
  align-items: center;
  overflow: hidden;
  position: relative;
}
.score-cta::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(244,97,76,0.08) 0%, transparent 70%);
}
.score-cta__visual { display: flex; justify-content: center; align-items: center; }
.big-score-ring { position: relative; width: 180px; height: 180px; }
.big-score-ring svg { filter: drop-shadow(0 8px 24px rgba(244,97,76,0.20)); }
.big-score-ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.big-score {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.big-score-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.score-ring-anim {
  stroke-dasharray: 0 327;
  animation: scoreRing 2s cubic-bezier(0.4, 0, 0.2, 1) 0.5s forwards;
}
@keyframes scoreRing {
  to { stroke-dasharray: 65 327; }
}
.score-cta__content h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}
.score-cta__content p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}
.score-cta__benefits {
  list-style: none;
  margin-bottom: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.score-cta__benefits li {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.score-cta__benefits li::before {
  content: '✓';
  width: 20px;
  height: 20px;
  background: var(--sage-light);
  color: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}
.score-cta__note { font-size: 0.8125rem; color: var(--text-muted); margin-top: var(--space-md); }

/* ============================================
   NEWSLETTER
   ============================================ */
.newsletter-section { padding: var(--space-xl) 0 var(--space-3xl); }
.newsletter-box {
  background: var(--accent);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.newsletter-box::before {
  content: '';
  position: absolute;
  top: -40%; left: -10%;
  width: 60%;
  height: 200%;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}
.newsletter-box h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  position: relative;
}
.newsletter-box p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
  position: relative;
}
.newsletter-box .btn--primary {
  background: white;
  color: var(--accent);
  position: relative;
}
.newsletter-box .btn--primary:hover {
  background: rgba(255,255,255,0.92);
  color: var(--accent-hover);
}

/* ============================================
   CATEGORY PAGE
   ============================================ */
.category-page { padding: var(--space-2xl) 0 var(--space-3xl); }
.category-header {
  padding: var(--space-2xl) 0;
  margin-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-subtle);
}
.category-header h1 {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.category-header p { color: var(--text-secondary); font-size: 1.05rem; }
.empty-state {
  color: var(--text-muted);
  text-align: center;
  padding: var(--space-3xl);
  grid-column: 1 / -1;
}

/* ============================================
   SEARCH PAGE
   ============================================ */
.search-page { padding: var(--space-2xl) 0 var(--space-3xl); }
.search-header { margin-bottom: var(--space-xl); }
.search-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
}
.search-form { display: flex; gap: var(--space-md); }
.search-input {
  flex: 1;
  padding: 12px 20px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-full);
  background: var(--bg-card);
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition);
}
.search-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.search-results { margin-top: var(--space-xl); }
.search-results h2 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: var(--space-lg); color: var(--text-secondary); }
.search-list { display: flex; flex-direction: column; gap: var(--space-md); }
.search-result-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-xl);
  transition: var(--transition);
}
.search-result-item:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); }
.search-result-item h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.search-result-item h3 a { color: var(--text-primary); transition: color 0.2s; }
.search-result-item h3 a:hover { color: var(--accent); }
.search-result-item p { font-size: 0.875rem; color: var(--text-secondary); }

/* ============================================
   POST DETAIL
   ============================================ */
.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2xl);
}
@media (min-width: 1100px) {
  .post-layout {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
}

.post-header { padding: var(--space-2xl) 0 var(--space-lg); }
.post-header__meta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.post-header__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: var(--space-lg);
}
.post-header__excerpt {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
  line-height: 1.7;
  max-width: 680px;
}
.post-tldr {
  background: var(--sage-light);
  border-left: 3px solid var(--sage);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 20px;
  margin-bottom: var(--space-xl);
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.post-tldr .tldr-label { color: var(--sage); flex-shrink: 0; margin-top: 2px; }
.post-tldr p { font-size: 0.9375rem; color: var(--text-secondary); }
.post-header__info {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.875rem;
  color: var(--text-muted);
}
.post-header__info strong { color: var(--text-secondary); }
.post-header__info .divider { width: 1px; height: 16px; background: var(--border-default); }
.post-share-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin: var(--space-lg) 0;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  background: var(--bg-card);
}
.share-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.upvote-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  transition: var(--transition);
  border: 1px solid var(--border-default);
  color: var(--text-secondary);
  background: var(--bg-card);
  cursor: pointer;
}
.upvote-btn:hover, .upvote-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }

/* Post content typography */
.post-content {
  color: var(--text-primary);
  font-size: 1.0625rem;
  line-height: 1.8;
}
.post-content h1, .post-content h2, .post-content h3, .post-content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  margin: 2.5rem 0 1rem;
  color: var(--text-primary);
}
.post-content h2 { font-size: 1.65rem; }
.post-content h3 { font-size: 1.35rem; }
.post-content h4 { font-size: 1.1rem; }
.post-content p { margin-bottom: 1.25rem; }
.post-content strong { color: var(--text-primary); font-weight: 600; }
.post-content em { color: var(--text-secondary); }
.post-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-content a:hover { color: var(--accent-hover); }
.post-content ul, .post-content ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.post-content li { color: var(--text-secondary); }
.post-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  margin: 1.5rem 0;
  background: var(--accent-light);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-style: italic;
}
.post-content code {
  background: var(--surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
  font-family: 'Courier New', monospace;
}
.post-content pre {
  background: var(--text-primary);
  color: var(--bg-base);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  margin: 1.5rem 0;
}
.post-content pre code { background: none; padding: 0; color: inherit; }
.post-content img { border-radius: var(--radius-lg); margin: var(--space-xl) 0; }
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
}
.post-content th, .post-content td {
  padding: 10px 14px;
  text-align: left;
  border: 1px solid var(--border-default);
}
.post-content th { background: var(--surface); font-weight: 600; }
.post-content tr:nth-child(even) td { background: var(--bg-base); }
.post-content hr { border: none; border-top: 1px solid var(--border-subtle); margin: 2rem 0; }

/* Post sidebar */
.post-sidebar { position: sticky; top: calc(var(--navbar-h) + 20px); }
.sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-lg);
}
.sidebar-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}
.toc-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.toc-list li a {
  font-size: 0.8125rem;
  color: var(--text-muted);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  display: block;
  transition: var(--transition);
}
.toc-list li a:hover, .toc-list li a.active { color: var(--accent); background: var(--accent-dim); }
.related-list { display: flex; flex-direction: column; gap: var(--space-md); }
.related-item h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 4px; color: var(--text-primary); line-height: 1.35; }
.related-item h4:hover { color: var(--accent); }
.related-item span { font-size: 0.78rem; color: var(--text-muted); }

/* ============================================
   SCORING / DASHBOARD
   ============================================ */
.questionnaire-page { padding: var(--space-2xl) 0 var(--space-3xl); max-width: 720px; margin: 0 auto; }
.questionnaire-page h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}
.questionnaire-page p.lead { font-size: 1.0625rem; color: var(--text-secondary); margin-bottom: var(--space-2xl); }

.progress-bar {
  height: 4px;
  background: var(--border-subtle);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-2xl);
  overflow: hidden;
}
.progress-bar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  border-radius: var(--radius-full);
  transition: width 0.4s ease;
}

.question-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  margin-bottom: var(--space-lg);
  display: none;
  animation: fadeInUp 0.4s ease both;
}
.question-card.active { display: block; }
.question-num {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}
.question-card h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: var(--space-xl); color: var(--text-primary); }
.options-grid { display: flex; flex-direction: column; gap: var(--space-sm); }
.option-btn {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-base);
  text-align: left;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.option-btn:hover { border-color: var(--accent); color: var(--text-primary); background: var(--accent-light); }
.option-btn.selected { border-color: var(--accent); background: var(--accent-light); color: var(--accent); font-weight: 600; }
.option-indicator {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--border-default);
  flex-shrink: 0;
  transition: var(--transition);
}
.option-btn.selected .option-indicator { border-color: var(--accent); background: var(--accent); }
.option-text { flex: 1; }

.q-nav { display: flex; align-items: center; justify-content: space-between; margin-top: var(--space-xl); }

/* Email step */
.email-step {
  background: var(--bg-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: none;
  animation: fadeInUp 0.4s ease both;
}
.email-step.active { display: block; }
.email-step h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: var(--space-sm); }
.email-step p { color: var(--text-secondary); margin-bottom: var(--space-xl); }
.email-field { display: flex; gap: var(--space-md); }
.email-input {
  flex: 1;
  padding: 12px 18px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-full);
  background: var(--bg-base);
  font-size: 1rem;
  color: var(--text-primary);
  transition: var(--transition);
}
.email-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* Score result */
.score-result {
  text-align: center;
  padding: var(--space-3xl) 0;
  animation: fadeInUp 0.6s ease both;
  display: none;
}
.score-result.active { display: block; }
.score-result__ring { width: 200px; height: 200px; margin: 0 auto var(--space-xl); position: relative; }
.score-result__ring svg { width: 200px; height: 200px; }
.score-result__ring__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-result__number { font-family: var(--font-display); font-size: 3.5rem; font-weight: 700; color: var(--accent); line-height: 1; }
.score-result__label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.score-result h2 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: var(--space-md); }
.score-result p { color: var(--text-secondary); font-size: 1.0625rem; margin-bottom: var(--space-xl); }

/* Dashboard */
.dashboard-page { padding: var(--space-xl) 0 var(--space-3xl); }
.dashboard-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--space-xl);
  align-items: start;
}
.score-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  text-align: center;
}
.score-card h2 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: var(--space-lg); }
.score-ring-lg {
  width: 160px; height: 160px;
  margin: 0 auto var(--space-md);
  position: relative;
}
.score-ring-lg svg { width: 160px; height: 160px; }
.score-ring-lg__center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.score-number-lg { font-family: var(--font-display); font-size: 2.8rem; font-weight: 700; color: var(--accent); line-height: 1; }
.score-label-lg { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.score-category { display: inline-flex; padding: 4px 12px; border-radius: var(--radius-full); font-size: 0.8rem; font-weight: 700; margin: var(--space-sm) 0; }
.dimension-bars { margin-top: var(--space-lg); text-align: left; }
.dimension-bar { margin-bottom: var(--space-md); }
.dimension-bar__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.dimension-bar__name { font-size: 0.78rem; color: var(--text-secondary); }
.dimension-bar__val { font-size: 0.78rem; font-weight: 700; color: var(--text-primary); }
.dimension-bar__track { height: 6px; background: var(--border-subtle); border-radius: var(--radius-full); overflow: hidden; }
.dimension-bar__fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--gold)); border-radius: var(--radius-full); transition: width 1s ease; }
.dashboard-main > * + * { margin-top: var(--space-lg); }
.dashboard-section-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; margin-bottom: var(--space-lg); color: var(--text-primary); }
.chart-container { background: var(--bg-card); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); padding: var(--space-xl); }
.reading-history, .recommended-posts {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}
.history-item, .recommend-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-subtle);
}
.history-item:last-child, .recommend-item:last-child { border-bottom: none; }
.history-item__title, .recommend-item__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 0.2s;
}
.history-item__title:hover, .recommend-item__title:hover { color: var(--accent); }
.history-item__meta, .recommend-item__meta { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
  margin-top: var(--space-3xl);
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 2fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}
.footer__logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: var(--space-md);
}
.footer__tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-lg);
}
.footer__social { display: flex; gap: var(--space-sm); }
.social-link {
  width: 36px; height: 36px;
  background: var(--surface);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}
.social-link:hover { background: var(--accent-light); color: var(--accent); border-color: rgba(244,97,76,0.3); }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__heading {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.footer__link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}
.footer__link:hover { color: var(--accent); }
.footer__disclaimer {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.footer__disclaimer--small { font-size: 0.75rem; }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* ============================================
   FEEDBACK MODAL & FAB
   ============================================ */
.feedback-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(244,97,76,0.40);
  transition: var(--transition);
  z-index: 50;
}
.feedback-fab:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(244,97,76,0.50); }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 20, 16, 0.5);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.3s ease both;
}
.modal__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-lg); }
.modal__title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.modal__close { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); color: var(--text-muted); transition: var(--transition); }
.modal__close:hover { background: var(--surface); color: var(--text-primary); }
.form-group { margin-bottom: var(--space-lg); }
.form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; color: var(--text-secondary); }
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-md);
  background: var(--bg-base);
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: var(--transition);
  resize: vertical;
}
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }

/* ============================================
   LOGIN
   ============================================ */
.login-page {
  min-height: calc(100vh - var(--navbar-h));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2xl);
}
.login-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.login-card h1 { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; margin-bottom: var(--space-sm); }
.login-card p { color: var(--text-secondary); margin-bottom: var(--space-xl); }
.btn--google {
  width: 100%;
  padding: 12px 24px;
  background: var(--bg-card);
  border: 1.5px solid var(--border-default);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  transition: var(--transition);
  cursor: pointer;
}
.btn--google:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); background: var(--accent-light); }

/* ============================================
   DIGEST
   ============================================ */
.digest-page { padding: var(--space-2xl) 0 var(--space-3xl); }
.digest-page h1 { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin-bottom: var(--space-xl); }
.digest-list { display: flex; flex-direction: column; gap: var(--space-lg); }
.digest-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: var(--transition);
}
.digest-item:hover { border-color: var(--border-default); box-shadow: var(--shadow-sm); }
.digest-item h3 { font-family: var(--font-display); font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.digest-item__meta { font-size: 0.8125rem; color: var(--text-muted); display: flex; gap: var(--space-md); flex-wrap: wrap; margin-bottom: var(--space-md); }
.digest-item__content { font-size: 0.9rem; color: var(--text-secondary); }
.digest-item__content a { color: var(--accent); }
.digest-generate-cta {
  background: var(--sage-light);
  border: 1.5px dashed var(--sage);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  margin-bottom: var(--space-xl);
}
.digest-generate-cta h3 { font-family: var(--font-display); font-size: 1.3rem; margin-bottom: var(--space-sm); }
.digest-generate-cta p { color: var(--text-secondary); margin-bottom: var(--space-lg); }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}
.page-btn {
  min-width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border-default);
  transition: var(--transition);
  padding: 0 10px;
}
.page-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-light); }
.page-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* ============================================
   UTILITIES
   ============================================ */
[x-cloak] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-accent { color: var(--accent); }
.text-sage { color: var(--sage); }

/* Toast */
.toast {
  position: fixed;
  bottom: 80px;
  right: 24px;
  background: var(--text-primary);
  color: var(--bg-base);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  z-index: 300;
  animation: fadeInUp 0.3s ease both;
  transition: opacity 0.3s;
}
.toast.hiding { opacity: 0; }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1100px) {
  .value-grid { grid-template-columns: repeat(2, 1fr); }
  .score-cta { grid-template-columns: 1fr; text-align: center; }
  .score-cta__visual { justify-content: center; }
  .score-cta__benefits li { justify-content: center; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .dashboard-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --navbar-h: 58px; }
  .navbar__inner { padding: 0; flex-wrap: nowrap; min-height: var(--navbar-h); }
  .navbar__logo { padding-bottom: 0; }
  .navbar__actions { margin-left: auto; gap: var(--space-sm); padding-bottom: 0; }
  .navbar__links { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-btn--primary { display: none; }
  .nav-btn--ghost { display: none; }
  .hero .container { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
  .hero__title { font-size: 2rem; }
  .articles-grid { grid-template-columns: 1fr; }
  .value-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: var(--space-sm); text-align: center; }
  .post-layout { grid-template-columns: 1fr; }
  .post-sidebar { display: none; }
  .email-field { flex-direction: column; }
  .search-form { flex-direction: column; }
  .post-main { min-width: 0; overflow: hidden; }
  .container { padding: 0 var(--space-md); }
  .post-header__title { font-size: clamp(1.4rem, 6vw, 1.8rem); }
}
