/* CalmaZumbido / NotchCalm — Official Circadian Sanctuary Design System
   60% Warm Obsidian (#090A0D / #14151A) | 30% Warm Ivory (#F4EFE6, WCAG AAA >=7:1)
   10% Lamp Amber (#F59E0B, ~590nm zero melatonin suppression) | Safety Sage (#2EAE7D) */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@500;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --bg-obsidian: #090A0D;
  --surface: rgba(20, 21, 26, 0.84);
  --surface-solid: #14151A;
  --surface-elevated: #1C1E26;
  --surface-well: #0C0D11;

  --border-subtle: rgba(244, 239, 230, 0.11);
  --border-hover: rgba(245, 158, 11, 0.45);
  --shadow-specular: inset 0 1px 0 0 rgba(255, 248, 235, 0.08), 0 28px 70px rgba(0, 0, 0, 0.55);

  --amber: #F59E0B;
  --amber-light: #FBBF24;
  --amber-glow: rgba(245, 158, 11, 0.15);
  --terracotta-right: #E87A64;
  --safe-sage: #2EAE7D;

  --text-primary: #F4EFE6;
  --text-muted: #ACA498;
  --accent-on: #090A0D;

  --font-display: 'Instrument Serif', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Concentric radii: R_outer = R_inner + padding */
  --radius-outer: 26px;
  --radius-inner: 15px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--bg-obsidian);
  color: var(--text-primary);
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font-sans);
  background:
    radial-gradient(960px circle at 64% 34%, rgba(245, 158, 11, 0.075), transparent 62%),
    radial-gradient(640px circle at var(--mx, 50%) var(--my, 25%), rgba(245, 158, 11, 0.06), transparent 60%),
    var(--bg-obsidian);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#sn-ambient-field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.028;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

header, main, footer { position: relative; z-index: 5; }

a { color: var(--amber-light); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--amber-light); outline-offset: 3px; }

.wrap {
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
}

/* ── Sticky Top Header (Clean, Zero Distraction) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(9, 10, 13, 0.84);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 66px;
  padding: 0.45rem 0;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.brand em { color: var(--amber); font-style: italic; }
.brand:hover { text-decoration: none; }
.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 12px var(--amber);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.safety-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 38px;
  padding: 0.35rem 0.78rem;
  border-radius: 999px;
  background: rgba(46, 174, 125, 0.12);
  border: 1px solid rgba(46, 174, 125, 0.36);
  font-size: 0.78rem;
  font-weight: 700;
  color: #D7F5E9;
}

.sage-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--safe-sage);
  box-shadow: 0 0 8px var(--safe-sage);
}

.nav-link, .hdr-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.42rem 0.85rem;
  border-radius: 12px;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  transition: all 160ms ease;
}

.nav-link:hover, .hdr-btn:hover, .nav-link[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(244, 239, 230, 0.06);
  text-decoration: none;
}

.hdr-btn.studio-toggle {
  border-color: var(--border-subtle);
  background: var(--surface-solid);
  color: var(--text-primary);
}
.hdr-btn.studio-toggle.active {
  border-color: var(--amber);
  background: var(--amber-glow);
  color: var(--amber-light);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-solid);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--amber-light);
}

/* ── Main Hero: Guided Eclipse Sanctuary (Layer 1 — Progressive Disclosure) ── */
.sanctuary-hero {
  padding: clamp(1.8rem, 4vw, 3.2rem) 0 2.4rem;
}

.sanctuary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(1.6rem, 4vw, 3.2rem);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--amber-light);
  padding: 0.35rem 0.75rem;
  border-radius: 10px;
  background: var(--amber-glow);
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.sanctuary-hero h1 {
  margin: 0.9rem 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 4.8vw, 4.35rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.sanctuary-hero h1 em { color: var(--amber-light); font-style: italic; }

.hero-lead {
  max-width: 52ch;
  font-size: clamp(0.98rem, 1.25vw, 1.12rem);
  color: var(--text-muted);
  margin: 0 0 1.4rem;
}

/* ── Live 3-Step Interactive Walkthrough (Zeigarnik Progress, Zero Popups!) ── */
.guide-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-outer);
  padding: 1.25rem;
  box-shadow: var(--shadow-specular);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.guide-progress-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
}

.guide-step-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.45rem 0.7rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-well);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: all 160ms ease;
}

.guide-step-pill .num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  background: rgba(244, 239, 230, 0.08);
  color: var(--text-muted);
  flex-shrink: 0;
}

.guide-step-pill.active {
  border-color: var(--amber);
  background: var(--amber-glow);
  color: var(--text-primary);
}
.guide-step-pill.active .num {
  background: var(--amber);
  color: var(--accent-on);
}

