/* kivofit.app: brand v2 (Volt → Ember on near-black, Sora). Matches the app. */
:root {
  --ink: #0B0C10;
  --surface: #14161C;
  --line: #23262E;
  --control: #1F222B;
  --text: #F4F6F8;
  --muted: #9AA3AE;
  --volt: #D4FF3F;
  --ember: #FF7A33;
  --with: #76A01A;
  --solo: #3C8EE6;
  --radius: 18px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0; background: var(--ink); color: var(--text); overflow-x: hidden;
  font: 400 17px/1.6 "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--volt); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
h2 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 28px; max-width: 18ch; }
.grad { background: linear-gradient(100deg, var(--volt), var(--ember)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 28px 0; position: relative; z-index: 2; }
.top nav { display: flex; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.top nav a:hover { color: var(--text); }
.mark { display: block; height: 30px; width: auto; }

/* hero */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; padding: 24px 0 120px; }
.hero h1 { margin: 0; font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; font-size: clamp(60px, 8.4vw, 128px); white-space: nowrap; }
.lede { max-width: 30ch; margin: 28px 0 0; font-size: 20px; color: var(--muted); }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; }
.store { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 14px; background: var(--text); color: var(--ink); line-height: 1.1; font-weight: 700; font-size: 19px; }
.store svg { width: 26px; height: 26px; }
.store small { display: block; font-size: 11px; font-weight: 500; letter-spacing: 0.01em; }
.ghost { color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; border-bottom: 1.5px solid var(--line); padding-bottom: 2px; }
.ghost:hover { border-color: var(--volt); }
.langs { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0; margin: 40px 0 0; font-size: 13px; color: var(--muted); max-width: 44ch; }

