/* ================================================================
   Astral Projection LG — Stylesheet
   Dark-purple multi-stop gradient, fully responsive, no build step.
   ================================================================ */

:root {
  --bg-0: #0a0414;   /* deepest, near-black violet */
  --bg-1: #14082a;   /* deep indigo */
  --bg-2: #251042;   /* rich royal purple */
  --bg-3: #3d1b66;   /* mid violet */
  --bg-4: #5a1d8a;   /* glowing magenta-purple */
  --bg-5: #7b2cbf;   /* bright violet highlight */

  --ink:        #f4ecff;
  --ink-soft:   #cbb9e8;
  --ink-muted:  #8b7aaa;

  --accent:     #c9a3ff;
  --accent-hot: #ff9af0;
  --good:       #6affc6;
  --warn:       #ffd166;
  --danger:     #ff7a8a;

  /* Varied, contrasting palette for steps, tags, and CTAs.
     Each color has a paired darker shade for the gradient base,
     and a soft tinted glow used for the box-shadow / hover halo. */
  --c1-yellow:        #ffd166;   /* warm yellow */
  --c1-yellow-deep:   #ff9d3a;   /* deep orange-yellow */
  --c1-yellow-glow:   rgba(255, 209, 102, 0.40);

  --c2-pink:          #ff7eb6;   /* hot pink */
  --c2-pink-deep:     #ff4a8b;   /* deep pink */
  --c2-pink-glow:     rgba(255, 126, 182, 0.40);

  --c3-blue:          #7dd3fc;   /* baby / sky blue */
  --c3-blue-deep:     #38bdf8;   /* deep sky */
  --c3-blue-glow:     rgba(125, 211, 252, 0.40);

  --c4-mint:          #6affc6;   /* mint green */
  --c4-mint-deep:     #34d399;   /* deep emerald */
  --c4-mint-glow:     rgba(106, 255, 198, 0.40);

  --c5-coral:         #ff9af0;   /* coral pink / fuchsia */
  --c5-coral-deep:    #d946ef;   /* deep fuchsia */
  --c5-coral-glow:    rgba(255, 154, 240, 0.40);

  --card-bg:        rgba(20, 8, 42, 0.72);
  --card-border:    rgba(201, 163, 255, 0.18);
  --card-shadow:    0 10px 30px rgba(0, 0, 0, 0.45);

  --radius:    18px;
  --radius-sm: 12px;
  --maxw:      980px;

  --font-sans: 'Inter', 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Georgia', serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;

  /* The signature multi-stop dark-purple gradient */
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(255,154,240,0.18), transparent 60%),
    radial-gradient(900px 700px at -10% 30%, rgba(123,44,191,0.55), transparent 65%),
    radial-gradient(1000px 800px at 50% 110%, rgba(90,29,138,0.6), transparent 60%),
    linear-gradient(180deg, var(--bg-0) 0%, var(--bg-1) 25%, var(--bg-2) 55%, var(--bg-3) 80%, var(--bg-4) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a   { color: var(--accent); text-decoration: none; border-bottom: 1px dotted rgba(201,163,255,0.45); }
a:hover { color: var(--accent-hot); border-bottom-color: var(--accent-hot); }

/* ---------- Layout ---------- */
.wrap   { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
section { padding: 64px 0; scroll-margin-top: 80px; }
section + section { border-top: 1px solid rgba(201,163,255,0.10); }

h1, h2, h3, h4 { font-family: var(--font-serif); font-weight: 600; letter-spacing: -0.01em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.08; }
h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.45rem); color: var(--accent); }
p  { margin: 0 0 1em; color: var(--ink-soft); }
small { color: var(--ink-muted); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  color: var(--accent);
  background: rgba(201,163,255,0.10);
  padding: 6px 12px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ---------- Nav — single row, full width, no stacking ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background:
    radial-gradient(900px 220px at 50% -10%, rgba(123,44,191,0.32), transparent 65%),
    radial-gradient(900px 200px at 95% 110%, rgba(255,209,102,0.10), transparent 70%),
    linear-gradient(180deg, rgba(10,4,20,0.94), rgba(10,4,20,0.55));
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}
.nav > .wrap { max-width: none; padding: 0 32px; }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; height: 64px; padding: 0;
  width: 100%;
}

