/* ==========================================================================
   Ama Prayer design system
   Tokens, base styles and shared components. Page sections build on these.
   ========================================================================== */

/* ---------- 0. Fonts (self-hosted Playfair Display, SIL OFL 1.1, see /fonts/OFL.txt) ---------- */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-display-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-display-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand palette */
  --deep-blue: #1B2A4A;
  --gold: #C9A54A;
  --cream: #F0EBE0;
  --light-gold: #D4B86A;
  --soft-blue: #2A3D66;
  --dark-cream: #E5DDD0;
  --white: #FFFFFF;
  --success: #2D6A4F;
  --error: #C1292E;

  /* Semantic roles */
  --bg: var(--deep-blue);
  --text: var(--cream);
  --text-muted: rgba(240, 235, 224, .72);
  --surface-light: var(--white);
  --text-on-light: var(--deep-blue);
  --muted-on-light: #4A5670;
  --border-on-light: var(--dark-cream);
  --error-on-light: var(--error);
  --gold-line: rgba(201, 165, 74, .35);
  --gold-glow: 0 0 0 1px rgba(201, 165, 74, .25), 0 8px 28px rgba(201, 165, 74, .22);
  --card-shadow: 0 10px 30px rgba(8, 14, 28, .28);

  /* Typography */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .9375rem;
  --fs-base: clamp(1rem, .96rem + .2vw, 1.0625rem);
  --fs-lg: clamp(1.125rem, 1.05rem + .35vw, 1.25rem);
  --fs-h3: clamp(1.3rem, 1.15rem + .6vw, 1.6rem);
  --fs-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.6rem);
  --fs-h1: clamp(2.4rem, 1.7rem + 3.4vw, 4.25rem);
  --fs-price: clamp(2.5rem, 2rem + 2vw, 3.25rem);

  /* Spacing and shape */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --section-pad: clamp(3.5rem, 2.5rem + 5vw, 7rem);
  --gutter: 16px;
  --container: 1160px;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --nav-h: 68px;
  --check-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");

  color-scheme: dark;
}

/* Dark mode: the brand is dark-first, so only light sections change */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --white: #0F1A2E;
    --cream: #E8E0D4;
    --text: #E8E0D4;
    --surface-light: #0F1A2E;
    --text-on-light: #E8E0D4;
    --muted-on-light: rgba(232, 224, 212, .7);
    --border-on-light: rgba(201, 165, 74, .22);
    --error-on-light: #F08A8D;
  }
}
:root[data-theme="dark"] {
  --white: #0F1A2E;
  --cream: #E8E0D4;
  --text: #E8E0D4;
  --surface-light: #0F1A2E;
  --text-on-light: #E8E0D4;
  --muted-on-light: rgba(232, 224, 212, .7);
  --border-on-light: rgba(201, 165, 74, .22);
  --error-on-light: #F08A8D;
}

@media (min-width: 768px) {
  :root { --gutter: 24px; }
}

/* ---------- 2. Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video, audio { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

h1, h2, h3, h4 {
  margin: 0 0 var(--space-4);
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -.005em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-lg); }

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: var(--light-gold); text-underline-offset: 3px; }
a:hover { color: var(--gold); }

ul, ol { margin: 0; padding: 0; }
blockquote, figure { margin: 0; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: var(--deep-blue); }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 760px; }

.section { padding-block: var(--section-pad); position: relative; }
.section--dark { background: var(--deep-blue); color: var(--cream); }
.section--soft { background: var(--soft-blue); color: var(--cream); }
.section--light { background: var(--surface-light); color: var(--text-on-light); }
.section--cream { background: var(--cream); color: var(--deep-blue); }

.section-head {
  max-width: 680px;
  margin: 0 auto var(--space-7);
  text-align: center;
}
.section-head p { color: var(--text-muted); font-size: var(--fs-lg); }
.section--light .section-head p { color: var(--muted-on-light); }
.section--cream .section-head p { color: #4A5670; }

.eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.grid { display: grid; gap: var(--space-5); }
@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -100px;
  z-index: 1000;
  padding: var(--space-2) var(--space-4);
  background: var(--gold);
  color: var(--deep-blue);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- 4. Text styles ---------- */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.lead { font-size: var(--fs-lg); line-height: 1.6; }

/* Prayer and Scripture text */
.verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--fs-lg);
  line-height: 1.7;
}
.verse cite {
  display: block;
  margin-top: var(--space-2);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-style: normal;
  letter-spacing: .04em;
}

/* ---------- 5. Gold separator ---------- */
.separator {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  max-width: 320px;
  margin: var(--space-6) auto;
  color: var(--gold);
}
.separator::before,
.separator::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.separator::after { background: linear-gradient(90deg, var(--gold), transparent); }
.separator svg { width: 18px; height: 18px; flex: none; }

/* Plain rule when no ornament is needed */
.rule {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

/* ---------- 6. Icons ---------- */
.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  color: var(--gold);
}
.icon-badge {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 165, 74, .12), transparent 70%);
  color: var(--gold);
}
.icon-badge svg { width: 28px; height: 28px; }

