/* ─── Wounded Healer — Crisis Toolkit Styles ────────────────────────────── */
/* Fonts are loaded via <link rel="preconnect"> + <link rel="stylesheet"> in toolkit.html's <head> for performance. */

/* ─── Design Tokens ─────────────────────────────────────────────────────── */
:root {
  --bg:           #F6F0E8;
  --bg-alt:       #EFE5D2;
  --bg-deep:      #E8DDC8;
  --surface:      #EDE4D3;
  --card:         #EDE4D3;
  --card-hi:      #E5D9C6;
  --border:       rgba(47,45,43,0.1);
  --border-accent:rgba(138,154,138,0.3);

  --accent:       #8A9A8A;
  --accent-dim:   rgba(138,154,138,0.12);
  --accent-mid:   rgba(138,154,138,0.28);
  --accent-glow:  rgba(138,154,138,0.18);
  --warm:         #B97A57;
  --warm-dim:     rgba(185,122,87,0.10);
  --warn:         #C9866B;

  --text:         #2F2D2B;
  --text-mid:     #4A4641;
  --muted:        #8A8078;
  --subtle:       #D8CEBD;
  --taupe:        #B8AA9A;
  --taupe-light:  #D4C8B8;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Source Sans 3', system-ui, sans-serif;

  --radius:    14px;
  --radius-sm: 8px;
  --max-w:     1080px;
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
}

/* ─── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: var(--font-body); cursor: pointer; border: none; background: none; }
img, svg, canvas { display: block; }

/* Paper grain overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* ─── Utilities ─────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section    { padding: clamp(80px, 10vw, 130px) 0; }

/* ─── Faith / secular mode visibility ───────────────────────────────────── */
body.mode-secular .faith-only    { display: none !important; }
body.mode-faith   .secular-only  { display: none !important; }

