/* ============================================================
   30-DAY SURVIVAL CALENDAR — page-specific styles
   Loaded after style.css. Reuses brand tokens from :root.
   ============================================================ */

:root {
  /* New stage colors (other 3 are reused from style.css) */
  --sage:    #6b8e7a;
  --sage-dk: #4f6b5b;
}

.calendar-body { background: var(--bg); }
.cal-main { position: relative; }

/* ============================================================
   HERO + GATE
   ============================================================ */
.cal-hero {
  padding: 180px 0 60px;
  background: linear-gradient(180deg, #fff 0%, #faf9f7 100%);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.cal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% -10%, rgba(255, 61, 110, 0.10), transparent 50%),
    radial-gradient(circle at -10% 110%, rgba(122, 62, 196, 0.08), transparent 50%);
  pointer-events: none;
}
.cal-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
@media (max-width: 1024px) {
  .cal-hero { padding: 140px 0 40px; }
  .cal-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 600px) {
  .cal-hero { padding: 110px 0 32px; }
  .cal-hero-grid { gap: 32px; }
}
.cal-hero-copy .eyebrow { color: var(--accent); }
.cal-hero-title {
  font-family: var(--display);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  /* Bumped from .94 to 1.02 so the descender room is built into the line
     box itself instead of relying on overflow tricks. Archivo Black + Inter
     Italic Bold at the .em weight both render past the line box at tighter
     line-heights. */
  line-height: 1.02;
  letter-spacing: -.03em;
  text-transform: uppercase;
  margin: 18px 0 24px;
  /* Prevent any pseudo-clipping from rounding/transform artifacts by
     giving the heading explicit overflow:visible — overrides any inherited
     overflow:hidden from a parent that might pinch the descender. */
  overflow: visible;
}
/* The "30-Day" word inside <em> uses Inter italic at weight 800, which
   renders with wider vertical bounds than Archivo Black AND has italic
   slant that extends ink below the baseline. Combined with the tight
   line-height of .94, the word-mask's overflow:hidden was clipping the
   bottom of the letters. Give it generous breathing room top + bottom
   and compensate with negative margin so line spacing is unaffected. */
.cal-hero-title.reveal-words .word-mask {
  padding-top: .12em;
  padding-bottom: .35em;
  margin-top: -.12em;
  margin-bottom: -.35em;
}
.cal-hero-title em {
  font-style: italic;
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.04em;
}
.cal-hero-sub {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 540px;
  line-height: 1.55;
  margin-bottom: 20px;
}
.cal-byline {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 24px;
}
.cal-byline strong { color: var(--accent); font-weight: 700; }
.cal-bullets { margin: 24px 0 28px; }
.cal-bullets li { font-size: 1rem; line-height: 1.5; }
.cal-bullets li em { color: var(--accent); font-style: italic; }
.cal-tagline {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.4;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--heading);
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  margin-top: 20px;
  max-width: 440px;
}
@media (max-width: 600px) {
  .cal-hero-title { font-size: clamp(2.4rem, 11vw, 3.4rem); margin: 14px 0 18px; }
  .cal-hero-sub { font-size: 1.02rem; }
  .cal-bullets li { font-size: .96rem; }
  .cal-tagline { font-size: .95rem; }
}

/* ---- Gate card ---- */
.cal-gate-wrap { position: relative; }
.cal-gate {
  background: var(--bg-dark);
  color: var(--on-dark);
  border-radius: var(--radius-xl);
  padding: 36px 32px 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.20), 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  position: relative;
  overflow: hidden;
  min-width: 0;
}
@media (max-width: 600px) {
  .cal-gate { padding: 26px 20px 22px; border-radius: var(--radius-lg); }
}
.cal-gate::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--magenta) 50%, var(--purple) 100%);
}
.cal-gate-head { margin-bottom: 24px; }
.cal-gate-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 61, 110, 0.12);
  border: 1px solid rgba(255, 61, 110, 0.3);
}
.cal-gate-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(255, 61, 110, 0.6);
  animation: cal-pulse 2s ease-out infinite;
}
@keyframes cal-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(255, 61, 110, 0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(255, 61, 110, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 61, 110, 0); }
}
.cal-gate-h {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
  margin: 14px 0 8px;
  color: #fff;
}
.cal-gate-sub {
  font-size: .92rem;
  color: var(--on-dark-muted);
  line-height: 1.5;
}

