/* =====================================================================
   WHITESTONE ANCESTRY — styles.css
   ===================================================================== */

/* 0 — Reset & base
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
img, svg, video { display: block; max-width: 100%; height: auto; }
ul[role="list"], ol[role="list"] { list-style: none; }
button { cursor: pointer; font: inherit; border: none; background: none; }
input, textarea, select { font: inherit; }

/* 1 — Custom properties
   ------------------------------------------------------------------ */
:root {
  /* Core palette */
  --c-white:      #FFFFFF;
  --c-peach:      #F9D1AD;
  --c-maroon:     #650E14;
  --c-ink:        #110F0F;

  /* Derived neutrals */
  --c-cream:      #FDF6EE;
  --c-paper:      #FFFBF6;
  --c-ink-soft:   #4A4744;
  --c-line:       #ECE2D6;
  --c-maroon-700: #4E0A0F;
  --c-maroon-10:  rgba(101,14,20,.08);

  /* Gradients */
  --grad-sunset: linear-gradient(180deg, #FDE7D2 0%, #F9D1AD 45%, #FFFFFF 100%);

  /* Shape & depth */
  --radius-card: 20px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(101,14,20,.06), 0 2px 6px rgba(17,15,15,.04);
  --shadow-nav:  0 4px 20px rgba(17,15,15,.08);

  /* Layout */
  --maxw: 1140px;
  --nav-h: 76px;
  --side-pad: clamp(20px, 5vw, 48px);

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
}

/* 2 — Typography
   ------------------------------------------------------------------ */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--c-ink-soft);
  background: var(--c-white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: 'Instrument Serif', Georgia, serif;
  color: var(--c-ink);
  font-weight: 400;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.02em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -.015em;
}

h3 {
  font-size: 1.2rem;
  line-height: 1.35;
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 600;
  color: var(--c-ink);
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--c-maroon); }
a:hover { text-decoration: underline; }

strong { font-weight: 600; }

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-maroon);
  margin-bottom: 0.875rem;
}

.lead {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--c-ink-soft);
}

/* 3 — Layout utilities
   ------------------------------------------------------------------ */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--side-pad);
}

section {
  padding-block: clamp(56px, 8vw, 96px);
}

.section-cream   { background: var(--c-cream); }
.section-white   { background: var(--c-white); }
.section-sunset  { background: var(--grad-sunset); }
.section-paper   { background: var(--c-paper); }

.text-center { text-align: center; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 1.5rem; }
.mt-lg { margin-top: 2.5rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 1.5rem; }

/* 4 — Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  border-radius: var(--radius-pill);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .1s var(--ease),
              box-shadow .18s var(--ease);
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--c-maroon);
  color: var(--c-white);
  border: 2px solid transparent;
}
.btn-primary:hover {
  background: var(--c-maroon-700);
  box-shadow: 0 4px 16px rgba(101,14,20,.3);
}

.btn-secondary {
  background: transparent;
  color: var(--c-maroon);
  border: 2px solid var(--c-maroon);
}
.btn-secondary:hover {
  background: var(--c-maroon-10);
}

.btn-lg {
  padding: 1.1rem 2.25rem;
  font-size: 1.0625rem;
}

.btn-sm {
  padding: .6rem 1.25rem;
  font-size: .9rem;
}

/* 5 — Navigation
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 12px var(--side-pad);
  transition: background .2s var(--ease), backdrop-filter .2s var(--ease);
}

.site-header.scrolled {
  background: rgba(255,251,246,.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.nav-wrap {
  max-width: var(--maxw);
  margin-inline: auto;
}

.nav-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--c-white);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-nav);
  padding: 10px 10px 10px 20px;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.nav-logo img {
  height: 44px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: inline-block;
  padding: .5rem .875rem;
  font-size: .9375rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  text-decoration: none;
  border-radius: var(--radius-pill);
  transition: color .15s, background .15s;
}

.nav-links a:hover {
  color: var(--c-maroon);
  background: var(--c-maroon-10);
  text-decoration: none;
}

.nav-links a[aria-current="page"] {
  color: var(--c-maroon);
  font-weight: 600;
}

.nav-links .nav-cta .btn {
  margin-left: .5rem;
}

.nav-links .btn-primary,
.nav-links .btn-primary[aria-current="page"] {
  color: var(--c-white);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 10px;
  transition: background .15s;
  flex-shrink: 0;
}

.nav-hamburger:hover { background: var(--c-cream); }

.nav-hamburger span {
  display: block;
  height: 2px;
  background: var(--c-ink);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .25s;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 720px) {
  .nav-pill {
    flex-wrap: wrap;
    border-radius: 20px;
    padding: 12px 16px;
  }

  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 0;
    padding: .75rem 0 .25rem;
    border-top: 1px solid var(--c-line);
    margin-top: .25rem;
  }

  .nav-links.is-open { display: flex; }

  .nav-links a {
    width: 100%;
    padding: .6rem .75rem;
  }

  .nav-links .nav-cta {
    width: 100%;
    margin-top: .5rem;
  }

  .nav-links .nav-cta .btn {
    margin-left: 0;
    width: 100%;
    text-align: center;
  }
}

/* 6 — Hero
   ------------------------------------------------------------------ */
