/* ===============================================
   CENTERING PRAYER — A Scrolling Labyrinth
   =============================================== */

/* ===============================================
   PALETTE — Colorblind-safe & high-contrast
   Anchors: deep navy text (#0f1a2e) on warm cream (#faf6ef),
   warm amber accent (#b65f00 light / #ffb547 dark).
   This navy/amber pair is distinguishable under
   deuteranopia, protanopia, and tritanopia.
   All text/background combos meet WCAG AA at minimum;
   primary body text meets AAA (>= 7:1).
   =============================================== */
:root, [data-theme='light'] {
  --color-bg: #faf6ef;            /* warm cream */
  --color-surface: #ffffff;
  --color-surface-2: #ffffff;
  --color-surface-offset: #f0e9da;
  --color-divider: #c9bfa8;
  --color-border: #8d8472;        /* darker border for contrast */

  --color-text: #0f1a2e;          /* deep navy — ~17:1 on bg */
  --color-text-muted: #2f3a4f;    /* still ~10:1 */
  --color-text-faint: #4d5466;    /* ~6.5:1 — AA Large+ */

  --color-primary: #b65f00;       /* warm amber, ~5.4:1 on bg */
  --color-primary-hover: #944c00;
  --color-primary-soft: #f0d6a8;
  --color-glow-1: #fff3d6;
  --color-glow-2: #ffc870;
  --color-glow-3: #b65f00;

  /* Generous reading scale */
  --text-xs: clamp(0.875rem, 0.8rem + 0.3vw, 1rem);
  --text-sm: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --text-base: clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-lg: clamp(1.375rem, 1.2rem + 0.9vw, 1.875rem);
  --text-xl: clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);
  --text-2xl: clamp(2.5rem, 1.8rem + 3vw, 4.25rem);
  --text-3xl: clamp(3rem, 1.8rem + 4.5vw, 5.5rem);

  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
  --space-4: 1rem;   --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem;   --space-10: 2.5rem; --space-12: 3rem;
  --space-16: 4rem;  --space-20: 5rem;  --space-24: 6rem;
  --space-32: 8rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  --transition-interactive: 360ms cubic-bezier(0.22, 1, 0.36, 1);

  --content-narrow: 640px;
  --content-default: 880px;

  /* Single hyperlegible family for the whole site —
     Atkinson Hyperlegible is designed by the Braille
     Institute for maximum letterform distinction. */
  --font-display: 'Atkinson Hyperlegible', 'Helvetica Neue', system-ui, sans-serif;
  --font-body: 'Atkinson Hyperlegible', 'Helvetica Neue', system-ui, sans-serif;
}

[data-theme='dark'] {
  --color-bg: #0d1320;            /* deep navy ground */
  --color-surface: #131a2a;
  --color-surface-2: #182135;
  --color-surface-offset: #1c2640;
  --color-divider: #2a3550;
  --color-border: #4a5a7a;
  --color-text: #f4ecda;          /* warm cream text, ~15:1 */
  --color-text-muted: #d5cdb8;    /* ~10:1 */
  --color-text-faint: #a89e85;    /* ~6:1 */
  --color-primary: #ffb547;       /* warm amber, ~9:1 on bg */
  --color-primary-hover: #ffcb7d;
  --color-primary-soft: #6b5530;
  --color-glow-1: #fff3d6;
  --color-glow-2: #ffc870;
  --color-glow-3: #b65f00;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #0d1320;
    --color-surface: #131a2a;
    --color-surface-2: #182135;
    --color-surface-offset: #1c2640;
    --color-divider: #2a3550;
    --color-border: #4a5a7a;
    --color-text: #f4ecda;
    --color-text-muted: #d5cdb8;
    --color-text-faint: #a89e85;
    --color-primary: #ffb547;
    --color-primary-hover: #ffcb7d;
    --color-primary-soft: #6b5530;
    --color-glow-1: #fff3d6;
    --color-glow-2: #ffc870;
    --color-glow-3: #b65f00;
  }
}

/* Ambient base background */
body {
  background:
    radial-gradient(ellipse at 50% 50%, oklch(from var(--color-glow-1) l c h / 0.18) 0%, transparent 60%),
    var(--color-bg);
}

/* ===============================================
   TYPOGRAPHY — hyperlegible defaults
   Atkinson is already wide-set; we avoid italic for
   large display text (italic at scale is harder for
   dyslexic readers) and use weight (700) for emphasis.
   =============================================== */
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0; }
.italic { font-style: normal; }  /* neutralized for legibility */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
}

/* ===============================================
   STICKY ATMOSPHERE — marble + labyrinth
   =============================================== */
.atmosphere {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Driven by JS scroll progress 0 → 1 */
  --p: 0;
  /* JS sets --fade from 1 → 0 once we pass the center moment so the
     orb doesn't ghost behind Biblical Roots / how-to sections below. */
  --fade: 1;
  opacity: var(--fade);
  transition: opacity 0.45s ease;
}

