/* StorySpun — landing-page prototype
 * Brand-kit aligned. Editorial luxury. No Inter, no Lucide, no neon.
 * Cormorant Garamond + Lora + Plus Jakarta Sans. Indigo + Amber + Ivory.
 */

:root {
  --indigo: #1B2B5E;
  --amber: #F4A825;
  --ivory: #FAF6F0;
  --warm-white: #FFFFFF;
  --stone: #8A7F74;
  --espresso: #2C1810;
  --sage: #6B8F71;
  --blush: #F0D5C8;
  --indigo-04: rgba(27, 43, 94, 0.04);
  --indigo-08: rgba(27, 43, 94, 0.08);
  --indigo-16: rgba(27, 43, 94, 0.16);

  --serif: "Cormorant Garamond", "Garamond", "Georgia", serif;
  --book: "Lora", Georgia, serif;
  --ui: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --t-fast: 220ms cubic-bezier(0.32, 0.72, 0, 1);
  --t-slow: 700ms cubic-bezier(0.32, 0.72, 0, 1);
}

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

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ui);
  background: var(--ivory);
  color: var(--espresso);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------------- Brand mark ---------------- */
.brand-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  background: var(--indigo);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  margin-right: 10px;
  vertical-align: middle;
}
.brand-word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--espresso);
  vertical-align: middle;
}
.brand { text-decoration: none; display: inline-flex; align-items: center; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 246, 240, 0.86);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--indigo-04);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
}
.nav { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav a { text-decoration: none; color: var(--espresso); transition: color var(--t-fast); }
.nav a:hover { color: var(--indigo); }
.nav-cta {
  background: var(--indigo); color: var(--ivory) !important;
  padding: 10px 18px; border-radius: 999px; font-weight: 500;
  transition: transform var(--t-fast), background var(--t-fast);
}
.nav-cta:hover { background: #142149; }
.nav-cta:active { transform: scale(0.98); }

@media (max-width: 720px) { .nav a:not(.nav-cta) { display: none; } }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 22px; border-radius: 999px;
  font-family: var(--ui); font-weight: 500; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 0;
  transition: transform var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
  letter-spacing: 0.005em;
}
.btn-primary { background: var(--indigo); color: var(--ivory); }
.btn-primary:hover { background: #142149; }
.btn-primary:active { transform: scale(0.98); }
.btn-secondary {
  background: transparent; color: var(--espresso);
  box-shadow: inset 0 0 0 1px var(--indigo-16);
}
.btn-secondary:hover { box-shadow: inset 0 0 0 1px var(--indigo); }
.btn-large { padding: 18px 28px; font-size: 16px; }
.btn-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
}
.btn-secondary .btn-arrow { background: var(--indigo-08); color: var(--indigo); }

/* ---------------- Eyebrow + section title ---------------- */
.eyebrow, .section-eyebrow {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--indigo);
}
.section-eyebrow { color: var(--stone); }
.section-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 14px 0 20px 0;
}
.section-lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 1.6vw, 22px);
  color: var(--stone);
  max-width: 640px;
  margin: 0 0 36px 0;
}

/* ---------------- Hero ---------------- */
.hero { padding: 56px 0 64px 0; }
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center;
}
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 600px) { .hero { padding: 36px 0 48px 0; } }

.hero-text .eyebrow { color: var(--indigo); }
.hero-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(46px, 6.5vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 14px 0 22px 0;
  color: var(--espresso);
  text-wrap: balance;
}
.hero-sub {
  font-family: var(--book);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.6;
  color: var(--stone);
  max-width: 520px;
  margin: 0 0 32px 0;
}

.hero-cta-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }

.hero-trust {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--stone);
}
.hero-trust .dot { width: 4px; height: 4px; border-radius: 999px; background: var(--stone); opacity: 0.5; }

/* Hero art — stack of 3 books */
.hero-art { position: relative; min-height: 420px; display: flex; align-items: center; justify-content: center; }
@media (max-width: 600px) { .hero-art { min-height: 300px; } }
.book-stack { position: relative; width: 320px; height: 440px; transform: rotate(-3deg); }
.book {
  position: absolute; inset: 0;
  border-radius: 6px;
  box-shadow: 0 30px 60px -20px rgba(27, 43, 94, 0.35), 0 1px 2px rgba(27, 43, 94, 0.1);
  transition: transform var(--t-slow);
}
.book-1 { transform: translate(0, 0) rotate(0deg); background: var(--indigo); z-index: 3; }
.book-2 { transform: translate(-22px, 14px) rotate(-3deg); background: var(--sage); z-index: 2; }
.book-3 { transform: translate(-44px, 26px) rotate(-6deg); background: #5D3A6E; z-index: 1; }

.book-cover {
  position: absolute; inset: 14px;
  border: 1px solid rgba(250, 246, 240, 0.36);
  border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: 32px 22px;
  text-align: center; color: var(--ivory);
}
.book-eyebrow {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 9.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
}
.book-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.book-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 23px;
  line-height: 1.16;
  letter-spacing: -0.01em;
}
.book-star {
  width: 30px; height: 30px;
  background: var(--amber);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.book-spine { display: none; }

/* ---------------- How it works ---------------- */
.how { padding: 64px 0; background: var(--warm-white); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 32px; }
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: var(--ivory);
  border-radius: 28px;
  padding: 24px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 1px 2px var(--indigo-04);
}
.step-num {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  color: var(--amber);
  line-height: 1;
}
.step-h {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  color: var(--espresso);
  margin-top: 18px;
  letter-spacing: -0.01em;
}
.step-p {
  font-family: var(--book);
  font-size: 16px;
  color: var(--stone);
  line-height: 1.6;
  margin-top: 12px;
}

