.challenge-home {
  --gold: #f5b71e; --dark: #1e1f1b; --paper: #faf9f3; --muted-light: #d4d4c9;
  --frame-width: clamp(12.25rem, 18vw, 15.6rem);
}
.challenge-home .head-inner { justify-content: space-between; }
.front-nav { display: flex; align-items: center; gap: clamp(.8rem, 3vw, 2.6rem); font-size: .95rem; font-weight: 650; }
.front-nav > a:not(.action) { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); }
.front-nav > a:hover, .hero-alternate:hover, .tour-link:hover { text-decoration: underline; text-underline-offset: .23em; }
.front-nav .sticky-start { display: none; }
.challenge-home .hero-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; padding-block: clamp(2.5rem, 4.8vw, 5.4rem); }
.challenge-home .hero-copy { width: 100%; }
.challenge-home h1 { font-size: clamp(3.7rem, 6.1vw, 6.35rem); line-height: 1.02; }
.challenge-home .hero-intro { max-width: 30rem; color: #e1e1d9; margin-top: 1.25rem; }
.challenge-home .hero-actions { margin-top: 1.55rem; gap: .35rem 1.25rem; }
.hero-alternate { color: var(--paper); text-decoration: underline; text-underline-offset: .24em; font-weight: 600; display: inline-flex; align-items: center; min-height: 44px; }
.hero-note { color: var(--muted-light); }
.app-preview { min-width: 0; width: 100%; max-width: 36rem; justify-self: end; }
.screen-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin: 0 0 .65rem; }
.screen-tabs button { display: flex; align-items: center; justify-content: center; gap: .45rem; min-width: 0; min-height: 62px; padding: .4rem; border: 1px solid #666956; border-radius: .48rem; background: #292c24; color: #f3f1e8; font: 630 .875rem/1.15 var(--body); cursor: pointer; }
.screen-tabs button img { display: block; flex: none; width: 1.75rem; height: 2.42rem; border: 1px solid #8b8f7c; border-radius: .25rem; object-fit: cover; object-position: top; }
.screen-tabs button[aria-selected="true"] { border-color: var(--gold); background: #403821; color: #ffde82; box-shadow: inset 0 -2px var(--gold); }
.screen-tabs button:focus-visible, .screen-stage:focus-visible, .tour-link:focus-visible { outline-color: var(--gold); }
.preview-panel { margin: 0; }
.screen-stage { isolation: isolate; position: relative; display: grid; justify-items: center; gap: .85rem; width: 100%; padding: .65rem .75rem 1rem; border: 1px solid #5e6250; border-radius: .75rem; background: radial-gradient(ellipse at 60% 30%, #575b48 0, #383c30 55%, #30342a 85%); }
.screen-stage::before { content: ""; position: absolute; z-index: -1; inset: 0; border-radius: inherit; opacity: .17; background: repeating-linear-gradient(130deg, transparent 0 3.4rem, #c4c6ac 3.43rem, transparent 3.49rem 6.9rem); }
.screen-stage > img { display: block; width: min(100%, var(--frame-width)); height: auto; aspect-ratio: 390/843; object-fit: contain; background: #101317; border-radius: .85rem; box-shadow: 0 0 0 2px #161813, 0 0 0 3px #939582, 0 .8rem 2rem #10120a77; }
.screen-action { grid-row: 1; display: inline-flex; align-items: center; justify-content: center; gap: .43rem; min-height: 44px; padding: .42rem .84rem; border: 1px solid #959886; border-radius: .38rem; background: #1c1e18; color: #fff; font-size: .9rem; font-weight: 680; line-height: 1.25; text-align: center; }
[data-recording] .screen-action { border-color: var(--gold); background: var(--gold); color: #1e1f1b; }
.screen-stage:hover .screen-action { text-decoration: underline; text-underline-offset: .2em; }
.preview-caption { color: #d9dccc; font-size: .92rem; line-height: 1.4; margin-top: .7rem; }
.preview-links a { display: inline-flex; min-height: 44px; align-items: center; margin-right: 1rem; color: var(--paper); text-decoration: underline; }
.install-shelf { background: #eeeadd; border-block: 1px solid #d9d4c4; }
.install-inner { display: flex; justify-content: space-between; align-items: start; gap: 1.4rem 3rem; padding-block: clamp(1.7rem, 3.2vw, 3rem); }
.install-copy { max-width: 38rem; }
.install-copy h2, .coach-story h2 { font-size: clamp(2rem, 3.55vw, 3.7rem); }
.install-copy > p { margin-top: .5rem; color: #47483f; }
.store-choices { display: flex; align-items: center; flex-wrap: wrap; gap: .35rem 1.3rem; margin-block: .8rem .4rem; }
.store-badge, .browser-start, .card-link, .tour-link { display: inline-flex; align-items: center; min-height: 44px; }
.browser-start, .card-link { text-decoration: underline; text-underline-offset: .22em; font-weight: 670; }
.store-badge img { width: auto; height: 40px; }
.first-workout-video { display: flex; align-items: center; gap: .5rem; width: fit-content; min-height: 44px; font-size: .94rem; font-weight: 650; text-decoration: underline; text-underline-offset: .22em; }
.store-rating { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 .34rem; min-height: 44px; color: #46483d; font-size: .92rem; }
.rating-star { color: #78520c; font-size: 1.16em; }
.store-rating strong { color: var(--ink); }
.store-rating:hover, .store-rating:focus-visible { text-decoration: underline; text-underline-offset: .2em; }
.quiz-invite { background: var(--paper); }
.quiz-inner { display: flex; align-items: center; justify-content: space-between; gap: .6rem 2.25rem; padding-block: clamp(1.55rem, 3.4vw, 2.6rem); }
.quiz-inner h2 { font: 620 clamp(1.24rem, 2vw, 1.65rem)/1.25 var(--body); text-transform: none; letter-spacing: -.025em; }
.quiz-inner p { max-width: 39rem; color: var(--sub); margin-top: .45rem; }
.quiz-inner .card-link { flex-shrink: 0; }
.quiz-invite + .coach-story { border-top: 1px solid var(--line); }
@media (max-width: 680px) { .quiz-inner { flex-direction: column; align-items: flex-start; } }
.qr-details { flex: none; font-size: .9rem; }
.qr-details summary, .sample-details summary { cursor: pointer; width: fit-content; min-height: 44px; padding-block: .66rem; }
.qr-details img { display: block; margin: .4rem auto; }
.sample-details { width: fit-content; max-width: 100%; }
.sample-details summary { font-weight: 610; }
.sample-content { padding: 1rem 1.2rem; color: var(--ink); background: var(--paper); border: 1px solid #c3c2b4; border-radius: .45rem; }
.sample-content h3 { font-size: 1.15rem; }
.sample-targets { display: grid; grid-template-columns: .6fr 1fr 1.2fr; align-items: end; gap: .6rem; margin-top: .6rem; }
.sample-targets label, .set-number { min-width: 0; font: 530 .8rem/1.4 var(--labels); text-transform: uppercase; letter-spacing: .05em; color: #42453b; }
.sample-targets input, .set-number strong { display: flex; align-items: center; width: 100%; height: 44px; margin-top: .2rem; font: 640 1.05rem/1.4 var(--body); }
.sample-targets input { min-width: 0; padding: .35rem .6rem; border-radius: .25rem; border: 1px solid #83877b; color: var(--ink); background: #fff; }
#quick-log { grid-column: 1/-1; min-height: 44px; background: var(--dark); color: white; border: 0; border-radius: .25rem; font: 650 .94rem var(--body); cursor: pointer; }
#quick-result:not(:empty) { color: #304328; margin-top: .65rem; }
.coach-story { background: var(--paper); }
.coach-story-inner { display: grid; grid-template-columns: minmax(10rem,16.5rem) minmax(0,42rem); align-items: center; gap: clamp(1.75rem,5vw,5rem); padding-block: clamp(2.8rem,6vw,5.5rem); }
.coach-story img { width: 100%; height: auto; display: block; border-radius: .35rem; }
.coach-story blockquote { margin: 1.1rem 0 .5rem; font: 450 clamp(1.15rem,1.65vw,1.45rem)/1.43 var(--body); }
.coach-story blockquote + p { max-width: 37rem; color: var(--sub); }
.coach-story .overline { margin-bottom: .55rem; }
.coach-story .card-link { margin: .4rem 1.3rem 0 0; }
.coach-story-inner:has(+ .coach-voices) { padding-bottom: clamp(1.8rem, 4vw, 3.5rem); }
.coach-voices { padding-bottom: clamp(2rem, 4.5vw, 3.7rem); }
.voices-heading { border-top: 1px solid #c8c8b9; padding-top: 1.55rem; }
.voices-heading h2 { font: 630 clamp(1.3rem, 2.05vw, 1.75rem)/1.25 var(--body); text-transform: none; letter-spacing: -.025em; }
.voices-heading p { color: var(--sub); margin-top: .45rem; }
.voices-heading strong { color: var(--ink); }
.voice-quotes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 58rem; gap: 1.2rem 2.75rem; margin: 1.25rem 0 .35rem; }
.voice-quotes figure { margin: 0; padding-left: .9rem; border-left: 3px solid #b38721; }
.voice-quotes blockquote { margin: 0; font-size: clamp(1.08rem, 1.55vw, 1.32rem); line-height: 1.4; }
.voice-quotes figcaption { margin-top: .42rem; color: var(--sub); font-size: .92rem; }
@media (max-width: 680px) { .voice-quotes { grid-template-columns: 1fr; } }
.tour-link { gap: .5rem; margin-top: .25rem; color: var(--paper); font-weight: 600; text-decoration: underline; text-underline-offset: .22em; }
.tour-play { width: 1.35rem; height: 1.35rem; display: grid; place-content: center; border: 1px solid currentColor; border-radius: 50%; }
.tour-play::before { content: ""; border-left: .35rem solid currentColor; border-block: .22rem solid transparent; margin-left: 2px; }
.challenge-home .plan-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.challenge-home .plan-card { display: flex; padding: clamp(1.3rem,2.2vw,2.1rem); }
.challenge-home .free-card { border-top: 3px solid #bb8911; }
.challenge-home .plan-card h3 { font: 400 clamp(2rem,3vw,2.9rem)/1.1 var(--display); text-transform: uppercase; }
.challenge-home .plan-card .plan-price { font: 550 1.35rem/1.35 var(--labels); color: var(--ink); margin-top: .65rem; }
.challenge-home .plan-card > p:not(.plan-price) { flex: 1; margin-block: .65rem; }
.challenge-home .plan-card > .payment-term { flex: none; font-size: .94rem; color: #42463c; margin: .36rem 0 0; }
.compare-all { margin-top: .85rem; }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; }
.challenge-home .foot-links { gap: .1rem 1.1rem; flex-wrap: wrap; }
@media (max-width: 800px) {
  .challenge-home .hero-wrap { grid-template-columns: 1fr; gap: 1.65rem; padding-block: 2.2rem; }
  .app-preview { justify-self: start; max-width: 34rem; }
  .challenge-home .plan-grid { grid-template-columns: 1fr; }
  .qr-details { display: none; }
}
@media (min-width: 801px) {
  .challenge-home .hero-copy { align-self: start; padding-top: clamp(2.25rem, 12vh, 7.5rem); }
}
@media (max-width: 680px) {
  .challenge-home { --frame-width: clamp(12rem,54vw,14.5rem); }
  .challenge-home .site-header { position: sticky; top: 0; }
  .challenge-home [id] { scroll-margin-top: 4.6rem; }
  .front-nav { gap: .85rem; font-size: .87rem; }
  .front-nav > a.nav-coach:not(.action) { display: none; }
  .front-nav .sticky-start { display: inline-flex; min-height: 44px; }
  .hero-in-view .front-nav .sticky-start { display: none; }
  .challenge-home .hero-copy h1 { font-size: clamp(2.9rem,9.6vw,4.2rem); }
  .challenge-home .hero-intro { margin-top: .8rem; }
  .challenge-home .hero-actions { margin-top: 1rem; }
  .screen-tabs { margin-bottom: .6rem; }
  .preview-caption { min-height: 2.55em; }
  .install-inner { display: block; }
  .coach-story-inner { grid-template-columns: minmax(7rem,31%) minmax(0,1fr); gap: 1.15rem; }
}
@media (max-width: 450px) {
  .challenge-home .head-inner { gap: .5rem; padding-inline: 1rem; }
  .front-nav { gap: .7rem; }
  .front-nav .sticky-start { padding-inline: .65rem; font-size: .83rem; }
  .challenge-home .hero-wrap { padding-top: 1.5rem; }
  .coach-story-inner { grid-template-columns: 1fr; }
  .coach-story img { max-width: 11rem; }
  .screen-tabs button { flex-direction: column; min-height: 67px; gap: .23rem; padding-inline: .17rem; font-size: .77rem; }
  .screen-tabs button img { width: 1.4rem; height: 1.8rem; }
}
@media (max-width: 365px) {
  .screen-tabs { gap: .28rem; }
  .screen-tabs button { font-size: .735rem; }
}
