/* RowAlong landing page
   Mirrors the app: near-black surface + the intensity effort-ramp
   (easy green -> medium amber -> hard orange -> all-out red) as accents.
   Display type: Saira (athletic grotesque). Body: Hanken Grotesk.
   The overlay mockup deliberately uses the app's own system-font stack so it
   reads as the real product UI. */

:root {
  /* Near-black surface, faintly cool, tracking the app's #121214. */
  --bg:      oklch(0.15 0.006 264);
  --bg-2:    oklch(0.19 0.007 264);
  --bg-3:    oklch(0.23 0.009 264);
  --fg:      oklch(0.97 0.005 264);
  --fg-mut:  oklch(0.74 0.012 264);
  --fg-dim:  oklch(0.62 0.013 264);
  --line:    oklch(1 0 0 / 0.10);
  --line-2:  oklch(1 0 0 / 0.18);

  /* Effort ramp, exact app hex so the page and app agree. */
  --easy:   #34d399;
  --medium: #fbbf24;
  --hard:   #ff8c42;
  --allout: #ff4d4f;
  --ramp: linear-gradient(90deg, var(--easy), var(--medium) 38%, var(--hard) 70%, var(--allout));

  /* Hard orange leads as the action color: energetic, not alarm-red. */
  --accent: #ff8c42;
  --on-accent: oklch(0.2 0.03 55);

  --maxw: 1180px;
  --pad: clamp(1.25rem, 5vw, 4rem);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, .eyebrow, .wordmark, .num {
  font-family: "Saira", system-ui, sans-serif;
}

a { color: inherit; }

img { display: block; max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- layout helpers ---- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin: 0;
}

/* The ramp hairline is the brand signature, reused as a divider. */
.ramp-rule { height: 2px; border: 0; margin: 0; background: var(--ramp); opacity: 0.85; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in oklch, var(--bg) 86%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-weight: 700; font-size: 1.18rem; letter-spacing: 0.01em;
  text-decoration: none; color: var(--fg);
}
.wordmark svg { width: 22px; height: 22px; fill: none; stroke: var(--accent);
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.header-cta {
  font-family: "Saira", sans-serif; font-weight: 600; font-size: 0.92rem;
  text-decoration: none; color: var(--fg);
  padding: 0.5rem 0.95rem; border: 1px solid var(--line-2); border-radius: 8px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.header-cta:hover { background: var(--bg-2); border-color: var(--fg-dim); }

/* ---- hero ---- */
.hero { padding-block: clamp(3rem, 8vw, 6.5rem) clamp(3.5rem, 8vw, 6rem); }
.hero-grid {
  display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); align-items: center;
  grid-template-columns: 1fr;
}
@media (min-width: 920px) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; }
}

.hero-copy .eyebrow { margin-bottom: 1.1rem; }
.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.7rem, 1.5rem + 5vw, 4.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
}
.hero h1 .accent { color: var(--accent); }
.hero-lede {
  margin: 0 0 2rem; max-width: 30ch;
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  color: var(--fg-mut);
}

/* ---- download button + meta ---- */
.dl-group { display: flex; flex-direction: column; gap: 0.85rem; align-items: flex-start; }
.btn-dl {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: "Saira", sans-serif; font-weight: 600; font-size: 1.08rem;
  text-decoration: none;
  color: var(--on-accent); background: var(--accent);
  padding: 0.85rem 1.5rem; border-radius: 11px;
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.25) inset, 0 10px 30px -12px var(--accent);
  transition: transform 0.18s var(--ease), filter 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn-dl svg { width: 19px; height: 19px; fill: currentColor; }
.btn-dl:hover { filter: brightness(1.06); transform: translateY(-2px);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.3) inset, 0 16px 36px -12px var(--accent); }
.btn-dl:active { transform: translateY(0); }

.dl-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--fg-mut); }
.dl-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--fg-dim); }
.dl-note { font-size: 0.85rem; color: var(--fg-dim); max-width: 38ch; }
.dl-note b { color: var(--fg-mut); font-weight: 600; }

/* ---- hero "screen": dimmed video with the real overlay floating over it ---- */
.screen {
  position: relative; aspect-ratio: 16 / 10; width: 100%;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px oklch(0 0 0 / 0.8), 0 0 0 1px oklch(0 0 0 / 0.4);
}
.screen-video { position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; filter: brightness(0.62) saturate(1.05); }
.screen::after { /* bottom scrim so the floating card reads cleanly */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, oklch(0 0 0 / 0.55), transparent 45%);
  pointer-events: none;
}
.screen-tag {
  position: absolute; top: 14px; left: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-family: "Saira", sans-serif; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: oklch(1 0 0 / 0.82);
}
.screen-tag .live { width: 7px; height: 7px; border-radius: 50%; background: var(--allout); }

/* The overlay card floats in the corner, just like the app over fullscreen. */
.ov-mount { position: absolute; right: 14px; bottom: 14px; z-index: 3;
  width: clamp(168px, 42%, 224px); }

/* ====== faithful re-creation of the app overlay (coach density) ====== */
.ov-root {
  font-family: -apple-system, system-ui, sans-serif; color: #fff;
  border-radius: 16px; padding: 14px 16px; background: rgba(18, 18, 20, 0.92);
  box-shadow: 0 20px 40px -16px oklch(0 0 0 / 0.7);
  --stroke-color: var(--hard); --stroke-period: 2.14s;
}
.ov-head { display: flex; align-items: stretch; justify-content: space-between;
  gap: 12px; margin: 2px 0 9px; }