.guide-step-pill.done {
  border-color: rgba(46, 174, 125, 0.45);
  color: #D7F5E9;
}
.guide-step-pill.done .num {
  background: var(--safe-sage);
  color: #06140F;
}

.guide-panel {
  display: none;
  flex-direction: column;
  gap: 0.85rem;
}
.guide-panel.active { display: flex; }

.guide-panel h2 {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--text-primary);
}

.guide-panel p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.ab-guide-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.ab-choice-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-inner);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ab-choice-hz {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--amber-light);
  text-align: center;
}

.compare-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 14px;
  background: var(--surface-well);
  border: 1px solid var(--border-subtle);
}

.compare-btn {
  min-height: 46px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
}
.compare-btn.active {
  background: var(--amber);
  color: var(--accent-on);
}

/* ── Monumental 360° Eclipse Radial Instrument (Centerpiece) ── */
.eclipse-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  container-type: inline-size;
  container-name: eclipse-box;
}

.eclipse-dial-wrap {
  position: relative;
  width: min(370px, 88cqi);
  aspect-ratio: 1 / 1;
  touch-action: none;
  cursor: grab;
  user-select: none;
}
.eclipse-dial-wrap:active { cursor: grabbing; }
.eclipse-dial-wrap canvas { width: 100%; height: 100%; display: block; }

.eclipse-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 47%;
  height: 47%;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  background: radial-gradient(circle at 38% 30%, #261C0D, #0C0A08 74%);
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.7rem;
  cursor: pointer;
  box-shadow: 0 0 55px rgba(245, 158, 11, 0.18), inset 0 1px 1px rgba(255, 240, 200, 0.16);
  transition: transform 140ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.eclipse-core.guide-pulse {
  animation: coreBreathe 2.4s infinite ease-in-out;
}
@keyframes coreBreathe {
  0%, 100% { box-shadow: 0 0 42px rgba(245, 158, 11, 0.22); border-color: rgba(245, 158, 11, 0.55); }
  50% { box-shadow: 0 0 78px rgba(245, 158, 11, 0.48); border-color: #FBBF24; }
}

.eclipse-core:active { transform: translate(-50%, -50%) scale(0.96); }
.eclipse-core.playing {
  border-color: var(--amber-light);
  box-shadow: 0 0 84px rgba(245, 158, 11, 0.34), inset 0 0 26px rgba(245, 158, 11, 0.22);
}

.eclipse-zone-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.eclipse-hz {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.35rem, 4.5cqi, 1.82rem);
  font-weight: 800;
  color: var(--amber-light);
  line-height: 1.15;
  margin: 2px 0;
}
.eclipse-action-lbl {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.eclipse-caption {
  font-size: 0.84rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 40ch;
  margin: 0;
}

.transport-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.transport-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--amber);
  background: var(--amber);
  color: var(--accent-on);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 150ms ease;
}
.transport-btn:hover { background: var(--amber-light); }
.transport-btn.playing {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-hover);
}
.transport-state {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Quick Nocturnal Atmosphere Pills (Always 1 tap under Eclipse) */
.quick-pills-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.48rem;
}

.quick-pill {
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-solid);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 150ms ease;
}
.quick-pill:hover { border-color: var(--border-hover); color: var(--text-primary); }
.quick-pill.active {
  background: var(--amber);
  color: var(--accent-on);
  border-color: var(--amber);
}

/* ── Layer 2: Collapsible «⚙️ Modo Estudio Avanzado» (Notch Studio Drawer) ── */
.studio-drawer-wrap {
  margin-top: 1.6rem;
}

.studio-drawer {
  display: none;
  background: var(--surface);
  backdrop-filter: blur(22px);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-outer);
  padding: 1.4rem;
  box-shadow: var(--shadow-specular);
  container-type: inline-size;
  container-name: studio-deck;
}

.studio-drawer.open { display: block; }

.studio-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.spectrum-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 6.2;
  background: var(--surface-well);
  border-radius: var(--radius-inner);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  cursor: ew-resize;
  touch-action: none;
}
.spectrum-wrap canvas { width: 100%; height: 100%; display: block; }

.spectrum-hint {
  position: absolute;
  right: 10px; bottom: 8px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  background: rgba(9, 10, 13, 0.72);
  padding: 2px 8px;
  border-radius: 6px;
  pointer-events: none;
}

.hz-readout-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.hz-badge {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 0.86rem;
  padding: 0.36rem 0.72rem;
  border-radius: 10px;
  background: var(--surface-well);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: var(--text-primary);
}
.hz-badge.right-ear {
  border-color: rgba(232, 122, 100, 0.55);
}

