/* Kaga Coach - marketing site. Brand from the app's DESIGN.md.
   No external fonts or trackers: privacy-first site for a privacy-first app. */

:root {
  --bg: #0B0D12;
  --surface: #161A24;
  --surface-high: #1E2330;
  --outline: #2A3142;
  --text: #F2F4F8;
  --dim: #8A93A6;
  --brand: #FF4757;
  --push: #FF5C33;
  --rest: #34D399;
  --warm: #4DA3FF;
  --slack: #FACC15;
  --max: #E5343F;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ---- nav ---- */
nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 13, 18, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--outline);
}
nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; }
.logo .mark { width: 22px; height: 22px; }
.logo-img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--dim); }
.nav-links a:hover { color: var(--text); }
.lang { border: 1px solid var(--outline); border-radius: 20px; padding: 5px 12px; font-size: 13px; }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand); color: #000; font-weight: 700;
  padding: 14px 26px; border-radius: 30px; font-size: 16px;
  transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--outline); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.soon { font-size: 12px; color: var(--dim); margin-top: 10px; }

/* ---- hero ---- */
.hero { padding: 80px 0 60px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 1.5px; font-size: 13px; text-transform: uppercase; }
h1 { font-size: 54px; line-height: 1.05; font-weight: 800; margin: 16px 0; letter-spacing: -1px; }
h1 .grad { background: linear-gradient(100deg, var(--brand), var(--push)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 19px; color: var(--dim); margin-bottom: 28px; max-width: 30em; }

/* ---- phone mockup ---- */
.phone {
  width: 290px; margin: 0 auto;
  border: 10px solid #05060a; border-radius: 42px;
  background: var(--bg); padding: 22px 20px 26px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px var(--outline);
}
.phone .statusrow { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; margin-bottom: 26px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.bpm { text-align: center; }
.bpm .num { font-size: 92px; font-weight: 900; line-height: 1; color: var(--push); }
.bpm .lbl { color: var(--dim); font-size: 12px; letter-spacing: 3px; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-high); color: var(--push); border-radius: 18px; padding: 8px 16px; font-size: 14px; font-weight: 600; margin: 18px auto 0; }
.chipwrap { text-align: center; }
.zonebar { height: 12px; border-radius: 6px; margin: 22px 0 8px; background: linear-gradient(90deg, var(--warm) 0 45%, var(--slack) 45% 72%, var(--push) 72% 91%, var(--max) 91% 100%); position: relative; }
.zonebar::after { content:""; position:absolute; top:-3px; left:84%; width:3px; height:18px; background:#fff; border-radius:2px; }
.zonelabels { display:flex; justify-content: space-between; color: var(--dim); font-size: 9px; letter-spacing:1px; }

/* ---- real app screenshots ---- */
.phone-shot {
  width: 280px; margin: 0 auto;
  border: 10px solid #05060a; border-radius: 42px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px var(--outline);
}
.phone-shot img { display: block; width: 100%; height: auto; }
.shots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 44px auto 0; max-width: 640px; }
.shot { text-align: center; display: flex; flex-direction: column-reverse; }
.shot-frame {
  border: 7px solid #05060a; border-radius: 30px; overflow: hidden;
  box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 0 1px var(--outline);
}
.shot-frame img { display: block; width: 100%; height: auto; }
.shot .cap { color: var(--dim); font-size: 14px; margin-bottom: 12px; }

/* ---- split section: headline · screenshot · paragraph ---- */
.split { display: grid; gap: 14px 48px; align-items: center;
  grid-template-columns: 0.9fr 1.1fr;
  grid-template-areas: "media head" "media rest"; }
.split.flip { grid-template-columns: 1.1fr 0.9fr; grid-template-areas: "head media" "rest media"; }
.split-head { grid-area: head; align-self: end; }
.split-media { grid-area: media; }
.split-rest { grid-area: rest; align-self: start; }
.split-head h1, .split-head h2 { margin-bottom: 0; }
.split-rest p + p { margin-top: 14px; }
.split-media .phone-shot { width: 260px; }

@media (max-width: 860px) {
  .shots { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  /* mobile: headline, then image, then paragraph */
  .split, .split.flip { grid-template-columns: 1fr; grid-template-areas: "head" "media" "rest"; gap: 16px; }
  .split-head, .split-rest { align-self: auto; }
}
@media (max-width: 480px) { .shots { grid-template-columns: 1fr; max-width: 300px; margin-left: auto; margin-right: auto; } }

/* ---- sections ---- */
section { padding: 70px 0; border-top: 1px solid var(--outline); }
.section-eyebrow { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; }
h2 { font-size: 36px; font-weight: 800; letter-spacing: -.5px; margin: 12px 0 18px; }
.section-lede { color: var(--dim); font-size: 18px; max-width: 34em; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--outline); border-radius: 18px; padding: 26px; }
.card .ico { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 16px; font-size: 20px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--dim); font-size: 15px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--outline); border-radius: 18px; padding: 26px; }
.step .n { counter-increment: s; font-size: 13px; font-weight: 800; color: #000; background: var(--brand); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; }
.step .n::before { content: counter(s); }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { color: var(--dim); font-size: 15px; }

.coaches { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; grid-auto-rows: 1fr; }
.coach { border: 1px solid var(--outline); border-radius: 16px; padding: 16px 18px; }
.coach .nm { font-weight: 700; font-size: 15px; white-space: nowrap; }
.coach .tg { color: var(--dim); font-size: 13px; white-space: nowrap; }
/* all coach cards share the same style - no special-cased card */

.banner { text-align: center; }
.banner h2 { font-size: 40px; max-width: 16em; margin: 0 auto 14px; }
.banner .section-lede { margin: 0 auto 28px; }

.privacy-points { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 30px; }
.pp { display: flex; gap: 12px; align-items: flex-start; }
.pp .check { color: var(--rest); font-weight: 800; }

/* ---- share flow ---- */
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; }
.flowstep { text-align: center; }
.miniphone {
  border: 7px solid #05060a; border-radius: 28px; background: var(--bg);
  padding: 16px 14px; min-height: 190px; box-shadow: 0 16px 40px rgba(0,0,0,.45), 0 0 0 1px var(--outline);
  display: flex; flex-direction: column; gap: 10px; text-align: left;
}
.mini-title { font-weight: 700; font-size: 14px; }
.mini-sub { color: var(--dim); font-size: 11px; }
.mini-row { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--outline); border-radius: 10px; padding: 9px 11px; font-size: 12px; }
.mini-mic { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #000; display: grid; place-items: center; font-size: 15px; margin: 4px auto; }
.mini-take { background: var(--surface-high); border-radius: 12px; padding: 5px 9px; font-size: 11px; display: inline-block; }
.flow .num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #000; font-weight: 800; display: grid; place-items: center; margin: 16px auto 8px; font-size: 13px; }
.flow .cap { color: var(--dim); font-size: 14px; }
.flow .cap b { color: var(--text); }
.pill-green { color: var(--rest); }

footer { padding: 56px 0; border-top: 1px solid var(--outline); color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 18px; }
footer .footer-inner { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.footer-logo { height: 26px; width: auto; opacity: .9; }
.footer-note { max-width: 46em; margin: 0; font-size: 12.5px; line-height: 1.6; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }
.footer-copy { font-size: 13px; }
footer a:hover { color: var(--text); }

/* ---- legal page ---- */
.legal { padding: 60px 0; }
.legal h1 { font-size: 38px; }
.legal h2 { font-size: 22px; margin-top: 32px; }
.legal p, .legal li { color: var(--dim); font-size: 16px; margin-top: 10px; }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--dim); font-size: 14px; }