/* ---------- 7. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: .8rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .02em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), box-shadow .25s var(--ease),
              transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--gold);
  color: var(--deep-blue);
  box-shadow: var(--gold-glow);
}
.btn--primary:hover {
  background: var(--light-gold);
  color: var(--deep-blue);
  box-shadow: 0 0 0 1px rgba(212, 184, 106, .4), 0 12px 36px rgba(201, 165, 74, .32);
}

.btn--outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}
.btn--outline:hover {
  background: rgba(201, 165, 74, .1);
  border-color: var(--light-gold);
  color: var(--light-gold);
}
.section--light .btn--outline,
.section--cream .btn--outline { color: #8A6D24; border-color: #A8862F; }
.section--light .btn--outline:hover,
.section--cream .btn--outline:hover { background: rgba(201, 165, 74, .12); color: #6F5719; }

.btn--ghost {
  background: transparent;
  color: var(--cream);
  padding-inline: var(--space-3);
}
.btn--ghost:hover { color: var(--gold); }

.btn--lg { min-height: 56px; padding: 1rem 2.1rem; font-size: var(--fs-base); }
.btn--sm { min-height: 44px; padding: .6rem 1.2rem; font-size: var(--fs-xs); }
.btn--block { display: flex; width: 100%; }

.btn-group { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
@media (max-width: 479px) {
  .btn-group .btn { width: 100%; }
}

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  padding: var(--space-6);
  background: var(--soft-blue);
  border: 1px solid rgba(201, 165, 74, .14);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
}
.section--light .card,
.section--cream .card {
  background: var(--surface-light);
  border-color: var(--border-on-light);
  box-shadow: 0 6px 24px rgba(27, 42, 74, .08);
  color: var(--text-on-light);
}
.card--gold {
  border: 1.5px solid var(--gold);
  box-shadow: var(--card-shadow), 0 0 40px rgba(201, 165, 74, .18);
}
.card__title { margin-bottom: var(--space-2); }
.card__subtitle { color: var(--text-muted); font-size: var(--fs-sm); }
.section--light .card__subtitle,
.section--cream .card__subtitle { color: var(--muted-on-light); }

/* ---------- 9. Badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: .3rem .85rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--deep-blue);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge--outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
/* Badge pinned to the top edge of a card */
.card > .badge--top {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ---------- 10. Pricing ---------- */
.pricing {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  max-width: 420px;
  margin-inline: auto;
}
/* Mobile: the most popular card comes first */
.pricing .price-card--featured { order: -1; }

@media (min-width: 1024px) {
  .pricing {
    grid-template-columns: 1fr 1.12fr 1fr;
    max-width: none;
    gap: var(--space-5);
  }
  .pricing .price-card--featured { order: 0; }
}

.price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--space-6) var(--space-5);
  text-align: center;
}
.price-card--featured {
  padding-block: var(--space-7);
  background: linear-gradient(180deg, #31477A 0%, var(--soft-blue) 60%);
  border: 1.5px solid var(--gold);
  box-shadow: var(--card-shadow), 0 0 60px rgba(201, 165, 74, .22);
}
@media (min-width: 1024px) {
  .price-card--featured { transform: scale(1.03); }
}
.price-card--premium { border: 1.5px solid var(--gold-line); }
.price-card > .badge--outline { background: var(--soft-blue); }

.price-card__name { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.price-card__subtitle { color: var(--text-muted); font-size: var(--fs-sm); margin-bottom: var(--space-5); }

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-1);
}
.price__amount {
  font-family: var(--font-serif);
  font-size: var(--fs-price);
  font-weight: 600;
  line-height: 1;
  color: var(--gold);
}
.price__amount sup { font-size: .45em; vertical-align: .9em; margin-right: .05em; }
.price__old {
  color: var(--text-muted);
  font-size: var(--fs-lg);
  text-decoration: line-through;
  text-decoration-color: var(--error);
  text-decoration-thickness: 2px;
}
.price__note {
  min-height: 1.5em;
  margin-bottom: var(--space-5);
  color: var(--light-gold);
  font-size: var(--fs-sm);
  font-style: italic;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
  text-align: left;
  font-size: var(--fs-sm);
}
.feature-list li { display: flex; gap: var(--space-3); align-items: flex-start; }
.feature-list li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: .2em;
  background: var(--gold);
  -webkit-mask: var(--check-mask) center / contain no-repeat;
          mask: var(--check-mask) center / contain no-repeat;
}
.feature-list .feature-list__lead { font-weight: 600; color: var(--light-gold); }
.feature-list li > .text-muted { margin-left: auto; padding-left: var(--space-3); white-space: nowrap; }
.price-card .btn { margin-top: auto; }

/* ---------- 11. Trust signals ---------- */
.guarantee {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  color: var(--text-muted);
  font-size: var(--fs-xs);
}
.guarantee svg { width: 16px; height: 16px; color: var(--gold); }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3) var(--space-5);
  color: var(--text-muted);
  font-size: var(--fs-xs);
  letter-spacing: .04em;
}
.trust-row span { display: inline-flex; align-items: center; gap: var(--space-2); }
.trust-row svg { width: 16px; height: 16px; color: var(--gold); }

