/* Pre-Rave Damage Control — page styles
   Mobile-first. Calm editorial. Restraint everywhere. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--porcelain);
  color: var(--onyx);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.page { padding-bottom: 96px; }   /* room for sticky duffel */

/* =================================================================
   HERO
   ================================================================= */
.hero {
  background: var(--porcelain);
  padding: 24px 20px 40px;
  position: relative;
}
.hero-inner { max-width: 1100px; margin: 0 auto; }
.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 36px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: var(--onyx);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.brand-dot { color: var(--afterglow); }
.brand-sub {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--onyx-50);
}
.hero-link {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--onyx);
  text-decoration: underline;
  text-decoration-color: var(--jade);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}

.hero-eyebrow { margin-bottom: 18px; }

.hero-h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 11vw, 96px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  text-wrap: balance;
}

.hero-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 4.2vw, 19px);
  line-height: 1.5;
  color: var(--onyx-70);
  max-width: 60ch;
  margin: 0 0 28px;
}
.hero-sub em { font-style: normal; color: var(--onyx); }

/* Countdown */
.cd {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 32px;
  padding: 16px 18px;
  background: var(--sand);
  border-radius: var(--radius-lg);
  width: fit-content;
  max-width: 100%;
}
.cd-cell { display: flex; flex-direction: column; align-items: center; min-width: 52px; }
.cd-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 8vw, 40px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--onyx);
  font-variant-numeric: tabular-nums;
}
.cd-lbl {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--onyx-50);
  margin-top: 6px;
}
.cd-sep {
  font-size: 22px;
  color: var(--afterglow);
  padding: 0 2px 4px;
  align-self: flex-end;
}

/* Console: score + body silhouette */
.console {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  background: linear-gradient(180deg, var(--sand-soft) 0%, var(--sand) 100%);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin-bottom: 28px;
}
@media (min-width: 720px) {
  .console { grid-template-columns: 1.4fr 1fr; padding: 32px 36px; }
}

.console-left .eyebrow { margin-bottom: 8px; }

.score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.score-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(72px, 22vw, 128px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--onyx);
  font-variant-numeric: tabular-nums;
  transition: color 220ms var(--ease-standard);
}
.score-pct {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 8vw, 44px);
  color: var(--onyx-50);
  letter-spacing: -0.02em;
}
.score-meter {
  flex: 1 1 100%;
  height: 6px;
  background: rgba(21, 21, 21, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}
.score-fill {
  height: 100%;
  background: var(--jade);
  transform-origin: left center;
  transition: transform 420ms var(--ease-emphatic);
  border-radius: 999px;
}
.score-status {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--onyx-70);
  margin-bottom: 18px;
  min-height: 22px;
  font-style: normal;
}
.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.sg {
  padding: 12px 14px;
  background: var(--porcelain);
  border-radius: var(--radius-md);
}
.sg-lbl {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--onyx-50);
  margin-bottom: 4px;
}
.sg-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--onyx);
}
.sg-val span {
  color: var(--onyx-30);
  font-weight: 500;
  font-size: 14px;
  margin-left: 2px;
}

.console-right { display: flex; justify-content: center; }
.silhouette-wrap {
  position: relative;
  width: 220px;
  display: flex;
  justify-content: center;
}
.zone-tag {
  position: absolute;
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--onyx-50);
  background: var(--porcelain);
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  white-space: nowrap;
  transition: all 240ms var(--ease-standard);
}
.zone-tag[data-on="true"] {
  color: var(--porcelain);
  background: var(--jade);
}
.zone-head  { top: 14px; right: -28px; }
.zone-torso { top: 50%; right: -22px; transform: translateY(-50%); }
.zone-legs  { bottom: 30px; left: -22px; }
@media (max-width: 540px) {
  .zone-head  { right: 4px; }
  .zone-torso { right: 0px; }
  .zone-legs  { left: 0px; }
}

/* Wave divider */
.wave-divider { width: 100%; max-width: 480px; margin: 0 auto; opacity: 0.7; }
.wave-divider svg { width: 100%; height: 16px; display: block; }

/* =================================================================
   SECTIONS
   ================================================================= */
.sections { padding: 8px 20px 0; }
.sec {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 0 24px;
  border-top: 1px solid var(--border-hairline);
}
.sec:first-child { border-top: none; padding-top: 40px; }

.sec-head {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 28px;
}
@media (min-width: 720px) {
  .sec-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
}

.sec-meta { max-width: 60ch; }
.sec-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 9vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 8px 0 12px;
  color: var(--onyx);
}
.sec-note {
  font-family: var(--font-body);
  font-size: clamp(14px, 4vw, 17px);
  line-height: 1.55;
  color: var(--onyx-70);
  margin: 0;
  text-wrap: pretty;
}

.sec-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}
.sp-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--onyx);
  font-variant-numeric: tabular-nums;
}
.sp-num .sp-of { color: var(--onyx-30); font-weight: 500; }
.sp-bar {
  height: 4px;
  background: rgba(21, 21, 21, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.sp-fill {
  height: 100%;
  background: var(--jade);
  transform-origin: left;
  transition: transform 420ms var(--ease-emphatic);
}
.sp-lbl {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--afterglow);
}

/* Tile grid */
.tiles {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 540px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

.tile {
  display: grid;
  grid-template-columns: 56px 1fr 28px;
  align-items: center;
  gap: 14px;
  padding: 18px 18px;
  background: var(--sand);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  text-align: left;
  font-family: inherit;
  color: inherit;
  cursor: pointer;
  transition: transform 220ms var(--ease-standard),
              box-shadow 220ms var(--ease-standard),
              background 220ms var(--ease-standard),
              border-color 220ms var(--ease-standard);
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  min-height: 92px;
  box-shadow: var(--shadow-card);
}
.tile:hover { box-shadow: var(--shadow-lift); }
.tile:active { transform: scale(0.985) !important; }
.tile.packed {
  background: var(--jade-soft);
  border-color: rgba(24, 164, 154, 0.3);
}
.tile.packed .tile-glyph { color: var(--jade-deep); }
.tile.packed .tile-label { color: var(--onyx); }
.tile.packed .tile-hint  { color: var(--onyx-50); }

.tile-glyph {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--porcelain);
  border-radius: var(--radius-md);
  color: var(--onyx);
  transition: background 220ms var(--ease-standard), color 220ms var(--ease-standard);
}
.tile.packed .tile-glyph { background: var(--porcelain); }

.tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--onyx);
}
.tile-hint {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.4;
  color: var(--onyx-70);
  text-wrap: pretty;
}