.atmosphere-inner {
  position: relative;
  width: min(90vmin, 700px);
  height: min(90vmin, 700px);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Start high on the page; descend toward center as we scroll.
     At p=0 the marble sits high (above first heading);
     at p=1 it's fully centered. */
  transform: translateY(calc((1 - var(--p)) * -42vh)) scale(calc(0.7 + var(--p) * 0.4));
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  opacity: calc(0.55 + var(--p) * 0.45);
}

/* Labyrinth — fades to opacity 0 at very start AND very end */
.labyrinth {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--color-primary);
  /* Rotate gently with scroll */
  transform: rotate(calc(var(--p) * 90deg));
  opacity: calc(0.35 + var(--p) * 0.35);
  transition: opacity 0.5s, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme='dark'] .labyrinth { opacity: calc(0.25 + var(--p) * 0.35); }

/* The marble — starts small at top of page, grows toward center */
.marble {
  position: relative;
  width: calc(60px + var(--p) * 240px);
  height: calc(60px + var(--p) * 240px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    var(--color-glow-1) 0%,
    var(--color-glow-2) 30%,
    var(--color-glow-3) 70%,
    oklch(from var(--color-glow-3) calc(l - 0.18) c h) 100%);
  box-shadow:
    0 0 calc(40px + var(--p) * 80px) oklch(from var(--color-glow-2) l c h / calc(0.3 + var(--p) * 0.3)),
    0 0 calc(80px + var(--p) * 160px) oklch(from var(--color-glow-2) l c h / calc(0.15 + var(--p) * 0.25)),
    0 0 calc(160px + var(--p) * 240px) oklch(from var(--color-glow-2) l c h / calc(0.05 + var(--p) * 0.15)),
    inset -20px -30px 40px oklch(from var(--color-glow-3) calc(l - 0.15) c h / 0.4),
    inset 10px 15px 30px oklch(from var(--color-glow-1) l c h / 0.6);
  animation: breathe 8s ease-in-out infinite;
  /* No width/height transitions — those caused visible blinking when --p
     changed rapidly during smooth scrolling. The scroll handler already
     runs in a rAF loop, so CSS interpolation is unnecessary. */
  will-change: transform;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.04); filter: brightness(1.08); }
}

/* ===============================================
   JOURNEY — the scrolling thread
   =============================================== */
.journey {
  position: relative;
  z-index: 1;
}

.step-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-24) var(--space-6);
  position: relative;
}

/* First step — center vertically; marble lives above in the atmosphere layer */
.step-1 {
  align-items: center;
  min-height: 100vh;
  padding-top: var(--space-24);
  padding-bottom: var(--space-24);
}

.step-content {
  width: 100%;
  max-width: var(--content-default);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
  /* Push text off-center of the marble so they don't overlap visually */
}

.step-content.narrow { max-width: var(--content-narrow); }

/* Reveal-on-scroll — base hidden state */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 1.4s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children when their parent .step-content is in view */
.step-content .reveal:nth-child(1) { transition-delay: 0.05s; }
.step-content .reveal:nth-child(2) { transition-delay: 0.35s; }
.step-content .reveal:nth-child(3) { transition-delay: 0.65s; }
.step-content .reveal:nth-child(4) { transition-delay: 0.95s; }
.step-content .reveal:nth-child(5) { transition-delay: 1.25s; }
.step-content .reveal:nth-child(6) { transition-delay: 1.55s; }

/* ===============================================
   STEP COPY TYPOGRAPHY
   =============================================== */
.lead {
  font-size: var(--text-2xl);
  line-height: 1.2;
  color: var(--color-text);
  max-width: 22ch;
  font-weight: 700;
}

.verse {
  font-size: var(--text-xl);
  line-height: 1.4;
  color: var(--color-text);
  max-width: 26ch;
  font-weight: 400;
  font-style: normal;
}
.verse.soft { color: var(--color-text-muted); }

/* Step 4 — Mind / Heart / Strength stack */
.invitation-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
  align-items: center;
  margin-top: var(--space-6);
}
.invitation-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
}
.invitation-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-primary);
}
.invitation-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  line-height: 1.35;
  font-weight: 400;
}

/* Step 5 — Release */
.release-line {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.45;
}
.release-coda {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  line-height: 1.25;
  max-width: 24ch;
  font-weight: 700;
}

/* Step 6 — How to pray */
.how-title {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  font-weight: 700;
  margin-top: var(--space-2);
  margin-bottom: var(--space-6);
  color: var(--text);
}
.how-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
  width: 100%;
  max-width: var(--content-narrow);
  text-align: left;
  margin-top: var(--space-6);
}
.how-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  align-items: start;
}
.how-num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--color-primary);
  line-height: 1;
  font-weight: 300;
  opacity: 0.85;
}
.how-body { display: flex; flex-direction: column; gap: var(--space-3); padding-top: var(--space-3); }
.how-head {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.3;
}
.how-detail {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
  font-weight: 400;
}