.ov-headcol { display: flex; flex-direction: column; min-width: 0; }
.ov-label { font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  font-size: 14px; color: var(--hard); }
.ov-spm { font-size: 11px; opacity: 0.7; margin-top: 2px; }
.ov-count { font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums;
  font-size: clamp(34px, 9vw, 48px); margin: 4px 0 0; }
.ov-stroke { position: relative; flex: 0 0 auto; align-self: stretch;
  display: flex; flex-direction: column; margin-right: 6px; }
.ov-stroke-track { width: 18px; flex: 1 1 auto; border-radius: 9px;
  background: rgba(255, 255, 255, 0.15); overflow: hidden;
  display: flex; align-items: flex-end; }
.ov-stroke-fill { display: block; width: 100%; height: 10%; border-radius: 9px 9px 0 0;
  background: var(--stroke-color);
  animation: ov-stroke-bar var(--stroke-period) infinite; }
@keyframes ov-stroke-bar {
  0%   { height: 10%;  animation-timing-function: cubic-bezier(0.2, 0.7, 0.3, 1); }
  33%  { height: 100%; animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1); }
  100% { height: 10%; }
}
.ov-stroke-cap { position: relative; margin-top: 5px; height: 11px; text-align: center;
  font-size: 8px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.6; }
.ov-stroke-cap > span { position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; }
.ov-cap-drive   { animation: ov-cap-d var(--stroke-period) infinite steps(1); }
.ov-cap-recover { animation: ov-cap-r var(--stroke-period) infinite steps(1); }
@keyframes ov-cap-d { 0% { opacity: 1 } 33.34% { opacity: 0 } 100% { opacity: 0 } }
@keyframes ov-cap-r { 0% { opacity: 0 } 33.34% { opacity: 1 } 100% { opacity: 1 } }
.ov-bar { height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.ov-bar > span { display: block; height: 100%; width: 58%; border-radius: 99px; background: var(--hard); }
.ov-extra { display: flex; justify-content: space-between; font-size: 11px; opacity: 0.6; margin-top: 9px; }
.ov-brand { display: flex; align-items: center; justify-content: center; gap: 6px;
  margin-top: 11px; font-family: "Saira", -apple-system, system-ui, sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.02em; opacity: 0.55; }
.ov-brand svg { width: 12px; height: 12px; fill: none; stroke: #ff8c42;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---- features: a spec sheet, numbered along the effort ramp ---- */
.features { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-head { max-width: 52ch; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 {
  margin: 0.7rem 0 0; font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); line-height: 1.05;
}
.spec { border-top: 1px solid var(--line); }
.spec-row {
  display: grid; gap: 0.5rem 2rem; align-items: baseline;
  grid-template-columns: 1fr;
  padding: clamp(1.25rem, 3vw, 1.9rem) 0;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) {
  .spec-row { grid-template-columns: auto minmax(0, 16rem) minmax(0, 1fr); gap: 2.5rem; }
}
.spec-num {
  font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums;
  color: var(--c, var(--fg-dim)); letter-spacing: 0.02em;
}
.spec-title { font-family: "Saira", sans-serif; font-weight: 600;
  font-size: 1.22rem; letter-spacing: -0.01em; margin: 0; }
.spec-body { margin: 0; color: var(--fg-mut); }
.spec-body b { color: var(--fg); font-weight: 600; }

/* ---- how it works ---- */
.how { padding-block: clamp(3rem, 7vw, 5rem); }
.steps {
  display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); margin-top: 2.5rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-top: 1.25rem; border-top: 2px solid var(--line-2); }
.step .k {
  font-family: "Saira", sans-serif; font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent);
}
.step h3 { margin: 0.5rem 0 0.4rem; font-weight: 600; font-size: 1.2rem; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--fg-mut); font-size: 0.97rem; }

/* ---- closing download band ---- */
.cta {
  margin-block: clamp(2rem, 6vw, 4rem);
  padding: clamp(2.25rem, 5vw, 3.5rem) var(--pad);
  border: 1px solid var(--line); border-radius: 18px;
  background:
    radial-gradient(120% 140% at 85% 0%, oklch(0.72 0.16 55 / 0.14), transparent 55%),
    var(--bg-2);
  text-align: center;
}
.cta h2 { margin: 0 0 0.5rem; font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.4rem); }
.cta p { margin: 0 auto 1.6rem; max-width: 44ch; color: var(--fg-mut); }
.cta .dl-group { align-items: center; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.5rem 3rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem;
  align-items: center; justify-content: space-between; color: var(--fg-dim); font-size: 0.9rem; }
.footer-inner .wordmark { font-size: 1rem; color: var(--fg-mut); }
.footer-inner .wordmark svg { width: 18px; height: 18px; }

/* ---- entrance motion (respecting reduced-motion) ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); animation: reveal 0.9s var(--ease) forwards; }
  .reveal[data-d="1"] { animation-delay: 0.06s; }
  .reveal[data-d="2"] { animation-delay: 0.14s; }
  .reveal[data-d="3"] { animation-delay: 0.22s; }
  .reveal[data-d="4"] { animation-delay: 0.3s; }
  @keyframes reveal { to { opacity: 1; transform: none; } }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ov-stroke-fill { animation: none; height: 55%; }
  .ov-stroke-cap { display: none; }
}
