/* =====================================================
   AFG PUBLISHING SITE — SHARED v8 DARK SYSTEM
   Inherits token system from index-v8-candidate.html (trymichelle)
   Publishing-site-specific: bookstore, book cards, vertical pages,
   story generator, author page.
   June 2026.
   ===================================================== */

/* ============================================================
   DESIGN TOKENS — inherited from v8 reference
   ============================================================ */
:root {
  /* Base surfaces */
  --bg-base:         #0A0A0A;
  --bg-section:      #0F0F0F;
  --bg-raised:       #161616;
  --bg-glass:        rgba(10,10,10,0.80);

  /* Accent — muted gold, one accent, used sparingly */
  --accent:          #A8874A;
  --accent-text:     #BFA06A;
  --accent-glow:     rgba(168,135,74,0.08);
  --accent-line:     rgba(168,135,74,0.18);

  /* Warm off-white — key headlines, primary CTA */
  --warm-white:      #F0EBE0;

  /* Teal — live indicator only */
  --teal:            #2E8B7E;
  --teal-glow:       rgba(46,139,126,0.12);

  /* Typography */
  --text-head:       #F2EDE5;
  --text-body:       #D4CCC0;
  --text-muted:      #B8AFA3;
  --text-dim:        #8A8078;

  /* Borders */
  --line:            rgba(168,135,74,0.14);
  --line-cool:       rgba(255,255,255,0.05);

  /* Spacing */
  --space-xs:        16px;
  --space-sm:        32px;
  --space-md:        64px;
  --space-lg:        clamp(80px, 10vw, 120px);
  --space-xl:        clamp(120px, 14vw, 160px);

  /* Motion */
  --ease:     cubic-bezier(.16,1,.3,1);
  --ease-out: cubic-bezier(0,.55,.45,1);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }

/* ---- Base ---- */
body {
  background-color: var(--bg-base);
  color: var(--text-body);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-attachment: fixed;
}

/* ---- Layout shell ---- */
.shell { max-width: 1200px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 64px); }

/* ---- Typographic scale ---- */
.t-display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.97;
  letter-spacing: -0.03em;
  color: var(--text-head);
  font-optical-sizing: auto;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}
.t-display em { font-style: italic; font-weight: 300; color: var(--warm-white); }

.t-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: var(--text-head);
  font-optical-sizing: auto;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}
.t-title em { font-style: italic; color: var(--accent-text); }