/* ===============================================
   STEP 7 — Prepare (setup)
   =============================================== */
.setup-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  align-items: center;
  width: 100%;
  max-width: 560px;
  padding: var(--space-6) 0;
}

.field-label {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-muted);
  text-align: center;
}

.optional-tag {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  opacity: 0.7;
}

.sacred-input {
  width: 100%;
  max-width: 480px;
  padding: var(--space-4) var(--space-4);
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--color-border);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  text-align: center;
  letter-spacing: 0.04em;
  font-weight: 400;
}
.sacred-input::placeholder { color: var(--color-text-faint); }
.sacred-input:focus { border-bottom-color: var(--color-primary); outline: none; }

.options {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: center;
}
.option {
  padding: var(--space-3) var(--space-6);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  letter-spacing: 0;
  font-weight: 400;
  min-height: 48px;
}
.option:hover { border-color: var(--color-primary); color: var(--color-primary); }
.option.selected {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-bg);
  font-weight: 700;
}
[data-theme='dark'] .option.selected { color: #0d1320; }

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
  max-width: 480px;
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
}
.toggle-row label {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  cursor: pointer;
}
.toggle {
  --w: 44px;
  --h: 24px;
  position: relative;
  width: var(--w);
  height: var(--h);
  background: var(--color-divider);
  border-radius: var(--radius-full);
  border: none;
  padding: 0;
  flex-shrink: 0;
}
.toggle::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  background: var(--color-surface-2);
  border-radius: 50%;
  transition: transform var(--transition-interactive);
  box-shadow: 0 1px 3px oklch(0 0 0 / 0.2);
}
.toggle[aria-checked="true"] { background: var(--color-primary); }
.toggle[aria-checked="true"]::after { transform: translateX(20px); }

/* ===============================================
   STEP 8 — THE CENTER
   =============================================== */
.step-center {
  min-height: 100vh;
}
.center-whisper {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.2;
  max-width: 16ch;
}
.center-instruction {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--color-text);
  line-height: 1.45;
  max-width: 26ch;
  opacity: 0.92;
}
.center-button {
  margin-top: var(--space-8);
  padding: var(--space-5) var(--space-16);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-bg);
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  min-height: 60px;
  cursor: pointer;
  transition: all var(--transition-interactive);
}
[data-theme='dark'] .center-button { color: #0d1320; }
.center-button:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
}

/* ===============================================
   PRAYER EXPERIENCE
   =============================================== */
.prayer-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at 50% 50%, #1c1814 0%, #0e0c0a 70%, #050403 100%);
  opacity: 0;
  transition: opacity 2s ease;
}
.prayer-screen.active { display: flex; opacity: 1; }