/* ---- tablet & phone ---- */
@media (max-width: 860px) {
  .wrap { padding: 0 20px; }
  section { padding: 52px 0; }

  /* Hero stacks and centers; phone leads visually. */
  .hero { padding: 48px 0 40px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero .lede { margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
  .phone { margin: 0 auto; }

  h1 { font-size: clamp(32px, 9vw, 44px); }
  h2 { font-size: clamp(26px, 7vw, 34px); }
  .banner h2 { font-size: clamp(26px, 7vw, 34px); }
  .lede { font-size: 17px; }
  .section-lede { font-size: 16px; }

  /* Single column everywhere multi-column was used. */
  .feature-grid, .steps, .privacy-points, .flow { grid-template-columns: 1fr; gap: 14px; }
  .flow { max-width: 420px; margin: 32px auto 0; }
  .miniphone { min-height: 0; }

  /* Keep the language toggle + Share; drop the rest to avoid a cramped bar. */
  .nav-links { gap: 14px; }
  .nav-links a:not(.lang):not([href="#share"]) { display: none; }

  footer .wrap { flex-direction: column; gap: 12px; }
}

/* ---- small phones ---- */
@media (max-width: 420px) {
  .wrap { padding: 0 16px; }
  .phone { width: 100%; max-width: 280px; }
  .btn { width: 100%; justify-content: center; }
  .btn-row { width: 100%; }
  .nav-links a:not(.lang) { display: none; }
}

/* ===== share placeholder (swap for a real screenshot later) ===== */
.share-ph {
  aspect-ratio: 9 / 19.5; background: #0B0D12;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 18px; color: var(--dim); font-size: 15px; padding: 24px; text-align: center;
}
.share-ph .faux-btn { background: var(--brand); color: #000; font-weight: 700; padding: 12px 28px; border-radius: 24px; font-size: 15px; }

/* ===== how-it-works: number and headline on one row ===== */
.step { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 6px; }
.step .n { grid-row: 1; grid-column: 1; margin-bottom: 0; }
.step h3 { grid-row: 1; grid-column: 2; align-self: center; margin-bottom: 0; }
.step p { grid-column: 1 / -1; }
@media (max-width: 600px) {
  /* feature cards: compact, icon on the left instead of a tall stack */
  .card { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; row-gap: 4px; align-items: center; padding: 18px; }
  .card .ico { grid-row: span 2; margin-bottom: 0; }
  .card h3 { margin-bottom: 2px; }
  /* coach cards: tighter padding on small screens */
  .coach { padding: 14px; }
}