/* ---- Section rule / eyebrow ---- */
.rule {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.rule::before {
  content: '';
  display: block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.rule .label {
  color: var(--text-dim);
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
}

/* ---- Reveal animations — visible-by-default ---- */
/*
   Content is VISIBLE without JS. Animation is progressive enhancement.
   JS sets .reveal-js-ready on <html> before observing, then adds
   .will-reveal to elements before they enter viewport; the animation
   plays on entry. Without JS (or with prefers-reduced-motion) elements
   stay fully visible at all times. No section ever renders blank.
*/
.reveal {
  opacity: 1;
  transform: none;
}

/* JS enhancement layer — only active when JS runs AND motion is OK */
html.reveal-enhanced .reveal-pending {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
html.reveal-enhanced .reveal-pending.reveal-visible {
  opacity: 1;
  transform: none;
}

/* Hero-specific stagger delays (applied via JS data-delay) */
html.reveal-enhanced .reveal-pending[data-delay="1"] { transition-delay: 0.05s; }
html.reveal-enhanced .reveal-pending[data-delay="2"] { transition-delay: 0.18s; }
html.reveal-enhanced .reveal-pending[data-delay="3"] { transition-delay: 0.34s; }
html.reveal-enhanced .reveal-pending[data-delay="4"] { transition-delay: 0.52s; }
html.reveal-enhanced .reveal-pending[data-delay="5"] { transition-delay: 0.72s; }

/* Legacy stagger classes — kept for compatibility, no-op without JS */
.d1, .d2, .d3, .d4, .d5 {}

/* ============================================================
   TOPBAR / NAV
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  backdrop-filter: blur(20px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.tb {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 24px;
}
.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--text-head);
  text-decoration: none;
  flex-shrink: 0;
}
.brand .accent { color: var(--accent-text); font-style: italic; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  list-style: none;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  text-decoration: none;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-head); }
.nav-links .nav-cta {
  font-size: 13px;
  font-weight: 500;
  color: var(--bg-base);
  background: var(--warm-white);
  padding: 8px 18px;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s;
  letter-spacing: 0.01em;
}
.nav-links .nav-cta:hover { background: #ffffff; color: var(--bg-base); }

/* Mobile nav */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text-muted);
  margin: 5px 0;
  transition: transform 0.2s;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--bg-base);
  background: var(--warm-white);
  padding: 14px 28px;
  border-radius: 3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-primary:hover { background: #ffffff; transform: translateY(-1px); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  padding: 13px 26px;
  border: 1px solid var(--line);
  border-radius: 3px;
  text-decoration: none;
  background: none;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.btn-secondary:hover { border-color: rgba(168,135,74,0.35); color: var(--text-body); }

.btn-amazon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--bg-base);
  background: var(--accent);
  padding: 14px 28px;
  border-radius: 3px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn-amazon:hover { background: var(--accent-text); transform: translateY(-1px); }

.btn-free {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--text-head);
  background: transparent;
  padding: 13px 26px;
  border-radius: 3px;
  text-decoration: none;
  border: 1px solid rgba(168,135,74,0.35);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.btn-free:hover { border-color: var(--accent); background: var(--accent-glow); color: var(--warm-white); }

/* ============================================================
   HERO — PUBLISHING
   ============================================================ */
.hero-section {
  position: relative;
  overflow: hidden;
  /* Reduced top padding so value prop is visible above the fold without scrolling.
     Previous: clamp(80px,12vh,140px) which on a 900px viewport = ~108px of blank space.
     Now: 56px flat top so headline is immediately visible. */
  padding: clamp(40px, 6vh, 72px) 0 clamp(48px, 8vh, 96px);
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 50%;
  height: 90%;
  background: radial-gradient(ellipse at top right, rgba(168,135,74,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }
.hero-eyebrow { margin-bottom: 36px; }

.hero-h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(40px, 5.5vw, 80px);
  line-height: 0.97;
  letter-spacing: -0.03em;
  color: var(--text-head);
  max-width: 16ch;
  font-optical-sizing: auto;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}
.hero-h1 em { font-style: italic; font-weight: 300; color: var(--warm-white); }

.hero-lede {
  margin-top: 36px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text-body);
  max-width: 52ch;
  line-height: 1.75;
  font-weight: 400;
}

.hero-cta {
  margin-top: 44px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Cover grid in hero — 2x3 of book cover thumbnails */
.hero-cover-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.hero-cover-plate {
  aspect-ratio: 2/3;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  text-align: center;
  gap: 8px;
  transition: border-color 0.2s, transform 0.2s;
}
.hero-cover-plate:hover { border-color: rgba(168,135,74,0.4); transform: translateY(-2px); }
.hero-cover-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cover-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 11px;
  color: var(--text-body);
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.cover-tool {
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent-text);
  opacity: 0.75;
}

/* ============================================================
   START-HERE STRIP — compact guided entry below hero
   Three-step path: Free guides > Browse by role > Buy on Amazon
   ============================================================ */
.start-here-strip {
  border-top: 1px solid var(--line-cool);
  border-bottom: 1px solid var(--line-cool);
  padding: 20px 0;
  background: var(--bg-section);
}
.start-here-inner {
  display: flex;
  align-items: center;
  gap: 0;
}
.sh-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  text-decoration: none;
  transition: background 0.2s;
  border-radius: 3px;
  position: relative;
}
.sh-step:hover { background: rgba(168,135,74,0.03); }
.sh-step + .sh-step::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--line-cool);
}
.sh-num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 28px;
  color: var(--accent-text);
  line-height: 1;
  flex-shrink: 0;
  letter-spacing: -0.02em;
}
.sh-text {}
.sh-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 3px;
}
.sh-head {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-head);
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.sh-desc {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.5;
  margin-top: 2px;
}

@media (max-width: 720px) {
  .start-here-inner { flex-direction: column; gap: 0; }
  .sh-step { width: 100%; }
  .sh-step + .sh-step::before { top: 0; left: 16px; right: 16px; width: auto; height: 1px; }
}

/* ============================================================
   AUDIENCE CARD GRID — homepage "Browse by audience"
   ============================================================ */