/* ---------------- Sample ---------------- */
.sample { padding: 72px 0; background: var(--ivory); }
.sample-spread {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  background: var(--warm-white);
  border-radius: 36px;
  padding: 36px;
  box-shadow: 0 30px 60px -30px rgba(27, 43, 94, 0.25);
  margin-top: 36px;
}
@media (max-width: 800px) { .sample-spread { grid-template-columns: 1fr; padding: 22px; } }
.sample-page { padding: 24px; border-radius: 18px; background: var(--ivory); }
.sample-eyebrow {
  font-family: var(--ui); font-weight: 500; font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase; color: var(--amber); margin-bottom: 10px;
}
.sample-page p {
  font-family: var(--book); font-size: 16px; line-height: 1.7; color: var(--espresso);
  margin: 0 0 12px 0;
}
.sample-page-left p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 38px; font-weight: 600; line-height: 0.9;
  color: var(--indigo); float: left; margin: 4px 6px 0 0;
}

/* ---------------- Themes ---------------- */
.themes { padding: 72px 0; background: var(--warm-white); }
.theme-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin-top: 32px;
}
@media (max-width: 900px) { .theme-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .theme-grid { grid-template-columns: 1fr; } }
.theme-card {
  background: var(--ivory);
  border-radius: 24px;
  padding: 22px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 1px 2px var(--indigo-04);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.theme-card:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -16px rgba(27, 43, 94, 0.25); }
.theme-name {
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  color: var(--espresso); letter-spacing: -0.01em;
}
.theme-desc {
  font-family: var(--book); font-style: italic; font-size: 15px;
  color: var(--stone); margin-top: 6px;
}

/* ---------------- Create / form ---------------- */
.create { padding: 72px 0; background: var(--ivory); }
.create-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
@media (max-width: 900px) { .create-grid { grid-template-columns: 1fr; gap: 48px; } }

.create-text p {
  font-family: var(--book);
  font-size: 17px; line-height: 1.6; color: var(--stone); max-width: 460px;
  margin: 0 0 28px 0;
}
.trust-stack { display: flex; flex-direction: column; gap: 18px; }
.trust-item {
  background: var(--warm-white);
  padding: 18px 20px;
  border-radius: 18px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 1px 2px var(--indigo-04);
}
.trust-h {
  font-family: var(--serif); font-weight: 600; font-size: 18px;
  color: var(--espresso); letter-spacing: -0.005em;
}
.trust-p {
  font-family: var(--book); font-size: 15px; line-height: 1.55;
  color: var(--stone); margin-top: 4px;
}

.create-form {
  background: var(--warm-white);
  border-radius: 32px;
  padding: 32px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px;
  box-shadow: 0 30px 60px -30px rgba(27, 43, 94, 0.18);
}
@media (max-width: 600px) { .create-form { grid-template-columns: 1fr; padding: 22px; } }

.field { display: flex; flex-direction: column; gap: 8px; }
.field-full { grid-column: 1 / -1; }
.field-label {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 11.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
}
.field input, .field select {
  font-family: var(--book);
  font-size: 16px;
  color: var(--espresso);
  background: var(--ivory);
  border: 1px solid var(--indigo-08);
  border-radius: 14px;
  padding: 14px 16px;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  outline: none;
}
.field input:focus, .field select:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 4px var(--indigo-08);
}
.field input::placeholder { color: var(--stone); opacity: 0.6; }

.theme-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  cursor: pointer;
  position: relative;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--ivory);
  font-size: 13.5px;
  color: var(--espresso);
  border: 1px solid var(--indigo-08);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:has(input:checked) { background: var(--indigo); color: var(--ivory); border-color: var(--indigo); }
.chip:hover { border-color: var(--indigo); }

.price-row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  background: var(--ivory); padding: 18px 20px; border-radius: 18px;
}
.price-h { font-family: var(--serif); font-weight: 600; font-size: 20px; color: var(--espresso); }
.price-p { font-family: var(--book); font-size: 14px; color: var(--stone); margin-top: 2px; }
.price-tag {
  font-family: var(--serif); font-weight: 600; font-size: 38px;
  color: var(--indigo); letter-spacing: -0.01em;
}

.legal {
  grid-column: 1 / -1;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--stone);
}
.legal a { color: var(--indigo); }