.step-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.step-btn {
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 700;
  cursor: pointer;
}
.step-btn:hover { border-color: var(--border-hover); }

.mixer-deck {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.fader-card {
  background: var(--surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
}
.fader-card.active {
  border-color: var(--border-hover);
  background: var(--amber-glow);
}

.fader-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.fader-pct {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--amber-light);
}

/* Shared Tactile Buttons & Inputs */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 46px;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-inner);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 110ms ease, background 160ms ease, border-color 160ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--amber); color: var(--accent-on); }
.btn-primary:hover { background: var(--amber-light); text-decoration: none; }
.btn-secondary {
  background: var(--surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}
.btn-secondary:hover { border-color: var(--border-hover); text-decoration: none; }
.btn-block { width: 100%; }

.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin: 0.7rem 0;
}
.control-row label {
  font-size: 0.86rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

input[type="range"] { accent-color: var(--amber); width: 100%; cursor: pointer; }
input[type="number"] {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-well);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 1rem;
}

.sound-pills { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.6rem 0; }
.sound-pill {
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-elevated);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}
.sound-pill.active {
  background: var(--amber-glow);
  border-color: var(--amber);
  color: var(--amber-light);
}

.profile-bridge {
  padding: 0.9rem 1rem;
  border-radius: var(--radius-inner);
  background: var(--amber-glow);
  border: 1px solid rgba(245, 158, 11, 0.35);
}
.code-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: 0.45rem;
  flex-wrap: wrap;
}
.code-mono {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--amber-light);
}

/* Full-Screen 2 AM Nocturnal Mode */
.immersion-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 2rem;
  background: rgba(5, 6, 8, 0.92);
  text-align: center;
}
body.immersive-mode .immersion-overlay { display: flex; }

.immersion-ring {
  width: min(260px, 68vw);
  height: min(260px, 68vw);
  border-radius: 50%;
  border: 2px solid var(--amber);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, var(--amber-glow), transparent 72%);
  box-shadow: 0 0 85px var(--amber-glow);
  cursor: pointer;
}
.immersion-hz {
  font-family: var(--font-mono);
  font-size: 1.95rem;
  font-weight: 800;
  color: var(--amber-light);
}

/* Editorial Content Sections, Citation Capsules & Tables */
.section {
  padding: 3rem 0;
  border-top: 1px solid var(--border-subtle);
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.9rem, 3.1vw, 2.85rem);
  line-height: 1.08;
  margin: 0 0 1rem;
}
.citation-capsule {
  max-width: 66ch;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--amber);
  background: var(--surface);
  border-radius: 0 14px 14px 0;
  color: var(--text-primary);
  margin: 0 0 1.4rem;
  font-size: 0.98rem;
}
.bento-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.1rem;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-outer);
  padding: 1.35rem;
  transition: border-color 160ms ease, transform 160ms ease;
}
.bento-card:hover { border-color: var(--border-hover); transform: translateY(-2px); text-decoration: none; }
.bento-card h3 { margin: 0 0 0.45rem; font-size: 1.08rem; font-weight: 800; color: var(--text-primary); }
.bento-card p { margin: 0; color: var(--text-muted); font-size: 0.92rem; }

.comp-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border-radius: var(--radius-inner);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  font-size: 0.9rem;
}
.comp-table th, .comp-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}
.comp-table th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--amber-light);
  background: var(--surface-elevated);
}

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.2rem 0 max(2.2rem, env(safe-area-inset-bottom));
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-row { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }

.toast {
  position: fixed;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  padding: 0.8rem 1.15rem;
  border-radius: 14px;
  background: var(--surface-solid);
  border: 1px solid var(--amber);
  color: var(--text-primary);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 100;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* Spoke-Page Compatibility (Notched Sound Therapy / Sleep Masker / Guía Nocturna) */
.hero {
  padding: clamp(2rem, 4.5vw, 3.6rem) 0 2.6rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: start;
}
.hero h1 {
  margin: 0.9rem 0 0.85rem;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.35rem, 4.4vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero h1 em { color: var(--amber-light); font-style: italic; }

.dsp-slot {
  container-type: inline-size;
  container-name: spoke-dsp;
}
.dsp-card {
  background: var(--surface);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-outer);
  padding: 1.35rem;
  box-shadow: var(--shadow-specular);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  background: var(--surface-solid);
  border: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--safe-sage);
  box-shadow: 0 0 8px var(--safe-sage);
}

@container studio-deck (max-width: 680px) {
  .studio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 880px) {
  .sanctuary-grid, .hero-grid, .bento-2, .studio-grid { grid-template-columns: 1fr; }
  .eclipse-stage { order: -1; }
  .ab-guide-row { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