.section-padded { padding: var(--space-lg) 0; }
.section-padded-xl { padding: var(--space-xl) 0; }
.section-alt { background: var(--bg-section); }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.audience-card {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 0 28px;
  background: var(--bg-raised);
  text-decoration: none;
  display: block;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), background 0.2s;
}
.audience-card:hover {
  border-color: rgba(168,135,74,0.4);
  transform: translateY(-2px);
  background: rgba(168,135,74,0.025);
}
.audience-card-cover {
  width: 100%;
  aspect-ratio: 4 / 3;
  margin-bottom: 24px;
  background: #0a0a0a;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.audience-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.3s var(--ease);
}
.audience-card:hover .audience-card-cover img {
  transform: scale(1.03);
}
/* Cover spans full width; restore horizontal padding for the text content */
.audience-card-label,
.audience-card-name,
.audience-card-desc,
.audience-card-count {
  padding-left: 24px;
  padding-right: 24px;
}
.audience-card-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent-text);
  opacity: 0.7;
  margin-bottom: 10px;
}
.audience-card-name {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--text-head);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.audience-card-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}
.audience-card-count {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ============================================================
   STORY GENERATOR FEATURE BLOCK (homepage)
   Deliberately separated from the core guide library.
   A distinct product; the visual treatment signals "aside from
   the main library, not the same thing."
   ============================================================ */
.story-feature-band {
  padding: var(--space-md) 0;
  position: relative;
  overflow: hidden;
  /* Subtle left border differentiates it from guide-library sections */
  border-top: 1px solid var(--line-cool);
  border-bottom: 1px solid var(--line-cool);
}
.story-feature-band::before {
  content: '';
  position: absolute;
  left: -5%;
  top: 10%;
  width: 45%;
  height: 70%;
  background: radial-gradient(ellipse at left, rgba(168,135,74,0.025) 0%, transparent 70%);
  pointer-events: none;
}

/* Wrapper label — signals "a separate product" */
.story-feature-aside-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 20px;
  padding-left: 2px;
}

.story-feature-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 72px);
  align-items: center;
  background: var(--bg-raised);
  border: 1px solid var(--line-cool);
  border-left: 3px solid var(--accent-line);
  border-radius: 0 4px 4px 0;
  padding: clamp(32px, 4.5vw, 56px);
  /* Deliberately less shadow than before — calmer presence */
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

.story-feature-copy .sf-eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 18px;
  opacity: 0.8;
}
.story-feature-copy .sf-headline {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-head);
  font-optical-sizing: auto;
}
.story-feature-copy .sf-headline em { font-style: italic; color: var(--warm-white); }
.story-feature-copy .sf-body {
  margin-top: 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.72;
  font-weight: 300;
  max-width: 48ch;
}
.story-feature-copy .sf-cta { margin-top: 32px; }

/* Mini story demo */
.story-mini-demo {
  background: var(--bg-base);
  border: 1px solid var(--line-cool);
  border-radius: 4px;
  padding: 24px;
  position: relative;
}
.story-mini-demo-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.story-mini-input {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  line-height: 1.6;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-cool);
  margin-bottom: 14px;
}
.story-mini-pricing {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.story-price-chip {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  letter-spacing: 0.04em;
}
.story-price-chip.featured {
  color: var(--accent-text);
  border-color: var(--accent-line);
  background: var(--accent-glow);
}

/* ============================================================
   WHAT MAKES THESE DIFFERENT — 3 feature entries
   ============================================================ */
.feature-entries { margin-top: 48px; display: flex; flex-direction: column; gap: 0; }
.feature-entry {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line-cool);
}
.feature-entry:first-child { border-top: 1px solid var(--line-cool); }
.feature-num {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: 36px;
  color: var(--accent-text);
  line-height: 1;
  letter-spacing: -0.02em;
}
.feature-content {}
.feature-label {
  font-size: 10px;
  letter-spacing: 0.20em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.feature-head {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--text-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.feature-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.72;
  font-weight: 300;
  max-width: 52ch;
}

/* ============================================================
   CROSS-SITE FAMILY PANEL
   ============================================================ */
.cross-site-panel {
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--line);
}
.cross-site-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.cross-site-cell {
  padding: 48px clamp(28px, 5vw, 64px);
  text-decoration: none;
  display: block;
  transition: background 0.2s;
  position: relative;
}
.cross-site-cell:first-child {
  border-right: 1px solid var(--line);
}
.cross-site-cell:hover { background: rgba(168,135,74,0.02); }
.cs-label {
  font-size: 10px;
  letter-spacing: 0.20em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}