/* Brand block — slim, fits on the row */
.brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-serif); letter-spacing: 0.04em;
  color: var(--ink); text-decoration: none;
  white-space: nowrap; flex-shrink: 0;
}
.brand-mark {
  width: 40px; height: 40px; border-radius: 11px;
  box-shadow:
    0 0 0 1px rgba(201,163,255,0.35),
    0 0 22px rgba(201,163,255,0.45),
    0 6px 18px rgba(123,44,191,0.55);
  background:
    radial-gradient(circle at 30% 30%, #ffd166 0%, #c9a3ff 35%, #7b2cbf 75%, #14082a 100%);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "\2726";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 20px;
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
  font-weight: 700;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { color: var(--ink); font-weight: 600; font-size: 1.1rem; letter-spacing: 0.01em; }
.brand-tag { color: var(--accent-warm); font-size: 0.66rem; font-family: var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; margin-top: 2px; }

/* Section nav — single row, full-width horizontal spread */
.nav-links {
  display: flex; align-items: center; gap: 0;
  flex-wrap: nowrap; width: 100%;
  justify-content: space-between;
  margin: 0 24px;
}
.nav-links a {
  border-bottom: none;
  font-size: 0.86rem;
  color: var(--ink-soft);
  padding: 9px 11px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  flex: 0 0 auto;
}
.nav-links a .nl-text { display: inline; }
.nav-links a:hover { color: var(--accent-hot); background: rgba(201,163,255,0.10); }
.nav-links a.active { color: var(--accent-warm); background: rgba(255,209,102,0.10); }
.nav-links a svg { flex-shrink: 0; opacity: 0.85; }
.nav-links a:hover svg { opacity: 1; }

/* Language switch */
.lang-switch {
  display: flex; align-items: center;
  background: rgba(10,4,20,0.55);
  border: 1px solid var(--card-border);
  border-radius: 999px;
  padding: 4px;
  gap: 0;
  flex-shrink: 0;
}
.lang-switch a {
  border: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  padding: 5px 12px;
  border-radius: 999px;
  color: var(--ink-muted);
  text-decoration: none;
  transition: all 0.15s ease;
}
.lang-switch a.active { background: linear-gradient(135deg, var(--accent-warm), #ff9d3a); color: #1a0b2e; }
.lang-switch a:hover:not(.active) { color: var(--accent-hot); }

/* Hamburger — mobile only */
.menu-toggle { display: none; background: transparent; border: 1px solid var(--card-border); color: var(--ink); padding: 10px 14px; border-radius: 10px; cursor: pointer; }

/* ---- Breakpoints — collapse gracefully ---- */
@media (max-width: 1280px) { .nav-links a { padding: 9px 8px; font-size: 0.8rem; } .nav-links { margin: 0 16px; } }
@media (max-width: 1100px) { .nav-links a .nl-text { display: none; } .nav-links a { padding: 10px; } .nav-links { justify-content: flex-end; gap: 2px; margin: 0 0 0 24px; } }
@media (max-width: 980px)  { .brand-tag { display: none; } }
@media (max-width: 820px) {
  .nav-inner { height: 64px; }
  .nav-links {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(10,4,20,0.97);
    padding: 8px 0 16px;
    border-top: 1px solid var(--card-border);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 24px; border-radius: 0; justify-content: flex-start; border-bottom: 1px solid rgba(201,163,255,0.08); width: 100%; }
  .nav-links a .nl-text { display: inline; }
  .nav-links a:last-of-type { border-bottom: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .nav > .wrap { padding: 0 16px; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 72px;
  text-align: center;
  position: relative;
}
.hero-art {
  width: min(560px, 80%);
  margin: 0 auto 32px;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(123,44,191,0.45), 0 0 120px rgba(255,154,240,0.18);
  border: 1px solid var(--card-border);
}
.hero p.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  max-width: 640px;
  margin: 0.5em auto 1.6em;
  color: var(--ink);
}
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--c1-yellow), var(--c1-yellow-deep));
  color: #1a0b2e;
  box-shadow: 0 10px 30px var(--c1-yellow-glow);
}
.btn-secondary {
  background: linear-gradient(135deg, var(--c2-pink), var(--c2-pink-deep));
  color: #1a0b2e;
  box-shadow: 0 10px 30px var(--c2-pink-glow);
}
.btn-tertiary {
  background: linear-gradient(135deg, var(--c3-blue), var(--c3-blue-deep));
  color: #0a0414;
  box-shadow: 0 10px 30px var(--c3-blue-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--card-border);
}

/* ---------- Cards ---------- */
.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.card + .card { margin-top: 18px; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.metric { text-align: center; padding: 24px 18px; }
.metric .num { font-family: var(--font-serif); font-size: 2.4rem; line-height: 1; }
.metric .lbl { color: var(--ink-muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.15em; margin-top: 8px; }

/* Metric color variants — the four metric cards each take a hue */
.metric--yellow .num { color: var(--c1-yellow); }
.metric--pink   .num { color: var(--c2-pink); }
.metric--blue   .num { color: var(--c3-blue); }
.metric--mint   .num { color: var(--c4-mint); }

/* ---------- Steps (how-to) ---------- */
.steps { counter-reset: step; padding: 0; margin: 0; list-style: none; }
.step {
  counter-increment: step;
  position: relative;
  padding: 22px 22px 22px 80px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  margin-bottom: 14px;
}
.step::before {
  content: counter(step);
  position: absolute;
  top: 18px;
  left: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-5), var(--accent-hot));
  color: #1a0b2e;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(255,154,240,0.35);
}

/* ---------- Step color variants (cycle through 5 hues so each step stands out) ---------- */
.step--yellow::before {
  background: linear-gradient(135deg, var(--c1-yellow), var(--c1-yellow-deep));
  box-shadow: 0 0 22px var(--c1-yellow-glow);
}
.step--pink::before {
  background: linear-gradient(135deg, var(--c2-pink), var(--c2-pink-deep));
  box-shadow: 0 0 22px var(--c2-pink-glow);
}
.step--blue::before {
  background: linear-gradient(135deg, var(--c3-blue), var(--c3-blue-deep));
  box-shadow: 0 0 22px var(--c3-blue-glow);
}
.step--mint::before {
  background: linear-gradient(135deg, var(--c4-mint), var(--c4-mint-deep));
  box-shadow: 0 0 22px var(--c4-mint-glow);
}
.step--coral::before {
  background: linear-gradient(135deg, var(--c5-coral), var(--c5-coral-deep));
  box-shadow: 0 0 22px var(--c5-coral-glow);
}

/* Subtle color tint on the card border that matches the step color */
.step--yellow { border-color: rgba(255, 209, 102, 0.30); }
.step--pink   { border-color: rgba(255, 126, 182, 0.30); }
.step--blue   { border-color: rgba(125, 211, 252, 0.30); }
.step--mint   { border-color: rgba(106, 255, 198, 0.30); }
.step--coral  { border-color: rgba(255, 154, 240, 0.30); }

.step h3 { color: var(--ink); margin-bottom: 6px; }

.callout {
  border-left: 4px solid var(--accent);
  background: rgba(201,163,255,0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 18px;
  margin: 14px 0;
}
.callout.warn { border-left-color: var(--warn); background: rgba(255,209,102,0.10); }
.callout.good { border-left-color: var(--good); background: rgba(106,255,198,0.10); }
.callout.danger { border-left-color: var(--danger); background: rgba(255,122,138,0.10); }
.callout strong { color: var(--ink); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }

.tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(201,163,255,0.12);
  border: 1px solid var(--card-border);
  color: var(--accent);
  font-size: 0.78rem;
  margin-right: 6px;
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}
/* Tag color variants — used for the Common / Occasional / Rare chips
   in the comparison table so each row is visually distinct. */
.tag.common    { background: rgba(106,255,198,0.18); color: var(--c4-mint);    border-color: rgba(106,255,198,0.40); }
.tag.occasional{ background: rgba(255,209,102,0.18); color: var(--c1-yellow);  border-color: rgba(255,209,102,0.40); }
.tag.rare      { background: rgba(255,126,182,0.18); color: var(--c2-pink);    border-color: rgba(255,126,182,0.40); }
.tag.yellow    { background: rgba(255,209,102,0.18); color: var(--c1-yellow);  border-color: rgba(255,209,102,0.40); }
.tag.pink      { background: rgba(255,126,182,0.18); color: var(--c2-pink);    border-color: rgba(255,126,182,0.40); }
.tag.blue      { background: rgba(125,211,252,0.18); color: var(--c3-blue);    border-color: rgba(125,211,252,0.40); }
.tag.mint      { background: rgba(106,255,198,0.18); color: var(--c4-mint);    border-color: rgba(106,255,198,0.40); }
.tag.coral     { background: rgba(255,154,240,0.18); color: var(--c5-coral);   border-color: rgba(255,154,240,0.40); }

/* ---------- Audio player ---------- */
.audio-player {
  background: linear-gradient(135deg, rgba(123,44,191,0.20), rgba(58,11,93,0.45));
  border: 1px solid rgba(201,163,255,0.30);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 14px 40px rgba(58,11,93,0.45), inset 0 0 60px rgba(123,44,191,0.10);
  margin: 8px 0 28px;
}
.audio-player .ap-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.audio-player .ap-head h3 { margin: 0; color: var(--accent); font-size: 1.15rem; }
.audio-player .ap-head .ap-sub { font-size: 0.78rem; color: var(--ink-muted); font-family: var(--font-mono); letter-spacing: 0.10em; text-transform: uppercase; }
.ap-lang-switch { display: flex; gap: 6px; margin-left: auto; }
.ap-lang-btn {
  background: rgba(10,4,20,0.6);
  border: 1px solid var(--card-border);
  color: var(--ink-soft);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.10em;
  cursor: pointer;
  transition: all 0.15s ease;
}
.ap-lang-btn.active { background: linear-gradient(135deg, var(--bg-5), var(--accent-hot)); color: #1a0b2e; border-color: transparent; font-weight: 600; }
.ap-lang-btn:hover:not(.active) { border-color: var(--accent); color: var(--accent); }

.ap-controls {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.ap-btn {
  background: rgba(201,163,255,0.15);
  border: 1px solid var(--card-border);
  color: var(--ink);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.15s ease;
}
.ap-btn:hover { border-color: var(--accent); color: var(--accent); transform: scale(1.05); }
.ap-btn.play {
  background: linear-gradient(135deg, var(--c2-pink), var(--c2-pink-deep));
  color: #1a0b2e;
  border: none;
  width: 58px; height: 58px;
  font-size: 1.25rem;
  box-shadow: 0 6px 22px var(--c2-pink-glow);
}
.ap-btn.play:hover { transform: scale(1.06); }
.ap-progress {
  flex: 1;
  height: 6px;
  background: rgba(0,0,0,0.35);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.ap-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--bg-5), var(--accent-hot));
  border-radius: 3px;
  box-shadow: 0 0 8px var(--accent-hot);
  pointer-events: none;
}
.ap-time { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-muted); min-width: 96px; text-align: right; }

.ap-mixer { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-top: 14px; }
.ap-mixer label { font-size: 0.74rem; color: var(--ink-soft); display: flex; flex-direction: column; gap: 6px; font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; }
.ap-mixer input[type="range"] { width: 100%; accent-color: var(--accent-hot); }

.ap-tips {
  margin-top: 18px;
  padding: 14px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(201,163,255,0.06);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.ap-tips strong { color: var(--accent); }

.ap-loading {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.06em;
  margin-left: 8px;
  display: none;
}
.ap-loading.show { display: inline; }

@media (max-width: 640px) {
  .ap-lang-switch { margin-left: 0; }
  .ap-btn.play { width: 50px; height: 50px; }
}

/* Comparison table - dark-purple themed, matches card system */
.xtable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 18px 0 4px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  font-size: 0.95rem;
}
.xtable thead th {
  text-align: left;
  background: linear-gradient(135deg, rgba(123,44,191,0.45), rgba(90,29,138,0.45));
  color: var(--ink);
  padding: 14px 16px;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--card-border);
}
.xtable tbody td {
  padding: 14px 16px;
  border-top: 1px solid rgba(201,163,255,0.08);
  color: var(--ink-soft);
  vertical-align: top;
}
.xtable tbody tr:hover td { background: rgba(201,163,255,0.06); }
.xtable .freq {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.freq-common  { background: rgba(106,255,198,0.16); color: var(--good); border: 1px solid rgba(106,255,198,0.35); }
.freq-mid     { background: rgba(255,209,102,0.16); color: var(--warn); border: 1px solid rgba(255,209,102,0.35); }
.freq-rare    { background: rgba(201,163,255,0.16); color: var(--accent); border: 1px solid rgba(201,163,255,0.35); }

/* Pull quote */
.pq {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  font-style: italic;
  color: var(--ink);
  text-align: center;
  max-width: 640px;
  margin: 26px auto;
  padding: 12px 0;
  border-top: 1px solid rgba(201,163,255,0.20);
  border-bottom: 1px solid rgba(201,163,255,0.20);
}
.pq::before { content: '" '; color: var(--accent-hot); }
.pq::after  { content: ' "'; color: var(--accent-hot); }
.pq cite { display: block; font-style: normal; color: var(--ink-muted); font-size: 0.85rem; margin-top: 6px; }

details { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 18px 22px; margin-bottom: 12px; }
details + details { margin-top: 12px; }
summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::before { content: '+ '; color: var(--accent-hot); font-family: var(--font-mono); margin-right: 4px; }
details[open] summary::before { content: '– '; }
details p { margin-top: 10px; }

/* ---------- Footer ---------- */
footer {
  text-align: center;
  padding: 38px 22px 60px;
  color: var(--ink-muted);
  font-size: 0.88rem;
  border-top: 1px solid var(--card-border);
}

/* ---------- Practitioner voices (attributed notes) ---------- */
.voices {
  background: rgba(10,4,20,0.55);
  border: 1px dashed var(--card-border);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin: 12px 0 32px;
}
.voices .v-head {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-warm);
  margin-bottom: 6px;
}
.voices h2 { margin-top: 0; }
.voices .v-intro {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 24px;
  max-width: 720px;
}
.voices .v-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.voices .v-note {
  background: rgba(20,8,42,0.65);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px 18px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
.voices .v-note .v-attrib {
  display: block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.10em;
  color: var(--accent);
}
.voices .v-note .v-attrib a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent);
}
.voices .v-note .v-attrib a:hover { color: var(--accent-hot); border-bottom-color: var(--accent-hot); }

