/* =========================================================
   Holy Spirit Healing Spirit · Landing Page
   Palette drawn from the book cover (midnight blue + light rays)
   and the HIM logo (gold swoosh).
   Design cues adapted from 21st.dev: film grain, masked grid,
   deep "depth" cards, glass badges, tactile buttons, joined
   amount input group.
   ========================================================= */

:root {
  --ink-950: #040814;
  --ink-900: #070d1f;
  --ink-850: #0a1430;
  --ink-800: #0f1c40;
  --blue-700: #162c6d;
  --blue-500: #2f6fd6;
  --blue-400: #5b9cff;
  --blue-200: #b9d4ff;

  --gold-600: #b3863f;
  --gold-500: #c99b52;
  --gold-400: #ddb978;
  --gold-200: #f1dfb8;

  --silver: #e7ebf3;
  --text: #dfe5f1;
  --text-muted: #9aa8c4;
  --line: rgba(255, 255, 255, 0.08);

  --paper: #fbfaf6;
  --paper-2: #f3f0e8;
  --paper-ink: #16203a;
  --paper-muted: #5d6680;
  --paper-line: #e2ddd0;
  --error: #c2412d;

  --font-display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --container: 1180px;
  --gutter: clamp(16px, 4vw, 32px);

  --shadow-deep: 0 40px 100px -20px rgba(0, 0, 0, .9), 0 20px 40px -20px rgba(0, 0, 0, .8);
  --ease: cubic-bezier(.25, 1, .5, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink-950);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-400); }
a:hover { color: var(--gold-200); }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; line-height: 1.12; }
em { font-style: italic; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 820px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold-500); color: var(--ink-950); padding: 10px 16px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 16px; }

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

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-400); margin-bottom: 18px;
}
.eyebrow.center { display: flex; justify-content: center; }
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(221, 185, 120, .18), 0 0 18px var(--gold-400);
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 5vw, 62px);
  letter-spacing: -.01em;
  line-height: 1.02;
}
.display span { display: block; }
.display.small { font-size: clamp(34px, 4.6vw, 58px); }

/* Silver-matte text (21st.dev cinematic hero) */
.silver {
  background: linear-gradient(180deg, #ffffff 0%, #aeb9cf 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, .55));
}
.gold-text {
  background: linear-gradient(180deg, var(--gold-200) 0%, var(--gold-500) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}

.section { position: relative; padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 4.4vw, 52px);
  color: #fff;
  letter-spacing: -.005em;
}
.section-title.center { text-align: center; }
.section-sub { margin-top: 18px; font-size: 18px; color: var(--text-muted); }
.sub-title { font-family: var(--font-display); font-size: 30px; font-weight: 600; color: #fff; margin-bottom: 20px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text); max-width: 560px; margin: 24px 0 32px; }
.muted { color: var(--text-muted); }
.center { text-align: center; }

@media (max-width: 640px) { .hide-sm { display: none; } }

/* ---------- Buttons (tactile, 21st.dev) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 16px;
  padding: 14px 24px; border-radius: 999px; border: 0; cursor: pointer;
  text-decoration: none; line-height: 1.2;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-lg { padding: 17px 30px; font-size: 17px; }
.btn-block { width: 100%; }

.btn-gold {
  color: #1a1206;
  background: linear-gradient(180deg, #ecd09a 0%, var(--gold-500) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .25) inset,
    0 -3px 6px rgba(0, 0, 0, .12) inset,
    0 2px 4px rgba(0, 0, 0, .25),
    0 14px 30px -8px rgba(201, 155, 82, .55);
}
.btn-gold:hover {
  color: #1a1206;
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .3) inset,
    0 -3px 6px rgba(0, 0, 0, .12) inset,
    0 6px 12px rgba(0, 0, 0, .25),
    0 22px 40px -8px rgba(201, 155, 82, .7);
}
.btn-gold:active { transform: translateY(1px); }

.btn-ghost {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset, 0 12px 24px -10px rgba(0, 0, 0, .8);
}
.btn-ghost:hover { color: #fff; transform: translateY(-3px); background: rgba(255, 255, 255, .1); }

/* ---------- Atmosphere layers ---------- */
.film-grain {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; opacity: .06; mix-blend-mode: overlay;
  background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)"/></svg>');
}
.bg-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .55;
  background-size: 60px 60px;
  background-image:
    linear-gradient(to right, rgba(185, 212, 255, .06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(185, 212, 255, .06) 1px, transparent 1px);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 0%, transparent 70%);
}
.bg-grid.faint { opacity: .3; }