.tile-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--onyx-30);
  display: flex; align-items: center; justify-content: center;
  background: transparent;
  transition: background 200ms var(--ease-standard), border-color 200ms var(--ease-standard);
}
.tile.packed .tile-check {
  background: var(--jade);
  border-color: var(--jade);
}

/* =================================================================
   THE REAL CHECKLIST — onyx band
   ================================================================= */
.real {
  margin: 80px -20px 0;
  background: var(--onyx);
  color: var(--porcelain);
  padding: 80px 20px;
}
.real-inner { max-width: 880px; margin: 0 auto; }
.real-eb { color: var(--afterglow); margin-bottom: 18px; }
.real-line {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(28px, 6.5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--porcelain);
  margin: 0 0 24px;
  text-wrap: balance;
}
.real-line .hl { color: var(--jade); }
.real-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 4vw, 18px);
  line-height: 1.55;
  color: rgba(246, 244, 241, 0.7);
  margin: 0;
  max-width: 60ch;
}

/* =================================================================
   CTA
   ================================================================= */
.cta {
  padding: 72px 20px 56px;
  background: var(--porcelain);
}
.cta-inner { max-width: 880px; margin: 0 auto; }
.cta-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 6.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 12px 0 12px;
  color: var(--onyx);
  text-wrap: balance;
}
.cta-h em { font-style: normal; color: var(--jade); }
.cta-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 4vw, 18px);
  color: var(--onyx-70);
  margin: 0 0 28px;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }

.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.005em;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms var(--ease-standard), transform 80ms var(--ease-standard);
}
.btn-primary {
  background: var(--jade);
  color: var(--porcelain);
}
.btn-primary:hover { background: var(--jade-deep); }
.btn-primary:active { transform: scale(0.985); }
.btn-link {
  background: transparent;
  color: var(--onyx);
  text-decoration: underline;
  text-decoration-color: var(--jade);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  padding: 16px 6px;
}
.cta-support {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--onyx-30);
  text-align: center;
  margin-top: 12px;
  line-height: 1.5;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.cta-support em { font-style: italic; }
.cta-foot {
  display: flex; justify-content: space-between;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-hairline);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--onyx-50);
  flex-wrap: wrap;
  gap: 8px;
}

/* =================================================================
   STICKY DUFFEL CHIP
   ================================================================= */
.duffel-dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
}
.duffel-chip {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 18px 10px 10px;
  background: var(--porcelain);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-lift);
  border-radius: 999px;
  pointer-events: auto;
  backdrop-filter: blur(12px) saturate(1.05);
  background: rgba(246, 244, 241, 0.92);
}
.duffel-svg { width: 64px; height: 26px; display: flex; align-items: center; }
.duffel-svg svg { width: 100%; height: auto; display: block; }
.duffel-meta { display: flex; flex-direction: column; line-height: 1; }
.duffel-count {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--onyx);
  font-variant-numeric: tabular-nums;
}
.duffel-count i {
  font-style: normal;
  color: var(--onyx-30);
  font-weight: 500;
}
.duffel-lbl {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--afterglow);
  margin-top: 4px;
}

/* =================================================================
   FLYING ITEMS (the surprise moment)
   ================================================================= */
.flights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
}
.flight {
  position: fixed;
  transform: translate(-50%, -50%);
  animation: flyToDuffel 800ms cubic-bezier(0.32, 0.72, 0.24, 1) forwards;
  filter: drop-shadow(0 4px 6px rgba(21, 21, 21, 0.18));
}
@keyframes flyToDuffel {
  0%   { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
  60%  { transform: translate(calc(-50% + (var(--tx) * 0.6)), calc(-50% + (var(--ty) * 0.6) - 40px)) scale(0.9) rotate(-12deg); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(0.4) rotate(-24deg); opacity: 0; }
}

/* small touch — section progress on mobile sits horizontal */
@media (max-width: 720px) {
  .sec-progress {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
  }
  .sp-num { font-size: 22px; }
  .sp-bar { height: 4px; }
  .sp-lbl { text-align: right; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =================================================================
   TABS SHELL
   ================================================================= */
.shell { min-height: 100vh; }
.tabs-shell {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 244, 241, 0.92);
  backdrop-filter: blur(12px) saturate(1.05);
  border-bottom: 1px solid var(--border-hairline);
}
.tabs-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
}
.tabs-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--onyx);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tabs-brand .brand-sub {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--onyx-50);
  font-weight: 500;
}
.tabs {
  display: flex;
  gap: 6px;
  justify-self: center;
  background: var(--sand-soft);
  border-radius: 999px;
  padding: 4px;
}
.tab {
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 10px 18px;
  cursor: pointer;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  color: var(--onyx-50);
  transition: background 200ms var(--ease-standard), color 200ms var(--ease-standard);
}
.tab:hover { color: var(--onyx); }
.tab.on {
  background: var(--onyx);
  color: var(--porcelain);
}
.tab { white-space: nowrap; }
.tab-num {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.16em;
  opacity: 0.7;
}
.tab-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}
.tab-sub { display: none; }
@media (min-width: 720px) {
  .tab-sub {
    display: inline;
    font-size: 11px;
    letter-spacing: 0.04em;
    opacity: 0.65;
  }
}
.tabs-cta {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--onyx);
  text-decoration: underline;
  text-decoration-color: var(--jade);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
}
@media (max-width: 540px) {
  .tabs-inner { grid-template-columns: 1fr; gap: 8px; padding: 8px 16px; }
  .tabs-brand, .tabs-cta { display: none; }
}