/* ─── Fade-up ───────────────────────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.d1 { transition-delay: 0.10s; }
.fade-up.d2 { transition-delay: 0.20s; }
.fade-up.d3 { transition-delay: 0.30s; }
.fade-up.d4 { transition-delay: 0.40s; }

/* ─── Buttons ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(138,154,138,0.25);
}
.btn-primary:hover {
  background: #7a8c7a;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(138,154,138,0.32);
}
.btn-primary:active  { transform: translateY(0); }
.btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-ghost {
  background: transparent;
  color: var(--text-mid);
  border: 1.5px solid var(--taupe-light);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.btn-large { padding: 15px 32px; font-size: 16px; }
.btn-full  { width: 100%; justify-content: center; }

/* ─── Navigation ────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(246,240,232,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--taupe-light);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(47,45,43,0.08); }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}
.nav-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  user-select: none;
}
.nav-wm-eyebrow {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 2px;
}
.nav-wm-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  font-style: italic;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.1;
  transition: color 0.28s var(--ease-out);
}
.nav-logo:hover .nav-wm-title { color: var(--accent); }
.nav-wm-sub {
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-top: 2px;
  transition: color 0.28s var(--ease-out);
}
.nav-logo:hover .nav-wm-sub { color: var(--accent); }
.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--accent); }
.nav-cta { font-size: 13px; padding: 10px 18px; }

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span { display: block; height: 1.5px; background: var(--text); border-radius: 2px; transition: all 0.3s; }
.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
.nav-mobile {
  display: none;
  position: fixed;
  inset: 72px 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 32px 24px;
  flex-direction: column;
  gap: 22px;
  border-top: 1px solid var(--taupe-light);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-family: var(--font-display); font-size: 24px; color: var(--text); }
.nav-mobile a:hover { color: var(--accent); }
.nav-mobile .btn { align-self: flex-start; margin-top: 8px; }

/* ─── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  padding: 100px 24px 80px;
  background: radial-gradient(ellipse 65% 55% at 50% 30%, rgba(138,154,138,0.1) 0%, var(--bg) 70%);
}
.hero-bg-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -52%);
  width: min(700px, 90vw);
  height: min(700px, 90vw);
  opacity: 0.14;
  pointer-events: none;
  animation: breathe-bg 9s ease-in-out infinite;
}
@keyframes breathe-bg {
  0%, 100% { opacity: 0.08; transform: translate(-50%, -52%) scale(1); }
  50%       { opacity: 0.18; transform: translate(-50%, -52%) scale(1.06); }
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-bottom: 20px;
  opacity: 0;
  animation: hero-in 0.8s var(--ease-out) 0.1s forwards;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(52px, 10vw, 108px);
  font-weight: 600;
  line-height: 0.97;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
  opacity: 0;
  animation: hero-in 0.9s var(--ease-out) 0.25s forwards;
  max-width: 800px;
}
.hero-title em { font-style: italic; font-weight: 300; color: var(--accent); }
.hero-sub {
  max-width: 560px;
  font-size: clamp(16px, 2.5vw, 19px);
  font-weight: 300;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 44px;
  opacity: 0;
  animation: hero-in 0.9s var(--ease-out) 0.4s forwards;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  opacity: 0;
  animation: hero-in 0.9s var(--ease-out) 0.55s forwards;
}
.hero-pulse { position: relative; }
.hero-pulse::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: calc(var(--radius-sm) + 4px);
  border: 2px solid var(--accent);
  opacity: 0;
  animation: pulse-ring 2.5s ease-out 1.5s infinite;
}
@keyframes pulse-ring {
  0%   { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0;   transform: scale(1.1); }
}
.hero-scroll {
  position: absolute;
  bottom: 36px; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--taupe);
  opacity: 0;
  animation: hero-in 0.9s var(--ease-out) 1s forwards;
}
.scroll-line {
  width: 1px; height: 36px;
  background: linear-gradient(to bottom, var(--taupe), transparent);
  animation: scroll-bob 2s ease-in-out infinite;
}
@keyframes scroll-bob {
  0%, 100% { transform: scaleY(1); opacity: 0.5; }
  50%       { transform: scaleY(0.55); opacity: 0.2; }
}
.hero-waves {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 130px;
  overflow: hidden;
  pointer-events: none;
}
.hero-wave {
  position: absolute;
  bottom: 0;
  width: 200%; height: 130px;
}
.hero-wave path { fill: var(--accent); }
.hw1 { opacity: 0.06; animation: wave-drift 9s ease-in-out infinite; }
.hw2 { opacity: 0.03; animation: wave-drift 14s ease-in-out infinite reverse; }
@keyframes wave-drift {
  0%, 100% { transform: translateX(0); }
  50%       { transform: translateX(-25%); }
}
@keyframes hero-in {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Section Labels ────────────────────────────────────────────────────── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px; height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 18px;
}
.section-title em { font-style: italic; color: var(--accent); }
.section-sub {
  font-size: 17px;
  font-weight: 300;
  color: var(--text-mid);
  max-width: 560px;
  line-height: 1.75;
  margin-bottom: 56px;
}

/* ─── Toolkit Card ──────────────────────────────────────────────────────── */
.toolkit-section { background: var(--bg-alt); position: relative; }
.toolkit-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 40% at 50% 0%, rgba(138,154,138,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.toolkit-card {
  background: var(--bg);
  border: 1px solid var(--taupe-light);
  border-radius: 20px;
  overflow: hidden;
  max-width: 580px;
  margin: 0 auto;
  box-shadow: 0 24px 70px rgba(47,45,43,0.09);
}

/* ─── Faith / Secular Mode Toggle ───────────────────────────────────────── */
.mode-toggle {
  max-width: 580px;
  margin: 0 auto 28px;
  padding: 20px 24px;
  background: var(--card);
  border: 1px solid var(--taupe-light);
  border-radius: var(--radius);
  text-align: center;
}
.mode-toggle-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.mode-toggle-pills {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--taupe-light);
  background: var(--bg);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.mode-pill svg { width: 16px; height: 16px; stroke: currentColor; flex-shrink: 0; }
.mode-pill:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.mode-pill.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 16px rgba(138,154,138,0.28);
}
.mode-pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mode-toggle-note {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 440px;
  margin: 0 auto;
}

/* Progress */
.toolkit-progress { height: 3px; background: var(--subtle); }
.toolkit-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  transition: width 0.6s var(--ease-out);
  width: 0%;
}