/* Light rays echoing the cover art */
.hero-rays {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden;
  background:
    radial-gradient(ellipse 60% 55% at 72% 42%, rgba(47, 111, 214, .45), transparent 70%),
    radial-gradient(ellipse 40% 40% at 15% 10%, rgba(91, 156, 255, .18), transparent 70%),
    linear-gradient(180deg, var(--ink-900) 0%, var(--ink-950) 100%);
}
.hero-rays::before {
  content: ""; position: absolute; inset: -30%;
  background: repeating-conic-gradient(from 200deg at 20% -10%,
    rgba(185, 212, 255, .0) 0deg 6deg,
    rgba(185, 212, 255, .07) 7deg 8deg,
    rgba(185, 212, 255, .0) 9deg 15deg);
  -webkit-mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 65%);
  mask-image: radial-gradient(ellipse at 30% 20%, #000 0%, transparent 65%);
  animation: rays 24s ease-in-out infinite alternate;
}
.hero-rays.soft { opacity: .55; }
@keyframes rays { from { transform: rotate(-2deg); } to { transform: rotate(3deg); } }
@media (prefers-reduced-motion: reduce) { .hero-rays::before { animation: none; } }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(4, 8, 20, .72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand-logo { width: 52px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: .01em; }
.brand-sub { font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--gold-400); }

