/* OurFitness public website — "Ink & Volt" (tokens.css is the shared design-token build). */
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('fonts/geist-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --ink: var(--of-ink-950);
  --ink-2: var(--of-ink-900);
  --ink-3: var(--of-ink-850);
  --line-dark: var(--of-ink-800);
  --volt: var(--of-volt-400, #BDF224);
  --paper: var(--of-ink-50);
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(64px, 10vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--of-font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--of-ink-950);
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.025em; font-weight: 650; }
p { margin: 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--volt); color: var(--ink); padding: 8px 14px; border-radius: var(--of-radius-sm); z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--of-iris-400); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ── Brand ─────────────────────────────────────────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.wordmark { font-weight: 650; font-size: 20px; letter-spacing: -0.03em; }
.wordmark span { opacity: .6; }

/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--of-radius-pill);
  font: 600 15px/1 var(--of-font-sans); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; transition: transform .14s ease, background .14s ease, border-color .14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn--volt { background: var(--volt); color: var(--ink); }
.btn--volt:hover { background: #CCF64F; }
.btn--ghost { color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.08); }
.btn--outline { color: #fff; border-color: var(--of-ink-700); }
.btn--outline:hover { border-color: var(--of-ink-400); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: var(--of-ink-800); }
.btn--ink-outline { color: var(--ink); border-color: rgba(11,13,16,.35); }
.btn--ink-outline:hover { border-color: var(--ink); }

/* ── Nav ───────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50; color: #fff;
  background: rgba(11,13,16,.78); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.nav__links { display: flex; gap: 28px; list-style: none; margin: 0 0 0 16px; padding: 0; }
.nav__links a { text-decoration: none; color: var(--of-ink-300); font-size: 15px; font-weight: 500; }
.nav__links a:hover { color: #fff; }
.nav__cta { margin-left: auto; display: flex; gap: 6px; }
@media (max-width: 860px) { .nav__links { display: none; } }
@media (max-width: 420px) { .nav__cta .btn--ghost { display: none; } }

/* ── Shared section bits ───────────────────────────────── */
.section { padding: var(--section-y) 0; }
.section--light { background: var(--paper); color: var(--ink); }
.section--dark { background: var(--ink); color: #fff; }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 56px); }
.section h2 { font-size: clamp(30px, 4.4vw, 46px); }
.section__lead { margin-top: 18px; font-size: 18px; color: var(--of-ink-300); max-width: 620px; }
.section--light .section__lead { color: var(--of-ink-600); }
.eyebrow {
  display: inline-block; margin-bottom: 16px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--volt);
}
.eyebrow--dark { color: var(--of-volt-700, #5D7F0A); }

.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; color: var(--of-ink-700); }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--volt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0D10' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5 10 17 19 7'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.ticks--dark li { color: var(--of-ink-200); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  color: #fff; position: relative; overflow: hidden;
  padding: clamp(56px, 9vw, 110px) 0 clamp(64px, 9vw, 120px);
  background:
    radial-gradient(900px 500px at 85% 0%, rgba(189,242,36,.13), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(95,102,245,.16), transparent 60%),
    var(--ink);
}
.hero__inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(42px, 6.6vw, 76px); line-height: 1.02; letter-spacing: -0.04em; }
.hero h1 em { font-style: normal; color: var(--volt); }
.lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: var(--of-ink-300); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 0; margin: 28px 0 0; color: var(--of-ink-400); font-size: 14px; }
.hero__points li::before { content: "●"; color: var(--volt); margin-right: 8px; font-size: 10px; vertical-align: 2px; }
.hero__visual { position: relative; min-height: 360px; }

.browser {
  margin: 0; border-radius: var(--of-radius-lg); overflow: hidden; background: var(--ink-2);
  border: 1px solid var(--line-dark); box-shadow: 0 30px 80px rgba(0,0,0,.55);
}
.browser__bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--ink-3); border-bottom: 1px solid var(--line-dark); }
.browser__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--of-ink-700); }
.hero .browser { width: 112%; }

.phone {
  margin: 0; border-radius: 34px; overflow: hidden; background: #000; border: 6px solid #1c2027;
  box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06);
}
.phone--hero { position: absolute; width: 36%; min-width: 150px; left: -8%; bottom: -12%; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero .browser { width: 100%; }
  .hero__visual { margin-top: 8px; padding-bottom: 60px; }
  .phone--hero { left: auto; right: 4%; bottom: 0; width: 34%; }
}