.cal-gate-form { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cal-row { display: contents; }
.cal-row-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.cal-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cal-field input { min-width: 0; width: 100%; }
@media (max-width: 380px) {
  .cal-row-2 { grid-template-columns: minmax(0, 1fr); }
}
.cal-label {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  font-weight: 600;
}
.cal-label em {
  color: var(--accent);
  font-style: normal;
  margin-left: 2px;
}
.cal-opt {
  color: rgba(255, 255, 255, 0.4);
  font-style: italic;
  letter-spacing: .04em;
  text-transform: lowercase;
  margin-left: 6px;
}
.cal-req {
  display: inline-block;
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-left: 6px;
  font-style: normal;
}
.cal-field input[type="text"],
.cal-field input[type="email"],
.cal-field input[type="tel"] {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 13px 14px;
  font: inherit;
  font-size: .98rem;
  color: #fff;
  transition: all .2s var(--ease);
}
.cal-field input::placeholder { color: rgba(255, 255, 255, 0.3); }
.cal-field input:hover { border-color: rgba(255, 255, 255, 0.25); }
.cal-field input:focus {
  outline: 0;
  border-color: var(--accent);
  background: rgba(255, 61, 110, 0.06);
  box-shadow: 0 0 0 3px rgba(255, 61, 110, 0.18);
}
.cal-field input:invalid:not(:placeholder-shown) {
  border-color: rgba(255, 100, 100, 0.5);
}
.cal-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--on-dark-muted);
  cursor: pointer;
  user-select: none;
  padding: 6px 0;
}
.cal-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent);
  cursor: pointer;
}
.cal-check strong { color: #fff; font-weight: 600; }
.cal-check-legal {
  display: block;
  margin-top: 8px;
  font-size: .78rem;
  line-height: 1.55;
  /* WCAG AA: TCPA SMS-consent must be legible. 0.78 alpha ~= 5.7:1 on bg-dark. */
  color: rgba(255, 255, 255, 0.78);
}
.cal-check-legal a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: underline;
}
.cal-check-legal a:hover { color: #fff; }
/* Dark-mode (cal-dark) variant — sub-text color shifts to the muted token */
html.cal-dark .cal-check-legal { color: var(--muted); }
html.cal-dark .cal-check-legal a { color: var(--text); }
.cal-form-error {
  font-size: .85rem;
  color: #ff8fa3;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 61, 110, 0.10);
  border: 1px solid rgba(255, 61, 110, 0.3);
  margin: 0;
}
.cal-gate-submit { margin-top: 10px; width: 100%; justify-content: center; }
.cal-fineprint {
  font-size: .78rem;
  /* Bumped from 0.4 → 0.72 for WCAG AA (~5.0:1) */
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  margin: 8px 0 0;
  line-height: 1.5;
}
.cal-medical-note {
  font-size: .82rem;
  /* Medical disclaimer must be readable — bumped from 0.55 → 0.78 */
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin: 14px 0 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(255, 214, 10, 0.06);
  border: 1px solid rgba(255, 214, 10, 0.18);
  border-left: 3px solid var(--yellow);
}
.cal-medical-note strong { color: var(--yellow); font-weight: 700; }

/* ============================================================
   PHASE PROGRESS BAR (sticky under nav)
   ============================================================ */
.cal-phasebar {
  position: sticky;
  top: 64px;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.cal-phasebar .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
}
.cal-phase {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  color: var(--muted);
  border: 0 !important;
  position: relative;
  transition: background .2s var(--ease), color .2s var(--ease);
  font-size: .82rem;
  overflow: hidden;
}
.cal-phase::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: currentColor;
  opacity: 0;
  transition: opacity .25s var(--ease);
}
.cal-phase:hover { color: var(--heading); background: #fff; }
.cal-phase.is-active::before { opacity: 1; }
.cal-phase.is-active { color: var(--heading); background: #fff; }
.cal-phase-num {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .1em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-alt);
}
.cal-phase-1 .cal-phase-num { background: rgba(255, 61, 110, 0.12); color: var(--accent); }
.cal-phase-2 .cal-phase-num { background: rgba(107, 142, 122, 0.18); color: var(--sage-dk); }
.cal-phase-3 .cal-phase-num { background: rgba(122, 62, 196, 0.14); color: var(--purple); }
.cal-phase-4 .cal-phase-num { background: rgba(0, 212, 224, 0.16); color: #008a93; }
.cal-phase-1.is-active { color: var(--accent); }
.cal-phase-2.is-active { color: var(--sage-dk); }
.cal-phase-3.is-active { color: var(--purple); }
.cal-phase-4.is-active { color: #008a93; }
.cal-phase-name { font-weight: 700; }
.cal-phase-days {
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--muted);
  margin-left: auto;
  letter-spacing: .08em;
}
@media (max-width: 880px) {
  .cal-phasebar { top: 60px; }
  .cal-phase { padding: 10px 8px; font-size: .72rem; }
  .cal-phase-name { display: none; }
  .cal-phase-days { font-size: .62rem; }
}

/* ============================================================
   LOCKED OVERLAY (covers content section only — never the hero)
   The wrapper provides the positioning context so the overlay
   sits over the content, leaving the gate form fully clickable.
   ============================================================ */
.cal-content-wrap {
  position: relative;
}
.cal-content {
  transition: filter .5s var(--ease), opacity .5s var(--ease);
}
.cal-main:not(.is-unlocked) .cal-content {
  filter: blur(8px) saturate(.4);
  opacity: .55;
  pointer-events: none;
  user-select: none;
  max-height: 1400px;
  overflow: hidden;
}
.cal-locked-overlay {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  bottom: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.92) 35%, #fff 100%);
  pointer-events: none;
}
.cal-main:not(.is-unlocked) .cal-locked-overlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.cal-locked-card {
  pointer-events: auto;
  text-align: center;
  max-width: 480px;
  padding: 40px 32px;
  position: sticky;
  top: 200px;
}
.cal-locked-eyebrow {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .2em;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 12px;
}
.cal-locked-h {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.cal-locked-cta { margin: 0 auto; }

.cal-main.is-unlocked .cal-content { aria-hidden: false; }
.cal-main.just-unlocked .cal-content > section:first-child {
  animation: cal-glow 1.2s ease-out;
}
@keyframes cal-glow {
  0% { box-shadow: 0 0 0 0 rgba(255, 61, 110, 0); }
  30% { box-shadow: inset 0 0 0 3px rgba(255, 61, 110, 0.4); }
  100% { box-shadow: 0 0 0 0 rgba(255, 61, 110, 0); }
}

/* ============================================================
   SHARED SECTION HEADS
   ============================================================ */
.cal-section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.cal-section-head h2 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: -.025em;
  margin: 14px 0 18px;
}
.cal-lede {
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}
.section-dark .cal-lede { color: var(--on-dark-muted); }

/* ============================================================
   NOTE FROM MEGHAN
   ============================================================ */
.cal-note { padding: 80px 0; }
.cal-note .eyebrow { text-align: center; margin-bottom: 28px; }
.cal-note-body p {
  font-size: 1.1rem;
  line-height: 1.65;
  margin: 0 0 22px;
  color: var(--text);
}
.cal-note-body p:first-of-type::first-letter {
  font-family: var(--display);
  float: left;
  font-size: 4.2rem;
  line-height: .85;
  padding: 4px 12px 0 0;
  color: var(--accent);
}
.cal-note-sign {
  text-align: right;
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -.01em;
  font-size: 1.1rem !important;
  margin-top: 32px;
}
.cal-note-sign em {
  display: block;
  color: var(--accent);
  font-style: italic;
  font-weight: 900;
}

/* ============================================================
   HOW TO USE (4 pillars)
   ============================================================ */
.cal-howto { padding: 100px 0; }
.cal-pullquote {
  max-width: 760px;
  margin: 0 auto 64px;
  padding: 36px 40px;
  border-left: 4px solid var(--accent);
  background: var(--bg-alt);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.cal-pullquote-tight { margin-top: 48px; }
.cal-pullquote p {
  font-family: var(--display);
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
  line-height: 1.25;
  text-transform: none;
  letter-spacing: -.01em;
  margin: 0 0 16px;
  color: var(--heading);
}
.cal-pullquote p strong { color: var(--accent); }
.cal-pullquote cite {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--muted);
}

.cal-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 48px 0;
}
@media (max-width: 1024px) {
  .cal-pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .cal-pillars { grid-template-columns: 1fr; }
}
.cal-pillar {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cal-pillar:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}
.cal-pillar-num {
  font-family: var(--mono);
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.cal-pillar h3 {
  font-family: var(--display);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  line-height: 1;
}
.cal-pillar p {
  font-size: .92rem;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.cal-howto-close {
  text-align: center;
  font-size: 1.05rem;
  color: var(--muted);
  margin: 32px 0 48px;
}
.cal-warning {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-dark);
  color: var(--on-dark);
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--yellow);
}
.cal-warning-label {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow);
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
}
.cal-warning p { font-size: .98rem; line-height: 1.55; color: rgba(255, 255, 255, 0.82); margin: 0; }