/* ---------------- FAQ ---------------- */
.faq { padding: 72px 0; background: var(--warm-white); }
.faq-list { display: flex; flex-direction: column; gap: 8px; margin-top: 24px; max-width: 820px; }
.faq-list details {
  background: var(--ivory);
  border-radius: 18px;
  padding: 18px 22px;
  transition: background var(--t-fast);
}
.faq-list details:hover { background: #F5F0E5; }
.faq-list summary {
  cursor: pointer; list-style: none;
  font-family: var(--serif); font-weight: 600; font-size: 19px; color: var(--espresso);
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::after {
  content: "+";
  font-family: var(--ui);
  font-weight: 400;
  font-size: 22px;
  color: var(--indigo);
  margin-left: 18px;
  transition: transform var(--t-fast);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p {
  font-family: var(--book); font-size: 16px; line-height: 1.6;
  color: var(--stone); margin: 14px 0 0 0;
}

/* ---------------- Final CTA ---------------- */
.final-cta { padding: 96px 0; background: var(--indigo); color: var(--ivory); }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.final-cta h2 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(32px, 4vw, 52px);
  line-height: 1.05; letter-spacing: -0.015em; margin: 0;
  text-wrap: balance;
}
.final-cta .btn-primary { background: var(--amber); color: var(--espresso); }
.final-cta .btn-primary:hover { background: #E89A1B; }

/* ---------------- Footer ---------------- */
.site-footer { padding: 48px 0 56px 0; background: var(--ivory); border-top: 1px solid var(--indigo-04); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-brand { display: inline-flex; align-items: center; }
.footer-links { display: flex; gap: 22px; font-size: 14px; }
.footer-links a { color: var(--stone); text-decoration: none; transition: color var(--t-fast); }
.footer-links a:hover { color: var(--indigo); }
.footer-meta {
  margin-top: 18px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--stone);
}

/* ---------------- Cover shelf ---------------- */
.shelf { padding: 72px 0; background: var(--ivory); }

.cover-shelf {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 36px;
}
@media (max-width: 900px) { .cover-shelf { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 540px) { .cover-shelf { grid-template-columns: 1fr; gap: 24px; } }

.cover-card {
  --cover-bg: #1B2B5E;
  position: relative;
  aspect-ratio: 3 / 4;
  background: var(--cover-bg);
  border-radius: 8px;
  overflow: hidden;
  box-shadow:
    0 30px 60px -30px rgba(27, 43, 94, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
  transition: transform var(--t-slow), box-shadow var(--t-slow);
  color: var(--ivory);
  cursor: default;
  isolation: isolate;
}

/* shelf-stagger rotation, subtle */
.cover-card-1 { transform: rotate(-1.2deg); }
.cover-card-2 { transform: rotate(0.8deg); }
.cover-card-3 { transform: rotate(-0.6deg); }
.cover-card-4 { transform: rotate(1deg); }
.cover-card-5 { transform: rotate(-0.9deg); }
.cover-card-6 { transform: rotate(0.5deg); }

.cover-card:hover {
  transform: translateY(-4px) rotate(0deg);
  box-shadow:
    0 50px 80px -30px rgba(27, 43, 94, 0.55),
    0 2px 3px rgba(0, 0, 0, 0.12),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* paper-grain overlay, very subtle */
.cover-card::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.06) 0, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(0, 0, 0, 0.12) 0, transparent 50%);
  z-index: 1;
  pointer-events: none;
}

/* spine illusion on the left */
.cover-card::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.22), transparent);
  z-index: 1;
  pointer-events: none;
}

.cover-inner {
  position: absolute; inset: 14px;
  border: 1px solid rgba(250, 246, 240, 0.32);
  border-radius: 4px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: 22px 16px 18px 16px;
  text-align: center;
  z-index: 2;
}

.cover-eyebrow {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 8.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--amber);
}

.cover-name {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 30px);
  line-height: 1.05;
  letter-spacing: -0.005em;
  color: var(--ivory);
  margin-top: 4px;
}

.cover-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(14px, 1.7vw, 17px);
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ivory);
  margin-top: 6px;
  padding: 0 4px;
  text-wrap: balance;
}

.cover-ornament {
  width: 44px; height: 44px;
  color: var(--amber);
  margin: 6px 0;
}

.cover-imprint {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 7.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(250, 246, 240, 0.6);
}

/* "Peek inside" hint shown on hover/focus of each cover */
.cover-hint {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 3;
  font-family: var(--ui);
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  background: rgba(27, 43, 94, 0.55);
  padding: 6px 10px;
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity var(--t-fast), transform var(--t-fast);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.cover-card[data-book] {
  cursor: pointer;
  outline: none;
}
.cover-card[data-book]:hover .cover-hint,
.cover-card[data-book]:focus-visible .cover-hint {
  opacity: 1;
  transform: translateY(0);
}
.cover-card[data-book]:focus-visible {
  box-shadow:
    0 30px 60px -30px rgba(27, 43, 94, 0.4),
    0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 0 0 1px rgba(0, 0, 0, 0.08),
    0 0 0 3px var(--amber);
}

.shelf-note {
  font-family: var(--book);
  font-style: italic;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--stone);
  text-align: center;
  margin: 36px auto 0 auto;
  max-width: 580px;
}

