/* ==========================================================================
   Once Upon A Time — Heirloom Editorial Design System (V2)
   Lightweight, accessible, zero-bloat CSS preserving the warmth of print.
   ========================================================================== */

:root {
  --paper: #FFFDFB;
  --parchment: #F7F2E7;
  --parchment-deep: #EFE8D8;
  --sage: #F1F5F2;
  --forest: #22544E;
  --forest-deep: #173C37;
  --forest-soft: #2E6A63;
  --brass: #8C6A3F;
  --cognac: #8E4F24;
  --ink: #1A1D1B;
  --ink-soft: #444B46;
  --ink-muted: #69716B;
  --rule: #E4DFD3;
  --white: #FFFFFF;
  --shadow-sm: 0 2px 10px rgba(26, 29, 27, 0.05);
  --shadow-md: 0 12px 32px rgba(26, 29, 27, 0.08);
  --shadow-lg: 0 24px 56px rgba(23, 60, 55, 0.14);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --serif: 'Cormorant Garamond', Georgia, 'Iowan Old Style', 'Palatino Linotype', serif;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--forest); text-decoration: none; transition: color 0.2s ease, opacity 0.2s ease; }
a:hover { color: var(--forest-deep); }

/* Typography */
h1, h2, h3, .font-serif {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); line-height: 1.08; margin: 0 0 1.25rem; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.85rem); line-height: 1.15; margin: 0 0 1rem; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); line-height: 1.25; margin: 0 0 0.65rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.75rem;
}
.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.rich-text p:last-child { margin-bottom: 0; }
.rich-text ul, .rich-text ol { margin: 0.5rem 0 1rem; padding-left: 1.25rem; color: var(--ink-soft); }
.rich-text li { margin-bottom: 0.35rem; }

/* Layout Helpers */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 1.25rem; }
.container-narrow { width: 100%; max-width: 820px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-sm { padding: clamp(2.25rem, 4.5vw, 3.5rem) 0; }
.bg-parchment { background: var(--parchment); }
.bg-sage { background: var(--sage); }
.bg-forest { background: var(--forest); color: var(--white); }
.bg-forest h1, .bg-forest h2, .bg-forest h3, .bg-forest strong { color: var(--white); }
.bg-forest p, .bg-forest .lede { color: rgba(255, 253, 251, 0.9); }
.bg-forest .eyebrow { color: #EAD3AB; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--sans);
  font-size: 0.94rem;
  font-weight: 600;
  padding: 0.85rem 1.65rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.16s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest); color: var(--white); border-color: var(--forest); }
.btn-primary:hover { background: var(--forest-deep); border-color: var(--forest-deep); color: var(--white); box-shadow: 0 8px 20px rgba(34, 84, 78, 0.22); }
.btn-brass { background: var(--cognac); color: var(--white); border-color: var(--cognac); }
.btn-brass:hover { background: #733F1B; color: var(--white); }
.btn-outline { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--white); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.65); }
.btn-outline-light:hover { background: var(--white); color: var(--forest); }
.btn-white { background: var(--white); color: var(--forest); border-color: var(--white); }
.btn-white:hover { background: var(--parchment); color: var(--forest-deep); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.86rem; }
.btn-block { width: 100%; }

/* Announcement Banner (CMS Controlled) */
.announcement-bar {
  background: var(--cognac);
  color: var(--white);
  font-size: 0.88rem;
  padding: 0.6rem 1rem;
  text-align: center;
}
.announcement-bar a {
  color: var(--white);
  text-decoration: underline;
  font-weight: 600;
  margin-left: 0.5rem;
}

/* Sticky Navigation Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(255, 253, 251, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand-logo { display: inline-flex; align-items: center; gap: 0.6rem; }
.brand-logo img { height: 28px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  padding: 0.25rem 0;
}
.nav-links a:hover, .nav-links a.active { color: var(--forest); }
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

/* Currency Switcher */
.currency-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: 999px;
  padding: 2px;
}
.currency-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.currency-btn.active {
  background: var(--forest);
  color: var(--white);
}