/* ---------- 12. Forms ---------- */
.form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: var(--space-2); }
.field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: .02em;
}
.input,
.select,
.textarea {
  width: 100%;
  min-height: 48px;
  padding: .75rem 1rem;
  border: 1px solid rgba(201, 165, 74, .3);
  border-radius: var(--radius-sm);
  background: rgba(15, 26, 46, .55);
  color: var(--cream);
  font-size: 1rem; /* prevents iOS zoom on focus */
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.textarea { min-height: 140px; resize: vertical; }
.select {
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A54A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  cursor: pointer;
}
.select option { background: var(--deep-blue); color: var(--cream); }
.input::placeholder,
.textarea::placeholder { color: rgba(240, 235, 224, .45); }
.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 165, 74, .2);
}
.section--light .input,
.section--light .select,
.section--light .textarea {
  background: var(--surface-light);
  border-color: var(--border-on-light);
  color: var(--text-on-light);
}
.section--light .input::placeholder,
.section--light .textarea::placeholder { color: var(--muted-on-light); opacity: .7; }
.section--light .checkbox,
.section--light .field__hint { color: var(--muted-on-light); }
.section--light .field__error { color: var(--error-on-light); }
.input[aria-invalid="true"] { border-color: var(--error); }
.field__error { color: #F08A8D; font-size: var(--fs-xs); }
.field__hint { color: var(--text-muted); font-size: var(--fs-xs); }

.checkbox {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--fs-sm);
  color: var(--text-muted);
}
.checkbox input { width: 20px; height: 20px; margin: .15em 0 0; accent-color: var(--gold); flex: none; }

.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  border-left: 3px solid currentColor;
  font-size: var(--fs-sm);
}
.alert--success { background: rgba(45, 106, 79, .18); color: #8FD3B0; }
.alert--error { background: rgba(193, 41, 46, .15); color: #F08A8D; }

/* ---------- 13. Testimonials ---------- */
.testimonial { display: flex; flex-direction: column; gap: var(--space-4); }
.testimonial__quote { margin: 0; }
.testimonial__quote::before {
  content: "\201C";
  display: block;
  height: .5em;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
}
.testimonial__author { margin-top: auto; font-size: var(--fs-sm); font-weight: 600; }
.testimonial__author span { display: block; font-weight: 400; color: var(--muted-on-light); }

/* ---------- 14. Avatar ---------- */
.avatar {
  display: grid;
  place-items: center;
  width: 160px;
  aspect-ratio: 1;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--soft-blue), var(--deep-blue));
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 3rem;
  box-shadow: 0 0 40px rgba(201, 165, 74, .2);
}

/* ---------- 15. Modal ---------- */
.modal {
  width: min(480px, calc(100% - 2 * var(--gutter)));
  max-height: calc(100dvh - 2rem);
  padding: 0;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background: var(--deep-blue);
  color: var(--cream);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
}
.modal::backdrop { background: rgba(8, 14, 28, .72); backdrop-filter: blur(3px); }
.modal__body { padding: var(--space-6) var(--space-5); }
.modal__close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.5rem;
  line-height: 1;
}
.modal__close:hover { color: var(--gold); }

/* Checkout modal */
.checkout-modal { position: fixed; }
.checkout-modal[open] { animation: modal-in .3s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } }
.checkout-modal .modal__body { position: relative; }
.checkout-modal__title { font-size: var(--fs-h3); margin-bottom: 0; }
.checkout-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: rgba(201, 165, 74, .06);
}
.checkout-summary strong { display: block; font-family: var(--font-serif); font-size: var(--fs-lg); }
.checkout-summary span { color: var(--text-muted); font-size: var(--fs-xs); }
.checkout-summary__price { flex: none; text-align: right; }
.checkout-summary__price s { display: block; color: var(--text-muted); font-size: var(--fs-sm); text-decoration-color: var(--error); }
.checkout-summary__price strong { color: var(--gold); font-family: var(--font-serif); font-size: 1.75rem; line-height: 1; }
.phone-row { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: var(--space-2); }
.field__optional { color: var(--text-muted); font-weight: 400; }
.checkout-modal__trust { margin-top: var(--space-1); }

/* Exit-intent popup */
.exit-modal { position: fixed; text-align: center; }
.exit-modal[open] { animation: modal-in .35s var(--ease); }
.exit-modal .modal__body { position: relative; }
.exit-modal .form { text-align: left; margin-top: var(--space-5); }
.exit-modal__moon {
  width: 44px;
  height: 44px;
  margin: 0 auto var(--space-3);
  color: var(--gold);
  filter: drop-shadow(0 0 14px rgba(201, 165, 74, .5));
}
.exit-modal__title { font-size: var(--fs-h3); margin-bottom: var(--space-2); }
.exit-modal__no { margin-top: var(--space-2); color: var(--text-muted); font-weight: 400; }

