:root {
  --accent: #22A45A;
  --accent-deep: #168A48;
  --accent-tint: #EAF8EF;
  --accent-tint2: #D3F0DD;
  --bg: #F2F8F0;
  --card: #FFFFFF;
  --ink: #18140F;
  --muted: #7A7265;
  --rule: rgba(24,20,15,.12);
  --z1: #9FC7FF;
  --z2: #7FD9A1;
  --z3: #FFB866;
  --z4: #FF7E5E;
  --z5: #E84A4A;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Apple SD Gothic Neo", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.kicker {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--accent);
}
.kicker .rule { flex: 1; height: 1px; background: rgba(24,20,15,.18); }
.kicker .num { color: rgba(24,20,15,.45); letter-spacing: .1em; }

/* ---------- brand mark (no app icon yet) ---------- */
.mark {
  display: inline-grid; place-items: center; flex: none;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--accent); color: #fff;
  font-family: var(--mono); font-size: 11px; font-weight: 800; letter-spacing: -0.02em;
}
footer .mark { width: 24px; height: 24px; border-radius: 7px; font-size: 10px; }

/* ---------- nav ---------- */
nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(242,248,240,.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.wordmark { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.wordmark span { font-family: var(--mono); font-size: 13px; font-weight: 800; letter-spacing: .28em; }
.lang { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.lang a {
  font-size: 12px; font-weight: 700; text-decoration: none;
  padding: 4px 7px; border-radius: 7px; color: var(--muted);
}
.lang a:hover { color: var(--ink); }
.lang a.cur { color: var(--accent); pointer-events: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(165deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.hero .ghost {
  position: absolute; right: -40px; top: -60px; z-index: 0;
  font-weight: 950; font-size: clamp(220px, 38vw, 480px); line-height: 1;
  color: rgba(255,255,255,.08); pointer-events: none; user-select: none;
}
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding-top: 72px; padding-bottom: 0;
}
.hero .kicker { color: rgba(255,255,255,.92); }
.hero .kicker .rule { background: rgba(255,255,255,.35); }
.hero h1 {
  margin: 26px 0 0; font-size: clamp(34px, 5vw, 56px); line-height: 1.16;
  font-weight: 900; letter-spacing: -0.015em; word-break: keep-all;
}
.hero h1 em { font-style: normal; border-bottom: 6px solid rgba(255,255,255,.4); }
.hero .sub { margin-top: 26px; max-width: 34em; font-size: 17px; color: rgba(255,255,255,.92); word-break: keep-all; }
.cta { margin: 30px 0 56px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px; text-decoration: none;
  background: #0b0b0b; color: #fff; border-radius: 14px; padding: 12px 22px;
  border: 1px solid rgba(255,255,255,.25); transition: transform .15s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge svg { width: 26px; height: 26px; fill: #fff; }
.store-badge .txt { line-height: 1.15; text-align: left; }
.store-badge .txt small { display: block; font-size: 11px; opacity: .8; }
.store-badge .txt strong { font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.store-badge.disabled {
  background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3);
  pointer-events: none; cursor: default;
}
.store-badge.disabled:hover { transform: none; }
.store-badge.disabled svg { opacity: .55; }
.cta .note { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; color: rgba(255,255,255,.85); }

/* ---------- phone mockup (shared) ---------- */
.hero .phone-col { position: relative; align-self: end; }
.phone {
  position: relative; width: min(300px, 78vw); margin: 0 auto;
  border-radius: 46px; padding: 11px; background: #101010;
  box-shadow: 0 40px 80px rgba(15,50,25,.4), inset 0 0 0 2px rgba(255,255,255,.09);
}
.phone .screen {
  position: relative; aspect-ratio: 9 / 19.3; border-radius: 36px; overflow: hidden;
  background: var(--bg); padding: 50px 14px 16px; color: var(--ink);
}
.phone .island {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 26px; border-radius: 14px; background: #030303; z-index: 5;
}
.hero .phone { margin-bottom: -64px; }
.chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: 8px;
  background: #fff; color: var(--ink); font-weight: 800; font-size: 13px; white-space: nowrap;
  border-radius: 99px; padding: 7px 14px 7px 8px; box-shadow: 0 14px 30px rgba(15,50,25,.35);
}
.chip .g {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 13px; font-weight: 900;
}
.chip.c1 { left: -8%;  top: 20%; transform: rotate(-6deg); }
.chip.c2 { right: -10%; top: 34%; transform: rotate(5deg); }
.chip.c3 { left: -6%;  top: 76%; transform: rotate(4deg); }

/* ---------- hero demo (running card -> retro -> AI coach) ---------- */
.demo-screen { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.demo-kicker { font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .18em; color: var(--muted); text-transform: uppercase; }
.run-card {
  background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: 0 8px 20px rgba(24,20,15,.06);
  opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease;
}
.run-card.show { opacity: 1; transform: none; }
.run-card .stats { display: flex; justify-content: space-between; }
.run-card .stat { text-align: left; }
.run-card .stat b { display: block; font-size: 17px; font-weight: 900; }
.run-card .stat span { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; color: var(--muted); }
.retro-card {
  background: var(--card); border-radius: 16px; padding: 12px 14px; box-shadow: 0 8px 20px rgba(24,20,15,.06);
  opacity: 0; transform: translateY(6px); transition: opacity .5s ease, transform .5s ease; min-height: 64px;
}
.retro-card.show { opacity: 1; transform: none; }
.retro-card .mood { font-size: 20px; margin-bottom: 6px; display: inline-block; }
.retro-card .txt { font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.retro-card .txt::after { content: ""; display: inline-block; width: 1.5px; height: 1em; background: var(--accent); margin-left: 2px; vertical-align: -0.1em; animation: blink 1s steps(1) infinite; }
.retro-card.done .txt::after { display: none; }
.coach-block {
  background: var(--accent-tint); border: 1px solid var(--accent-tint2); border-radius: 16px; padding: 12px 14px;
  opacity: 0; transform: translateY(6px); transition: opacity .6s ease, transform .6s ease;
}
.coach-block.show { opacity: 1; transform: none; }
.coach-block .lbl { font-family: var(--mono); font-size: 8px; font-weight: 800; letter-spacing: .16em; color: var(--accent-deep); margin-bottom: 6px; }
.coach-block p { font-size: 12px; font-weight: 600; line-height: 1.45; }
.coach-block p + p { margin-top: 6px; color: var(--muted); font-weight: 500; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- marquee ---------- */
.marquee { overflow: hidden; border-bottom: 1px solid var(--rule); background: var(--bg); }
.marquee .track {
  display: flex; gap: 48px; padding: 14px 0; width: max-content;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--muted);
  animation: scroll 32s linear infinite;
}
@keyframes scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee .track { animation: none; }
  .retro-card .txt::after { animation: none; }
  .run-card, .retro-card, .coach-block { transition: none; }
  .value-chart .curve { animation: none; stroke-dashoffset: 0; }
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
section h2 { font-size: clamp(26px, 3.5vw, 39px); font-weight: 900; letter-spacing: -0.015em; margin: 22px 0 14px; word-break: keep-all; }
section h2 em { font-style: normal; color: var(--accent); }
section .lede { color: var(--muted); max-width: 40em; font-size: 17px; word-break: keep-all; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; }
.step { position: relative; border-top: 1px solid var(--rule); padding-top: 22px; }
.step .n {
  position: absolute; right: 0; top: 6px; font-weight: 950; font-size: 88px; line-height: 1;
  color: rgba(24,20,15,.06); pointer-events: none;
}
.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; word-break: keep-all; }
.step .tag { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--accent); display: block; margin-bottom: 10px; }

/* ---------- value visualization ---------- */
.value-wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; margin-top: 48px; align-items: center; }
.value-chart { background: var(--card); border: 1px solid var(--rule); border-radius: 20px; padding: 26px 22px 18px; }
.value-chart svg { width: 100%; height: auto; display: block; }
.value-chart .curve {
  fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 900; stroke-dashoffset: 900; animation: drawline 1.6s ease forwards .2s;
}
@keyframes drawline { to { stroke-dashoffset: 0; } }
.value-chart .pt { fill: var(--accent); }
.value-chart .pt-label { font: 800 15px var(--mono); fill: var(--ink); }
.value-chart .x-label { font: 700 10px var(--mono); fill: var(--muted); letter-spacing: .05em; }
.value-legend { display: flex; justify-content: space-between; margin-top: 14px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.note-stack { position: relative; height: 230px; }
.note-card {
  position: absolute; left: 0; right: 0; background: var(--card); border: 1px solid var(--rule);
  border-radius: 16px; padding: 16px 18px; box-shadow: 0 14px 30px rgba(24,20,15,.08); font-size: 13.5px; font-weight: 600; word-break: keep-all;
}
.note-card .tag { display: block; font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .16em; color: var(--accent); margin-bottom: 8px; }
.note-card.n1 { top: 0; transform: rotate(-3deg); z-index: 1; opacity: .55; }
.note-card.n2 { top: 68px; transform: rotate(2deg); z-index: 2; opacity: .8; }
.note-card.n3 { top: 136px; transform: rotate(-1deg); z-index: 3; }

/* ---------- screenshots (CSS phone mockups) ---------- */
.shots { background: linear-gradient(180deg, var(--bg), var(--accent-tint)); }
.shots .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 52px; align-items: start; }
.shots .phone { width: 100%; }
.shots figcaption { text-align: center; margin-top: 16px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .22em; color: var(--muted); }
.shots figure:nth-child(2) { transform: translateY(34px); }

/* calendar mockup */
.cal-head { font-family: var(--mono); font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 10px; }
.cal-grid span { aspect-ratio: 1; border-radius: 5px; background: rgba(24,20,15,.05); }
.cal-grid span.d1 { background: var(--accent-tint2); }
.cal-grid span.d2 { background: var(--accent); }
.cal-grid span.d3 { background: var(--accent-tint); }
.cal-list { display: flex; flex-direction: column; gap: 6px; }
.cal-list .row2 {
  display: flex; justify-content: space-between; align-items: center; background: var(--card);
  border-radius: 10px; padding: 8px 10px; font-size: 10.5px; font-weight: 700; box-shadow: 0 4px 10px rgba(24,20,15,.05);
}
.cal-list .row2 .d { color: var(--muted); font-weight: 600; }
.cal-list .row2 .k { color: var(--accent-deep); }

/* HR zone + splits mockup */
.zone-bar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; margin-bottom: 8px; }
.zone-bar span { height: 100%; }
.zone-bar .z1 { background: var(--z1); }
.zone-bar .z2 { background: var(--z2); }
.zone-bar .z3 { background: var(--z3); }
.zone-bar .z4 { background: var(--z4); }
.zone-bar .z5 { background: var(--z5); }
.zone-legend { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.zone-legend span { display: flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 8px; font-weight: 700; color: var(--muted); }
.zone-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.zone-legend .z1 { background: var(--z1); } .zone-legend .z2 { background: var(--z2); }
.zone-legend .z3 { background: var(--z3); } .zone-legend .z4 { background: var(--z4); } .zone-legend .z5 { background: var(--z5); }
.split-row { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.split-row .km { font-family: var(--mono); font-size: 9px; font-weight: 800; color: var(--muted); width: 24px; }
.split-row .bar { flex: 1; height: 8px; border-radius: 4px; background: var(--accent); opacity: .8; }
.split-row .pace { font-family: var(--mono); font-size: 9px; font-weight: 700; width: 44px; text-align: right; }

/* AI coaching card mockup */
.coach-mock-lbl { font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .16em; color: var(--muted); margin-bottom: 10px; }
.coach-mock-card {
  background: var(--card); border-radius: 16px; padding: 14px; box-shadow: 0 8px 20px rgba(24,20,15,.06); margin-bottom: 10px;
}
.coach-mock-card p { font-size: 11.5px; font-weight: 600; line-height: 1.5; }
.coach-mock-tag {
  display: inline-block; font-family: var(--mono); font-size: 8.5px; font-weight: 800; letter-spacing: .1em;
  background: var(--accent-tint); color: var(--accent-deep); border-radius: 99px; padding: 4px 9px;
}

/* ---------- details grid ---------- */
.grid6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 32px; margin-top: 48px; }
.feat { border-top: 1px solid var(--rule); padding-top: 18px; }
.feat h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 14px; word-break: keep-all; }

/* ---------- final cta / footer ---------- */
.final { background: linear-gradient(165deg, var(--accent), var(--accent-deep)); color: #fff; text-align: center; }
.final h2 { margin: 0 0 12px; }
.final .lede { color: rgba(255,255,255,.9); margin: 0 auto; }
.final .cta { justify-content: center; margin-bottom: 0; }

footer { background: #161616; color: #bdbdbd; padding: 44px 0; font-size: 14px; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
footer .brand { display: flex; align-items: center; gap: 10px; color: #fff; }
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: #bdbdbd; text-decoration: none; }
footer a:hover { color: #fff; }

@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 12px; padding-top: 56px; }
  .hero .phone { margin-bottom: -48px; margin-top: 26px; }
  .chip.c1 { left: 0; } .chip.c3 { left: 2%; }
  .chip.c2 { right: 0; }
  .steps, .grid6, .shots .row { grid-template-columns: 1fr; }
  .value-wrap { grid-template-columns: 1fr; }
  .note-stack { height: 210px; margin-top: 10px; }
  .shots figure:nth-child(2) { transform: none; }
  section { padding: 64px 0; }
  .wordmark span { display: none; }
}
