/* ============================================================
   GrittFit — static site styles
   Brand tokens from fit_app/lib/brand.dart
   No build step — drop into Cloudflare Pages as-is.
   ============================================================ */

:root {
  --accent: #FF6B00;        /* logo accent (progress line + nodes) */
  --accent-text: #C2410C;   /* darkened orange for readable text */
  --selected: #FF5722;      /* selected-state fill (Deep Orange 500) */
  --ink: #212121;           /* primary text */
  --muted: #5F5F5F;         /* secondary text (Grey 700) */
  --border: #757575;        /* borders (Grey 600) */
  --amber: #FFE082;         /* button amber */
  --cream: #FAF1DC;         /* card cream */
  --white: #FFFFFF;
  --bg: #FFFFFF;
  --tint: #FFF7EC;          /* warm section tint */
  --maxw: 1140px;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(33, 33, 33, 0.08);
  --shadow-lg: 0 24px 60px rgba(33, 33, 33, 0.14);
  --font: 'Roboto', system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.wordmark { font-weight: 900; letter-spacing: -0.02em; }
.wordmark__fit { color: var(--accent); }
.accent-text { color: var(--accent); }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--white); box-shadow: 0 8px 20px rgba(255,107,0,.28); }
.btn--primary:hover { background: #f25d00; box-shadow: 0 12px 26px rgba(255,107,0,.36); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--ink); background: rgba(0,0,0,.03); }
.btn--light { background: var(--white); color: var(--accent-text); }
.btn--light:hover { background: var(--cream); }
.btn--large { padding: 16px 30px; font-size: 1.06rem; }
.btn--small { padding: 9px 16px; font-size: 0.9rem; }
.btn__icon { flex: 0 0 auto; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,.06);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav__brand { display: flex; align-items: center; gap: 10px; font-size: 1.25rem; }
.nav__logo { border-radius: 7px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links > a:not(.btn) { font-weight: 500; color: var(--muted); }
.nav__links > a:not(.btn):hover { color: var(--ink); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__toggle span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; background: linear-gradient(180deg, var(--tint) 0%, var(--white) 70%); }
.hero__inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero__copy h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 20px; font-weight: 900; }
.lede { font-size: 1.16rem; color: var(--muted); margin: 0 0 28px; max-width: 34ch; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero__note { font-size: 0.86rem; color: var(--muted); }

/* Hero phone mock */
.hero__art { position: relative; display: flex; justify-content: center; }
.phone {
  width: 280px; height: 560px; background: #111; border-radius: 42px;
  padding: 14px; box-shadow: var(--shadow-lg);
}
.phone__screen {
  width: 100%; height: 100%; background: var(--white); border-radius: 30px;
  display: flex; flex-direction: column; align-items: center; padding: 26px 22px;
  overflow: hidden;
}
.phone__logo { width: 62px; height: 62px; margin-bottom: 8px; }
.phone__word { font-weight: 900; font-size: 1.4rem; letter-spacing: -0.02em; margin-bottom: 22px; }
.phone__plan { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.plan-row {
  display: flex; align-items: center; gap: 11px; font-size: 0.92rem; font-weight: 500;
  padding: 11px 13px; background: var(--cream); border-radius: 12px;
}
.plan-row em { margin-left: auto; font-style: normal; font-weight: 700; color: var(--accent-text); }
.plan-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--border); flex: 0 0 auto; }
.plan-dot--active { background: var(--accent); box-shadow: 0 0 0 4px rgba(255,107,0,.18); }
.phone__progress { margin-top: auto; width: 100%; text-align: center; font-size: 0.8rem; color: var(--muted); }
.phone__bar { height: 8px; background: #eee; border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.phone__bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

.hero__float { position: absolute; background: var(--white); box-shadow: var(--shadow); border-radius: 14px; padding: 10px 16px; font-size: 0.9rem; display: flex; align-items: center; gap: 9px; }
.hero__float--rest { top: 70px; left: -10px; }
.hero__float--done { bottom: 90px; right: -14px; }
.chip { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--tint); color: var(--accent-text); padding: 4px 9px; border-radius: 8px; }
.chip--ok { background: #e7f6ec; color: #1b7a43; }
.hero__float strong { font-size: 1.1rem; }

/* ---------- Stats ---------- */
.stats { padding: 26px 0; border-top: 1px solid rgba(0,0,0,.05); border-bottom: 1px solid rgba(0,0,0,.05); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat strong { display: block; font-size: 1.15rem; color: var(--ink); }
.stat span { font-size: 0.9rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section--tint { background: var(--tint); }
.section__head { max-width: 620px; margin: 0 auto 52px; text-align: center; }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 900; }
.section__sub { color: var(--muted); font-size: 1.1rem; margin: 0; }

/* ---------- Feature grid ---------- */
.grid--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--white); border: 1px solid rgba(0,0,0,.07); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .2s ease; }
.section--tint .card { box-shadow: none; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--tint); color: var(--accent); display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.card h3 { margin: 0 0 8px; font-size: 1.18rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 0.98rem; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; background: var(--white); border-radius: var(--radius); padding: 28px 24px; border: 1px solid rgba(0,0,0,.06); }
.step__num { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 900; align-items: center; justify-content: center; margin-bottom: 16px; }
.step h3 { margin: 0 0 6px; font-size: 1.12rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Watch ---------- */
.watch { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.watch__copy h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.02em; margin: 0 0 16px; font-weight: 900; }
.watch__copy > p { color: var(--muted); font-size: 1.1rem; max-width: 42ch; }
.ticklist { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 12px; }
.ticklist li { position: relative; padding-left: 34px; font-weight: 500; }
.ticklist li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.watch__art { display: flex; justify-content: center; }
.watch-face {
  width: 240px; height: 240px; border-radius: 50%; background: #111; color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lg); padding: 24px; text-align: center;
}
.watch-face__top { display: flex; flex-direction: column; }
.watch-face__top span { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .1em; color: #bbb; }
.watch-face__top strong { font-size: 2.4rem; font-weight: 900; color: var(--accent); }
.watch-face__mid { font-size: 1.25rem; font-weight: 700; margin: 10px 0 4px; }
.watch-face__bottom { font-size: 0.85rem; color: #bbb; }

/* ---------- CTA ---------- */
.cta { background: linear-gradient(120deg, var(--accent) 0%, #f25d00 100%); color: #fff; padding: 72px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 8px; font-weight: 900; letter-spacing: -0.02em; }
.cta p { margin: 0; opacity: .92; }
.cta__sub { text-align: center; margin: 26px 0 0; font-size: 0.9rem; opacity: .85; }

/* ---------- Footer ---------- */
.footer { background: #161616; color: #cfcfcf; padding: 48px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 9px; font-size: 1.15rem; color: #fff; }
.footer .wordmark__fit { color: var(--accent); }
.footer__links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer__links a { color: #cfcfcf; font-size: 0.95rem; }
.footer__links a:hover { color: #fff; }
.footer__legal { margin: 0; font-size: 0.85rem; color: #888; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__inner, .watch { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { order: -1; }
  .phone { width: 240px; height: 480px; }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); gap: 28px 24px; }
  .hero { padding-top: 40px; }
  .watch__art { order: -1; }
}
@media (max-width: 620px) {
  .nav__links {
    position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--white); padding: 12px 24px 20px;
    border-bottom: 1px solid rgba(0,0,0,.08);
    box-shadow: var(--shadow); display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links > a:not(.btn) { padding: 10px 0; }
  .nav__toggle { display: flex; }
  .grid--3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .cta__inner { flex-direction: column; align-items: flex-start; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}
