/* ==========================================================================
   Wellness Daily: "Never Eat Alone" E-Book Landing Page Stylesheet
   Theme: Light Brown & Warm Peach Luxury Editorial UI
   Engineered for High Engagement, Modern Aesthetics & Multi-Device Polish
   ========================================================================== */

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

:root {
  /* Core Light Brown & Warm Peach Palette */
  --bg: #fffbf7;             /* Softest champagne ivory */
  --bg-soft: #faefe6;        /* Warm delicate peach tint */
  --bg-subtle: #f5dfcf;      /* Rich peach accent */
  --bg-card: #ffffff;        /* Crisp card white */
  
  --ink: #26140b;            /* Deep espresso brown (primary heading) */
  --ink-soft: #4a3023;       /* Warm mocha brown (body text) */
  --ink-mid: #6b4c39;        /* Medium chestnut brown */
  --ink-mute: #94725d;       /* Soft taupe / latte */
  
  --rule: #edd7c6;           /* Delicate peach divider */
  --rule-peach: #f4cfb6;     /* Warm peach border */
  
  /* Primary Terracotta & Warm Brown Accents */
  --primary: #8e4225;        /* Rich warm terracotta brown */
  --primary-hover: #733118;  /* Deep chocolate brown */
  --primary-dk: #54220e;     /* Dark espresso */
  --primary-light: #fbeade;  /* Soft peach badge background */
  --primary-border: #f4ba98;
  --primary-glow: rgba(142, 66, 37, 0.22);
  
  /* Peach Tones */
  --peach: #f39e6f;          /* Warm vibrant peach */
  --peach-light: #fdf3ec;    /* Blush peach */
  --peach-deep: #df7548;     /* Amber peach */
  --peach-glow: rgba(243, 158, 111, 0.28);
  
  --espresso: #1b0e07;       /* Deepest dark chocolate */
  --espresso-card: #26150c;
  
  --success: #059669;
  --success-bg: #ecfdf5;
  --star-gold: #e58a15;

  /* Typography */
  --font-heading: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(16px, 3.5vw, 28px);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Shadows & Elevation */
  --shadow-sm: 0 2px 8px -2px rgba(43, 23, 15, 0.05);
  --shadow-card: 0 14px 34px -10px rgba(43, 23, 15, 0.08), 0 4px 8px -2px rgba(43, 23, 15, 0.03);
  --shadow-cover: 0 30px 65px -15px rgba(43, 23, 15, 0.32), 0 16px 30px -8px rgba(43, 23, 15, 0.2);
  --shadow-btn: 0 10px 25px -4px rgba(142, 66, 37, 0.38);
  --shadow-btn-hover: 0 16px 34px -5px rgba(142, 66, 37, 0.48);

  color-scheme: light;
}

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

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

body {
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

/* Warm Ambient Background Glows */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 700px;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 80% -10%, rgba(243, 158, 111, 0.22) 0%, rgba(223, 117, 72, 0.08) 45%, transparent 75%);
}

.container {
  max-width: var(--container);
  padding: 0 var(--gutter);
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-variation-settings: "SOFT" 40, "opsz" 144;
  color: var(--ink);
  letter-spacing: -0.022em;
  line-height: 1.12;
  font-weight: 600;
  margin-bottom: 0.5em;
}

h1 {
  font-size: clamp(2.8rem, 5.8vw, 4.4rem);
  font-weight: 600;
  line-height: 1.05;
}

h2 {
  font-size: clamp(2.1rem, 4.2vw, 3.2rem);
  letter-spacing: -0.02em;
}

h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

p {
  margin-bottom: 1em;
}

/* Eyebrow badge / pill */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--rule-peach);
  padding: 6px 15px;
  border-radius: var(--radius-full);
  font-size: 0.74rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.eyebrow--gold {
  color: #8c4428;
  background: #fdf0e7;
  border-color: #f7d2bc;
}