.hero {
  background: var(--grad-sunset);
  padding-block: clamp(80px, 12vw, 140px) clamp(60px, 8vw, 100px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/img/hero.png') center/cover no-repeat;
  opacity: .8;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-inline: auto;
  padding-inline: var(--side-pad);
}

.hero h1 {
  margin-bottom: .75rem;
}

.hero .subhead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.55;
  color: var(--c-ink-soft);
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image {
  margin-top: clamp(40px, 6vw, 72px);
  display: flex;
  justify-content: center;
}

.hero-image img {
  max-width: 320px;
  filter: drop-shadow(0 20px 40px rgba(101,14,20,.15));
}

/* 7 — Stat row
   ------------------------------------------------------------------ */
.stat-row {
  padding-block: clamp(40px, 5vw, 64px);
  background: var(--c-white);
}

.stat-grid {
  display: flex;
  gap: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 700px;
  margin-inline: auto;
}

.stat-item {
  flex: 1 1 180px;
  text-align: center;
  padding: 1.5rem 2rem;
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--c-line);
}

.stat-number {
  display: block;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 3.75rem);
  color: var(--c-maroon);
  line-height: 1;
  margin-bottom: .25rem;
}

.stat-label {
  font-size: .875rem;
  font-weight: 500;
  color: var(--c-ink-soft);
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* 8 — Cards & feature grid
   ------------------------------------------------------------------ */
.card {
  background: var(--c-paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--c-line);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.feature-card {
  background: var(--c-paper);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: 28px 28px 24px;
  border: 1px solid var(--c-line);
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(101,14,20,.1), 0 4px 10px rgba(17,15,15,.06);
}

.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: .5rem;
  color: var(--c-maroon);
  flex-shrink: 0;
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 0;
}

.feature-card p {
  font-size: .9375rem;
  color: var(--c-ink-soft);
  margin-bottom: 0;
}

/* 9 — Section: honest approach
   ------------------------------------------------------------------ */
.honest-band {
  background: var(--c-cream);
  border-block: 1px solid var(--c-line);
}

.honest-band blockquote {
  max-width: 680px;
  margin-inline: auto;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.5;
  color: var(--c-ink);
  font-style: italic;
  text-align: center;
}

.honest-band blockquote::before { content: '\201C'; }
.honest-band blockquote::after  { content: '\201D'; }

/* 10 — Author teaser
   ------------------------------------------------------------------ */
.author-teaser {
  display: flex;
  gap: 2rem;
  align-items: center;
  max-width: 800px;
  margin-inline: auto;
  flex-wrap: wrap;
  text-align: center;
}

.author-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--c-peach);
  flex-shrink: 0;
  margin-inline: auto;
}

.author-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--c-peach);
  border: 3px solid var(--c-peach);
  flex-shrink: 0;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-maroon);
}

.author-photo-placeholder svg {
  width: 60px;
  height: 60px;
}

.author-bio { flex: 1 1 260px; }

/* 11 — CTA band
   ------------------------------------------------------------------ */
.cta-band {
  background: var(--grad-sunset);
  text-align: center;
  border-top: 1px solid var(--c-line);
}

.cta-card {
  display: inline-block;
  max-width: 520px;
  width: 100%;
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  padding: clamp(32px, 5vw, 52px) clamp(24px, 4vw, 44px);
  border: 1px solid var(--c-line);
}

.cta-card .book-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  color: var(--c-ink);
  margin-bottom: .25rem;
}

.cta-card .book-subtitle {
  font-size: .9rem;
  color: var(--c-ink-soft);
  margin-bottom: 1.5rem;
}

.price-display {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(2.8rem, 5vw, 3.5rem);
  color: var(--c-maroon);
  line-height: 1;
  margin-bottom: .25rem;
}