/* Mobile Menu */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  color: var(--ink);
}
.mobile-drawer {
  display: none;
  border-top: 1px solid var(--rule);
  background: var(--paper);
  padding: 1.25rem;
}
.mobile-drawer.open { display: block; }
.mobile-drawer ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.6rem; }
.mobile-drawer a { display: block; padding: 0.4rem 0; font-size: 1.05rem; font-weight: 500; color: var(--ink); }

@media (max-width: 980px) {
  .nav-links, .nav-actions .btn-nav-cta { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

/* Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #163733 0%, #22544E 60%, #2B625B 100%);
  color: var(--white);
  padding: clamp(3.25rem, 6vw, 5.5rem) 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero h1 { color: var(--white); }
.hero h1 em { font-style: italic; color: #EAD3AB; }
.hero .lede { color: rgba(255, 253, 251, 0.88); max-width: 560px; margin-bottom: 1.75rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.75rem; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  font-size: 0.86rem;
  color: rgba(255, 253, 251, 0.82);
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #D8CBB8;
  aspect-ratio: 1 / 1;
  max-height: 490px;
  width: 100%;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}
.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-slide-dots {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  z-index: 3;
  display: flex;
  gap: 0.4rem;
  background: rgba(23, 60, 55, 0.72);
  backdrop-filter: blur(6px);
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
}
.hero-slide-dot {
  border: none;
  background: rgba(255, 255, 255, 0.4);
  width: 8px;
  height: 8px;
  border-radius: 999px;
  padding: 0;
  cursor: pointer;
  transition: width 0.25s ease, background-color 0.25s ease;
}
.hero-slide-dot.active {
  width: 22px;
  background: #EAD3AB;
}
.hero-badge-card {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  z-index: 3;
  background: rgba(255, 253, 251, 0.95);
  color: var(--ink);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: var(--shadow-md);
}

/* Real Book & Presentation Box Craft Showcase */
.craft-showcase-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 2.25rem;
}
.craft-showcase-desktop { display: block; width: 100%; height: auto; }
.craft-showcase-mobile { display: none; width: 100%; height: auto; }
@media (max-width: 720px) {
  .craft-showcase-desktop { display: none; }
  .craft-showcase-mobile { display: block; }
}
.hero-badge-card strong { display: block; font-size: 0.92rem; color: var(--forest); }
.hero-badge-card small { color: var(--ink-muted); font-size: 0.8rem; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* Grids & Cards */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 960px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
}

.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.card.bg-forest {
  background: var(--forest);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--white);
}
.card.bg-parchment { background: var(--parchment); }
.card.bg-sage { background: var(--sage); }

/* Look Inside a Book Interactive Spread */
.spread-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.85rem;
}
.story-lang-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}
.story-lang-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.story-lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.22rem;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.story-lang-btn {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.36rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.story-lang-btn:hover { color: var(--forest); }
.story-lang-btn.active {
  background: var(--brass);
  color: var(--white);
}

.spread-tabs {
  display: inline-flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: stretch;
  gap: 0.35rem;
  background: var(--white);
  border: 1px solid var(--rule);
  padding: 0.3rem;
  border-radius: 999px;
  max-width: 100%;
  box-shadow: var(--shadow-sm);
}
.spread-tab {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.spread-tab:hover { color: var(--forest); }
.spread-tab.active { background: var(--forest); color: var(--white); }
@media (max-width: 640px) {
  .spread-controls { gap: 0.7rem; margin-bottom: 1.5rem; }
  .spread-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    border-radius: 14px;
    gap: 0.25rem;
    padding: 0.28rem;
  }
  .spread-tab {
    font-size: 0.78rem;
    padding: 0.55rem 0.4rem;
    border-radius: 10px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }
}

.book-spread {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.spread-pane { padding: clamp(1.5rem, 3.5vw, 2.75rem); }
.spread-pane-left { background: var(--parchment); border-right: 1px solid var(--rule); }
.spread-pane-right { background: var(--white); }
.spread-label {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brass);
  margin-bottom: 0.75rem;
}
.spoken-bubble {
  background: var(--white);
  border-left: 3px solid var(--brass);
  padding: 1.25rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.printed-page-title {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--forest);
  margin-bottom: 0.75rem;
}
.printed-page-prose {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.72;
  color: var(--ink);
}
@media (max-width: 760px) {
  .book-spread { grid-template-columns: 1fr; }
  .spread-pane-left { border-right: none; border-bottom: 1px solid var(--rule); }
}

/* Featured Product Showcase */
.featured-book {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.75rem);
  box-shadow: var(--shadow-md);
}
.featured-book-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--parchment);
  aspect-ratio: 4 / 3;
}
.featured-book-img img { width: 100%; height: 100%; object-fit: cover; }
.price-row { display: flex; align-items: baseline; gap: 0.75rem; margin: 1.25rem 0; }
.price-now { font-family: var(--serif); font-size: 2.35rem; font-weight: 600; color: var(--forest); line-height: 1; }
.price-compare { font-size: 1.05rem; color: var(--ink-muted); text-decoration: line-through; }
.price-caption { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); display: block; margin-bottom: 0.2rem; }
@media (max-width: 860px) { .featured-book { grid-template-columns: 1fr; } }