.eyebrow--sage {
  color: #047857;
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.eyebrow--paper {
  color: #f4ba98;
  background: rgba(244, 186, 152, 0.15);
  border-color: rgba(244, 186, 152, 0.3);
}

.display-num {
  font-family: var(--font-heading);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  color: var(--primary);
  font-size: clamp(3.5rem, 8vw, 6.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.rule {
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  display: flex;
}

.rule::before,
.rule::after {
  content: "";
  background: var(--rule);
  flex: 1;
  height: 1px;
}

/* ==========================================================================
   Buttons (High-Converting Luxury Terracotta & Peach)
   ========================================================================== */
.btn {
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #9b4a2c 0%, #78341a 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  white-space: nowrap;
  cursor: pointer;
  align-items: center;
  gap: 10px;
  padding: 15px 28px;
  font-size: 0.96rem;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: all 0.25s cubic-bezier(0.16, 0.84, 0.27, 1);
  display: inline-flex;
  position: relative;
  overflow: hidden;
}

/* Shimmer Highlight on Button */
.btn::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.25), transparent);
  transform: rotate(30deg);
  pointer-events: none;
  transition: 0.75s ease;
}

.btn:hover::before {
  left: 130%;
}

.btn::after {
  content: "→";
  font-family: var(--font-heading);
  font-size: 1.15rem;
  transition: transform 0.25s ease;
}

.btn:hover {
  background: linear-gradient(135deg, #88391d 0%, #602611 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-btn-hover);
}

.btn:hover::after {
  transform: translateX(4px);
}

.btn--ox {
  background: linear-gradient(135deg, #934427 0%, #af5431 100%);
}

.btn--ox:hover {
  background: linear-gradient(135deg, #7c3319 0%, #954224 100%);
}

.btn--ghost {
  background: #ffffff;
  color: var(--ink) !important;
  border: 1.5px solid var(--rule);
  box-shadow: var(--shadow-sm);
}

.btn--ghost:hover {
  background: var(--bg-soft);
  border-color: var(--primary-border);
  color: var(--primary) !important;
  box-shadow: 0 6px 16px -4px rgba(142, 66, 37, 0.15);
}

.btn--block {
  justify-content: center;
  width: 100%;
  display: flex;
}

.btn--big {
  padding: 18px 36px;
  font-size: 1.08rem;
  font-weight: 700;
  border-radius: 14px;
}

/* ==========================================================================
   Header: Announcement Bar & Sticky Navigation
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #26140b 0%, #3e2013 50%, #26140b 100%);
  color: #fdf3ec;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 9px var(--gutter);
  text-align: center;
  border-bottom: 1px solid #482718;
  position: relative;
  z-index: 40;
}

.announcement-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.announcement-bar__pill {
  background: rgba(243, 158, 111, 0.25);
  color: var(--peach);
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.68rem;
  text-transform: uppercase;
  border: 1px solid rgba(243, 158, 111, 0.4);
}

.announcement-bar a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
}

.announcement-bar a:hover {
  color: var(--peach);
}

/* Sticky Main Navigation */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 35;
  background: rgba(255, 251, 247, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: all 0.3s ease;
}

.navbar.is-scrolled {
  box-shadow: 0 8px 24px -6px rgba(43, 23, 15, 0.08);
  background: rgba(255, 251, 247, 0.98);
}

.navbar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo__badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #8e4225 0%, #26140b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(142, 66, 37, 0.25);
  border: 1px solid var(--rule-peach);
}

.logo__text {
  display: flex;
  flex-direction: column;
}

.logo__brand {
  font-family: var(--font-heading);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.logo__sub {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 600;
}

/* Nav Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  list-style: none;
}

.nav-links a {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-links a:hover {
  color: var(--primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-cta .btn {
  padding: 10px 22px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
  font-size: 1.5rem;
}

/* Mobile Nav Drawer */
.mobile-drawer {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--rule);
  padding: 20px var(--gutter);
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-drawer a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fffbf7 0%, #faeee4 70%, #fffbf7 100%);
  border-bottom: 1px solid var(--rule);
}

.hero__grid {
  grid-template-columns: 1.18fr 0.82fr;
  align-items: center;
  gap: 54px;
  display: grid;
}

.hero__social-proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--rule-peach);
  border-radius: var(--radius-full);
  padding: 6px 18px 6px 8px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.hero__avatars {
  display: flex;
  align-items: center;
}

.hero__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: #ffffff;
  margin-left: -8px;
}