/* ============================================================
   4-PHASE MAP
   ============================================================ */
.cal-map { padding: 100px 0; }
.cal-90-map {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 56px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.cal-90-item {
  padding: 28px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cal-90-item:last-child { border-right: 0; }
.cal-90-item strong {
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: uppercase;
  color: #fff;
  letter-spacing: -.01em;
  display: block;
}
.cal-90-item span:not(.cal-90-num) {
  font-size: .85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.4;
}
.cal-90-num {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .14em;
  color: var(--accent);
  font-weight: 700;
}
@media (max-width: 1024px) { .cal-90-map { grid-template-columns: repeat(2, 1fr); } .cal-90-item:nth-child(2) { border-right: 0; } }
@media (max-width: 600px) { .cal-90-map { grid-template-columns: 1fr; } .cal-90-item { border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); } .cal-90-item:last-child { border-bottom: 0; } }

.cal-map-trans {
  text-align: center;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.72);
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.55;
}
.cal-stages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 880px) { .cal-stages { grid-template-columns: 1fr; } }
.cal-stage-mini {
  padding: 28px 26px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-left-width: 4px;
  transition: transform .25s var(--ease), border-color .25s var(--ease);
}
.cal-stage-mini:hover { transform: translateY(-3px); }
.cal-stage-1-mini { border-left-color: var(--accent); }
.cal-stage-2-mini { border-left-color: var(--sage); }
.cal-stage-3-mini { border-left-color: var(--purple); }
.cal-stage-4-mini { border-left-color: var(--teal); }
.cal-stage-tag {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  display: block;
  margin-bottom: 12px;
}
.cal-stage-1-mini .cal-stage-tag { color: var(--accent); }
.cal-stage-2-mini .cal-stage-tag { color: var(--sage); }
.cal-stage-3-mini .cal-stage-tag { color: #b893e8; }
.cal-stage-4-mini .cal-stage-tag { color: var(--teal); }
.cal-stage-mini h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1;
}
.cal-stage-mini p {
  font-size: .92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* ============================================================
   BUILD THE CAGE
   ============================================================ */
.cal-cage { padding: 100px 0; }
.cal-cage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 48px;
}
@media (max-width: 880px) { .cal-cage-grid { grid-template-columns: 1fr; } }
.cal-cage-col {
  padding: 32px 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: #fff;
}
.cal-cage-out { border-top: 4px solid var(--accent); }
.cal-cage-in { border-top: 4px solid var(--sage); }
.cal-cage-col h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cal-x, .cal-check-icon {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
  color: #fff;
}
.cal-x { background: var(--accent); }
.cal-check-icon { background: var(--sage); }
.cal-cage-col ul { list-style: none; padding: 0; margin: 0; }
.cal-cage-col li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--border);
  font-size: .96rem;
  line-height: 1.5;
  color: var(--text);
}
.cal-cage-col li:last-child { border-bottom: 0; }

/* ============================================================
   THE 5PM WITCHING HOUR — timeline
   ============================================================ */
.cal-witching { padding: 100px 0; }
.cal-timeline {
  list-style: none;
  padding: 0;
  margin: 48px auto;
  max-width: 760px;
  position: relative;
  counter-reset: cal-tl;
}
.cal-timeline::before {
  content: "";
  position: absolute;
  left: 110px;
  top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--magenta) 100%);
}
.cal-timeline li {
  display: grid;
  /* Narrower time column + wider gap so the dot (at left:106px) sits between
     the time text and the body copy with breathing room on both sides
     instead of overlapping the right edge of the time. */
  grid-template-columns: 84px 1fr;
  gap: 48px;
  padding: 18px 0;
  position: relative;
  align-items: flex-start;
}
.cal-timeline li::after {
  content: "";
  position: absolute;
  /* Centered on the line at left:110px → dot spans 106–116px, leaving
     22px clearance to the end of the time column at 84px. */
  left: 106px;
  top: 28px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent);
  z-index: 1;
  box-shadow: 0 0 0 4px var(--bg-alt);
  /* Continuous pulse — runs even before the parent is in view to give the
     timeline visible motion. Staggered per row via nth-child below. */
  animation: cal-timeline-pulse 2.6s ease-in-out infinite;
}
.cal-timeline li:nth-child(1)::after { animation-delay: 0s;   }
.cal-timeline li:nth-child(2)::after { animation-delay: .25s; }
.cal-timeline li:nth-child(3)::after { animation-delay: .50s; }
.cal-timeline li:nth-child(4)::after { animation-delay: .75s; }
.cal-timeline li:nth-child(5)::after { animation-delay: 1.0s; }
.cal-timeline li:nth-child(6)::after { animation-delay: 1.25s; }
@keyframes cal-timeline-pulse {
  0%, 100% { box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 0 rgba(255, 61, 110, 0); }
  50%      { box-shadow: 0 0 0 4px var(--bg-alt), 0 0 0 6px rgba(255, 61, 110, 0.18); }
}

/* Staggered slide-in reveal on scroll. Pairs with data-stagger on the <ol>;
   delays for nth-child 1-6 come from the global [data-stagger] rule in
   style.css. Extra delays for li 7+ are added inline if more rows arrive. */
.cal-timeline[data-stagger] > li {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity .55s var(--ease), transform .55s var(--ease);
}
.cal-timeline[data-stagger].in-view > li {
  opacity: 1;
  transform: none;
}

.cal-time {
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  text-align: right;
  padding-top: 2px;
}
.cal-timeline div { padding-left: 14px; }
.cal-timeline strong { font-weight: 700; color: var(--heading); }
.cal-timeline div { font-size: .98rem; line-height: 1.55; color: var(--text); }
@media (max-width: 700px) {
  .cal-timeline::before { left: 12px; }
  .cal-timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 36px; }
  .cal-timeline li::after { left: 8px; top: 22px; }
  .cal-time { text-align: left; }
  .cal-timeline div { padding-left: 0; }
}

/* ============================================================
   STAGE BANNERS (full-bleed colored sections)
   ============================================================ */