/* Step Cards (How It Works) */
.step-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 1.4rem;
}
.step-num {
  font-family: var(--serif);
  font-size: 2.2rem;
  color: #EAD3AB;
  line-height: 1;
  margin-bottom: 0.6rem;
}
.step-card h3 { font-size: 1.25rem; margin-bottom: 0.45rem; }
.step-card p { font-size: 0.9rem; margin: 0; }

/* Feature Cards (HTML-native replacement for features.png) */
.feature-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--forest);
  border-radius: var(--radius-md);
  padding: 1.5rem;
}
.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--sage);
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
  font-size: 1.15rem;
}
.feature-card h3 { font-size: 1.3rem; color: var(--forest); }
.feature-card p { font-size: 0.92rem; margin: 0; }

/* 10 Chapters Grid (Clean 5x2 desktop, 2x5 tablet, 1x10 mobile) */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.15rem;
}
@media (max-width: 1080px) { .chapter-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .chapter-grid { grid-template-columns: 1fr; } }
.chapter-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.chapter-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  object-position: center 20%;
}
.chapter-card-body { padding: 1rem 1.05rem 1.15rem; flex: 1; display: flex; flex-direction: column; }
.chapter-num { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); font-weight: 700; margin-bottom: 0.25rem; }
.chapter-card h3 { font-size: 1.18rem; line-height: 1.25; margin-bottom: 0.35rem; }
.chapter-prompt { font-size: 0.84rem; color: var(--ink-muted); font-style: italic; margin: 0; line-height: 1.5; }

/* Waitlist Cards */
.waitlist-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.waitlist-card img { width: 100%; height: 210px; object-fit: cover; background: var(--parchment); }
.waitlist-card-body { padding: 1.35rem; flex: 1; display: flex; flex-direction: column; }
.badge-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--parchment);
  color: var(--brass);
  border: 1px solid var(--rule);
  margin-bottom: 0.65rem;
  width: fit-content;
}
.waitlist-card p { font-size: 0.9rem; flex: 1; }

/* Testimonials */
.review-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
}
.stars { color: #C7922E; letter-spacing: 0.1em; font-size: 0.95rem; margin-bottom: 0.6rem; }
.review-quote { font-family: var(--serif); font-size: 1.22rem; line-height: 1.55; color: var(--ink); }
.review-author { display: flex; align-items: center; gap: 0.85rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.review-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--parchment-deep); }
.review-author strong { display: block; font-size: 0.95rem; color: var(--ink); }
.review-author small { color: var(--ink-muted); font-size: 0.82rem; }

/* Packages (Product Detail) */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}
.package-card {
  background: var(--white);
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.package-card.popular {
  border-color: var(--forest);
  box-shadow: var(--shadow-lg);
}
.package-popular-tag {
  background: var(--cognac);
  color: var(--white);
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.4rem;
}
.package-head {
  background: var(--forest);
  color: var(--white);
  padding: 1.75rem;
}
.package-head h3 { color: var(--white); font-size: 1.75rem; margin-bottom: 0.4rem; }
.package-head .rich-text, .package-head .rich-text p { color: rgba(255, 253, 251, 0.86); font-size: 0.92rem; }
.package-price-wrap { display: flex; align-items: baseline; gap: 0.65rem; margin: 1.15rem 0 1.25rem; }
.package-price { font-family: var(--serif); font-size: 2.5rem; font-weight: 600; color: var(--white); line-height: 1; }
.package-compare { font-size: 1rem; color: rgba(255,255,255,0.62); text-decoration: line-through; }
.package-body { padding: 1.5rem 1.75rem 1.75rem; flex: 1; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.check-list li {
  position: relative;
  display: block;
  padding-left: 1.55rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--forest);
  font-weight: 700;
}

/* Product Gallery */
.gallery-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: var(--parchment);
  aspect-ratio: 4 / 3;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 0.6rem; margin-top: 0.75rem; flex-wrap: wrap; }