/* ---------- 16. Scroll reveal ---------- */
/* Hidden only when JS is running (main.js adds .js to <html>), so content never stays invisible */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Cards in a row arrive one after another, like a slow breath */
.pricing > .reveal:nth-child(2), .grid > .reveal:nth-child(2), .steps > .reveal:nth-child(2), .bundle-pair > .reveal:nth-child(2) { transition-delay: .12s; }
.pricing > .reveal:nth-child(3), .grid > .reveal:nth-child(3), .steps > .reveal:nth-child(3) { transition-delay: .24s; }

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

/* ==========================================================================
   Page sections
   ========================================================================== */

/* ---------- 17. Site header and navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
/* Blur lives on a pseudo-element: backdrop-filter on the header itself would
   trap the fixed mobile nav inside the header's box */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(27, 42, 74, .92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.site-header.is-scrolled {
  border-bottom-color: var(--gold-line);
  box-shadow: 0 8px 24px rgba(8, 14, 28, .3);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
}
.logo:hover { color: var(--light-gold); }
.logo svg { width: 22px; height: 22px; }

.nav-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: calc(-1 * var(--space-2));
  border: 0;
  background: transparent;
  color: var(--cream);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .3s var(--ease), background-color .3s var(--ease);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before,
.nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

/* Mobile: slide-in panel */
.site-nav {
  position: fixed;
  top: var(--nav-h);
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  padding: var(--space-6) var(--space-5);
  background: var(--deep-blue);
  border-left: 1px solid var(--gold-line);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform .35s var(--ease), visibility 0s linear .35s;
  overflow-y: auto;
}
.nav-open .site-nav {
  transform: none;
  visibility: visible;
  transition: transform .35s var(--ease);
}
.site-nav ul { list-style: none; display: grid; gap: var(--space-1); }
.site-nav a:not(.btn) {
  display: block;
  padding: var(--space-3) 0;
  color: var(--cream);
  font-size: var(--fs-lg);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 165, 74, .12);
}
.site-nav a:not(.btn):hover,
.site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav .btn { margin-top: var(--space-5); width: 100%; }

.nav-backdrop {
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: -1;
  background: rgba(8, 14, 28, .6);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--ease);
}
.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }
.nav-open { overflow: hidden; }

@media (min-width: 1024px) {
  .nav-toggle, .nav-backdrop { display: none; }
  .site-nav {
    position: static;
    width: auto;
    padding: 0;
    background: none;
    border: 0;
    transform: none;
    visibility: visible;
    overflow: visible;
    display: flex;
    align-items: center;
    gap: var(--space-5);
  }
  .site-nav ul { display: flex; gap: var(--space-5); }
  .site-nav a:not(.btn) {
    padding: var(--space-2) 0;
    border: 0;
    font-size: var(--fs-sm);
    letter-spacing: .03em;
    position: relative;
  }
  .site-nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 2px;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform .3s var(--ease);
  }
  .site-nav a:not(.btn):hover::after,
  .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .btn { margin: 0; width: auto; }
}

/* ---------- 18. Hero with night sky ---------- */
.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(calc(100svh - var(--nav-h)), 820px);
  padding-block: clamp(4rem, 3rem + 6vw, 8rem);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(201, 165, 74, .16), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 110%, #0F1A2E, transparent 70%),
    var(--deep-blue);
}
.hero__inner { max-width: 820px; margin-inline: auto; }
.hero h1 { color: var(--gold); margin-bottom: var(--space-5); }
.hero .lead { max-width: 560px; margin: 0 auto var(--space-6); color: var(--cream); }
.hero .verse { margin: var(--space-7) auto 0; max-width: 520px; color: var(--text-muted); font-size: var(--fs-base); }

.hero__moon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-5);
  color: var(--gold);
  filter: drop-shadow(0 0 18px rgba(201, 165, 74, .55));
}

/* Two star layers drawn with gradients, twinkling at different rhythms */
.stars,
.stars::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(240, 235, 224, .9), transparent 60%),
    radial-gradient(1px 1px at 27% 62%, rgba(240, 235, 224, .7), transparent 60%),
    radial-gradient(1.5px 1.5px at 41% 31%, rgba(212, 184, 106, .9), transparent 60%),
    radial-gradient(1px 1px at 58% 12%, rgba(240, 235, 224, .8), transparent 60%),
    radial-gradient(1px 1px at 69% 48%, rgba(240, 235, 224, .6), transparent 60%),
    radial-gradient(1.5px 1.5px at 83% 24%, rgba(240, 235, 224, .9), transparent 60%),
    radial-gradient(1px 1px at 91% 71%, rgba(212, 184, 106, .7), transparent 60%),
    radial-gradient(1px 1px at 6% 84%, rgba(240, 235, 224, .6), transparent 60%),
    radial-gradient(1px 1px at 35% 88%, rgba(240, 235, 224, .5), transparent 60%),
    radial-gradient(1px 1px at 76% 86%, rgba(240, 235, 224, .6), transparent 60%);
  background-size: 520px 420px;
  animation: twinkle 7s ease-in-out infinite alternate;
}
.stars::after {
  content: "";
  background-size: 340px 300px;
  background-position: 120px 80px;
  animation-duration: 11s;
  animation-delay: -4s;
  opacity: .7;
}
@keyframes twinkle {
  from { opacity: .35; }
  to { opacity: 1; }
}

