/* ============================================================
   jimifit.com — landing page v2
   Strength-first, immersive vertical scroll.
   Design language mirrors the JIMI app ("ink on porcelain"):
   Canvas #FAFAF8 · Ink #111114 · Flame #FF3B30 · Manrope
   ============================================================ */

:root {
  --canvas: #fafaf8;
  --ink: #111114;
  --ink-surface: #0e0e10;
  --ink-2: #17171a;
  --text-2: #6e6e73;
  --text-on-dark: rgba(255, 255, 255, 0.64);
  --hairline: rgba(17, 17, 20, 0.08);
  --hairline-dark: rgba(255, 255, 255, 0.09);
  --fill: #f2f2f4;
  --flame: #ff3b30;
  --flame-soft: rgba(255, 59, 48, 0.09);
  --ember: linear-gradient(135deg, #ff8a5c 0%, #ff3b30 55%, #d62839 100%);
  --gold: #b8860b;
  --gold-bright: #d4af37;
  --protein: #1976d2;
  --carbs: #b26f00;
  --fat: #388e3c;
  --r-lg: 28px;
  --r-md: 20px;
  --shadow-card: 0 2px 6px rgba(17, 17, 20, 0.04), 0 18px 44px rgba(17, 17, 20, 0.09);
  --shadow-float: 0 6px 16px rgba(17, 17, 20, 0.1), 0 32px 72px rgba(17, 17, 20, 0.22);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ticker-h: 40px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection { background: rgba(255, 59, 48, 0.2); }

:focus-visible {
  outline: 3px solid var(--flame);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* ---------- type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--flame);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--flame);
  border-radius: 2px;
}

.h1 {
  font-size: clamp(2.9rem, 7vw, 5.4rem);
  font-weight: 800;
  line-height: 0.99;
  letter-spacing: -0.032em;
}

.h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
}

.h3 { font-size: 1.16rem; font-weight: 800; letter-spacing: -0.01em; }

.lead {
  color: var(--text-2);
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  font-weight: 500;
  max-width: 36em;
}

.accent { color: var(--flame); }

/* ---------- top ticker ---------- */

.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--ticker-h);
  background: var(--ink-surface);
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ticker-track {
  display: flex;
  gap: 46px;
  width: max-content;
  padding-left: 46px;
  animation: ticker 36s linear infinite;
}