.cal-stage-banner {
  padding: 100px 0;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cal-stage-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.10), transparent 50%);
  pointer-events: none;
}
.cal-stage-1 { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dk) 100%); }
.cal-stage-2 { background: linear-gradient(135deg, var(--sage) 0%, var(--sage-dk) 100%); }
.cal-stage-3 { background: linear-gradient(135deg, var(--purple) 0%, #4f2786 100%); }
.cal-stage-4 { background: linear-gradient(135deg, var(--teal) 0%, #008a93 100%); }
.cal-banner-eye {
  font-family: var(--mono);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 8px;
}
.cal-banner-sub {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 30px;
}
.cal-banner-h {
  font-family: var(--display);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: .9;
  text-transform: uppercase;
  letter-spacing: -.04em;
  color: #fff;
  margin: 0 0 28px;
  max-width: 900px;
}
.cal-banner-blurb {
  font-size: 1.2rem;
  line-height: 1.5;
  max-width: 640px;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 40px;
}
.cal-banner-blurb em { font-style: italic; font-weight: 500; }
.cal-banner-pillars-label {
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  margin: 0 0 14px;
}
.cal-banner-pillars {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1000px;
}
.cal-banner-pillars li {
  font-size: 1rem;
  line-height: 1.45;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.10);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
}
@media (max-width: 880px) { .cal-banner-pillars { grid-template-columns: 1fr; } }

/* ============================================================
   DAY CARDS
   ============================================================ */
.cal-days {
  padding: 80px 0 100px;
  display: grid;
  gap: 28px;
  max-width: 820px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
.cal-day {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 36px 28px;
  box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
  scroll-margin-top: 120px;
}
.cal-day:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.cal-day-1 { border-top: 4px solid var(--accent); }
.cal-day-2 { border-top: 4px solid var(--sage); }
.cal-day-3 { border-top: 4px solid var(--purple); }
.cal-day-4 { border-top: 4px solid var(--teal); }
.cal-day-30 {
  background: linear-gradient(135deg, #fff 0%, rgba(0, 212, 224, 0.06) 100%);
  border-top-width: 6px;
}
.cal-day-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 12px;
}
.cal-day-pill {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
}
.cal-day-1 .cal-day-pill { background: rgba(255, 61, 110, 0.10); color: var(--accent-dk); }
.cal-day-2 .cal-day-pill { background: rgba(107, 142, 122, 0.16); color: var(--sage-dk); }
.cal-day-3 .cal-day-pill { background: rgba(122, 62, 196, 0.12); color: var(--purple); }
.cal-day-4 .cal-day-pill { background: rgba(0, 212, 224, 0.16); color: #008a93; }
.cal-day-num {
  font-family: var(--display);
  font-size: 1.6rem;
  letter-spacing: -.02em;
  text-transform: uppercase;
  color: var(--heading);
}
.cal-day-num em {
  font-family: var(--mono);
  font-style: normal;
  font-size: .82rem;
  color: var(--muted);
  letter-spacing: .14em;
  margin-left: 6px;
  font-weight: 500;
}
.cal-meghan {
  border-left: 3px solid var(--accent);
  padding: 0 0 0 18px;
  margin: 0 0 26px;
  background: transparent;
}
.cal-day-2 .cal-meghan { border-left-color: var(--sage); }
.cal-day-3 .cal-meghan { border-left-color: var(--purple); }
.cal-day-4 .cal-meghan { border-left-color: var(--teal); }
.cal-meghan p {
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}
.cal-day-section { margin: 0 0 24px; }
.cal-day-label {
  display: block;
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}
.cal-day-2 .cal-day-label { color: var(--sage-dk); }
.cal-day-3 .cal-day-label { color: var(--purple); }
.cal-day-4 .cal-day-label { color: #008a93; }
.cal-day-label em {
  font-style: normal;
  color: var(--heading);
  font-family: var(--display);
  text-transform: uppercase;
  letter-spacing: -.01em;
  font-size: 1.15rem;
  display: block;
  margin-top: 6px;
  letter-spacing: 0;
}
.cal-day-section > p {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--text);
  margin: 0;
}
.cal-tool .cal-day-label {
  letter-spacing: .12em;
}
.cal-prompt {
  background: var(--bg-alt);
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 22px 24px;
  margin: 28px 0;
}
.cal-prompt-label {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.cal-prompt p {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}
.cal-emergency {
  background: var(--bg-dark);
  color: var(--on-dark);
  border-radius: 12px;
  padding: 24px 26px;
  margin-top: 24px;
  position: relative;
  border-left: 4px solid var(--yellow);
}
.cal-emergency-label {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--yellow);
  display: block;
  margin-bottom: 10px;
}
.cal-emergency p {
  font-size: .98rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.cal-emergency-script {
  margin-top: 14px !important;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-style: italic;
  color: var(--yellow) !important;
  font-size: 1rem !important;
}
@media (max-width: 700px) {
  .cal-days { padding-left: 16px; padding-right: 16px; }
  .cal-day { padding: 28px 22px 22px; }
}

/* ============================================================
   SCRIPTS
   ============================================================ */
.cal-scripts { padding: 100px 0; }
.cal-script-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 880px) { .cal-script-grid { grid-template-columns: 1fr; } }
.cal-script {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 28px 24px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cal-script:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cal-script-tag {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 16px;
}
.cal-script-scene {
  font-size: .95rem;
  color: var(--muted);
  margin-bottom: 18px;
  line-height: 1.5;
}
.cal-script-say {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.45;
  letter-spacing: -.005em;
  color: var(--heading);
  border-left: 3px solid var(--accent);
  padding: 6px 0 6px 16px;
  margin: 0;
  text-transform: none;
}
.cal-script-self .cal-script-say { font-family: var(--sans); font-size: 1rem; font-weight: 500; }
.cal-script-self .cal-script-tag::before { content: "Your brain says: "; color: var(--muted); font-weight: 500; text-transform: none; letter-spacing: .04em; }

/* ============================================================
   EMERGENCY TOOLKIT
   ============================================================ */
.cal-toolkit { padding: 100px 0; }
.cal-tool-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
@media (max-width: 1024px) { .cal-tool-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .cal-tool-grid { grid-template-columns: 1fr; } }
.cal-toolcard {
  padding: 32px 28px 28px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  position: relative;
  transition: transform .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.cal-toolcard:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.07);
}
.cal-toolcard-num {
  font-family: var(--display);
  font-size: 2.6rem;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -.04em;
  display: block;
  margin-bottom: 14px;
}
.cal-toolcard h3 {
  font-family: var(--display);
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: #fff;
  margin: 0 0 14px;
  line-height: 1;
}
.cal-toolcard p {
  font-size: .94rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.75);
  margin: 0 0 12px;
}
.cal-toolcard-list {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
}
.cal-toolcard-list li {
  font-size: .92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.cal-toolcard-list li:last-child { border-bottom: 0; }
.cal-toolcard-list strong { color: var(--accent); }
.cal-toolcard-close {
  color: var(--yellow) !important;
  font-size: .88rem !important;
  margin-top: 16px !important;
  font-style: italic;
}

/* ============================================================
   SUPPLEMENTS
   ============================================================ */
.cal-supps { padding: 100px 0; background: var(--bg-alt); }
.cal-supp-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
}
@media (max-width: 700px) { .cal-supp-grid { grid-template-columns: 1fr; } }
.cal-supp {
  padding: 28px 28px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--accent);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.cal-supp:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cal-supp-wide { grid-column: 1 / -1; border-left-color: var(--teal); }
.cal-supp:nth-child(2) { border-left-color: var(--purple); }
.cal-supp:nth-child(3) { border-left-color: var(--sage); }
.cal-supp:nth-child(4) { border-left-color: var(--yellow); }
.cal-supp h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 0 0 12px;
  line-height: 1;
}
.cal-supp p {
  font-size: .98rem;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
}
.cal-supp strong { color: var(--accent); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cal-final { padding: 120px 0; position: relative; overflow: hidden; }
.cal-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 61, 110, 0.15), transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(122, 62, 196, 0.12), transparent 50%);
  pointer-events: none;
}
.cal-final .container { position: relative; z-index: 1; }
.cal-final h2 {
  font-family: var(--display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: .92;
  text-transform: uppercase;
  letter-spacing: -.03em;
  color: #fff;
  margin: 14px 0 28px;
}
.cal-final .eyebrow { color: var(--accent); }
.cal-final-lede {
  font-size: 1.18rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin: 0 auto 32px;
}
.cal-final-body {
  font-size: 1.02rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
  max-width: 580px;
  margin: 0 auto 20px;
}
.cal-final-body strong { color: var(--accent); }
.cal-final-callout {
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.3;
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--yellow) !important;
  max-width: 580px;
  margin: 40px auto !important;
}
.cal-final-cta-row {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 32px 0 28px;
}
/* Pink primary CTA blends into the pink radial bloom this section uses
   as its backdrop — the default pink shadow gives no separation. Swap in
   a deeper / wider shadow + a thin white ring so the button reads as a
   clear, glowing object against the gradient.

   Also force the text color back to white: the global `.section-dark a`
   rule in style.css (specificity 0,1,1) repaints every link inside a
   dark section to var(--accent), which on this pink button makes the
   label pink-on-pink and invisible. This selector (0,2,0) overrides it. */
.cal-final-cta-row .btn-primary {
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 14px 36px -8px rgba(0, 0, 0, 0.55),
    0 8px 24px rgba(255, 61, 110, 0.45);
}
.cal-final-cta-row .btn-primary:hover {
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35),
    0 18px 44px -10px rgba(0, 0, 0, 0.6),
    0 16px 40px rgba(255, 61, 110, 0.55);
}
.cal-final-sign {
  font-family: var(--display);
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
  color: var(--accent);
}