.hero__avatar:first-child {
  margin-left: 0;
  background: #8e4225;
}
.hero__avatar:nth-child(2) { background: #df7548; }
.hero__avatar:nth-child(3) { background: #059669; }
.hero__avatar:nth-child(4) { background: #26140b; }

.hero__rating-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.hero__rating-text strong {
  color: var(--ink);
}

.hero__headline {
  font-size: clamp(2.6rem, 5.2vw, 4.2rem);
  font-weight: 600;
  line-height: 1.06;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin-bottom: 22px;
}

.hero__headline em {
  color: var(--primary);
  font-variation-settings: "SOFT" 100, "opsz" 144;
  font-style: italic;
  position: relative;
}

.hero__sub {
  max-width: 56ch;
  color: var(--ink-soft);
  margin-bottom: 32px;
  font-size: 1.14rem;
  line-height: 1.68;
}

.hero__cta-box {
  margin-bottom: 38px;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.hero__trust-ticks {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.82rem;
  color: var(--ink-mid);
  font-family: var(--font-mono);
}

.hero__trust-ticks span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero__trust-ticks span::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
}

.hero__stats {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding: 18px 22px;
  display: grid;
}

.hero__stats > div {
  padding: 0 10px;
}

.hero__stats > div + div {
  border-left: 1px solid var(--rule);
  padding-left: 18px;
}

.hero__stat-num {
  font-family: var(--font-heading);
  color: var(--ink);
  margin-bottom: 2px;
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
}

.hero__stat-num em {
  color: var(--primary);
  font-style: italic;
}

.hero__stat-lab {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  font-size: 0.68rem;
  font-weight: 600;
}

/* 3D Realistic Book Presentation */
.hero__media {
  justify-self: center;
  width: 100%;
  max-width: 440px;
  position: relative;
}

.book-wrap {
  position: relative;
  perspective: 1200px;
}

.book {
  display: block;
  position: relative;
  max-width: calc(100% - 16px);
  margin-right: 14px;
  transition: transform 0.45s cubic-bezier(0.16, 0.84, 0.27, 1);
  transform: rotateY(-6deg) rotateX(4deg);
}

.book:hover {
  transform: rotateY(0deg) rotateX(0deg) translateY(-8px);
}

.book__cover {
  z-index: 2;
  width: 100%;
  box-shadow: var(--shadow-cover);
  display: block;
  position: relative;
  border-radius: 6px 14px 14px 6px;
}

.book__pages {
  z-index: 1;
  background: repeating-linear-gradient(#fdf5ee 0 2px, #ebd5c5 2px 3px);
  border-radius: 0 4px 4px 0;
  width: 16px;
  position: absolute;
  top: 1.5%;
  bottom: 1.5%;
  right: -16px;
  box-shadow: inset -2px 0 4px rgba(43, 23, 15, 0.25), 3px 3px 10px rgba(43, 23, 15, 0.2);
}

.book__corner {
  z-index: 3;
  pointer-events: none;
  width: 24px;
  height: 24px;
  position: absolute;
  right: -16px;
}

.book__corner--tr {
  clip-path: polygon(0 0, 100% 0, 100% 100%);
  background: linear-gradient(225deg, rgba(43, 23, 15, 0.28), transparent 70%);
  top: 0;
}

.book__corner--br {
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
  background: linear-gradient(315deg, rgba(43, 23, 15, 0.28), transparent 70%);
  bottom: 0;
}

/* Floating Badges Around 3D Book */
.floating-pill {
  position: absolute;
  background: #ffffff;
  border: 1px solid var(--rule-peach);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  box-shadow: 0 16px 36px -10px rgba(142, 66, 37, 0.2), 0 4px 8px -2px rgba(43, 23, 15, 0.05);
  z-index: 4;
  font-size: 0.84rem;
  line-height: 1.4;
  animation: floatSlow 5s ease-in-out infinite alternate;
}

@keyframes floatSlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

.floating-pill--top {
  top: -18px;
  right: -24px;
  background: #ffffff;
  border-color: var(--primary-border);
}

.floating-pill--top span {
  color: var(--primary);
  font-weight: 700;
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero__pull {
  bottom: -22px;
  left: -28px;
  max-width: 290px;
  animation-delay: -2.5s;
}

.hero__pull span {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  display: block;
}

/* ==========================================================================
   Sections Common
   ========================================================================== */
.sec {
  padding: 96px 0;
  position: relative;
}

.sec--warm {
  background: var(--bg-soft);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.library__intro {
  text-align: center;
  max-width: 68ch;
  margin: 0 auto 58px;
}

.library__intro h2 {
  margin-bottom: 14px;
}

.library__intro p {
  font-size: 1.08rem;
  color: var(--ink-mid);
}

/* ==========================================================================
   Interactive 7 Food Pairings Explorer Cards
   ========================================================================== */
.pairings-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  display: grid;
  margin-bottom: 36px;
}

.pair-card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.pair-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-border);
  box-shadow: var(--shadow-card);
}

.pair-card__icon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pair-card__emoji {
  font-size: 2.2rem;
  line-height: 1;
}

.pair-card__badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--rule-peach);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.pair-card h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
  color: var(--ink);
}

.pair-card__compound {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  font-weight: 600;
}

.pair-card__desc {
  font-size: 0.94rem;
  color: var(--ink-soft);
  margin-bottom: 18px;
  flex-grow: 1;
}

.pair-card__box {
  background: var(--bg-soft);
  border-left: 3px solid var(--primary);
  padding: 12px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.86rem;
}

.pair-card__box strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 2px;
}

