/* Test Retest PT. Borrowed from stuffthatsticks.co + /coaching/ on purpose:
   paper + grain, Figtree 800 headings, pencil-grey ledes, keycap buttons,
   lined index cards (red top line, blue rules), photo as a floating sticker.
   The 90s storybook part = primary red / blue / mustard on old paper. */
:root {
  --paper: #FFFCF0;
  --chrome: #F7F3E6;
  --ink: #282726;
  --pencil: #6f6e69;
  --red: #B8352A;        /* storybook red, AA on paper */
  --red-press: #7E2117;
  --blue: #2E58A6;       /* storybook blue, AA on paper */
  --yellow: #F2C230;     /* highlighter + shadows only, never text */
  --line: rgba(40, 39, 38, .14);
  --card-rule: 30px;
}
[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { background: var(--chrome); scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink);
  font: 18px/1.6 "Atkinson Hyperlegible", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
/* paper grain, same tile as the coaching page */
body::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .10;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)'/%3E%3C/svg%3E"); }

h1, h2, h3 { margin: 0 0 .45em; line-height: 1.15; letter-spacing: -.01em; text-wrap: pretty; }
h1 { font-size: clamp(2.1rem, 5vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 800; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--blue); text-underline-offset: 3px; }
mark { background: none; color: var(--blue); padding: 0; }
.wrap { max-width: 760px; margin: 0 auto; padding: 56px 24px; }
.muted { color: var(--pencil); }
.small { font-size: .9rem; }
.hp { position: absolute; left: -9999px; }

/* nav strip, one step down from the paper like the STS chrome */
.top { background: var(--chrome); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center;
  padding: 14px max(24px, calc((100vw - 1020px) / 2)); }
.mark { font-weight: 800; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.mark span { color: var(--red); }
.draft { font-size: .85rem; color: var(--pencil); }

/* hero: words left, photo floats like a sticker */
.hero { padding-top: 80px; padding-bottom: 48px; }
.hero-text { flex: 1 1 auto; }
.lede { font-size: 1.2rem; color: var(--pencil); }
.hero-photo { flex: 0 0 auto; width: clamp(200px, 28vw, 300px); height: auto; border: 8px solid #fff; border-radius: 22px;
  filter: drop-shadow(5px 8px 10px rgba(40, 39, 38, .22)); animation: float 6.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(1deg); } }
@media (prefers-reduced-motion: reduce) { .hero-photo { animation: none; transform: rotate(-2deg); } }
@media (max-width: 760px) { .hero { flex-direction: column-reverse; text-align: center; } .lede { margin: 0 auto; } }

