/* Kairox website. Brand: black and white, Manrope, square corners; gold only for tracks and progress. */
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("fonts/Manrope-ExtraBold.ttf") format("truetype"); font-weight: 800; font-display: swap; }

:root {
  --bg: #0d0c0b;
  --bg-2: #161513;
  --ink: #ffffff;
  --soft: rgba(255, 255, 255, 0.64);
  --faint: rgba(255, 255, 255, 0.42);
  --rule: rgba(255, 255, 255, 0.12);
  --gold: #d4a64a;
  --paper: #f6f4f0;
  --paper-ink: #0d0c0b;
  --paper-soft: #57534d;
  --paper-rule: #dedad3;
  --gold-on-paper: #a97c22;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--bg); }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--soft); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 12, 11, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--rule);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 40px; height: auto; }
.brand span { font-weight: 800; font-size: 19px; letter-spacing: 0.12em; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--soft); transition: color .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  font: 700 15px/1 "Manrope", sans-serif; letter-spacing: 0.01em;
  text-decoration: none; border: 1.5px solid var(--ink); cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; }
.nav .btn { min-height: 40px; padding: 0 16px; font-size: 14px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn { margin-left: auto; } }

/* ---------- Track (home) ---------- */
.track-layer { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.track-layer svg { position: absolute; left: 0; top: 0; overflow: visible; }
.track-lane { fill: none; stroke: rgba(255,255,255,0.07); stroke-width: 1.5; }
.track-line { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.track-head { fill: var(--gold); }
.track-halo { fill: none; stroke: var(--gold); stroke-opacity: .35; stroke-width: 2; }
main.home { position: relative; overflow-x: clip; }
.hero { overflow-x: clip; }
main.home > section, main.home > footer { position: relative; z-index: 1; }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 9vw, 120px) 0 clamp(64px, 8vw, 120px); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero h1 {
  font-weight: 800; font-size: clamp(52px, 8.4vw, 124px); line-height: 0.92; letter-spacing: -0.045em;
  margin: 18px 0 26px;
}
.hero p.lede { font-size: clamp(18px, 1.6vw, 22px); color: var(--soft); max-width: 30ch; margin: 0 0 34px; font-weight: 500; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--faint); }
.phones { position: relative; height: clamp(460px, 52vw, 680px); }
.phone {
  position: absolute; width: clamp(200px, 20vw, 290px);
  padding: 2.8%; background: #000; border: 1.5px solid rgba(255,255,255,.22);
  border-radius: 15% / 7%; box-shadow: 0 40px 80px rgba(0,0,0,.6);
}
.phone img { border-radius: 12.5% / 5.8%; width: 100%; }
.phones .p1 { left: 4%; top: 6%; transform: rotate(-7deg); z-index: 2; }
.phones .p2 { right: 2%; top: 14%; transform: rotate(6deg); }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 520px; margin-top: 12px; }
  .phone { width: 210px; }
  .phones .p1 { left: calc(50% - 205px); }
  .phones .p2 { right: calc(50% - 205px); }
}

/* Reveal on load / scroll */
.rise { opacity: 0; transform: translateY(18px); transition: opacity .8s ease, transform .8s ease; }
.rise.in { opacity: 1; transform: none; }
.hero .rise:nth-child(2) { transition-delay: .08s; }
.hero .rise:nth-child(3) { transition-delay: .16s; }
.hero .rise:nth-child(4) { transition-delay: .24s; }
.hero .rise:nth-child(5) { transition-delay: .32s; }