.nav-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 28px; }
.nav-menu a:not(.btn) { color: var(--text); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-menu a:not(.btn):hover { color: #fff; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; background: transparent; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  }
  .nav-toggle-bar, .nav-toggle-bar::before, .nav-toggle-bar::after {
    display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; transition: .3s;
  }
  .nav-toggle-bar::before, .nav-toggle-bar::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bar::before { top: -6px; }
  .nav-toggle-bar::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { top: 0; transform: rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { top: 0; transform: rotate(-45deg); }

  .nav-menu {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(4, 8, 20, .97); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-menu li .btn { margin-top: 16px; width: 100%; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 6vw, 80px) 0 clamp(72px, 9vw, 120px); }
.hero-inner {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: clamp(32px, 5vw, 64px);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-points { list-style: none; padding: 0; margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text-muted); }
.hero-points svg { width: 18px; height: 18px; color: var(--gold-400); }

.hero-visual { position: relative; }
.book-stage {
  position: relative; border-radius: var(--radius-lg); overflow: visible;
  perspective: 1200px;
}
.book-glow {
  position: absolute; inset: 10% 5%; border-radius: 50%;
  background: radial-gradient(circle, rgba(91, 156, 255, .55), transparent 65%);
  filter: blur(40px); z-index: 0;
}
.book-img {
  position: relative; z-index: 1;
  border-radius: var(--radius-lg);
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 62%, transparent 100%);
  mask-image: radial-gradient(closest-side at 50% 50%, #000 62%, transparent 100%);
  transform-style: preserve-3d;
  transition: transform 1.2s var(--ease);
  will-change: transform;
}

/* Glass badges (21st.dev floating-ui-badge) */
.glass-badge {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, .03) 100%);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 25px 50px -12px rgba(0, 0, 0, .8), inset 0 1px 1px rgba(255, 255, 255, .2);
  color: #fff; font-size: 14px; line-height: 1.25;
  animation: float 6s ease-in-out infinite;
}
.glass-badge strong { display: block; font-weight: 600; }
.glass-badge small { color: var(--blue-200); opacity: .8; font-size: 12px; }
.badge-icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--gold-200);
  background: linear-gradient(180deg, rgba(201, 155, 82, .35), rgba(201, 155, 82, .08));
  border: 1px solid rgba(221, 185, 120, .4);
}
.badge-top { top: 8%; left: -6%; }
.badge-bottom { bottom: 10%; right: -4%; animation-delay: -3s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .glass-badge { animation: none; } }

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
  .badge-top { left: 8px; top: 8px; }
  .badge-bottom { right: 8px; bottom: 8px; }
}
@media (max-width: 480px) {
  .glass-badge { padding: 8px 12px; font-size: 12px; gap: 8px; }
  .glass-badge small { display: none; }
  .badge-icon { width: 30px; height: 30px; font-size: 18px; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- Story ---------- */
.story { background: linear-gradient(180deg, var(--ink-950), var(--ink-900)); }
.story-body { font-size: 19px; margin-top: 40px; }
.dropcap::first-letter {
  float: left; font-family: var(--font-display); font-weight: 700;
  font-size: 4.2em; line-height: .82; padding: 6px 12px 0 0; color: var(--gold-400);
}
.pull-quote {
  margin: 48px 0; padding: 36px clamp(24px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--blue-700) 0%, #0a101d 100%);
  box-shadow: var(--shadow-deep), inset 0 1px 2px rgba(255, 255, 255, .15);
  border: 1px solid rgba(255, 255, 255, .05);
  position: relative; overflow: hidden;
}
.pull-quote::before {
  content: "\201C"; position: absolute; top: -30px; right: 24px;
  font-family: var(--font-display); font-size: 200px; color: rgba(221, 185, 120, .09); line-height: 1;
}
.pull-quote p {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: clamp(24px, 3vw, 34px); line-height: 1.3; color: #fff; margin-bottom: 16px; position: relative;
}
.pull-quote cite { font-style: normal; font-size: 14px; color: var(--gold-400); letter-spacing: .02em; }
.story-close { font-size: 19px; }
.story-close strong { color: #fff; }

/* ---------- Inside / Proofs ---------- */
.inside { background: var(--ink-900); overflow: hidden; }
.inside .container { position: relative; z-index: 1; }
.proofs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.proof-card {
  position: relative; padding: 30px 28px 28px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .05) 0%, rgba(255, 255, 255, .015) 100%);
  border: 1px solid rgba(255, 255, 255, .07);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .3), inset 0 1px 1px rgba(255, 255, 255, .05);
  transition: transform .5s var(--ease), border-color .3s, background .3s;
}
.proof-card:hover {
  transform: translateY(-4px);
  border-color: rgba(221, 185, 120, .35);
  background: linear-gradient(180deg, rgba(91, 156, 255, .09) 0%, rgba(255, 255, 255, .02) 100%);
}
.proof-num {
  display: block; font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1;
  color: transparent; -webkit-text-stroke: 1px var(--gold-400); margin-bottom: 18px;
}
.proof-card h3 { font-size: 19px; font-weight: 600; color: #fff; margin-bottom: 10px; line-height: 1.3; }
.proof-card p { font-size: 15.5px; color: var(--text-muted); margin-bottom: 16px; }
.ref { font-size: 12.5px; letter-spacing: .06em; color: var(--blue-200); opacity: .85; text-transform: uppercase; font-weight: 500; }
.proof-wide { grid-column: span 3; display: grid; grid-template-columns: auto 1fr; column-gap: 28px; align-items: start; }
.proof-wide .proof-num { grid-row: span 3; margin: 0; font-size: 64px; }
.proof-wide h3 { font-size: 22px; }

@media (max-width: 960px) {
  .proofs { grid-template-columns: repeat(2, 1fr); }
  .proof-wide { grid-column: span 2; }
}
@media (max-width: 600px) {
  .proofs { grid-template-columns: 1fr; }
  .proof-wide { grid-column: auto; display: block; }
  .proof-wide .proof-num { font-size: 44px; margin-bottom: 18px; }
}

.chapters {
  margin-top: clamp(56px, 8vw, 88px);
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 64px); align-items: center;
}
.chapter-list { list-style: none; margin: 0; padding: 0; counter-reset: ch; }
.chapter-list li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 16px 0; border-bottom: 1px solid var(--line); color: #fff; font-size: 17px;
}
.chapter-list li span {
  flex: none; width: 96px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-400); font-weight: 600;
}
.chapters-figure { margin: 0; }
.chapters-figure img { border-radius: var(--radius-lg); box-shadow: var(--shadow-deep); }
@media (max-width: 860px) {
  .chapters { grid-template-columns: 1fr; }
  .chapters-figure { order: -1; max-width: 460px; }
}
@media (max-width: 480px) {
  .chapter-list li { flex-direction: column; gap: 4px; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: linear-gradient(90deg, #0d1e4d, var(--blue-700) 50%, #0d1e4d);
  border-top: 1px solid rgba(221, 185, 120, .25); border-bottom: 1px solid rgba(221, 185, 120, .25);
  padding: 44px 0;
}
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta-band-text { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 30px); line-height: 1.3; max-width: 720px; }
@media (max-width: 760px) {
  .cta-band-inner { flex-direction: column; text-align: center; }
  .cta-band .btn { width: 100%; }
}

/* ---------- Miracles ---------- */
.miracles { background: var(--ink-950); }
.miracle-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.miracle-card {
  padding: 32px 28px; border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(22, 44, 109, .55), rgba(10, 16, 29, .6));
  border: 1px solid rgba(255, 255, 255, .06);
}
.miracle-icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 20px;
  display: grid; place-items: center; color: var(--gold-200);
  background: linear-gradient(180deg, rgba(201, 155, 82, .28), rgba(201, 155, 82, .06));
  border: 1px solid rgba(221, 185, 120, .3);
}
.miracle-icon svg { width: 26px; height: 26px; }
.miracle-card h3 { font-family: var(--font-display); font-size: 26px; color: #fff; font-weight: 600; margin-bottom: 10px; }
.miracle-card p { color: var(--text-muted); margin: 0; font-size: 16px; }
@media (max-width: 860px) { .miracle-grid { grid-template-columns: 1fr; } }

/* ---------- Video ---------- */
.video-section { background: linear-gradient(180deg, var(--ink-950), var(--ink-900)); padding-top: 0; }
.video-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.video-copy .section-title { margin-bottom: 18px; }
.video-thumb {
  position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-deep), 0 0 0 1px rgba(255, 255, 255, .06);
  text-decoration: none;
}
.video-thumb img { width: 100%; transition: transform .8s var(--ease); }
.video-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(4, 8, 20, .75)); }
.video-thumb:hover img { transform: scale(1.04); }
.play {
  position: absolute; z-index: 1; left: 24px; bottom: 22px;
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  color: #1a1206; background: linear-gradient(180deg, #ecd09a, var(--gold-500));
  box-shadow: 0 0 0 10px rgba(221, 185, 120, .2), 0 20px 40px rgba(0, 0, 0, .6);
  transition: transform .4s var(--ease);
}
.play svg { margin-left: 4px; }
.video-thumb:hover .play { transform: scale(1.08); }
.video-label { position: absolute; z-index: 1; left: 106px; bottom: 42px; color: #fff; font-weight: 600; font-size: 16px; }
@media (max-width: 860px) { .video-wrap { grid-template-columns: 1fr; } }

/* ---------- Author ---------- */
.author { background: var(--ink-900); }
.author-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.author-photo { margin: 0; position: relative; }
.author-photo img { border-radius: var(--radius-lg); box-shadow: var(--shadow-deep); width: 100%; }
.author-photo::before {
  content: ""; position: absolute; inset: -14px 14px 14px -14px; border-radius: var(--radius-lg);
  border: 1px solid rgba(221, 185, 120, .35); z-index: 0;
}
.author-photo img { position: relative; z-index: 1; }
.author-photo figcaption {
  position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 16px;
  padding: 14px 18px; border-radius: 14px;
  background: rgba(4, 8, 20, .6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: 13px; color: var(--text-muted);
}
.author-photo figcaption strong { display: block; color: #fff; font-size: 16px; }
.author-copy .section-title { margin-bottom: 24px; font-size: clamp(30px, 3.6vw, 44px); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 36px 0 0; }
.stats div { padding: 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.stats dt { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--gold-400); line-height: 1; margin-bottom: 6px; }
.stats dd { margin: 0; font-size: 14px; color: var(--text-muted); }
@media (max-width: 860px) {
  .author-inner { grid-template-columns: 1fr; }
  .author-photo { max-width: 420px; margin: 0 auto 0 14px; }
}
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* ---------- Give / Form ---------- */
.give { overflow: hidden; background: var(--ink-950); }
.give .container { position: relative; z-index: 1; }

.give-form {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start;
  color: var(--paper-ink);
}
.form-main { display: grid; gap: 20px; min-width: 0; }

.form-card {
  margin: 0; min-width: 0;
  border: 0; border-radius: var(--radius-lg);
  background: var(--paper);
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .5) inset;
}
.step {
  float: left; width: 100%;
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--paper-ink);
  padding: 0; margin-bottom: 24px;
}
.step + * { clear: both; }
.step-num {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  font-family: var(--font-body); font-size: 15px; font-weight: 700;
  color: #fff; background: linear-gradient(145deg, var(--blue-700), #0a101d);
}
.step .optional { font-family: var(--font-body); font-size: 14px; font-weight: 500; }

/* Amount buttons */
.amount-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 22px; }
.amount-option { position: relative; cursor: pointer; }
.amount-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.amount-option span {
  display: grid; place-items: center; height: 64px; border-radius: 14px;
  font-size: 22px; font-weight: 700; color: var(--paper-ink);
  background: #fff; border: 1.5px solid var(--paper-line);
  transition: all .25s var(--ease);
}
.amount-option:hover span { border-color: var(--gold-500); }
.amount-option input:checked + span {
  color: #fff; border-color: var(--blue-700);
  background: linear-gradient(145deg, var(--blue-700), #0a101d);
  box-shadow: 0 10px 24px -10px rgba(22, 44, 109, .8);
}
.amount-option input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }
@media (max-width: 520px) { .amount-grid { grid-template-columns: repeat(2, 1fr); } }

