/* Hallmark · shape: Product Story (draw 69a318 swapped: its schedule and search bar fit a club, not an app beta) · genre: playful · theme: brand · redesign: full
 * paper: #F7F8FB · accent: #4B55E8 (cobalt #606CFF) · display: Allo Display Round · body: Allo Text · hero: Counter (the beta button beside the replay playing) · nav: edge-aligned · footer: mast · signature: the walk replay of Ralph and Arlo, playing large in the hero
 * axes: light/rounded-sans/chromatic-blue · posture: Counter · colour posture: committed · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · waive 23 · .band is the only accent field on the page · cobalt carries the Share anywhere band, where the share cards are the marketing */
/* Hallmark · waive 26b · no disabled attribute anywhere · every button and link on the page always works, so nothing shows a disabled state */
/* Hallmark · waive 44c · the phones fan left from the replay toward the headline · the walk replay and the pack screen lean in toward the head, so the hero reads as one piece */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 · weakest: S, the Track and Health splits share a skeleton, so they sit apart with the replay band and packs between them */
@import url("./tokens.css");
@import url("./base.css");

body { line-height: 1.55; }
.container { max-width: calc(var(--container) + 2 * var(--gutter)); }

/* Buttons: one primary style, full capsule, cobalt (DESIGN.md) */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-sm); min-height: var(--btn-h); padding: 0 var(--space-lg); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-weight: 600; font-size: var(--text-md); text-decoration: none; transition: background-color var(--dur-micro) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-accent-deep); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.on-band { background: var(--color-paper-2); color: var(--color-ink); }
.btn.on-band:hover { background: var(--color-paper-3); }
.text-link { color: var(--color-accent); font-weight: 600; text-underline-offset: 0.2em; }
.text-link:hover { color: var(--color-accent-deep); text-decoration-thickness: 2px; }
.text-link:active { color: var(--color-ink); }

/* Nav: edge-aligned, solid paper */
.site-nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper); }
.site-nav .container { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-sm); font-family: var(--font-display); font-weight: 800; font-size: var(--text-lg); text-decoration: none; letter-spacing: var(--tracking-display); }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: var(--space-lg); }
.nav-links a { white-space: nowrap; }
.nav-links a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; color: var(--color-ink-2); font-weight: 600; font-size: var(--text-sm); text-decoration: none; }
.nav-links a:not(.btn):hover { color: var(--color-accent); }
.nav-links a:not(.btn):active { color: var(--color-ink); }
.nav-links a:focus-visible, .brand:focus-visible, .text-link:focus-visible, .site-foot a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 6px; }
.nav-links .btn { min-height: 44px; padding: 0 var(--space-md); font-size: var(--text-sm); }

/* Hero: Counter. The action beside the replay, playing */
.hero { display: grid; grid-template-columns: minmax(0, 32rem) minmax(0, 580px); justify-content: center; gap: var(--space-3xl); align-items: center; min-height: min(calc(100dvh - 72px), 860px); padding-block: var(--space-xl) var(--space-2xl); }
.hero h1 { font-size: var(--text-display); line-height: 0.98; max-width: 9ch; }
.hero .lead { margin-top: var(--space-lg); color: var(--color-ink-2); max-width: none; }
.hero .btn { margin-top: var(--space-xl); }
.hero .note { margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); max-width: 30rem; }
.hero .note a { color: var(--color-ink-2); }

.hero-media { display: grid; justify-items: end; gap: var(--space-md); width: min(100%, 580px); }
.phones { position: relative; width: 100%; aspect-ratio: 540 / 740; }
.phone { position: absolute; margin: 0; border-radius: var(--radius-phone); overflow: hidden; background: var(--color-ink); box-shadow: var(--shadow-phone); }
.phone img, .phone video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 1564; object-fit: cover; }
.phones .back { width: 52%; left: 0; top: 12%; transform: rotate(-5deg); }
.phones .front { width: 58%; right: 0; top: 0; transform: rotate(3deg); }
.replay-toggle { position: relative; z-index: var(--z-raised); display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 44px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: var(--color-paper-2); color: var(--color-ink); font-weight: 600; font-size: var(--text-sm); cursor: pointer; box-shadow: var(--shadow-card); transition: transform var(--dur-micro) var(--ease-out); }
.replay-toggle:hover { background: var(--color-paper-3); }
.replay-toggle:active { transform: scale(0.96); }
.replay-toggle:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }

/* Sections */
.section { padding-block: clamp(48px, 5vw, 72px); }
.head p { margin-top: var(--space-md); color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.45; max-width: 36rem; }
.head h2 { max-width: 14ch; }

