/* makurun.app: one page, no script, no web font.
   Tokens follow the API's own pages (backend/app/pages/layout.py) so the site
   and /privacy, /terms, /support read as one place; the session colours are
   the app's Vivo accents, as the reference screens draw them. */

:root {
  color-scheme: light dark;
  --bg: #F3F4F6;
  --surface: #FFFFFF;
  --text: #0E1114;
  --muted: #4C545C;
  --line: #D9DDE2;
  --accent: #B8430F;
  --on-accent: #FFFFFF;
  --road: #2170B3;
  --frame: #1C2129;

  --intervals: #E5485F;
  --easy: #0E8FC9;
  --tempo: #C98A00;
  --long: #10A672;
  --recovery: #7C5CE0;
  --tile-text: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0A0D12;
    --surface: #12161D;
    --text: #EEF2F6;
    --muted: #A2ABB8;
    --line: #262C37;
    --accent: #F27A2E;
    --on-accent: #0A0D12;
    --road: #5AA9F0;
    --frame: #2A313C;

    --intervals: #FF7185;
    --easy: #38BDF8;
    --tempo: #FBBF24;
    --long: #34D399;
    --recovery: #A78BFA;
    --tile-text: #0A0D12;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 0; }
.brand {
  display: inline-flex; align-items: center; gap: .55rem;
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.3rem;
  letter-spacing: -0.01em;
}
.brand svg { width: 2.1rem; height: 2.1rem; }
.lang {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem;
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .85rem;
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center;
  padding: 2.5rem 0 4rem;
}
.eyebrow {
  margin: 0 0 .75rem; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow b { color: var(--accent); }
.eyebrow i { font-style: normal; color: var(--road); }
h1 {
  margin: 0 0 1rem; font-size: clamp(2.4rem, 6vw, 4rem); line-height: 1.05;
  letter-spacing: -0.03em; font-weight: 800;
}
h1 .trail { color: var(--accent); }
h1 .road { color: var(--road); }
.lede { margin: 0 0 1.75rem; font-size: 1.2rem; color: var(--muted); max-width: 32rem; }

.cta { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.soon {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--text); color: var(--bg); border-radius: 14px; padding: .7rem 1.1rem;
  font-weight: 700; line-height: 1.2;
}
.soon svg { width: 1.4rem; height: 1.4rem; fill: currentColor; flex: none; }
.soon small { display: block; font-weight: 500; font-size: .75rem; opacity: .75; }
.beta {
  font-weight: 700; text-decoration: none; padding: .7rem .4rem;
}
.beta::after { content: " \2192"; }
.req { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); }

/* Devices */
.devices { position: relative; justify-self: center; width: min(100%, 22rem); padding-right: 3rem; }
.phone {
  border: 7px solid var(--frame); border-radius: 2.6rem; overflow: hidden;
  background: #0A0D12;
  box-shadow: 0 1.5rem 3rem -1rem rgba(10, 13, 18, .35);
}
.watch {
  position: absolute; right: 0; bottom: 2.5rem; width: 9.5rem;
  border: 7px solid var(--frame); border-radius: 2.4rem; overflow: hidden;
  background: #000;
  box-shadow: 0 1rem 2rem -0.5rem rgba(10, 13, 18, .45);
}
.watch img { border-radius: 1.9rem; }

/* Feature rows */
.feature {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  padding: 3.5rem 0; border-top: 1px solid var(--line);
}
.feature.flip .shot { order: -1; }
.feature h2 {
  margin: 0 0 .75rem; font-size: clamp(1.6rem, 3.6vw, 2.3rem); line-height: 1.15;
  letter-spacing: -0.02em; font-weight: 800;
}
.feature p { margin: 0 0 1rem; color: var(--muted); font-size: 1.08rem; max-width: 30rem; }
.feature p strong { color: var(--text); }
.shot { justify-self: center; width: min(100%, 19rem); }
.shot.pair { display: flex; gap: 1rem; align-items: center; width: min(100%, 26rem); }
.shot.pair .watch { position: static; width: 50%; flex: none; }

.tile {
  display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 14px;
  margin-bottom: 1rem; color: var(--tile-text);
}
.tile svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: currentColor; stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; }
.t-intervals { background: var(--intervals); }
.t-easy { background: var(--easy); }
.t-tempo { background: var(--tempo); }
.t-long { background: var(--long); }
.t-recovery { background: var(--recovery); }
.t-trail { background: var(--accent); color: var(--on-accent); }

/* More, as small cards */
.more { padding: 3.5rem 0; border-top: 1px solid var(--line); }
.more h2 { margin: 0 0 1.5rem; font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -0.02em;
  font-weight: 800; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  padding: 1.25rem 1.25rem 1rem;
}
.card .tile { width: 2.4rem; height: 2.4rem; border-radius: 11px; margin-bottom: .75rem; }
.card .tile svg { width: 1.3rem; height: 1.3rem; }
.card h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: .98rem; }

/* Closing */
.closing {
  text-align: center; padding: 4rem 1rem; margin: 1rem 0 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: 28px;
}
.closing h2 { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3.6vw, 2.3rem); letter-spacing: -0.02em;
  font-weight: 800; }
.closing p { margin: 0 auto 1.5rem; color: var(--muted); max-width: 30rem; }
.closing .cta { justify-content: center; }

.lost { margin-top: 3rem; }
.lost h1 { font-size: clamp(2rem, 5vw, 3rem); }

footer { padding: 2.5rem 0 3rem; color: var(--muted); font-size: .9rem; }
footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 0 0 1rem; }
footer nav a { color: var(--muted); font-weight: 600; text-decoration: none; }
footer nav a:hover { color: var(--text); }
footer p { margin: 0 0 .5rem; max-width: 44rem; }

@media (max-width: 52rem) {
  .hero, .feature { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
  .hero { padding-top: 1rem; }
  .feature.flip .shot { order: 0; }
  .devices { width: min(100%, 19rem); padding-right: 2.5rem; }
  .watch { width: 8rem; bottom: 2rem; }
}