/* Joined amount input group (21st.dev Currency Amount Input Group) */
.field-label, .field label { display: block; font-size: 14px; font-weight: 600; color: var(--paper-ink); margin-bottom: 8px; }
.amount-input-group {
  display: flex; align-items: stretch; border-radius: 14px; overflow: hidden;
  border: 1.5px solid var(--paper-line); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.amount-input-group:focus-within { border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 111, 214, .15); }
.amount-input-group .currency, .amount-input-group .currency-code {
  display: grid; place-items: center; padding: 0 16px; color: var(--paper-muted); font-weight: 600;
  background: var(--paper-2);
}
.amount-input-group .currency { border-right: 1px solid var(--paper-line); font-size: 18px; }
.amount-input-group .currency-code { border-left: 1px solid var(--paper-line); font-size: 13px; letter-spacing: .08em; }
.amount-input-group input {
  flex: 1; min-width: 0; border: 0; outline: 0; padding: 16px; font-size: 18px; font-weight: 600; color: var(--paper-ink);
  font-family: var(--font-body); background: transparent;
}
.amount-input-group input::-webkit-outer-spin-button,
.amount-input-group input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.amount-input-group input[type=number] { -moz-appearance: textfield; appearance: textfield; }

.help { font-size: 13.5px; color: var(--paper-muted); margin: 8px 0 0; }
.error { font-size: 14px; color: var(--error); font-weight: 500; margin: 10px 0 0; }