.gallery-thumb {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  background: var(--parchment);
}
.gallery-thumb.active { border-color: var(--forest); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* FAQ Accordion (Native <details> — Zero JS Required & 100% Crawl-Friendly!) */
.faq-list { display: grid; gap: 0.75rem; }
details.faq-item {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
}
details.faq-item[open] { border-color: var(--forest); box-shadow: var(--shadow-sm); }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after { content: "+"; font-size: 1.35rem; color: var(--forest); font-weight: 400; line-height: 1; }
details.faq-item[open] summary::after { content: "−"; }
.faq-answer { padding-top: 0.85rem; font-size: 0.96rem; color: var(--ink-soft); }

/* Comparison Table (AI & SEO Citation Engine) */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--radius-md); background: var(--white); }
.compare-table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: 0.94rem; }
.compare-table th, .compare-table td { padding: 0.95rem 1.1rem; border-bottom: 1px solid var(--rule); text-align: left; }
.compare-table thead th { background: var(--parchment); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink); }
.compare-table .col-ouat { background: rgba(34, 84, 78, 0.06); font-weight: 600; color: var(--forest-deep); }

/* Native Waitlist Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 22, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 1200;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  max-width: 460px;
  width: 100%;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--ink-muted);
}
.form-field { margin-bottom: 1rem; }
.form-field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 0.35rem; color: var(--ink); }
.form-field input, .form-field textarea {
  width: 100%;
  padding: 0.72rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.95rem;
  background: var(--white);
}
.form-field input:focus, .form-field textarea:focus { outline: 2px solid var(--forest); border-color: var(--forest); }

/* Footer */
.site-footer {
  background: #142B28;
  color: rgba(255, 253, 251, 0.85);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 2.25rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.site-footer h3 { color: var(--white); font-size: 1.15rem; font-family: var(--sans); font-weight: 600; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.site-footer a { color: rgba(255, 253, 251, 0.78); font-size: 0.92rem; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(255, 253, 251, 0.65);
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }

/* Sticky Mobile CTA Bar on Product Page */
.sticky-mobile-cta {
  display: none;
}
@media (max-width: 768px) {
  .sticky-mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 850;
    background: rgba(255, 253, 251, 0.97);
    border-top: 1px solid var(--rule);
    padding: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
  }
  body.has-sticky-cta { padding-bottom: 76px; }
}

/* ==========================================================================
   V2 2-Step Checkout & Order Confirmation
   ========================================================================== */
.checkout-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-bottom: 2rem;
}
.checkout-step {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-muted);
}
.checkout-step .step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--rule);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.checkout-step.active { color: var(--forest); }
.checkout-step.active .step-dot { background: var(--forest); border-color: var(--forest); color: var(--white); }
.checkout-step.completed { color: var(--forest-deep); }
.checkout-step.completed .step-dot { background: var(--brass); border-color: var(--brass); color: var(--white); }
.step-divider { width: 48px; height: 2px; background: var(--rule); }
.step-divider.completed { background: var(--brass); }

.checkout-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 920px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

.checkout-card { padding: clamp(1.4rem, 3vw, 2.25rem); }
.checkout-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.checkout-divider { height: 1px; background: var(--rule); margin: 1.5rem 0; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row-2 { grid-template-columns: 1fr; } }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .choice-grid { grid-template-columns: 1fr; } }
.choice-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.1rem 1.15rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.choice-card input[type="radio"] { margin-top: 0.2rem; accent-color: var(--forest); flex-shrink: 0; }
.choice-card.selected {
  border-color: var(--forest);
  background: var(--sage);
  box-shadow: var(--shadow-sm);
}
.choice-card-content strong { display: block; font-size: 1rem; color: var(--ink); margin-bottom: 0.25rem; }
.choice-card-content small { display: block; font-size: 0.85rem; color: var(--ink-soft); line-height: 1.45; }