.price-note {
  font-size: .875rem;
  color: var(--c-ink-soft);
  margin-bottom: 1.75rem;
}

.trust-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .8125rem;
  color: var(--c-ink-soft);
  margin-top: .875rem;
}

.trust-line::before {
  content: '🔒';
  font-size: .875rem;
}

/* 12 — FAQ Accordion
   ------------------------------------------------------------------ */
.faq-list {
  max-width: 760px;
  margin-inline: auto;
  margin-top: 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--c-line);
}

.faq-item:first-child {
  border-top: 1px solid var(--c-line);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1.25rem 0;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-ink);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  transition: color .15s;
}

.faq-question:hover { color: var(--c-maroon); }

.faq-question[aria-expanded="true"] { color: var(--c-maroon); }

.faq-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .2s, transform .3s var(--ease);
  color: var(--c-ink-soft);
  font-size: 1rem;
  font-weight: 400;
}

.faq-question[aria-expanded="true"] .faq-icon {
  background: var(--c-maroon);
  color: var(--c-white);
  transform: rotate(45deg);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .3s var(--ease);
}

.faq-answer.is-open {
  grid-template-rows: 1fr;
}

.faq-answer-inner {
  overflow: hidden;
}

.faq-answer p {
  padding-bottom: 1.25rem;
  color: var(--c-ink-soft);
  font-size: 1rem;
  line-height: 1.7;
}

/* 13 — Buy page
   ------------------------------------------------------------------ */
.buy-hero {
  background: var(--grad-sunset);
  text-align: center;
  padding-block: clamp(60px, 8vw, 100px) clamp(40px, 5vw, 60px);
}

.buy-price-block {
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  display: inline-block;
  padding: 2rem 2.5rem;
  margin-top: 2rem;
  border: 1px solid var(--c-line);
  min-width: 300px;
}

.toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0;
  counter-reset: toc;
}

.toc-item {
  display: flex;
  gap: .875rem;
  align-items: flex-start;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--c-line);
  border-right: 1px solid var(--c-line);
}

.toc-item:nth-child(2n) { border-right: none; }

@media (min-width: 700px) {
  .toc-item:nth-last-child(-n+2) { border-bottom: none; }
}

.toc-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.25rem;
  color: var(--c-maroon);
  line-height: 1.2;
  min-width: 28px;
  flex-shrink: 0;
}

.toc-text {
  font-size: .9375rem;
  font-weight: 500;
  color: var(--c-ink);
  padding-top: .1rem;
}

/* Peek gallery */
.peek-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.peek-thumb {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--c-line);
  transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
  aspect-ratio: 8.5/11;
  background: var(--c-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.peek-thumb:hover {
  border-color: var(--c-maroon);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(101,14,20,.15);
}

.peek-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.peek-thumb .peek-label {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(17,15,15,.65);
  color: #fff;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 3px 10px;
  border-radius: 999px;
  pointer-events: none;
}

.peek-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: var(--c-ink-soft);
  font-size: .8rem;
  text-align: center;
  padding: 1rem;
}

.peek-placeholder .icon { font-size: 2rem; }

/* Honest expectations note */
.disclaimer-note {
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  font-size: .875rem;
  color: var(--c-ink-soft);
  line-height: 1.6;
}

/* 14 — Lightbox
   ------------------------------------------------------------------ */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17,15,15,.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-overlay.is-open {
  display: flex;
}

.lightbox-inner {
  position: relative;
  max-width: 800px;
  max-height: 90vh;
  width: 100%;
}

.lightbox-inner img {
  border-radius: 12px;
  max-height: 85vh;
  width: 100%;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}

.lightbox-close {
  position: absolute;
  top: -48px;
  right: 0;
  color: #fff;
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  transition: background .15s;
}

.lightbox-close:hover { background: rgba(255,255,255,.25); }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 1.5rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  transition: background .15s;
}

.lightbox-nav:hover { background: rgba(255,255,255,.25); }
.lightbox-prev { left: -60px; }
.lightbox-next { right: -60px; }

@media (max-width: 900px) {
  .lightbox-prev { left: 4px; }
  .lightbox-next { right: 4px; }
}