/* ---------- Five phases overview ---------- */
.five-phases {
  background: linear-gradient(135deg, rgba(123,44,191,0.10), rgba(20,8,42,0.55));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 30px 36px;
  margin: 8px 0 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* ---------- Audio stage (top of page) ---------- */
.ap-stage {
  padding: 56px 0 48px;
  background: linear-gradient(180deg, rgba(10,4,20,0.55), rgba(20,8,42,0.85));
  border-bottom: 1px solid var(--card-border);
}
.ap-stage .audio-player {
  margin: 0 auto;
  max-width: 760px;
}
@media (max-width: 640px) {
  .ap-stage { padding: 32px 0 24px; }
}

/* ---------- Audio anchor offset ---------- */
/* The audio player must be reachable by clicking "Begin the practice"
   in the hero, which scrolls to #ap-anchor / #ap-anker. The sticky
   64px header would otherwise cover the top of the player. This rule
   tells the browser to leave 80px of breathing room above the anchor
   when scrolling to it. */
.ap-anchor {
  display: block;
  height: 1px;
  scroll-margin-top: 80px;
}
.five-phases .ph {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
}
.five-phases .ph-num {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-hot), var(--accent-warm));
  color: #1a0b2e;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(177,76,255,0.35);
}
.five-phases .ph-text h4 {
  margin: 0 0 6px;
  color: var(--accent);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.five-phases .ph-text p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}