/* ---------------- Taster / lead magnet ---------------- */
.taster { padding: 96px 0; background: var(--warm-white); }
.taster-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
@media (max-width: 800px) { .taster-grid { grid-template-columns: 1fr; gap: 32px; } }

.taster-text p {
  font-family: var(--book);
  font-size: 17px; line-height: 1.6; color: var(--stone);
  max-width: 460px; margin: 0 0 22px 0;
}
.taster-trust {
  font-family: var(--ui); font-size: 12.5px; letter-spacing: 0.04em;
  color: var(--stone);
}

.taster-form {
  background: var(--ivory);
  border-radius: 28px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 18px 36px -20px rgba(27,43,94,0.16);
}
.taster-form .btn { width: 100%; justify-content: center; }
.taster-meta {
  font-family: var(--ui); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone); text-align: center; margin-top: 4px;
}

/* ---------------- Trust + data safety ---------------- */
.trust { padding: 96px 0; background: var(--ivory); }
.trust-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start;
}
@media (max-width: 900px) { .trust-grid { grid-template-columns: 1fr; gap: 32px; } }

.trust-text { position: sticky; top: 120px; }
.trust-text p {
  font-family: var(--book);
  font-size: 17px; line-height: 1.6; color: var(--stone);
  max-width: 380px; margin: 0;
}
@media (max-width: 900px) {
  .trust-text { position: static; top: auto; }
}

.trust-promises {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
}
@media (max-width: 700px) { .trust-promises { grid-template-columns: 1fr; } }

.trust-promise {
  background: var(--warm-white);
  border-radius: 24px;
  padding: 22px 22px 24px 22px;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.5), 0 1px 2px var(--indigo-04);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.trust-promise:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -16px rgba(27,43,94,0.18); }

.trust-icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--indigo-08);
  color: var(--indigo);
  margin-bottom: 14px;
}

.trust-promise .trust-h {
  font-family: var(--serif); font-weight: 600; font-size: 19px;
  color: var(--espresso); letter-spacing: -0.01em; line-height: 1.2;
}
.trust-promise .trust-p {
  font-family: var(--book); font-size: 14.5px; line-height: 1.55;
  color: var(--stone); margin-top: 8px;
}
.trust-promise a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }

.trust-footer {
  grid-column: 1 / -1;
  margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  border-top: 1px solid var(--indigo-04);
  padding-top: 18px;
}
.trust-badge {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--stone);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--warm-white);
  box-shadow: inset 0 0 0 1px var(--indigo-04);
}
.trust-badge-dot {
  width: 6px; height: 6px; border-radius: 999px;
  background: var(--sage);
}

/* Mobile: tighten the trust -> create transition so the page flows */
@media (max-width: 640px) {
  .trust { padding: 56px 0 40px; }
  .create { padding: 40px 0 56px; }
  .trust-footer { margin-top: 8px; padding-top: 16px; }
}

/* ---------------- Hero glow + minor polish ---------------- */
.hero-art { position: relative; }
.hero-art-glow {
  position: absolute; inset: 10% 5% 10% 5%;
  background: radial-gradient(circle at 60% 40%, rgba(244, 168, 37, 0.18) 0, transparent 55%);
  filter: blur(40px);
  z-index: -1;
  pointer-events: none;
}