/* ---------- Facts strip ---------- */
.facts { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: rgba(13,12,11,.6); }
.facts .wrap { display: grid; grid-template-columns: repeat(3, 1fr); }
.fact { padding: 30px 0; }
.fact + .fact { border-left: 1px solid var(--rule); padding-left: 28px; }
.fact b { display: block; font-size: clamp(34px, 4vw, 52px); font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.fact span { color: var(--soft); font-size: 15px; font-weight: 500; }
@media (max-width: 700px) {
  .facts .wrap { grid-template-columns: 1fr; }
  .fact + .fact { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
}

/* ---------- Generic section ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section h2 {
  font-weight: 800; font-size: clamp(40px, 5.6vw, 80px); line-height: 0.98; letter-spacing: -0.04em; margin: 16px 0 22px;
}
.section p.sub { color: var(--soft); font-size: clamp(17px, 1.4vw, 20px); max-width: 46ch; font-weight: 500; margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split.flip > :first-child { order: 0; } }
.solo-phone { position: relative; display: flex; justify-content: center; }
.solo-phone .phone { position: relative; width: clamp(230px, 24vw, 320px); }

/* Check-in states */
.states { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 40px; }
.state { background: var(--bg); padding: 22px 22px 24px; }
.state b { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.state p { margin: 6px 0 0; color: var(--soft); font-size: 15px; }
.state .bar { height: 4px; background: var(--rule); margin-top: 16px; position: relative; }
.state .bar i { position: absolute; inset: 0 auto 0 0; background: var(--gold); }

/* Sports wall */
.sports { overflow: hidden; }
.wall { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 0 clamp(14px, 2vw, 28px); line-height: 0.95; }
.wall span {
  font-weight: 800; font-size: clamp(44px, 7.6vw, 112px); letter-spacing: -0.04em; text-transform: uppercase;
  color: var(--ink);
}
.wall span.o { color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.55); }
.wall span:hover { color: var(--ink); -webkit-text-stroke: 0; }

/* Coach */
.chat { display: flex; flex-direction: column; gap: 14px; max-width: 460px; margin-left: auto; }
.bubble { padding: 16px 20px; font-size: 17px; font-weight: 500; border-radius: 26px; max-width: 88%; }
.bubble.me { background: var(--ink); color: var(--bg); align-self: flex-end; }
.bubble.coach { background: var(--bg-2); border: 1px solid var(--rule); align-self: flex-start; color: var(--ink); }
.proposal { background: var(--bg-2); border: 1px solid var(--rule); border-radius: 24px; padding: 20px; }
.proposal b { font-size: 19px; }
.proposal p { margin: 4px 0 16px; color: var(--soft); font-size: 15px; }
.proposal .row { display: flex; gap: 10px; }
.pill { flex: 1; text-align: center; padding: 12px; border-radius: 999px; font-weight: 700; font-size: 15px; }
.pill.yes { background: var(--ink); color: var(--bg); }
.pill.no { border: 1px solid var(--rule); }
.tiny { font-size: 13px; color: var(--faint); margin-top: 18px; }

/* Free list */
.ticks { list-style: none; padding: 0; margin: 34px 0 0; border-top: 1px solid var(--rule); }
.ticks li { padding: 16px 0; border-bottom: 1px solid var(--rule); display: flex; gap: 16px; align-items: baseline; font-weight: 500; }
.ticks li::before { content: ""; flex: none; width: 14px; height: 3px; background: var(--gold); transform: translateY(-4px); }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); margin-top: 48px; }
.price { background: var(--bg); padding: 30px 28px 32px; display: flex; flex-direction: column; }
.price.main { background: var(--ink); color: var(--bg); }
.price .eyebrow { color: inherit; opacity: .64; }
.price b { font-size: clamp(40px, 4.4vw, 58px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 14px 0 6px; }
.price b small { font-size: 17px; letter-spacing: 0; font-weight: 700; opacity: .7; }
.price p { margin: 0; font-size: 15px; opacity: .72; }
.price .tag { align-self: flex-start; margin-top: 18px; background: var(--bg); color: var(--ink); font-size: 12px; font-weight: 800; padding: 6px 9px; letter-spacing: .04em; }
@media (max-width: 860px) { .prices { grid-template-columns: 1fr; } }

/* Privacy promise */
.promise { background: var(--paper); color: var(--paper-ink); }
.promise .eyebrow { color: var(--paper-soft); }
.promise p.sub { color: var(--paper-soft); }
.promise .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 48px; border-top: 2px solid var(--paper-ink); padding-top: 28px; }
.promise h3 { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; }
.promise .cols p { margin: 0; color: var(--paper-soft); font-size: 16px; }
.promise a.more { display: inline-block; margin-top: 40px; font-weight: 700; color: var(--paper-ink); text-underline-offset: 4px; }
@media (max-width: 860px) { .promise .cols { grid-template-columns: 1fr; } }