/* ---------- 19. Social proof bar ---------- */
.proof {
  padding-block: var(--space-6);
  background: var(--soft-blue);
  border-block: 1px solid var(--gold-line);
}
.proof__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  text-align: center;
}
.proof__num {
  display: block;
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 1.2rem + 1.8vw, 2.4rem);
  font-weight: 600;
  line-height: 1.1;
}
.proof__label { color: var(--text-muted); font-size: var(--fs-xs); letter-spacing: .04em; }
.proof__note {
  margin-top: var(--space-4);
  color: var(--light-gold);
  font-family: var(--font-serif);
  font-style: italic;
  text-align: center;
}

/* ---------- 20. How it works ---------- */
.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: var(--space-6);
}
.step { text-align: center; position: relative; }
.step .icon-badge { margin: 0 auto var(--space-4); }
.step h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.step p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 280px; margin-inline: auto; }
.step__num {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--gold);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .18em;
}
@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  /* Thin gold line linking the three steps */
  .step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 32px;
    left: calc(50% + 48px);
    width: calc(100% - 96px + var(--space-6));
    height: 1px;
    background: linear-gradient(90deg, var(--gold-line), transparent);
  }
}

/* ---------- 21. Lead magnet ---------- */
.lead-magnet {
  display: grid;
  gap: var(--space-6);
  align-items: center;
}
.lead-magnet .form { width: 100%; }
@media (min-width: 768px) {
  .lead-magnet { grid-template-columns: 1.1fr 1fr; gap: var(--space-8); }
  .lead-magnet .form { max-width: 440px; }
}

/* ---------- 22. Author ---------- */
.author {
  display: grid;
  gap: var(--space-6);
  justify-items: center;
  text-align: center;
}
.author .avatar { width: clamp(140px, 30vw, 200px); }
.author__bio p { color: var(--text-muted); }
.author__stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-5);
  margin: var(--space-5) 0;
  color: var(--light-gold);
  font-size: var(--fs-sm);
}
@media (min-width: 768px) {
  .author {
    grid-template-columns: auto 1fr;
    gap: var(--space-8);
    text-align: left;
    align-items: center;
  }
  .author__stats { justify-content: flex-start; }
}

/* ---------- 23. Final CTA ---------- */
.final-cta {
  text-align: center;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, rgba(201, 165, 74, .14), transparent 70%),
    var(--deep-blue);
}
.final-cta h2 { color: var(--gold); max-width: 640px; margin-inline: auto; }
.final-cta p { color: var(--text-muted); margin-bottom: var(--space-6); }

/* ---------- 24. Footer ---------- */
.site-footer {
  padding-block: var(--space-7) var(--space-6);
  background: #142039;
  border-top: 1px solid var(--gold-line);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.footer__top {
  display: grid;
  gap: var(--space-6);
  margin-bottom: var(--space-6);
}
.footer__tagline { margin-top: var(--space-3); max-width: 320px; }
.footer__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); }
.footer__nav h2 {
  margin-bottom: var(--space-3);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.footer__nav ul { list-style: none; display: grid; gap: var(--space-1); }
.footer__nav a {
  display: inline-block;
  padding: var(--space-1) 0;
  color: var(--cream);
  text-decoration: none;
}
.footer__nav a:hover { color: var(--gold); }
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-5);
  border-top: 1px solid rgba(201, 165, 74, .14);
  font-size: var(--fs-xs);
}
@media (min-width: 768px) {
  .footer__top { grid-template-columns: 1.2fr 1fr; }
}

/* ---------- 25. Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) clamp(2.5rem, 2rem + 3vw, 4.5rem);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  background:
    radial-gradient(ellipse 70% 70% at 50% 0%, rgba(201, 165, 74, .14), transparent 70%),
    var(--deep-blue);
}
.page-hero h1 { color: var(--gold); }
.page-hero .lead { max-width: 600px; margin-inline: auto; color: var(--text-muted); }
.page-hero .btn-group { margin-top: var(--space-6); }

/* ---------- 26. Book cover (pure CSS) ---------- */
.book {
  --book-w: clamp(180px, 42vw, 250px);
  position: relative;
  width: var(--book-w);
  aspect-ratio: 2 / 3;
  margin-inline: auto;
  perspective: 1200px;
}
.book__cover {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 14% 10% 10%;
  border-radius: 3px 8px 8px 3px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 30%, rgba(201, 165, 74, .22), transparent 70%),
    linear-gradient(160deg, #24365E 0%, var(--deep-blue) 55%, #111C33 100%);
  color: var(--gold);
  text-align: center;
  transform: rotateY(-16deg);
  transform-origin: left center;
  box-shadow:
    inset 4px 0 6px rgba(0, 0, 0, .35),
    inset -1px 0 0 rgba(255, 255, 255, .06),
    18px 22px 40px rgba(0, 0, 0, .45);
  transition: transform .6s var(--ease);
}
/* Inner gold frame */
.book__cover::before {
  content: "";
  position: absolute;
  inset: 6%;
  border: 1px solid rgba(201, 165, 74, .55);
  border-radius: 2px;
  pointer-events: none;
}
/* Spine highlight */
.book__cover::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 4%;
  width: 2px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .12), transparent);
}
.book:hover .book__cover { transform: rotateY(-6deg); }
.book__icon { width: 18%; height: auto; }
.book__kicker {
  font-family: var(--font-sans);
  font-size: calc(var(--book-w) * .045);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--light-gold);
}
.book__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: calc(var(--book-w) * .135);
  font-weight: 600;
  line-height: 1.05;
  color: var(--gold);
}
.book__subtitle {
  margin-top: .5em;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: calc(var(--book-w) * .068);
  color: var(--cream);
}
.book__author {
  font-family: var(--font-sans);
  font-size: calc(var(--book-w) * .045);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--light-gold);
}
.book--small { --book-w: 120px; }
@media (prefers-reduced-motion: reduce) {
  .book__cover, .book:hover .book__cover { transform: none; }
}