/* ============================================================
   FLOATING JUMP-TO-DAY CHIP
   ============================================================ */
.cal-jump {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  display: none;
}
@media (min-width: 1024px) {
  .cal-main.is-unlocked .cal-jump { display: block; }
}
.cal-jump-trigger {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 20px;
  background: var(--bg-dark);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .85rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.30);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.cal-jump-trigger:hover { transform: translateY(-2px); background: var(--bg-deep); }
.cal-jump-label em { font-style: normal; color: var(--accent); font-weight: 700; padding: 0 4px; }
.cal-jump-of { color: rgba(255, 255, 255, 0.4); font-size: .72rem; margin-left: 2px; }
.cal-jump-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
}
.cal-jump-panel {
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.20);
}
.cal-jump-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.cal-jump-grid a {
  font-family: var(--mono);
  font-size: .82rem;
  font-weight: 700;
  text-align: center;
  padding: 8px 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  text-decoration: none !important;
  color: var(--text);
  transition: all .15s var(--ease);
}
.cal-jump-grid a:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal-jump-grid a.is-active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ============================================================
   REVEAL-ON-SCROLL HELPERS
   ============================================================ */
.cal-content [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.cal-content [data-reveal].in-view {
  opacity: 1;
  transform: none;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .cal-gate-dot { animation: none; }
}

/* ============================================================
   PRINT — clean reading view, no gate, no chrome
   ============================================================ */
@media print {
  .site-header, .site-footer, .cal-phasebar, .cal-jump,
  .scroll-progress, .cal-hero, .cal-locked-overlay { display: none !important; }
  .cal-main:not(.is-unlocked) .cal-content {
    filter: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }
  body { background: #fff !important; color: #000 !important; }
  .cal-day, .cal-stage-banner, .cal-toolcard, .cal-script {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .cal-stage-banner {
    color: #000 !important;
    background: #f0f0f0 !important;
    border-top: 4px solid var(--accent);
  }
  .cal-stage-banner .cal-banner-h,
  .cal-stage-banner .cal-banner-eye,
  .cal-stage-banner .cal-banner-sub,
  .cal-stage-banner .cal-banner-blurb,
  .cal-stage-banner .cal-banner-pillars-label,
  .cal-stage-banner .cal-banner-pillars li { color: #000 !important; }
  .section-dark { background: #fff !important; color: #000 !important; }
  .section-dark * { color: #000 !important; }
  .cal-emergency { background: #f5f5f5 !important; color: #000 !important; border-left: 4px solid #c00; }
  .cal-emergency p, .cal-emergency-label, .cal-emergency-script { color: #000 !important; }
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* ============================================================
   BATCH 1 ADDITIONS (value anchor, bio, faq, comparison, subhead)
   ============================================================ */

/* -- Subhead used above section H2s (SEO secondary headline) -- */
.cal-subhead {
  font-size: .95rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin: 0 0 10px;
}

/* -- Ledger style shared by value anchor + comparison -- */
.cal-value, .cal-compare {
  background: linear-gradient(180deg, #fff 0%, #faf6f0 100%);
  padding: 80px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cal-compare { background: linear-gradient(180deg, #faf6f0 0%, #fff 100%); }
.cal-value-h {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin: 0 0 36px;
  text-transform: uppercase;
}
.cal-value-free { color: var(--accent); }

.cal-ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
  font-size: 1rem;
  color: var(--heading);
}
.cal-ledger li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px dashed rgba(20,16,26,.15);
}
.cal-ledger li:last-child { border-bottom: 0; }
.cal-ledger-item {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cal-ledger-dots {
  flex: 1 1 auto;
  height: 1px;
  margin: 0 4px 4px;
  border-bottom: 1px dotted rgba(20,16,26,.35);
  min-width: 24px;
}
.cal-ledger-price {
  white-space: nowrap;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cal-ledger-row-free .cal-ledger-price { color: var(--accent); }

.cal-ledger-totals {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 2px solid var(--heading);
  font-family: var(--mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace);
}
.cal-ledger-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 1.05rem;
}
.cal-ledger-strike {
  text-decoration: line-through;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cal-ledger-total-free {
  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 4px;
}
.cal-ledger-zero {
  color: var(--accent);
  font-size: 1.8rem;
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
}
.cal-compare-kicker {
  margin-top: 28px;
  font-size: 1.05rem;
  color: var(--heading);
}

@media (max-width: 640px) {
  .cal-value, .cal-compare { padding: 56px 0; }
  .cal-ledger { font-size: .88rem; }
  .cal-ledger li { flex-wrap: wrap; gap: 4px; }
  .cal-ledger-item { white-space: normal; flex: 1 1 100%; }
  .cal-ledger-dots { display: none; }
  .cal-ledger-price { flex: 0 0 auto; text-align: left; }
  .cal-ledger-total-free { font-size: 1.2rem; }
  .cal-ledger-zero { font-size: 1.6rem; }
}

/* -- About Meghan micro-bio block -- */
.cal-bio {
  padding: 60px 0;
  background: var(--bg);
}
.cal-bio-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  padding: 32px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 6px 24px rgba(20,16,26,.05);
}
.cal-bio-avatar {
  flex: 0 0 100px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  overflow: hidden;
  /* Subtle pink rim instead of the old gradient fill, since the image
     fills the circle now. Keeps a tiny brand accent without competing
     with the photo. */
  box-shadow:
    0 0 0 2px var(--accent),
    0 8px 20px -8px rgba(0, 0, 0, 0.25);
  background: var(--bg-alt);
}
.cal-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* DSC02406.webp is a 500x500 square pre-cropped so Meghan's face sits
     at the geometric center — no object-position offset needed. The slight
     scale-up gives the face a bit more presence inside the circle without
     cropping out her shoulders/hair. */
  object-position: center center;
  transform: scale(1.08);
  display: block;
}
.cal-bio-body p { margin: 8px 0 14px; line-height: 1.55; }
.cal-bio-links { display: flex; gap: 22px; flex-wrap: wrap; }
.cal-bio-links a {
  font-weight: 600;
  font-size: .95rem;
  color: var(--accent);
  border-bottom: 0;
}
.cal-bio-links a:hover { color: var(--accent-dk); }
@media (max-width: 640px) {
  .cal-bio-card { flex-direction: column; align-items: center; text-align: center; padding: 24px; }
  .cal-bio-avatar { flex-basis: 88px; width: 88px; height: 88px; font-size: 1.7rem; }
  .cal-bio-links { justify-content: center; }
}

/* -- Note section: H3 for SEO sub-section -- */
.cal-note-h3 {
  font-family: var(--display);
  font-size: 1.5rem;
  text-transform: uppercase;
  letter-spacing: -.01em;
  margin: 24px 0 10px;
  color: var(--heading);
}

/* -- Warning crisis line (988) -- */
.cal-warning-crisis {
  margin: 0 0 14px;
  padding: 12px 16px;
  background: rgba(220, 60, 60, .08);
  border-left: 4px solid #c93434;
  border-radius: 6px;
  font-size: 1.02rem;
}
.cal-warning-crisis a {
  color: #c93434;
  border-bottom: 1px solid currentColor;
}

/* -- FAQ accordion (native details/summary) -- */
.cal-faq {
  background: #fff;
  padding: 80px 0;
}
.cal-faq-list { margin-top: 32px; }
.cal-faq-item {
  border-top: 1px solid var(--border);
  padding: 4px 0;
}
.cal-faq-item:last-child { border-bottom: 1px solid var(--border); }
.cal-faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 48px 22px 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  text-transform: none;
  letter-spacing: -.01em;
  color: var(--heading);
  position: relative;
  transition: color .2s ease;
}
.cal-faq-item summary::-webkit-details-marker { display: none; }
.cal-faq-item summary::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform .25s ease, background .25s ease, color .25s ease;
}
.cal-faq-item[open] summary::after {
  content: "×";
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-50%) rotate(0deg);
}
.cal-faq-item summary:hover { color: var(--accent); }
.cal-faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}
.cal-faq-body {
  padding: 0 48px 24px 0;
  animation: cal-faq-open .25s ease;
}
.cal-faq-body p { margin: 0; color: var(--text); line-height: 1.6; }
@keyframes cal-faq-open {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* -- Jump chip: surface the "Jump to" prefix -- */
.cal-jump-prefix {
  display: inline-block;
  margin-right: 8px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   BATCH 2 ADDITIONS (hero CTA, video stub, social proof, mid-page
   gate, exit modal, sticky mobile CTA)
   ============================================================ */

/* -- Hero: collapse to single column, add big CTA + microcopy -- */
.cal-hero-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 0 !important; }
.cal-hero-cta {
  margin-top: 28px;
  font-size: .95rem;
}
.cal-hero-microcopy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: .9rem;
}

/* -- Intro video stub inside the note section -- */
.cal-note-video {
  margin: 36px auto 0;
  max-width: 600px;
}
.cal-video-frame {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  background: linear-gradient(135deg, #2a2335, #14101a);
  border-radius: 12px;
  overflow: hidden;
  border: 1px dashed rgba(255,255,255,.2);
}
.cal-video-frame:has(iframe),
.cal-video-frame:has(.lite-yt) { border: 0; background: #000; }
.cal-video-frame:has(iframe)::before,
.cal-video-frame:has(.lite-yt)::before { display: none; }
.cal-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.cal-video-frame::before {
  content: "▶";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -120%);
  font-size: 2.4rem;
  color: rgba(255,255,255,.55);
}
.cal-video-label {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, 30%);
  text-align: center;
  width: 90%;
  color: rgba(255,255,255,.7);
  font-size: .85rem;
  letter-spacing: .03em;
}

/* -- Social proof section -- */
.cal-social {
  padding: 80px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.cal-social .cal-section-head { text-align: center; margin-bottom: 40px; }
.cal-social-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}
.cal-social-comment {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(20,16,26,.04);
}
.cal-social-placeholder {
  background: repeating-linear-gradient(45deg, #faf6f0, #faf6f0 8px, #f3ede4 8px, #f3ede4 16px);
  border-style: dashed;
}
.cal-social-tag {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}
.cal-social-comment p {
  margin: 0;
  color: var(--muted);
  font-style: italic;
  font-size: .9rem;
}
.cal-social-testimonial {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 0 auto;
  max-width: 700px;
}
.cal-social-testimonial p {
  font-family: var(--display);
  font-size: 1.3rem;
  line-height: 1.4;
  margin: 0 0 14px;
  color: var(--heading);
}
.cal-social-testimonial cite {
  font-style: normal;
  font-size: .9rem;
  color: var(--muted);
  letter-spacing: .04em;
}
@media (max-width: 720px) {
  .cal-social-grid { grid-template-columns: 1fr; }
  .cal-social { padding: 60px 0; }
  .cal-social-testimonial p { font-size: 1.1rem; }
}

/* -- Mid-page form section (replaces the hero aside form) -- */
.cal-gate-section {
  padding: 70px 0 90px;
  background: linear-gradient(180deg, var(--bg) 0%, #faf6f0 100%);
  border-top: 1px solid var(--border);
}
.cal-gate-section .cal-gate {
  max-width: 560px;
  margin: 0 auto;
}

/* -- Exit-intent modal (#14) -- */
body.cal-exit-open { overflow: hidden; }
.cal-exit-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
}
.cal-exit-modal[hidden] { display: none; }
.cal-exit-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20,16,26,.72);
  backdrop-filter: blur(4px);
  animation: cal-exit-fade .25s ease;
}
.cal-exit-card {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 40px 36px 32px;
  max-width: 460px;
  width: calc(100% - 32px);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: cal-exit-rise .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes cal-exit-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cal-exit-rise {
  from { opacity: 0; transform: translateY(20px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cal-exit-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cal-exit-close:hover { background: var(--bg); color: var(--heading); }
.cal-exit-card h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.1;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: -.02em;
}
.cal-exit-lede {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0 0 22px;
}
.cal-exit-field { display: block; margin-bottom: 14px; }
.cal-exit-field .cal-label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}
.cal-exit-field input {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  transition: border-color .2s ease;
}
.cal-exit-field input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.cal-exit-error {
  color: #c93434;
  font-size: .88rem;
  margin: 0 0 12px;
}
.cal-exit-submit { width: 100%; justify-content: center; }
.cal-exit-decline {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 8px;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: .88rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cal-exit-decline:hover { color: var(--heading); }

@media (max-width: 480px) {
  .cal-exit-card { padding: 32px 22px 24px; }
}

/* -- Sticky mobile bottom CTA (#15) -- */
.cal-sticky-cta {
  display: none; /* desktop default */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(20,16,26,.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,.12);
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
@media (max-width: 720px) {
  .cal-sticky-cta { display: flex; }
  .cal-sticky-cta[hidden] { display: none; }
  .cal-sticky-cta.is-suppressed { display: none; }
  main { padding-bottom: 80px; } /* keep last content above the bar */
}
.cal-sticky-info {
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  white-space: nowrap;
}
.cal-sticky-btn {
  flex-shrink: 0;
  padding: 10px 14px 10px 18px;
  font-size: .78rem;
  letter-spacing: .08em;
}
.cal-sticky-btn .arrow-circle { width: 26px; height: 26px; }

/* -- FAQ example list (gender-balance pass) -- */
.cal-faq-examples {
  margin: 8px 0 12px;
  padding-left: 22px;
  list-style: none;
}
.cal-faq-examples li {
  position: relative;
  padding: 3px 0;
  color: var(--text);
  line-height: 1.5;
}
.cal-faq-examples li::before {
  content: "·";
  position: absolute;
  left: -14px;
  color: var(--accent);
  font-weight: 700;
}

/* ============================================================
   DARK MODE — nighttime reading
   Activated by `html.cal-dark` (set by inline head script + JS toggle).
   Scoped to the calendar page via body.calendar-body — other pages
   that don't have this class are unaffected even if they ever set
   the html class.
   ============================================================ */

/* The toggle button itself — fixed top-right, below the site header,
   premium glass pill that reads on both light and dark backgrounds. */
.cal-theme-toggle {
  position: fixed;
  top: 22px;
  right: 80px; /* leave room for the hamburger on mobile / nav-cta on desktop */
  z-index: 60;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(20,16,26,.55);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  transition: background .25s var(--ease), transform .2s var(--ease), color .25s var(--ease);
}
.cal-theme-toggle:hover { transform: translateY(-1px) scale(1.05); }
.cal-theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.cal-theme-icon { width: 20px; height: 20px; transition: opacity .25s ease, transform .35s var(--ease); }
.cal-theme-icon-sun { display: none; }
html.cal-dark .cal-theme-toggle {
  background: rgba(245,237,224,.92);
  color: #14101a;
  border-color: rgba(0,0,0,.12);
}
html.cal-dark .cal-theme-icon-moon { display: none; }
html.cal-dark .cal-theme-icon-sun { display: block; }

@media (max-width: 480px) {
  .cal-theme-toggle { width: 40px; height: 40px; top: 18px; right: 70px; }
  .cal-theme-icon { width: 18px; height: 18px; }
}

/* ---- The dark theme itself: override variables + components ---- */
html.cal-dark body.calendar-body {
  --bg: #14101a;
  --bg-alt: #1d1825;
  --paper: #1d1825;
  --paper-soft: #2a2335;
  --paper-line: rgba(255,237,210,.10);
  --text: #e5dccc;
  --heading: #f5ede0;
  --muted: #998c7d;
  --border: rgba(255,237,210,.12);
  --shadow:    0 8px 32px rgba(0,0,0,.4);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  --shadow-xl: 0 40px 100px rgba(0,0,0,.7);
  background: var(--bg);
  color: var(--text);
}

/* Body/global hooks that don't inherit through variables */
html.cal-dark body.calendar-body { color-scheme: dark; }

/* Hero on the calendar — flip from white-gradient to dark gradient */
html.cal-dark .cal-hero {
  background: linear-gradient(180deg, #14101a 0%, #1d1825 100%) !important;
}
html.cal-dark .cal-hero-microcopy { color: var(--muted); }

/* Sticky phasebar — translucent dark glass instead of cream glass */
html.cal-dark .cal-phasebar {
  background: rgba(20,16,26,.85);
  border-bottom-color: var(--border);
}
html.cal-dark .cal-phasebar .container { background: var(--border); }
html.cal-dark .cal-phase { background: var(--bg); color: var(--text); }
html.cal-dark .cal-phase:hover { background: var(--bg-alt); }

/* Value anchor + comparison ledger sections */
html.cal-dark .cal-value,
html.cal-dark .cal-compare {
  background: linear-gradient(180deg, #14101a 0%, #1d1825 100%);
}
html.cal-dark .cal-ledger li { border-bottom-color: rgba(255,237,210,.12); }
html.cal-dark .cal-ledger-dots { border-bottom-color: rgba(255,237,210,.18); }
html.cal-dark .cal-ledger-totals { border-top-color: var(--heading); }
html.cal-dark .cal-ledger-strike,
html.cal-dark .cal-ledger-price { color: var(--muted); }

/* Note section (section-warm) */
html.cal-dark .section-warm { background: var(--bg-alt); color: var(--text); }
html.cal-dark .cal-note-body p,
html.cal-dark .cal-note-body strong { color: var(--text); }
html.cal-dark .cal-note-h3 { color: var(--heading); }

/* Bio card */
html.cal-dark .cal-bio { background: var(--bg); }
html.cal-dark .cal-bio-card {
  background: var(--bg-alt);
  border-color: var(--border);
  box-shadow: 0 6px 24px rgba(0,0,0,.35);
}
html.cal-dark .cal-bio-body p { color: var(--text); }

/* Social proof */
html.cal-dark .cal-social { background: var(--bg); }
html.cal-dark .cal-social-comment {
  background: var(--bg-alt);
  border-color: var(--border);
}
html.cal-dark .cal-social-placeholder {
  background: repeating-linear-gradient(45deg, #1d1825, #1d1825 8px, #261f33 8px, #261f33 16px);
}
html.cal-dark .cal-social-testimonial {
  background: var(--bg-alt);
  border-color: var(--border);
  border-left-color: var(--accent);
}
html.cal-dark .cal-social-testimonial p { color: var(--heading); }

/* Mid-page gate form */
html.cal-dark .cal-gate-section {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
  border-top-color: var(--border);
}
html.cal-dark .cal-gate {
  background: var(--bg-alt);
  border-color: var(--border);
}
html.cal-dark .cal-gate-h,
html.cal-dark .cal-gate-sub,
html.cal-dark .cal-label,
html.cal-dark .cal-check span { color: var(--text); }
html.cal-dark .cal-field input,
html.cal-dark .cal-field input[type="email"],
html.cal-dark .cal-field input[type="text"],
html.cal-dark .cal-field input[type="tel"] {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
html.cal-dark .cal-field input::placeholder { color: var(--muted); }
html.cal-dark .cal-fineprint,
html.cal-dark .cal-medical-note { color: var(--muted); }
html.cal-dark .cal-medical-note strong { color: var(--heading); }

/* Howto + warning */
html.cal-dark .cal-howto { background: var(--bg); }
html.cal-dark .cal-pillar {
  background: var(--bg-alt);
  border-color: var(--border);
}
html.cal-dark .cal-warning {
  background: var(--bg-alt);
  border-color: var(--border);
}
html.cal-dark .cal-warning-crisis {
  background: rgba(220,60,60,.18);
  border-left-color: #ff7878;
}
html.cal-dark .cal-warning-crisis a { color: #ff9b9b; }

/* Day articles */
html.cal-dark .cal-days { background: var(--bg); }
html.cal-dark .cal-day {
  background: var(--bg-alt);
  border-color: var(--border);
  color: var(--text);
}
html.cal-dark .cal-day-head { border-bottom-color: var(--border); }
html.cal-dark .cal-day-label { color: var(--muted); }
html.cal-dark .cal-day-section p { color: var(--text); }
html.cal-dark .cal-meghan {
  background: var(--bg);
  border-left-color: var(--accent);
}
html.cal-dark .cal-meghan p { color: var(--heading); }
html.cal-dark .cal-tool { background: rgba(255,61,110,.06); }
html.cal-dark .cal-prompt {
  background: var(--bg);
  border-color: var(--border);
}
html.cal-dark .cal-prompt p { color: var(--text); }

/* Witching hour timeline */
html.cal-dark .cal-witching .cal-time { color: var(--accent); }
html.cal-dark .cal-timeline li { border-bottom-color: var(--border); }

/* Cage section (out/in columns) */
html.cal-dark .cal-cage { background: var(--bg); }
html.cal-dark .cal-cage-col {
  background: var(--bg-alt);
  border-color: var(--border);
}

/* Pull quotes */
html.cal-dark .cal-pullquote {
  background: var(--bg-alt);
  border-color: var(--border);
}
html.cal-dark .cal-pullquote p { color: var(--heading); }

/* Supplements */
html.cal-dark .cal-supps { background: var(--bg); }
html.cal-dark .cal-supp {
  background: var(--bg-alt);
  border-color: var(--border);
}
html.cal-dark .cal-supp p { color: var(--text); }
html.cal-dark .cal-supp strong { color: var(--heading); }

/* FAQ */
html.cal-dark .cal-faq { background: var(--bg); }
html.cal-dark .cal-faq-item {
  border-color: var(--border);
}
html.cal-dark .cal-faq-item summary { color: var(--heading); }
html.cal-dark .cal-faq-item summary::after {
  border-color: var(--border);
}
html.cal-dark .cal-faq-body p { color: var(--text); }
html.cal-dark .cal-faq-examples li { color: var(--text); }

/* Comparison kicker */
html.cal-dark .cal-compare-kicker { color: var(--text); }

/* Locked overlay (when the gate is still active) */
html.cal-dark .cal-locked-card {
  background: var(--bg-alt);
  border-color: var(--border);
}
html.cal-dark .cal-locked-h { color: var(--heading); }

/* Jump-to-day chip */
html.cal-dark .cal-jump-trigger {
  background: rgba(20,16,26,.92);
  color: var(--text);
  border-color: var(--border);
}
html.cal-dark .cal-jump-panel {
  background: var(--bg-alt);
  border-color: var(--border);
}
html.cal-dark .cal-jump-grid a {
  background: var(--bg);
  color: var(--text);
  border-color: var(--border);
}
html.cal-dark .cal-jump-grid a:hover { background: var(--accent); color: #fff; }
html.cal-dark .cal-jump-prefix { color: var(--muted); }

/* Video stub */
html.cal-dark .cal-video-frame {
  background: linear-gradient(135deg, #1d1825, #14101a);
  border-color: rgba(255,237,210,.18);
}

/* Footer keeps its dark look — no override needed */

/* ---- Dark mode: header + footer overrides ----
   These global components use hardcoded cream/dark colors that don't
   flow through the theme variables. Re-color them explicitly so the
   chrome matches the rest of the dark page. */

/* Header: keep transparent at top of hero, swap to dark glass when scrolled */
html.cal-dark body.calendar-body .site-header.scrolled {
  background: rgba(20, 16, 26, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--border);
}
html.cal-dark body.calendar-body .site-header .brand { color: var(--heading); }
html.cal-dark body.calendar-body .site-header .nav-links a { color: var(--text); }
html.cal-dark body.calendar-body .site-header .nav-links a:hover { color: var(--accent); }
html.cal-dark body.calendar-body .site-header .nav-toggle span { background: var(--heading); }

/* nav-cta pill — light wrap stays, dark inner arrow */
html.cal-dark body.calendar-body .site-header .nav-cta {
  background: #f5ede0;
  color: #14101a !important;
}
html.cal-dark body.calendar-body .site-header .nav-cta .arrow-circle {
  background: #14101a;
  color: #f5ede0;
}

/* Footer: stays permanently dark (it always was). The bg uses var(--heading)
   which we flipped to a light tone for body text — pin it back here so the
   footer doesn't go cream-on-cream. */
html.cal-dark body.calendar-body .site-footer {
  background: #0a0a0a;
  color: rgba(245, 236, 221, 0.72);
}
html.cal-dark body.calendar-body .site-footer h4 { color: #fff; }
html.cal-dark body.calendar-body .site-footer a { color: rgba(245, 236, 221, 0.88); }
html.cal-dark body.calendar-body .site-footer .brand { color: #fff; }
