:root {
  color-scheme: light;
  --ink: #173333; --muted: #5c6e6c; --paper: #f4f7f5; --card: #fff;
  --teal: #17665e; --teal-dark: #153f3c; --mint: #dcefe9; --lime: #dcf37a;
  --orange: #e66c37; --orange-pale: #fff0e9; --blue: #437f9f; --line: #d8e2de;
  --warning: #fff3c9; --shadow: 0 14px 36px rgba(18, 56, 52, .1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 1rem; line-height: 1.55; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { text-wrap: pretty; }
.hero { overflow: hidden; position: relative; color: white; background: radial-gradient(circle at 86% 10%, rgba(220,243,122,.34), transparent 22rem), linear-gradient(150deg, #153c3a, #22645e); }
.hero::after { content: ""; position: absolute; right: -8rem; bottom: -11rem; width: 19rem; height: 19rem; border: 3.2rem solid rgba(255,255,255,.06); border-radius: 50%; }
.hero__inner, main { width: min(76rem, calc(100% - 2rem)); margin: auto; }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 1rem; align-items: center; padding: .65rem 0; }
.hero__copy { min-width: 0; }
.eyebrow, .section-kicker { margin: 0 0 .35rem; color: var(--teal); font-size: .78rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.hero .eyebrow { color: var(--lime); }
h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.25rem); line-height: .96; letter-spacing: -.04em; }
.hero__subtitle { max-width: 38rem; margin: .18rem 0 0; color: #dceae7; font-size: .86rem; line-height: 1.35; }
.progress-card { display: flex; align-items: center; justify-content: space-between; min-width: 14.5rem; padding: .45rem .55rem .45rem .7rem; border: 1px solid rgba(255,255,255,.17); border-radius: .75rem; background: rgba(255,255,255,.1); backdrop-filter: blur(10px); }
.progress-card__copy { display: grid; gap: .1rem; }
.progress-card__copy strong { font-size: .88rem; }
.progress-card__copy span { color: #cfe2de; font-size: .72rem; }
.progress-ring { --progress: 0deg; display: grid; width: 2.3rem; height: 2.3rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: conic-gradient(var(--lime) var(--progress), rgba(255,255,255,.16) 0); }
.progress-ring::before { content: ""; grid-area: 1/1; width: 1.72rem; height: 1.72rem; border-radius: 50%; background: #245a55; }
.progress-ring span { z-index: 1; font-size: .65rem; font-weight: 850; }
.hero__actions { display: flex; flex-wrap: nowrap; gap: .45rem; margin: 0; }
.hero__actions .button { min-height: 2.35rem; padding: .42rem .68rem; border-radius: .62rem; font-size: .78rem; white-space: nowrap; }
.button { min-height: 3rem; padding: .72rem 1rem; border: 0; border-radius: .8rem; cursor: pointer; font-weight: 850; }
.button--primary { background: var(--lime); color: #183d39; }
.button--quiet { border: 1px solid currentColor; background: rgba(255,255,255,.1); color: inherit; }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button:focus-visible, .exercise-card__open:focus-visible, .done-control:focus-within, .icon-button:focus-visible, .video-stage__load:focus-visible, .video-tabs button:focus-visible, a:focus-visible { outline: 3px solid var(--teal-dark); outline-offset: 2px; }
.exercise-card__open:focus-visible { outline-offset: -4px; }
.hero .button:focus-visible, .video-stage__load:focus-visible { outline-color: var(--lime); }
.video-stage__load:focus-visible { outline-offset: -5px; }
main { padding: 2.7rem 0 4rem; }
.intro { display: grid; grid-template-columns: 1fr minmax(18rem, 34rem); gap: 2rem; align-items: end; }
.intro h2 { margin: 0; font-size: clamp(1.75rem,4vw,2.6rem); line-height: 1.03; letter-spacing: -.025em; }
.intro > p { margin: 0; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: .65rem 1rem; margin: 1.25rem 0; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .9rem; background: white; color: var(--muted); font-size: .84rem; font-weight: 750; }
.legend span { display: flex; align-items: center; gap: .35rem; }
.legend__dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--teal); }
.legend__dot--strength { background: var(--orange); } .legend__dot--core { background: #765aa8; } .legend__dot--balance { background: var(--blue); }
.exercise-search { display: grid; grid-template-columns: auto minmax(16rem, 1fr) auto; gap: .8rem; align-items: center; margin: 0 0 1.2rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .9rem; background: white; }
.exercise-search label { color: var(--teal-dark); font-size: .86rem; font-weight: 850; }
.exercise-search input { width: 100%; min-height: 2.7rem; padding: .6rem .8rem; border: 1px solid #aebfba; border-radius: .65rem; background: #f8faf9; color: var(--ink); }
.exercise-search input:focus { outline: 3px solid var(--teal-dark); outline-offset: 2px; border-color: var(--teal); }
.exercise-search span { color: var(--muted); font-size: .82rem; font-weight: 750; white-space: nowrap; }
.exercise-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.2rem; }
.exercise-card { overflow: hidden; display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: 1.15rem; background: var(--card); box-shadow: var(--shadow); transition: transform .16s ease, opacity .16s ease; }
.exercise-card:hover { transform: translateY(-2px); }
.exercise-card.is-complete { border-color: #6caf91; }
.exercise-card.is-complete .exercise-card__open { background: #edf7f3; }
.exercise-card__open { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.exercise-card__figure { overflow: hidden; position: relative; aspect-ratio: 16/6.2; margin: 0; background: #e9efec; }
.exercise-card__figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.exercise-card__zoom { position: absolute; right: .7rem; bottom: .65rem; padding: .34rem .62rem; border-radius: 999px; background: rgba(15,43,41,.88); color: white; font-size: .76rem; font-weight: 850; }
.exercise-card__body { padding: 1.05rem 1.15rem .9rem; }
.exercise-card__equipment { margin: 0 0 .25rem; color: var(--teal); font-size: .76rem; font-weight: 850; letter-spacing: .075em; text-transform: uppercase; }
.exercise-card h3 { margin: 0; font-size: 1.4rem; line-height: 1.1; letter-spacing: -.02em; }
.exercise-card__cue { margin: .7rem 0 0; color: var(--muted); }
.confirm-badge { display: inline-flex; margin: .55rem 0 0; padding: .32rem .55rem; border: 1px solid #e2b52f; border-radius: 999px; background: #fff4c8; color: #684c00; font-size: .73rem; font-weight: 850; }
.purpose-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .7rem; }
.purpose { padding: .28rem .52rem; border-radius: 999px; background: #e5f1ed; color: #255d57; font-size: .74rem; font-weight: 850; }
.purpose--1 { background: var(--orange-pale); color: #9d4522; } .purpose--2 { background: #eee9f8; color: #664b90; } .purpose--3 { background: #e4f0f6; color: #356f8e; }
.purpose-tags--card .purpose:nth-child(n+4) { display: none; }
.dose { display: flex; flex-wrap: wrap; gap: .42rem; margin-top: .75rem; }
.dose span { padding: .32rem .56rem; border-radius: .55rem; background: var(--mint); color: #24544f; font-size: .8rem; font-weight: 850; }
.dose--large { margin: .85rem 0 1.2rem; }
.dose--large span { padding: .44rem .68rem; font-size: .9rem; }
.done-control { display: flex; align-items: center; gap: .65rem; margin: auto .9rem .9rem; padding: .75rem .85rem; border-radius: .75rem; background: #f0f5f3; cursor: pointer; font-weight: 850; }
.done-control input { position: absolute; opacity: 0; pointer-events: none; }
.done-control__box { display: grid; width: 1.5rem; height: 1.5rem; place-items: center; border: 2px solid #98aca6; border-radius: .4rem; color: transparent; }
.done-control input:checked + .done-control__box { border-color: var(--teal); background: var(--teal); color: white; }
.safety-card { display: grid; grid-template-columns: auto 1fr; gap: 1rem; margin-top: 2rem; padding: 1.25rem; border: 1px solid #ead583; border-radius: 1rem; background: var(--warning); }
.safety-card__icon { display: grid; width: 2rem; height: 2rem; place-items: center; border-radius: 50%; background: #775b00; color: white; font-weight: 900; }
.safety-card h2 { margin: 0 0 .25rem; font-size: 1.15rem; } .safety-card p { margin: 0; }
.source-note { max-width: 55rem; margin: 1.1rem auto 0; color: var(--muted); font-size: .84rem; text-align: center; }

.workout { width: min(62rem,100%); max-width: none; height: 100%; max-height: none; margin: 0 0 0 auto; padding: 0; border: 0; background: var(--paper); color: var(--ink); }
.workout::backdrop { background: rgba(7,24,23,.64); backdrop-filter: blur(3px); }
.workout__shell { display: grid; grid-template-rows: auto 1fr auto; height: 100%; }
.workout__topbar { display: grid; grid-template-columns: 2.75rem 1fr 2.75rem; align-items: center; padding: .65rem 1rem; border-bottom: 1px solid var(--line); background: white; text-align: center; font-weight: 850; }
.icon-button { width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: #edf3f1; color: var(--ink); cursor: pointer; font-size: 1.8rem; line-height: 1; }
.workout__content { overflow-y: auto; padding: 1.3rem 1.5rem 2.4rem; }
.workout__content > .eyebrow { margin-top: .3rem; }
.workout h2 { margin: 0; font-size: clamp(2rem,6vw,3.25rem); line-height: 1.02; letter-spacing: -.04em; }
.note-callout { margin: 1rem 0; padding: 1rem; border: 1px solid #e5cd6f; border-radius: .9rem; background: var(--warning); font-weight: 700; }
.guide-section { margin-top: 1.25rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: 1rem; background: white; }
.guide-section--intro { border-left: 5px solid var(--teal); }
.guide-section h3 { margin: 0; font-size: 1.22rem; line-height: 1.2; }
.guide-section--intro > p:last-child { margin: .45rem 0 0; color: #415957; font-size: 1.05rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.section-heading .section-kicker { margin-bottom: .2rem; }
.section-heading > span { color: var(--muted); font-size: .76rem; font-weight: 750; text-align: right; }
.visuals { display: grid; gap: .85rem; }
.visuals figure { overflow: hidden; margin: 0; border: 1px solid var(--line); border-radius: .8rem; background: #f7f2e9; }
.visuals img { display: block; width: 100%; height: auto; }
.visuals figcaption { padding: .55rem .75rem; border-top: 1px solid var(--line); background: white; color: var(--teal); font-size: .85rem; font-weight: 850; }
.visual-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; margin: 1rem 0 0; padding: 0; list-style: none; counter-reset: visual-step; }
.visual-steps li { counter-increment: visual-step; position: relative; padding: 2.8rem .85rem .85rem; border-radius: .75rem; background: #f1f6f4; }
.visual-steps li::before { content: counter(visual-step); position: absolute; top: .7rem; left: .8rem; display: grid; width: 1.55rem; height: 1.55rem; place-items: center; border-radius: 50%; background: var(--teal); color: white; font-size: .8rem; font-weight: 900; }
.visual-steps strong, .visual-steps span { display: block; }
.visual-steps strong { line-height: 1.2; }
.visual-steps span { margin-top: .3rem; color: var(--muted); font-size: .9rem; }
.video-tabs { display: flex; gap: .4rem; margin-bottom: .65rem; padding: .3rem; border-radius: .75rem; background: #eaf1ee; }
.video-tabs button { flex: 1; padding: .55rem .6rem; border: 0; border-radius: .55rem; background: transparent; color: var(--muted); cursor: pointer; font-size: .82rem; font-weight: 850; }
.video-tabs button.is-active { background: white; color: var(--teal-dark); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.video-stage { overflow: hidden; aspect-ratio: 16/9; border-radius: .8rem; background: #102c2a; }
.video-stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-stage__load { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #102c2a; color: white; cursor: pointer; }
.video-stage__load::after { content: ""; position: absolute; z-index: 3; inset: 5px; border-radius: .55rem; pointer-events: none; }
.video-stage__load:focus-visible::after { box-shadow: 0 0 0 3px var(--lime); }
.video-stage__preview { position: absolute; inset: 0; background: radial-gradient(circle at 50% 48%, rgba(218,250,114,.18), transparent 26%), linear-gradient(135deg,#174e4a,#102c2a 58%,#1e625b); }
.video-stage__shade { position: absolute; inset: 0; background: linear-gradient(transparent 35%,rgba(5,23,22,.72)); }
.video-stage__play { position: absolute; top: 50%; left: 50%; display: grid; width: 4rem; height: 4rem; place-items: center; border-radius: 50%; background: var(--lime); color: var(--teal-dark); transform: translate(-50%,-50%); box-shadow: 0 8px 28px rgba(0,0,0,.3); }
.video-stage__load strong { position: absolute; right: 1rem; bottom: .8rem; left: 1rem; font-size: 1rem; }
.load-error { grid-column: 1 / -1; padding: 1rem; border: 1px solid #ca4c3b; border-radius: .8rem; background: #fff0ed; color: #6d1e14; font-weight: 750; }
.video-details { padding: .8rem .1rem 0; }
.video-details strong { display: block; }
.video-details p { margin: .25rem 0 .4rem; color: var(--muted); }
.video-details a { color: var(--teal); font-size: .86rem; font-weight: 850; }
.body-work { display: grid; grid-template-columns: minmax(17rem,.9fr) 1.1fr; gap: 1rem; align-items: start; }
.body-map { position: relative; margin: 0; padding: .5rem; border-radius: .85rem; background: #eef3f1; }
.body-map img { display: block; width: 100%; height: auto; }
#bodyMarkers { position: absolute; inset: .5rem .5rem 2.8rem; }
.body-marker { position: absolute; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; transform: translate(-50%,-50%); filter: drop-shadow(0 2px 2px rgba(0,0,0,.15)); }
.body-marker--primary { background: rgba(230,108,55,.62); box-shadow: 0 0 0 3px rgba(230,108,55,.28); }
.body-marker--support { background: rgba(23,102,94,.48); box-shadow: 0 0 0 3px rgba(23,102,94,.2); }
.body-map figcaption { display: flex; justify-content: center; gap: 1rem; padding-top: .45rem; color: var(--muted); font-size: .75rem; font-weight: 750; }
.body-map figcaption span { display: flex; align-items: center; gap: .3rem; }
.map-key { width: .65rem; height: .65rem; border-radius: 50%; background: var(--orange); } .map-key--support { background: var(--teal); }
.region-list { display: grid; gap: .6rem; }
.region { position: relative; padding: .7rem .8rem .7rem 1rem; border-left: 4px solid var(--orange); border-radius: .55rem; background: var(--orange-pale); }
.region--support { border-color: var(--teal); background: #eaf4f1; }
.region > span { display: block; color: #a94a24; font-size: .67rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.region--support > span { color: var(--teal); }
.region strong { display: block; line-height: 1.2; }
.region p { margin: .16rem 0 0; color: var(--muted); font-size: .86rem; }
.guide-section--details { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; padding: 0; border: 0; background: none; }
.detail-card { padding: 1rem; border: 1px solid var(--line); border-radius: .9rem; background: white; }
.detail-card h3 { margin-bottom: .3rem; color: var(--teal); font-size: 1rem; }
.detail-card p { margin: 0; }
.detail-card--feel { border-color: #a8d0bf; background: #edf7f3; }
.detail-card--check { border-color: #e8d383; background: #fff9e4; }
.personal-notes { display: grid; gap: .7rem; margin-top: 1.15rem; padding: 1rem; border: 1px solid #b9cfc8; border-radius: .9rem; background: #f4faf7; }
.personal-notes h3 { margin: 0 0 .2rem; color: var(--teal); font-size: 1rem; }
.personal-notes p { margin: 0; color: var(--muted); font-size: .9rem; }
.personal-notes textarea { box-sizing: border-box; width: 100%; min-height: 5.6rem; resize: vertical; padding: .8rem; border: 1px solid #8baea2; border-radius: .7rem; background: white; color: var(--ink); font: inherit; line-height: 1.45; }
.personal-notes textarea:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-color: var(--teal); }
.personal-notes > span { color: var(--muted); font-size: .8rem; }
.personal-notes > span.is-error { color: #8a2b1e; font-weight: 700; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.focus-callout { display: grid; gap: .25rem; margin-top: 1.15rem; padding: 1rem; border-radius: .9rem; background: var(--teal-dark); color: white; }
.focus-callout strong { color: var(--lime); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.mistakes { border-color: #e6d596; background: #fff9e8; }
.mistakes ul { margin: .55rem 0 0; padding-left: 1.3rem; }
.mistakes li + li { margin-top: .35rem; }
.workout__footer { display: grid; grid-template-columns: auto 1fr; gap: .75rem; padding: .85rem max(1rem,env(safe-area-inset-right)) max(.85rem,env(safe-area-inset-bottom)) max(1rem,env(safe-area-inset-left)); border-top: 1px solid var(--line); background: white; }
.workout__footer .button--quiet { border-color: var(--line); background: white; color: var(--ink); }

@media (max-width: 960px) and (min-width: 741px) {
  .hero__inner { grid-template-columns: 1fr auto; gap: .5rem 1rem; padding: .55rem 0; } .hero__copy { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: .15rem .75rem; align-items: end; } .hero__copy .eyebrow { margin: 0 0 .2rem; } .hero__copy h1 { font-size: 1.9rem; } .hero__subtitle { grid-column: 1 / -1; max-width: none; margin: 0; } .intro { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 740px) {
  .hero__inner { grid-template-columns: minmax(8.8rem,1fr) auto; gap: .4rem; padding: .45rem 0; } .hero__copy { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: .1rem .55rem; align-items: end; } .hero__copy .eyebrow { margin: 0 0 .16rem; font-size: .65rem; } .hero__copy h1 { font-size: 1.65rem; } .hero__subtitle { grid-column: 1 / -1; max-width: none; margin: 0; font-size: .72rem; line-height: 1.25; } .progress-card { min-width: 0; padding: .3rem .4rem; } .progress-card__copy strong { font-size: .75rem; } .progress-card__copy span { font-size: .68rem; } .progress-ring { width: 1.9rem; height: 1.9rem; } .progress-ring::before { width: 1.4rem; height: 1.4rem; } .progress-ring span { font-size: .65rem; } .hero__actions { justify-content: end; gap: .25rem; } .hero__actions .button { min-height: 2.1rem; padding: .3rem .38rem; font-size: .7rem; white-space: normal; }
  .intro { grid-template-columns: 1fr; gap: .6rem; } .exercise-grid { grid-template-columns: 1fr; }
  .exercise-card__figure { aspect-ratio: 16/6.7; } .workout { width: 100%; } .workout__content { padding: 1rem .8rem 2rem; }
  .guide-section { padding: .9rem; } .visual-steps { grid-template-columns: 1fr; } .visual-steps li { padding: .75rem .8rem .75rem 3rem; }
  .visual-steps li::before { top: .75rem; } .body-work { grid-template-columns: 1fr; } .body-map { max-width: 25rem; margin: auto; }
  .guide-section--details { grid-template-columns: 1fr; } .section-heading { align-items: start; }
  .exercise-search { grid-template-columns: 1fr; gap: .4rem; } .exercise-search span { white-space: normal; }
}
@media (max-width: 420px) {
  .hero__inner { grid-template-columns: 1fr; } .hero__copy { grid-column: auto; } .progress-card { width: 100%; } .hero__actions { width: 100%; } .hero__actions .button { flex: 1; }
  .video-stage__play { top: 35%; width: 3rem; height: 3rem; }
  .video-stage__load strong { bottom: .55rem; font-size: .86rem; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print { .hero__actions, .done-control, .exercise-card__zoom { display: none; } .hero { color: var(--ink); background: white; } .exercise-card { break-inside: avoid; box-shadow: none; } }