/* ==========================================================================
   Visual Nitric Oxide Mechanism / Garden Hose Section
   ========================================================================== */
.mechanism-box {
  background: #ffffff;
  border: 1px solid var(--rule-peach);
  border-radius: var(--radius-lg);
  padding: 44px 38px;
  box-shadow: var(--shadow-card);
  margin: 48px auto 0;
  max-width: 960px;
}

.mechanism-grid {
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: center;
  display: grid;
}

.artery-card {
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid;
}

.artery-card--stiff {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.artery-card--open {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}

.artery-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.artery-card p {
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Chapters Grid
   ========================================================================== */
.library__grid {
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
}

.library__card {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 32px 28px 26px;
  transition: all 0.3s ease;
  position: relative;
}

.library__card:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--primary-border);
  transform: translateY(-3px);
}

.library__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.library__card-num {
  font-family: var(--font-heading);
  color: var(--primary);
  background: var(--bg-soft);
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  font-style: italic;
}

.library__card-tag {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  background: var(--bg-soft);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.library__card h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  color: var(--ink);
  line-height: 1.25;
}

.library__card p {
  color: var(--ink-mid);
  margin: 0 0 14px;
  font-size: 0.94rem;
  line-height: 1.58;
}

.library__card-app {
  background: var(--bg-soft);
  border-left: 3px solid var(--primary);
  padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  font-style: italic;
}

.library__card-app strong {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  display: block;
  margin-bottom: 2px;
}

/* Highlighted Cheat Sheet Bonus Card in Rich Espresso */
.library__card--bonus {
  background: linear-gradient(135deg, #24130b 0%, #3a1e12 100%);
  color: #fdf5f0;
  border: 1px solid #4a2717;
  box-shadow: 0 20px 40px -10px rgba(36, 19, 11, 0.4);
  grid-column: 1 / -1;
  padding: 38px 34px;
}

.library__card--bonus:hover {
  border-color: var(--peach);
}

.library__card--bonus .library__card-num {
  background: rgba(244, 162, 117, 0.2);
  color: var(--peach);
}

.library__card--bonus h3 {
  color: #ffffff;
  font-size: 1.5rem;
}

.library__card--bonus p {
  color: #eed6c7;
  font-size: 1rem;
}

.library__card--bonus .library__card-app {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--peach);
  color: #fdf5f0;
}

.library__card--bonus .library__card-app strong {
  color: var(--peach);
}

/* ==========================================================================
   Comparison / Truth Table Section
   ========================================================================== */
.math__grid {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
  display: grid;
}

.math__table {
  border-collapse: collapse;
  width: 100%;
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.math__table th,
.math__table td {
  text-align: left;
  border-bottom: 1px solid var(--rule);
  padding: 16px 20px;
  font-size: 0.95rem;
}

.math__table th {
  background: var(--bg-soft);
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink-mute);
  font-size: 0.72rem;
  font-weight: 600;
}

.math__table td:first-child {
  font-weight: 600;
  color: var(--ink);
  width: 30%;
}

.math__table td:nth-child(2) {
  color: #991b1b;
  width: 35%;
  font-size: 0.9rem;
}

.math__table td:last-child {
  color: var(--primary);
  font-weight: 600;
  width: 35%;
  font-size: 0.9rem;
}