.cs-head {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--text-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.cs-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}
.cs-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-text);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.cs-link::after { content: '\2192'; }

/* ============================================================
   VERTICAL AUDIENCE PAGE
   ============================================================ */
.vertical-hero {
  padding: clamp(64px, 10vh, 100px) 0 clamp(40px, 6vh, 64px);
  position: relative;
  overflow: hidden;
}
.vertical-hero::before {
  content: '';
  position: absolute;
  top: -5%;
  right: -5%;
  width: 40%;
  height: 80%;
  background: radial-gradient(ellipse at top right, rgba(168,135,74,0.04) 0%, transparent 65%);
  pointer-events: none;
}
.vertical-eyebrow { margin-bottom: 24px; }
.vertical-h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 64px);
  line-height: 1.0;
  letter-spacing: -0.028em;
  color: var(--text-head);
  font-optical-sizing: auto;
  max-width: 20ch;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}
.vertical-h1 em { font-style: italic; color: var(--warm-white); }
.vertical-lede {
  margin-top: 20px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--text-body);
  max-width: 58ch;
  line-height: 1.7;
  font-weight: 400;
}

/* Tool group */
.tool-group { margin-bottom: 56px; }
.tool-group-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.tool-group-line {
  height: 1px;
  flex: 1;
  background: var(--line);
}
.tool-group-label {
  font-size: 11px;
  letter-spacing: 0.20em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dim);
  flex-shrink: 0;
}

/* Guide strip — horizontal scroll on desktop */
.guide-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.guide-strip::-webkit-scrollbar { height: 4px; }
.guide-strip::-webkit-scrollbar-track { background: transparent; }
.guide-strip::-webkit-scrollbar-thumb { background: var(--line); border-radius: 2px; }

/* Guide card — compact for vertical pages */
.card-guide-sm {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 220px;
  flex-shrink: 0;
  scroll-snap-align: start;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.card-guide-sm:hover {
  border-color: rgba(168,135,74,0.4);
  transform: translateY(-2px);
}

/* Cover thumbnail area */
.card-cover-thumb {
  width: 100%;
  aspect-ratio: 2/3;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 12px;
  text-align: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.card-cover-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.card-cover-thumb-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.card-level-badge {
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent-text);
  background: var(--accent-glow);
  border: 1px solid var(--accent-line);
  padding: 3px 8px;
  border-radius: 100px;
}
.card-cover-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 13px;
  color: var(--text-head);
  line-height: 1.25;
  letter-spacing: -0.01em;
}

/* Card body */
.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.card-tagline {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 300;
  flex: 1;
  margin-bottom: 12px;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-price {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 15px;
  color: var(--text-head);
}
.card-price.free { color: var(--accent-text); }
.card-view-link {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent-text);
  text-decoration: none;
  letter-spacing: 0.06em;
}

/* Accent panel — free entry / bundle / cross-sell */
.accent-panel {
  border-left: 2px solid var(--accent);
  background: var(--accent-glow);
  padding: 16px 20px;
  border-radius: 0 4px 4px 0;
  margin-top: 32px;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}
.accent-panel a {
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 500;
}
.accent-panel a:hover { text-decoration: underline; }

/* ============================================================
   BOOK PAGE (individual guide)
   ============================================================ */
.book-hero {
  padding: clamp(64px, 10vh, 100px) 0 clamp(48px, 7vh, 80px);
  position: relative;
  overflow: hidden;
}
.book-hero::before {
  content: '';
  position: absolute;
  top: -5%;
  right: -5%;
  width: 45%;
  height: 80%;
  background: radial-gradient(ellipse at top right, rgba(168,135,74,0.04) 0%, transparent 65%);
  pointer-events: none;
}

.book-hero-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: clamp(48px, 6vw, 80px);
  align-items: start;
}