.prayer-marble {
  width: clamp(180px, 32vmin, 280px);
  height: clamp(180px, 32vmin, 280px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    #fff3d6 0%, #f0d68a 30%, #a07a3a 70%, #4a3618 100%);
  box-shadow:
    0 0 80px oklch(from #f0d68a l c h / 0.5),
    0 0 160px oklch(from #f0d68a l c h / 0.3),
    0 0 240px oklch(from #f0d68a l c h / 0.15),
    inset -20px -30px 40px oklch(from #4a3618 l c h / 0.5),
    inset 10px 15px 30px oklch(from #fff3d6 l c h / 0.6);
  animation: breathe 10s ease-in-out infinite;
}

.prayer-word {
  position: absolute;
  bottom: 16vh;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xl);
  color: #d9b977;
  letter-spacing: 0.2em;
  opacity: 0;
  animation: word-pulse 18s ease-in-out infinite;
}

@keyframes word-pulse {
  0%, 100% { opacity: 0; }
  40%, 60% { opacity: 0.7; }
}

.prayer-timer {
  position: absolute;
  top: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.4em;
  color: oklch(from #d9b977 l c h / 0.85);
  text-transform: uppercase;
  opacity: 1;
  transition: opacity 1s;
}
.prayer-screen:hover .prayer-timer,
.prayer-screen:focus-within .prayer-timer { opacity: 1; }

.prayer-exit {
  position: absolute;
  bottom: var(--space-6);
  right: var(--space-6);
  min-width: 8.5rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.3em;
  color: oklch(from #d9b977 l c h / 0.95);
  text-transform: uppercase;
  padding: 0 var(--space-6);
  border: 1px solid oklch(from #d9b977 l c h / 0.5);
  border-radius: var(--radius-full);
  background: oklch(from #d9b977 l c h / 0.06);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.8s, color var(--transition-interactive), border-color var(--transition-interactive), background var(--transition-interactive);
}
.prayer-screen:hover .prayer-exit,
.prayer-screen:focus-within .prayer-exit { opacity: 1; }
.prayer-exit:hover {
  color: #fff3d6;
  border-color: oklch(from #d9b977 l c h / 0.5);
}

/* ===============================================
   AFTER PRAYER OVERLAY
   =============================================== */
.after-screen {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-6);
  background:
    radial-gradient(ellipse at 50% 50%, oklch(from var(--color-glow-1) l c h / 0.35) 0%, transparent 65%),
    var(--color-bg);
  opacity: 0;
  transition: opacity 2s ease;
  overflow-y: auto;
}
.after-screen.active { display: flex; opacity: 1; }

.after-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-8);
  max-width: 640px;
  text-align: center;
  padding-block: var(--space-12);
}

.after-marble {
  width: clamp(120px, 18vmin, 160px);
  height: clamp(120px, 18vmin, 160px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%,
    var(--color-glow-1) 0%, var(--color-glow-2) 30%, var(--color-glow-3) 70%, oklch(from var(--color-glow-3) calc(l - 0.18) c h) 100%);
  box-shadow:
    0 0 60px oklch(from var(--color-glow-2) l c h / 0.4),
    0 0 120px oklch(from var(--color-glow-2) l c h / 0.25),
    inset -15px -22px 30px oklch(from var(--color-glow-3) calc(l - 0.15) c h / 0.4),
    inset 8px 12px 24px oklch(from var(--color-glow-1) l c h / 0.6);
  animation: breathe 9s ease-in-out infinite;
  margin-bottom: var(--space-4);
}

.after-grateful {
  font-size: var(--text-2xl);
  color: var(--color-text);
  font-weight: 700;
  line-height: 1.25;
  max-width: 20ch;
}
.after-instruction {
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  line-height: 1.45;
  max-width: 28ch;
}

.after-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-6);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-10);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text);
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-full);
  min-height: 52px;
  min-width: 200px;
  cursor: pointer;
}
.btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  border-color: transparent;
  color: var(--color-text-muted);
  min-width: 0;
  min-height: 48px;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  padding: var(--space-3) var(--space-6);
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--color-divider);
}
.btn-ghost:hover { color: var(--color-text); transform: none; text-decoration-color: var(--color-primary); }

.after-footer {
  margin-top: var(--space-16);
  padding-top: var(--space-10);
  border-top: 1px solid var(--color-divider);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  color: var(--color-text-muted);
  font-size: var(--text-lg);
  line-height: 1.5;
}
.after-footer .footer-label {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.after-footer p { max-width: 38ch; }

/* ===============================================
   SCROLL HINT
   =============================================== */
.scroll-hint {
  position: fixed;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  pointer-events: none;
  transition: opacity 1s ease;
  animation: hint-bob 3.5s ease-in-out infinite;
}
.scroll-hint.hidden { opacity: 0; }
@keyframes hint-bob {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 6px); }
}

/* ===============================================
   TOP-RIGHT CONTROLS (theme toggle + hamburger nav)
   =============================================== */
.top-controls {
  position: fixed;
  top: var(--space-6);
  right: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  z-index: 50;
}
.theme-toggle,
.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  cursor: pointer;
  padding: 0;
  transition: color var(--transition-interactive), border-color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle:hover,
.nav-toggle:hover { color: var(--color-primary); border-color: var(--color-primary); }

/* Hamburger icon */
.nav-toggle { flex-direction: column; gap: 4px; position: relative; }
.nav-bar {
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 260ms ease, opacity 200ms ease;
}
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] .nav-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Slide-out nav panel */
.nav-overlay {
  position: fixed;
  inset: 0;
  background: oklch(0 0 0 / 0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  z-index: 48;
}
.nav-overlay.open {
  opacity: 1;
  pointer-events: auto;
}
.nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(360px, 88vw);
  background: var(--color-surface);
  border-left: 2px solid var(--color-border);
  transform: translateX(100%);
  transition: transform 380ms cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 49;
  display: flex;
  flex-direction: column;
  box-shadow: -12px 0 40px oklch(0 0 0 / 0.12);
}
.nav-panel.open {
  transform: translateX(0);
}
.nav-panel-inner {
  /* top: clear the close button; sides: generous breathing room */
  padding: calc(var(--space-6) + 44px + var(--space-6)) var(--space-10) var(--space-10);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  height: 100%;
}
@media (max-width: 600px) {
  .nav-panel-inner { padding-left: var(--space-8); padding-right: var(--space-8); }
}
.nav-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin: 0;
}
.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  padding: var(--space-3) 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 200ms ease, border-color 200ms ease, padding-left 200ms ease;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: var(--color-primary);
  outline: none;
  padding-left: 6px;
}
.nav-divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-3) 0;
  list-style: none;
}
.nav-link-ext { font-size: 1.15rem; font-weight: 400; }
.nav-ext-arrow { font-size: 1rem; opacity: 0.6; }
.nav-footnote {
  margin-top: auto;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--color-muted);
  font-style: italic;
}