/* Steps */
.step { display: none; padding: 40px 36px; }
.step.active {
  display: block;
  animation: step-enter 0.4s var(--ease-out);
}
@keyframes step-enter {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.step-num {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.step-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 10px;
}
.step-sub {
  font-size: 14px;
  color: var(--text-mid);
  margin-bottom: 28px;
  line-height: 1.65;
}

/* Slider */
.slider-container { margin-bottom: 28px; }
.urge-slider {
  -webkit-appearance: none;
  width: 100%; height: 6px;
  border-radius: 3px;
  background: var(--subtle);
  outline: none;
  cursor: pointer;
  margin: 8px 0 10px;
}
.urge-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(138,154,138,0.2);
  transition: box-shadow 0.2s;
}
.urge-slider::-webkit-slider-thumb:hover { box-shadow: 0 0 0 7px rgba(138,154,138,0.22); }
.urge-slider::-moz-range-thumb {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--accent);
  border: none;
  cursor: pointer;
}
.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}
.urge-display {
  text-align: center;
  padding: 20px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.urge-number {
  display: block;
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
  transition: color 0.3s;
}
.urge-label {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.3s;
}

/* Physical options */
.options-grid { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
}
.option-card::before {
  content: '';
  display: block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--taupe);
  flex-shrink: 0;
  transition: background 0.2s;
}
.option-card:hover { border-left-color: var(--accent); background: var(--accent-dim); }
.option-card:hover::before { background: var(--accent); }
.option-card.selected {
  border-left-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: inset 0 0 0 1px rgba(138,154,138,0.15);
}
.option-card.selected::before { background: var(--accent); }
.option-text { font-size: 14px; font-weight: 500; color: var(--text); }

/* Timer ring */
.timer-display { display: flex; justify-content: center; margin-bottom: 20px; }
.timer-ring { position: relative; width: 130px; height: 130px; }
.timer-svg { width: 130px; height: 130px; transform: rotate(-90deg); }
.timer-track { fill: none; stroke: var(--subtle); stroke-width: 6; }
.timer-fill {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 339.3;
  transition: stroke-dashoffset 1s linear, stroke 0.5s;
}
.timer-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.timer-time {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
}

/* Breathing */
.breath-container { display: flex; justify-content: center; margin: 16px 0 20px; }
.breath-ring-outer {
  width: 170px; height: 170px;
  border-radius: 50%;
  border: 2.5px solid var(--accent);
  box-shadow: 0 0 28px var(--accent-glow), inset 0 0 28px var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-dim);
  transition: transform 0.15s ease, box-shadow 0.3s ease;
}
.breath-ring-outer.expand     { animation: breath-expand 4s ease-in-out forwards; }
.breath-ring-outer.hold-big   { transform: scale(1.35); box-shadow: 0 0 46px var(--accent-mid), inset 0 0 36px rgba(138,154,138,0.14); }
.breath-ring-outer.contract   { animation: breath-contract 4s ease-in-out forwards; }
.breath-ring-outer.hold-small { transform: scale(0.78); box-shadow: 0 0 12px var(--accent-glow), inset 0 0 14px var(--accent-dim); }
@keyframes breath-expand {
  from { transform: scale(0.78); box-shadow: 0 0 12px var(--accent-glow); }
  to   { transform: scale(1.35); box-shadow: 0 0 46px var(--accent-mid); }
}
@keyframes breath-contract {
  from { transform: scale(1.35); box-shadow: 0 0 46px var(--accent-mid); }
  to   { transform: scale(0.78); box-shadow: 0 0 12px var(--accent-glow); }
}
.breath-ring-inner { text-align: center; }
.breath-phase {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.breath-count {
  display: block;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}
.breath-guide { margin-bottom: 24px; }
.breath-step-indicator { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.bsi {
  padding: 8px 4px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: all 0.3s;
}
.bsi.active { color: var(--accent); background: var(--accent-dim); border-color: var(--border-accent); }

/* ─── Mode-aware notes (faith / secular swap text) ──────────────────────── */
#step-breath .mode-note {
  font-size: 13px;
  font-style: italic;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.6;
  margin: -8px 0 24px;
}

/* Surf */
#wave-canvas {
  width: 100%;
  height: 70px;
  background: var(--surface);
  border-radius: var(--radius) var(--radius) 0 0;
  border: 1px solid var(--border-accent);
  border-bottom: none;
  display: block;
}
.surf-focus {
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 36px 28px 28px;
  margin-bottom: 20px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
}
.surf-message {
  font-family: var(--font-display);
  font-size: clamp(17px, 3.5vw, 22px);
  font-weight: 600;
  color: var(--text);
  line-height: 1.45;
  max-width: 400px;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.surf-message.fading { opacity: 0; transform: translateY(-8px); }
.surf-meta { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--muted); }
.surf-timer { font-variant-numeric: tabular-nums; }
.surf-divider { opacity: 0.4; }
.surf-status { font-size: 13px; transition: color 0.5s; }
.surf-status.cresting { color: var(--accent); }

