/* StrideTap site. One accent (brand red), neutral grounds so the red app never sits on red.
   Radius rule: interactive things are pills, surfaces are 28px, devices use the real iPhone corner ratio. */

@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/assets/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #0e0f11;
  --ink-2: #17191d;
  --ink-3: #23262c;
  --line-dark: rgba(255, 255, 255, 0.1);
  --paper: #f2f3f5;
  --white: #ffffff;
  --line: #dcdfe4;
  --text: #111317;
  --sub: #4a4e57;
  --on-dark: #f5f6f7;
  --on-dark-sub: #a9aeb8;
  --red: #c6392a;
  --red-hover: #b23021;
  --red-text: #b2301f;     /* red for small text on light grounds (5.4:1) */
  --red-bright: #ff6a55;   /* red for text on dark grounds (6.9:1) */
  --r-tile: 28px;
  --pad: clamp(16px, 4vw, 40px);
  --max: 1240px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--text); background: var(--ink); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: var(--red-text); text-underline-offset: 3px; }
:focus-visible { outline: 2.5px solid var(--red-bright); outline-offset: 3px; border-radius: 6px; }
.container { width: min(100% - 2 * var(--pad), var(--max)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ── type ── */
.display { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.005em; line-height: 0.9; margin: 0; text-wrap: balance; }
h1.display { font-size: clamp(60px, 8.6vw, 132px); line-height: 0.88; }
h2.display { font-size: clamp(46px, 6.2vw, 92px); }
.accent { color: var(--red-text); }
.section-dark .accent, .hero .accent, .page-head .accent { color: var(--red-bright); }
.body-lg { font-size: clamp(18px, 1.5vw, 20px); line-height: 1.55; color: var(--sub); max-width: 46ch; margin: 24px 0 0; }
.section-dark .body-lg { color: var(--on-dark-sub); }
.mono { font-family: var(--mono); }

/* ── buttons ── */
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; white-space: nowrap; transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); }
.btn-ghost { color: var(--on-dark); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.btn-ink { background: var(--text); color: #fff; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; }
.link svg { width: 16px; height: 16px; transition: transform 0.15s; }
.link:hover svg { transform: translateX(3px); }

/* ── header ── */
.site-header { position: sticky; top: 0; z-index: 50; color: var(--on-dark); background: rgba(14, 15, 17, 0.8); border-bottom: 1px solid var(--line-dark); view-transition-name: site-header; }
@supports (backdrop-filter: blur(1px)) { .site-header { background: rgba(14, 15, 17, 0.9); backdrop-filter: saturate(1.4) blur(18px); } }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font: 800 25px/1 var(--display); letter-spacing: 0.01em; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.nav-links a:not(.btn) { color: var(--on-dark-sub); text-decoration: none; transition: color 0.15s; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"] { color: var(--on-dark); }
.nav-links .btn { height: 38px; padding: 0 16px; font-size: 14px; }
/* landing page: the header starts red over the red hero and turns ink as you scroll */
.site-header.on-red { background: var(--red); border-bottom-color: rgba(255, 255, 255, 0.16); }
.site-header.on-red .nav-links a:not(.btn) { color: #fff; }
.site-header.on-red .btn-red { background: #fff; color: var(--red-text); }
@supports (animation-timeline: scroll()) {
  .site-header.on-red { animation: header-ink linear both; animation-timeline: scroll(root); animation-range: 0 480px; }
  @keyframes header-ink { to { background-color: rgba(14, 15, 17, 0.94); border-bottom-color: rgba(255, 255, 255, 0.1); } }
}

/* ── device frame (dark titanium, so the red app reads on any ground) ── */
.device { --w: clamp(240px, 25vw, 330px); position: relative; width: var(--w); padding: calc(var(--w) * 0.03); border-radius: calc(var(--w) * 0.175);
  background: linear-gradient(145deg, #55555c 0%, #1d1d21 18%, #0b0b0d 55%, #303036 100%);
  box-shadow: 0 0 0 1px #000, inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 60px 120px -40px rgba(0, 0, 0, 0.75); }
.device-screen { position: relative; overflow: hidden; aspect-ratio: 1320 / 2868; border-radius: calc(var(--w) * 0.145); background: #000; box-shadow: 0 0 0 calc(var(--w) * 0.012) #050506; }
.device-screen > img, .device-screen > video { width: 100%; height: 100%; object-fit: cover; }
.device::after { content: ""; position: absolute; inset: calc(var(--w) * 0.03); border-radius: calc(var(--w) * 0.145); pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0) 40%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0) 60%); }

/* ── hero ── */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: radial-gradient(120% 95% at 18% 28%, #cd3c2c 0%, #c6392a 48%, #b53324 100%); }
.hero::before { content: ""; position: absolute; z-index: -1; right: -14%; top: -10%; width: 70%; height: 120%; background: radial-gradient(closest-side, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)); }
/* the red hero: ink accent like the film, white type at full strength (4.9:1), and a deep shadow so the red app never melts into the red page */
.hero .accent { color: #170c0b; }
.hero .chip { border-color: rgba(255, 255, 255, 0.42); color: #fff; }
.hero .chip i { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25); }
.hero .btn-ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.62); }
.hero .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.btn-white { background: #fff; color: var(--red-text); }
.btn-white:hover { background: #fff1ee; }
.hero .device { box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.55), inset 0 0 0 1.5px rgba(255, 255, 255, 0.2), 0 80px 140px -30px rgba(52, 7, 3, 0.7), 0 30px 60px -24px rgba(40, 5, 2, 0.55); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 5vw, 72px); align-items: center; min-height: min(calc(100dvh - 64px), 920px); padding-block: clamp(56px, 7vw, 96px); }
.chip { display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px; margin: 0 0 28px; border-radius: 999px; border: 1px solid var(--line-dark); color: var(--on-dark-sub); font-size: 14px; font-weight: 500; }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--red-bright); box-shadow: 0 0 0 4px rgba(255, 106, 85, 0.18); }
.hero .lede { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.5; color: #fff; max-width: 38ch; margin: 28px 0 36px; }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-track { position: absolute; z-index: -1; left: 50%; top: 50%; width: 150%; height: auto; translate: -40% -50%; overflow: visible; }
.hero-track path { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hero-track .run { stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 90 910; opacity: 0.9; }

/* ── sections ── */
.section { padding-block: clamp(88px, 11vw, 160px); background: var(--paper); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-head { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.section-head .body-lg { margin: 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }

/* problem: the comparison */
.compare { margin: 0; padding: clamp(24px, 3vw, 40px); background: var(--white); border-radius: var(--r-tile); box-shadow: 0 1px 0 rgba(17, 19, 23, 0.04), 0 40px 80px -50px rgba(17, 19, 23, 0.35); }
.compare-row { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 12px 16px; padding-block: 20px; }
.compare-row + .compare-row { border-top: 1px solid var(--line); }
.compare-row .who { font-size: 15px; font-weight: 600; color: var(--sub); }
.compare-row .num { font: 900 clamp(46px, 5vw, 76px)/0.85 var(--display); font-variant-numeric: tabular-nums; color: #8a909b; }
.compare-row .bar { grid-column: 1 / -1; height: 14px; border-radius: 999px; background: #e8eaee; overflow: hidden; }
.compare-row .bar i { display: block; height: 100%; width: calc(var(--v) * 100%); border-radius: inherit; background: #a7acb5; transform-origin: left center; }
.compare-row.is-tread .num { color: var(--red-text); }
.compare-row.is-tread .bar i { background: var(--red); }
.compare figcaption { margin-top: 8px; font-size: 14px; color: var(--sub); }

/* reel */
.reel-frame { position: relative; overflow: hidden; border-radius: var(--r-tile); background: #000; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line-dark), 0 60px 120px -60px rgba(198, 57, 42, 0.45); }
.reel-frame video { width: 100%; height: 100%; object-fit: cover; }
.reel-controls { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(14, 15, 17, 0.66); color: #fff; font: 600 14px/1 var(--sans); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); }
@supports (backdrop-filter: blur(1px)) { .icon-btn { backdrop-filter: blur(12px); } }
.icon-btn:hover { background: rgba(14, 15, 17, 0.85); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn [data-when] { display: none; }
.icon-btn[data-state="on"] [data-when="on"], .icon-btn[data-state="off"] [data-when="off"] { display: inline-flex; align-items: center; gap: 8px; }

/* features: a bento of real screens */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 16px; padding: clamp(24px, 2.6vw, 36px); border-radius: var(--r-tile); background: var(--white); box-shadow: 0 1px 0 rgba(17, 19, 23, 0.04); }
.tile h3 { margin: 0; font: 800 clamp(30px, 2.8vw, 40px)/0.95 var(--display); text-transform: uppercase; letter-spacing: 0.005em; }
.tile p { margin: 0; color: var(--sub); max-width: 40ch; }
.tile-dark { background: var(--ink-2); color: var(--on-dark); }
.tile-dark p { color: var(--on-dark-sub); }
.tile-red { background: var(--red); color: #fff; }
.tile-red p { color: rgba(255, 255, 255, 0.92); }
.tile-media { margin-top: auto; overflow: hidden; border-radius: 18px; }
.tile-media img, .tile-media video { width: 100%; height: auto; }
.t-dial { grid-column: span 7; grid-row: span 2; }
.t-dial .tile-media { margin-top: 12px; border-radius: 22px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }
.t-steps { grid-column: span 5; }
.t-steps .tile-media { margin-inline: calc(-1 * clamp(24px, 2.6vw, 36px)); margin-bottom: calc(-1 * clamp(24px, 2.6vw, 36px)); border-radius: 0; }
.t-tap { grid-column: span 5; }
.t-lock { grid-column: span 4; }
.t-settings { grid-column: span 8; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: 24px 32px; }
.t-settings .tile-media { margin: 0; border-radius: 20px; box-shadow: 0 0 0 1px var(--line); }
.t-brands { grid-column: span 8; }
.t-private { grid-column: span 4; }
.glyph { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 106, 85, 0.14); color: var(--red-bright); }
.glyph svg { width: 26px; height: 26px; }
.tile:not(.tile-dark) .glyph { background: rgba(198, 57, 42, 0.1); color: var(--red-text); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 0 0; padding: 0; list-style: none; }
.pills li { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-weight: 600; font-size: 15px; }
.pills svg { width: 18px; height: 18px; }
.brand-list { margin: 4px 0 0; font: 800 clamp(28px, 3.4vw, 48px)/1.05 var(--display); text-transform: uppercase; color: var(--text); max-width: none; }
.brand-list span { color: #b3b8c1; padding-inline: 0.18em; }

/* teach */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--line-dark); }
.steps .n { font: 500 15px/1.6 var(--mono); color: var(--red-bright); }
.steps h3 { margin: 0 0 4px; font: 600 20px/1.3 var(--sans); }
.steps p { margin: 0; color: var(--on-dark-sub); }
.teach-visual { display: grid; place-items: center; }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font: 600 clamp(18px, 1.5vw, 20px)/1.35 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 20px; height: 20px; color: var(--red-text); transition: rotate 0.2s ease; }
.faq details[open] summary svg { rotate: 45deg; }
.faq details p { margin: 0 0 24px; color: var(--sub); max-width: 62ch; }

/* end card */
.endcard { text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.endcard::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 10%; width: 900px; height: 700px; translate: -50% 0; background: radial-gradient(closest-side, rgba(198, 57, 42, 0.32), rgba(198, 57, 42, 0)); }
.endcard img { width: 112px; height: 112px; margin: 0 auto 32px; border-radius: 25px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7); }
.endcard .body-lg { margin-inline: auto; }
.endcard .actions { justify-content: center; margin-top: 36px; }

/* ── inner pages ── */
.page-head { background: var(--ink); color: var(--on-dark); padding-block: clamp(56px, 8vw, 104px) clamp(48px, 6vw, 72px); }
.page-head .body-lg { color: var(--on-dark-sub); max-width: 60ch; }
.page-head a { color: var(--red-bright); }
.page-head strong { color: var(--on-dark); }
.prose > * { max-width: 68ch; }
.prose h2 { font: 600 22px/1.3 var(--sans); margin: 40px 0 10px; }
.prose p, .prose li { color: var(--text); }
.prose li + li { margin-top: 6px; }
.muted { color: var(--sub); }

/* compatibility cards (markup generated by tools/sitegen) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.card { padding: 24px 26px; border-radius: var(--r-tile); background: var(--white); box-shadow: 0 1px 0 rgba(17, 19, 23, 0.04); }
.card header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.card h3 { margin: 0; font: 800 26px/1 var(--display); text-transform: uppercase; }
.card .models { margin: 10px 0 8px; }
.card .steps, .card .tested { margin: 0; font-size: 15px; color: var(--sub); }
.card .tested { color: var(--text); font-weight: 600; }
.card .note { margin: 12px 0 0; font-size: 14px; color: var(--sub); }
.badge { flex: none; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.badge.ok { background: var(--text); color: #fff; }
.badge.beta { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--text); }
.badge.no { background: var(--paper); color: var(--sub); }
.badge.warn { background: var(--red); color: #fff; }
.callout { margin-top: 32px; padding: clamp(24px, 3vw, 36px); border-radius: var(--r-tile); background: var(--ink); color: var(--on-dark); }
.callout h3 { margin: 0 0 8px; font: 800 30px/1 var(--display); text-transform: uppercase; }
.callout p { margin: 0; color: var(--on-dark-sub); max-width: 64ch; }
.callout a { color: var(--red-bright); }
.callout strong { color: var(--on-dark); }

/* ── footer ── */
.site-footer { background: var(--ink); color: var(--on-dark-sub); border-top: 1px solid var(--line-dark); padding-block: 40px 56px; font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer nav { display: flex; gap: 20px; }

/* ── responsive ── */
@media (max-width: 1023px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .t-dial { grid-column: span 6; grid-row: auto; }
  .t-steps, .t-tap, .t-lock, .t-private { grid-column: span 3; }
  .t-settings, .t-brands { grid-column: span 6; }
}
@media (max-width: 819px) {
  .hero-grid, .split, .section-head, .faq { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { min-height: 0; padding-block: 48px 72px; }
  .hero-visual { padding-block: 24px; }
  .device { --w: min(68vw, 300px); }
  .teach-visual { order: -1; }
  .t-steps, .t-tap, .t-lock, .t-private { grid-column: span 6; }
  .t-settings { grid-template-columns: minmax(0, 1fr); }
  .cards { grid-template-columns: minmax(0, 1fr); }
  .nav-links { gap: 18px; }
  .nav-links .wide { display: none; }
}
@media (max-width: 479px) {
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 420px) {
  .actions .btn { flex: 1 1 100%; }
  .reel-controls .label { display: none; }
}

/* ── motion: progressive enhancement, only when the visitor hasn't asked for less ── */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  .hero-track .lane { stroke-dasharray: 1000; stroke-dashoffset: 1000; animation: draw 1.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
  .hero-track .lane:nth-child(2) { animation-delay: 0.08s; }
  .hero-track .lane:nth-child(3) { animation-delay: 0.16s; }
  .hero-track .lane:nth-child(4) { animation-delay: 0.24s; }
  .hero-track .run { animation: lap 9s linear infinite; }
  @keyframes draw { to { stroke-dashoffset: 0; } }
  @keyframes lap { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -1000; } }
  .hero-copy > * { animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.06s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.14s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.22s; }
  .hero-visual .device { animation: arrive 1.1s 0.1s cubic-bezier(0.16, 1, 0.3, 1) both; }
  @keyframes rise { from { opacity: 0; translate: 0 28px; } }
  @keyframes arrive { from { opacity: 0; translate: 0 60px; rotate: 4deg; } }

  @supports ((animation-timeline: view()) and (animation-range: entry 0% entry 100%)) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 5% entry 70%; }
    @keyframes reveal { from { opacity: 0; translate: 0 48px; } }
    .compare-row .bar i { animation: grow linear both; animation-timeline: view(); animation-range: entry 40% cover 45%; }
    @keyframes grow { from { scale: 0 1; } }
    .steps li::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 100%; background: var(--red-bright); transform-origin: left; animation: grow linear both; animation-timeline: view(); animation-range: entry 60% cover 50%; }
    .hero-visual .float { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    @keyframes drift { to { translate: 0 12%; rotate: -3deg; } }
  }
}