/* ── Cards (two sides) ─────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--of-ink-150); border-radius: var(--of-radius-xl);
  padding: clamp(24px, 3.5vw, 40px); scroll-margin-top: 90px;
}
.card h3 { font-size: 26px; margin: 18px 0 12px; }
.card p { color: var(--of-ink-600); }
.card__icon, .feature__icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--ink); color: var(--volt);
}
.card__icon svg, .feature__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ── Phone showcase ────────────────────────────────────── */
.showcase { padding-bottom: calc(var(--section-y) - 10px); }
.phones {
  display: flex; gap: clamp(14px, 2vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 10px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 30px;
  scrollbar-width: none;
}
.phones::-webkit-scrollbar { display: none; }
.phones .phone { flex: 0 0 clamp(200px, 22vw, 240px); scroll-snap-align: center; border-radius: 30px; }
.phones figcaption {
  background: var(--ink-2); color: var(--of-ink-200); text-align: center; font-size: 14px; font-weight: 500; padding: 12px 8px;
}

/* ── Feature grid ──────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--of-ink-150); border-radius: var(--of-radius-lg); padding: 26px; }
.feature h3 { font-size: 19px; margin: 18px 0 8px; letter-spacing: -0.015em; }
.feature p { color: var(--of-ink-600); font-size: 16px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid { grid-template-columns: 1fr; } }

/* ── Coach desk ────────────────────────────────────────── */
.duo { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.duo__shots { position: relative; padding: 0 0 18% 0; }
.duo .browser--tilt { position: relative; z-index: 2; width: 92%; }
.duo .browser--back { position: absolute; z-index: 1; width: 80%; right: -6%; bottom: 0; opacity: .9; }
@media (max-width: 900px) { .duo { grid-template-columns: 1fr; } }

/* ── Steps ─────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: #fff; border: 1px solid var(--of-ink-150); border-radius: var(--of-radius-lg); padding: 28px; }
.steps__n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--volt); color: var(--ink); font-weight: 700; margin-bottom: 18px;
}
.steps h3 { font-size: 21px; margin-bottom: 8px; }
.steps p { color: var(--of-ink-600); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ── About ─────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); scroll-margin-top: 90px; }
.about__body { display: grid; gap: 18px; font-size: 18px; color: var(--of-ink-300); }
.about__body strong { color: #fff; font-weight: 600; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* ── Founder ───────────────────────────────────────────── */
.founder { display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; max-width: 940px; }
.founder__avatar {
  width: clamp(120px, 16vw, 180px); aspect-ratio: 1; border-radius: 32px; display: grid; place-items: center;
  background: var(--ink); color: var(--volt); font-size: clamp(40px, 5vw, 60px); font-weight: 700; letter-spacing: -0.04em;
  box-shadow: inset 0 0 0 1px var(--of-ink-800);
}
.founder__body h2 { font-size: clamp(30px, 4vw, 42px); }
.founder__role { margin: 8px 0 20px; color: var(--of-ink-500); font-weight: 500; }
.founder__body p:not(.founder__role):not(.eyebrow) { color: var(--of-ink-700); font-size: 18px; }
@media (max-width: 620px) { .founder { grid-template-columns: 1fr; } }

/* ── CTA + footer ──────────────────────────────────────── */
.cta { background: var(--volt); color: var(--ink); padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.cta h2 { font-size: clamp(32px, 5vw, 52px); }
.cta p { margin-top: 14px; font-size: 18px; color: rgba(11,13,16,.75); }
.cta .hero__actions { justify-content: center; }

.footer { background: var(--ink); color: var(--of-ink-400); padding: 40px 0; border-top: 1px solid var(--line-dark); }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; }
.footer__links a { text-decoration: none; font-size: 15px; }
.footer__links a:hover { color: #fff; }
.footer__copy { margin-left: auto; font-size: 14px; }
@media (max-width: 620px) { .footer__copy { margin-left: 0; width: 100%; } }

/* Decorative overlaps (tilted screenshots) never widen the page on small screens. */
.hero, .section { overflow-x: clip; }