/* ─── Music player ───────────────────────────────────────────────────────── */
.surf-music {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border-accent);
  border-top: none;
  border-bottom: none;
  transition: background 0.3s;
}
.surf-music:hover { background: var(--card-hi); }
.surf-music-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  flex: 1;
  min-width: 0;
}
.surf-music-label svg {
  width: 15px;
  height: 15px;
  stroke: var(--taupe);
  flex-shrink: 0;
}
.surf-music-label span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.surf-music-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.surf-play-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1.5px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--accent);
  transition: background 0.22s, transform 0.18s, border-color 0.22s;
  flex-shrink: 0;
}
.surf-play-btn:hover {
  background: var(--accent-mid);
  border-color: var(--accent);
  transform: scale(1.06);
}
.surf-play-btn.playing {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.surf-play-btn.playing:hover {
  background: #7a8c7a;
  border-color: #7a8c7a;
}
.surf-play-btn svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.surf-volume {
  display: flex;
  align-items: center;
  gap: 8px;
}
.surf-volume svg {
  width: 14px;
  height: 14px;
  stroke: var(--muted);
  flex-shrink: 0;
}
.surf-volume-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 88px;
  height: 3px;
  border-radius: 999px;
  background: var(--subtle);
  outline: none;
  cursor: pointer;
  transition: background 0.2s;
}
.surf-volume-slider:hover { background: var(--taupe-light); }
.surf-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 1px 4px rgba(47,45,43,0.18);
  transition: transform 0.15s, background 0.15s;
}
.surf-volume-slider::-webkit-slider-thumb:hover { transform: scale(1.25); }
.surf-volume-slider::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid var(--bg);
  box-shadow: 0 1px 4px rgba(47,45,43,0.18);
}

/* Grounding */
.ground-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 24px; }
.ground-item { display: flex; flex-direction: column; gap: 10px; }
.ground-sense { display: flex; align-items: center; gap: 12px; }
.ground-number { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--accent); width: 32px; flex-shrink: 0; }
.ground-label { font-size: 15px; color: var(--text-mid); }
.ground-label strong { color: var(--text); font-weight: 600; }
.ground-checks { display: flex; gap: 10px; padding-left: 44px; }
.ground-actions { display: flex; align-items: center; gap: 12px; }
.ground-actions .btn-primary { flex: 1; }
.ground-actions .btn-ghost { flex-shrink: 0; padding: 12px 20px; font-size: 14px; }
.check-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--taupe-light);
  background: var(--surface);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  flex-shrink: 0;
}
.check-btn:hover { border-color: var(--accent); background: var(--accent-dim); }
.check-btn.checked { border-color: var(--accent); background: var(--accent); }
.check-btn.checked::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -57%) rotate(45deg);
  width: 6px; height: 10px;
  border-right: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
}

/* Redirect */
.redirect-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
.redirect-card {
  padding: 15px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  text-align: left;
}
.redirect-card:hover { border-left-color: var(--accent); color: var(--text); background: var(--accent-dim); }
.redirect-card.selected { border-left-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.redirect-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ─── Redirect panel (Reach Out / Pray) ─────────────────────────────────── */
.redirect-panel {
  background: var(--surface);
  border: 1px solid var(--border-accent);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 20px;
  animation: step-enter 0.35s var(--ease-out);
}
.redirect-panel-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.redirect-panel-text {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
  margin-bottom: 14px;
}
.redirect-panel-copy.copied { color: var(--accent); border-color: var(--accent); }

/* Victory */
.victory-icon {
  width: 68px; height: 68px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--warm));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  box-shadow: 0 12px 40px rgba(138,154,138,0.3);
  animation: victory-pop 0.6s var(--ease-out);
}
.victory-icon svg { width: 32px; height: 32px; stroke: #fff; }
@keyframes victory-pop {
  0%  { transform: scale(0.5); opacity: 0; }
  60% { transform: scale(1.1); }
  100%{ transform: scale(1); opacity: 1; }
}
.victory-truth {
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 20px 0 28px;
}
.victory-truth p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  color: var(--text);
  line-height: 1.6;
}
.victory-truth-faith {
  background: var(--warm-dim);
  border-color: rgba(185,122,87,0.28);
  border-left-color: var(--warm);
}

/* ─── Reflection prompt ──────────────────────────────────────────────────── */
.reflection-prompt {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin-bottom: 20px;
  text-align: left;
}
.reflection-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.reflection-question {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
  line-height: 1.4;
}
.reflection-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--taupe-light);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  resize: vertical;
  outline: none;
  transition: border-color 0.2s;
}
.reflection-textarea::placeholder { color: var(--taupe); }
.reflection-textarea:focus { border-color: var(--accent); }
.reflection-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 10px;
}