/* Required shipping toggle */
.shipping-toggle {
  margin-top: 26px; padding: 22px; border-radius: 18px;
  background: linear-gradient(180deg, #fff8ea, #fdf3dc);
  border: 1.5px solid #ecd7aa;
  transition: border-color .2s, box-shadow .2s;
}
.shipping-toggle.has-error { border-color: var(--error); box-shadow: 0 0 0 4px rgba(194, 65, 45, .12); }
.shipping-toggle-head { margin-bottom: 16px; }
.shipping-question { display: block; font-size: 17px; font-weight: 600; color: var(--paper-ink); line-height: 1.4; }
.ship-amount { color: var(--gold-600); }
.required-tag {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-600); background: rgba(201, 155, 82, .16); padding: 3px 8px; border-radius: 999px;
}
.segmented {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 6px; border-radius: 14px; background: rgba(22, 32, 58, .07);
}
.seg-option { position: relative; cursor: pointer; }
.seg-option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.seg-option > span {
  display: flex; align-items: center; justify-content: center; gap: 8px; text-align: center;
  min-height: 50px; padding: 10px 12px; border-radius: 10px;
  font-weight: 600; font-size: 15px; color: var(--paper-muted);
  transition: all .25s var(--ease);
}
.seg-option > span svg { display: none; }
.seg-option:hover > span { color: var(--paper-ink); background: rgba(255, 255, 255, .6); }
.seg-option input:checked + span {
  background: #fff; color: var(--paper-ink);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 6px 16px -6px rgba(22, 32, 58, .35);
}
.seg-option input[value="yes"]:checked + span {
  color: #fff; background: linear-gradient(145deg, var(--blue-700), #0a101d);
}
.seg-option input[value="yes"]:checked + span svg { display: inline; color: var(--gold-400); }
.seg-option input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* Fields */
.field { margin-bottom: 18px; min-width: 0; }
.field:last-child { margin-bottom: 0; }
.grid-2, .grid-3 { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: 1fr 1fr; }
.grid-3 { grid-template-columns: 1.4fr 1fr 1fr; }
.grid-2 + .grid-2, .grid-2 + .field, .field + .grid-2, .field + .grid-3 { margin-top: 0; }
.grid-2 .field, .grid-3 .field { margin-bottom: 18px; }
@media (max-width: 640px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 0; }
}
.req { color: var(--gold-600); }
.optional { color: var(--paper-muted); font-weight: 400; }

