/* ---------- tokens ---------- */
:root {
  --ink: #16240A;
  --ink-soft: #4B5A3E;
  --ink-muted: #7C8870;
  --paper: #FFFFFF;
  --paper-tint: #F4F8ED;
  --line: #E1E9D3;
  --moss-50: #EAF3DE;
  --moss-100: #C7DFA0;
  --moss-300: #8FC050;
  --moss-500: #5B9A2E;
  --moss-700: #3B6D11;
  --moss-900: #1F3D07;
  --danger: #A32D2D;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

/* The hidden attribute must always win over any explicit display rule below,
   otherwise elements toggled with .hidden = true/false can stay visually stuck. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 500; color: var(--ink); margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.2; }
p { margin: 0; color: var(--ink-soft); }

a { color: var(--moss-700); }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 26px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--moss-700); outline-offset: 2px; }

.btn-primary { background: var(--moss-700); color: #fff; }
.btn-primary:hover { background: var(--moss-900); }

.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--moss-500); }

.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 16px 34px; font-size: 16px; }

/* ---------- exit button ---------- */
.exit-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.exit-btn:hover { border-color: var(--danger); color: var(--danger); }
.exit-btn-player {
  position: absolute;
  top: 20px;
  right: 20px;
  border-color: rgba(0,0,0,0.15);
  z-index: 2;
  transition: border-color 0.15s ease, color 0.15s ease, opacity 0.6s ease;
}
.theme-dark .exit-btn-player { border-color: rgba(255,255,255,0.2); color: #C7D9B5; }
.theme-dark .exit-btn-player:hover { border-color: #E8A0A0; color: #E8A0A0; }

/* ---------- topbar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
  flex-wrap: wrap;
}
.brand { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--moss-700); }

@media (max-width: 360px) {
  .brand { font-size: 16px; }
  #nav-cta { padding: 8px 14px; font-size: 12px; }
}

/* hamburger toggle — mobile only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 32px;
  height: 32px;
  padding: 0;
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  order: 2;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.topnav {
  display: none;
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 2px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 8px 24px 16px;
  box-shadow: 0 12px 24px rgba(22,36,10,0.08);
}
.topnav.open { display: flex; }
.topnav a { color: var(--ink-soft); text-decoration: none; padding: 10px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
.topnav a:last-child { border-bottom: none; }
.topnav a:hover { color: var(--moss-700); }

#nav-cta { order: 3; }

@media (min-width: 768px) {
  .nav-toggle { display: none; }
  .topnav {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 24px;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    width: auto;
    font-size: 14px;
  }
  .topnav a { padding: 0; border-bottom: none; }
  #nav-cta { order: 0; }
}

/* ---------- hero ---------- */
.hero { padding: 48px 0 72px; }
.hero-grid {
  display: grid;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 56px; }
  .hero { padding: 64px 0 88px; }
}

.lead { font-size: 18px; margin-top: 18px; max-width: 46ch; }
.hero-tagline { font-size: 13px; font-weight: 600; color: var(--moss-700); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px; }
.hero-audience { font-size: 13px; color: var(--ink-muted); margin-top: 28px; max-width: 44ch; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero-stats {
  display: flex;
  gap: 32px;
  margin: 40px 0 0;
}
.hero-stats > div { display: flex; flex-direction: column; }
.hero-stats dt { font-family: var(--font-display); font-size: 22px; color: var(--moss-700); }
.hero-stats dd { margin: 2px 0 0; font-size: 12px; color: var(--ink-muted); }

.hero-visual {
  background: var(--moss-50);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lung-stage { display: flex; flex-direction: column; align-items: center; text-align: center; }

.lung-phase-label { font-family: var(--font-display); font-size: 17px; color: var(--moss-900); margin-top: 12px; text-transform: capitalize; }
.lung-round-label { font-size: 12px; color: var(--ink-muted); margin-top: 4px; }
.session-timer { font-family: var(--font-display); font-size: 20px; color: var(--moss-700); margin-top: 6px; font-variant-numeric: tabular-nums; }
.theme-dark .session-timer { color: #C7D9B5; }

.session-tip {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 16px;
  max-width: 34ch;
  text-align: center;
  min-height: 1.5em;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.session-tip.visible { opacity: 1; }
.session-tip a { color: var(--moss-700); font-weight: 600; }
.theme-dark .session-tip { color: #A9BE93; }
.theme-dark .session-tip a { color: var(--moss-300); }

/* ---------- breathing lung visual (image-based) ---------- */
.lung-visual {
  position: relative;
  width: 200px;
  margin: 0 auto;
}
.lung-stage-lg .lung-visual { width: 240px; }

.lung-glow {
  position: absolute;
  inset: -22%;
  background: radial-gradient(circle, rgba(151,196,89,0.5) 0%, rgba(151,196,89,0) 70%);
  filter: blur(18px);
  opacity: 0.5;
  transform: scale(0.9);
  transition: opacity 3.2s ease-in-out, transform 3.2s ease-in-out;
  z-index: 0;
  border-radius: 50%;
}
.theme-dark .lung-glow {
  background: radial-gradient(circle, rgba(159,203,110,0.55) 0%, rgba(159,203,110,0) 70%);
}

.lung-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  aspect-ratio: 700 / 660;
  display: block;
  filter: brightness(0.9) saturate(0.85) drop-shadow(0 10px 22px rgba(44,78,9,0.2));
  transform: scale(0.94);
  transform-origin: center bottom;
  transition: transform 3.2s cubic-bezier(0.45,0,0.55,1), filter 3.2s ease-in-out;
}

.lung-visual.phase-inhale .lung-img {
  transform: scale(1.06);
  filter: brightness(1.05) saturate(1.15) drop-shadow(0 14px 30px rgba(44,78,9,0.28));
}
.lung-visual.phase-inhale .lung-glow { opacity: 0.85; transform: scale(1.15); }

.lung-visual.phase-exhale .lung-img {
  transform: scale(0.9);
  filter: brightness(0.82) saturate(0.75) drop-shadow(0 6px 14px rgba(44,78,9,0.16));
}
.lung-visual.phase-exhale .lung-glow { opacity: 0.3; transform: scale(0.85); }

/* hero: ambient continuous loop, no JS needed */
.hero-visual .lung-img { animation: heroLungBreathe 6s ease-in-out infinite; }
.hero-visual .lung-glow { animation: heroGlowPulse 6s ease-in-out infinite; }
@keyframes heroLungBreathe {
  0%, 100% { transform: scale(0.92); filter: brightness(0.86) saturate(0.82) drop-shadow(0 8px 18px rgba(44,78,9,0.18)); }
  50% { transform: scale(1.05); filter: brightness(1.05) saturate(1.12) drop-shadow(0 14px 28px rgba(44,78,9,0.26)); }
}
@keyframes heroGlowPulse {
  0%, 100% { opacity: 0.32; transform: scale(0.85); }
  50% { opacity: 0.75; transform: scale(1.15); }
}

/* ---------- why it matters ---------- */
.why-matters { padding: 64px 0; background: var(--paper-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-matters h2 { margin-top: 8px; max-width: 30ch; }
.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}
@media (min-width: 760px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
}
.why-item h3 { font-size: 16px; margin-bottom: 8px; }
.why-item p { font-size: 14px; }

/* ---------- built around your workday ---------- */
.workday { padding: 64px 0; }
.workday h2 { margin-top: 8px; }
.workday-lead { margin-top: 12px; max-width: 60ch; font-size: 15px; }

.workday-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 32px;
}
.workday-card {
  text-align: left;
  background: var(--paper-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: border-color 0.15s ease, transform 0.15s ease;
  font-family: var(--font-body);
}
.workday-card:hover { border-color: var(--moss-500); transform: translateY(-2px); }
.workday-situation { font-size: 14px; font-weight: 600; color: var(--ink); }
.workday-need { font-size: 11px; font-weight: 600; color: var(--moss-700); text-transform: uppercase; letter-spacing: 0.03em; }
.workday-response { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }

/* ---------- intro ---------- */
.intro { padding: 72px 0; }
.intro-grid { display: grid; gap: 40px; }
@media (min-width: 860px) {
  .intro-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}
.intro-text p { margin-top: 16px; max-width: 46ch; }
.intro-aside { font-size: 13px; margin-top: 20px; color: var(--ink-muted); }
.intro-aside a { font-weight: 600; }

.intro-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.intro-steps li { display: flex; gap: 16px; align-items: flex-start; }
.step-num {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--moss-700);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.intro-steps strong { font-size: 15px; }
.intro-steps p { margin-top: 3px; font-size: 14px; }

/* ---------- exercises ---------- */
.exercises { padding: 72px 0; background: var(--paper-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.exercises h2 { margin-top: 8px; }
.exercises-lead { margin-top: 12px; max-width: 62ch; font-size: 15px; }

.exercise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 32px;
}
.exercise-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.exercise-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 600;
  color: var(--moss-700);
  background: var(--moss-50);
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.01em;
}
.exercise-tag-dark { background: rgba(255,255,255,0.15); color: var(--moss-50); }
.exercise-card h3 { font-size: 18px; margin-top: 2px; }
.exercise-card p { font-size: 14px; flex: 1; }
.exercise-card .btn { align-self: flex-start; margin-top: 4px; }
.exercise-card-featured { background: var(--moss-900); border-color: var(--moss-900); }
.exercise-card-featured h3, .exercise-card-featured p { color: var(--moss-50); }
.exercise-card-featured .btn-primary { background: var(--moss-300); color: var(--moss-900); }
.exercise-card-featured .btn-primary:hover { background: #fff; }

/* ---------- exercise player (fixed overlay, immersive) ---------- */
.exercise-player {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  transition: background 0.6s ease;
  overflow-y: auto;
}
.exercise-player.theme-light {
  background: radial-gradient(circle at 50% 38%, #FFFFFF 0%, #F4F8ED 55%, #E4EFCF 100%);
}
.exercise-player.theme-dark {
  background: radial-gradient(circle at 50% 38%, #16260D 0%, #0E1A08 55%, #0A1406 100%);
}

.exercise-player-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 420px; width: 100%; margin: auto; }
.player-view { display: flex; flex-direction: column; align-items: center; width: 100%; }

.exercise-player-title { font-size: 22px; margin-bottom: 6px; }
.theme-dark .exercise-player-title { color: #E8F0DA; }
.exercise-player-purpose { font-size: 14px; color: var(--ink-soft); max-width: 34ch; margin-bottom: 28px; }
.theme-dark .exercise-player-purpose { color: #A9BE93; }

.exercise-player-estimate { font-size: 12px; color: var(--ink-muted); margin-top: 12px; }
.theme-dark .exercise-player-estimate { color: #7E9268; }

.player-toggles { display: flex; gap: 10px; margin-top: 32px; }

.duration-picker { display: flex; gap: 10px; margin-bottom: 24px; }
.duration-opt {
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 8px 18px; font-size: 14px; color: var(--ink-soft); cursor: pointer;
}
.duration-opt.selected { background: var(--moss-700); border-color: var(--moss-700); color: #fff; }
.theme-dark .duration-opt { border-color: rgba(255,255,255,0.2); color: #C7D9B5; }
.theme-dark .duration-opt.selected { background: var(--moss-300); border-color: var(--moss-300); color: var(--moss-900); }

.theme-dark .lung-phase-label { color: #E8F0DA; }
.theme-dark .lung-round-label { color: #8FA678; }

.phase-cue {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin-top: 6px;
  min-height: 45px; /* reserves room for up to 2 lines so longer round-awareness
                        messages never reflow/shift the layout around them */
  max-width: 32ch;
  transition: opacity 0.4s ease;
}
.theme-dark .phase-cue { color: #A9BE93; }

.session-chrome { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: opacity 0.6s ease; }
.exercise-player.focus-dim .session-chrome,
.exercise-player.focus-dim .exit-btn-player { opacity: 0.18; }

.progress-dots { display: flex; gap: 8px; }
.progress-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
  transition: background 0.3s ease, transform 0.3s ease;
}
.progress-dot.done { background: var(--moss-500); }
.progress-dot.current { background: var(--moss-700); transform: scale(1.35); }
.theme-dark .progress-dot { background: rgba(255,255,255,0.18); }
.theme-dark .progress-dot.done { background: var(--moss-500); }
.theme-dark .progress-dot.current { background: var(--moss-300); }

.progress-bar-track { width: 160px; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.theme-dark .progress-bar-track { background: rgba(255,255,255,0.15); }
.progress-bar-fill { height: 100%; width: 0%; background: var(--moss-500); transition: width 0.6s ease; }

.music-toggle {
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-muted); cursor: pointer;
  transition: opacity 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.music-toggle:hover { border-color: var(--moss-500); color: var(--moss-700); }
.theme-dark .music-toggle { border-color: rgba(255,255,255,0.2); color: #C7D9B5; }
.music-toggle[aria-pressed="false"] { opacity: 0.45; }

/* completion view */
.complete-eyebrow { font-size: 12px; font-weight: 600; color: var(--moss-700); text-transform: uppercase; letter-spacing: 0.03em; }
.theme-dark .complete-eyebrow { color: var(--moss-300); }
.complete-stats { font-size: 13px; color: var(--ink-muted); margin-top: -4px; margin-bottom: 24px; }
.theme-dark .complete-stats { color: #A9BE93; }

.mood-row { margin-bottom: 24px; }
.mood-label { font-size: 13px; color: var(--ink-soft); margin-bottom: 10px; }
.theme-dark .mood-label { color: #C7D9B5; }
.mood-options { display: flex; gap: 10px; justify-content: center; }
.mood-btn {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--paper-tint); border: 1px solid var(--line);
  font-size: 20px; cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.mood-btn:hover { transform: translateY(-2px); }
.mood-btn.selected { border-color: var(--moss-500); background: var(--moss-50); }
.theme-dark .mood-btn { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.15); }
.theme-dark .mood-btn.selected { border-color: var(--moss-300); background: rgba(255,255,255,0.12); }

.complete-next-step {
  background: var(--paper-tint);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 28px;
  max-width: 34ch;
}
.theme-dark .complete-next-step { background: rgba(255,255,255,0.06); }
.complete-next-eyebrow { font-size: 11px; font-weight: 600; color: var(--moss-700); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 6px; }
.theme-dark .complete-next-eyebrow { color: var(--moss-300); }
#complete-next-text { font-size: 14px; color: var(--ink); }
.theme-dark #complete-next-text { color: #E8F0DA; }

/* ---------- confirm modal ---------- */
.confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(22,36,10,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.confirm-modal-box {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 28px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 50px rgba(22,36,10,0.25);
}
.confirm-modal-text { color: var(--ink); font-size: 15px; line-height: 1.5; margin-bottom: 22px; }
.confirm-modal-actions { display: flex; gap: 10px; justify-content: center; }
.confirm-modal-actions .btn { flex: 1; }

/* ---------- assessment ---------- */
.assessment { padding: 64px 0 96px; }

.assessment-topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 48px; }
.assessment-topbar .progress-track { flex: 1; margin-bottom: 0; }

.progress-track { height: 4px; background: var(--line); border-radius: 4px; overflow: hidden; }
.progress-track-fill { height: 100%; width: 0%; background: var(--moss-500); transition: width 0.4s ease; }

.stage { max-width: 560px; margin: 0 auto; text-align: center; }
.stage-eyebrow { font-size: 13px; color: var(--moss-700); font-weight: 600; }
.stage h2 { margin-top: 8px; }
.stage-instructions { margin-top: 14px; font-size: 15px; }
.stage-hint { margin-top: 4px; font-size: 12px; color: var(--ink-muted); }
.stage-why { margin-top: 8px; font-size: 13px; color: var(--ink-muted); font-style: italic; }

.safety-note {
  margin-top: 28px;
  text-align: left;
  background: #FBF3E4;
  border: 1px solid #EBDCB8;
  border-radius: var(--radius-md);
  padding: 18px 22px;
}
.safety-note-title { font-size: 13px; font-weight: 600; color: #8A5A0E; margin-bottom: 8px; }
.safety-note ul { margin: 0; padding-left: 18px; }
.safety-note li { font-size: 13px; color: #6B4A16; margin-bottom: 4px; line-height: 1.5; }
.safety-note li:last-child { margin-bottom: 0; }

.skip-link {
  background: none; border: none; color: var(--ink-muted);
  font-size: 13px; text-decoration: underline; cursor: pointer;
  padding: 4px;
}
.skip-link:hover { color: var(--danger); }

.medical-note-link {
  background: none; border: none; color: var(--ink-muted);
  font-size: 12px; text-decoration: underline; cursor: pointer;
  display: block; margin: 0 auto 32px; padding: 4px;
}
.medical-note-link:hover { color: var(--moss-700); }

.confirm-modal-text-muted { font-size: 13px; color: var(--ink-muted); margin-top: -12px; }

.stage-panel {
  margin-top: 40px;
  background: var(--moss-50);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.timer-display { font-family: var(--font-display); font-size: 56px; color: var(--moss-900); }
.tap-count { font-size: 14px; color: var(--ink-soft); }

/* ---------- results ---------- */
.results { padding: 64px 0 96px; }
.results h2 { margin-top: 8px; margin-bottom: 28px; }
.wrap-narrow-results { max-width: 620px; margin: 0 auto; padding: 0 24px; }

.result-hero {
  text-align: center;
  background: var(--moss-700);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  color: #fff;
}
.result-score { font-family: var(--font-display); font-size: 52px; line-height: 1; color: #fff; }
.result-score-sub { font-size: 14px; color: var(--moss-100); margin-left: 4px; }
.result-descriptor { font-family: var(--font-display); font-size: 17px; color: #fff; margin-top: 10px; }
.calc-link {
  background: none; border: none; color: var(--moss-100);
  font-size: 12px; text-decoration: underline; cursor: pointer;
  margin-top: 12px; padding: 4px;
}
.calc-link:hover { color: #fff; }

.result-verdict { font-size: 15px; color: var(--ink); text-align: center; margin-top: 20px; max-width: 48ch; margin-left: auto; margin-right: auto; }

.area-chips { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
@media (min-width: 480px) {
  .area-chips { flex-direction: row; }
}
.area-chip {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  background: var(--paper-tint);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 13px;
}
.area-chip-text { color: var(--ink); }
.area-chip-label { font-size: 11px; color: var(--ink-muted); width: 100%; margin-top: 2px; }

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.metric-row-2 { grid-template-columns: repeat(2, 1fr); }
.metric-disclaimer { font-size: 11px; color: var(--ink-muted); text-align: center; margin-top: 10px; }
.metric-card {
  background: var(--paper-tint);
  border-radius: var(--radius-md);
  padding: 18px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-label { font-size: 11px; color: var(--ink-muted); }
.metric-value { font-family: var(--font-display); font-size: 22px; color: var(--moss-900); }
.metric-context { font-size: 11px; color: var(--moss-700); font-weight: 600; }

.secondary-metrics {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.secondary-metric-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.secondary-metric-row:last-child { border-bottom: none; }
.secondary-metric-value { font-weight: 600; color: var(--ink); margin-left: auto; }
.secondary-metric-context { font-size: 12px; color: var(--ink-muted); min-width: 110px; text-align: right; }

.compare-panel, .next-step-panel {
  margin-top: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 24px;
}
.compare-title { font-size: 13px; font-weight: 600; color: var(--moss-700); margin-bottom: 10px; }
.compare-rows { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.compare-row { display: flex; justify-content: space-between; }
.delta-up { color: var(--moss-700); font-weight: 600; }
.delta-down { color: var(--danger); font-weight: 600; }

.next-step-panel { text-align: center; background: var(--paper-tint); border-color: var(--moss-100); }
.next-step-eyebrow { font-size: 12px; font-weight: 600; color: var(--moss-700); margin-bottom: 8px; }
.next-step-text { font-size: 16px; color: var(--ink); }
.next-step-sub { font-size: 12px; color: var(--ink-muted); margin-top: 4px; margin-bottom: 18px; }

.progress-cta {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 24px;
  padding: 10px;
}
.progress-cta span { color: var(--moss-700); font-weight: 600; text-decoration: underline; }
.progress-cta:hover span { color: var(--moss-900); }


.results .btn-ghost { margin-top: 24px; display: block; margin-left: auto; margin-right: auto; }

/* ---------- progress ---------- */
.progress-section { padding: 64px 0 96px; background: var(--paper-tint); border-top: 1px solid var(--line); }
.progress-section h2 { margin-bottom: 28px; }

.streak-row { display: flex; gap: 16px; margin-bottom: 32px; }
.streak-card {
  flex: 1;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px;
  text-align: center;
}
.streak-value { display: block; font-family: var(--font-display); font-size: 34px; color: var(--moss-700); }
.streak-label { font-size: 12px; color: var(--ink-muted); }

.history-list { display: flex; flex-direction: column; gap: 8px; }
.history-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.history-date { color: var(--ink-muted); }
.history-score { font-weight: 600; color: var(--moss-700); }

/* ---------- footer ---------- */
.site-footer { padding: 32px 0; border-top: 1px solid var(--line); }
.footer-inner p { font-size: 12px; color: var(--ink-muted); max-width: 60ch; }
.footer-links { display: flex; gap: 16px; margin-top: 12px; }
.footer-links a { font-size: 12px; color: var(--ink-muted); text-decoration: underline; }
.footer-links a:hover { color: var(--moss-700); }