/* 14-day plan offer (shown after victory) */
.plan-offer {
  background: var(--bg-alt);
  border: 1px solid var(--taupe-light);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin-bottom: 16px;
  text-align: left;
}
.plan-offer-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.plan-offer h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.plan-offer p {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 16px;
}
.plan-offer-form { display: flex; flex-direction: column; gap: 8px; }
.plan-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--taupe-light);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s;
}
.plan-input::placeholder { color: var(--taupe); }
.plan-input:focus { border-color: var(--accent); }
.plan-skip {
  display: block;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  text-align: center;
  margin-top: 8px;
  text-decoration: underline;
  text-underline-offset: 2px;
  background: none;
  border: none;
  font-family: var(--font-body);
  transition: color 0.2s;
}
.plan-skip:hover { color: var(--text-mid); }

/* Email capture */
.capture-label { font-size: 14px; color: var(--text-mid); margin-bottom: 14px; line-height: 1.65; }
.capture-label strong { color: var(--text); }
.capture-form { display: flex; flex-direction: column; gap: 10px; }
.email-input {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--taupe-light);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.email-input::placeholder { color: var(--taupe); }
.email-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.capture-fine { font-size: 12px; color: var(--muted); margin-top: 8px; }
.success-msg {
  padding: 16px;
  background: var(--accent-dim);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  font-size: 14px;
  color: var(--accent);
  font-weight: 500;
  animation: step-enter 0.3s ease;
}

/* ─── Brain Science ─────────────────────────────────────────────────────── */
.science-section { background: var(--bg); }
.science-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.science-card {
  background: var(--bg-alt);
  border: 1px solid var(--taupe-light);
  border-radius: 18px;
  padding: 32px 28px;
  transition: border-color 0.3s, transform 0.3s;
}
.science-card:hover { border-color: var(--border-accent); transform: translateY(-3px); }
.sci-card-wide { grid-column: span 3; }
.sci-number { font-family: var(--font-display); font-size: 12px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 14px; }
.science-card h4 { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 12px; line-height: 1.25; }
.science-card p  { font-size: 14px; color: var(--text-mid); line-height: 1.75; }

/* ─── Finding Peace ─────────────────────────────────────────────────────── */
.peace-section { background: var(--bg-alt); }
.accordion { display: flex; flex-direction: column; gap: 10px; max-width: 700px; }
.accordion-item { background: var(--bg); border: 1px solid var(--taupe-light); border-radius: var(--radius); overflow: hidden; transition: border-color 0.3s; }
.accordion-item.open { border-color: var(--border-accent); }
.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
  transition: color 0.2s;
}
.accordion-trigger:hover { color: var(--accent); }
.accordion-icon { width: 20px; height: 20px; flex-shrink: 0; stroke: var(--taupe); transition: transform 0.35s var(--ease-out); }
.accordion-item.open .accordion-icon { transform: rotate(180deg); }
.accordion-body { max-height: 0; overflow: hidden; transition: max-height 0.45s var(--ease-out); }
.accordion-item.open .accordion-body { max-height: 2400px; }
.accordion-body-inner { padding: 0 24px 24px; display: flex; flex-direction: column; gap: 14px; }
.accordion-body-inner p { font-size: 15px; color: var(--text-mid); line-height: 1.75; }
.accordion-body-inner p strong { color: var(--text); font-weight: 600; }