/* ---------- 27. Product detail ---------- */
.product {
  display: grid;
  gap: var(--space-7);
  align-items: start;
}
.product__media { display: grid; gap: var(--space-5); justify-items: center; position: sticky; top: calc(var(--nav-h) + var(--space-6)); }
.product__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
}
.product__info h2 { margin-bottom: var(--space-2); }
.product__tagline { color: var(--light-gold); font-family: var(--font-serif); font-style: italic; font-size: var(--fs-lg); }
.product__desc { color: var(--text-muted); }
.product__buy {
  display: grid;
  gap: var(--space-3);
  margin-block: var(--space-6);
  padding: var(--space-5);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: rgba(15, 26, 46, .35);
}
.product__buy .price { justify-content: flex-start; margin: 0; }
.product__buy .price__note { margin: 0; min-height: 0; }
.product__buy .guarantee { margin-top: 0; }
@media (min-width: 768px) {
  .product__buy { grid-template-columns: auto 1fr; align-items: center; column-gap: var(--space-6); }
  .product__buy .btn { grid-row: span 2; }
  .product__buy .guarantee { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  .product__media { position: static; }
}
@media (min-width: 1024px) {
  .product { grid-template-columns: 340px 1fr; gap: var(--space-8); }
  .product--reverse { grid-template-columns: 1fr 340px; }
  .product--reverse .product__media { order: 2; }
}

.receive-list { margin-bottom: var(--space-6); }
.receive-list h3, .accordion h3 { font-size: var(--fs-lg); }

/* ---------- 28. Accordion (details / summary) ---------- */
.accordion { display: grid; gap: var(--space-3); }
.accordion details {
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: rgba(15, 26, 46, .3);
}
.accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 56px;
  padding: var(--space-3) var(--space-5);
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--gold);
  border-bottom: 1.5px solid var(--gold);
  transform: rotate(45deg) translateY(-3px);
  transition: transform .3s var(--ease);
}
.accordion details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.accordion summary:hover { color: var(--gold); }
.accordion__body { padding: 0 var(--space-5) var(--space-5); }

/* Table of contents */
.toc { list-style: none; display: grid; gap: var(--space-2); }
.toc li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-2);
  border-bottom: 1px dashed rgba(201, 165, 74, .2);
  font-size: var(--fs-sm);
}
.toc li span:last-child { flex: none; color: var(--light-gold); }

/* ---------- 29. Sample page (looks like a printed page) ---------- */
.sample-page {
  max-width: 620px;
  margin-inline: auto;
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  border-radius: 4px;
  background: #FBF8F2;
  color: #2B2B2B;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05), 0 12px 32px rgba(0, 0, 0, .35);
  font-family: var(--font-serif);
  line-height: 1.75;
}
.sample-page__day {
  margin-bottom: var(--space-1);
  color: #8A6D24;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .25em;
  text-align: center;
}
.sample-page h4 {
  margin-bottom: var(--space-5);
  color: var(--deep-blue);
  font-size: clamp(1.4rem, 1.2rem + 1vw, 1.8rem);
  text-align: center;
}
.sample-page blockquote {
  margin-bottom: var(--space-4);
  font-style: italic;
  text-align: center;
  color: #3A3A3A;
}
.sample-page cite {
  display: block;
  color: #8A6D24;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-style: normal;
  letter-spacing: .05em;
}
.sample-page p { font-size: var(--fs-base); }
.sample-page__label {
  margin: var(--space-5) 0 var(--space-2);
  color: #8A6D24;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .2em;
  text-align: center;
}
.sample-page__prayer { font-style: italic; text-align: center; }
.sample-page__rest {
  margin-top: var(--space-2);
  color: var(--deep-blue);
  font-size: var(--fs-lg);
  font-weight: 600;
  text-align: center;
}

