/* Stride — page-specific sections for the Stride showcase (prefix st-). Tokens only; loads after sorvi.css.
   New compositions: hero (photo panel + tilted iPhone), week board, live-cue route band, 3-up gear cards, horizon CTA. */

/* ── Hero: real running photo panel left with a tilted iPhone standing over its edge; copy right on white ── */
.st-hero { padding: 112px 0 168px; }
.st-hero__grid { display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(0, 1fr); gap: 96px; align-items: center; }
.st-hero__media { position: relative; height: 740px; }
.st-hero__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 50%; border-radius: var(--r-xl); }
.st-hero__media::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-xl); pointer-events: none;
  background: linear-gradient(200deg, rgba(var(--scrim-rgb), 0) 52%, rgba(var(--scrim-rgb), .28) 100%); }
.st-hero__media > .il-abs { z-index: 2; }
.st-hero__split { left: 54%; top: 7%; }
.st-hero__split b { margin-left: 4px; font-weight: 600; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.st-hero__split .ico { color: var(--muted); }
.st-hero__phonewrap { right: -28px; bottom: -64px; width: 300px; }
.st-hero__tilt { transform: rotate(5deg); transform-origin: 50% 100%; }
.st-hero__cue { left: 22%; bottom: 13%; display: flex; align-items: center; gap: 12px; }
.st-hero__cue .ico { color: var(--accent-on-dark); }
.st-hero__cue .il-rec__wave { margin-left: 0; }
.st-hero__copy { display: grid; justify-items: start; gap: 24px; padding-bottom: 24px; }
.st-hero__copy h1 { max-width: 7.2em; }
/* (headline uses the standard display size with Geist) */
.st-hero__lead { max-width: 26em; color: var(--text-2); }
.st-hero__copy .hero__cta { margin-top: 8px; }
.st-trust { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--text-2); }
.st-trust li { display: inline-flex; align-items: center; gap: 8px; }
.st-trust .ico { color: var(--accent-ink); }

/* The iPhone (built from the kit's .phone mock, taller, with a live run on screen) */
.st-phone { position: relative; display: grid; align-content: start; justify-items: center; gap: 12px; width: 300px; height: 610px; padding: 20px 22px 24px; border-radius: 52px;
  background: var(--bg); box-shadow: inset 0 0 0 9px var(--ink-band), inset 0 0 0 11px var(--line-2), var(--shadow-window); overflow: hidden; }