/* ---------------- Standalone pages ---------------- */
.page-doc { padding: 120px 0 96px 0; background: var(--ivory); }
.page-doc article { max-width: 720px; margin: 0 auto; }
.page-doc h1 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(38px, 4.5vw, 56px); line-height: 1.06;
  letter-spacing: -0.02em; margin: 0 0 6px 0;
}
.page-doc .doc-meta {
  font-family: var(--ui); font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--stone); margin-bottom: 28px;
}
.page-doc h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(22px, 2vw, 26px); letter-spacing: -0.01em;
  margin: 36px 0 10px 0; color: var(--espresso);
}
.page-doc p, .page-doc li {
  font-family: var(--book); font-size: 16.5px; line-height: 1.7;
  color: var(--espresso);
}
.page-doc ul { padding-left: 22px; }
.page-doc a { color: var(--indigo); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- Pricing tiers (form) ---------------- */
.price-tiers {
  display: flex; flex-direction: column; gap: 10px;
}
.tier-card {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: 14px;
  align-items: center;
  background: var(--ivory);
  padding: 14px 18px;
  border-radius: 16px;
  border: 1px solid var(--indigo-08);
  cursor: pointer;
  transition: border-color var(--t-fast), box-shadow var(--t-fast), background var(--t-fast);
}
.tier-card input { position: absolute; opacity: 0; pointer-events: none; }
.tier-pick {
  width: 18px; height: 18px;
  border-radius: 999px;
  border: 1.5px solid var(--indigo-16);
  background: var(--warm-white);
  position: relative;
  transition: border-color var(--t-fast), background var(--t-fast);
}
.tier-pick::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 999px;
  background: var(--indigo);
  opacity: 0;
  transform: scale(0.6);
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.tier-card:has(input:checked) {
  border-color: var(--indigo);
  background: var(--warm-white);
  box-shadow: 0 1px 2px var(--indigo-04), inset 0 0 0 1px var(--indigo);
}
.tier-card:has(input:checked) .tier-pick { border-color: var(--indigo); }
.tier-card:has(input:checked) .tier-pick::after { opacity: 1; transform: scale(1); }
.tier-card:hover { border-color: var(--indigo); }

.tier-h {
  font-family: var(--serif); font-weight: 600; font-size: 17px;
  color: var(--espresso); letter-spacing: -0.005em;
}
.tier-p {
  font-family: var(--book); font-size: 13.5px; line-height: 1.45;
  color: var(--stone); margin-top: 2px;
}
.tier-price {
  font-family: var(--serif); font-weight: 600; font-size: 22px;
  color: var(--indigo); letter-spacing: -0.01em;
}

/* ---------------- 3D Reader (interactive book modal) ---------------- */
.reader {
  position: fixed; inset: 0;
  z-index: 200;
  display: flex; align-items: center; justify-content: center;
  perspective: 2200px;
  perspective-origin: 50% 35%;
}
.reader-overlay {
  position: absolute; inset: 0;
  background: rgba(20, 24, 50, 0.78);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}
.reader-stage {
  position: relative;
  width: min(900px, 92vw);
  display: flex; flex-direction: column; align-items: center;
  gap: 22px;
}
.reader-close {
  position: absolute; top: 24px; right: 24px;
  z-index: 4;
  width: 44px; height: 44px;
  border-radius: 999px;
  border: 0;
  background: rgba(250, 246, 240, 0.12);
  color: var(--ivory);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), transform var(--t-fast);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.reader-close:hover { background: rgba(250, 246, 240, 0.22); }
.reader-close:active { transform: scale(0.96); }

.reader-book {
  position: relative;
  width: min(820px, 90vw);
  aspect-ratio: 1.42 / 1;
  transform-style: preserve-3d;
}

.reader-cover, .reader-page {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
}

/* Cover starts on the LEFT (closed = covering the left page-position),
   rotates around its RIGHT edge (the spine) so it swings out to the LEFT. */
.reader-cover {
  --cover-bg: #1B2B5E;
  left: 0;
  background: var(--cover-bg);
  border-radius: 6px 2px 2px 6px;
  transform-origin: right center;
  transform-style: preserve-3d;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(0, 0, 0, 0.12);
  color: var(--ivory);
  z-index: 2;
  isolation: isolate;
  overflow: hidden;
  backface-visibility: hidden;
}
.reader-cover::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.08) 0, transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(0, 0, 0, 0.18) 0, transparent 50%);
  pointer-events: none;
}
.reader-cover::after {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 6px;
  background: linear-gradient(to right, rgba(0,0,0,0.32), transparent);
  pointer-events: none;
}
.reader-cover .cover-inner {
  position: absolute; inset: 14px;
  border: 1px solid rgba(250, 246, 240, 0.32);
  border-radius: 4px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: 6% 8% 5% 8%;
  text-align: center;
}
.reader-cover .cover-eyebrow {
  font-family: var(--ui); font-weight: 500;
  font-size: clamp(9px, 0.9vw, 11px);
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--amber);
}
.reader-cover .cover-name {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(28px, 4.4vw, 44px);
  line-height: 1.05; letter-spacing: -0.005em;
  color: var(--ivory);
  margin-top: 8px;
}
.reader-cover .cover-title {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(18px, 2.4vw, 26px);
  line-height: 1.18; letter-spacing: -0.005em;
  color: var(--ivory);
  margin-top: 10px;
}
.reader-cover .cover-ornament {
  width: clamp(46px, 6vw, 70px);
  height: clamp(46px, 6vw, 70px);
  color: var(--amber);
}
.reader-cover .cover-imprint {
  font-family: var(--ui); font-weight: 500;
  font-size: clamp(8px, 0.8vw, 10px);
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(250, 246, 240, 0.6);
}

/* Back of cover — the side you see when the book is open */
.reader-cover-back {
  position: absolute; inset: 0;
  background: #efe7d6;
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.04) 0, transparent 25%),
    repeating-linear-gradient(0deg, rgba(0,0,0,0.025) 0px, rgba(0,0,0,0.025) 1px, transparent 1px, transparent 4px);
  border-radius: 2px 6px 6px 2px;
  transform: rotateY(180deg);
  backface-visibility: hidden;
  box-shadow: inset 0 0 24px rgba(0,0,0,0.08);
}