.field input, .field select, .field textarea {
  width: 100%; font-family: var(--font-body); font-size: 16px; color: var(--paper-ink);
  padding: 13px 14px; border-radius: 12px; border: 1.5px solid var(--paper-line); background: #fff;
  transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="18" height="18"><path d="m6 9 6 6 6-6" fill="none" stroke="%235d6680" stroke-width="2" stroke-linecap="round"/></svg>');
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0; border-color: var(--blue-500); box-shadow: 0 0 0 4px rgba(47, 111, 214, .15);
}
.field input.invalid, .field select.invalid { border-color: var(--error); box-shadow: 0 0 0 4px rgba(194, 65, 45, .1); }
.field input::placeholder, .field textarea::placeholder { color: #a3a9b8; }

.input-icon { position: relative; }
.input-icon input { padding-right: 150px; }
.card-brands { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); display: flex; gap: 4px; pointer-events: none; }
.cb {
  font-size: 9.5px; font-weight: 800; letter-spacing: .04em; color: var(--paper-muted);
  border: 1px solid var(--paper-line); border-radius: 4px; padding: 3px 5px; background: var(--paper-2);
}
@media (max-width: 400px) { .card-brands { display: none; } .input-icon input { padding-right: 14px; } }

.secure-note {
  display: flex; align-items: center; gap: 8px; font-size: 14px; color: #2e7d4f; font-weight: 500;
  background: #eef7f1; border: 1px solid #cfe8d8; padding: 10px 14px; border-radius: 10px; margin-bottom: 20px;
}

.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 15px; color: var(--paper-ink); margin-top: 8px; position: relative; }
.check input { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; cursor: pointer; }
.check-box {
  flex: none; width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid #c4bfb1; background: #fff;
  display: grid; place-items: center; transition: all .2s; margin-top: 1px;
}
.check input:checked + .check-box { background: var(--blue-700); border-color: var(--blue-700); }
.check input:checked + .check-box::after {
  content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) translate(-1px, -1px);
}
.check input:focus-visible + .check-box { outline: 2px solid var(--gold-500); outline-offset: 2px; }

.billing-fields { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--paper-line); }