.math__total td {
  background: var(--primary-light);
  border-bottom: none;
  font-weight: 700;
  color: var(--primary-hover);
}

.math__pull {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  color: var(--ink);
  margin-top: 28px;
  padding: 22px 24px;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.5;
}

.math__pull cite {
  font-style: normal;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  display: block;
}

/* ==========================================================================
   Inside Section
   ========================================================================== */
.inside__grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  display: grid;
}

.inside__features {
  margin: 0;
  padding: 0;
  list-style: none;
}

.inside__features li {
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  font-size: 0.98rem;
  display: flex;
}

.inside__features li::before {
  content: "✦";
  color: var(--primary);
  background: var(--primary-light);
  border: 1px solid var(--rule-peach);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 0.85rem;
}

.inside__card-highlight {
  background: #ffffff;
  border: 1px solid var(--rule-peach);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
}

.inside__quote {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  line-height: 1.4;
  color: var(--ink);
  font-style: italic;
  margin-bottom: 18px;
}

.inside__quote-author {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 600;
}

/* ==========================================================================
   Editions / Pricing Tier Card ($44 Edition)
   ========================================================================== */
.editions__grid {
  grid-template-columns: 1fr;
  max-width: 560px;
  margin: 0 auto;
  display: grid;
}

.tier {
  background: #ffffff;
  border: 2px solid var(--primary);
  border-radius: var(--radius-lg);
  padding: 48px 40px 40px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 20px 45px -12px rgba(142, 66, 37, 0.22);
}

.tier:hover {
  box-shadow: 0 28px 56px -14px rgba(142, 66, 37, 0.3);
  transform: translateY(-4px);
}

.tier__badge {
  background: linear-gradient(135deg, var(--primary) 0%, var(--peach-deep) 100%);
  color: #ffffff;
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  position: absolute;
  top: -14px;
  right: 32px;
  box-shadow: 0 4px 12px rgba(142, 66, 37, 0.35);
}

.tier__name {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 700;
}

.tier__price {
  font-family: var(--font-heading);
  color: var(--ink);
  margin-bottom: 4px;
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1;
}

.tier__price .original {
  color: var(--ink-mute);
  margin-right: 12px;
  font-size: 1.8rem;
  font-weight: 400;
  text-decoration: line-through;
}

.tier__note {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 24px;
  font-size: 0.74rem;
  font-weight: 500;
}

.tier__list {
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
}

.tier__list li {
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  gap: 12px;
  padding: 12px 0;
  font-size: 0.98rem;
  display: flex;
}

.tier__list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
  font-size: 1.1rem;
}

.tier__guarantee {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--ink-mid);
  border: 1px solid var(--rule);
}

.tier__guarantee-icon {
  font-size: 1.6rem;
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   Reviews / Testimonials
   ========================================================================== */
.reviews__grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  display: grid;
}

.review {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 30px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s ease;
}

.review:hover {
  box-shadow: var(--shadow-card);
  border-color: var(--primary-border);
  transform: translateY(-2px);
}

.review__stars {
  color: var(--star-gold);
  letter-spacing: 2px;
  margin-bottom: 14px;
  font-size: 1rem;
}

.review__text {
  color: var(--ink-soft);
  margin-bottom: 18px;
  font-size: 0.96rem;
  font-style: italic;
  line-height: 1.6;
  flex-grow: 1;
}

.review__author {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--primary);
  font-size: 0.74rem;
  font-weight: 600;
}