@media (min-width: 720px) {
  .five-phases { grid-template-columns: 1fr; }
}

/* ---------- Sources & citations ---------- */
.cite {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  background: rgba(201,163,255,0.06);
  border-left: 2px solid var(--accent);
  border-radius: 0 6px 6px 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}
.cite a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }
.cite a:hover { color: var(--accent-hot); border-bottom-color: var(--accent-hot); }

.sources {
  background: linear-gradient(135deg, rgba(123,44,191,0.10), rgba(20,8,42,0.65));
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 36px;
  margin: 12px 0 32px;
}
.sources h2 { margin-top: 0; }
.sources p { color: var(--ink-soft); }
.sources .src-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 18px;
}
.sources .src-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  align-items: start;
  padding: 16px 18px;
  background: rgba(10,4,20,0.55);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.sources .src-item:hover { border-color: var(--accent); transform: translateY(-2px); }
.sources .src-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--accent-hot), #ff6b6b);
  color: #1a0b2e;
  flex-shrink: 0;
}
.sources .src-text strong { color: var(--accent); display: block; margin-bottom: 4px; font-size: 1rem; }
.sources .src-text span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-muted); display: block; margin-bottom: 6px; }
.sources .src-text a {
  color: var(--accent-hot);
  text-decoration: none;
  border-bottom: 1px dotted var(--accent-hot);
  font-size: 0.92rem;
}
.sources .src-text a:hover { color: var(--accent); border-bottom-color: var(--accent); }