/* the stage: phone inside a ring that closes as the sets are logged */
.stage { position: relative; aspect-ratio: 1; width: min(560px, 100%); justify-self: end; display: grid; place-items: center; }
.halo { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.halo circle { fill: none; stroke-width: 22; stroke-linecap: round; }
.halo .track { stroke: var(--control); }
.halo .fill { stroke-dasharray: 0 100; animation: halo 2.4s cubic-bezier(.3,.7,.2,1) .5s forwards; }
@keyframes halo { 33% { stroke-dasharray: 22 100; } 66% { stroke-dasharray: 48 100; } to { stroke-dasharray: 76 100; } }

.phone { position: relative; width: 58%; aspect-ratio: 9 / 19; border-radius: 15% / 7%; background: #050608; padding: 3.2%;
         box-shadow: 0 0 0 2px #2A2E37, 0 40px 80px rgba(0,0,0,.55); animation: rise .9s cubic-bezier(.2,.8,.2,1) both; }
@keyframes rise { from { transform: translateY(24px); opacity: 0; } }
.island { position: absolute; top: 3.4%; left: 50%; width: 30%; height: 3.6%; transform: translateX(-50%); background: #000; border-radius: 99px; z-index: 1; }
.screen { height: 100%; border-radius: 12% / 5.6%; background: var(--ink); padding: 18% 7% 6%; display: flex; flex-direction: column; gap: 5%; overflow: hidden;
          font-size: clamp(9px, 1.25vw, 14px); container-type: inline-size; }
.ph-top { display: flex; justify-content: space-between; align-items: baseline; }
.ph-title { font-weight: 800; font-size: 1.5em; letter-spacing: -0.02em; }
.ph-clock { color: var(--volt); font-weight: 700; font-variant-numeric: tabular-nums; }
.ex { background: var(--surface); border: 1px solid var(--line); border-radius: 1.2em; padding: 1em; }
.ex-name { font-weight: 700; font-size: 1.15em; }
.ex-prev { color: var(--muted); font-size: 0.85em; margin: 0.2em 0 0.7em; }
.sets { display: grid; gap: 0.45em; }
.head, .set { display: grid; grid-template-columns: 1.2fr 1.6fr 1.6fr 1.4em; align-items: center; text-align: center; gap: 0.3em; }
.head { color: var(--muted); font-size: 0.75em; }
.set { padding: 0.45em 0; border-radius: 0.7em; font-weight: 700; font-variant-numeric: tabular-nums; background: transparent; }
.set i { width: 1.4em; height: 1.4em; border-radius: 0.45em; border: 2px solid var(--line); position: relative; }
.set i::after { content: ""; position: absolute; left: 30%; top: 12%; width: 30%; height: 55%; border: solid var(--ink); border-width: 0 0.18em 0.18em 0; transform: rotate(45deg); opacity: 0; }
.s1 { animation: tick .35s ease 1.0s forwards; } .s1 i { animation: box .35s ease 1.0s forwards; } .s1 i::after { animation: show .2s ease 1.15s forwards; }
.s2 { animation: tick .35s ease 1.8s forwards; } .s2 i { animation: box .35s ease 1.8s forwards; } .s2 i::after { animation: show .2s ease 1.95s forwards; }
.s3 { animation: tick .35s ease 2.6s forwards; } .s3 i { animation: box .35s ease 2.6s forwards; } .s3 i::after { animation: show .2s ease 2.75s forwards; }
@keyframes tick { to { background: rgba(212,255,63,.12); } }
@keyframes box { to { background: var(--volt); border-color: var(--volt); } }
@keyframes show { to { opacity: 1; } }
.rest { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0.2em 0.8em; background: var(--surface); border: 1px solid var(--line); border-radius: 1.2em; padding: 0.8em 1em;
        opacity: 0; animation: show .3s ease 2.95s forwards; }
.rest > span:first-child { color: var(--muted); font-size: 0.85em; }
.rest b { font-size: 1.6em; font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; color: var(--solo); }
.rest .bar { grid-column: 1 / -1; height: 0.4em; background: var(--control); border-radius: 99px; overflow: hidden; }
.rest .bar i { display: block; height: 100%; background: var(--solo); transform-origin: left; animation: drain 1.6s linear 3.1s forwards; }
@keyframes drain { to { transform: scaleX(0); } }
.coach { margin-top: auto; border-radius: 1.2em; padding: 1em; background: linear-gradient(120deg, var(--volt), var(--ember)); color: var(--ink);
         display: grid; gap: 0.1em; opacity: 0; transform: translateY(1em); animation: coach .5s cubic-bezier(.2,.8,.2,1) 4.8s forwards; }
.coach-label { font-size: 0.8em; font-weight: 600; }
.coach b { font-size: 1.7em; font-weight: 800; letter-spacing: -0.02em; }
.coach-why { font-size: 0.8em; }
@keyframes coach { to { opacity: 1; transform: none; } }

/* the coach section: three sessions in order */
.coach-sec { padding: 96px 0; border-top: 1px solid var(--line); }
.sessions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: s; }
.sessions li { padding: 26px 28px 30px 0; border-top: 3px solid var(--control); display: grid; gap: 6px; }
.sessions li + li { padding-left: 28px; }
.sessions .when { color: var(--muted); font-size: 15px; }
.sessions .big { font-size: clamp(54px, 7vw, 96px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.sessions .big small { font-size: 0.32em; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 0.2em; }
.sessions .what { color: #CDD3DA; }
.sessions .next { border-top-color: var(--volt); }
.sessions .next .big { color: var(--volt); }
.note { color: var(--muted); max-width: 60ch; margin: 30px 0 0; }

/* features */
.features { padding: 96px 0; border-top: 1px solid var(--line); }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 48px; }
.feat-grid h3 { margin: 0 0 8px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.feat-grid p { margin: 0; color: var(--muted); max-width: 34ch; }

/* trainers */
.trainers { padding: 96px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.trainers p { color: #CDD3DA; max-width: 52ch; margin: 0 0 28px; }
.btn { display: inline-block; background: var(--volt); color: var(--ink); font-weight: 700; padding: 13px 22px; border-radius: 999px; text-decoration: none; }
.btn:hover { filter: brightness(1.05); }
.weeks { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.bars { display: flex; align-items: flex-end; gap: 4%; height: 220px; }
.bars span { flex: 1; display: flex; flex-direction: column-reverse; gap: 4px; height: 100%; justify-content: flex-start; }
.bars span::before, .bars span::after { content: ""; border-radius: 6px; }
.bars span::before { height: calc(var(--s) * 22%); background: var(--solo); }
.bars span::after { height: calc(var(--w) * 22%); background: var(--with); }
.weeks figcaption { margin-top: 16px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.weeks figcaption i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.k-with { background: var(--with); } .k-solo { background: var(--solo); margin-left: 12px; }

/* privacy promise */
.promise { padding: 96px 0 120px; border-top: 1px solid var(--line); }
.promise ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; letter-spacing: -0.02em; }
.promise li::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; border: 0.14em solid var(--volt); margin-right: 0.6em; vertical-align: 0.05em; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
footer nav a { white-space: nowrap; color: var(--muted); }

/* legal pages */
.doc { max-width: 68ch; padding: 24px 0 96px; }
.doc h1 { font-size: clamp(36px, 6vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; margin: 24px 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 40px; font-size: 15px; }
.doc h2 { font-size: 22px; font-weight: 700; margin: 44px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: #D5DAE0; }
.doc ul { padding-left: 1.2em; }
.doc li { margin: 6px 0; }
.doc .short { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.doc .short p { margin: 0 0 8px; color: var(--text); }
.doc .short ul { margin: 0; }


@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 8px 0 72px; gap: 36px; }
  .stage { justify-self: center; width: min(400px, 100%); }
  .langs { margin-top: 28px; }
  .sessions { grid-template-columns: 1fr; }
  .sessions li, .sessions li + li { padding: 22px 0; }
  .feat-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trainers { grid-template-columns: 1fr; gap: 40px; }
  .coach-sec, .features, .trainers { padding: 72px 0; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .top nav { gap: 14px; font-size: 14px; }
  .top nav a[href^="mailto"] { display: none; }
  .lede { font-size: 18px; margin-top: 20px; }
  .hero h1 { font-size: clamp(52px, 17vw, 72px); }
  .cta { margin-top: 26px; }
  .screen { font-size: 2.6vw; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; }
  html { scroll-behavior: auto; }
}