.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.ticker svg { width: 13px; height: 13px; color: #ff7060; flex: none; }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  top: calc(var(--ticker-h) + 12px);
  left: 16px;
  right: 16px;
  z-index: 50;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.nav-inner {
  pointer-events: auto;
  width: 100%;
  max-width: 1132px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px 10px 20px;
  background: rgba(14, 14, 16, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: #fff;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav-inner.on-light {
  background: rgba(250, 250, 248, 0.86);
  border-color: var(--hairline);
  color: var(--ink);
  box-shadow: 0 12px 40px rgba(17, 17, 20, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.14rem;
  letter-spacing: 0.14em;
}

.brand img { width: 30px; height: auto; }

.nav-links { display: flex; gap: 4px; list-style: none; }

.nav-links a {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  opacity: 0.75;
  transition: opacity 0.2s, background 0.2s;
}

.nav-links a:hover { opacity: 1; background: rgba(127, 127, 127, 0.14); }

/* ---------- buttons & badges ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.btn-ember {
  background: var(--ember);
  color: #fff;
  box-shadow: 0 10px 26px rgba(255, 59, 48, 0.34);
}

.btn-ember:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(255, 59, 48, 0.44); }

.btn-ember:active { transform: translateY(0); }

.btn-nav { padding: 11px 22px; font-size: 0.92rem; }

.badges { display: flex; flex-wrap: wrap; gap: 14px; }

.store-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 10px 22px 10px 18px;
  background: #fff;
  color: var(--ink);
  border-radius: 14px;
  border: 1px solid rgba(17, 17, 20, 0.1);
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.store-badge svg { width: 26px; height: 26px; flex: none; }

.store-badge .sb-text { line-height: 1.2; text-align: left; }

.store-badge .sb-top {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.6;
}

.store-badge .sb-bottom { display: block; font-size: 1.06rem; font-weight: 800; }

.store-badge .sb-soon {
  position: absolute;
  top: -9px;
  right: 12px;
  padding: 2px 9px;
  background: var(--ember);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(255, 59, 48, 0.4);
}

.store-badge:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28); }

/* ---------- hero (dark, strength-first) ---------- */

.hero {
  position: relative;
  background:
    radial-gradient(900px 520px at 82% -10%, rgba(255, 90, 60, 0.22), transparent 62%),
    radial-gradient(700px 480px at -12% 108%, rgba(255, 59, 48, 0.12), transparent 60%),
    var(--ink-surface);
  color: #fff;
  padding: calc(var(--ticker-h) + 118px) 0 0;
  overflow: clip;
}

.hero-word {
  position: absolute;
  top: 96px;
  left: 50%;
  transform: translateX(-50%);
  font-size: clamp(7rem, 22vw, 19rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: 40px;
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; padding-bottom: 56px; }

.hero-copy .h1 { margin: 22px 0 22px; }

.hero-copy .lead { color: var(--text-on-dark); margin-bottom: 36px; }

.hero-ctas { margin-bottom: 28px; }

.hero-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-note .dot-sep { display: inline-flex; align-items: center; gap: 7px; }

.hero-note svg { width: 15px; height: 15px; color: #ff7060; flex: none; }

/* hero stat strip */

.hero-stats {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--hairline-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.hstat {
  padding: 26px 18px;
  text-align: center;
  border-left: 1px solid var(--hairline-dark);
}

.hstat:first-child { border-left: none; }

.hstat .hs-num {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hstat .hs-num em { font-style: normal; color: #ff7060; }

.hstat .hs-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.42);
  margin-top: 4px;
}

/* phone stage */

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 10px 0 0;
  z-index: 2;
}

.phone {
  position: relative;
  width: min(320px, 80vw);
  background: #0b0b0d;
  border-radius: 52px;
  padding: 11px;
  box-shadow: var(--shadow-float), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.phone-screen {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 42px;
  overflow: hidden;
}

.phone-screen img { width: 100%; height: auto; }

.hero .phone { transform: rotate(2.6deg) translateY(36px); }

.hero .phone-screen { aspect-ratio: 1080 / 2240; }

.hero .phone-screen img { height: 100%; object-fit: cover; object-position: top center; }

/* floating cards */

.float-card {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(17, 17, 20, 0.06);
  border-radius: var(--r-md);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.42);
  color: var(--ink);
  animation: floaty 7s ease-in-out infinite;
}

.fc-record {
  top: 16%;
  left: max(-14px, calc(50% - 314px));
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
}

.fc-record .fc-medal {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(184, 134, 11, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fc-record .fc-medal svg { width: 21px; height: 21px; color: var(--gold); }

.fc-record .fc-label {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
}

.fc-record .fc-value { font-size: 0.95rem; font-weight: 800; }

.fc-coach {
  bottom: 15%;
  right: max(-10px, calc(50% - 320px));
  width: 234px;
  padding: 14px 16px;
  animation-delay: 1.4s;
}

.fc-coach .fc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }

.fc-coach .fc-head img { width: 24px; height: auto; }

.fc-coach .fc-head span { font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; }

.fc-coach .fc-head time { margin-left: auto; font-size: 0.7rem; color: var(--text-2); font-weight: 600; }

.fc-coach p { font-size: 0.85rem; font-weight: 600; line-height: 1.45; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- section scaffolding ---------- */

.section { padding: 110px 0 0; }

.section-head { max-width: 680px; margin-bottom: 34px; }

.section-head .h2 { margin: 18px 0 16px; }

/* ---------- scrollytelling showcase ---------- */

.showcase { position: relative; }

.show-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px);
  align-items: start;
}

.show-stage {
  position: sticky;
  top: calc(50vh - 330px);
  height: 660px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.show-stage .phone { width: min(300px, 74vw); }

.show-stage .phone-screen { aspect-ratio: 1080 / 2240; }

.show-stage .shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}

.show-stage .shot.active { opacity: 1; }

.show-stage .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }

.show-steps { display: flex; flex-direction: column; }

.step {
  min-height: 86vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
}

.step .h2 { margin: 16px 0 16px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

.step .lead { font-size: 1.06rem; margin-bottom: 24px; }

.step-quote {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  background: var(--fill);
  border-radius: var(--r-md);
  align-items: flex-start;
  max-width: 30em;
}

.step-quote img { width: 30px; height: auto; flex: none; margin-top: 2px; }

.step-quote p { font-size: 0.93rem; font-weight: 700; line-height: 1.5; }

.step-quote p span {
  display: block;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
}

.step-phone { display: none; }

/* ---------- numbers band ---------- */

.numbers {
  margin-top: 120px;
  background: var(--ink-surface);
  color: #fff;
  padding: 96px 0;
  position: relative;
  overflow: clip;
}

.numbers::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 420px at 88% 118%, rgba(255, 90, 60, 0.16), transparent 60%);
  pointer-events: none;
}

.numbers .wrap { position: relative; z-index: 1; }

.numbers .eyebrow { color: #ff7060; }

.numbers .eyebrow::before { background: #ff7060; }

.numbers .h2 { margin: 18px 0 10px; }

.numbers .lead { color: var(--text-on-dark); }

.num-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 56px;
}

.num-card {
  border: 1px solid var(--hairline-dark);
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--r-lg);
  padding: 32px 28px;
}

.num-card .nc-num {
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.num-card .nc-num small { font-size: 0.5em; font-weight: 800; color: #ff7060; }

.num-card .nc-label { margin-top: 10px; font-weight: 700; color: rgba(255, 255, 255, 0.78); }

.num-card .nc-sub { margin-top: 4px; font-size: 0.85rem; font-weight: 500; color: rgba(255, 255, 255, 0.4); }

/* ---------- feature grid ---------- */

.grid6 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 56px; }

.gcard {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.gcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.gcard .g-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--flame-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.gcard .g-icon svg { width: 22px; height: 22px; color: var(--flame); }

.gcard .h3 { margin-bottom: 8px; }

.gcard p { font-size: 0.92rem; color: var(--text-2); font-weight: 500; }

/* ---------- CTA ---------- */

.cta-section { padding: 110px 0 120px; }

.cta-card {
  position: relative;
  background:
    radial-gradient(700px 460px at 86% 116%, rgba(255, 90, 60, 0.3), transparent 62%),
    var(--ink-surface);
  color: #fff;
  border-radius: 40px;
  padding: clamp(44px, 7vw, 84px);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 40px;
  align-items: center;
}

.cta-card .h2 { margin: 18px 0 16px; }

.cta-card .lead { color: var(--text-on-dark); margin-bottom: 34px; }

.cta-card .eyebrow { color: #ff7060; }

.cta-card .eyebrow::before { background: #ff7060; }

.cta-mascot { position: relative; display: flex; justify-content: center; }

.cta-mascot img {
  width: min(310px, 62vw);
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.5));
}

.cta-support { margin-top: 18px; font-size: 0.88rem; font-weight: 600; color: rgba(255, 255, 255, 0.5); }

.cta-support a { color: #ff9d8a; font-weight: 800; text-decoration: none; }

.cta-support a:hover { text-decoration: underline; }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--hairline); padding: 44px 0 54px; }

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.footer .brand { font-size: 1rem; }

.footer-links { display: flex; flex-wrap: wrap; gap: 6px 26px; list-style: none; }

.footer-links a {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-2);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--ink); }

.footer-legal { width: 100%; margin-top: 8px; font-size: 0.8rem; color: var(--text-2); font-weight: 500; }

/* ---------- legal pages ---------- */

.legal-main { padding: calc(var(--ticker-h) + 148px) 0 100px; max-width: 760px; margin: 0 auto; }

.legal-main .h1 { font-size: clamp(2.1rem, 4.5vw, 3rem); margin: 20px 0 10px; }

.legal-updated { color: var(--text-2); font-size: 0.9rem; font-weight: 600; margin-bottom: 42px; }

.legal-main h2 { font-size: 1.3rem; font-weight: 800; margin: 40px 0 12px; }

.legal-main p, .legal-main li { color: #3c3c41; font-size: 1rem; margin-bottom: 12px; }

.legal-main ul { padding-left: 22px; margin-bottom: 16px; }

.legal-placeholder {
  background: var(--fill);
  border: 1px dashed rgba(17, 17, 20, 0.2);
  border-radius: var(--r-md);
  padding: 26px 28px;
  margin-top: 30px;
}

.legal-placeholder p { margin-bottom: 0; color: var(--text-2); font-weight: 600; }

/* ---------- reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive / Apple-style mobile ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero { padding-top: calc(var(--ticker-h) + 96px); }
  .hero-copy { padding-bottom: 8px; text-align: center; }
  .hero-copy .eyebrow { justify-content: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-ctas { justify-content: center; }
  .hero-note { justify-content: center; }
  .hero-stage { padding-top: 26px; }
  .hero .phone { transform: rotate(0deg) translateY(28px); }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .hstat { padding: 20px 8px; }

  /* showcase: stacked, Apple-style — sticky stage hidden, inline phones */
  .show-grid { grid-template-columns: 1fr; }
  .show-stage { display: none; }
  .step {
    min-height: 0;
    padding: 84px 0 0;
    text-align: center;
    align-items: center;
  }
  .step .eyebrow { justify-content: center; }
  .step .lead { margin-inline: auto; }
  .step-quote { margin-inline: auto; text-align: left; }
  .step-phone {
    display: block;
    margin: 40px auto 0;
    width: min(300px, 82vw);
  }
  .step-phone .phone-screen { aspect-ratio: 1080 / 2240; }
  .step-phone .phone-screen img { height: 100%; object-fit: cover; object-position: top center; }

  .section-head { text-align: center; margin-inline: auto; }
  .section-head .eyebrow { justify-content: center; }
  .section-head .lead { margin-inline: auto; }

  .grid6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .num-grid { grid-template-columns: 1fr; }
  .num-card { text-align: center; }
  .cta-card { grid-template-columns: 1fr; text-align: center; }
  .cta-card .eyebrow { justify-content: center; }
  .cta-card .lead { margin-inline: auto; }
  .cta-card .badges { justify-content: center; }
  .cta-mascot { order: -1; }
  .cta-mascot img { width: min(230px, 52vw); }
  .footer-grid { flex-direction: column; text-align: center; }
}

@media (max-width: 620px) {
  :root { --ticker-h: 34px; }
  .ticker span { font-size: 0.66rem; }
  .nav-links { display: none; }
  .grid6 { grid-template-columns: 1fr; }
  .fc-record { left: -6px; }
  .fc-coach { right: -6px; width: 208px; }
  .section { padding-top: 90px; }
  .hero-word { top: 120px; }
  .hstat .hs-label { letter-spacing: 0.1em; font-size: 0.62rem; }
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float-card { animation: none; }
  .ticker-track { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .show-stage .shot { transition: none; }
  * { transition-duration: 0.01ms !important; }
}