/* ---------- 30. Compare strip ---------- */
.compare-strip {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  padding: var(--space-6);
  border: 1.5px solid var(--gold);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 60% 90% at 0% 50%, rgba(201, 165, 74, .14), transparent 70%),
    var(--soft-blue);
  box-shadow: 0 0 50px rgba(201, 165, 74, .15);
}
/* ---------- 31. Audio preview player ---------- */
.tracks {
  list-style: none;
  display: grid;
  gap: var(--space-3);
  max-width: 760px;
  margin-inline: auto;
}
.track {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-2) var(--space-4);
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(201, 165, 74, .16);
  border-radius: var(--radius);
  background: rgba(15, 26, 46, .35);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.track.is-playing {
  border-color: var(--gold);
  background: rgba(201, 165, 74, .08);
}
.track--featured { border-color: var(--gold-line); background: rgba(201, 165, 74, .06); }
.track__play {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  background: transparent;
  color: var(--gold);
  transition: background-color .25s var(--ease), color .25s var(--ease);
}
.track__play:hover,
.track.is-playing .track__play { background: var(--gold); color: var(--deep-blue); }
.track__play svg { width: 18px; height: 18px; }
.track__play .icon-pause { display: none; }
.track.is-playing .icon-play { display: none; }
.track.is-playing .icon-pause { display: block; }
.track.is-loading .track__play::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 1.5px solid transparent;
  border-top-color: var(--light-gold);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.track__info { min-width: 0; }
.track__title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.3;
}
.track__desc { margin: 0; color: var(--text-muted); font-size: var(--fs-xs); }
.track__time {
  color: var(--light-gold);
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.track__bar {
  grid-column: 2 / -1;
  position: relative;
  height: 4px;
  border-radius: 4px;
  background: rgba(201, 165, 74, .15);
  cursor: pointer;
  touch-action: none;
}
/* Larger invisible hit area for touch */
.track__bar::before { content: ""; position: absolute; inset: -10px 0; }
.track__fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--light-gold), var(--gold));
}
.tracks-note { margin-top: var(--space-4); color: var(--text-muted); font-size: var(--fs-xs); text-align: center; }

/* Full album track list */
.tracklist { list-style: none; counter-reset: t; columns: 1; column-gap: var(--space-7); }
.tracklist li {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-2);
  border-bottom: 1px dashed rgba(201, 165, 74, .2);
  font-size: var(--fs-sm);
  break-inside: avoid;
}
.tracklist li::before {
  counter-increment: t;
  content: counter(t, decimal-leading-zero);
  flex: none;
  width: 2em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.tracklist li span:first-of-type { flex: 1; }
.tracklist li span:last-child { color: var(--light-gold); font-variant-numeric: tabular-nums; }
.tracklist li.tracklist__bonus::before { content: "+"; counter-increment: none; }
@media (min-width: 768px) { .tracklist { columns: 2; } }

/* Feature band (two-column explainer) */
.feature-band { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 768px) { .feature-band { grid-template-columns: 1fr 1fr; gap: var(--space-8); } }
.feature-band__art {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  max-width: clamp(200px, 50vw, 360px);
  width: 100%;
  margin-inline: auto;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(201, 165, 74, .25), transparent 60%),
    radial-gradient(circle, var(--soft-blue), var(--deep-blue) 70%);
  color: var(--gold);
  text-align: center;
  box-shadow: 0 0 80px rgba(201, 165, 74, .15);
}
.feature-band__art strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(3rem, 2rem + 4vw, 5rem);
  line-height: 1;
}
.feature-band__art span { color: var(--cream); letter-spacing: .2em; text-transform: uppercase; font-size: var(--fs-xs); }

/* Download page */
.downloads { list-style: none; display: grid; gap: var(--space-3); margin-bottom: var(--space-6); }
.download {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: rgba(15, 26, 46, .35);
}
.download__icon { width: 28px; height: 28px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.download__info { min-width: 0; }
.download__name { margin: 0; font-family: var(--font-serif); font-weight: 600; overflow-wrap: anywhere; }
.download__type { margin: 0; color: var(--text-muted); font-size: var(--fs-xs); }
@media (max-width: 479px) {
  .download { grid-template-columns: auto 1fr; }
  .download .btn { grid-column: 1 / -1; width: 100%; }
}

/* ---------- Post-purchase ---------- */
.confirm-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-5);
  border-radius: 50%;
  background: rgba(45, 106, 79, .25);
  border: 1.5px solid #6FBF95;
  color: #9BDDBB;
}
.confirm-badge svg { width: 34px; height: 34px; }
.status-note { color: var(--text-muted); font-size: var(--fs-sm); text-align: center; }

.upsell {
  display: grid;
  gap: var(--space-5);
  align-items: center;
  max-width: 760px;
  margin-inline: auto;
}
@media (min-width: 768px) { .upsell { grid-template-columns: auto 1fr; gap: var(--space-7); } }
.upsell .price { justify-content: flex-start; margin: var(--space-3) 0 var(--space-4); }

.share {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-3);
}
.share .btn svg { width: 18px; height: 18px; }