.hero-accent {
  display: block;
  font-size: 0.55em;
  font-weight: 500;
  color: var(--accent-warm);
  letter-spacing: 0.04em;
  font-style: italic;
  margin-top: 8px;
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-warm), #ff9d3a);
  color: #1a0b2e;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(255,209,102,0.40), 0 2px 6px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, box-shadow 0.2s ease;
  z-index: 40;
}
.to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  box-shadow: 0 10px 30px rgba(255,209,102,0.60), 0 4px 10px rgba(0,0,0,0.45);
  transform: translateY(-2px);
}
.to-top:focus-visible {
  outline: 2px solid var(--accent-warm);
  outline-offset: 3px;
}
.to-top svg { display: block; }

@media (max-width: 640px) {
  .to-top { width: 44px; height: 44px; bottom: 16px; right: 16px; }
}

/* ---------- A11y & motion ---------- */
:focus-visible { outline: 2px solid var(--accent-hot); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Subtle starfield overlay ---------- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.2px 1.2px at 13% 17%, rgba(255,255,255,0.55), transparent 50%),
    radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1.5px 1.5px at 42% 32%, rgba(255,255,255,0.6), transparent 50%),
    radial-gradient(1px 1px at 67% 78%, rgba(255,255,255,0.45), transparent 50%),
    radial-gradient(1.3px 1.3px at 81% 19%, rgba(255,255,255,0.5), transparent 50%),
    radial-gradient(1px 1px at 91% 51%, rgba(255,255,255,0.4), transparent 50%),
    radial-gradient(1.4px 1.4px at 6% 88%, rgba(255,255,255,0.5), transparent 50%);
  z-index: 0;
}
.wrap, .nav, footer { position: relative; z-index: 1; }
