/* Fitsona site — one look with the app (2026-11-08 rebuild): Apple's grouped
   grounds, white cards, ink actions, green for what's yours and done, the
   system font. Light and dark follow the device. Shared by every page. */
:root {
  --bg: #f2f2f7;
  --card: #ffffff;
  --card-2: #f7f7fa;
  --text: #000000;
  --sub: #6c6c70;
  --faint: #8e8e93;
  --line: rgba(60, 60, 67, 0.12);
  --accent: #34c759;
  --accent-text: #248a3d;
  --accent-soft: rgba(52, 199, 89, 0.12);
  --ink: #1c1c1e;
  --ink-text: #ffffff;
  --glass: rgba(255, 255, 255, 0.78);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 12px 32px rgba(0, 0, 0, 0.06);
  --phone-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.28), 0 18px 36px -18px rgba(0, 0, 0, 0.22);
  --protein: #34c759;
  --carbs: #007aff;
  --fat: #e2770c;
  --radius: 28px;
  --wrap: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --card: #1c1c1e;
    --card-2: #2c2c2e;
    --text: #ffffff;
    --sub: #a1a1a6;
    --faint: #8e8e93;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #30d158;
    --accent-text: #30d158;
    --accent-soft: rgba(48, 209, 88, 0.14);
    --ink: #ffffff;
    --ink-text: #000000;
    --glass: rgba(28, 28, 30, 0.78);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.35);
    --phone-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }

/* ── header ─────────────────────────────────────────────── */
.top {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--sub); font-size: 15px; font-weight: 600; }
.nav a:hover { color: var(--text); }
@media (max-width: 760px) { .nav { display: none; } .top .btn { margin-left: auto; } }

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--ink); color: var(--ink-text);
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn:hover { opacity: 0.88; }
.btn:active { transform: scale(0.97); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: var(--card); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn svg { width: 18px; height: 18px; }
.link { color: var(--accent-text); font-weight: 700; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ── type ───────────────────────────────────────────────── */
h1, h2, h3 { margin: 0; letter-spacing: -0.03em; line-height: 1.04; }
h1 { font-size: clamp(44px, 6.6vw, 76px); font-weight: 800; }
h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.hi { color: var(--accent-text); }
.lede { font-size: clamp(18px, 2vw, 21px); color: var(--sub); line-height: 1.45; margin: 20px 0 0; max-width: 34em; }
.kicker { font-size: 13px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 14px; }
.note { font-size: 14px; color: var(--faint); margin-top: 14px; }

/* ── phone ──────────────────────────────────────────────── */
/* AN IPHONE 17 PRO MAX, TO SCALE (the owner, 2026-11-08: "bezels are big …
   more accurate to an iphone"): a 1.6% black border inside a thin titanium
   edge, the screen's own corners (55 pt on 440 pt), the Dynamic Island where
   it sits (126 × 37 pt, 11 pt down). The screen keeps the screenshot's shape;
   the frame is the screen plus its rim. */
.phone {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: 13.7% / 6.4%;
  /* THE BEZEL is 1.6% of the PHONE's own width — a container unit on the
     screen's margin. A padding % reads the PARENT's width, so a phone in a
     wide row drew a thicker rim than one in a narrow column (the owner,
     2026-11-15: "some bezels and style don't match others"). */
  container-type: inline-size;
  background: #000;
  box-shadow: 0 0 0 1px #3a3a3c, 0 0 0 2.5px #1c1c1e, var(--phone-shadow);
}
.phone img { display: block; width: calc(100% - 8px); margin: 4px; width: calc(100% - 3.2cqw); margin: 1.6cqw; min-width: 0; height: auto; aspect-ratio: 1320 / 2868; border-radius: 12.5% / 5.75%; }
.phone::after {
  content: ""; position: absolute; top: 1.9%; left: 50%; transform: translateX(-50%);
  width: 27.7%; height: 3.7%; border-radius: 999px; background: #000;
}

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 22px; }
.hero-phones .phone { max-width: 270px; }
.hero-phones .phone:nth-child(2) { margin-top: 70px; }
@media (max-width: 900px) {
  .hero { padding-top: 44px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-phones .phone { max-width: 210px; }
  .hero-phones .phone:nth-child(2) { margin-top: 48px; }
}
@media (max-width: 460px) { .hero-phones { gap: 14px; } .hero-phones .phone { max-width: 46%; } }

/* ── reasons ────────────────────────────────────────────── */
.reasons { padding: 40px 0 24px; }
.reasons ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.reasons li { background: var(--card); border-radius: 22px; padding: 20px 18px; box-shadow: var(--shadow); }
.reasons b { display: block; font-size: 16px; letter-spacing: -0.01em; margin: 12px 0 4px; }
.reasons span { font-size: 14px; color: var(--sub); line-height: 1.4; }
.dot { width: 34px; height: 34px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.dot svg { width: 18px; height: 18px; }
@media (max-width: 980px) { .reasons ul { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .reasons ul { grid-template-columns: 1fr; } }

/* ── feature rows ───────────────────────────────────────── */
.feature { padding: 72px 0; overflow-x: clip; }
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.feature.flip .copy { order: 2; }
.feature .shots { display: flex; justify-content: center; align-items: flex-start; gap: 22px; }
.feature .shots .phone { max-width: 280px; }
.feature .shots.two .phone { max-width: 250px; }
.feature .shots.two .phone:nth-child(2) { margin-top: 56px; }
.points { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.points li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--sub); line-height: 1.45; }
.points li b { color: var(--text); font-weight: 650; }
.points svg { width: 22px; height: 22px; color: var(--accent); margin-top: 1px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { font-size: 14px; font-weight: 650; padding: 7px 13px; border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.pro { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; padding: 2px 7px; border-radius: 6px; background: var(--ink); color: var(--ink-text); vertical-align: 2px; margin-left: 6px; }
@media (max-width: 900px) {
  .feature { padding: 48px 0; }
  .feature .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .feature.flip .copy { order: 0; }
  .feature .shots .phone, .feature .shots.two .phone { max-width: 230px; }
}
@media (max-width: 460px) { .feature .shots.two { gap: 14px; } .feature .shots.two .phone { max-width: 46%; } }

/* share cards fanned beside the chat */
.fan { position: relative; flex: 0 0 auto; width: 230px; aspect-ratio: 1080 / 1350; }
.fan img { position: absolute; left: 0; top: 0; width: 100%; height: auto; aspect-ratio: 1080 / 1350; border-radius: 18px; box-shadow: var(--phone-shadow); }
.fan img:nth-child(1) { transform: rotate(-8deg) translate(-16%, 4%); }
.fan img:nth-child(2) { transform: rotate(7deg) translate(16%, 3%); }
.fan img:nth-child(3) { transform: translateY(-4%); }
.share-row { display: flex; align-items: center; justify-content: center; gap: 34px; }
.share-row .phone { max-width: 250px; }
@media (max-width: 560px) { .share-row { gap: 22px; } .share-row .phone { max-width: 44%; } .fan { width: 40%; } }

/* ── the ink band ───────────────────────────────────────── */
.band { padding: 24px 0; }
.band .inner {
  background: #0b0b0c; color: #fff; border-radius: 36px; padding: clamp(40px, 7vw, 84px) clamp(24px, 6vw, 72px);
  display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center;
}
@media (prefers-color-scheme: dark) { .band .inner { background: #1c1c1e; } }
.band img { width: clamp(84px, 12vw, 140px); height: auto; border-radius: 24%; }
.band h2 { color: #fff; }
.band h2 .hi { color: #30d158; }
.band p { color: #a1a1a6; font-size: 19px; margin: 18px 0 0; max-width: 30em; }
@media (max-width: 640px) { .band .inner { grid-template-columns: 1fr; gap: 24px; } }

/* ── coaches ────────────────────────────────────────────── */
.coach { padding: 72px 0; }
.coach .grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 36px; }
.panel { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); }
.panel p { color: var(--sub); margin: 10px 0 0; }
.panel .btn { margin-top: 22px; }
@media (max-width: 760px) { .coach .grid { grid-template-columns: minmax(0, 1fr); } }

/* ── pricing ────────────────────────────────────────────── */
.pricing { padding: 72px 0; }
.plans { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 36px; align-items: stretch; }
.plan { background: var(--card); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.plan.pro-plan { box-shadow: var(--shadow), inset 0 0 0 2px var(--accent); }
.plan .price { font-size: 44px; font-weight: 800; letter-spacing: -0.03em; margin: 14px 0 0; }
.plan .price small { font-size: 17px; font-weight: 600; color: var(--sub); letter-spacing: 0; }
.plan .alt { color: var(--sub); margin: 4px 0 0; font-size: 15px; }
.plan .points { margin-top: 22px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan .points + .btn { margin-top: 28px; }
.trial { display: inline-block; font-size: 13px; font-weight: 800; color: var(--accent-text); background: var(--accent-soft); border-radius: 999px; padding: 4px 11px; margin-left: 8px; vertical-align: 4px; letter-spacing: 0; }
@media (max-width: 760px) { .plans { grid-template-columns: minmax(0, 1fr); } }

/* ── questions ──────────────────────────────────────────── */
.faq { padding: 40px 0 88px; }
.faq .list { margin-top: 28px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.faq details { border-top: 0.5px solid var(--line); }
.faq details:first-child { border-top: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--faint); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: -6px 24px 20px; color: var(--sub); }

/* ── footer ─────────────────────────────────────────────── */
.foot { border-top: 0.5px solid var(--line); padding: 40px 0 calc(48px + env(safe-area-inset-bottom, 0px)); color: var(--sub); font-size: 14px; }
.foot .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-left: auto; }
.foot a { text-decoration: none; font-weight: 600; }
.foot a:hover { color: var(--text); }
.foot .fine { margin-top: 22px; color: var(--faint); font-size: 13px; line-height: 1.55; }
@media (max-width: 640px) { .foot .links { margin-left: 0; } }

/* ── reading pages (privacy, terms, support) ────────────── */
.doc { padding: 48px 0 72px; }
.doc .paper { max-width: 760px; margin: 0 auto; background: var(--card); border-radius: var(--radius); padding: clamp(24px, 5vw, 48px); box-shadow: var(--shadow); }
.doc h1 { font-size: clamp(32px, 5vw, 44px); margin-bottom: 10px; }
.doc h2 { font-size: 22px; letter-spacing: -0.015em; margin: 32px 0 8px; line-height: 1.25; }
.doc p, .doc li { color: var(--sub); }
.doc p strong, .doc li strong { color: var(--text); }
.doc a { color: var(--accent-text); font-weight: 600; }
.doc .sub { color: var(--faint); font-size: 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }

/* ── appear on scroll (calm; off with reduced motion) ───── */
/* hidden only once the page's script has run, so nothing hides without it */
.js .rise { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .rise.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .rise { opacity: 1; transform: none; transition: none; } }
