/* ============================================================
   MVP — BEYOND THE GAME
   Structure modeled on bffofamerica.org; colors are our own.
   Everything tweakable lives in :root.
   ============================================================ */

:root {
  /* --- brand ---
     One accent, used sparingly. Everything else is black and white. */
  --brand:      #E2552F;   /* deeper, redder than the usual nonprofit orange */
  --brand-dark: #C2441F;
  --accent:     #E2552F;
  --accent-dk:  #C2441F;
  --amber:      #E8A33D;   /* small highlights only */

  --ink:      #1B1D21;
  --ink-deep: #123B45;     /* deep teal — the second brand colour */
  --muted:    #6B6A6E;
  --line:     #C2C0BC;
  --cream:    #FAF7F3;     /* warm paper, not grey */
  --offwhite: #FFFFFF;
  --white:    #FFFFFF;
  --hair:     rgba(27,29,33,0.11);

  /* the three pillars — used as markers, and as the logo's wedges */
  --p-academics: #3E7CB1;
  --p-athlete:   #E2552F;
  --p-wellbeing: #5C9E6F;

  --font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --maxw: 1200px;
  --gutter: 24px;
  --section-y: 124px;
  --r: 14px;
  --r-pill: 999px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
svg { display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }

/* Light weights at large sizes — the look is air, not boldness. */
h1, h2, h3, h4 { font-family: var(--font); margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 400; line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 400; line-height: 1.12; letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 2.1vw, 27px); font-weight: 500; line-height: 1.28; letter-spacing: -0.012em; }
h4 { font-size: 19px; font-weight: 500; line-height: 1.35; }
p  { margin: 0; }

.center { text-align: center; }
.lead { font-size: 19px; color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  padding: 16px 30px;
  border-radius: var(--r-pill);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.btn--accent  { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dk); }