.score-pin {
  position: fixed;
  top: 70px;
  right: 16px;
  z-index: 55;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px 8px 8px;
  background: rgba(246, 244, 241, 0.94);
  backdrop-filter: blur(12px) saturate(1.05);
  border: 1px solid var(--border-hairline);
  box-shadow: var(--shadow-card);
  border-radius: 999px;
  pointer-events: none;
  transition: box-shadow 220ms var(--ease-standard), transform 220ms var(--ease-emphatic);
}
.score-pin.bumped {
  box-shadow: var(--shadow-lift);
  transform: scale(1.04);
}
.score-pin.complete {
  border-color: #18A49A;
  background: rgba(24,164,154,0.08);
}
.score-pin-ring {
  position: relative;
  width: 48px; height: 48px;
  flex: none;
}
.score-pin-ring svg { width: 100%; height: 100%; display: block; }
.score-pin-ring .pin-num {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.02em;
  color: var(--onyx);
  font-variant-numeric: tabular-nums;
  gap: 0;
}
.score-pin-ring .pin-pct {
  font-size: 9px;
  font-weight: 600;
  opacity: 0.6;
  margin-top: 2px;
}
.score-pin-meta {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 5px;
}
.score-pin-lbl {
  font-family: var(--font-body);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--afterglow);
  font-weight: 600;
}
.score-pin-count {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.03em;
  color: var(--onyx);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.score-pin-count .pin-total {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.35;
}

/* =================================================================
   CELEBRATION BANNER
   ================================================================= */
.celeb-banner {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.85);
  z-index: 210;
  background: var(--onyx);
  color: var(--porcelain);
  padding: 20px 36px;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
  pointer-events: none;
  opacity: 0;
  transition: opacity 380ms ease, transform 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
  max-width: 88vw;
  text-align: center;
}
.celeb-banner.in {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.celeb-banner.out {
  opacity: 0;
  transform: translate(-50%, -60%) scale(0.9);
}
.celeb-msg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 5vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

@media (max-width: 540px) {
  .score-pin { top: 62px; right: 10px; padding: 6px 12px 6px 6px; }
  .score-pin-ring { width: 40px; height: 40px; }
  .score-pin-ring .pin-num { font-size: 12px; }
  .score-pin-count { font-size: 17px; }
}
.hero-after .hero-h1 { color: var(--onyx); }

.curve-card {
  background: linear-gradient(180deg, var(--sand-soft) 0%, var(--sand) 100%);
  border-radius: var(--radius-xl);
  padding: 24px;
  margin: 28px 0;
}
@media (min-width: 720px) { .curve-card { padding: 32px 36px; } }

.curve-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-bottom: 18px;
}
@media (min-width: 720px) { .curve-meta { grid-template-columns: 1fr auto; align-items: end; } }

.curve-left .eyebrow { margin-bottom: 8px; }
.curve-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-variant-numeric: tabular-nums;
  margin-bottom: 6px;
}
.curve-score .score-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(56px, 16vw, 96px);
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: var(--onyx);
}
.curve-score .score-pct {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(22px, 6vw, 36px);
  color: var(--onyx-50);
  letter-spacing: -0.02em;
}
.curve-status {
  font-style: normal;
  color: var(--onyx-70);
  font-size: 14px;
  max-width: 38ch;
}
.curve-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.cp {
  padding: 10px 12px;
  background: var(--porcelain);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: border-color 200ms var(--ease-standard), background 200ms var(--ease-standard);
}
.cp.on { border-color: var(--jade); }
.cp.done { background: var(--jade); }
.cp.done .cp-lbl, .cp.done .cp-val, .cp.done .cp-val span { color: var(--porcelain); }
.cp-lbl {
  font-family: var(--font-body);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--onyx-50);
  margin-bottom: 4px;
}
.cp-val {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--onyx);
  font-variant-numeric: tabular-nums;
}
.cp-val span { color: var(--onyx-30); font-weight: 500; font-size: 12px; }

.recovery-curve {
  width: 100%;
  height: auto;
  display: block;
}

/* =================================================================
   AFTER — Why the crash hits
   ================================================================= */
.crash {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 0 24px;
}
.crash-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 9vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 8px 0 16px;
  color: var(--onyx);
}
.crash-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 4vw, 18px);
  color: var(--onyx-70);
  max-width: 64ch;
  margin: 0 0 24px;
  line-height: 1.55;
}
.crash-stack {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}
@media (min-width: 720px) { .crash-stack { grid-template-columns: repeat(4, 1fr); } }
.crash-stack li {
  background: var(--sand-soft);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--onyx);
  letter-spacing: 0.02em;
}

/* =================================================================
   AFTER — phase rail
   ================================================================= */
.rail-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0 16px;
}
.rail-eb { margin-bottom: 16px; }
.rail {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
@media (min-width: 720px) { .rail { grid-template-columns: repeat(4, 1fr); gap: 12px; } }

.rail-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--sand);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 200ms var(--ease-standard), border-color 200ms var(--ease-standard), transform 80ms;
  color: inherit;
}
.rail-btn:hover { background: var(--sand-deep); }
.rail-btn:active { transform: scale(0.99); }
.rail-item.on .rail-btn { border-color: var(--jade); background: var(--jade-soft); }
.rail-item.done .rail-btn { background: var(--jade); }
.rail-item.done .rail-window,
.rail-item.done .rail-title,
.rail-item.done .rail-count { color: var(--porcelain); }
.rail-item.done .rail-count { opacity: 0.7; }

.rail-dot {
  position: relative;
  width: 36px; height: 36px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
}
.rail-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--onyx);
}
.rail-item.done .rail-num { color: var(--porcelain); }
.rail-ring {
  position: absolute; inset: 0;
}
.rail-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.rail-window {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--onyx-50);
}
.rail-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--onyx);
}
.rail-count {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--onyx-50);
  font-variant-numeric: tabular-nums;
}

/* =================================================================
   AFTER — phase panel (reuses .sec/.tiles styling, lightly)
   ================================================================= */
