/* The homepage uses a sports-poster rhythm; support documents keep their calmer layout. */
.home { --accent: #d2ff3d; }
.home header, .home footer { width: min(1280px, calc(100% - 64px)); }
.home main { width: 100%; }
.home main > section { width: min(1280px, calc(100% - 64px)); margin-inline: auto; }
.home h1, .home h2 { font-weight: 700; letter-spacing: normal; text-wrap: pretty; }
.home h2 { font-size: clamp(2.375rem, 4.7vw, 4.125rem); line-height: 1.08; }
.home .brand { font-size: 1.5625rem; font-weight: 700; }
.home .site-header { min-height: 96px; }
.home .hero { grid-template-columns: 1.15fr 1fr; gap: 40px; padding: 32px 0 88px; }
.home h1 { color: var(--ink); font-size: clamp(3.25rem, 5.4vw, 5rem); line-height: 1.04; }
.home .hero-copy .lead { margin-top: 30px; max-width: 600px; color: var(--ink); }
.home .button { border-radius: 8px; padding: 16px 27px; min-height: 56px; }
.home .hero .button, .home .beta-section .button { color: var(--ink); background: var(--accent); }
.home .hero .button:hover, .home .beta-section .button:hover { background: #bfe936; }
.home .hero-alternative { margin-top: 16px; }
.home .hero-visual { position: relative; min-width: 0; display: grid; justify-items: center; padding-bottom: 24px; }
.hero-phone { width: min(78%, 340px); }
.home .hero-watch { position: absolute; z-index: 2; left: max(0px, calc(50% - 300px)); bottom: 0; width: min(34%, 160px); filter: drop-shadow(0 18px 28px rgb(32 37 33 / .22)); }
.home .coach-section { width: 100%; background: var(--accent); color: var(--ink); padding: 80px max(32px, calc((100% - 1280px) / 2)); border: 0; }
.coach-layout { display: grid; grid-template-columns: 1.25fr 1fr; gap: 80px; align-items: center; }
.home .section-intro { display: block; }
.home .section-intro > p { margin-top: 24px; color: var(--ink); max-width: 550px; }
.home .coach-steps { display: grid; grid-template-columns: 1fr; gap: 24px; margin-top: 38px; }
.home .coach-steps li { padding: 0 0 0 44px; }
.home .coach-steps li::before { color: var(--ink); font-size: 1.75rem; line-height: 1.3; }
.home .coach-steps h3 { font-size: 1.375rem; }
.home .coach-steps p { color: #354214; font-size: 1rem; margin-top: 7px; max-width: 540px; }
.home .hero-story { display: block; width: 100%; max-width: 440px; padding: 0; background: none; border-radius: 0; justify-self: end; }
.home .connection-note { background: none; border-top: 1px solid #8da72c; border-radius: 0; padding: 34px 0 0; margin-top: 56px; gap: 40px; grid-template-columns: .8fr 2fr; }
.home .connection-note h3 { font-size: 1.875rem; }
.home .connection-note .fine { color: #354214; }
.home .connection-note a { color: var(--ink); }
.home .coach-section a:focus-visible { outline-color: var(--ink); }
.home .gym-section { padding: 30px 0 88px; border: 0; grid-template-columns: .9fr 1.1fr; gap: 60px; }
.home .gym-copy h2 { font-size: clamp(2.625rem, 4.6vw, 4rem); }
.home .workout-screens { padding: 32px; background: var(--wash); gap: 24px; border-radius: 12px; }
.home .workout-screens > figure:nth-child(2) { padding-top: 65px; }
.home .real-phone { aspect-ratio: 1350 / 2760; border-radius: 0; background: none; overflow: visible; isolation: isolate; }
.phone-display { position: absolute; left: 5.3333%; top: 2.5%; width: 89.3333%; height: 95%; overflow: hidden; border-radius: 15% / 7%; background: var(--paper); }
.home .real-phone > .device-bezel { width: 100%; max-width: 100%; margin: 0; transform: none; }
.home .workout-screens figcaption { font-size: 0.75rem; }
/* Native simulator captures fill the display; the old Mac-mirroring crop does not apply. */
.home .phone-display > img { width: 100%; height: 100%; max-width: 100%; margin: 0; transform: none; object-fit: contain; }
.home .hero-story .coach-day-screen { width: min(100%, 320px); margin-inline: auto; }
.home .hero-story > figcaption { margin-top: 18px; color: var(--ink); text-align: center; font-size: .875rem; }
.home .technique-section { padding-block: 70px 88px; border-top: 1px solid var(--line); }
.technique-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.home .technique-intro h2 { font-size: clamp(2.625rem, 4.6vw, 4rem); }
.technique-intro .lead { color: var(--ink); font-size: 1.125rem; }
.technique-screens { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; max-width: 790px; margin: 50px auto 0; }
.technique-screens .real-phone { max-width: 320px; margin-inline: auto; }
.technique-screens figcaption { max-width: 340px; margin: 22px auto 0; font-size: 1rem; text-align: center; }
.technique-screens figcaption strong { display: block; margin-bottom: 5px; color: var(--ink); font-size: 1.25rem; font-weight: 600; }
/* A compact 2 × 2 device group follows the same two-column rhythm as the gym section. */
.home .watch-section { border-radius: 0; padding: 64px 0; margin-bottom: 0; border-block: 1px solid var(--line); background: none; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: center; }
.home .watch-section h2 { color: var(--ink); font-size: clamp(2.625rem, 4.6vw, 4rem); }
.watch-copy p { margin-top: 26px; max-width: 480px; font-size: 1.125rem; }
/* The set screen is the one to read; the other three sit in a row beneath it. */
.watch-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 24px; min-width: 0; width: 100%; max-width: 540px; justify-self: end; }
.watch-gallery .watch-main { grid-column: 1 / -1; }
.watch-gallery .watch-main .watch-mockup { width: min(100%, 260px); }
.watch-gallery .watch-main figcaption { font-size: 1rem; }
.watch-gallery figure { margin: 0; min-width: 0; text-align: center; }
.watch-mockup { position: relative; display: block; width: min(100%, 200px); aspect-ratio: 520 / 800; margin-inline: auto; isolation: isolate; }
.device-bezel { position: relative; z-index: 1; display: block; width: 100%; height: auto; pointer-events: none; }
.watch-display { position: absolute; left: 12.31%; top: 20.625%; width: 75.38%; height: 58.75%; border-radius: 24%; overflow: hidden; background: #000; }
.watch-display img { display: block; width: 100%; height: 100%; object-fit: contain; }
.watch-gallery figcaption { margin-top: 10px; color: var(--ink); font-size: .875rem; font-weight: 500; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.home .reflection-section { align-items: center; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 72px; padding-block: 88px; }
.reflection-screen { padding: 36px 32px 24px; background: var(--wash); border-radius: 12px; text-align: center; }
.reflection-screen .real-phone { width: min(100%, 300px); margin-inline: auto; }
.reflection-copy > p:not(.lead) { color: var(--muted); }
.home .reflection-copy .lead { margin-top: 24px; }
.home .reflection-copy p + p { margin-top: 20px; }
.home .manual-section { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 90px; }
.home .manual-section { padding-block: 64px; }
.home .manual-section h2 { font-size: clamp(2.25rem, 3.8vw, 3.25rem); }
.home .manual-section .fine { margin-top: 18px; }
.home .manual-steps { border-left: 8px solid var(--accent); }
.home .manual-steps span { font-size: 1.625rem; }
.home .origin-section { padding: 48px 0 64px; border-top: 1px solid var(--line); }
.origin-section blockquote { max-width: 860px; font-size: clamp(1.5rem, 2.6vw, 2.125rem); line-height: 1.35; font-weight: 600; text-wrap: balance; }
.origin-section .fine { margin-top: 14px; }
.home .beta-section { background: var(--ink); width: 100%; margin: 0; border-radius: 0; padding: 75px max(32px, calc((100% - 1280px) / 2)); gap: 70px; }
.home .beta-section h2 { font-size: clamp(4rem, 7.5vw, 6.5rem); line-height: 1; }
.home .beta-section p { max-width: 640px; }
.home footer { border: 0; padding-block: 36px; }
.footage-credit { margin-top: 8px; font-size: 0.6875rem; }
.footage-credit a { min-height: 24px; }
@media (max-width: 1100px) {
  .home h1 { font-size: 3.75rem; }
  .home .hero { gap: 28px; }
  .home .hero-copy .lead { font-size: 1.125rem; }
  .coach-layout { gap: 50px; grid-template-columns: 1.15fr 1fr; }
  .home .gym-section { grid-template-columns: 1fr; gap: 34px; }
  .home .gym-copy { max-width: 700px; }
  .home .workout-screens { max-width: 740px; }
  .home .reflection-section { gap: 42px; }
}
@media (max-width: 900px) {
  .home header, .home footer, .home main > section { width: min(720px, calc(100% - 48px)); }
  .home .hero { grid-template-columns: 1fr; gap: 36px; padding: 22px 0 56px; }
  .home h1 { font-size: clamp(3rem, 7.6vw, 4.25rem); }
  .home .hero-copy { max-width: none; }
  .home .hero-copy .lead { max-width: 630px; }
  .home .hero-visual { width: 100%; }
  .home .coach-section { width: 100%; padding: 56px max(24px, calc((100% - 720px) / 2)); }
  .coach-layout { grid-template-columns: 1fr; gap: 40px; }
  .home .coach-steps p { max-width: none; }
  .home .hero-story { max-width: 440px; justify-self: center; }
  .home .connection-note { grid-template-columns: 1fr; gap: 12px; margin-top: 34px; }
  .home .gym-section { padding-bottom: 56px; }
  .technique-intro { grid-template-columns: 1fr; gap: 24px; }
  .technique-screens { gap: 34px; margin-top: 36px; }
  .home .technique-section { padding-block: 50px 56px; }
  .home .watch-section { grid-template-columns: 1fr; gap: 34px; padding-block: 48px; }
  .watch-gallery { justify-self: center; }
  .home .reflection-section { grid-template-columns: 1fr; gap: 30px; padding-block: 56px; }
  .home .reflection-copy { order: -1; }
  .home .reflection-copy h2 br { display: none; }
  .home .manual-section { grid-template-columns: 1fr; gap: 30px; }
  .home .manual-section { padding-block: 45px; }
  .home .origin-section { padding-block: 40px 48px; }
  .home .beta-section { background: var(--ink); width: 100%; padding: 50px max(24px, calc((100% - 720px) / 2)); gap: 28px; }
}
@media (max-width: 600px) {
  .home header, .home footer, .home main > section { width: calc(100% - 36px); }
  .home .site-header { min-height: 80px; }
  .home .brand { font-size: 1.25rem; }
  .home h1 { font-size: 2.5rem; }
  .home h2 { font-size: 2.375rem; }
  .home .hero-copy .lead { font-size: 1.0625rem; margin-top: 22px; }
  .home .hero { gap: 28px; }
  .home .hero .button { padding-inline: 22px; }
  .home .hero-alternative { font-size: 0.8125rem; }
  .home .hero-visual { justify-items: end; }
  .hero-phone { width: 70%; }
  .home .hero-watch { left: 0; width: 33%; }
  .home .coach-section { width: 100%; padding: 44px 18px; }
  .home .section-intro > p { font-size: 1.0625rem; }
  .home .coach-steps h3 { font-size: 1.3125rem; }
  .home .coach-steps li { padding-left: 36px; }
  .home .hero-story { max-width: 440px; justify-self: center; }
  .home .connection-note h3 { font-size: 1.5625rem; }
  .home .connection-note { font-size: 1rem; }
  .home .gym-copy h2 { font-size: 2.5rem; }
  .home .workout-screens { padding: 20px; gap: 28px; width: min(100%, 380px); }
  .home .workout-screens > figure:nth-child(2) { padding-top: 0; }
  .home .technique-intro h2 { font-size: 2.375rem; }
  .technique-intro .lead { font-size: 1.0625rem; }
  .technique-screens { grid-template-columns: 1fr; gap: 44px; }
  .technique-screens .real-phone { width: min(100%, 300px); }
  .home .watch-section h2 { font-size: 3rem; }
  .watch-copy p { font-size: 1.0625rem; margin-top: 22px; }
  .watch-gallery { gap: 24px 20px; }
  .watch-gallery figcaption { font-size: .8125rem; line-height: 1.45; }
  .home .reflection-copy h2 { font-size: 2.625rem; }
  .home .reflection-copy h2 br { display: block; }
  .home .manual-section h2 { font-size: 2.25rem; }
  .reflection-screen { padding: 24px 20px 18px; }
  .watch-gallery { gap: 20px 12px; }
  .home .beta-section { background: var(--ink); width: 100%; padding: 44px 18px; }
  .home .beta-section h2 { font-size: 3.625rem; }
}
@media (max-width: 380px) {
  .home h1 { font-size: 2.125rem; }
  .home .hero-copy .lead { font-size: 1rem; }
  .home .gym-copy h2, .home h2 { font-size: 2.125rem; }
  .home .beta-section h2 { font-size: 3.125rem; }
}

/* The loop: plan → gym → result → review. Without loop.js every step is readable and the circle is drawn complete. */
.home .loop-section { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); grid-template-areas: "dial head" "dial body"; grid-template-rows: auto 1fr; gap: 36px 80px; padding: 88px max(32px, calc((100% - 1280px) / 2)); background: var(--ink); color: #fff; }
.loop-head { grid-area: head; }
.home .loop-head h2 { font-size: clamp(2.375rem, 4vw, 3.5rem); }
.loop-head .lead { margin-top: 22px; color: #c9cfc2; font-size: 1.125rem; }
.loop-dial { grid-area: dial; position: sticky; top: max(24px, calc(50vh - 280px)); align-self: start; width: 100%; max-width: 560px; justify-self: center; container-type: inline-size; }
.loop-diagram { display: block; width: 100%; height: auto; overflow: visible; }
.loop-arc-track { fill: none; stroke: #3d453b; stroke-width: 6; stroke-linecap: round; }
.loop-arc-fill { fill: none; stroke: var(--accent); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.loop-arc-head { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.loop-ready .loop-arc-fill { stroke-dashoffset: 100; visibility: hidden; }
.loop-ready .is-done .loop-arc-fill, .loop-ready .is-filling .loop-arc-fill { visibility: visible; }
.loop-ready .loop-arc-head { stroke: #5d6658; transition: stroke .3s; }
.loop-ready .is-done .loop-arc-fill { stroke-dashoffset: 0; }
.loop-ready .is-done .loop-arc-head { stroke: var(--accent); }
.loop-ready .is-filling .loop-arc-fill { animation: loop-fill 5.2s linear forwards paused; }
.loop-ready.is-running .is-filling .loop-arc-fill { animation-play-state: running; }
@keyframes loop-fill { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.loop-node { cursor: default; }
.loop-ready .loop-node { cursor: pointer; }
.loop-node circle { fill: var(--ink); stroke: var(--accent); stroke-width: 3; transition: fill .3s, stroke .3s; }
.loop-node-number { fill: #fff; font: 700 24px Onest, sans-serif; transition: fill .3s; }
.loop-label { fill: #fff; font: 600 21px Onest, sans-serif; transition: fill .3s; }
.loop-ready .loop-node circle { stroke: #5d6658; }
.loop-ready .loop-node-number, .loop-ready .loop-label { fill: #aab2a3; }
.loop-ready .loop-node.is-active circle { fill: var(--accent); stroke: var(--accent); }
.loop-ready .loop-node.is-active .loop-node-number { fill: var(--ink); }
.loop-ready .loop-node.is-active .loop-label { fill: #fff; }
.loop-halo { display: none; transform-box: view-box; transform-origin: 220px 220px; transform: rotate(var(--loop-turn, 0deg)); transition: transform .9s cubic-bezier(.65, 0, .35, 1); }
.loop-halo circle { fill: none; stroke: var(--accent); stroke-width: 2; opacity: .5; }
.loop-ready .loop-halo { display: block; }
.loop-center { position: absolute; left: 51.82%; top: 50.62%; width: 40%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 4px; text-align: center; pointer-events: none; }
.loop-center span { color: #aab2a3; font-size: max(.8125rem, 2.8cqi); line-height: 1.3; }
.loop-center strong { color: #fff; font-size: max(1.375rem, 6.4cqi); line-height: 1.1; font-weight: 700; }
.loop-center .loop-center-tag { color: var(--accent); font-weight: 600; }
.loop-body { grid-area: body; min-width: 0; }
.loop-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.loop-step { position: relative; padding: 14px 20px 14px 22px; border-left: 3px solid #3d453b; transition: border-color .3s, background-color .3s; }
.loop-step h3 { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; line-height: 1.25; }
.loop-step-button { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: -6px 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.loop-step-button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; border-radius: 4px; }
.loop-step-number { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--accent); font-size: 1rem; font-weight: 700; }
.loop-step > p:not(.loop-step-meta) { margin-top: 10px; color: #c9cfc2; font-size: 1rem; line-height: 1.6; }
.loop-step-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 12px; font-size: .875rem; }
.loop-tag { padding: 3px 10px; border-radius: 999px; background: #323a30; color: var(--accent); font-weight: 600; }
.loop-step-meta a { color: #fff; display: inline-flex; align-items: center; min-height: 32px; }
.loop-step-meta a:focus-visible { outline-color: var(--accent); }
.loop-ready .loop-step { opacity: .6; transition: opacity .3s, border-color .3s, background-color .3s; }
.loop-ready .loop-step.is-active { opacity: 1; border-left-color: var(--accent); background: #2a3029; }
.loop-ready .loop-step:hover { opacity: 1; }
.loop-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 24px; color: #c9cfc2; font-size: .9375rem; }
.loop-footer p { max-width: 420px; }
.loop-toggle { min-height: 44px; padding: 8px 18px; border: 2px solid #5d6658; border-radius: 999px; background: none; color: #fff; font: 600 .9375rem/1.3 Onest, sans-serif; cursor: pointer; }
.loop-toggle:hover { border-color: #fff; }
.loop-toggle:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.loop-toggle[hidden] { display: none; }
.home .data-section { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: start; padding-block: 80px; }
.home .data-intro h2 { font-size: clamp(2.375rem, 4.2vw, 3.5rem); }
.data-intro .lead { margin-top: 24px; color: var(--ink); }
.data-intro .fine { margin-top: 18px; }
.data-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 40px; margin: 0; }
.data-points > div { padding-top: 18px; border-top: 4px solid var(--accent); }
.data-points dt { font-size: 1.25rem; font-weight: 650; }
.data-points dd { margin: 8px 0 0; color: var(--muted); font-size: 1rem; }
@media (prefers-reduced-motion: reduce) {
  .loop-halo, .loop-step, .loop-node circle { transition: none; }
}
@media (max-width: 1100px) {
  .home .loop-section { gap: 40px 48px; }
}
@media (max-width: 900px) {
  .home .loop-section { grid-template-columns: 1fr; grid-template-areas: "head" "dial" "body"; grid-template-rows: none; padding: 56px max(24px, calc((100% - 720px) / 2)); gap: 32px; }
  .loop-dial { position: relative; top: auto; max-width: 440px; }
  .home .data-section { grid-template-columns: 1fr; gap: 36px; padding-block: 56px; }
}
@media (max-width: 600px) {
  .home .loop-section { padding: 44px 18px; }
  .loop-dial { max-width: 360px; }
  .loop-step { padding: 14px 14px 14px 16px; }
  .loop-step h3 { font-size: 1.3125rem; }
  .data-points { grid-template-columns: 1fr; gap: 24px; }
}