/* Inner page — sits behind the cover, visible after the cover swings open */
.reader-page {
  right: 0;
  background: #FAF6F0;
  border-radius: 2px 8px 8px 2px;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.45),
    inset 1px 0 0 rgba(0, 0, 0, 0.06);
  z-index: 1;
}
.reader-page-inner {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  padding: 8% 9% 6% 9%;
}
.reader-page-eyebrow {
  font-family: var(--ui); font-weight: 500;
  font-size: clamp(9px, 0.9vw, 11px);
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--amber);
}
.reader-page-body {
  flex: 1;
  font-family: var(--book);
  font-size: clamp(15px, 1.4vw, 17.5px);
  line-height: 1.7;
  color: var(--espresso);
  margin-top: 14px;
  letter-spacing: 0.005em;
  overflow-y: auto;
}
.reader-page-body p {
  margin: 0 0 14px 0;
  text-wrap: pretty;
  hyphens: auto;
}
.reader-page-body p.lead::first-letter {
  font-family: var(--serif); font-weight: 600;
  font-size: 2.6em; line-height: 0.9;
  color: var(--indigo);
  float: left;
  margin: 4px 8px 0 0;
}
.reader-page-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 10px;
}
.reader-page-footer span:first-child {
  font-family: var(--ui); font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--stone);
}
.reader-page-mark {
  width: 28px; height: 1px;
  background: var(--indigo); opacity: 0.4;
}

.reader-hint {
  font-family: var(--ui);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: rgba(250, 246, 240, 0.65);
  text-align: center;
  margin: 0;
}

@media (max-width: 720px) {
  .reader-stage { width: 96vw; }
  .reader-book {
    width: 92vw;
    aspect-ratio: 0.72 / 1;
  }
  .reader-cover, .reader-page { width: 100%; }
  .reader-cover { display: none; }  /* mobile: skip the 3D cover, show just the page */
  .reader-page { right: auto; left: 0; }
}

/* ---------------- Consent banner ---------------- */
.consent-banner {
  position: fixed; inset: auto 16px 16px 16px;
  z-index: 100;
  background: var(--warm-white);
  border-radius: 22px;
  box-shadow: 0 24px 50px -20px rgba(27, 43, 94, 0.32), 0 1px 2px rgba(27, 43, 94, 0.06);
  animation: consent-rise 480ms cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes consent-rise {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.consent-frame {
  max-width: 920px; margin: 0 auto;
  padding: 18px 22px;
  display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center;
}
@media (max-width: 680px) {
  .consent-frame { grid-template-columns: 1fr; gap: 12px; }
}
.consent-text {
  font-family: var(--book);
  font-size: 14px; line-height: 1.55; color: var(--espresso);
}
.consent-text strong {
  font-family: var(--serif); font-weight: 600; font-size: 16px;
  color: var(--indigo); margin-right: 6px;
}
.consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.consent-actions .btn { padding: 12px 16px; font-size: 14px; }

/* ---------------- 3D Book canvas (book3d.js) ---------------- */
.hero-art { position: relative; }

#book3d-canvas-container {
  width: 100%;
  height: 460px;
  position: relative;
  background: transparent;
}

#book3d-canvas-container canvas {
  display: block;
  outline: none;
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 900px) {
  #book3d-canvas-container { height: 380px; }
}

@media (max-width: 600px) {
  #book3d-canvas-container { height: 300px; }
}

/* Hide the container until Three.js inserts its canvas,
   so the CSS .book-stack remains visible as fallback */
#book3d-canvas-container:empty {
  display: none;
}

/* ---------------- Animation initial states (FOUC prevention) ---------------- */
/* Set elements invisible in CSS to match GSAP's initial gsap.set() states.
   This prevents a flash of visible content in the window before defer scripts run.
   motion.js overrides these with inline styles via GSAP; the fallback branch
   in motion.js also sets inline opacity:1 if GSAP fails to load. */
@media (prefers-reduced-motion: no-preference) {
  [data-anim='hero'],
  [data-anim='rise'],
  [data-anim='card'],
  [data-anim='art'],
  [data-anim='header'] {
    opacity: 0;
  }
}

/* ---------------- Reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  [data-anim] { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* ============================================================
   LEAD CAPTURE BANNER — slim above-fold strip
   ============================================================ */
.lead-banner {
  background: var(--indigo);
  color: var(--ivory);
  padding: 11px 0;
  position: relative;
  z-index: 40;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lead-banner-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  position: relative;
  padding-right: 44px;
}

.lead-banner-text {
  font-family: var(--ui);
  font-size: 13.5px;
  line-height: 1.4;
  color: rgba(250, 246, 240, 0.88);
  flex-shrink: 0;
  white-space: nowrap;
}

.lead-banner-text strong {
  color: var(--amber);
  font-weight: 600;
}

.lead-banner-form {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  flex-wrap: wrap;
}

.lead-banner-form input {
  font-family: var(--ui);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 16px;
  color: var(--ivory);
  outline: none;
  transition: border-color var(--t-fast), background var(--t-fast);
  min-width: 140px;
  flex: 1;
}