/* Hide top controls during prayer overlay */
.prayer-screen.active ~ .top-controls,
.after-screen.active ~ .top-controls { display: none; }

/* ===============================================
   JOURNAL MODAL
   =============================================== */
.journal-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 560px;
  width: 90vw;
  border-radius: var(--radius-lg);
}
.journal-modal::backdrop {
  background: oklch(0 0 0 / 0.5);
  backdrop-filter: blur(8px);
}
.journal-inner {
  background: var(--color-surface);
  padding: var(--space-12) var(--space-8);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.journal-inner h3 { font-size: var(--text-xl); color: var(--color-text); font-weight: 700; }
.journal-help { color: var(--color-text-muted); font-size: var(--text-base); }
.journal-modal textarea {
  width: 100%;
  padding: var(--space-4);
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-lg);
  color: var(--color-text);
  resize: vertical;
  line-height: 1.5;
}
.journal-modal textarea:focus { outline: none; border-color: var(--color-primary); }
.journal-actions { display: flex; gap: var(--space-3); justify-content: flex-end; }

/* ===============================================
   RESPONSIVE
   =============================================== */
@media (max-width: 640px) {
  .step-section { padding: var(--space-16) var(--space-5); }
  .how-step { grid-template-columns: 1fr; gap: var(--space-2); text-align: center; justify-items: center; }
  .how-num { font-size: var(--text-2xl); }
  .options { gap: var(--space-2); }
  .option { padding: var(--space-3) var(--space-5); font-size: var(--text-sm); }
  .toggle-row { flex-direction: row; }
  .btn { width: 100%; }
  .top-controls { top: var(--space-4); right: var(--space-4); }
  .scroll-hint { bottom: var(--space-5); }
  .atmosphere-inner { width: min(80vw, 500px); height: min(80vw, 500px); }
}

/* =========================================================
   Sacred-word marquee (scrolls left → right slowly)
   ========================================================= */
.word-marquee {
  width: 100%;
  max-width: var(--content-narrow);
  margin-top: var(--space-4);
  overflow: hidden;
  position: relative;
  /* fade the edges so chips melt in/out */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}
.word-track {
  display: flex;
  gap: var(--space-3);
  width: max-content;
  /* translate from -50% (showing the second copy) to 0 so motion
     reads left → right; loop seamlessly because the second copy
     is identical to the first */
  animation: word-marquee 60s linear infinite;
  will-change: transform;
}
.word-marquee:hover .word-track,
.word-marquee:focus-within .word-track {
  animation-play-state: paused;
}
@keyframes word-marquee {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.word-chip {
  flex: 0 0 auto;
  appearance: none;
  background: transparent;
  border: 2px solid var(--rule);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0;
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
.word-chip:hover,
.word-chip:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-on);
  outline: none;
}
@media (prefers-reduced-motion: reduce) {
  .word-track { animation: none; transform: translateX(0); }
  .word-marquee { overflow-x: auto; }
}

/* Two-line toggle label (e.g. "Om drone underneath" + small hint) */
.toggle-label-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.toggle-hint {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}

/* =========================================================
   Lord's Prayer panel (After-prayer screen)
   ========================================================= */
.lords-prayer-panel {
  width: 100%;
  max-width: var(--content-narrow);
  margin: var(--space-8) auto var(--space-4);
  padding: var(--space-6) var(--space-5);
  border-top: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  text-align: center;
}
.lp-eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--space-3);
}
.lp-invite {
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0 0 var(--space-5);
  max-width: 42ch;
  margin-left: auto;
  margin-right: auto;
}
.lp-reveal-btn { margin-top: 0; }

.lp-text {
  margin-top: var(--space-6);
  animation: lp-fade-in 1.2s ease both;
}
@keyframes lp-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
.lp-line {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: 400;
  line-height: 1.5;
  color: var(--text);
  margin: 0.15em 0;
}
.lp-amen {
  font-weight: 700;
  margin-top: 0.6em;
  letter-spacing: 0.04em;
}
.lp-doxology { transition: opacity 280ms ease, max-height 280ms ease; overflow: hidden; }
.lp-doxology[hidden] { display: none; }

.lp-toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid var(--rule);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
}
@media (max-width: 600px) {
  .lp-toggle-row { flex-direction: column; gap: var(--space-2); text-align: center; }
}