/* Cover plate */
.book-cover-plate {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.5),
    0 20px 60px rgba(0,0,0,0.4),
    0 0 0 1px var(--line);
  position: relative;
}
/* Typographic fallback wrapper — aspect-ratio container */
.book-cover-plate-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 2/3;
  overflow: hidden;
  background: var(--bg-raised);
}
.book-cover-plate img {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
}
.book-cover-typographic {
  width: 100%;
  aspect-ratio: 2/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
  gap: 12px;
  background: var(--bg-raised);
  position: relative;
  overflow: hidden;
}
/* Real cover image overlays typographic fallback */
.book-cover-typographic .book-cover-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  aspect-ratio: auto;
}
.book-cover-typographic .bct-tool {
  font-size: 9px;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent-text);
  opacity: 0.7;
}
.book-cover-typographic .bct-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 28px);
  color: var(--text-head);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.book-cover-typographic .bct-rule {
  width: 32px;
  height: 1px;
  background: var(--accent);
  margin: 4px auto;
}
.book-cover-typographic .bct-role {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dim);
}
.book-cover-caption {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.book-cover-caption .meta {
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  font-weight: 400;
}
.book-cover-caption .price {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 16px;
  color: var(--accent-text);
}
.book-cover-caption .price.free-price { color: var(--accent-text); }

/* Book hero right column */
.book-hero-copy .book-eyebrow {
  font-size: 10px;
  letter-spacing: 0.20em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.book-hero-copy .book-h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(28px, 3.8vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-head);
  font-optical-sizing: auto;
  max-width: 18ch;
}
.book-hero-copy .book-tagline {
  margin-top: 18px;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--text-body);
  line-height: 1.65;
  font-weight: 400;
  max-width: 42ch;
}
.book-hero-copy .book-cta {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* Book sections */
.book-section {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--line-cool);
}
.book-section-label {
  font-size: 10px;
  letter-spacing: 0.20em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.book-section-head {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  color: var(--text-head);
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
}
.book-section-body {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  font-weight: 300;
  max-width: 64ch;
}
.book-inside-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}
.book-inside-list li {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
  padding-left: 20px;
  position: relative;
}
.book-inside-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 1px;
  background: var(--accent);
}

.honest-limit-panel {
  border-left: 2px solid var(--accent);
  padding: 20px 24px;
  background: var(--accent-glow);
  border-radius: 0 4px 4px 0;
  margin-top: 8px;
}
.honest-limit-panel p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
}

/* Related guides strip */
.related-strip {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  margin-top: 24px;
}

/* ============================================================
   STORY GENERATOR PAGE (/story)
   ============================================================ */
.story-hero {
  padding: clamp(80px, 12vh, 120px) 0 clamp(64px, 8vh, 96px);
  position: relative;
  overflow: hidden;
}
.story-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  left: -5%;
  width: 50%;
  height: 80%;
  background: radial-gradient(ellipse at top left, rgba(168,135,74,0.05) 0%, transparent 65%);
  pointer-events: none;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

/* Story input panel */
.story-input-panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.4);
}
.sip-label {
  font-size: 10px;
  letter-spacing: 0.20em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.sip-field {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--line-cool);
  border-radius: 4px;
  padding: 14px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
  resize: vertical;
  min-height: 100px;
  transition: border-color 0.2s;
  font-weight: 300;
}
.sip-field::placeholder { color: var(--text-dim); font-style: italic; }
.sip-field:focus { outline: none; border-color: rgba(168,135,74,0.4); }
.sip-field:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.sip-sub-fields { margin-top: 16px; }
.sip-sub-toggle {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.sip-sub-toggle:hover { color: var(--accent-text); }
.sip-sub-toggle .arrow { transition: transform 0.2s; }
.sip-sub-toggle[aria-expanded="true"] .arrow { transform: rotate(180deg); }

.sip-sub-content { margin-top: 16px; display: none; gap: 12px; flex-direction: column; }
.sip-sub-content.open { display: flex; }
.sip-sub-field {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--line-cool);
  border-radius: 4px;
  padding: 10px 14px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: var(--text-body);
  transition: border-color 0.2s;
}
.sip-sub-field::placeholder { color: var(--text-dim); font-style: italic; }
.sip-sub-field:focus { outline: none; border-color: rgba(168,135,74,0.4); }
select.sip-sub-field { appearance: none; cursor: pointer; }

.sip-cta { margin-top: 24px; width: 100%; justify-content: center; }
.sip-fine {
  margin-top: 10px;
  font-size: 11px;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* Story output panel */
.story-output-panel {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(28px, 4vw, 44px);
  min-height: 300px;
  display: flex;
  flex-direction: column;
}
.sop-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-dim);
  font-style: italic;
  letter-spacing: 0.04em;
  text-align: center;
}
.sop-chapter-label {
  font-size: 10px;
  letter-spacing: 0.20em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent-text);
  opacity: 0.7;
  margin-bottom: 16px;
}
.sop-chapter-body {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.8;
  font-weight: 300;
  flex: 1;
}