/* Summary */
.form-summary { position: sticky; top: 96px; }
.summary-card {
  border-radius: var(--radius-lg); padding: 28px;
  background: linear-gradient(145deg, var(--blue-700) 0%, #0a101d 100%);
  color: var(--text);
  box-shadow: var(--shadow-deep), inset 0 1px 2px rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .05);
  position: relative; overflow: hidden;
}
.summary-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(500px circle at var(--mx, 70%) var(--my, 0%), rgba(255, 255, 255, .08), transparent 40%);
}
.summary-book { display: flex; gap: 16px; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.summary-book img { width: 84px; border-radius: 10px; box-shadow: 0 10px 20px rgba(0, 0, 0, .5); }
.summary-kicker { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400); margin: 0 0 4px; font-weight: 600; }
.summary-title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: #fff; margin: 0; line-height: 1.15; }
.summary-by { font-size: 13px; color: var(--text-muted); margin: 4px 0 0; }
.summary-lines { margin: 20px 0 24px; }
.summary-lines div { display: flex; justify-content: space-between; padding: 8px 0; font-size: 15px; }
.summary-lines dt { color: var(--text-muted); }
.summary-lines dd { margin: 0; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.summary-lines dd.muted-dd { color: var(--text-muted); font-weight: 400; font-style: italic; }
.summary-total { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px !important; }
.summary-total dt { color: #fff !important; font-weight: 600; }
.summary-total dd { font-family: var(--font-display); font-size: 30px; color: var(--gold-200) !important; line-height: 1; }
.summary-fine { font-size: 13px; color: var(--text-muted); margin: 14px 0 0; text-align: center; }

@media (max-width: 1020px) {
  .give-form { grid-template-columns: 1fr; }
  .form-summary { position: static; }
}

.form-success {
  max-width: 560px; margin: 0 auto; text-align: center; padding: 48px 32px; border-radius: var(--radius-lg);
  background: var(--paper); color: var(--paper-ink);
}
.form-success h3 { font-family: var(--font-display); font-size: 36px; margin: 16px 0 12px; }
.form-success .muted { color: var(--paper-muted); font-size: 14px; }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center;
  color: #fff; background: linear-gradient(145deg, var(--blue-700), #0a101d);
  box-shadow: 0 0 0 8px rgba(22, 44, 109, .12);
}

/* ---------- FAQ ---------- */
.faq { background: var(--ink-900); }
.faq-list { display: grid; gap: 12px; }
.faq details {
  border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01));
  transition: border-color .3s;
}
.faq details[open] { border-color: rgba(221, 185, 120, .35); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 60px 22px 24px; position: relative;
  font-size: 18px; font-weight: 600; color: #fff;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--gold-400); border-bottom: 2px solid var(--gold-400);
  transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 24px 22px; margin: 0; color: var(--text-muted); }

/* ---------- Final CTA ---------- */
.final-cta { position: relative; overflow: hidden; padding: clamp(72px, 10vw, 120px) 0; }
.final-inner { position: relative; z-index: 3; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.final-book { border-radius: var(--radius-lg); box-shadow: var(--shadow-deep); }
.final-cta .lead { margin: 20px 0 30px; }
@media (max-width: 760px) {
  .final-inner { grid-template-columns: 1fr; text-align: center; }
  .final-book { max-width: 360px; margin: 0 auto; }
  .final-cta .lead { margin-left: auto; margin-right: auto; }
}

/* ---------- Footer ---------- */
.site-footer { background: #02050d; border-top: 1px solid var(--line); padding: 56px 0 24px; font-size: 15px; color: var(--text-muted); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 64px; margin-bottom: 14px; }
.footer-brand strong { color: #fff; }
.footer-contact { font-style: normal; line-height: 1.9; }
.footer-links { list-style: none; margin: 0; padding: 0; line-height: 2.1; }
.footer-links a, .footer-contact a { color: var(--text); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold-400); }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 13px; }
.footer-base p { margin: 0; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  display: none; text-align: center; padding: 16px; border-radius: 999px;
  font-weight: 700; text-decoration: none; color: #1a1206;
  background: linear-gradient(180deg, #ecd09a, var(--gold-500));
  box-shadow: 0 16px 40px rgba(0, 0, 0, .6);
  transform: translateY(140%); transition: transform .4s var(--ease);
}
.sticky-cta.show { transform: translateY(0); }
@media (max-width: 760px) { .sticky-cta { display: block; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