/* ─── Resources ─────────────────────────────────────────────────────────── */
.resources-section { background: var(--bg); }
.featured-video-card {
  background: var(--bg-alt);
  border: 1px solid var(--border-accent);
  border-radius: 20px;
  padding: 36px 40px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
}
.featured-video-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(138,154,138,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.video-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.featured-video-card h4 { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.featured-video-card p  { font-size: 15px; color: var(--text-mid); line-height: 1.7; max-width: 580px; margin-bottom: 20px; }
.video-links { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.video-note { font-size: 13px !important; color: var(--muted) !important; font-style: italic; margin-bottom: 0 !important; }
.btn-teal { background: var(--accent-dim); color: var(--accent); border: 1px solid var(--border-accent); }
.btn-teal:hover { background: rgba(138,154,138,0.18); transform: translateY(-1px); }

.resources-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.resource-card {
  background: var(--bg-alt);
  border: 1px solid var(--taupe-light);
  border-top: 2px solid transparent;
  border-radius: 16px;
  padding: 24px 22px;
  transition: all 0.3s;
}
.resource-card:hover { border-top-color: var(--accent); transform: translateY(-2px); }
.resource-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.resource-card h4 { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.resource-card p  { font-size: 13px; color: var(--text-mid); line-height: 1.65; margin-bottom: 14px; }
.resource-link { font-size: 13px; font-weight: 600; color: var(--accent); transition: opacity 0.2s; }
.resource-link:hover { opacity: 0.7; }

/* ─── Weekly Support Groups ─────────────────────────────────────────────── */
.groups-section { background: var(--bg-alt); }
.groups-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.groups-cta { text-align: center; margin-top: 30px; }

/* ─── Quick Exit button ─────────────────────────────────────────────────── */
.quick-exit {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 10000;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: #B4544A;
  border: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 4px 18px rgba(0,0,0,0.28);
  transition: background 0.2s, transform 0.2s;
}
.quick-exit:hover { background: #9E463D; transform: translateY(-1px); }
.quick-exit svg { width: 15px; height: 15px; }
@media (max-width: 600px) {
  .quick-exit { bottom: 12px; right: 12px; padding: 8px 13px; font-size: 11px; }
  .groups-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .groups-grid { grid-template-columns: 1fr; }
}

/* ─── Bookmark / Save page CTA ──────────────────────────────────────────── */
.hero-save-row {
  margin-top: 18px;
  opacity: 0;
  animation: hero-in 0.8s var(--ease-out) 0.85s forwards;
}
.btn-save-toolkit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--taupe);
  border: 1px solid var(--taupe-light);
  background: rgba(246,240,232,0.5);
  cursor: pointer;
  transition: all 0.22s;
  font-family: var(--font-body);
}
.btn-save-toolkit:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
}
.btn-save-toolkit svg {
  width: 13px; height: 13px;
  stroke: currentColor;
  flex-shrink: 0;
}

/* ─── Hidden Life promo (replaces old capture section) ──────────────────── */
.capture-section { background: var(--bg-alt); padding: clamp(70px, 8vw, 110px) 0; }
.capture-card {
  position: relative;
  background: var(--bg);
  border: 1.5px solid var(--border-accent);
  border-radius: 24px;
  overflow: hidden;
  max-width: 660px;
  margin: 0 auto;
}
.capture-glow {
  position: absolute;
  top: -100px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(138,154,138,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.capture-content { position: relative; padding: 52px 48px; text-align: center; }
.capture-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.capture-title { font-family: var(--font-display); font-size: clamp(32px, 5vw, 46px); font-weight: 600; color: var(--text); margin-bottom: 16px; line-height: 1.1; }
.capture-body { font-size: 16px; font-weight: 300; color: var(--text-mid); line-height: 1.75; max-width: 480px; margin: 0 auto 28px; }
.capture-form-main { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto; }

/* ─── Footer ────────────────────────────────────────────────────────────── */
.footer { background: var(--text); padding: clamp(52px,7vw,80px) 24px 40px; }
.footer-inner { max-width: var(--max-w); margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(184,170,154,0.15);
  margin-bottom: 32px;
}
.footer-brand .footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .footer-logo img {
  height: 44px;
  width: auto;
  max-width: 200px;
  filter: brightness(0) invert(1);
  opacity: 0.72;
  flex-shrink: 0;
}
.footer-brand .footer-logo .footer-logo-text { display: none; }
.footer-tagline { font-size: 13px; color: rgba(184,170,154,0.7); line-height: 1.65; max-width: 220px; }
.footer-col h4 { font-family: var(--font-display); font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(184,170,154,0.5); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col li a { font-size: 14px; color: rgba(246,240,232,0.65); transition: color 0.2s; }
.footer-col li a:hover { color: rgba(246,240,232,0.9); }
.footer-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-note { font-size: 12px; color: rgba(184,170,154,0.45); line-height: 1.65; max-width: 520px; }
.footer-copy { font-size: 12px; color: rgba(184,170,154,0.35); white-space: nowrap; }

/* ─── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .science-grid { grid-template-columns: 1fr 1fr; }
  .sci-card-wide { grid-column: span 2; }
  .resources-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}
@media (max-width: 640px) {
  .science-grid { grid-template-columns: 1fr; }
  .sci-card-wide { grid-column: span 1; }
  .resources-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .step { padding: 28px 22px; }
  .capture-content { padding: 36px 28px; }
  .featured-video-card { padding: 28px 24px; }
  .breath-ring-outer { width: 140px; height: 140px; }
  .video-links { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-brand { grid-column: span 1; }
}