/* ---------- Legal pages ---------- */
.legal { max-width: 760px; margin-inline: auto; }
.legal h2 {
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(201, 165, 74, .18);
  font-size: var(--fs-h3);
}
.legal h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.legal h3 { margin-top: var(--space-5); font-size: var(--fs-lg); color: var(--light-gold); }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 1.25rem; margin-bottom: var(--space-4); display: grid; gap: var(--space-2); }
.legal strong { color: var(--cream); }
.legal-meta { color: var(--text-muted); font-size: var(--fs-sm); }
.legal-toc {
  margin-bottom: var(--space-7);
  padding: var(--space-5);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius);
  background: rgba(15, 26, 46, .3);
}
.legal-toc ol { margin: 0; padding-left: 1.25rem; columns: 1; column-gap: var(--space-6); }
.legal-toc li { padding-block: var(--space-1); }
.legal-toc a { color: var(--cream); text-decoration: none; }
.legal-toc a:hover { color: var(--gold); }
@media (min-width: 768px) { .legal-toc ol { columns: 2; } }

/* ---------- 32. Bundle cards ---------- */
.bundle-pair {
  display: grid;
  gap: var(--space-7) var(--space-6);
  max-width: 920px;
  margin-inline: auto;
}
@media (min-width: 900px) { .bundle-pair { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.bundle-pair .price-card { padding-block: var(--space-7) var(--space-6); }
.bundle-pair .compare-strip__books { margin-bottom: var(--space-5); }
.savings {
  display: inline-block;
  margin-bottom: var(--space-5);
  padding: .35rem .9rem;
  border-radius: 999px;
  background: rgba(45, 106, 79, .25);
  color: #9BDDBB;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .04em;
}

/* ---------- 33. Comparison table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg);
  background: rgba(15, 26, 46, .35);
  -webkit-overflow-scrolling: touch;
}
.compare-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.compare-table th,
.compare-table td {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid rgba(201, 165, 74, .12);
  text-align: center;
  vertical-align: middle;
}
.compare-table thead th {
  padding-block: var(--space-5) var(--space-4);
  font-family: var(--font-serif);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.3;
}
.compare-table thead th small {
  display: block;
  margin-top: var(--space-1);
  color: var(--gold);
  font-family: var(--font-sans);
  font-size: var(--fs-lg);
  font-weight: 700;
}
.compare-table tbody th {
  position: sticky;
  left: 0;
  z-index: 1;
  background: #17243F;
  font-weight: 400;
  text-align: left;
  color: var(--cream);
}
.compare-table thead th:first-child { position: sticky; left: 0; z-index: 2; background: #17243F; }
.compare-table .is-featured { background: rgba(201, 165, 74, .08); }
.compare-table thead .is-featured { border-top: 2px solid var(--gold); }
.compare-table .yes { color: var(--gold); }
.compare-table .yes svg { width: 20px; height: 20px; margin-inline: auto; }
.compare-table .no { color: rgba(240, 235, 224, .3); }
.compare-table tfoot td, .compare-table tfoot th { border-bottom: 0; padding-block: var(--space-5); }
.compare-table .old { color: var(--text-muted); text-decoration: line-through; text-decoration-color: var(--error); }
.compare-table .save { color: #9BDDBB; font-weight: 600; }
.table-hint { margin-top: var(--space-3); color: var(--text-muted); font-size: var(--fs-xs); text-align: center; }
@media (min-width: 900px) { .table-hint { display: none; } }

/* ---------- 34. Savings calculator ---------- */
.calc {
  display: grid;
  gap: var(--space-6);
  max-width: 920px;
  margin-inline: auto;
}
@media (min-width: 900px) { .calc { grid-template-columns: 1fr 1fr; align-items: start; } }
.calc__options { display: grid; gap: var(--space-3); border: 0; margin: 0; padding: 0; }
.calc__options legend { margin-bottom: var(--space-4); font-weight: 600; }
.calc-option {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 64px;
  padding: var(--space-3) var(--space-4);
  border: 1px solid rgba(201, 165, 74, .2);
  border-radius: var(--radius);
  background: rgba(15, 26, 46, .35);
  cursor: pointer;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.calc-option:hover { border-color: var(--gold-line); }
.calc-option:has(input:checked) { border-color: var(--gold); background: rgba(201, 165, 74, .08); }
.calc-option input { width: 22px; height: 22px; accent-color: var(--gold); flex: none; margin: 0; }
.calc-option span { flex: 1; }
.calc-option strong { color: var(--gold); font-variant-numeric: tabular-nums; }

.calc__result { text-align: center; }
.calc__row {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-2);
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.calc__row strong { color: var(--cream); font-variant-numeric: tabular-nums; }
.calc__total {
  margin: var(--space-4) 0 var(--space-2);
  color: var(--gold);
  font-family: var(--font-serif);
  font-size: var(--fs-price);
  font-weight: 600;
  line-height: 1;
}
.calc__message { min-height: 3.2em; margin-bottom: var(--space-5); color: var(--cream); }
.calc__message em { color: #9BDDBB; font-style: normal; font-weight: 600; }

.compare-strip__books { display: flex; justify-content: center; }
.compare-strip__books .book { margin-inline: 0; }
.compare-strip__books .book + .book { margin-left: -40px; margin-top: 24px; }
.compare-strip .price { justify-content: flex-start; }
@media (min-width: 768px) {
  .compare-strip { grid-template-columns: auto 1fr auto; gap: var(--space-7); padding: var(--space-7); }
}