.lead-banner-form input::placeholder { color: rgba(250, 246, 240, 0.4); }
.lead-banner-form input:focus {
  border-color: var(--amber);
  background: rgba(255, 255, 255, 0.15);
}

.lead-banner-btn {
  padding: 8px 18px;
  font-size: 13px;
  background: var(--amber);
  color: var(--espresso);
  flex-shrink: 0;
  white-space: nowrap;
}
.lead-banner-btn:hover { background: #e09820; }

.lead-banner-close {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px;
  border: 0; background: transparent;
  color: rgba(250, 246, 240, 0.55);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  transition: color var(--t-fast), background var(--t-fast);
  padding: 0;
}
.lead-banner-close:hover {
  color: var(--ivory);
  background: rgba(255, 255, 255, 0.1);
}

.banner-success {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  color: var(--amber);
}

@media (max-width: 760px) {
  .lead-banner { display: none; }
}

/* ============================================================
   EXIT-INTENT POPUP
   ============================================================ */
.exit-popup {
  position: fixed; inset: 0;
  z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}

.exit-popup[hidden] { display: none; }

.exit-popup-overlay {
  position: absolute; inset: 0;
  background: rgba(18, 24, 46, 0.82);
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
}

@keyframes popup-enter {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.exit-popup-card {
  position: relative;
  background: var(--ivory);
  border-radius: 32px;
  padding: 48px 40px 40px;
  max-width: 460px;
  width: 100%;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.48),
    0 1px 2px rgba(0, 0, 0, 0.06);
  animation: popup-enter 320ms cubic-bezier(0.32, 0.72, 0, 1);
  text-align: center;
}

.exit-popup-close {
  position: absolute; top: 18px; right: 18px;
  width: 36px; height: 36px;
  border: 0; background: var(--indigo-08);
  color: var(--stone);
  border-radius: 999px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t-fast), color var(--t-fast);
  padding: 0;
}
.exit-popup-close:hover { background: var(--indigo-16); color: var(--espresso); }

.exit-popup-ornament {
  margin: 0 auto 18px;
  display: block;
}

.exit-popup-eyebrow {
  font-family: var(--ui);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 12px;
}

.exit-popup-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  color: var(--espresso);
  margin: 0 0 14px;
}

.exit-popup-body {
  font-family: var(--book);
  font-size: 16px;
  line-height: 1.6;
  color: var(--stone);
  margin: 0 0 28px;
}

.exit-popup-form {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.exit-popup-trust {
  font-family: var(--ui);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--stone);
  text-align: center;
  margin-top: 4px;
}

.popup-success-title {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 26px;
  color: var(--espresso);
  margin-bottom: 8px;
}

.popup-success-text {
  font-family: var(--book);
  font-size: 15px;
  color: var(--stone);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 520px) {
  .exit-popup-card { padding: 40px 24px 32px; border-radius: 24px; }
}

/* ============================================================
   TESTIMONIALS / SOCIAL PROOF
   ============================================================ */
.testimonials {
  padding: 96px 0;
  background: var(--warm-white);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 36px;
}
@media (max-width: 900px) { .testimonial-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .testimonial-grid { grid-template-columns: 1fr; } }

.testimonial-card {
  background: var(--ivory);
  border-radius: 24px;
  padding: 26px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.4), 0 1px 2px var(--indigo-04);
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.testimonial-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px -16px rgba(27, 43, 94, 0.2);
}

.testimonial-stars {
  font-size: 15px;
  color: var(--amber);
  letter-spacing: 2px;
  line-height: 1;
}

.testimonial-body {
  font-family: var(--book);
  font-style: italic;
  font-size: 16px;
  line-height: 1.65;
  color: var(--espresso);
  margin: 0;
  flex: 1;
}

.testimonial-author {
  border-top: 1px solid var(--indigo-08);
  padding-top: 14px;
  margin-top: auto;
}

.testimonial-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 16px;
  color: var(--espresso);
  letter-spacing: -0.005em;
}

.testimonial-from {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--stone);
  margin-top: 2px;
}

/* ============================================================
   PRICING SECTION
   ============================================================ */
.pricing {
  padding: 96px 0;
  background: var(--ivory);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}

.pricing-card {
  background: var(--warm-white);
  border-radius: 28px;
  padding: 32px 28px 28px;
  border: 1px solid var(--indigo-08);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.pricing-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(27, 43, 94, 0.22);
}

.pricing-featured {
  background: var(--indigo);
  border-color: var(--indigo);
  box-shadow: 0 30px 60px -30px rgba(27, 43, 94, 0.45);
  transform: translateY(-8px);
}
@media (max-width: 900px) { .pricing-featured { transform: none; } }
.pricing-featured:hover {
  transform: translateY(-12px);
  box-shadow: 0 40px 70px -30px rgba(27, 43, 94, 0.55);
}
@media (max-width: 900px) { .pricing-featured:hover { transform: translateY(-3px); } }