/* keycap buttons, same component as STS */
.key { font: 700 1rem "Atkinson Hyperlegible", sans-serif; color: var(--ink); background: #fff; border: 1px solid #B7B5AC; border-radius: 6px;
  padding: 12px 22px; cursor: pointer; box-shadow: 0 3px 0 #B7B5AC; transition: transform .12s ease, box-shadow .12s ease; }
.key:hover { transform: translateY(1.5px); box-shadow: 0 1.5px 0 #B7B5AC; }
.key:active { transform: translateY(3px); box-shadow: 0 0 0 #B7B5AC; }
.key.on { background: var(--yellow); border-color: #A88516; box-shadow: 0 3px 0 #A88516; }
.key.primary { background: var(--red); border-color: var(--red-press); color: #fff; box-shadow: 0 3px 0 var(--red-press); }
.key.primary:hover { box-shadow: 0 1.5px 0 var(--red-press); }
.fork { text-align: center; padding-top: 24px; }
.fork-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin: 18px 0 12px; }

/* poll: plain rows, no boxes */
.poll-options { margin: 18px 0 26px; border-top: 1px solid var(--line); }
.poll-options label { display: block; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.poll-options input { margin-right: 10px; accent-color: var(--red); transform: scale(1.15); }
.bar { margin: 12px 0; }
.bar .label { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; }
.bar .track { height: 10px; background: rgba(40, 39, 38, .08); border-radius: 6px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--blue); }
.bar.mine .label { font-weight: 700; }

/* stories + lists: plain, no cards (Simie, 12/3) */
.ticks { list-style: none; padding: 0; margin: 24px 0; }
.ticks li { margin: 0 0 .9em; }
.story { padding: 28px 0 8px; border-top: 1px solid var(--line); }
.story h3 { color: var(--red); font-size: 1.3rem; }

/* about */
.about { display: grid; grid-template-columns: 150px 1fr; gap: 32px; align-items: start; }
.about img { width: 150px; height: 150px; object-fit: cover; border-radius: 50%; border: 6px solid #fff;
  filter: drop-shadow(3px 5px 6px rgba(40, 39, 38, .2)); transform: rotate(3deg); }
@media (max-width: 700px) { .about { grid-template-columns: 1fr; } }

/* research: footnote-style */
.refs { padding-left: 1.1em; font-size: .95rem; color: var(--pencil); }
.refs li { margin: .5em 0; }

/* offers: a menu, not three matching boxes */
.cards { border-top: 2px solid var(--ink); }
.card { padding: 22px 0; border-bottom: 1px solid var(--line); }
.card h3 { font-size: 1.3rem; margin-bottom: .15em; }
.card .meta { color: var(--pencil); font-size: .95rem; margin-bottom: .6em; }
.card .price { font-weight: 700; color: var(--red); margin: 0; }

/* forms */
.stack { display: grid; gap: 14px; max-width: 520px; }
.stack label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
input, select, textarea { font: 400 1rem "Atkinson Hyperlegible", sans-serif; color: var(--ink); background: #fff; border: 1px solid #B7B5AC; border-radius: 6px; padding: 10px 12px; }
input:focus, select:focus, textarea:focus, .key:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.form-msg { min-height: 1.4em; font-weight: 600; }
.radio-row { display: flex; gap: 16px; flex-wrap: wrap; font-weight: 400; }

.foot { background: var(--chrome); border-top: 1px solid var(--line); max-width: none;
  padding-left: max(24px, calc((100vw - 760px) / 2)); padding-right: max(24px, calc((100vw - 760px) / 2)); }

/* goniometer bullets (Simie, 12/3) */
.ticks li, .refs li { position: relative; padding-left: 36px; }
.refs { list-style: none; padding-left: 0; }
.ticks li::before, .refs li::before { content: ""; position: absolute; left: 0; top: 3px; width: 26px; height: 26px;
  background: url(assets/goniometer.svg) no-repeat center / contain; }
.refs li::before { top: 1px; width: 22px; height: 22px; }

/* fair questions (hesitations), tap to open */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 700; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--red); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 14px; color: var(--ink); }

/* link out + email-your-manager draft */
.ext svg { margin-left: 4px; vertical-align: -1px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.email-draft { background: #fff; border: 1px solid #D9D5C7; border-radius: 6px; padding: 18px 20px; margin: 8px 0 16px; font-size: .95rem; }
.email-draft p { margin: 0 0 .8em; }
.email-draft p:last-child { margin-bottom: 0; }
.email-subject { padding-bottom: .8em; border-bottom: 1px solid var(--line); }
.email-url { color: var(--blue); word-break: break-all; }
.email-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
a.key { text-decoration: none; display: inline-block; }

/* about, in chapters (Simie, 12/3: not one big block) */
.about { display: block; }
.about-head { display: flex; gap: 28px; align-items: center; margin-bottom: 28px; }
.about-head img { width: 150px; height: 150px; flex: 0 0 auto; }
.about-head .lede { margin: 0; }
.chapters { display: grid; gap: 0; }
.chapter { display: grid; grid-template-columns: 150px 1fr; column-gap: 28px; }
.chapter > p:not(.chapter-label) { grid-column: 2; }
.chapter .chapter-label { grid-column: 1; grid-row: 1 / span 3; }
.chapter { padding: 18px 0; border-top: 1px solid var(--line); }
.chapter p { font-size: 1rem; margin-bottom: .7em; }
.chapter-label { font-weight: 800; color: var(--red); font-size: .95rem !important; margin-bottom: .4em !important; }
.pull { margin: 36px 0 0; padding: 0; text-align: center; }
.pull p { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; line-height: 1.25; margin: 0 auto .4em; max-width: 620px; }
.pull p::before { content: "\201C"; color: var(--yellow); }
.pull p::after { content: "\201D"; color: var(--yellow); }
.pull cite { font-style: normal; color: var(--pencil); }
@media (max-width: 700px) { .chapter { grid-template-columns: 1fr; } .chapter > p:not(.chapter-label), .chapter .chapter-label { grid-column: 1; grid-row: auto; } .about-head { flex-direction: column; text-align: center; } }

/* blood pressure cuff: the needle climbs as you read the DVT story */
.vis-wrap { float: right; width: 160px; margin: 4px 0 12px 28px; text-align: center; }
.story::after { content: ""; display: block; clear: both; }
.gauge { width: 140px; height: 140px; filter: drop-shadow(2px 4px 6px rgba(40, 39, 38, .18)); }
.needle { transform-origin: 60px 60px; transform: rotate(-135deg); transition: transform .25s ease-out; }
.vis-label { font-size: .85rem; font-weight: 700; color: var(--pencil); margin-top: 6px; }
.gauge-wrap.hot .gauge-label { color: var(--red); }
@media (max-width: 700px) {
  .vis-wrap { width: 96px; margin-left: 14px; }
  .gauge, .lungs { width: 88px !important; height: 88px !important; }
  .vis-label { font-size: .75rem; }
}

/* therabands: poll results stretch out like resistance bands */
.bar .track { height: 16px; background: transparent; border-radius: 0; overflow: visible; }
.bar .fill { height: 12px; margin-top: 2px; border-radius: 8px; width: 0 !important;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .12), inset 0 2px 0 rgba(255, 255, 255, .35);
  transition: width 1.1s cubic-bezier(.34, 1.56, .64, 1); }
.bar.stretched .fill { width: var(--w) !important; }
.band-yellow { background: #F2C230; } .band-red { background: #C8382B; } .band-green { background: #3E8E4E; }
.band-blue { background: #2E58A6; } .band-black { background: #282726; } .band-silver { background: #A8A9AD; } .band-gold { background: #C9A227; }
@media (prefers-reduced-motion: reduce) { .bar .fill, .needle { transition: none; } }

/* test retest PT side */
.trpt-cta { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--ink); }
.trpt-cta h3 { font-size: 1.4rem; }

/* the clue line in each story */
.clue { font-weight: 700; }
.clue span { display: inline-block; color: var(--red); font-size: .8rem; font-weight: 800; margin-right: 8px; transform: translateY(-1px); }
.clue { font-size: 1.1rem; padding: 10px 0 14px; border-bottom: 1px dashed var(--line); margin-bottom: 1em; }

/* breathing: 4 seconds in, 6 seconds out */
.breath { position: relative; width: 140px; height: 140px; margin: 0 auto; }
.breath-ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--ink); background: #fff; filter: drop-shadow(2px 4px 6px rgba(40, 39, 38, .18)); }
.breath-core { position: absolute; inset: 18%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #8FB0E0, var(--blue)); animation: breathe 10s ease-in-out infinite; }
@keyframes breathe { 0% { transform: scale(.45); } 40% { transform: scale(1); } 100% { transform: scale(.45); } }
.breath-wrap .vis-label { position: relative; height: 1.4em; }
.breath-wrap .vis-label span { position: absolute; left: 0; right: 0; }
.vis-label .in { animation: lbl-in 10s infinite; }
.vis-label .out { animation: lbl-out 10s infinite; }
@keyframes lbl-in { 0%, 38% { opacity: 1; } 42%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes lbl-out { 0%, 38% { opacity: 0; } 42%, 96% { opacity: 1; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .breath-core { animation: none; transform: scale(.75); } .vis-label .in, .vis-label .out { animation: none; } .vis-label .out { opacity: 0; } }

/* origin story: the featured block in the about section */
.origin { margin: 8px 0 36px; }
.origin h3 { font-size: 1.6rem; }
.origin .big { font-size: 1.35rem; font-weight: 800; }
.aside { margin-top: 32px; font-size: .95rem; color: var(--pencil); }

/* lungs breathe: 4 s in, 6 s out, each lung grows outward from the bronchus */
.lungs { width: 140px; height: 140px; filter: drop-shadow(2px 4px 6px rgba(40, 39, 38, .15)); overflow: visible; }
.lung-l { transform-origin: 55px 44px; animation: lung 10s ease-in-out infinite; }
.lung-r { transform-origin: 65px 44px; animation: lung 10s ease-in-out infinite; }
@keyframes lung { 0%, 100% { transform: scale(.88, .9); } 40% { transform: scale(1.06, 1.05); } }
@media (prefers-reduced-motion: reduce) { .lung-l, .lung-r { animation: none; } }

/* travel PTs + stepped-back PTs */
.also { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 36px; margin-top: 28px; }
.also > div { border-top: 1px solid var(--line); padding-top: 18px; }
.also p { font-size: 1rem; }
@media (max-width: 700px) { .also { grid-template-columns: 1fr; } }

/* the story page */
.story-page section { padding: 28px 0 8px; border-top: 1px solid var(--line); margin-top: 20px; }
.story-page h1 { margin-bottom: .3em; }
.story-page .big { font-size: 1.35rem; font-weight: 800; }
.story-page .pull { margin: 24px 0; }

/* test retest PT self-check: everything starts checked */
li { text-wrap: pretty; }
.check-hint { margin: 18px 0 6px; }
.checklist { border-top: 1px solid var(--line); }
.checklist label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; transition: color .2s; }
.checklist input { margin-top: 5px; accent-color: var(--red); transform: scale(1.25); flex: 0 0 auto; }
.checklist label:has(input:not(:checked)) span { color: var(--pencil); text-decoration: line-through; text-decoration-color: rgba(40, 39, 38, .3); }
.check-score { font-weight: 800; font-size: 1.15rem; margin-top: 18px; }
.check-score .n { color: var(--blue); }

/* nothing role-specific shows until a lens is picked */
body:not(.has-role) [data-for] { display: none; }

/* entry question, like an age gate */
.gate { position: fixed; inset: 0; z-index: 1000; background: rgba(40, 39, 38, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px; }
.gate[hidden] { display: none !important; }
body.gated { overflow: hidden; }
.gate-card { background: var(--paper); border-radius: 14px; max-width: 560px; width: 100%; padding: 36px 32px 30px; text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.gate-mark { font-weight: 800; margin: 0 0 18px; }
.gate-mark span { color: var(--red); }
.gate-card h2 { margin-bottom: 20px; }
.gate-q { font-weight: 700; font-size: 1.15rem; margin-bottom: 18px; }
.gate-buttons { display: grid; gap: 12px; }
.gate-buttons.years { grid-template-columns: 1fr 1fr; }
.gate-buttons .key { width: 100%; }
.gate-skip { margin-top: 18px; background: none; border: 0; color: var(--pencil); font: 600 .95rem "Atkinson Hyperlegible", sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
@media (max-width: 480px) { .gate-buttons.years { grid-template-columns: 1fr; } .gate-card { padding: 28px 20px 24px; } }

/* lens toggle in the header */
.top { position: sticky; top: 0; z-index: 50; flex-wrap: wrap; gap: 8px 16px; }
.lens { display: flex; align-items: center; gap: 6px; font-size: .9rem; }
.lens-label { color: var(--pencil); margin-right: 4px; }
.lens .sep { color: var(--line); color: #CECDC3; }
.lens-btn { background: none; border: 0; padding: 4px 4px; font: 700 .9rem "Atkinson Hyperlegible", sans-serif; color: var(--pencil); cursor: pointer; border-bottom: 2px solid transparent; }
.lens-btn:hover { color: var(--ink); }
.lens-btn.on { color: var(--ink); border-bottom-color: var(--red); }
@media (max-width: 600px) { .lens-label { display: none; } .top { justify-content: center; } }

/* test retest clinic invite */
.clinic-cta { border-top: 2px solid var(--ink); }

/* site nav (12/3): logo left, links right; home page adds the lens row under it */
.top { flex-direction: column; align-items: stretch; gap: 8px; }
.top-row, .top:not(:has(.top-row)) { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; }
.top:not(:has(.top-row)) { flex-direction: row; }
.site-nav { display: flex; align-items: center; gap: 8px; font-size: .95rem; font-weight: 700; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 2px 2px; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--red); }
.site-nav .sep, .lens .sep { color: #CECDC3; }

@media (max-width: 600px) { .top-row, .top:not(:has(.top-row)) { justify-content: center; } .lens { justify-content: center; } .site-nav { font-size: .88rem; } }

/* anchors land below the pinned header */
[id] { scroll-margin-top: 130px; }

/* lens rail: an eye on the right edge; hover (or tap) to see the three lenses */
.lens-rail { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 900;
  background: rgba(17, 19, 20, .72); border: 1px solid rgba(255, 252, 240, .16); border-radius: 10px; padding: 8px 6px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px; transition: background .2s ease; }
.lens-rail .eye, .lens-rail .lens-btn { display: flex; flex-direction: row-reverse; align-items: center; gap: 0; background: none; border: 0;
  padding: 6px 6px; border-radius: 6px; color: rgba(252, 248, 238, .75); font: 700 13px/1.2 "Atkinson Hyperlegible", sans-serif; cursor: pointer; white-space: nowrap; }
.lens-rail .eye { color: #F5ECC2; }
.lens-opts { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lens-rail .lens-btn::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid currentColor; margin: 0 6px; }
.lens-rail .lens-btn.on { color: #F5ECC2; }
.lens-rail .lens-btn.on::before { background: currentColor; }
.lens-rail .lens-btn:hover, .lens-rail .eye:hover { background: rgba(255, 252, 240, .1); }
.rail-label { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .25s ease, opacity .25s ease, margin .25s ease; }
.lens-rail:hover, .lens-rail:focus-within, .lens-rail.open { background: rgba(17, 19, 20, .88); }
.lens-rail:hover .rail-label, .lens-rail:focus-within .rail-label, .lens-rail.open .rail-label { max-width: 170px; opacity: 1; margin-right: 8px; }
.lens-rail .lens-btn:focus-visible, .lens-rail .eye:focus-visible { outline: 2px solid #FFFCF0; outline-offset: 1px; }
body:not(.has-role) .lens-rail { display: none; }
@media (max-width: 700px) { .lens-rail { top: auto; bottom: 84px; transform: none; right: 10px; } }
@media (prefers-reduced-motion: reduce) { .rail-label { transition: none; } }
.lens-rail .lens-btn, .lens-rail .lens-btn.on { border-bottom: 0; }

/* the red slash, like the logo (plain <span> so it survives the editor) */
h1 span, h2 span { color: var(--red); }

/* gate extras: patient (coming soon) + back */
.gate .key.soon { color: var(--pencil); }
.gate .key.soon small { font-weight: 600; }
.gate-back { display: inline-block; }
#gatePatient p:not(.gate-q) { color: var(--pencil); margin-bottom: 18px; }
#gateOpts .key:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Picture this */
.vision { border-top: 2px solid var(--ink); }

/* photos on the story page */
.photo { margin: 28px 0; }
.photo img { width: 100%; height: auto; border-radius: 10px; border: 6px solid #fff; filter: drop-shadow(3px 6px 10px rgba(40, 39, 38, .2)); transform: rotate(-.6deg); }
.photo figcaption { margin-top: 12px; color: var(--pencil); font-size: .95rem; text-align: center; }
.photo figcaption strong { color: var(--ink); }

/* ===== navigation v2 (12/3): View as menu up top, "on this page" rail on the right ===== */
.lens-rail { display: none !important; }
.site-nav a.here { border-bottom-color: var(--red); }
.viewas { position: relative; }
.viewas-btn { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #B7B5AC; border-radius: 6px;
  box-shadow: 0 2px 0 #B7B5AC; padding: 6px 10px; font: 700 .9rem "Atkinson Hyperlegible", sans-serif; color: var(--ink); cursor: pointer; }
.viewas-btn b { color: var(--red); font-weight: 800; }
.viewas-btn svg { color: var(--blue); }
.viewas-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; min-width: 200px; background: #fff; border: 1px solid #D9D5C7;
  border-radius: 8px; box-shadow: 0 10px 30px rgba(40, 39, 38, .18); padding: 6px; display: grid; }
.viewas-menu[hidden] { display: none; }
.viewas-menu button, .viewas-menu a { text-align: left; background: none; border: 0; border-radius: 6px; padding: 10px 12px;
  font: 700 .95rem "Atkinson Hyperlegible", sans-serif; color: var(--ink); text-decoration: none; cursor: pointer; border-bottom: 0 !important; }
.viewas-menu button:hover, .viewas-menu a:hover { background: var(--chrome); }
.viewas-menu button.on { color: var(--red); }
.viewas-menu button.on::after { content: " \2713"; }

/* chapter rail (from /coaching/): dots, hover for labels, current one highlighted */
.chap { position: fixed; right: 12px; top: 50%; transform: translateY(-50%); z-index: 40; display: none;
  background: rgba(17, 19, 20, .6); border: 1px solid rgba(255, 252, 240, .16); border-radius: 8px; padding: 8px 6px; transition: background .2s ease; }
.chap ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.chap button { display: flex; flex-direction: row-reverse; align-items: center; gap: 0; margin-left: auto; background: none; border: 0; padding: 6px 5px;
  border-radius: 5px; font: 600 13px/1.2 "Atkinson Hyperlegible", sans-serif; color: rgba(252, 248, 238, .55); text-align: right; cursor: pointer; white-space: nowrap; }
.chap button span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .2s ease, opacity .2s ease; }
.chap button::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 2px; border: 1.5px solid currentColor; box-sizing: border-box; }
.chap:hover, .chap:focus-within { background: rgba(17, 19, 20, .88); padding: 8px 6px 8px 12px; }
.chap:hover button span, .chap:focus-within button span { max-width: 170px; opacity: 1; }
.chap:hover button, .chap:focus-within button { gap: 10px; }
.chap button:hover { color: #F5ECC2; background: rgba(255, 252, 240, .08); }
.chap button.now { color: #F5ECC2; }
.chap button.now::before { background: #F5ECC2; border-color: #F5ECC2; width: 11px; height: 11px; margin: 0 -1.5px; }
@media (min-width: 1100px) { body.has-role .chap { display: block; } }
/* phones/tablets: a thin reading-progress bar under the header instead */
.progress { position: sticky; top: 0; height: 3px; z-index: 49; background: rgba(40, 39, 38, .06); display: none; }
.progress::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--p, 0%); background: var(--blue); }
@media (max-width: 1099px) { body.has-role .progress { display: block; } }
@media (max-width: 600px) { .viewas-btn { font-size: .85rem; } .site-nav { flex-wrap: wrap; justify-content: center; } }
.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }

/* ===== nature palette (12/3): "nature's color palette is amazing" — from the ridge hike =====
   Proportions like the view: mostly green, then ocean blue, then rock grays,
   with small accents of sand, whitewash and light leaf green.
   All text pairs pass WCAG AA (checked): ink/paper 14:1, pencil/paper 6:1,
   green/paper 6.5:1, ocean/paper 5.5:1, mist/forest 11:1, leaf/forest 7.9:1. */
:root {
  --paper: #F3F5EE;      /* whitewash mist */
  --chrome: #E3EADB;     /* pale ridge green, header + bands */
  --ink: #1F2622;        /* dark rock */
  --pencil: #55605A;     /* gray rock */
  --red: #1A625C;        /* (name kept) deep Flexoki-style green: accents, labels, buttons */
  --red-press: #0F403B;
  --blue: #2B6A80;       /* ocean: links, poll, highlights */
  --yellow: #B9D98C;     /* (name kept) light leaf green: decorative only */
  --forest: #1F3A2C;     /* the mountain: big green bands */
  --leaf: #B9D98C;
  --sand: #E6D9BC;
  --line: rgba(31, 58, 44, .16);
}
html { background: var(--forest); }
/* hero = a full-width forest band, like standing in front of the ridge */
.hero { background: var(--forest); color: var(--paper); box-shadow: 0 0 0 100vmax var(--forest); clip-path: inset(0 -100vmax); padding-top: 72px; padding-bottom: 64px; }
.hero h1 { color: var(--paper); }
.hero .lede { color: #C9D6CC; }
.hero mark { color: var(--leaf); }
/* footer = forest again, so the page starts and ends on the mountain */
.foot { background: var(--forest); color: var(--paper); border-top: 0; }
.foot .muted { color: #C9D6CC; }
.foot a { color: var(--leaf); }
/* sand + whitewash accents */
.key.on, .gate .key:focus-visible { background: var(--leaf); border-color: #6E8F48; box-shadow: 0 3px 0 #6E8F48; }
.photo img { border-color: #fff; }
.pull p::before, .pull p::after { color: var(--blue); }
.email-draft { background: #FBFCF8; border-color: #D3DCCB; }
.viewas-btn svg { color: var(--blue); }
.gate-card { background: var(--paper); }
.gate { background: rgba(31, 58, 44, .6); }
.progress::after { background: var(--leaf); }
.progress { background: rgba(31, 58, 44, .15); }

/* intake form: one question per screen (setup inspired by taylorpenton.com/pages/contact, framed as a PT intake) */
.intake-boot { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 600 .8rem "Atkinson Hyperlegible", sans-serif; color: var(--pencil); margin-bottom: 14px; }
.intake-boot span:first-child { color: var(--red); font-weight: 800; }
.intake-boot span:last-child { color: var(--ink); }
.intake-card { background: #FBFCF8; border: 1px solid #D3DCCB; border-radius: 10px; padding: 26px 26px 20px; margin-top: 18px; min-height: 260px; }
.intake-step { font: 700 .85rem "Atkinson Hyperlegible", sans-serif; color: var(--red); margin: 0 0 8px; }
.intake-card h3 { font-size: 1.45rem; margin-bottom: .3em; }
.intake-help { color: var(--pencil); font-size: .98rem; }
.intake-opts { display: grid; gap: 10px; margin: 16px 0 6px; }
.intake-opt { display: flex; align-items: center; gap: 12px; text-align: left; background: #fff; border: 1px solid #B7C0B3; border-radius: 6px; box-shadow: 0 2px 0 #B7C0B3;
  padding: 12px 14px; font: 600 1rem "Atkinson Hyperlegible", sans-serif; color: var(--ink); cursor: pointer; transition: transform .1s, box-shadow .1s; }
.intake-opt:hover { transform: translateY(1px); box-shadow: 0 1px 0 #B7C0B3; border-color: var(--red); }
.intake-opt.picked { border-color: var(--red); background: #EAF2E3; }
.kbd { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #B7C0B3; border-radius: 4px; font: 700 .8rem "Atkinson Hyperlegible", sans-serif; color: var(--pencil); background: var(--paper); }
.intake-hint { font: 600 .8rem "Atkinson Hyperlegible", sans-serif; color: var(--pencil); margin: 6px 0 0; }
.intake-text { width: 100%; margin-top: 12px; font: 400 1rem/1.5 "Atkinson Hyperlegible", sans-serif; }
.intake-contact { display: grid; gap: 12px; margin-top: 12px; }
.intake-contact label { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
.intake-contact .intake-check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.intake-check input { accent-color: var(--red); transform: scale(1.2); }
.intake-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
@media (max-width: 600px) { .intake-card { padding: 20px 16px 16px; } }

/* ===== more sky, ocean and rock (12/3): straight from the hike photos =====
   cloud-sky background, cloud-gray chrome, bay-water bands, deep-ocean footer,
   ocean buttons, turquoise + sand accents. Green stays for the mountain (hero) and labels.
   All text pairs AA: ink/sky 13:1, pencil/sky 5.8:1, ocean/sky 5.3:1, white on ocean 6:1, sky on deep ocean 8.5:1. */
:root {
  --paper: #EEF1F2;      /* overcast sky */
  --chrome: #DDE3E6;     /* cloud gray */
  --ink: #22292C;        /* wet rock */
  --pencil: #555E63;     /* cliff gray */
  --bay: #E2EEF0;        /* bay water, pale */
  --deep: #1F4A5A;       /* deep ocean */
  --turq: #9FD3DE;       /* reef turquoise (decor / on dark) */
  --line: rgba(34, 41, 44, .14);
}
html { background: var(--deep); }
/* bay-water bands behind the interactive sections */
.poll, .vision, .interest { background: var(--bay); box-shadow: 0 0 0 100vmax var(--bay); clip-path: inset(0 -100vmax); }
/* buttons are ocean now; green stays for labels and the mountain */
.key.primary { background: var(--blue); border-color: var(--deep); box-shadow: 0 3px 0 var(--deep); }
.key.primary:hover { box-shadow: 0 1.5px 0 var(--deep); }
.key.on, .gate .key:focus-visible { background: var(--turq); border-color: #5E9FB0; box-shadow: 0 3px 0 #5E9FB0; }
/* footer = deep ocean, so the page goes mountain (top) → sky → ocean (bottom) */
.foot { background: var(--deep); }
.foot a { color: var(--turq); }
.foot .muted { color: #C5D6DC; }
.top { border-bottom-color: rgba(34, 41, 44, .12); }
.bar .fill.band-blue { background: var(--blue); }
.intake-card, .email-draft { background: #F7F9FA; border-color: #CBD5D9; }
.intake-opt.picked { background: var(--bay); border-color: var(--blue); }
.intake-opt:hover { border-color: var(--blue); }
.progress::after { background: var(--turq); }
.pull p::before, .pull p::after { color: #C9B48A; }   /* sand */
.photo img { border-color: #fff; }
.chap { background: rgba(31, 74, 90, .7); }
.chap:hover, .chap:focus-within { background: rgba(31, 74, 90, .92); }
.gate { background: rgba(31, 74, 90, .55); }

/* layout + AA fixes (12/3 audit with real screenshots) */
/* footer lines up with every section: same 760px column as .wrap, full-bleed deep-ocean band behind it */
.foot { max-width: 760px; margin: 0 auto; padding-left: 24px; padding-right: 24px;
  box-shadow: 0 0 0 100vmax var(--deep); clip-path: inset(0 -100vmax); }
/* nav dividers were 1.2:1; now cliff gray, and hidden from screen readers */
.site-nav .sep, .lens .sep { color: var(--pencil); }
/* phones: View as wraps to its own line, so drop the divider before it */
@media (max-width: 600px) { .sep-viewas { display: none; } }
/* poll answers: text wraps beside the checkbox, not under it */
.poll-options label { display: flex; gap: 10px; align-items: flex-start; }
.poll-options input { margin: 5px 0 0; flex: none; }

/* how it works */
.how { background: var(--bay); box-shadow: 0 0 0 100vmax var(--bay); clip-path: inset(0 -100vmax); }
.how-steps { padding-left: 1.3em; }
.how-steps li { margin: 0 0 1em; padding-left: .3em; }
.how-steps li::marker { font-weight: 800; color: var(--red); }
.how-fine { font-size: .98rem; color: var(--pencil); border-top: 1px solid var(--line); padding-top: 14px; }

/* ===== type (12/3, Simie picked "A"): Jost (the NASA one) for headlines, the logo, nav and buttons;
   Atkinson Hyperlegible (Braille Institute) for reading, labels and numbers. Sweetheart = Simie's own notes only. ===== */
h1, h2, h3, .mark, .site-nav, .site-nav a, .viewas-btn, .viewas-menu button, .viewas-menu a, .key, .btn, .lens-btn,
.gate-mark, .gate-card h2, .chap button, .intake-card h3, .story h3, .card h3, .pull p, .origin h3, summary {
  font-family: Sora, "Atkinson Hyperlegible", sans-serif; }
h1, h2 { font-weight: 700; letter-spacing: -.005em; }
h3, .story h3, .card h3 { font-weight: 700; }
.key, .viewas-btn, .site-nav a { font-weight: 600; }
.mark { font-weight: 700; }
.intake-boot, .intake-step, .intake-hint, .kbd { letter-spacing: .01em; }

/* ===== hero = the whole first screen, with the test and retest loop (12/3) ===== */
.hero { max-width: 1120px; min-height: calc(100svh - 62px); display: flex; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: center; width: 100%; }
.hero-copy h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); }
.hero-loopnote { color: var(--paper); font-size: 1.05rem; margin-top: 22px; }
.hero-fine { color: #C9D6CC; font-size: .95rem; border-left: 0; padding-top: 12px; border-top: 1px solid rgba(238, 241, 242, .2); }
.loop { margin: 0; text-align: center; }
.loop-svg { width: 100%; max-width: 420px; height: auto; overflow: visible; }
.loop-track { fill: none; stroke: rgba(238, 241, 242, .18); stroke-width: 4; }
.loop-run { fill: none; stroke: var(--leaf); stroke-width: 4; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 160px 160px; transition: stroke-dashoffset .8s ease; }
.loop-node { cursor: pointer; outline: none; }
.loop-node circle { fill: var(--forest); stroke: rgba(238, 241, 242, .55); stroke-width: 2.5; transition: fill .3s, stroke .3s, r .3s; }
.loop-node.done circle { fill: #2E5240; stroke: var(--leaf); }
.loop-node.on circle { fill: var(--leaf); stroke: var(--leaf); r: 18; }
.loop-node:focus-visible circle { stroke: #fff; stroke-width: 4; }
.loop-num { font: 700 14px "Atkinson Hyperlegible", sans-serif; fill: var(--paper); text-anchor: middle; pointer-events: none; }
.loop-node.on .loop-num { fill: var(--forest); }
.loop-label { font: 600 14px Sora, sans-serif; fill: #C9D6CC; }
.loop-node.on .loop-label { fill: var(--leaf); font-weight: 700; }
.loop-center { font: 700 22px Sora, sans-serif; fill: var(--paper); text-anchor: middle; }
.loop-center .slash { fill: var(--leaf); }
.loop-sub { font: 400 13px "Atkinson Hyperlegible", sans-serif; fill: #C9D6CC; text-anchor: middle; }
.loop-cap { min-height: 96px; max-width: 420px; margin: 8px auto 0; text-align: left; }
.loop-step { font: 700 1rem Sora, sans-serif; color: var(--leaf); margin: 0 0 4px; }
.loop-text { color: var(--paper); margin: 0; }
.loop-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }   /* screen readers get the whole list */
@media (max-width: 900px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .loop-svg { max-width: 340px; }
}
@media (max-width: 760px) { .hero { text-align: left; } }
/* hero layout v2: copy + notes on the left, loop on the right (desktop); copy, loop, notes (phones) */
.hero-grid { grid-template-columns: 1fr 1.05fr; grid-template-areas: "copy loop" "notes loop"; row-gap: 0; }
.hero-copy { grid-area: copy; align-self: end; }
.hero-notes { grid-area: notes; align-self: start; }
.loop { grid-area: loop; }
.loop-svg { max-width: 480px; }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; grid-template-areas: "copy" "loop" "notes"; row-gap: 20px; }
  .loop-svg { max-width: 420px; }
}
/* header lines up with the wider hero */
.top { padding-left: max(24px, calc((100vw - 1120px) / 2 + 24px)); padding-right: max(24px, calc((100vw - 1120px) / 2 + 24px)); }
/* bigger loop labels so they stay readable when the drawing shrinks on phones */
.loop-label { font-size: 19px; }
.loop-num { font-size: 16px; }
.loop-center { font-size: 26px; }
.loop-sub { font-size: 15px; }
.loop-svg { max-width: 540px; }
@media (max-width: 900px) { .loop-svg { max-width: 460px; } }
/* travel PTs + stepped-back PTs: stacked full width (side by side went lopsided once the recruiter email landed in one column) */
.also { grid-template-columns: 1fr; gap: 0; }
.also > div { padding: 22px 0 6px; }
.also > div:last-child { border-bottom: 1px solid var(--line); }
/* the hero band = the actual mountain behind the four of them (sampled from day-it-came-to-be.jpg: mossy olive, #313628 / #394930 / #4F5E3F) */
:root { --forest: #36412F; }
.loop-node circle { fill: #36412F; }
.loop-node.done circle { fill: #4A5840; }

/* EMR vision page */
.emr-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 44px; align-items: center; width: 100%; }
.emr-eyebrow { color: var(--leaf) !important; }
.emr-join { background: #F7F9FA; color: var(--ink); border-radius: 12px; padding: 22px 22px 18px; display: grid; gap: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .25); }
.emr-join label { display: grid; gap: 4px; font-weight: 700; font-size: .95rem; }
.emr-join .intake-check { display: flex; gap: 10px; align-items: center; font-weight: 400; }
.emr-join-title { font: 700 1.3rem Sora, sans-serif; margin: 0; }
.emr-join-sub { color: var(--pencil); margin: 0 0 4px; font-size: .95rem; }
.emr-page .also { grid-template-columns: 1fr 1fr 1fr; gap: 24px; }
.emr-page .also > div { border-bottom: 0; }
@media (max-width: 900px) { .emr-hero-grid, .emr-page .also { grid-template-columns: 1fr; } }
.emr-join { align-self: center; }

/* ===== type v3 (12/3, Simie picked Sora "A"): Sora Light headlines with tight tracking (airy, curious),
   Sora semibold for subheads, nav and buttons; Atkinson Hyperlegible stays for reading. ===== */
h1, h2, .gate-card h2 { font-family: Sora, sans-serif; font-weight: 300; letter-spacing: -.035em; }
h1 { line-height: 1.05; }
h2 { line-height: 1.12; }
h3, .story h3, .card h3, .intake-card h3, .origin h3 { font-family: Sora, sans-serif; font-weight: 600; letter-spacing: -.015em; }
.mark, .site-nav a, .viewas-btn, .key, .btn, .chap button, summary, .loop-step, .emr-join-title { font-family: Sora, sans-serif; }
.mark { font-weight: 600; letter-spacing: -.02em; }
.key, .viewas-btn, .site-nav a { font-weight: 600; letter-spacing: -.01em; }
.hero h1 mark { font-weight: 400; }
.pull p { font-family: Sora, sans-serif; font-weight: 300; letter-spacing: -.02em; }
.origin .big, .story-page .big { font-family: Sora, sans-serif; font-weight: 400; letter-spacing: -.02em; }
.loop-label, .loop-center { font-family: Sora, sans-serif; }

/* common sense + where did you learn it + share */
.common h3 { margin-top: 28px; }
.learned { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.learned-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.learned-opts .key { text-align: left; }
@media (max-width: 600px) { .learned-opts { grid-template-columns: 1fr; } }
.share { background: var(--bay); box-shadow: 0 0 0 100vmax var(--bay); clip-path: inset(0 -100vmax); }
.share-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 16px 0 8px; }
.share-row a.key { text-decoration: none; }
.share .email-block { margin-top: 20px; }
/* the loop is a hexagon now: strong shape, six sides for six steps */
.loop-track { fill: rgba(185, 217, 140, .06); stroke: rgba(238, 241, 242, .2); stroke-width: 4; stroke-linejoin: round; }
.loop-run { fill: none; stroke: var(--leaf); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; transform: none; }
.loop-node polygon { fill: var(--forest); stroke: rgba(238, 241, 242, .55); stroke-width: 2.5; stroke-linejoin: round; transition: fill .3s, stroke .3s; }
.loop-node.done polygon { fill: #4A5840; stroke: var(--leaf); }
.loop-node.on polygon { fill: var(--leaf); stroke: var(--leaf); }
.loop-node:focus-visible polygon { stroke: #fff; stroke-width: 4; }
/* hexagon v2: bigger, and the step's words sit in the middle of it, centered both ways */
.loop-stage { position: relative; max-width: 600px; margin: 0 auto; }
.loop-svg { max-width: 600px; width: 100%; display: block; }
.loop-cap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 42%; min-height: 0;
  margin: 0; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.loop-step { font-size: 1.15rem; margin-bottom: 6px; }
.loop-text { font-size: 1rem; line-height: 1.45; }
@media (max-width: 600px) {
  /* on small phones the hexagon is too small to hold a sentence: words go back underneath */
  .loop-cap { position: static; transform: none; width: auto; text-align: left; margin-top: 4px; }
}
.loop-stage, .loop-svg { max-width: 660px; }
.loop-cap { width: 37%; }
@media (max-width: 600px) { .loop-label { font-size: 22px; } }
/* give the hexagon more of the hero */
.hero-grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.3fr); gap: 24px; }
.hero { max-width: 1240px; }
.loop-stage, .loop-svg { max-width: 760px; }
.loop-cap { width: 36%; }
.loop-step { font-size: 1.25rem; }
.loop-text { font-size: 1.05rem; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .loop-cap { position: static; transform: none; width: auto; text-align: left; margin-top: 4px; }
  /* phone nav: no dividers (they strand at line ends), just spacing */
  .site-nav .sep { display: none; }
  .site-nav { gap: 6px 14px; }
}
.top { padding-left: max(24px, calc((100vw - 1240px) / 2 + 24px)); padding-right: max(24px, calc((100vw - 1240px) / 2 + 24px)); }
/* the loop, up close */
.two-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 18px 0 8px; }
.two-ways > div { border-top: 2px solid var(--leaf); padding-top: 14px; }
@media (max-width: 700px) { .two-ways { grid-template-columns: 1fr; } }
.upclose .skipped { margin-top: 26px; }

/* ===== split into What it is + How it works pages (12/3) ===== */
.hero-eyebrow { color: var(--leaf) !important; }
.hero-simple { min-height: 0; padding-top: 72px; padding-bottom: 64px; max-width: 900px; }
.hero-simple .hero-copy { max-width: 760px; }
.hero-back { margin-top: 18px; } .hero-back a { color: var(--leaf); }
.for-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.for-card { display: grid; gap: 4px; padding: 18px 20px; background: #fff; border: 1px solid #C8D1D5; border-radius: 10px; color: var(--ink);
  text-decoration: none; box-shadow: 0 3px 0 #C8D1D5; transition: transform .12s, box-shadow .12s; }
.for-card:hover { transform: translateY(2px); box-shadow: 0 1px 0 #C8D1D5; }
.for-card strong { font: 600 1.15rem Sora, sans-serif; color: var(--red); }
.for-card span { color: var(--pencil); }
.for-card.yours { border-color: var(--red); box-shadow: 0 3px 0 var(--red); }
.for-card.yours strong::after { content: "  \2190 you"; color: var(--pencil); font: 600 .85rem "Atkinson Hyperlegible", sans-serif; }
@media (max-width: 700px) { .for-cards { grid-template-columns: 1fr; } }
.viewas-menu a.on { color: var(--red); } .viewas-menu a.on::after { content: " \2713"; }
.learned-sec .learned { margin-top: 0; padding-top: 0; border-top: 0; }
.hero-simple { max-width: 760px; }
/* hexagon hugs the right side of the hero, so the headline column breathes (Simie: fine if the chapter rail overlaps it) */
.hero { max-width: 1320px; }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; }
.loop { justify-self: end; width: 100%; }
.loop-stage { margin-right: -40px; margin-left: auto; }
.top { padding-left: max(24px, calc((100vw - 1320px) / 2 + 24px)); padding-right: max(24px, calc((100vw - 1320px) / 2 + 24px)); }
@media (max-width: 900px) { .loop-stage { margin-right: auto; } }

/* ===== accent = Simie's pink backpack + maroon hat from the ridge hike (12/3) =====
   pink #B8357A (white text 5.5:1, as text on sky 4.8:1) · maroon #742240 (white 10:1) */
:root { --pink: #B8357A; --maroon: #742240; }
.key.primary, .email-open.key.primary, .intake-nav .key.primary { background: var(--pink); border-color: var(--maroon); box-shadow: 0 3px 0 var(--maroon); color: #fff; }
.key.primary:hover { box-shadow: 0 1.5px 0 var(--maroon); }
.key.primary:active { box-shadow: 0 0 0 var(--maroon); }
/* nav uses the full width of the bar */
.top { padding-left: 32px !important; padding-right: 32px !important; }
@media (max-width: 600px) { .top { padding-left: 16px !important; padding-right: 16px !important; } }
/* the "How it works for" button: impossible to miss */
.viewas-btn { background: var(--pink); color: #fff; border: 1px solid var(--maroon); box-shadow: 0 3px 0 var(--maroon);
  padding: 9px 16px; font-size: .95rem; font-weight: 700; border-radius: 8px; }
.viewas-btn b, .viewas-btn .viewas-now { color: #fff; font-weight: 800; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; }
.viewas-btn svg { color: #fff; }
.viewas-btn:hover { transform: translateY(1.5px); box-shadow: 0 1.5px 0 var(--maroon); }
.viewas-menu a.on, .viewas-menu button.on { color: var(--pink); }
/* small pink touches: the selected intake option and the "you" card */
.intake-opt.picked, .for-card.yours { border-color: var(--pink); }
.for-card.yours { box-shadow: 0 3px 0 var(--pink); }
.poll-options input, .checklist input, .intake-check input { accent-color: var(--pink); }
/* every How it works page opens like the home page: full first screen, words left, the hexagon right */
.hero-grid .hero-copy .hero-back { margin-top: 22px; font-size: 1.05rem; }
.hero-grid .hero-copy .hero-back a { color: var(--leaf); font-weight: 700; }
/* phones/tablets: one column again (a later desktop rule was overriding this) */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr !important; grid-template-areas: "copy" "loop" "notes" !important; gap: 20px; }
  .loop, .loop-stage { justify-self: stretch; margin-left: auto; margin-right: auto; }
  .hero { min-height: 0; }
}

/* ===== palette v4 (12/3, Simie: "if it works in nature, it'll work here") =====
   Sampled from the three hike photos, used in their proportions: mostly green, then sea + sky,
   then rock + earth, then Simie (pink/maroon). Full palette + contrast checks: tools/palette.html */
:root {
  --ridge: #22301D; --moss: #36412F; --forest-green: #405A26; --fern: #5F7C3C; --lichen: #98936E;
  --leaf: #B9D98C; --pale-fern: #DCE6CF; --mist: #EEF2E8;
  --deep-sea: #2B6A80; --bay-blue: #96B4BC; --reef: #A5BFD1; --overcast: #E1E7EE;
  --basalt: #1C1E1A; --cliff: #504C39; --dirt: #8A4B2C; --sand: #C9B48A;
  /* the roles the rest of the stylesheet already uses */
  --paper: var(--mist); --chrome: var(--pale-fern); --ink: var(--basalt); --pencil: var(--cliff);
  --red: var(--forest-green); --blue: var(--deep-sea); --forest: var(--moss); --bay: var(--pale-fern);
  --deep: var(--ridge); --yellow: var(--leaf); --turq: var(--leaf);
  --line: rgba(34, 48, 29, .16);
}
html { background: var(--ridge); }
.top { border-bottom-color: rgba(34, 48, 29, .14); }
/* red dirt for the small "measured" moments */
.clue span, .intake-step, .how-steps li::marker, .card .price, .loop-step, .emr-eyebrow { color: var(--dirt); }
.hero .loop-step { color: var(--leaf); }
.pull p::before, .pull p::after { color: var(--sand); }
/* cards and drafts: a neutral light, so the greens around them do the talking */
.intake-card, .email-draft, .emr-join { background: #F8FAF5; border-color: #CBD6BF; }
.intake-opt.picked { background: var(--pale-fern); }
.key.on, .gate .key:focus-visible { background: var(--leaf); border-color: var(--fern); box-shadow: 0 3px 0 var(--fern); }
/* the footer is the ridge in shadow */
.foot { background: var(--ridge); box-shadow: 0 0 0 100vmax var(--ridge); }
.foot a { color: var(--leaf); }
.foot .muted { color: #C9D2BE; }
/* chapter rail + gate backdrop in mountain greens instead of ocean */
.chap { background: rgba(34, 48, 29, .72); }
.chap:hover, .chap:focus-within { background: rgba(34, 48, 29, .92); }
.gate { background: rgba(34, 48, 29, .6); }
.progress::after { background: var(--fern); }
.progress { background: rgba(34, 48, 29, .12); }
.two-ways > div { border-top-color: var(--fern); }
.bar .fill.band-blue { background: var(--deep-sea); }
.for-card { border-color: #C6D2B8; box-shadow: 0 3px 0 #C6D2B8; }

/* ===== palette v5 (12/3): sections live on the mountain greens (Simie: the mist wasn't working) =====
   Section backgrounds rotate Moss / Forest / Ridge shadow. Fern is too light for text on top (mist 4.2:1),
   so it's used for lines and accents only. Text on the greens: mist (6.8:1+), soft (5.5:1+), leaf (4.9:1+).
   Forms, cards and menus stay light, with dark text, so filling them in stays easy. */
body { background: var(--moss); }
main > section, .story-page > section {
  --sec-bg: var(--moss);
  background: var(--sec-bg) !important; box-shadow: 0 0 0 100vmax var(--sec-bg) !important; clip-path: inset(0 -100vmax) !important;
  --ink: #EEF2E8; --pencil: #D4DCCB; --red: var(--leaf); --blue: var(--leaf); --dirt: var(--leaf); --line: rgba(238, 242, 232, .18);
  color: var(--ink);
}
main > section:nth-of-type(3n+2) { --sec-bg: var(--forest-green); }
main > section:nth-of-type(3n)   { --sec-bg: var(--ridge); }
main > section:nth-of-type(3n+1) { --sec-bg: var(--moss); }
.story-page > section:nth-of-type(odd) { --sec-bg: var(--forest-green); }
.story-page > section:nth-of-type(even) { --sec-bg: var(--ridge); }
.story-page { background: var(--moss); }
main > section a:not(.key):not(.btn):not(.for-card), .story-page a:not(.key) { color: var(--leaf); }
main > section h1, main > section h2, main > section h3 { color: var(--ink); }
.story h3, .chapter-label, .clue span, .card .price, .intake-step, .how-steps li::marker { color: var(--leaf); }
/* light islands: forms, cards, menus, the entry card, buttons */
.intake-card, .email-draft, .for-card, .emr-join, .gate-card, .viewas-menu, .key, input, select, textarea, .learned-results .bar .label {
  --ink: #1C1E1A; --pencil: #504C39; --red: var(--forest-green); --blue: var(--deep-sea); --dirt: #8A4B2C; --line: rgba(34, 48, 29, .16);
}
.intake-card, .email-draft, .for-card, .emr-join, .gate-card { color: #1C1E1A; }
input, select, textarea { color: #1C1E1A; }
.for-card strong { color: var(--forest-green); } .for-card span { color: #504C39; }
.intake-step, .intake-card .intake-step { color: #8A4B2C; }
/* dark-ink drawings need to flip to light on the greens */
.ticks li::before, .refs li::before { filter: invert(1) brightness(1.7) sepia(.15); }
.bar .track { background: rgba(238, 242, 232, .14); }
.poll-options label, .checklist label { border-color: rgba(238, 242, 232, .18); }
.checklist label:has(input:not(:checked)) span { color: #AEB8A6; text-decoration-color: rgba(238, 242, 232, .35); }
.two-ways > div, .card, .also > div, .faq details, .chapter, .story { border-color: rgba(238, 242, 232, .18); }
.two-ways > div { border-top-color: var(--fern); }
.cards { border-top-color: var(--fern); }
.pull p::before, .pull p::after { color: var(--sand); }
.photo img { border-color: #EEF2E8; }
.key:not(.primary) { color: #1C1E1A; }
.story-page { color: #EEF2E8; padding-top: 56px; }
.story-page > h1 { color: #EEF2E8; }
.story-page > h1 span, h1 span { color: var(--leaf); }
.story-page > .chapter-label { color: var(--leaf); }
/* pink is ONLY the "How it works for" button now (Simie). Every other main button = leaf green with dark text (9.8:1). */
.key.primary, .email-open.key.primary, .intake-nav .key.primary, a.key.primary {
  background: var(--leaf) !important; color: #1C1E1A !important; border-color: var(--fern) !important; box-shadow: 0 3px 0 var(--fern) !important; }
.key.primary:hover { box-shadow: 0 1.5px 0 var(--fern) !important; }
.key.primary:active { box-shadow: 0 0 0 var(--fern) !important; }
.poll-options input, .checklist input, .intake-check input { accent-color: var(--fern); }
.intake-opt.picked, .for-card.yours { border-color: var(--fern); }
.for-card.yours { box-shadow: 0 3px 0 var(--fern); }

/* header v3: logo left · "How it works for" centered · links right */
.top-row, .top:not(:has(.top-row)) { display: grid !important; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px 20px; }
.top-row > .mark, .top > .mark { justify-self: start; }
.top-center { justify-self: center; }
.top-row > .site-nav, .top > .site-nav { justify-self: end; }
.top .viewas-menu { right: auto; left: 50%; transform: translateX(-50%); }
@media (max-width: 900px) {
  .top-row, .top:not(:has(.top-row)) { grid-template-columns: 1fr; justify-items: center; }
  .top-row > .site-nav, .top > .site-nav { justify-self: center; }
}

/* buttons = the trail you walk on (Simie): sand on the mountain greens, red dirt inside the light cards.
   sand: dark text 8.3:1, stands out 3.8 to 6.9:1 against the greens · red dirt: white text 6.7:1, 6.4:1 against the cards */
.key.primary, a.key.primary { background: #C9B48A !important; color: #1C1E1A !important; border-color: #8F7A4E !important; box-shadow: 0 3px 0 #8F7A4E !important; }
.key.primary:hover { box-shadow: 0 1.5px 0 #8F7A4E !important; }
.key.primary:active { box-shadow: 0 0 0 #8F7A4E !important; }
.intake-card .key.primary, .email-block .key.primary, .emr-join .key.primary, .gate-card .key.primary {
  background: #8A4B2C !important; color: #fff !important; border-color: #5C2F18 !important; box-shadow: 0 3px 0 #5C2F18 !important; }
.intake-card .key.primary:hover, .email-block .key.primary:hover, .emr-join .key.primary:hover { box-shadow: 0 1.5px 0 #5C2F18 !important; }
/* text links on the greens = leaf (already); inside light cards they stay deep sea for contrast */
.intake-card a, .email-draft a, .emr-join a { color: var(--deep-sea); }
/* the email buttons sit on the green under the draft, not inside it: sand, like the other trail buttons */
.email-block .key.primary { background: #C9B48A !important; color: #1C1E1A !important; border-color: #8F7A4E !important; box-shadow: 0 3px 0 #8F7A4E !important; }


/* ===== the mountain, v6 (12/3): same-family bands + foliage texture =====
   Moss and Forest clashed side by side (gray-green next to yellow-green), so bands now alternate Moss and
   deep moss (same hue, in shade); Forest is an accent only. Texture = three SVG noise layers: fine fuzz,
   leafy clumps, and big soft shadows, so the greens read "furry" like the ridge. Text sits above it, untouched. */
:root { --deep-moss: #2E3828; }
main > section:nth-of-type(odd)  { --sec-bg: var(--moss); }
main > section:nth-of-type(even) { --sec-bg: var(--deep-moss); }
.story-page > section:nth-of-type(odd)  { --sec-bg: var(--deep-moss); }
.story-page > section:nth-of-type(even) { --sec-bg: var(--moss); }
main > section, .story-page > section, .foot { position: relative; isolation: isolate; }
main > section::before, .story-page > section::before, .foot::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -100vmax; right: -100vmax; z-index: -1; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' seed='4'/%3E%3CfeColorMatrix values='0 0 0 0 .72  0 0 0 0 .85  0 0 0 0 .55  0 0 0 -2.4 1.25'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23f)'/%3E%3C/svg%3E"),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.16' numOctaves='3' seed='2'/%3E%3CfeColorMatrix values='0 0 0 0 .08  0 0 0 0 .12  0 0 0 0 .06  0 0 0 -3 1.7'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23m)'/%3E%3C/svg%3E"),
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420'%3E%3Cfilter id='c'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.032' numOctaves='5' seed='9'/%3E%3CfeColorMatrix values='0 0 0 0 .06  0 0 0 0 .09  0 0 0 0 .05  0 0 0 -3.4 2.1'/%3E%3C/filter%3E%3Crect width='420' height='420' filter='url(%23c)'/%3E%3C/svg%3E");
  opacity: .5;
}
.foot::before { opacity: .35; }
@media (prefers-reduced-transparency: reduce) { main > section::before, .story-page > section::before, .foot::before { display: none; } }
/* owner-only "First visit" button, bottom left (the ✎ Edit button lives bottom right) */
.fresh-btn { position: fixed; left: 20px; bottom: 20px; z-index: 2147482000; background: #F8FAF5; color: #1C1E1A !important;
  border: 1px solid #8F7A4E; border-radius: 8px; box-shadow: 0 3px 0 #8F7A4E; padding: 10px 14px; font: 700 14px Sora, sans-serif; text-decoration: none; }
.fresh-btn:hover { transform: translateY(1.5px); box-shadow: 0 1.5px 0 #8F7A4E; }

/* texture removed (Simie, 12/3: "really ugly") */
main > section::before, .story-page > section::before, .foot::before { display: none !important; }

/* no sideways scrolling, ever (12/3). The hexagon's -40px nudge overflowed on laptop widths, and the old
   texture layers stretched far past the edges. overflow-x: clip (not hidden) keeps the sticky header working. */
.loop-stage { margin-right: 0 !important; }
html, body { overflow-x: clip; }
main > section, .story-page > section, .foot { isolation: auto; }
.gate-note { margin: 18px 0 0; font-size: .88rem; color: var(--pencil); }
.for-card.yours-unsure strong::after { content: "  \2190 take the self-check"; }
#gateStyle .gate-buttons { grid-template-columns: 1fr; }

/* dividers out (12/3): they separated sections back when the page was one color; now the green bands do that.
   Kept: row lines inside lists you tap (poll, FAQ, self-check), because they show where each option starts. */
.story-page section, .story-page > section { border-top: 0 !important; margin-top: 0 !important; }
.story, .stories .story, .upclose .skipped { border-top: 0 !important; }
.chapter, .also > div, .also > div:last-child { border-top: 0 !important; border-bottom: 0 !important; }
.hero-fine { border-top: 0 !important; padding-top: 0 !important; }
.clue { border-bottom: 0 !important; padding-bottom: 4px !important; }
.trpt-cta, .clinic-in-work, .proof-words, .learned { border-top: 0 !important; }
.cards { border-top: 0 !important; } .card { border-bottom: 0 !important; }
.how-fine { border-top: 0 !important; }
.email-subject { border-bottom-color: rgba(34, 48, 29, .12); }
.vision, .clinic-cta, .share, .fork-you { border-top: 0 !important; }
.two-ways > div { border-top: 0 !important; padding-top: 0 !important; }
/* the TR/PT hexagon sits right of the wordmark, like Task Alignment's planet */
.mark { display: inline-flex; align-items: center; gap: 8px; }
.mark-hex { width: 28px; height: 28px; flex: none; }
/* prop placeholders (owner-only until the real drawings exist) */
.prop-ph { display: none; }
html.trpt-owner .prop-ph { display: grid; place-items: center; float: right; width: 160px; height: 120px; margin: 4px 0 12px 24px;
  border: 2px dashed var(--leaf); border-radius: 12px; color: var(--leaf); font: 600 .85rem Sora, sans-serif; text-align: center; padding: 10px; }
@media (max-width: 700px) { html.trpt-owner .prop-ph { width: 110px; height: 90px; margin-left: 12px; } }
/* header: links never wrap; the side columns size to their content so the long "PTs who want to grow" label fits */
.site-nav, .site-nav a { white-space: nowrap; }
@media (min-width: 901px) {
  .top-row, .top:not(:has(.top-row)) { grid-template-columns: auto 1fr auto !important; }
  .top-center { justify-self: center; }
}
@media (min-width: 901px) and (max-width: 1180px) { .site-nav { font-size: .88rem; gap: 6px; } .viewas-btn { font-size: .88rem; padding: 8px 12px; } }
.viewas-btn { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1060px) { .site-nav { font-size: .82rem; gap: 4px; } .viewas-btn { font-size: .82rem; padding: 7px 10px; } .mark { font-size: 1rem; } }

/* photos: no white borders, no tilt (Simie, 12/3); headshot square and bigger */
.photo img { border: 0 !important; transform: none !important; border-radius: 10px; }
.about-head { align-items: flex-start; }
.about-head img { width: 240px !important; height: 240px !important; border: 0 !important; border-radius: 10px !important; transform: none !important; object-fit: cover; }
@media (max-width: 700px) { .about-head img { width: 100% !important; max-width: 320px; height: auto !important; aspect-ratio: 1; } }
/* "Viewing as" button: one fixed size whatever it says (Simie) */
.viewas-btn { width: 300px; justify-content: center; }
.viewas-btn .viewas-now { display: inline-block; min-width: 0; }
@media (max-width: 1060px) and (min-width: 901px) { .viewas-btn { width: 270px; } }
@media (max-width: 400px) { .viewas-btn { width: 100%; max-width: 300px; } }
/* the pink button sits at the true center of the screen, not the center of the leftover space */
@media (min-width: 901px) {
  .top-row, .top:not(:has(.top-row)) { position: relative; grid-template-columns: auto 1fr auto !important; }
  .top-center { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
}

/* ===== the six steps = the spine of the What it is page (12/3) ===== */
.step-label { display: flex; align-items: center; gap: 10px; font: 700 1rem Jost, sans-serif; color: var(--leaf); margin: 0 0 .5em; }
.step-hex { display: inline-flex; flex: none; }
.step-hex .sh-track { fill: none; stroke: rgba(238, 241, 242, .35); stroke-width: 2; }
.step-hex .sh-dot { fill: rgba(238, 241, 242, .45); }
.step-hex .sh-done { fill: var(--leaf); opacity: .6; }
.step-hex .sh-on { fill: var(--leaf); }
.step-sec h3 { margin-top: 26px; }
.step-sec .story { margin-top: 18px; }
.loop-go { margin: 8px 0 0; font-weight: 700; }
.loop-go a { color: var(--leaf); }
.sources:empty { display: none; }
.sources { margin-top: 26px; font-size: .95rem; }
.step-sec .lede { margin-bottom: 1em; }
main > section[id] { scroll-margin-top: 90px; }
@media (max-width: 900px) { main > section[id] { scroll-margin-top: 150px; } }
/* ===== A real example: one patient through the six steps (12/3) ===== */
.walk-list { list-style: none; padding: 0; margin: 18px 0 8px; display: grid; gap: 14px; }
.walk-list li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; align-items: baseline; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.walk-list li p { margin: 0; }
.walk-step { font: 700 1rem Jost, sans-serif; color: var(--leaf); }
@media (max-width: 700px) { .walk-list li { grid-template-columns: 1fr; gap: 4px; } }
.story-page .vision-dream .ticks { margin-top: 14px; }
/* four nav links fit on one line on phones (no lone "The EMR" on a second line) */
@media (max-width: 600px) { .site-nav { gap: 4px 10px; flex-wrap: nowrap; } .site-nav a { font-size: .86rem; } }
@media (max-width: 360px) { .site-nav a { font-size: .78rem; } .site-nav { gap: 4px 7px; } }