/* Track: the live walk screen beside what it records */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap-columns); align-items: center; }
.split .screen { grid-column: 1 / span 5; justify-self: center; width: min(100%, 360px); }
.split .copy { grid-column: 7 / span 6; }
.split.flip .screen { grid-column: 8 / span 5; grid-row: 1; }
.split.flip .copy { grid-column: 1 / span 6; grid-row: 1; }
.screen { margin: 0; border-radius: var(--radius-phone); overflow: hidden; box-shadow: var(--shadow-phone); background: var(--color-paper-2); }
.screen img { width: 100%; aspect-ratio: 720 / 1564; object-fit: cover; }
.facts { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-xl) var(--gap-columns); }
.facts h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-lg); letter-spacing: 0; }
.facts p { margin-top: var(--space-2xs); color: var(--color-ink-2); }
.facts.stack { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); max-width: 30rem; }
.facts.stack li { padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: var(--shadow-card); }

/* Replay: cobalt band, the share cards in a rail */
.band { background: var(--color-accent); color: var(--color-on-band); }
.band .head p { color: var(--color-on-band-2); }
.rail { display: flex; gap: var(--gap-columns); margin-top: var(--space-2xl); padding: 0 0 var(--space-md); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline: 3px solid var(--color-tennis); outline-offset: 6px; border-radius: 8px; }
.rail figure { flex: 1 0 200px; margin: 0; scroll-snap-align: start; }
.rail img { width: 100%; border-radius: 16px; box-shadow: 0 20px 40px var(--color-shadow-deep); }
.rail figcaption { margin-top: var(--space-md); font-weight: 600; font-size: var(--text-lg); }
.rail figcaption span { display: block; color: var(--color-on-band-2); font-size: var(--text-sm); font-weight: 400; }
.band .fine { margin-top: var(--space-xl); color: var(--color-on-band-2); max-width: 44rem; }

/* Packs: families and walkers, side by side */
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap-columns); margin-top: var(--space-2xl); }
.panel { padding: var(--space-xl); border-radius: var(--radius-card); background: var(--color-paper-2); box-shadow: var(--shadow-card); }
.panel h3 { font-size: var(--text-2xl); }
.panel > p { margin-top: var(--space-xs); color: var(--color-ink-2); font-size: var(--text-lg); }
.panel ul { list-style: none; margin: var(--space-lg) 0 0; padding: 0; display: grid; gap: var(--space-sm); }
.panel li { padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.panel.walker { background: var(--color-ink); color: var(--color-on-band); box-shadow: none; }
.panel.walker > p { color: var(--color-on-band-2); }
.panel.walker li { border-top-color: color-mix(in oklab, var(--color-on-band) 18%, transparent); }

/* Beta steps */
.beta-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--space-lg); }
.steps { counter-reset: step; list-style: none; margin: var(--space-2xl) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; margin-bottom: var(--space-md); font-family: var(--font-display); font-weight: 800; font-size: var(--text-display-s); line-height: 1; color: var(--color-cobalt); }
.steps h3 { font-family: var(--font-body); font-weight: 600; font-size: var(--text-lg); letter-spacing: 0; }
.steps p { margin-top: var(--space-xs); color: var(--color-ink-2); }
.steps a, .beta-help a { color: var(--color-accent); font-weight: 600; text-underline-offset: 0.2em; }
.steps a:hover, .beta-help a:hover { color: var(--color-accent-deep); }
.steps a:focus-visible, .beta-help a:focus-visible, .hero .note a:focus-visible, .fine a:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; }
.beta-help { margin-top: var(--space-2xl); color: var(--color-ink-2); max-width: 52rem; }
#beta { scroll-margin-top: 80px; }

/* Footer: mast */
.site-foot { padding-block: var(--space-2xl) var(--space-xl); background: var(--color-paper-3); }
.site-foot .mast { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 12vw, 10rem); line-height: 0.9; letter-spacing: -0.03em; color: var(--color-ink); }
.site-foot .row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md) var(--space-lg); margin-top: var(--space-xl); color: var(--color-muted); font-size: var(--text-sm); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
.site-foot a { color: var(--color-ink-2); font-weight: 600; text-decoration: none; }
.site-foot a:hover { color: var(--color-accent); }

@media (max-width: 60rem) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); min-height: 0; }
  .hero-media { width: min(92%, 420px); justify-self: center; justify-items: center; }
  .split { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .split .copy, .split .screen, .split.flip .copy, .split.flip .screen { grid-column: 1; grid-row: auto; }
  .split .screen { order: 2; width: min(78%, 320px); }
  .pair, .steps { grid-template-columns: minmax(0, 1fr); }
  .rail { margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .rail figure { flex: 0 0 min(62vw, 240px); }
}
@media (max-width: 40rem) {
  .facts { grid-template-columns: minmax(0, 1fr); gap: var(--space-lg); }
  .nav-links { gap: var(--space-sm); }
  .nav-links a.nav-notes { display: none; }
  .brand span { display: none; }
  .panel { padding: var(--space-lg); }
  .hero-media { width: 92%; }
  .facts, .pair, .rail, .steps { margin-top: var(--space-xl); }
  .beta-help { margin-top: var(--space-xl); }
}
@media (max-width: 22.5rem) {
  .nav-links a.nav-manual { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .replay-toggle { transition: none; }
}