/* In-prayer Om mute button — mirrors .prayer-exit on the left */
.prayer-om-toggle {
  position: absolute;
  bottom: var(--space-6);
  left: var(--space-6);
  min-width: 8.5rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.3em;
  color: oklch(from #d9b977 l c h / 0.95);
  text-transform: uppercase;
  padding: 0 var(--space-6);
  border: 1px solid oklch(from #d9b977 l c h / 0.5);
  border-radius: var(--radius-full);
  background: oklch(from #d9b977 l c h / 0.06);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.8s, color var(--transition-interactive), border-color var(--transition-interactive), background var(--transition-interactive);
}
.prayer-screen:hover .prayer-om-toggle,
.prayer-screen:focus-within .prayer-om-toggle { opacity: 1; }
.prayer-om-toggle:hover {
  color: #fff3d6;
  border-color: oklch(from #d9b977 l c h / 0.5);
}
.prayer-om-toggle[aria-pressed="false"] .om-state { opacity: 0.7; }
.prayer-om-toggle[aria-pressed="false"] { color: oklch(from #d9b977 l c h / 0.6); border-color: oklch(from #d9b977 l c h / 0.3); }
.prayer-om-toggle .om-label { margin-right: 0.7em; }
.prayer-om-toggle .om-state { display: inline-block; }

/* =============================================================
   BIBLICAL ROOTS — quiet footer reference section
   Small font, scannable, no animation, generous whitespace.
   ============================================================= */
.biblical-roots {
  background: oklch(from var(--bg) calc(l - 0.015) c h);
  border-top: 1px solid oklch(from var(--ink) l c h / 0.08);
  padding: clamp(4rem, 8vh, 7rem) clamp(1.25rem, 5vw, 3rem);
  font-size: 1.05rem;
  line-height: 1.65;
  color: oklch(from var(--ink) l c h / 0.82);
}
.roots-inner {
  max-width: 1180px;
  margin: 0 auto;
}
.roots-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 0.75rem;
  font-weight: 600;
}
.roots-title {
  font-family: var(--font-display, var(--font-body));
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 1.1rem;
  max-width: 38ch;
  font-weight: 500;
}
.roots-intro {
  max-width: 60ch;
  margin: 0 0 2.75rem;
  color: oklch(from var(--ink) l c h / 0.7);
}
.roots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem 2.25rem;
  margin-bottom: 3rem;
}
.roots-card {
  break-inside: avoid;
}
.roots-card-feature {
  grid-column: 1 / -1;
  background: oklch(from var(--accent) l c h / 0.06);
  border: 1px solid oklch(from var(--accent) l c h / 0.18);
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  max-width: 640px;
}
.roots-card-title {
  font-family: var(--font-display, var(--font-body));
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.9rem;
  letter-spacing: 0.01em;
  border-bottom: 1px solid oklch(from var(--ink) l c h / 0.1);
  padding-bottom: 0.55rem;
}
.roots-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.roots-list li {
  display: block;
  margin-bottom: 0.75rem;
  padding-left: 0;
}
.roots-ref {
  display: inline-block;
  font-weight: 600;
  color: var(--accent);
  margin-right: 0.4em;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  font-size: 1rem;
}
.roots-text {
  color: oklch(from var(--ink) l c h / 0.82);
}
.roots-note {
  margin: 0.95rem 0 0;
  font-size: 0.95rem;
  font-style: italic;
  color: oklch(from var(--ink) l c h / 0.65);
}
.roots-closing {
  max-width: 56ch;
  margin: 2.5rem auto 0;
  text-align: center;
  font-style: italic;
  color: oklch(from var(--ink) l c h / 0.75);
  padding-top: 2.5rem;
  border-top: 1px solid oklch(from var(--ink) l c h / 0.08);
  font-size: 1.1rem;
  line-height: 1.7;
}
.roots-ref-inline {
  display: block;
  margin-top: 0.55rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (max-width: 720px) {
  .biblical-roots {
    padding: clamp(3rem, 6vh, 5rem) 1.25rem;
    font-size: 1.05rem;
  }
  .roots-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .roots-card-feature {
    padding: 1.25rem 1.25rem;
  }
}

/* In-prayer Pause button — sits centered along the bottom between Om and End */
.prayer-pause {
  position: absolute;
  bottom: var(--space-6);
  left: 50%;
  transform: translateX(-50%);
  min-width: 8.5rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  letter-spacing: 0.3em;
  color: oklch(from #d9b977 l c h / 0.95);
  text-transform: uppercase;
  padding: 0 var(--space-6);
  border: 1px solid oklch(from #d9b977 l c h / 0.5);
  border-radius: var(--radius-full);
  background: oklch(from #d9b977 l c h / 0.06);
  cursor: pointer;
  opacity: 1;
  transition: opacity 0.8s, color var(--transition-interactive), border-color var(--transition-interactive), background var(--transition-interactive);
}
.prayer-screen:hover .prayer-pause,
.prayer-screen:focus-within .prayer-pause { opacity: 1; }
.prayer-pause:hover {
  color: #fff3d6;
  border-color: oklch(from #d9b977 l c h / 0.5);
}
/* When paused: keep button visible at full opacity and highlight it */
.prayer-pause[aria-pressed="true"] {
  opacity: 1;
  color: #fff3d6;
  border-color: oklch(from #d9b977 l c h / 0.55);
  background: oklch(from #d9b977 l c h / 0.06);
}
/* When paused, also make the timer fully visible so the user sees the
   held countdown and the marble breath holds steady */
.prayer-screen.paused .prayer-timer { opacity: 1; }
.prayer-screen.paused .prayer-marble { animation-play-state: paused; }

@media (max-width: 520px) {
  /* On small screens, tighten the trio so they fit without crowding */
  .prayer-exit,
  .prayer-om-toggle,
  .prayer-pause {
    min-width: 5.5rem;
    height: 2.5rem;
    padding: 0 var(--space-4);
    letter-spacing: 0.2em;
    font-size: 0.78rem;
  }
  .prayer-exit { right: var(--space-3); }
  .prayer-om-toggle { left: var(--space-3); }
}

/* =============================================================
   INVITATION block — a quiet "now" moment before Prepare
   Calm, centered, with a soft amber CTA that invites scroll.
   ============================================================= */
.step-invite .invite-block {
  position: relative;
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 3.5rem);
  max-width: 38rem;
  margin: 0 auto;
  background: rgba(255, 252, 245, 0.94);
  border: 1px solid rgba(182, 95, 0, 0.35);
  border-radius: 1.25rem;
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 24px 70px -28px rgba(15, 26, 46, 0.4),
    0 6px 28px -8px rgba(182, 95, 0, 0.22);
}

/* Soft amber flourish above the card — a quiet seal marking a new moment */
.step-invite .invite-block::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(3rem, 12vw, 5rem);
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(182, 95, 0, 0.55) 50%,
    transparent 100%
  );
  border-radius: 2px;
}

[data-theme='dark'] .step-invite .invite-block {
  background: rgba(8, 12, 24, 0.45);
  border-color: rgba(240, 214, 168, 0.2);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 20px 60px -30px rgba(0, 0, 0, 0.6),
    0 4px 24px -8px rgba(182, 95, 0, 0.25);
}
.invite-block .invite-lead {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 400;
  color: var(--color-text);
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
  letter-spacing: -0.01em;
}
.invite-block .invite-detail {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-text);
  max-width: 32rem;
  margin: 0 auto var(--space-5);
}
.invite-block .invite-detail.soft {
  color: var(--color-text-faint);
  font-size: 0.95rem;
}
.invite-block .invite-now {
  font-size: clamp(1.4rem, 3.6vw, 1.8rem);
  color: var(--color-primary);
  margin: var(--space-6) auto var(--space-6);
  letter-spacing: 0.005em;
}
.invite-block .invite-cta-line {
  margin-top: var(--space-8);
  margin-bottom: 0;
}
.invite-cta {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #faf6ef;
  text-decoration: none;
  padding: var(--space-4) var(--space-7);
  border: 1px solid var(--color-primary);
  border-radius: var(--radius-full);
  background: var(--color-primary);
  box-shadow: 0 6px 20px -8px rgba(182, 95, 0, 0.6);
  transition: background 200ms ease, border-color 200ms ease, color 200ms ease, transform 200ms ease;
}
[data-theme='dark'] .invite-cta {
  color: #0f1a2e;
  background: #ffb547;
  border-color: #ffb547;
  box-shadow: 0 6px 20px -8px rgba(255, 181, 71, 0.55);
}
.invite-cta:hover,
.invite-cta:focus-visible {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  color: #faf6ef;
  transform: translateY(-1px);
}
[data-theme='dark'] .invite-cta:hover,
[data-theme='dark'] .invite-cta:focus-visible {
  background: #ffcb7d;
  border-color: #ffcb7d;
  color: #0f1a2e;
}

/* =============================================================
   LEGIBILITY OVER MARBLE — text readable even as the orb brightens
   ============================================================= */
/* Soft cream "paint" behind every glyph so navy text always wins
   contrast against the glowing amber marble. The shadow is wide
   and feathered, not a hard outline, so it reads as a halo. */
.step-content .display,
.step-content .verse,
.step-content .italic,
.step-content .eyebrow,
.step-content p,
.step-content h1,
.step-content h2,
.step-content h3,
.step-content li,
.step-content .how-head,
.step-content .how-detail,
.step-content .center-line,
.step-content .center-sub {
  text-shadow:
    0 0 14px rgba(250, 246, 239, 0.95),
    0 0 28px rgba(250, 246, 239, 0.75),
    0 0 48px rgba(250, 246, 239, 0.55);
}

/* The invitation section sits over the brightest part of the orb —
   give its lead text a slightly stronger halo. */
.invite-block .invite-now,
.invite-block .invite-lead,
.invite-block .invite-detail {
  text-shadow:
    0 0 16px rgba(250, 246, 239, 0.98),
    0 0 36px rgba(250, 246, 239, 0.82),
    0 0 60px rgba(250, 246, 239, 0.6);
}

/* Center moment ("Be still, and know.") sits ON the marble — keep
   it luminous but tinted gold so it reads as light, not paste. */
.step-section.step-center .center-line,
.step-section.step-center .center-sub,
.step-section.step-center .center-whisper,
.step-section.step-center .center-instruction {
  text-shadow:
    0 0 18px rgba(255, 243, 214, 0.85),
    0 0 36px rgba(255, 200, 112, 0.55),
    0 0 60px rgba(182, 95, 0, 0.3);
}

/* Dark mode: the marble glows bright amber/cream behind cream text,
   so a cream halo only makes it worse. Use a deep navy halo to push
   the text forward against the bright center. */
[data-theme='dark'] .step-section.step-center .center-whisper,
[data-theme='dark'] .step-section.step-center .center-instruction {
  color: #fdf6e6;
  text-shadow:
    0 1px 2px rgba(8, 12, 24, 0.85),
    0 0 14px rgba(8, 12, 24, 0.85),
    0 0 30px rgba(8, 12, 24, 0.7),
    0 0 50px rgba(8, 12, 24, 0.55);
}

/* Form labels & eyebrows: subtle halo so they don't blur into the orb. */
.step-content .field-label,
.step-content .optional-tag,
.step-content .step-num {
  text-shadow:
    0 0 10px rgba(250, 246, 239, 0.9),
    0 0 22px rgba(250, 246, 239, 0.65);
}

/* Dark theme: invert the halo to dark navy so light text stays readable
   against the glowing marble in dark mode. */
[data-theme='dark'] .step-content .display,
[data-theme='dark'] .step-content .verse,
[data-theme='dark'] .step-content .italic,
[data-theme='dark'] .step-content .eyebrow,
[data-theme='dark'] .step-content p,
[data-theme='dark'] .step-content h1,
[data-theme='dark'] .step-content h2,
[data-theme='dark'] .step-content h3,
[data-theme='dark'] .step-content li,
[data-theme='dark'] .step-content .how-head,
[data-theme='dark'] .step-content .how-detail,
[data-theme='dark'] .step-content .field-label,
[data-theme='dark'] .step-content .optional-tag,
[data-theme='dark'] .step-content .step-num,
[data-theme='dark'] .step-content .word-chip,
[data-theme='dark'] .step-content .sacred-input,
[data-theme='dark'] .invite-block .invite-lead,
[data-theme='dark'] .invite-block .invite-detail,
[data-theme='dark'] .invite-block .invite-now {
  text-shadow:
    0 0 14px rgba(8, 12, 24, 0.95),
    0 0 28px rgba(8, 12, 24, 0.8),
    0 0 48px rgba(8, 12, 24, 0.6);
}

/* =============================================================
   PREPARE-SCREEN LEGIBILITY OVER THE ORB (dark mode)
   The amber/cream marble sits behind the prepare controls. Push
   muted text up toward full cream, brighten amber eyebrows, and
   make form chrome (input border, placeholder) visible again.
   ============================================================= */
[data-theme='dark'] .step-content .eyebrow {
  color: #ffd089;
  opacity: 1;
}
[data-theme='dark'] .step-content .field-label {
  color: #f4ecda;
  opacity: 1;
}
[data-theme='dark'] .step-content .word-chip {
  color: #f4ecda;
  background: rgba(8, 12, 24, 0.35);
  border: 1px solid rgba(244, 236, 218, 0.18);
}
[data-theme='dark'] .step-content .word-chip:hover,
[data-theme='dark'] .step-content .word-chip:focus-visible {
  background: rgba(8, 12, 24, 0.55);
  border-color: rgba(255, 181, 71, 0.55);
  color: #ffd089;
}
[data-theme='dark'] .sacred-input {
  color: #f4ecda;
  border-bottom-color: rgba(244, 236, 218, 0.35);
  background: rgba(8, 12, 24, 0.2);
}
[data-theme='dark'] .sacred-input::placeholder {
  color: rgba(244, 236, 218, 0.6);
}
[data-theme='dark'] .sacred-input:focus {
  border-bottom-color: #ffb547;
  background: rgba(8, 12, 24, 0.35);
}

/* =============================================================
   PREPARE step (step-7) → CENTER step transition.
   With the toggles removed, the prepare section is short, and the
   center section's full 100vh + section padding created a big void.
   Pack the chime options against the "Be still, and know" moment.
   ============================================================= */
.step-section.step-7 {
  min-height: auto;
  padding-top: clamp(2rem, 5vh, 3rem);
  padding-bottom: clamp(0.5rem, 2vh, 1.25rem);
}
.step-section.step-7 + .step-section.step-center {
  min-height: auto;
  padding-top: clamp(1rem, 3vh, 2rem);
  padding-bottom: clamp(3rem, 8vh, 5rem);
}