.phase {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 0 24px;
  border-top: 1px solid var(--border-hairline);
}
.phase-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}
@media (min-width: 720px) {
  .phase-head { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 32px; }
}
.phase-meta { max-width: 60ch; }
.phase-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 8vw, 56px);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 6px 0 10px;
  color: var(--onyx);
}
.phase-mindset {
  font-family: var(--font-body);
  font-size: clamp(14px, 4vw, 17px);
  line-height: 1.55;
  color: var(--onyx-70);
  margin: 0;
}
.phase-mindset em {
  font-style: normal;
  color: var(--onyx);
  font-weight: 500;
}
.phase-progress {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
}
@media (max-width: 720px) {
  .phase-progress {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
  }
}

/* =================================================================
   HELPS / HURTS
   ================================================================= */
.hh-section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px 0 32px;
}
.hh-head-block { margin-bottom: 28px; }
.hh-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 7vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 8px 0 8px;
  color: var(--onyx);
}
.hh-sub { color: var(--onyx-50); margin: 0; font-size: 14px; }

.hh {
  background: var(--sand-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-hairline);
}
.hh-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding: 18px 20px;
  border-top: 1px solid var(--border-hairline);
}
.hh-row:first-child { border-top: none; }
.hh-row.hh-head { background: var(--sand); padding: 12px 20px; }
@media (min-width: 720px) {
  .hh-row { grid-template-columns: 140px 1fr 1fr; gap: 18px; align-items: start; }
}
.hh-lbl {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--onyx);
  letter-spacing: -0.01em;
  align-self: center;
}
.hh-tag {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 999px;
}
.hh-tag-help { background: var(--jade-soft); color: var(--jade-deep); }
.hh-tag-hurt { background: var(--afterglow-soft); color: var(--afterglow); }

.hh-list { list-style: none; margin: 0; padding: 0; }
.hh-list li {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--onyx);
  padding: 4px 0 4px 20px;
  position: relative;
  line-height: 1.45;
}
.hh-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 12px; height: 1.5px;
  border-radius: 1px;
}
.hh-list-helps li::before { background: var(--jade); }
.hh-list-hurts li::before { background: var(--afterglow); }

/* =================================================================
   RED FLAGS — within the onyx band
   ================================================================= */
.real-flags { padding-top: 64px; padding-bottom: 64px; }
.flags {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 36px;
}
@media (min-width: 720px) { .flags { grid-template-columns: 1fr 1fr; gap: 36px; } }
.flags-col ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
}
.flags-eb { color: var(--afterglow); margin-bottom: 4px; }
.flags-emergency .flags-eb { color: #E87A6E; }   /* a single warm warning hue, used only here */
.flags-col li {
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(246, 244, 241, 0.85);
  padding: 8px 0 8px 18px;
  border-top: 1px solid rgba(246, 244, 241, 0.08);
  position: relative;
  line-height: 1.45;
}
.flags-col li:first-child { border-top: 1px solid rgba(246, 244, 241, 0.18); }
.flags-col li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 16px;
  width: 8px; height: 1.5px;
  background: rgba(246, 244, 241, 0.5);
}
.flags-emergency li::before { background: #E87A6E; }

/* =================================================================
   MONDAY CHEAT SHEET
   ================================================================= */
.monday {
  background: var(--sand);
  border-radius: var(--radius-xl);
  padding: 28px 24px;
}
@media (min-width: 720px) { .monday { padding: 36px 40px; } }
.monday-head { margin-bottom: 24px; }
.monday-h {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 6vw, 36px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 6px 0 0;
  color: var(--onyx);
}
.monday-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 720px) { .monday-cols { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.mblock {
  background: var(--porcelain);
  border-radius: var(--radius-lg);
  padding: 18px 18px 14px;
}
.mblock-time {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--afterglow);
  font-weight: 500;
  margin-bottom: 10px;
}
.mblock ul { list-style: none; margin: 0; padding: 0; }
.mblock li {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--onyx);
  padding: 8px 0 8px 22px;
  border-top: 1px solid var(--border-hairline);
  line-height: 1.45;
  position: relative;
}
.mblock li:first-child { border-top: none; }
.mblock li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 12px; height: 1.5px;
  background: var(--jade);
}

/* =================================================================
   TWEAKS — compact tiles + dark mode overrides
   ================================================================= */
.compact-tiles .tile { padding: 12px 14px; min-height: 64px; }
.compact-tiles .tile-glyph { width: 28px; height: 28px; }
.compact-tiles .tile-label { font-size: 13px; }