.review__channel {
  font-size: 0.68rem;
  color: var(--ink-mute);
  display: block;
  margin-top: 2px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about__grid {
  grid-template-columns: 0.85fr 1.15fr;
  align-items: center;
  gap: 64px;
  display: grid;
}

.about__box {
  background: #ffffff;
  border: 1px solid var(--rule-peach);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.about__avatar {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--primary) 0%, #26140b 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(142, 66, 37, 0.35);
}

.about__yt-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: #dc2626;
  font-weight: 600;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq {
  max-width: 820px;
  margin: 0 auto;
}

.faq__item {
  background: #ffffff;
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq__item:hover {
  border-color: var(--primary-border);
}

.faq__item summary {
  cursor: pointer;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: 22px 28px;
  font-size: 1.18rem;
  font-weight: 600;
  list-style: none;
  position: relative;
  user-select: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  color: var(--primary);
  font-size: 1.6rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.25s ease;
  position: absolute;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
}

.faq__item[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq__item p {
  color: var(--ink-mid);
  margin: 0;
  padding: 0 28px 22px 28px;
  font-size: 1rem;
  line-height: 1.65;
}

/* ==========================================================================
   Final Urgency Order Banner
   ========================================================================== */
.order {
  background: linear-gradient(135deg, #1b0e07 0%, #31180d 100%);
  color: #ffffff;
  text-align: center;
  padding: 120px 0 100px;
  position: relative;
  overflow: hidden;
}

.order::before,
.order::after {
  content: "";
  filter: blur(90px);
  opacity: 0.35;
  pointer-events: none;
  border-radius: 50%;
  width: 600px;
  height: 600px;
  position: absolute;
}

.order::before {
  background: var(--primary);
  top: -200px;
  left: -150px;
}

.order::after {
  background: var(--peach-deep);
  bottom: -250px;
  right: -150px;
}

.order .container {
  position: relative;
  z-index: 2;
}

.order .eyebrow {
  background: rgba(244, 186, 152, 0.15);
  color: #f4ba98;
  border-color: rgba(244, 186, 152, 0.3);
}

.order h2 {
  color: #ffffff;
  max-width: 26ch;
  margin: 0 auto 18px;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
}

.order p {
  color: #eed6c7;
  max-width: 58ch;
  margin: 0 auto 36px;
  font-size: 1.15rem;
}

.order .btn {
  background: #ffffff;
  color: var(--ink) !important;
  border-color: #ffffff;
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.order .btn:hover {
  background: var(--primary);
  color: #ffffff !important;
  border-color: var(--primary);
  box-shadow: var(--shadow-btn-hover);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.colophon {
  color: #a88d7d;
  background: #120904;
  padding: 56px 0 42px;
  border-top: 1px solid #2d180e;
}

.colophon__row {
  border-bottom: 1px solid #2d180e;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  display: grid;
}

.colophon__brand {
  font-family: var(--font-heading);
  color: #ffffff;
  white-space: nowrap;
  font-size: 1.5rem;
  font-style: italic;
}

.colophon__brand em {
  color: var(--peach);
  font-style: normal;
  font-size: 1.1rem;
}

.colophon__nav {
  justify-content: center;
  gap: clamp(12px, 1.8vw, 24px);
  display: flex;
}

.colophon__nav a {
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #d8c1b3;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.colophon__nav a:hover {
  color: var(--peach);
}

.colophon__date {
  font-family: var(--font-mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8c6f5e;
  text-align: right;
  font-size: 0.72rem;
}

.colophon__legal {
  color: #7d6152;
  max-width: 86ch;
  font-size: 0.8rem;
  line-height: 1.55;
  margin: 0;
}

/* ==========================================================================
   Floating Bottom Mobile Action Bar
   ========================================================================== */
.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 251, 247, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--rule-peach);
  padding: 10px var(--gutter);
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 -4px 16px rgba(43, 23, 15, 0.08);
}

.mobile-sticky-bar.is-visible {
  display: flex;
}

.mobile-sticky-bar__info {
  display: flex;
  flex-direction: column;
}

.mobile-sticky-bar__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}

.mobile-sticky-bar__price {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--primary);
  font-weight: 700;
}

.mobile-sticky-bar .btn {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* ==========================================================================
   Exit-Intent Modal
   ========================================================================== */
.modal {
  z-index: 100;
  justify-content: center;
  align-items: center;
  padding: 24px;
  display: flex;
  position: fixed;
  inset: 0;
}

.modal[hidden] {
  display: none;
}

.modal__bd {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(27, 14, 7, 0.75);
  position: absolute;
  inset: 0;
}

.modal__card {
  background: #ffffff;
  border: 1px solid var(--rule-peach);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  box-shadow: 0 25px 60px -15px rgba(43, 23, 15, 0.4);
  text-align: center;
  padding: 44px 36px 32px;
  position: relative;
  z-index: 2;
}

.modal__close {
  cursor: pointer;
  color: var(--ink-mute);
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  line-height: 1;
  position: absolute;
  top: 16px;
  right: 18px;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s;
}

.modal__close:hover {
  color: var(--ink);
  background: var(--bg-soft);
}

.modal__cover {
  width: 130px;
  margin: 0 auto 18px;
}

.modal__cover img {
  width: 100%;
  box-shadow: var(--shadow-cover);
  border-radius: 6px;
}

.modal__card h2 {
  margin-bottom: 10px;
  font-size: 1.8rem;
}

.modal__card h2 em {
  color: var(--primary);
  font-style: italic;
}

.modal__card p {
  margin-bottom: 22px;
  font-size: 0.96rem;
  color: var(--ink-mid);
}

.modal__small {
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 16px;
  font-size: 0.72rem;
}

.modal__small a {
  color: var(--primary);
  font-weight: 600;
}

/* ==========================================================================
   Live Sale Notifications Toast
   ========================================================================== */
.salenotif {
  background: #ffffff;
  border: 1px solid var(--rule-peach);
  border-radius: var(--radius-md);
  z-index: 60;
  width: 360px;
  max-width: calc(100vw - 40px);
  opacity: 0;
  pointer-events: auto;
  align-items: center;
  gap: 14px;
  padding: 16px 36px 16px 16px;
  transition: transform 0.5s cubic-bezier(0.16, 0.84, 0.27, 1), opacity 0.4s ease;
  display: flex;
  position: fixed;
  bottom: 22px;
  left: 22px;
  transform: translateX(-130%);
  box-shadow: 0 16px 36px -8px rgba(43, 23, 15, 0.18), 0 4px 10px -2px rgba(142, 66, 37, 0.1);
}

.salenotif.is-show {
  opacity: 1;
  transform: translateX(0);
}

.salenotif::before {
  content: "";
  background: linear-gradient(180deg, var(--primary) 0%, var(--peach) 100%);
  width: 4px;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
}

.salenotif__avatar {
  background: linear-gradient(135deg, var(--primary) 0%, #26140b 100%);
  width: 42px;
  height: 42px;
  color: #ffffff;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  display: flex;
  box-shadow: 0 4px 10px rgba(142, 66, 37, 0.3);
}

.salenotif__body {
  min-width: 0;
  color: var(--ink);
  flex: 1;
  font-size: 0.9rem;
  line-height: 1.35;
}

.salenotif__name {
  margin-bottom: 2px;
  font-weight: 700;
  color: var(--ink);
}

.salenotif__what {
  color: var(--ink-mid);
  font-size: 0.88rem;
}

.salenotif__what strong {
  color: var(--primary);
  font-weight: 600;
}

.salenotif__time {
  font-family: var(--font-mono);
  color: var(--ink-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 4px;
  font-size: 0.66rem;
}

.salenotif__close {
  color: var(--ink-mute);
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 4px 8px;
  font-size: 1.1rem;
  position: absolute;
  top: 8px;
  right: 8px;
}

.salenotif__close:hover {
  color: var(--ink);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1040px) {
  .nav-links, .nav-cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: left;
  }
  .hero__media {
    order: -1;
    max-width: 380px;
    margin: 0 auto;
  }
  .pairings-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .mechanism-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .math__grid,
  .inside__grid,
  .about__grid {
    grid-template-columns: 1fr;
    gap: 44px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
  }
  .editions__grid {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
  }
  .reviews__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 18px;
  }
  .sec,
  .hero {
    padding: 54px 0;
  }
  .hero {
    padding-top: 36px;
  }
  .hero h1 {
    font-size: clamp(2.2rem, 7vw, 3.2rem);
    line-height: 1.08;
  }
  .hero__media {
    max-width: min(320px, 86vw);
    margin: 0 auto 16px;
  }
  .floating-pill--top {
    display: none;
  }
  .hero__pull {
    display: none;
  }
  .hero__cta {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 12px;
  }
  .hero__cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 1.04rem;
  }
  .hero__stats {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .hero__stats > div + div {
    border-left: 0;
    border-top: 1px solid var(--rule);
    margin-top: 8px;
    padding: 14px 0 0;
  }
  .pairings-grid {
    grid-template-columns: 1fr;
  }
  .library__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .reviews__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .math__table {
    display: block;
    overflow-x: auto;
  }
  .colophon__row {
    text-align: center;
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .colophon__nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 16px;
  }
  .colophon__date {
    text-align: center;
  }
  .salenotif {
    width: calc(100vw - 24px);
    left: 12px;
    right: 12px;
    bottom: 74px; /* above mobile sticky bar */
  }
}