.pricing-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--espresso);
  font-family: var(--ui);
  font-weight: 600;
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-tier-label {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  color: var(--espresso);
}
.pricing-featured .pricing-tier-label { color: var(--ivory); }

.pricing-amount {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 54px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--indigo);
  margin: 12px 0 0 0;
}
.pricing-featured .pricing-amount { color: var(--amber); }

.pricing-desc {
  font-family: var(--book);
  font-size: 15px;
  line-height: 1.55;
  color: var(--stone);
  margin: 12px 0 24px 0;
}
.pricing-featured .pricing-desc { color: rgba(250, 246, 240, 0.68); }

.pricing-feat-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.pricing-feat-list li {
  font-family: var(--book);
  font-size: 14.5px;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.pricing-feat-list li::before {
  flex-shrink: 0;
  margin-top: 1px;
  font-family: var(--ui);
  font-weight: 600;
  font-size: 13px;
  width: 16px;
  text-align: center;
}

.feat-yes { color: var(--espresso); }
.feat-yes::before { content: "✓"; color: var(--sage); }
.feat-no { color: var(--stone); opacity: 0.6; }
.feat-no::before { content: "–"; color: var(--stone); }

.pricing-featured .feat-yes { color: rgba(250, 246, 240, 0.92); }
.pricing-featured .feat-yes::before { color: #7EC898; }
.pricing-featured .feat-no { color: rgba(250, 246, 240, 0.35); opacity: 1; }
.pricing-featured .feat-no::before { color: rgba(250, 246, 240, 0.3); }

.pricing-btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}
.pricing-featured .pricing-btn {
  background: var(--amber);
  color: var(--espresso);
}
.pricing-featured .pricing-btn:hover { background: #e09820; }

/* Trust strip below pricing */
.trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
  flex-wrap: wrap;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--indigo-04);
}

.trust-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--stone);
}
.trust-strip-item svg { color: var(--indigo); opacity: 0.65; flex-shrink: 0; }

.trust-strip-dot {
  width: 3px; height: 3px;
  border-radius: 999px;
  background: var(--stone);
  opacity: 0.3;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .trust-strip-dot { display: none; }
  .trust-strip { gap: 14px 16px; }
}

/* ============================================================
   STICKY MOBILE CTA BAR
   ============================================================ */
.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 400;
  background: var(--indigo);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -8px 32px -8px rgba(27, 43, 94, 0.4);
  transform: translateY(100%);
  transition: transform 360ms cubic-bezier(0.32, 0.72, 0, 1);
  display: none;
}
@media (max-width: 768px) { .sticky-cta { display: block; } }

.sticky-cta--show { transform: translateY(0); }

.sticky-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}

.sticky-cta-copy { flex: 1; min-width: 0; }

.sticky-cta-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  color: var(--ivory);
  letter-spacing: -0.01em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-cta-sub {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(250, 246, 240, 0.5);
  margin-top: 2px;
}

.sticky-cta-btn {
  background: var(--amber);
  color: var(--espresso);
  flex-shrink: 0;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
}
.sticky-cta-btn:hover { background: #e09820; }
.sticky-cta-btn .btn-arrow { background: rgba(44, 24, 16, 0.15); }

/* ============================================================
   URGENCY BAR
   ============================================================ */
.urgency-bar {
  background: var(--amber);
  color: var(--indigo);
  font-family: var(--ui);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  position: relative;
  z-index: 60;
}
.urgency-bar-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  padding-bottom: 10px;
  flex-wrap: wrap;
}
.urgency-bar-text {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.urgency-bar-cta {
  white-space: nowrap;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  letter-spacing: 0.01em;
  flex-shrink: 0;
  transition: opacity var(--t-fast);
}
.urgency-bar-cta:hover { opacity: 0.75; }
.urgency-bar-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--indigo);
  padding: 4px;
  display: flex;
  align-items: center;
  opacity: 0.6;
  flex-shrink: 0;
  border-radius: 4px;
  transition: opacity var(--t-fast);
}
.urgency-bar-close:hover { opacity: 1; }

@media (max-width: 600px) {
  .urgency-bar { font-size: 12.5px; }
  .urgency-bar-inner { gap: 8px; padding-top: 8px; padding-bottom: 8px; flex-wrap: nowrap; }
  .urgency-bar-text { flex-wrap: nowrap; overflow: hidden; white-space: nowrap; }
  .urgency-bar-text svg { flex-shrink: 0; }
}

/* ============================================================
   AGGREGATE STAR RATING
   ============================================================ */
.aggregate-rating {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 40px;
  padding: 12px 18px;
  background: rgba(27, 43, 94, 0.04);
  border: 1px solid rgba(27, 43, 94, 0.08);
  border-radius: 12px;
  max-width: 100%;
}
.aggregate-stars {
  font-size: 17px;
  letter-spacing: 2px;
  color: var(--amber);
  line-height: 1;
}
.aggregate-text {
  font-family: var(--ui);
  font-size: 14px;
  color: var(--stone);
}
.aggregate-text strong {
  color: var(--espresso);
  font-weight: 600;
}