/* Paywall CTA block */
.story-paywall {
  margin-top: 40px;
  padding: 32px 36px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: none;
}
.story-paywall.visible { display: block; }
.spw-head {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 30px);
  color: var(--text-head);
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.spw-sub {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 24px;
}
.spw-tiers {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.spw-tier {
  flex: 1;
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg-base);
}
.spw-tier:hover, .spw-tier.selected {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.spw-tier-len {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.spw-tier-price {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--text-head);
}
.spw-fine {
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 12px;
  line-height: 1.55;
}
.spw-subscription {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-dim);
  border-top: 1px solid var(--line-cool);
  padding-top: 14px;
}
.spw-subscription a {
  color: var(--accent-text);
  text-decoration: none;
}

/* Honest frame section */
.honest-frame-section {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--line-cool);
}
.honest-frame-section .hf-head {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--text-head);
  letter-spacing: -0.018em;
  margin-bottom: 24px;
}
.honest-frame-section .hf-body p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.78;
  font-weight: 300;
  max-width: 64ch;
  margin-bottom: 18px;
}

/* Pricing table section */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
}
.pricing-table th {
  font-size: 10px;
  letter-spacing: 0.18em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.pricing-table td {
  font-size: 15px;
  color: var(--text-muted);
  padding: 14px 0;
  border-bottom: 1px solid var(--line-cool);
  font-weight: 300;
  vertical-align: top;
}
.pricing-table td:last-child {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  color: var(--text-head);
  text-align: right;
}
.pricing-table tr:hover td { color: var(--text-body); }

/* ============================================================
   ABOUT / AUTHOR PAGE
   ============================================================ */
.author-hero {
  padding: clamp(80px, 12vh, 120px) 0 clamp(64px, 8vh, 96px);
  position: relative;
}
.author-hero::before {
  content: '';
  position: absolute;
  top: -5%;
  right: -5%;
  width: 40%;
  height: 70%;
  background: radial-gradient(ellipse at top right, rgba(168,135,74,0.04) 0%, transparent 65%);
  pointer-events: none;
}
.author-h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(36px, 5vw, 72px);
  line-height: 0.97;
  letter-spacing: -0.03em;
  color: var(--text-head);
  font-optical-sizing: auto;
  max-width: 20ch;
  text-shadow: 0 1px 3px rgba(0,0,0,0.55);
}
.author-h1 em { font-style: italic; color: var(--warm-white); }
.author-body-section {
  padding: var(--space-md) 0;
  border-top: 1px solid var(--line-cool);
  max-width: 720px;
}
.author-body-section p {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.78;
  font-weight: 300;
  margin-bottom: 20px;
  max-width: 64ch;
}
.author-body-section p:last-child { margin-bottom: 0; }

/* ============================================================
   FREE GUIDE PAGE
   ============================================================ */
.free-guide-hero {
  padding: clamp(80px, 12vh, 120px) 0 clamp(48px, 7vh, 72px);
  position: relative;
  overflow: hidden;
}
.free-guide-hero::before {
  content: '';
  position: absolute;
  top: -10%;
  right: -5%;
  width: 45%;
  height: 80%;
  background: radial-gradient(ellipse at top right, rgba(168,135,74,0.04) 0%, transparent 65%);
  pointer-events: none;
}
.free-guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.free-guide-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fgc-cover {
  aspect-ratio: 16/9;
  background: var(--bg-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 20px;
  text-align: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.fgc-tool {
  font-size: 9px;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent-text);
  opacity: 0.7;
}
.fgc-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  color: var(--text-head);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.fgc-tagline {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.fgc-body {
  padding: 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.fgc-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  font-weight: 300;
  flex: 1;
}

/* Email gate form */
.email-gate {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(32px, 5vw, 56px);
  max-width: 520px;
  margin: 48px auto 0;
}
.email-gate-label {
  font-size: 10px;
  letter-spacing: 0.20em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.email-gate-head {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 300;
  font-size: clamp(22px, 2.4vw, 32px);
  color: var(--text-head);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.email-gate-sub {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 24px;
}
.email-gate-form { display: flex; flex-direction: column; gap: 12px; }
.email-input {
  width: 100%;
  background: var(--bg-base);
  border: 1px solid var(--line-cool);
  border-radius: 4px;
  padding: 13px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  color: var(--text-body);
  transition: border-color 0.2s;
}
.email-input::placeholder { color: var(--text-dim); }
.email-input:focus { outline: none; border-color: rgba(168,135,74,0.4); }
.email-input:focus-visible { outline: 2px solid var(--accent-text); }
.email-privacy {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.55;
  margin-top: 4px;
  letter-spacing: 0.02em;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--line);
  padding: clamp(48px, 7vh, 72px) 0 clamp(36px, 5vh, 56px);
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--accent) 25%, transparent 100%);
  opacity: 0.18;
}
.ft {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--text-dim);
  line-height: 1.7;
}
.ft-legal { max-width: 62ch; }
footer a { color: var(--text-dim); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--accent-text); }
.ft-links { display: flex; gap: 24px; flex-shrink: 0; flex-wrap: wrap; }