.btn--brand   { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-dark); }
.btn--ghost   { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--onbrand { background: #fff; color: var(--brand); }

/* ---------- header: white, quiet ---------- */
.site-header {
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
  position: sticky;
  top: 0;
  z-index: 60;
}
/* centered masthead: nav split either side of the brand */
.site-header .wrap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 86px;
}
.brandmark {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.025em;
  white-space: nowrap;
  text-align: center;
}
.brandmark .mark { flex: none; width: 44px; height: 44px; object-fit: contain; }
.site-footer .brandmark .mark { width: 40px; height: 40px; }
.nav-left  { justify-self: start; }
.nav-right { justify-self: end; }
.site-nav ul { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; align-items: center; }
.site-nav a {
  color: #34353A;
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
}
.site-nav a:hover { color: var(--brand); }
.site-nav a.active { color: var(--brand); }
.site-nav a.btn--accent { color: #fff; font-weight: 600; }

/* ---------- hero: orange, with space inside the head ---------- */
.hero {
  position: relative;
  background: var(--brand);
  color: #fff;
  padding-block: 104px 120px;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }
/* clear the fixed header on the home page */
.home .hero { padding-top: 190px; }
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 80px;
  align-items: center;
}
.hero h1 { color: #fff; }
.hero .kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
  margin-bottom: 26px;
}
.hero .lede {
  margin-top: 26px;
  font-size: 18px;
  color: rgba(255,255,255,.88);
  max-width: 46ch;
}
.hero .capture-note { color: rgba(255,255,255,.72); }
/* on orange, the capture button inverts */
.hero .capture { border-color: transparent; }
.hero .capture button { background: var(--ink); color: #fff; }
.hero .capture button:hover { background: #000; }

/* home: header sits ON the orange, solidifies on scroll */
.home .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--brand);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
  transition: background .25s ease, border-color .25s ease;
}
.home .site-header .brandmark { color: #fff; }
.home .site-header .site-nav a { color: rgba(255,255,255,.8); }
.home .site-header .site-nav a:hover { color: #fff; }
.home .site-header .site-nav a.active { color: #fff; }
.home .site-header .site-nav a.btn--accent { background: #fff; color: var(--brand); font-weight: 600; }
.home .site-header .site-nav a.btn--accent:hover { background: rgba(255,255,255,.88); color: var(--brand); }

.home .site-header.stuck {
  background: #FFFFFF;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--hair);
}
.home .site-header.stuck .brandmark { color: var(--ink); }

.home .site-header.stuck .site-nav a { color: #34353A; }
.home .site-header.stuck .site-nav a:hover { color: var(--brand); }
.home .site-header.stuck .site-nav a.active { color: var(--brand); }
.home .site-header.stuck .site-nav a.btn--accent { background: var(--brand); color: #fff; }
.home .site-header.stuck .site-nav a.btn--accent:hover { background: var(--brand-dark); color: #fff; }

/* ---------- hero: the brain suspended in space ----------
   No frame, no backdrop — the transparent PNG floats directly on the
   orange. Two clocks (19s approach, 13s turn) so the loop never
   repeats identically, the way a real object drifting wouldn't. */
.brain-stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  margin-inline: auto;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: visible;
  perspective: 1400px;
}
.orbit {
  width: 100%;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  animation: approach 19s cubic-bezier(.42,0,.3,1) infinite;
}
.orbit { position: relative; }
.brain-stage img {
  width: 76%;
  height: auto;
  transform-style: preserve-3d;
  filter: drop-shadow(0 22px 38px rgba(80,20,0,.28));
  animation: turn 13s ease-in-out infinite;
}

/* drifts toward you and back out */
@keyframes approach {
  0%   { transform: translateZ(0) scale(1); }
  46%  { transform: translateZ(90px) scale(1.3); }
  58%  { transform: translateZ(90px) scale(1.3); }
  100% { transform: translateZ(0) scale(1); }
}
/* turns on its axis and floats — bounded so the flat art never goes edge-on */
@keyframes turn {
  0%   { transform: rotateY(-15deg) rotateX(6deg)  translateY(0); }
  25%  { transform: rotateY(0deg)   rotateX(-5deg) translateY(-17px); }
  50%  { transform: rotateY(15deg)  rotateX(5deg)  translateY(0); }
  75%  { transform: rotateY(0deg)   rotateX(-6deg) translateY(15px); }
  100% { transform: rotateY(-15deg) rotateX(6deg)  translateY(0); }
}

/* the actual product, shown not described */
.routine {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  padding: 28px 30px 22px;
  box-shadow: 0 24px 60px rgba(32,33,37,.08);
}
.routine .rhead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--hair);
}
.routine .rhead h3 { font-size: 19px; }
.routine .rhead span {
  font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
}
.routine .step {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 16px;
  align-items: baseline;
  padding: 13px 0;
  border-bottom: 1px solid var(--hair);
}
.routine .step:last-of-type { border-bottom: 0; }
.routine .t {
  font-weight: 700;
  font-size: 14px;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.routine .d { font-size: 15.5px; }
.routine .d em { display: block; font-style: normal; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.routine .rfoot { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* email capture */
.capture {
  display: flex;
  gap: 0;
  max-width: 440px;
  margin: 34px 0 0;
  background: #fff;
  border: 1px solid var(--hair);
  border-radius: var(--r-pill);
  padding: 6px;
}
.capture input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  padding: 12px 18px;
  border-radius: var(--r-pill);
}
.capture input::placeholder { color: #9b9893; }
.capture input:focus { outline: 2px solid var(--accent); outline-offset: -2px; }
.capture button {
  flex: none;
  border: 0;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-weight: 600;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color .18s ease;
}
.capture button:hover { background: var(--accent-dk); }
.capture-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- season timeline ----------
   A shape a finance nonprofit can't use: the athletic year. */
.season {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
}
.stage {
  position: relative;
  padding: 30px 28px 0 0;
  border-top: 3px solid var(--hair);
}
.stage::before {
  content: "";
  position: absolute;
  top: -10px;
  left: 0;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--line);
}
.stage--on { border-top-color: var(--brand); }
.stage--on::before { background: var(--accent); border-color: var(--brand); }
.stage .when {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.stage h3 { font-size: 21px; margin-bottom: 10px; }
.stage p { color: var(--muted); font-size: 15.5px; }

/* ---------- numbered goal rows (not another card grid) ---------- */
.goal-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 32px;
  align-items: start;
  padding-block: 34px;
  border-bottom: 1px solid var(--hair);
}
.goal-row:last-child { border-bottom: 0; }
.goal-row .gn {
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.goal-row h3 { font-size: 25px; margin-bottom: 10px; }
.goal-row p { color: var(--muted); max-width: 72ch; }

/* ---------- bands: mostly white; one dark moment ---------- */
.band        { padding-block: var(--section-y); }
.band--cream { background: var(--cream); }
.band--off   { background: var(--offwhite); }
.band--ink   { background: var(--cream); }   /* kept light — simplicity */
.band--brand { background: var(--ink-deep); color: #fff; }
.band--brand h2, .band--brand h3 { color: #fff; }
.band--brand p { color: rgba(255,255,255,.72); }
.band--brand .arrow-list li { color: rgba(255,255,255,.88); }

.band h2 + .sub { margin-top: 18px; color: var(--muted); font-size: 18px; }
.band--brand h2 + .sub { color: rgba(255,255,255,.65); }

/* ---------- interior page head ---------- */
.page-head {
  background:
    radial-gradient(900px 420px at 70% -10%, rgba(255,108,54,0.10), transparent 62%),
    var(--white);
  color: var(--ink);
  padding-block: 92px 76px;
  border-bottom: 1px solid var(--hair);
}
.page-head h1 { font-size: clamp(36px, 5vw, 60px); }
.page-head p { margin: 24px 0 0; max-width: 60ch; color: var(--muted); font-size: 18px; }

/* ---------- prose ---------- */
.prose p { font-size: 18px; color: var(--muted); margin-bottom: 22px; }
.prose p:last-child { margin-bottom: 0; }
.prose p.big { font-size: 22px; line-height: 1.6; color: var(--ink); }
.prose h3 { margin: 40px 0 14px; }

/* ---------- changing reality (3 problems) ---------- */
.problem {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 40px;
  align-items: start;
  padding-block: 52px;
  border-bottom: 1px solid var(--hair);
}
.problem:last-child { border-bottom: 0; }
.problem h3 { margin-bottom: 18px; max-width: 24ch; }
.problem p { color: var(--muted); font-size: 17px; max-width: 70ch; }
.problem .src { color: var(--brand); font-weight: 600; }
.problem .num {
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  text-align: right;
  letter-spacing: -0.02em;
}

/* ---------- goals ---------- */
.goal {
  background: var(--white);
  border-radius: var(--r);
  padding: 34px 30px;
  border-top: 5px solid var(--accent);
  box-shadow: 0 2px 16px rgba(29,15,2,.05);
  height: 100%;
}
.goal .gnum {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand);
  margin-bottom: 14px;
}
.goal h3 { font-size: 24px; margin-bottom: 12px; }
.goal p { color: var(--muted); font-size: 16px; }

/* ---------- grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }

/* ---------- cards ---------- */
.card {
  background: var(--white);
  border-radius: var(--r);
  padding: 30px;
  border: 1px solid var(--hair);
  box-shadow: none;
  transition: border-color .2s ease;
}
.card:hover { border-color: var(--ink); }
.card h3 { font-size: 23px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 16px; }

/* ---------- gallery ---------- */
.gallery img {
  aspect-ratio: 4 / 3;
  width: 100%;
  object-fit: cover;
  border-radius: var(--r);
  background: var(--cream);
}

/* ---------- counters ---------- */
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.counter { text-align: center; }
.counter .n {
  font-size: clamp(44px, 5vw, 64px);
  font-weight: 400;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.counter .l { margin-top: 12px; font-size: 15px; color: rgba(255,255,255,.6); }
.band--cream .counter .n, .band--off .counter .n { color: var(--ink); }
.band--cream .counter .l, .band--off .counter .l { color: var(--muted); }

/* ---------- alternating illustration rows ---------- */
.illus-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  padding-block: 56px;
}
.illus-row:nth-child(even) .illus-art { order: -1; }
.illus-art svg { width: 100%; max-width: 340px; height: auto; margin-inline: auto; }
.illus-row h3 { margin-bottom: 14px; }
.illus-row p { color: var(--muted); }

/* ---------- why-partner list ---------- */
.arrow-list { list-style: none; margin: 0; padding: 0; }
.arrow-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 18px;
  font-size: 18px;
}
.arrow-list li::before {
  content: "\25B8";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-size: 20px;
  line-height: 1.5;
}
.band--brand .arrow-list li { color: rgba(255,255,255,.92); }

/* ---------- contact form ---------- */
.form { display: grid; gap: 18px; max-width: 680px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--font);
  font-size: 16px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 10px;
  padding: 13px 15px;
  width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: -1px;
}
.form .btn { justify-self: start; border: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #fff; padding-block: 72px 0; }
.site-footer .brandmark { font-size: 23px; margin-bottom: 16px; }

.site-footer p { color: rgba(255,255,255,.72); font-size: 15px; margin-bottom: 10px; }
.site-footer .grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.col-head {
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,.55); margin-bottom: 18px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer a { color: #fff; text-decoration: none; font-size: 15px; opacity: .85; }
.site-footer a:hover { opacity: 1; color: var(--accent); }
.safety {
  margin-top: 52px; padding: 22px 24px; border-radius: var(--r);
  background: rgba(255,255,255,.06);
}
.safety p { font-size: 14px; margin-bottom: 8px; }
.safety p:last-child { margin-bottom: 0; }
.safety strong { color: #fff; }
.legal {
  margin-top: 44px; border-top: 1px solid rgba(255,255,255,.14);
  padding-block: 24px; text-align: center;
}
.legal p { margin: 0; font-size: 14px; }

/* ---------- scroll reveal (progressive enhancement) ----------
   Nothing is hidden unless JS adds .reveal-on, so a no-JS or
   reduced-motion visitor sees the finished page immediately. */
.reveal-on .reveal { opacity: 0; transform: translateY(22px); }
.reveal-on .reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1);
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  :root { --section-y: 72px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .hero .wrap { grid-template-columns: 1fr; gap: 44px; }
  .site-header .wrap { grid-template-columns: 1fr auto 1fr; min-height: 70px; }
  .season { grid-template-columns: 1fr; }
  .stage { padding: 26px 0 26px 26px; border-top: 0; border-left: 3px solid var(--hair); }
  .stage::before { top: 22px; left: -10px; }
  .stage--on { border-left-color: var(--brand); }
  .goal-row { grid-template-columns: 1fr; gap: 10px; }
  .goal-row .gn { font-size: 38px; }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .illus-row { grid-template-columns: 1fr; gap: 32px; padding-block: 40px; }
  .illus-row:nth-child(even) .illus-art { order: 0; }
  .illus-art svg { max-width: 240px; }
  .problem { grid-template-columns: 1fr; gap: 14px; }
  .problem .num { text-align: left; font-size: 48px; order: -1; }
  .site-footer .grid { grid-template-columns: 1fr; gap: 36px; }
  .site-nav { display: none; }
  .hero { padding-block: 64px 80px; }
  .brandmark { font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-on .reveal { opacity: 1 !important; transform: none !important; }
  .brain-stage img, .orbit { animation: none !important; }
}


/* ---------- founder ----------
   The photo file is already cropped to head-and-shoulders, so no
   object-fit cropping here — just size it. The row sizes its first
   column to the photo so the text sits right beside it. */
.founder-row {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 44px;
  align-items: center;
}
.founder-photo {
  width: 100%;
  height: auto;
  border-radius: var(--r);
  background: #F2F2F3;
  border: 1px solid var(--hair);
}
@media (max-width: 960px) {
  .founder-row { grid-template-columns: 1fr; gap: 28px; }
  .founder-photo { max-width: 420px; }
}


/* ============================================================
   COURSE CHROME — shared by every course page
   ============================================================ */
  .course-head { background: var(--ink-deep); color:#fff; padding-block: 34px 30px;
                 padding-top: calc(34px + env(safe-area-inset-top,0px)); }
  .course-head .wrap { display:flex; align-items:center; justify-content:space-between; gap:18px; flex-wrap:wrap; }
  .course-head a { color:rgba(255,255,255,.7); text-decoration:none; font-size:14.5px; font-weight:500; }
  .course-head a:hover { color:#fff; }
  .course-title { font-size:15px; font-weight:600; letter-spacing:.04em; }
  .bar { height:4px; background:rgba(255,255,255,.14); border-radius:4px; overflow:hidden; width:100%; margin-top:16px; }
  .bar i { display:block; height:100%; width:0; background:var(--brand); transition:width .4s ease; }

  .step { display:none; padding-block: 56px 80px; }
  .step.on { display:block; animation:fu .4s ease both; }
  @keyframes fu { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
  .step .wrap { max-width: 760px; }
  .kicker { font-size:12.5px; font-weight:700; letter-spacing:.17em; text-transform:uppercase; color:var(--brand); margin-bottom:14px; }
  .step h2 { margin-bottom:18px; }
  .step .body p { color:var(--muted); font-size:17.5px; margin-bottom:18px; }
  .step .body p:last-child { margin-bottom:0; }
  .step .body strong { color:var(--ink); font-weight:600; }
  .pull { border-left:3px solid var(--brand); padding:4px 0 4px 20px; margin:26px 0; font-size:19px; line-height:1.55; color:var(--ink); }

  .opts { display:grid; gap:11px; margin:28px 0 0; }
  .opts.two { grid-template-columns:1fr 1fr; }
  @media (max-width:620px){ .opts.two{grid-template-columns:1fr} }
  .opt { position:relative; }
  .opt input { position:absolute; opacity:0; width:0; height:0; }
  .opt span {
    display:block; padding:15px 18px; border-radius:12px; cursor:pointer; font-size:16px;
    border:1.5px solid var(--hair); background:#fff; transition:all .16s ease;
  }
  .opt span:hover { border-color:var(--muted); }
  .opt input:checked + span { border-color:var(--brand); background:#FFF4F0; font-weight:500; }
  .opt input:focus-visible + span { outline:3px solid var(--brand); outline-offset:2px; }
  .hint { margin-top:16px; font-size:14.5px; color:var(--muted); }

  .txt, .sel {
    font-family:var(--font); font-size:16.5px; color:var(--ink); background:#fff;
    border:1.5px solid var(--hair); border-radius:12px; padding:15px 17px; width:100%; margin-top:8px;
  }
  .txt:focus,.sel:focus { outline:3px solid var(--brand); outline-offset:-1px; }
  .lbl { font-size:14px; font-weight:600; margin-top:20px; display:block; }

  .nav-row { display:flex; gap:12px; align-items:center; margin-top:38px; flex-wrap:wrap; }
  .back { background:none; border:0; color:var(--muted); font-family:var(--font); font-size:15px;
          cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
  .back:hover { color:var(--ink); }

  /* ---------- the generated routine ---------- */
  .plan { border:1px solid var(--hair); border-radius:16px; overflow:hidden; margin-top:34px; background:#fff; }
  .plan-head { background:var(--ink-deep); color:#fff; padding:26px 28px; }
  .plan-head h3 { color:#fff; font-size:23px; margin-bottom:6px; }
  .plan-head p { color:rgba(255,255,255,.7); font-size:14.5px; }
  .phase { border-top:1px solid var(--hair); }
  .phase-h {
    display:flex; align-items:baseline; justify-content:space-between; gap:14px;
    padding:18px 28px 10px; background:var(--cream);
  }
  .phase-h b { font-size:13px; font-weight:700; letter-spacing:.15em; text-transform:uppercase; color:var(--brand); }
  .phase-h em { font-style:normal; font-size:13px; color:var(--muted); }
  .move { display:grid; grid-template-columns:78px 1fr; gap:18px; padding:16px 28px; border-top:1px solid var(--hair); }
  .move:first-of-type { border-top:0; }
  .move .t { font-size:14px; font-weight:700; color:var(--brand); font-variant-numeric:tabular-nums; }
  .move h4 { margin-bottom:4px; }
  .move p { font-size:15px; color:var(--muted); margin:0; }
  .move .why { display:block; margin-top:6px; font-size:13.5px; color:var(--brand); }
  @media (max-width:620px){ .move{grid-template-columns:1fr; gap:4px} }

  .plan-foot { padding:24px 28px; background:var(--cream); border-top:1px solid var(--hair); }
  .word { font-size:34px; font-weight:700; letter-spacing:-.02em; margin:4px 0 2px; }

  .actions { display:flex; gap:10px; flex-wrap:wrap; margin-top:26px; }

  @media print {
    .course-head, .nav-row, .actions, .site-footer, .no-print { display:none !important; }
    .step { display:none !important; }
    .step.on { display:block !important; padding:0 !important; }
    .plan { border:1px solid #999; }
    .plan-head { background:#fff !important; color:#000 !important; border-bottom:2px solid #000; }
    .plan-head h3, .plan-head p { color:#000 !important; }
    body { font-size:12pt; }
  }
  @media (prefers-reduced-motion: reduce){ .step.on{animation:none} }


/* ---------- daily prompt ---------- */
.daily-card {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
  padding: 10px 0;
}
.daily-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}
.daily-tag {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #fff;
  background: var(--brand);
  padding: 5px 11px;
  border-radius: 999px;
}
.daily-date {
  font-size: 13.5px;
  letter-spacing: .06em;
  color: var(--muted);
}
.daily-line {
  font-size: clamp(23px, 3.2vw, 34px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.daily-ask {
  margin-top: 22px;
  font-size: 17.5px;
  color: var(--muted);
  max-width: 52ch;
  margin-inline: auto;
}
.daily-foot {
  margin-top: 28px;
  font-size: 12.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--line);
}


/* ---------- mobile navigation ----------
   Below 960px the desktop nav is hidden, so without this there is no
   way to reach any other page from a phone. */
.nav-toggle {
  display: none;
  justify-self: end;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2.5px;
  width: 100%;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .25s ease, opacity .2s ease;
}
.home .site-header:not(.stuck) .nav-toggle span { background: #fff; }
.nav-toggle:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.nav-toggle[aria-expanded="true"] span { background: #fff; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav-panel {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--brand);
  display: grid;
  place-items: center;
  padding: 90px 28px 40px;
}
/* a class selector beats the browser's built-in [hidden] rule, so the
   panel needs to opt back out explicitly or it is always open */
.nav-panel[hidden] { display: none; }
.nav-panel nav { display: grid; gap: 4px; width: 100%; max-width: 380px; text-align: center; }
.nav-panel a {
  color: #fff;
  text-decoration: none;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -.02em;
  padding: 15px 10px;
  border-radius: 12px;
}
.nav-panel a:active { background: rgba(255,255,255,.14); }
.nav-panel a:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.nav-panel .panel-donate {
  margin-top: 18px;
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  border-radius: 999px;
}
body.nav-open { overflow: hidden; }

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .site-header .wrap { grid-template-columns: 1fr auto; gap: 14px; }
  .brandmark { justify-self: start; font-size: 18px; }
  .brandmark .mark { width: 36px; height: 36px; }
}
@media (min-width: 961px) {
  .nav-panel { display: none !important; }
}