.st-phone__notch { position: absolute; top: 20px; left: 50%; width: 92px; height: 26px; border-radius: 14px; background: var(--ink-band); transform: translateX(-50%); }
.st-phone__status { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 26px; padding: 0 16px; font: 600 13px/1 var(--font); color: var(--text); }
.st-phone__status span { display: flex; gap: 4px; }
.st-phone__status span i { width: 4px; height: 10px; border-radius: 1px; background: var(--text); }
.st-phone__status span i:nth-child(1) { height: 5px; } .st-phone__status span i:nth-child(2) { height: 7px; }
.st-phone__head { display: grid; justify-items: center; gap: 4px; margin-top: 16px; }
.st-phone__label { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.st-phone__title { font: 500 30px/1 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.st-phone .il-ring { width: 180px; height: 180px; margin-top: 12px; box-shadow: inset 0 0 0 12px var(--surface); }
.st-phone .il-ring::before { -webkit-mask: radial-gradient(circle, transparent 77px, #000 78px); mask: radial-gradient(circle, transparent 77px, #000 78px); }
.st-ring__in { display: grid; justify-items: center; gap: 4px; }
.st-ring__in b { font: 500 48px/1 var(--font-display); letter-spacing: -.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.st-ring__in small { font: 600 12px/1 var(--font); color: var(--muted); }
.st-phone__stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin: 8px 0 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.st-phone__stats div { display: grid; justify-items: center; gap: 4px; }
.st-phone__stats div + div { border-left: 1px solid var(--line); }
.st-phone__stats dt { font: 500 22px/1 var(--font-display); color: var(--text); font-variant-numeric: tabular-nums; }
.st-phone__stats dd { margin: 0; font: 500 12px/1 var(--font); color: var(--muted); }
.st-phone__track { position: relative; width: 100%; height: 8px; margin-top: 4px; border-radius: 4px; background: var(--line); }
.st-phone__track i { position: absolute; inset: 0 auto 0 0; width: var(--v, 60%); border-radius: 4px; background: var(--accent); }
.st-phone__ctrl { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 8px; }
.st-phone__pause { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink-band); color: var(--on-dark); flex: none; }
.st-phone__coach { display: inline-flex; flex: 1; align-items: center; justify-content: center; gap: 8px; height: 52px; border-radius: 26px; background: var(--accent-soft); color: var(--accent-ink); font: 600 14px/1 var(--font); }

/* ── Feature rows: pieces specific to Stride ── */
.st-chart { display: grid; gap: 16px; padding: 20px 24px 24px; }
.st-chart .il-bars { height: 150px; gap: 12px; }
.st-chart__x { display: flex; gap: 12px; font: 600 12px/1 var(--font); color: var(--muted); }
.st-chart__x span { flex: 1; text-align: center; }
.st-plan { display: grid; gap: 4px; padding: 12px 12px 64px; }
.st-plan > span { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; font: 500 14px/1 var(--font); color: var(--text-2); }
.st-plan > span.on { background: var(--bg); box-shadow: var(--shadow-pop); color: var(--text); }
.st-plan b { font-weight: 600; color: var(--muted); }
.st-plan small { font: 600 12px/1 var(--font); color: var(--muted); }
.st-plan .on small { color: var(--accent-ink); }
.st-plan__hand { position: absolute; right: 18%; top: 22px; z-index: 1; }
.st-plan__tip { position: absolute; right: 4%; top: calc(100% + 30px); z-index: 1; }
.st-cue { position: absolute; left: 6%; bottom: 8%; display: flex; align-items: center; gap: 12px; }
.st-cue .ico { color: var(--accent-on-dark); }
.st-cue .il-rec__wave { margin-left: 0; }

/* ── Week board: one week of the plan in a wide window, every run with its reason ── */
.st-week { padding: 16px; border-radius: 28px; background: var(--surface); }
.st-week__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 12px; padding: 24px; }
.st-day { display: grid; align-content: start; gap: 8px; min-height: 176px; padding: 16px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.st-day__d { font: 600 12px/1 var(--font); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.st-day__t { margin-top: 12px; font: 500 22px/1.05 var(--font-display); color: var(--text); }
.st-day__km { font: 500 14px/1.2 var(--font); color: var(--text-2); }
.st-day__lvl { display: flex; gap: 4px; margin-top: auto; padding-top: 16px; }
.st-day__lvl i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.st-day__lvl i.on { background: var(--sky); }
.st-day--rest .st-day__t { color: var(--muted); }
.st-day--today { background: var(--ink-band); box-shadow: none; }
.st-day--today .st-day__d { color: var(--accent-on-dark); }
.st-day--today .st-day__t { color: var(--on-dark); }
.st-day--today .st-day__km { color: var(--on-dark-2); }
.st-day--today .st-day__lvl i { background: var(--line-dark); }
.st-day--today .st-day__lvl i.on { background: var(--accent-on-dark); }
.st-week__note { display: flex; align-items: center; gap: 12px; margin: 0 24px 24px; padding: 16px; border-radius: 12px; background: var(--accent-tint); box-shadow: inset 0 0 0 1px var(--accent-soft); font-size: 15px; color: var(--text-2); }
.st-week__note .ico { color: var(--accent-ink); }
.st-week__note b { color: var(--text); font-weight: 600; }

/* ── Live-cue route: deep band, a run drawn as a line with the three cues you'd hear ── */
.st-route { position: relative; width: min(1100px, 100% - 2 * var(--gutter)); height: 360px; margin: 72px auto 32px; }
.st-route__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.st-route__track { fill: none; stroke: var(--line-dark); stroke-width: 10; stroke-linecap: round; }
.st-route__line { fill: none; stroke: var(--accent-on-dark); stroke-width: 4; stroke-linecap: round; }
.st-route__dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--accent-on-dark); box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .35); }
.st-route__dot--end { width: 22px; height: 22px; margin: -11px 0 0 -11px; background: var(--on-dark); box-shadow: 0 0 0 6px rgba(var(--accent-rgb), .5), 0 0 40px rgba(var(--accent-rgb), .8); }
.st-route .il-dark { display: flex; align-items: center; gap: 12px; text-align: left; }
.st-route .il-dark .ico { color: var(--accent-on-dark); }
.st-route__km { font: 500 13px/1 var(--font); color: var(--on-dark-2); }
.st-route__cue { display: grid; gap: 4px; }
.st-route__cue b { font: 600 15px/1.2 var(--font); color: var(--on-dark); }

/* ── Gear: three grey cards in a row, art on top ── */
.st-gear { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.st-gear__card { display: grid; grid-template-rows: auto auto 1fr; justify-items: center; gap: 12px; padding: 16px 16px 32px; border-radius: var(--r-lg); background: var(--surface); text-align: center; }
.st-gear__card .t-small { max-width: 24em; padding: 0 12px; color: var(--text-2); }
.st-gear__art.il { display: grid; place-items: center; height: 260px; margin-bottom: 12px; border-radius: var(--r); background: var(--bg); }
.st-watch { position: relative; display: grid; place-items: center; width: 150px; height: 176px; border-radius: 44px; background: var(--ink-band); box-shadow: inset 0 0 0 4px var(--text-2), var(--shadow-window); }
.st-watch::before, .st-watch::after { content: ""; position: absolute; left: 30px; right: 30px; z-index: -1; height: 60px; background: var(--line-2); }
.st-watch::before { top: -44px; border-radius: 16px 16px 0 0; }
.st-watch::after { bottom: -44px; border-radius: 0 0 16px 16px; }
.st-watch .il-ring { width: 112px; height: 112px; background: var(--night); box-shadow: inset 0 0 0 8px var(--line-dark); }
.st-watch .il-ring b { font-size: 30px; color: var(--on-dark); }
.st-gear__pods { left: 56%; top: 66%; }
.st-gear__pods .ico { color: var(--accent-ink); }
.st-heat { display: grid; justify-items: start; gap: 16px; width: min(300px, 84%); }
.st-heat .il-chip .ico { color: var(--peach); }
.st-heat .il-slider { font-size: 14px; }
.st-taper { width: 78%; }
.st-taper .il-chart { padding: 16px 16px 18px; }
.st-taper .il-bars { height: 96px; }

/* ── Proof: one runner's quote + two numbers (no logo row) ── */
.st-proof .v-lq__card { margin-top: 0; }
.st-proof .avatar { width: 48px; height: 48px; font-size: 15px; }

/* ── CTA: night band with the evening road photo rising out of the dark ── */
.st-final { margin-top: var(--section); padding-top: 140px; background: var(--night); color: var(--on-dark); overflow: hidden; }
.st-final__head { display: grid; justify-items: center; gap: 32px; text-align: center; }
.st-final__head h2 { max-width: 11em; }
.st-final__media { position: relative; width: min(1200px, 100% - 2 * var(--gutter)); aspect-ratio: 2 / 1; margin: 80px auto 0; }
.st-final__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-xl) var(--r-xl) 0 0;
  -webkit-mask: linear-gradient(#000 50%, transparent 98%); mask: linear-gradient(#000 50%, transparent 98%); }
.st-final__note { left: 6%; top: 10%; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 18px; }
.st-final__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: var(--on-accent); flex: none; }
.st-final__icon svg { width: 22px; height: 22px; }
.st-final__txt { display: grid; gap: 4px; }
.st-final__txt b { font: 600 14px/1.2 var(--font); color: var(--text); }
.st-final__txt small { font: 500 13px/1.2 var(--font); color: var(--text-2); }

/* ── Responsive ── */
@media (max-width: 1180px) {
  .st-hero__grid { gap: 72px; }
  .st-hero__phonewrap { right: -16px; }
}
@media (max-width: 1024px) {
  .st-hero__grid { grid-template-columns: minmax(0, 1fr); gap: 120px; }
  .st-hero__media { order: 2; height: 640px; margin-right: 40px; }
  .st-hero__copy { padding-bottom: 0; }
  .st-week__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .st-gear { grid-template-columns: minmax(0, 1fr); }
  .st-route { height: 520px; }
}
@media (max-width: 560px) {
  .st-hero { padding-top: 96px; }
  .st-hero__grid { gap: 48px; }
  .st-hero__media { height: 520px; margin: 0 0 80px; }
  .st-hero__photo, .st-hero__media::before { border-radius: 24px; }
  .st-hero__copy .hero__cta .btn { flex: 1 1 100%; }
  .st-hero__phonewrap { right: 12px; bottom: -64px; width: 204px; height: 415px; }
  .st-hero__tilt { transform: rotate(5deg) scale(.68); transform-origin: 0 0; }
  .st-hero__split { left: 12px; top: 14px; }
  .st-hero__cue { left: auto; right: 12px; top: 14px; bottom: auto; padding: 10px 12px; gap: 8px; }
  .st-hero__cue .il-rec__wave { display: none; }
  .st-week { padding: 8px; border-radius: 20px; }
  .st-week__grid { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px; }
  .st-day { grid-template-columns: 48px 1fr auto; align-items: center; min-height: 0; padding: 12px 16px; }
  .st-day__t { margin-top: 0; font-size: 20px; }
  .st-day__lvl { display: none; }
  .st-week__note { margin: 0 12px 12px; align-items: flex-start; }
  .st-route { height: 560px; margin-top: 48px; }
  .st-final { padding-top: 100px; }
  .st-final__media { aspect-ratio: 4 / 5; margin-top: 56px; }
  .st-final__photo { border-radius: 24px 24px 0 0; object-position: 64% 50%; }
}
.st-plan__tip { font-style: normal; }
@media (max-width: 560px) {
  .st-plan > span { grid-template-columns: 36px 1fr; gap: 8px; }
  .st-plan small { display: none; }
  .st-route { display: grid; gap: 12px; justify-items: start; height: auto; margin-top: 48px; }
  .st-route__svg, .st-route__dot { display: none; }
  .st-route .il-abs { position: relative; left: auto; top: auto; }
  .st-route .il-abs:nth-of-type(2) { margin-left: 24px; }
  .st-route .il-abs:nth-of-type(3) { margin-left: 48px; }
}