/* 15 — Contact form
   ------------------------------------------------------------------ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 3rem;
  align-items: start;
  max-width: 900px;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.contact-info h3 { margin-bottom: .75rem; }

.contact-email-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  font-size: 1rem;
  margin-top: .5rem;
  color: var(--c-maroon);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .375rem;
  margin-bottom: 1.125rem;
}

.form-group label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--c-ink);
}

.form-group input,
.form-group textarea {
  padding: .75rem 1rem;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-white);
  font-size: 1rem;
  color: var(--c-ink);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-maroon);
  box-shadow: 0 0 0 3px rgba(101,14,20,.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 140px;
}

.honeypot { display: none; }

.form-notice {
  font-size: .8125rem;
  color: var(--c-ink-soft);
  margin-top: .5rem;
}

.form-message {
  padding: 1rem 1.25rem;
  border-radius: 10px;
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.form-message--success {
  background: #f0faf0;
  border: 1px solid #a3d9a5;
  color: #1a5c20;
}

.form-message--error {
  background: #fff0f0;
  border: 1px solid #f5a5a5;
  color: #7a1010;
}

/* 16 — Pull quote
   ------------------------------------------------------------------ */
.pull-quote {
  border-left: 4px solid var(--c-peach);
  padding: 1.25rem 1.5rem 1.25rem 2rem;
  margin-block: 2rem;
  background: var(--c-cream);
  border-radius: 0 12px 12px 0;
}

.pull-quote blockquote {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  color: var(--c-maroon);
  font-style: italic;
  line-height: 1.45;
}

/* 17 — About / prose pages
   ------------------------------------------------------------------ */
.prose-page .page-header {
  background: var(--grad-sunset);
  padding-block: clamp(56px, 7vw, 88px) clamp(40px, 5vw, 60px);
  text-align: center;
}

.prose-content {
  max-width: 720px;
  margin-inline: auto;
}

.prose-content p { margin-bottom: 1.25em; }

.prose-content h2 {
  margin-top: 2em;
  margin-bottom: .75em;
}

.prose-content ul {
  margin: 0 0 1.25em 1.5em;
}

.prose-content ul li {
  margin-bottom: .4em;
}

.disclaimer-box {
  background: var(--c-cream);
  border: 1px solid var(--c-line);
  border-left: 4px solid var(--c-maroon);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  font-size: .9375rem;
  margin-block: 1.75rem;
}

/* 18 — Thank-you / Download page
   ------------------------------------------------------------------ */
.thankyou-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-sunset);
  padding: var(--side-pad);
}

.thankyou-card {
  background: var(--c-white);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px rgba(101,14,20,.12);
  padding: clamp(36px, 6vw, 60px) clamp(28px, 5vw, 52px);
  max-width: 540px;
  width: 100%;
  text-align: center;
}

.thankyou-icon {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

/* 19 — 404 page
   ------------------------------------------------------------------ */
.notfound-page {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--side-pad);
  background: var(--c-cream);
}

.notfound-page .big-num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(5rem, 15vw, 10rem);
  color: var(--c-maroon);
  line-height: 1;
  opacity: .2;
}

/* 20 — Footer
   ------------------------------------------------------------------ */
.site-footer {
  background: var(--c-cream);
  border-top: 1px solid var(--c-line);
  padding-block: clamp(48px, 6vw, 80px) 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 2rem 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--c-line);
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand { grid-column: 1 / -1; }
}

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

.footer-logo img {  width: auto; margin-bottom: .75rem; }

.footer-tagline {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 1.1rem;
  color: var(--c-ink);
  margin-bottom: .75rem;
  line-height: 1.4;
}

.footer-legal-note {
  font-size: .8125rem;
  color: var(--c-ink-soft);
  line-height: 1.55;
  max-width: 340px;
}

.footer-heading {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--c-ink);
  margin-bottom: .875rem;
  font-family: 'Inter', sans-serif;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-col a {
  font-size: .9rem;
  color: var(--c-ink-soft);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--c-maroon);
  text-decoration: underline;
}

.footer-email {
  display: block;
  font-size: .9375rem;
  font-weight: 600;
  color: var(--c-maroon);
  word-break: break-all;
  margin-bottom: .5rem;
}

.footer-contact-link a {
  font-size: .9rem;
  color: var(--c-ink-soft);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .5rem;
  padding-block: 1.25rem;
  font-size: .8125rem;
  color: var(--c-ink-soft);
}

.footer-stripe-note a { color: var(--c-ink-soft); }

/* 21 — Scroll-reveal
   ------------------------------------------------------------------ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* 22 — Focus / accessibility
   ------------------------------------------------------------------ */
:focus-visible {
  outline: 3px solid var(--c-maroon);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 23 — Reduced motion
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