/* ============================================================
   HONEST LIMIT BAND — trust signal on vertical pages
   ============================================================ */
.honest-limit-band {
  border: 1px solid var(--accent-line);
  background: var(--accent-glow);
  border-radius: 4px;
  padding: 20px 24px;
  margin: 0 0 56px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.hlb-label {
  font-size: 9px;
  letter-spacing: 0.22em;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--accent-text);
  opacity: 0.75;
  white-space: nowrap;
  padding-top: 2px;
  flex-shrink: 0;
}
.hlb-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  font-weight: 300;
}
.hlb-body strong {
  font-weight: 500;
  color: var(--text-body);
}

/* ============================================================
   COVER IMAGE WIRING — real covers replace typographic plates
   When .card-cover-thumb or .book-cover-plate contains an img,
   the text overlay becomes invisible (img covers it absolutely).
   The typographic fallback stays in the DOM as graceful fallback.
   ============================================================ */
.card-cover-thumb {
  position: relative;
}
.card-cover-thumb .card-cover-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  border-radius: 0;
}
.card-cover-thumb .card-cover-real[src=""],
.card-cover-thumb .card-cover-real:not([src]) {
  display: none;
}

/* .book-cover-real is defined inside .book-cover-typographic above */

/* Hero cover plates with real images */
.hero-cover-plate .hero-cover-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  border-radius: 3px;
}

/* Free guide cards — cover image (landscape 16/9) */
.fgc-cover {
  position: relative;
}
.fgc-cover .fgc-cover-real {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 2;
  border-radius: 0;
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  /* Reveal: always visible, never animated */
  .reveal,
  html.reveal-enhanced .reveal-pending,
  html.reveal-enhanced .reveal-pending.reveal-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 3px;
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--bg-raised);
  color: var(--text-head);
  padding: 8px 16px;
  z-index: 999;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .book-hero-grid { grid-template-columns: 240px 1fr; }
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-cover-grid { max-width: 380px; }
  .story-grid { grid-template-columns: 1fr; gap: 32px; }
  .story-feature-inner { grid-template-columns: 1fr; gap: 36px; }
  .cross-site-grid { grid-template-columns: 1fr; }
  .cross-site-cell:first-child { border-right: none; border-bottom: 1px solid var(--line); }
  .book-hero-grid { grid-template-columns: 1fr; max-width: 480px; }
  .free-guides-grid { grid-template-columns: 1fr; }
  .spw-tiers { flex-direction: column; }
}

@media (max-width: 720px) {
  .audience-grid { grid-template-columns: 1fr; }
  .hero-cover-grid { grid-template-columns: repeat(2, 1fr); max-width: 240px; }
  .guide-strip {
    flex-direction: column;
    overflow-x: visible;
    scroll-snap-type: none;
  }
  .card-guide-sm { width: 100%; }
  .related-strip { overflow-x: auto; }
  .ft { flex-direction: column; gap: 18px; }
  .ft-links { gap: 18px; }
  .hero-cta { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1080px) {
  .tb { flex-wrap: wrap; gap: 12px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; flex-direction: column; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: var(--bg-glass);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 200;
  }
  .nav-links.open a { font-size: 20px; }
}

/* Hero cover grid: keep fully static, never animate (kills the flicker/strobe) */
.hero-cover-grid,
.hero-cover-grid.reveal,
html.reveal-enhanced .hero-cover-grid.reveal-pending,
html.reveal-enhanced .hero-cover-grid.reveal-pending.reveal-visible,
.hero-cover-grid .hero-cover-plate {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
}