html.dark-mode { --porcelain: #151515; --onyx: #F6F4F1; --onyx-70: rgba(246,244,241,0.7); --onyx-30: rgba(246,244,241,0.3); --border-hairline: rgba(246,244,241,0.1); --shadow-card: 0 2px 12px rgba(0,0,0,0.4); }
html.dark-mode body { background: #151515; color: #F6F4F1; }
html.dark-mode .tabs-shell { background: rgba(21,21,21,0.95); border-color: rgba(246,244,241,0.08); }
html.dark-mode .tab { color: rgba(246,244,241,0.5); }
html.dark-mode .tab.on { background: #F6F4F1; color: #151515; }
html.dark-mode .tile { background: #1e1e1e; border-color: rgba(246,244,241,0.08); }
html.dark-mode .score-pin { background: rgba(21,21,21,0.94); }

/* =================================================================
   CHECK MY SCORE BUTTON — sits inside the console under the status
   ================================================================= */
.check-score-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 14px 0 18px 0;
  padding: 13px 22px;
  background: var(--jade);
  color: #F6F4F1;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(21,21,21,0.10), 0 6px 16px rgba(24,164,154,0.18);
  transition: transform 140ms ease, box-shadow 200ms ease, background 200ms ease;
  white-space: nowrap;
  max-width: 100%;
}
.check-score-btn:hover { background: #128A82; transform: translateY(-1px); }
.check-score-btn:active { transform: translateY(0); box-shadow: 0 1px 0 rgba(21,21,21,0.10), 0 3px 8px rgba(24,164,154,0.18); }
.check-score-btn:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }

@media (max-width: 480px) {
  .check-score-btn {
    width: 100%;
    font-size: 14px;
    padding: 12px 16px;
  }
}

/* =================================================================
   SCORE RESULT MODAL — opens on "Check My ___ Score" click
   ================================================================= */
.score-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(21, 21, 21, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: smb-fade 200ms ease-out;
}
@keyframes smb-fade { from { opacity: 0; } to { opacity: 1; } }

.score-modal {
  position: relative;
  background: #F6F4F1;
  color: #151515;
  border-radius: 18px;
  width: 100%;
  max-width: 480px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 32px 28px 28px;
  box-shadow: 0 30px 80px rgba(21,21,21,0.45), 0 6px 18px rgba(21,21,21,0.18);
  animation: smb-rise 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes smb-rise {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.score-modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #151515;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease;
}
.score-modal-x:hover { background: rgba(21,21,21,0.08); }
.score-modal-x:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }

.score-modal-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: #6C4B63;
  margin-bottom: 8px;
}

.score-modal-score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}
.score-modal-num {
  font-family: 'GeneralSans-Bold', 'DM Sans', sans-serif;
  font-size: 64px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -1.5px;
  color: #151515;
  font-variant-numeric: tabular-nums;
}
.score-modal-pct {
  font-size: 22px;
  font-weight: 600;
  color: #6C4B63;
}

.score-modal-meter {
  width: 100%;
  height: 6px;
  background: rgba(21,21,21,0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 18px;
}
.score-modal-meter-fill {
  height: 100%;
  background: var(--jade);
  transform-origin: left center;
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.score-modal-title {
  font-family: 'GeneralSans-Bold', 'DM Sans', sans-serif;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.4px;
  color: #151515;
  margin: 0 0 10px 0;
}

.score-modal-desc {
  font-size: 15px;
  line-height: 1.55;
  color: rgba(21,21,21,0.78);
  margin: 0 0 18px 0;
}

.score-modal-supporting {
  font-size: 13px;
  line-height: 1.5;
  color: #6C4B63;
  margin: 0 0 18px 0;
  padding: 12px 14px;
  background: rgba(108,75,99,0.08);
  border-left: 2px solid #6C4B63;
  border-radius: 4px;
}

.score-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 4px;
}

.score-modal-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--jade);
  color: #F6F4F1;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms ease, transform 140ms ease;
  box-shadow: 0 2px 0 rgba(21,21,21,0.10), 0 8px 22px rgba(24,164,154,0.25);
}
.score-modal-cta:hover { background: #128A82; transform: translateY(-1px); }
.score-modal-cta:focus-visible { outline: 2px solid #F6F4F1; outline-offset: -4px; }

.score-modal-close-secondary {
  background: transparent;
  border: none;
  color: rgba(21,21,21,0.6);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: color 160ms ease, background 160ms ease;
}
.score-modal-close-secondary:hover { color: #151515; background: rgba(21,21,21,0.04); }
.score-modal-close-secondary:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }

@media (max-width: 480px) {
  .score-modal { padding: 28px 20px 22px; border-radius: 16px; }
  .score-modal-num { font-size: 52px; }
  .score-modal-title { font-size: 22px; }
  .score-modal-cta { font-size: 15px; padding: 13px 18px; }
}

/* dark mode */
html.dark-mode .score-modal { background: #1e1e1e; color: #F6F4F1; }
html.dark-mode .score-modal-num,
html.dark-mode .score-modal-title { color: #F6F4F1; }
html.dark-mode .score-modal-desc { color: rgba(246,244,241,0.78); }
html.dark-mode .score-modal-x { color: #F6F4F1; }
html.dark-mode .score-modal-x:hover { background: rgba(246,244,241,0.08); }
html.dark-mode .score-modal-meter { background: rgba(246,244,241,0.10); }
html.dark-mode .score-modal-supporting { background: rgba(108,75,99,0.18); color: #F6F4F1; }
html.dark-mode .score-modal-close-secondary { color: rgba(246,244,241,0.6); }
html.dark-mode .score-modal-close-secondary:hover { color: #F6F4F1; background: rgba(246,244,241,0.05); }

/* =================================================================
   RAVE READY CHECKUP — welcome / quiz / result
   ================================================================= */

.shell-checkup { min-height: 100vh; background: var(--porcelain, #F6F4F1); }
.view-stage { animation: stage-fade 280ms ease-out; }
@keyframes stage-fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ---------- WELCOME ---------- */
.welcome {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 60px;
  background: var(--porcelain, #F6F4F1);
}
.welcome-inner {
  width: 100%;
  max-width: 560px;
  text-align: center;
}
.welcome-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: #6C4B63;
  margin-bottom: 24px;
}
.welcome-brand-dot {
  width: 8px; height: 8px;
  background: var(--jade, #18A49A);
  border-radius: 999px;
  display: inline-block;
}
.welcome-illustration {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 8px auto 18px;
  min-height: 220px;
}
.welcome-img {
  display: block;
  width: 280px;
  max-width: 80vw;
  height: auto;
  pointer-events: none;
  user-select: none;
}
.welcome-h1 {
  font-family: 'GeneralSans-Bold', 'DM Sans', sans-serif;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: #151515;
  margin: 0 0 14px;
}
.welcome-h1 em {
  font-style: normal;
  color: var(--jade, #18A49A);
}
.welcome-sub {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(21,21,21,0.72);
  max-width: 440px;
  margin: 0 auto 26px;
}
.welcome-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--jade, #18A49A);
  color: #F6F4F1;
  border: none;
  border-radius: 999px;
  padding: 16px 28px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(21,21,21,0.10), 0 10px 28px rgba(24,164,154,0.28);
  transition: background 200ms ease, transform 140ms ease, box-shadow 200ms ease;
}
.welcome-cta:hover { background: #128A82; transform: translateY(-1px); }
.welcome-cta:active { transform: translateY(0); }
.welcome-cta:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }

.welcome-meta {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.welcome-festival {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: #6C4B63;
}

@media (max-width: 480px) {
  .welcome-h1 { font-size: 34px; letter-spacing: -0.8px; }
  .welcome-sub { font-size: 15px; }
  .welcome-cta { width: 100%; }
  .welcome-img { width: 220px; }
}

/* ---------- QUIZ ---------- */
.quiz-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 20px 32px;
  background: var(--porcelain, #F6F4F1);
}
.quiz-shell {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.quiz-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.quiz-cancel {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(21,21,21,0.06);
  border: none;
  border-radius: 999px;
  color: #151515;
  cursor: pointer;
  transition: background 160ms ease;
  flex-shrink: 0;
}
.quiz-cancel:hover { background: rgba(21,21,21,0.12); }
.quiz-progress { flex: 1; }
.quiz-progress-meta {
  display: flex;
  align-items: baseline;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(21,21,21,0.65);
  margin-bottom: 6px;
}
.quiz-progress-num { color: #151515; font-size: 16px; }
.quiz-progress-of { font-size: 12px; }
.quiz-progress-bar {
  height: 4px;
  background: rgba(21,21,21,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--jade, #18A49A);
  transform-origin: left center;
  transition: transform 360ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quiz-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 1px 0 rgba(21,21,21,0.04), 0 12px 32px rgba(21,21,21,0.06);
  flex: 1;
  display: flex;
  flex-direction: column;
  animation: quiz-slide 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes quiz-slide {
  from { opacity: 0; transform: translateX(16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.quiz-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px; height: 72px;
  background: rgba(24,164,154,0.10);
  color: var(--jade, #18A49A);
  border-radius: 18px;
  margin-bottom: 18px;
}
.quiz-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 1.6px;
  font-weight: 600;
  color: #6C4B63;
  margin-bottom: 10px;
}
.quiz-question {
  font-family: 'GeneralSans-Bold', 'DM Sans', sans-serif;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: #151515;
  margin: 0 0 26px;
}

.quiz-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}
.quiz-opt {
  padding: 18px 14px;
  background: #F6F4F1;
  border: 2px solid rgba(21,21,21,0.10);
  border-radius: 14px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 600;
  color: #151515;
  cursor: pointer;
  transition: all 180ms ease;
}
.quiz-opt:hover { border-color: rgba(21,21,21,0.25); background: #EFEDE7; }
.quiz-opt.on {
  background: var(--jade, #18A49A);
  border-color: var(--jade, #18A49A);
  color: #F6F4F1;
  transform: scale(1.02);
}
.quiz-opt:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }

.quiz-why {
  background: rgba(108,75,99,0.08);
  border-left: 3px solid #6C4B63;
  border-radius: 6px;
  padding: 14px 16px;
  margin-top: 8px;
  animation: quiz-why-in 240ms ease-out;
}
@keyframes quiz-why-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.quiz-why-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: #6C4B63;
  margin-bottom: 6px;
}
.quiz-why-text {
  font-size: 14px;
  line-height: 1.5;
  color: rgba(21,21,21,0.82);
  margin: 0;
}

.quiz-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
}
.quiz-foot-btn {
  background: transparent;
  border: none;
  color: rgba(21,21,21,0.55);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}
.quiz-foot-btn:hover:not(:disabled) { color: #151515; background: rgba(21,21,21,0.04); }
.quiz-foot-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.quiz-foot-btn:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }

@media (max-width: 480px) {
  .quiz-card { padding: 26px 22px; }
  .quiz-question { font-size: 22px; }
  .quiz-opt { font-size: 16px; padding: 16px 12px; }
}

/* ---------- RESULT ---------- */
.result-screen {
  min-height: 100vh;
  padding: 32px 20px 60px;
  background: var(--porcelain, #F6F4F1);
}
.result-inner {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
}
.result-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #6C4B63;
  text-align: center;
  margin-bottom: 18px;
}
.result-score {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 14px;
}
.result-num {
  font-family: 'GeneralSans-Bold', 'DM Sans', sans-serif;
  font-size: 96px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -3px;
  color: #151515;
  font-variant-numeric: tabular-nums;
}
.result-pct {
  font-size: 32px;
  font-weight: 600;
  color: #6C4B63;
}
.result-meter {
  width: 100%;
  max-width: 320px;
  margin: 0 auto 22px;
  height: 6px;
  background: rgba(21,21,21,0.10);
  border-radius: 999px;
  overflow: hidden;
}
.result-meter-fill {
  height: 100%;
  background: var(--jade, #18A49A);
  transform-origin: left center;
  transition: transform 1400ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.result-band-title {
  font-family: 'GeneralSans-Bold', 'DM Sans', sans-serif;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.6px;
  color: #151515;
  text-align: center;
  margin: 0 0 10px;
}
.result-band-desc {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(21,21,21,0.78);
  text-align: center;
  max-width: 480px;
  margin: 0 auto 28px;
}

.result-breakdown {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
}
.result-col {
  background: #FFFFFF;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 1px 0 rgba(21,21,21,0.04), 0 6px 18px rgba(21,21,21,0.04);
}
.result-col-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  margin-bottom: 10px;
}
.result-col-good .result-col-eyebrow { color: var(--jade, #18A49A); }
.result-col-gap .result-col-eyebrow { color: #E85D4A; }
.result-col ul { list-style: none; margin: 0; padding: 0; }
.result-col li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #151515;
  padding: 6px 0;
  border-top: 1px solid rgba(21,21,21,0.06);
}
.result-col li:first-child { border-top: none; }
.result-col-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  flex-shrink: 0;
}
.result-col-good .result-col-glyph { color: var(--jade, #18A49A); }
.result-col-gap .result-col-glyph { color: #E85D4A; }

@media (max-width: 480px) {
  .result-breakdown { grid-template-columns: 1fr; }
}

.result-cta {
  background: #151515;
  color: #F6F4F1;
  border-radius: 18px;
  padding: 28px 24px;
  margin-bottom: 24px;
  text-align: center;
}
.result-cta-headline {
  font-family: 'GeneralSans-Bold', 'DM Sans', sans-serif;
  font-size: 22px;
  line-height: 1.3;
  letter-spacing: -0.3px;
  color: #F6F4F1;
  margin: 0 0 12px;
}
.result-cta-sub {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(246,244,241,0.72);
  margin: 0 0 20px;
}
.result-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 360px;
  background: var(--jade, #18A49A);
  color: #F6F4F1;
  border: none;
  border-radius: 999px;
  padding: 16px 24px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 200ms ease, transform 140ms ease;
  box-shadow: 0 2px 0 rgba(0,0,0,0.20), 0 10px 28px rgba(24,164,154,0.30);
}
.result-cta-btn:hover { background: #128A82; transform: translateY(-1px); }
.result-cta-btn:focus-visible { outline: 2px solid #F6F4F1; outline-offset: 3px; }
.result-cta-support {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(246,244,241,0.55);
  margin: 14px 0 0;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 24px;
}
.result-secondary {
  background: transparent;
  border: 1px solid rgba(21,21,21,0.15);
  color: #151515;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}
.result-secondary:hover { background: rgba(21,21,21,0.04); border-color: rgba(21,21,21,0.3); }
.result-secondary:focus-visible { outline: 2px solid var(--jade); outline-offset: 2px; }

/* full plan expandable */
.full-plan {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 28px 24px;
  margin-top: 12px;
  box-shadow: 0 1px 0 rgba(21,21,21,0.04), 0 12px 32px rgba(21,21,21,0.06);
  animation: full-plan-in 320ms ease-out;
}
@keyframes full-plan-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.full-plan-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #6C4B63;
  margin-bottom: 10px;
}
.full-plan-intro {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(21,21,21,0.7);
  margin: 0 0 22px;
}
.fp-section { margin-bottom: 26px; }
.fp-section:last-child { margin-bottom: 0; }
.fp-section-head { margin-bottom: 14px; }
.fp-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 1.6px;
  font-weight: 700;
  color: var(--jade, #18A49A);
  margin-bottom: 6px;
}
.fp-title {
  font-family: 'GeneralSans-Bold', 'DM Sans', sans-serif;
  font-size: 22px;
  letter-spacing: -0.3px;
  color: #151515;
  margin: 0 0 4px;
}
.fp-note {
  font-size: 13px;
  line-height: 1.55;
  color: rgba(21,21,21,0.65);
  margin: 0;
}
.fp-list { list-style: none; margin: 0; padding: 0; }
.fp-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid rgba(21,21,21,0.06);
}
.fp-item:first-child { border-top: none; }
.fp-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--jade, #18A49A);
  margin-top: 2px;
}
.fp-text { flex: 1; }
.fp-label {
  font-size: 14px;
  font-weight: 600;
  color: #151515;
  margin-bottom: 2px;
}
.fp-hint {
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(21,21,21,0.62);
}

@media (max-width: 480px) {
  .result-num { font-size: 76px; letter-spacing: -2px; }
  .result-pct { font-size: 26px; }
  .result-band-title { font-size: 26px; }
  .result-cta-headline { font-size: 19px; }
  .result-cta { padding: 24px 18px; }
  .full-plan { padding: 22px 18px; }
}

/* dark mode */
html.dark-mode .shell-checkup,
html.dark-mode .welcome,
html.dark-mode .quiz-screen,
html.dark-mode .result-screen { background: #151515; }
html.dark-mode .welcome-h1,
html.dark-mode .quiz-question,
html.dark-mode .result-num,
html.dark-mode .result-band-title,
html.dark-mode .fp-title,
html.dark-mode .fp-label { color: #F6F4F1; }
html.dark-mode .welcome-sub,
html.dark-mode .result-band-desc { color: rgba(246,244,241,0.78); }
html.dark-mode .quiz-card,
html.dark-mode .result-col,
html.dark-mode .full-plan { background: #1e1e1e; }
html.dark-mode .quiz-opt { background: #2a2a2a; color: #F6F4F1; border-color: rgba(246,244,241,0.10); }
html.dark-mode .quiz-opt:hover { background: #333; }
html.dark-mode .result-secondary { color: #F6F4F1; border-color: rgba(246,244,241,0.20); }
html.dark-mode .result-secondary:hover { background: rgba(246,244,241,0.06); }

/* quiz Next button — sits inside the card under the why-it-matters blurb */
.quiz-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 22px;
  padding: 15px 22px;
  background: var(--jade, #18A49A);
  color: #F6F4F1;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(21,21,21,0.10), 0 8px 22px rgba(24,164,154,0.22);
  transition: background 200ms ease, transform 140ms ease, opacity 200ms ease;
}
.quiz-next:hover:not(:disabled) { background: #128A82; transform: translateY(-1px); }
.quiz-next:active:not(:disabled) { transform: translateY(0); }
.quiz-next:focus-visible { outline: 2px solid var(--jade); outline-offset: 3px; }
.quiz-next:disabled {
  background: rgba(21,21,21,0.10);
  color: rgba(21,21,21,0.4);
  box-shadow: none;
  cursor: not-allowed;
}
html.dark-mode .quiz-next:disabled { background: rgba(246,244,241,0.10); color: rgba(246,244,241,0.4); }

/* =================================================================
   PATH CARDS — two-path chooser on the welcome screen
   ================================================================= */
.path-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: 100%;
  max-width: 560px;
  margin: 8px auto 26px;
}
.path-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  background: #FFFFFF;
  border: 2px solid rgba(21,21,21,0.08);
  border-radius: 18px;
  padding: 22px 22px 20px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 200ms ease, transform 160ms ease, box-shadow 200ms ease, background 200ms ease;
  box-shadow: 0 1px 0 rgba(21,21,21,0.04), 0 8px 22px rgba(21,21,21,0.04);
  min-height: 200px;
  position: relative;
  overflow: hidden;
}
.path-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--jade, #18A49A);
  border-radius: 18px 0 0 18px;
}
.path-card-recovery::before { background: #6C4B63; }

.path-card:hover {
  transform: translateY(-3px);
  border-color: var(--jade, #18A49A);
  box-shadow: 0 2px 0 rgba(21,21,21,0.05), 0 14px 32px rgba(21,21,21,0.08);
}
.path-card-recovery:hover { border-color: #6C4B63; }
.path-card:focus-visible { outline: 3px solid var(--jade, #18A49A); outline-offset: 3px; }
.path-card-recovery:focus-visible { outline-color: #6C4B63; }

.path-card-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--jade, #18A49A);
  margin-bottom: 14px;
}
.path-card-recovery .path-card-eyebrow { color: #6C4B63; }

.path-card-label {
  font-family: 'GeneralSans-Bold', 'DM Sans', sans-serif;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.4px;
  color: #151515;
  margin: 0 0 10px;
  font-weight: 700;
}

.path-card-sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(21,21,21,0.65);
  margin: 0 0 22px;
  flex: 1;
}

.path-card-cta {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--jade, #18A49A);
  letter-spacing: 0.2px;
}
.path-card-recovery .path-card-cta { color: #6C4B63; }

@media (max-width: 600px) {
  .path-cards { grid-template-columns: 1fr; gap: 12px; }
  .path-card { min-height: 0; padding: 20px 18px 18px; }
  .path-card-sub { margin-bottom: 16px; }
}

/* quiz header label badge */
.quiz-progress-quiztype {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: var(--jade, #18A49A);
  text-transform: uppercase;
}
.quiz-progress-spacer {
  margin: 0 8px;
  color: rgba(21,21,21,0.30);
  font-weight: 400;
}

/* dark mode path cards */
html.dark-mode .path-card { background: #1e1e1e; border-color: rgba(246,244,241,0.10); }
html.dark-mode .path-card:hover { border-color: var(--jade, #18A49A); }
html.dark-mode .path-card-label { color: #F6F4F1; }
html.dark-mode .path-card-sub { color: rgba(246,244,241,0.65); }

/* =================================================================
   QUIZ MOTION GRAPHICS — small animated SVG visualizations
   ================================================================= */
.quiz-why-graphic {
  margin-top: 14px;
  background: #FFFFFF;
  border: 1px solid rgba(21,21,21,0.06);
  border-radius: 12px;
  padding: 12px;
  animation: graphic-fade-in 320ms ease-out 80ms both;
}
@keyframes graphic-fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fact-graphic { width: 100%; }
.fact-graphic svg { display: block; width: 100%; height: auto; }

html.dark-mode .quiz-why-graphic { background: #1a1a1a; border-color: rgba(246,244,241,0.08); }

/* Re-order Next button + why-box: Next sits between options and the why-box */
.quiz-card .quiz-next { margin-top: 6px; }
.quiz-card .quiz-why { margin-top: 16px; margin-bottom: 0; }

/* =================================================================
   RESULT v2 — personalized top 3 + dialed-in chips + call bullets
   ================================================================= */

/* hide the old breakdown grid (kept for backwards compat if used elsewhere) */
.result-screen .result-breakdown { display: none; }

/* ---------- Personalized "Your top 3 priorities" ---------- */
.result-priorities {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 22px 22px 18px;
  margin: 0 0 20px;
  box-shadow: 0 1px 0 rgba(21,21,21,0.04), 0 8px 24px rgba(21,21,21,0.05);
  text-align: left;
}
.result-priorities-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #6C4B63;
  margin-bottom: 14px;
}
.priorities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pri;
}
.priority-item {
  display: grid;
  grid-template-columns: 28px 36px 1fr;
  gap: 10px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgba(21,21,21,0.06);
}
.priority-item:first-child { border-top: none; padding-top: 0; }
.priority-num {
  font-family: 'GeneralSans-Bold', 'DM Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--jade, #18A49A);
  line-height: 1;
  letter-spacing: -0.5px;
}
.priority-glyph {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(24,164,154,0.10);
  color: var(--jade, #18A49A);
  border-radius: 10px;
  flex-shrink: 0;
}
.priority-text { min-width: 0; }
.priority-label {
  font-family: 'GeneralSans-Bold', 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.3;
  font-weight: 700;
  color: #151515;
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}
.priority-why {
  font-size: 13.5px;
  line-height: 1.5;
  color: rgba(21,21,21,0.7);
  margin: 0;
}

/* ---------- Dialed-in chip strip (positive reinforcement) ---------- */
.result-dialed {
  margin: 0 0 24px;
  text-align: left;
}
.result-dialed-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 10px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: var(--jade, #18A49A);
  margin-bottom: 10px;
}
.result-dialed-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.result-dialed-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 10px;
  background: rgba(24,164,154,0.10);
  border: 1px solid rgba(24,164,154,0.25);
  border-radius: 999px;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #128A82;
}
.result-dialed-glyph {
  display: inline-flex;
  width: 16px; height: 16px;
  align-items: center;
  justify-content: center;
  color: var(--jade, #18A49A);
}

/* ---------- "What we'll cover on the call" bullets ---------- */
.result-cta-bullets {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  text-align: left;
  display: grid;
  gap: 10px;
}
.result-cta-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(246,244,241,0.92);
}
.cta-bullet-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  flex-shrink: 0;
  background: var(--jade, #18A49A);
  color: #F6F4F1;
  border-radius: 999px;
  margin-top: 2px;
}

/* ---------- Mobile (≤480px) ---------- */
@media (max-width: 480px) {
  .result-priorities { padding: 18px 16px 14px; }
  .priority-item { grid-template-columns: 22px 32px 1fr; gap: 8px; }
  .priority-num { font-size: 18px; }
  .priority-glyph { width: 32px; height: 32px; }
  .priority-label { font-size: 15px; }
  .priority-why { font-size: 13px; }
  .result-cta-bullets li { font-size: 13.5px; }
}

/* ---------- Dark mode ---------- */
html.dark-mode .result-priorities { background: #1e1e1e; }
html.dark-mode .priority-label { color: #F6F4F1; }
html.dark-mode .priority-why { color: rgba(246,244,241,0.7); }
html.dark-mode .priority-item { border-top-color: rgba(246,244,241,0.08); }
html.dark-mode .result-dialed-chip { background: rgba(24,164,154,0.18); color: #18A49A; }