/* Final CTA + footer with the finish line */
.finale { text-align: center; padding: clamp(90px, 12vw, 170px) 0 clamp(70px, 8vw, 110px); }
.finale h2 { font-weight: 800; font-size: clamp(48px, 8vw, 116px); line-height: .94; letter-spacing: -0.045em; margin: 18px auto 0; max-width: 11ch; }
.finale .ctas { justify-content: center; display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.finish { height: 14px; margin: 0 auto; max-width: var(--max);
  background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 28px) top / 100% 7px no-repeat,
              repeating-linear-gradient(90deg, transparent 0 14px, var(--ink) 14px 28px) bottom / 100% 7px no-repeat; }
.foot { border-top: 1px solid var(--rule); padding: 44px 0 56px; font-size: 14px; color: var(--soft); }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot h4 { margin: 0 0 12px; color: var(--ink); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .small { margin-top: 14px; color: var(--faint); max-width: 40ch; }
@media (max-width: 700px) { .foot .wrap { grid-template-columns: 1fr 1fr; } .foot .wrap > :first-child { grid-column: 1 / -1; } }

/* ---------- Document pages (privacy, support, terms) ---------- */
body.doc { background: var(--paper); color: var(--paper-ink); }
body.doc .nav { background: rgba(13,12,11,.92); color: var(--ink); }
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--gold); z-index: 60; }
.doc-head { background: var(--bg); color: var(--ink); padding: clamp(56px, 8vw, 100px) 0 clamp(44px, 6vw, 72px); }
.doc-head h1 { font-weight: 800; font-size: clamp(44px, 7vw, 96px); letter-spacing: -0.045em; line-height: .95; margin: 14px 0 18px; }
.doc-head p { color: var(--soft); margin: 0; max-width: 56ch; font-weight: 500; }
.doc-body { padding: clamp(40px, 6vw, 80px) 0 clamp(70px, 9vw, 120px); }
.doc-body .wrap { display: grid; grid-template-columns: 240px minmax(0, 720px); gap: clamp(32px, 6vw, 90px); }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.toc b { display: block; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--paper-soft); margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--paper-rule); }
.toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--paper-soft); text-decoration: none; font-weight: 500; }
.toc a:hover, .toc a.on { color: var(--paper-ink); border-left-color: var(--paper-ink); }
@media (max-width: 900px) { .doc-body .wrap { grid-template-columns: 1fr; } .toc { display: none; } }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -0.02em; margin: 56px 0 14px; padding-top: 22px; border-top: 2px solid var(--paper-ink); scroll-margin-top: 90px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 800; margin: 28px 0 8px; }
.prose p, .prose li { color: #2b2925; }
.prose ul { padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 26px; margin: 8px 0; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 2px; background: var(--paper-ink); }
.prose a { color: var(--paper-ink); font-weight: 700; text-underline-offset: 3px; }
.prose strong { color: var(--paper-ink); }
.callout { border: 2px solid var(--paper-ink); padding: 20px 22px; margin: 26px 0; background: #fff; }
.callout p { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--paper-rule); vertical-align: top; }
.prose th { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-soft); }
.faq details { border-bottom: 1px solid var(--paper-rule); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-weight: 800; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 500; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; }
.faq details > div p:first-child { margin-top: 0; }
.contact-card { background: var(--bg); color: var(--ink); padding: 30px; margin-top: 8px; }
.contact-card a { color: var(--ink); font-size: clamp(22px, 3vw, 30px); font-weight: 800; letter-spacing: -0.02em; }
.contact-card p { color: var(--soft); margin: 8px 0 0; }
body.doc .foot { background: var(--bg); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise { opacity: 1; transform: none; transition: none; }
}