.addon-list { display: grid; gap: 0.85rem; }
.addon-card {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.05rem 1.15rem;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius-md);
  background: var(--paper);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.addon-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--forest);
  flex-shrink: 0;
}
.addon-card.selected { border-color: var(--forest); background: var(--sage); }
.addon-card-body { flex: 1; }
.addon-card-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.addon-card-top strong { font-size: 0.98rem; color: var(--ink); }
.addon-price { font-weight: 700; color: var(--forest); font-size: 0.96rem; white-space: nowrap; }
.addon-compare { color: var(--ink-muted); text-decoration: line-through; font-weight: 500; margin-right: 0.35rem; font-size: 0.86rem; }
.addon-desc { font-size: 0.86rem; color: var(--ink-soft); margin-top: 0.3rem; }
.addon-desc p { margin: 0; font-size: 0.86rem; }

.checkout-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.checkout-summary-card { position: sticky; top: 92px; }
.summary-book-head { display: flex; gap: 0.95rem; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.summary-book-head img { width: 76px; height: 76px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; border: 1px solid var(--rule); }
.summary-highlights { margin: 1rem 0; gap: 0.45rem; }
.summary-highlights li { font-size: 0.85rem; }
.summary-lines { border-top: 1px solid var(--rule); padding-top: 0.95rem; display: grid; gap: 0.55rem; }
.summary-line { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 0.94rem; color: var(--ink-soft); }
.summary-line strong { color: var(--ink); }
.summary-line-addon { font-size: 0.88rem; }
.summary-total { border-top: 1.5px solid var(--rule); margin-top: 0.4rem; padding-top: 0.8rem; font-size: 1.05rem; color: var(--ink); font-weight: 600; }
.summary-total strong { font-family: var(--serif); font-size: 1.85rem; color: var(--forest); line-height: 1; }
.checkout-note {
  margin: 0.9rem 0 0;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--parchment);
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.summary-trust {
  margin-top: 1rem;
  padding-top: 0.95rem;
  border-top: 1px solid var(--rule);
  display: grid;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.review-order-item { display: flex; gap: 1.1rem; align-items: flex-start; padding-bottom: 1.15rem; border-bottom: 1px solid var(--rule); }
.review-order-item img { width: 88px; height: 88px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; border: 1px solid var(--rule); }
.review-item-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.review-addons-box { margin-top: 1rem; padding: 0.95rem 1.05rem; border-radius: var(--radius-sm); background: var(--sage); }
.review-addons-empty {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--parchment);
  font-size: 0.88rem;
  color: var(--ink-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.review-addons-empty a { font-weight: 600; }

.recipient-summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1.25rem; }
@media (max-width: 600px) { .recipient-summary-grid { grid-template-columns: 1fr; } }
.meta-label { display: block; font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-muted); font-weight: 600; margin-bottom: 0.15rem; }
.gift-note-preview { margin-top: 1rem; padding: 0.9rem 1rem; background: var(--parchment); border-left: 3px solid var(--brass); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

.promo-callout {
  margin: 1.1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--parchment);
  border: 1px dashed var(--brass);
  font-size: 0.9rem;
}
.promo-callout code {
  background: var(--white);
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-weight: 700;
  color: var(--forest);
}
.btn-link-danger {
  border: none;
  background: transparent;
  color: #991B1B;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.35rem 0.5rem;
  text-decoration: underline;
}
.btn-link-danger:hover { color: #7F1D1D; }

/* Order Success */
.success-emblem {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--white);
  font-size: 1.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: var(--shadow-md);
}
.success-meta-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1rem 2.25rem;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--parchment);
  border: 1px solid var(--rule);
  margin-bottom: 1.5rem;
}
.success-meta-bar > div {
  min-width: 0;
  max-width: 100%;
  flex: 0 1 auto;
}
.success-meta-bar strong {
  display: block;
  font-size: 0.96rem;
  color: var(--ink);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.success-step {
  padding: 1.1rem;
  border-radius: var(--radius-md);
  background: var(--sage);
  border: 1px solid var(--rule);
}

/* ==========================================================================
   Unlisted Post-Purchase Getting Started Guide (/getting-started)
   ========================================================================== */
.guide-launch-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.guide-print-link {
  border: none;
  background: transparent;
  color: #EAD3AB;
  font-family: var(--sans);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.guide-jump-bar {
  position: sticky;
  top: 72px;
  z-index: 600;
  background: rgba(255, 253, 251, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.guide-jump-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.25rem;
  overflow-x: auto;
  scrollbar-width: none;
}
.guide-jump-inner::-webkit-scrollbar { display: none; }
.guide-jump-pill {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--parchment);
  border: 1px solid var(--rule);
  padding: 0.42rem 0.95rem;
  border-radius: 999px;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.guide-jump-pill:hover {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}
.guide-video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #142B28;
  border: 1px solid var(--rule);
}
.guide-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.guide-section-anchor { scroll-margin-top: 140px; }
.guide-steps-stack {
  display: grid;
  gap: 1.65rem;
}
.guide-step-card {
  display: block;
  padding: clamp(1.5rem, 3vw, 2.35rem);
}
.guide-step-badge {
  display: inline-block;
  background: var(--forest);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.34rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
  margin-bottom: 0.75rem;
}
.guide-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.15rem;
  align-items: stretch;
}
@media (max-width: 760px) {
  .guide-flow-grid { grid-template-columns: 1fr; }
}
.guide-flow-box {
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
}
.guide-flow-box strong { display: block; color: var(--forest); font-size: 1rem; margin-bottom: 0.3rem; }
.guide-flow-box p { margin: 0 0 1rem; font-size: 0.88rem; line-height: 1.55; flex: 1; }
.guide-final-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.5rem;
  align-items: center;
}
.guide-split {
  display: grid;
  grid-template-columns: 1.45fr 0.55fr;
  gap: 1.75rem;
  align-items: center;
}
.guide-phone-stage {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 0.55rem;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 9 / 16.5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}
.guide-phone-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}
.guide-phone-figure {
  margin: 0 auto;
  text-align: center;
  width: 100%;
  max-width: 245px;
}
.guide-phone-figure figcaption {
  margin-top: 0.6rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.35;
}
.guide-phone-strip-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
  margin-top: 1.25rem;
}
.guide-phone-strip-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 260px));
  justify-content: center;
  gap: 1.5rem;
  align-items: start;
  margin-top: 1.25rem;
}
/* Crisp HTML Phone Preview Card for Step 5 Story Weaver Output */
.guide-weaver-mock {
  background: var(--white);
  border: 1.5px solid #2C332F;
  border-radius: 22px;
  padding: 0.85rem 0.85rem 0.75rem;
  width: 100%;
  height: 100%;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-size: 0.7rem;
  line-height: 1.48;
  color: var(--ink-soft);
}
.guide-weaver-mock-head {
  text-align: center;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--ink);
  padding-bottom: 0.45rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}
.guide-weaver-mock-title {
  font-family: var(--serif);
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--forest);
  margin-bottom: 0.35rem;
}
.guide-weaver-mock-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.guide-weaver-mock-btn {
  text-align: center;
  padding: 0.28rem 0.4rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  border: 1px solid var(--rule);
  color: var(--ink-muted);
}
.guide-weaver-mock-btn.primary {
  background: var(--forest);
  border-color: var(--forest);
  color: var(--white);
}
.guide-wide-visual {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  box-shadow: var(--shadow-sm);
}
.guide-wide-visual img { width: 100%; height: auto; display: block; }
.answer-box {
  background: var(--parchment);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--forest);
  border-radius: var(--radius-md);
  padding: clamp(1.35rem, 3vw, 2rem);
}
@media (max-width: 760px) {
  .guide-final-grid, .guide-split { grid-template-columns: 1fr; }
  .guide-phone-strip-3 { grid-template-columns: 1fr; }
  .guide-phone-strip-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
}

@media print {
  .site-header, .announcement-bar, .guide-jump-bar, .site-footer, #welcome-video, .guide-print-link {
    display: none !important;
  }
  body { background: #ffffff !important; color: #111111 !important; }
  .card { box-shadow: none !important; break-inside: avoid; }
}
