/* FitBud website. Colours and fonts are the app's own tokens (app/src/styles/tokens.css). */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url(fonts/bricolage.woff2) format('woff2');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #0b0c0a;
  --ink-2: #141613;
  --ink-3: #1d201b;
  --paper: #f7f5ef;
  --muted: #b9b8b0;
  --lime: #c5f25c;
  --ember: #ff5b29;
  --line: rgb(247 245 239 / 0.1);
  --display: 'Bricolage Grotesque', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  /* Spacing tokens (9 Nov layout plan) */
  --gutter: clamp(16px, 4vw, 64px);
  --maxw: 1360px;
  --sec-top: clamp(88px, 12svh, 128px);
  --sec-bot: clamp(32px, 6svh, 72px);
  --gap: clamp(10px, 1.25vw, 18px);
  --card-pad: clamp(16px, 1.8vw, 26px);
  --radius: 20px;
  --footer-h: 184px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 0; }
body { background: var(--ink); color: var(--paper); font: 17px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
/* Keyboard focus clears the fixed nav pill; anchor jumps still land at the section top (padding and margin cancel). --nt and --nh live on .gnav, so the values are spelled out. */
@media (min-width: 641px) {
  html { scroll-padding-top: calc(clamp(10px, 1.5vw, 22px) + clamp(54px, 4.4vw, 64px) + 12px); }
  main > section[id] { scroll-margin-top: calc(-1 * (clamp(10px, 1.5vw, 22px) + clamp(54px, 4.4vw, 64px) + 12px)); }
}
a { color: inherit; }

h1, h2, h3 { font-family: var(--display); font-weight: 750; letter-spacing: -0.02em; line-height: 1.05; }
h1 { font-size: clamp(44px, 6.4vw, 96px); }
h2 { font-size: clamp(30px, min(4.2vw, 6.4svh), 64px); text-wrap: balance; margin-bottom: 16px; }
h3 { font-size: 24px; margin-bottom: 8px; }
em { font-style: normal; color: var(--lime); }
.eyebrow { font: 700 14px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); margin-bottom: 18px; }
.lead { font-size: clamp(16px, min(1.35vw, 2.2svh), 20px); color: var(--muted); max-width: 640px; }
.lead + .lead { margin-top: 16px; }
.narrow { max-width: 720px; }
.small { font-size: 14px; color: var(--muted); }

.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding-inline: var(--gutter); }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.section { padding: var(--sec-top) 0 var(--sec-bot); position: relative; }

/* One screen per section on desktop and laptop (tablet portrait and phones stay content height) */
@media (min-width: 900px) and (min-height: 600px) {
  .section.screen { min-height: 100svh; display: flex; flex-direction: column; }
  .section.screen > .wrap { flex: 1; width: 100%; }
}

/* ---------- Liquid glass utility ----------
   .lg: low-alpha paper fill plus a 1.4px gradient hairline. No blur, so it is cheap on many elements.
   .lg-blur adds backdrop-filter; use it only on the nav pill, the hero cards and the phone menu panel. */
.lg { position: relative; background: rgb(247 245 239 / .045); box-shadow: inset 0 1px 1px rgb(255 255 255 / .06); }
.lg::before { content: ''; position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 1.4px; pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / .34) 0%, rgb(255 255 255 / .1) 22%, transparent 42%, transparent 62%, rgb(255 255 255 / .1) 82%, rgb(255 255 255 / .34) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
.lg-blur { background: rgb(16 18 15 / .46); -webkit-backdrop-filter: blur(20px) saturate(1.5); backdrop-filter: blur(20px) saturate(1.5);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .1); }

/* Tag pills (glass) */
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tag { display: inline-flex; align-items: center; height: 32px; padding: 0 14px; border-radius: 999px; background: rgb(11 12 10 / .5);
  font: 600 13.5px/1 var(--body); color: var(--paper); white-space: nowrap; transition: color .3s, background-color .3s; }
.tag.strong, .tag.on { color: var(--lime); }
.tag.on { background: rgb(197 242 92 / .16); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font: 700 17px/1 var(--body); text-decoration: none; transition: transform .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--paper); border: 1.5px solid rgb(247 245 239 / 0.35); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* ---------- Nav: floating glass pill (menu works without any hero script: js/site.js) ---------- */
.gnav { --edge: clamp(12px, 2.2vw, 36px); --pad: clamp(12px, 1.5vw, 24px); --nt: clamp(10px, 1.5vw, 22px); --nh: clamp(54px, 4.4vw, 64px);
  position: fixed; z-index: 40; top: var(--nt); left: var(--edge); right: var(--edge); height: var(--nh);
  display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); padding: 0 calc(var(--nh) / 2 - 20px) 0 var(--pad); border-radius: 999px; }
.gnav-glass { position: absolute; inset: 0; z-index: -1; border-radius: inherit; }
.gnav-logo { flex: none; border-radius: 8px; }
.gnav-logo img { height: 30px; width: auto; }
.gnav-links { display: flex; align-items: center; gap: clamp(16px, 2.1vw, 32px); margin-left: auto; }
.gnav-links a { color: rgb(247 245 239 / .82); text-decoration: none; font-size: 15px; font-weight: 500; white-space: nowrap; }
.gnav-links a:hover { color: var(--paper); }
.gnav-cta { flex: none; }
.burger { display: none; }
.gnav a:focus-visible, .gnav button:focus-visible, main a:focus-visible, main button:focus-visible, .footer a:focus-visible, summary:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

@media (max-width: 819.98px) {
  .gnav-cta { margin-left: auto; }
  .burger { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
    color: var(--paper); background: rgb(247 245 239 / .1); }
  .burger i { position: relative; width: 16px; height: 8px; }
  .burger i::before, .burger i::after { content: ''; position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px; background: currentColor; transition: transform .25s; }
  .burger i::before { top: 0; } .burger i::after { bottom: 0; }
  .gnav.open .burger i::before { transform: translateY(3.2px) rotate(45deg); }
  .gnav.open .burger i::after { transform: translateY(-3.2px) rotate(-45deg); }
  .gnav-links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 8px; flex-direction: column; align-items: stretch; gap: 2px;
    border-radius: 26px; background: rgb(16 18 15 / .72); -webkit-backdrop-filter: blur(24px) saturate(1.4); backdrop-filter: blur(24px) saturate(1.4);
    box-shadow: inset 0 1px 1px rgb(255 255 255 / .1); visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity .2s, transform .2s, visibility 0s .2s; }
  .gnav-links::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.4px; pointer-events: none;
    background: linear-gradient(180deg, rgb(255 255 255 / .45), rgb(255 255 255 / .12) 25%, transparent 50%, rgb(255 255 255 / .12) 75%, rgb(255 255 255 / .35));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0); mask-composite: exclude; }
  .gnav-links a { padding: 14px 16px; border-radius: 18px; font-size: 17px; }
  .gnav-links a:hover { background: rgb(247 245 239 / .07); }
  .gnav.open .gnav-links, html:not(.menu-js) .gnav:focus-within .gnav-links { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
}
@media (max-width: 380px) { .gnav-cta { padding: 0 14px; font-size: 14px; } }
@media (max-width: 359.98px) { .gnav { gap: 8px; } .gnav-logo img { height: 24px; } .gnav-cta { padding: 0 10px; font-size: 13px; } }

/* Hero: see hero.css. .hero-cta stays because the Launch section reuses it. */
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* ---------- 2. Why FitBud: juggle stage + the one-app card ---------- */
.swap { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); margin-top: 28px; }
.jug-stage { position: relative; height: 240px; }
.old-apps { list-style: none; position: absolute; inset: 0; }
/* rest layout: chips are struck through and dimmed. Motion code moves them with transform/translate/opacity only. */
.jug-chip { position: absolute; left: var(--x, 0); top: var(--y, 0); rotate: var(--r, 0deg); white-space: nowrap; border-radius: 999px;
  font-size: clamp(15px, 1.45vw, 22px); padding: .7em 1.2em; line-height: 1.2; color: var(--muted); background: rgb(247 245 239 / .06); opacity: .7; }
.jug-chip::after { content: ''; position: absolute; left: .8em; right: .8em; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: var(--ember);
  transform-origin: 0 50%; transform: scaleX(var(--k, 1)); }
.jug-chip:nth-child(1) { --x: 0%; --y: 6%; --r: -4deg; }
.jug-chip:nth-child(2) { --x: 38%; --y: 0%; --r: 3deg; }
.jug-chip:nth-child(3) { --x: 8%; --y: 38%; --r: 2deg; }
.jug-chip:nth-child(4) { --x: 50%; --y: 30%; --r: -3deg; }
.jug-chip:nth-child(5) { --x: 2%; --y: 72%; --r: 3deg; }
.jug-chip:nth-child(6) { --x: 46%; --y: 66%; --r: -2deg; }
.jug-replay { position: absolute; right: 0; bottom: 0; min-height: 44px; padding: 0 14px; border: 0; background: none; color: var(--lime); cursor: pointer;
  font: 650 14px/1 var(--body); text-decoration: underline; text-underline-offset: 4px; }
.jug-replay[hidden] { display: none; }
.jug-replay[aria-disabled="true"] { opacity: .35; cursor: default; }
/* juggle.js drives these: transform and opacity only, no blur on the moving chips */
.jug-stage.playing .jug-chip { will-change: transform, opacity; }
.jug-glow { position: absolute; z-index: 0; border-radius: 50%; pointer-events: none; opacity: 0; background: radial-gradient(closest-side, rgb(197 242 92 / .6), rgb(197 242 92 / .18) 55%, transparent); }
.one-app-icon { position: relative; z-index: 1; }

.one-app { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 14px 18px; align-items: start;
  padding: var(--card-pad); border-radius: var(--radius); }
.one-app-icon { grid-area: 1 / 1; width: 64px; height: 64px; border-radius: 22%; transform-origin: 50% 50%; }
.one-app-tags { grid-area: 1 / 2; justify-content: flex-end; }
.one-app p { grid-area: 2 / 1 / 3 / 3; align-self: end; font-size: 18px; line-height: 1.4; }

/* ---------- 3. What's inside: bento ---------- */
.inside { display: grid; gap: var(--gap); margin-top: clamp(20px, 3svh, 40px); grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "train meds" "eat meds" "recover health" "coach coach"; }
.g-train { grid-area: train; } .g-eat { grid-area: eat; } .g-meds { grid-area: meds; } .g-recover { grid-area: recover; } .g-health { grid-area: health; } .g-coach { grid-area: coach; }
.inside-group { display: flex; flex-direction: column; min-width: 0; padding: 20px var(--card-pad) 22px; border-radius: var(--radius); overflow: hidden; }
.ig-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.ig-head .tags { justify-content: flex-end; gap: 6px; }
.ig-head .tag { height: 26px; padding: 0 11px; font-size: 12px; }
.inside-group h3 { margin: 0; font: 700 14px/1.3 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--lime); padding-top: 5px; }
.inside-group ul:not(.tags) { list-style: none; display: grid; gap: 8px; }
.inside-group li:not(.tag) { position: relative; padding-left: 20px; color: var(--muted); font-size: 16px; }
.inside-group li:not(.tag)::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }
/* photo strip: soaks up row slack so no card has dead space */
.inside-group::after { content: ''; flex: 1 1 0; min-height: 64px; margin: 16px calc(-1 * var(--card-pad)) -22px; background: center / cover; background-image: var(--strip); filter: saturate(.85) brightness(.8); }
.g-coach::after { display: none; }
.g-train { --strip: url(img/chalk.jpg); } .g-eat { --strip: url(img/breakfast.jpg); } .g-meds { --strip: url(img/supplements.jpg); }
.g-recover { --strip: url(img/cold.jpg); } .g-health { --strip: url(img/beans-scale.jpg); }
.g-coach .ig-head { margin-bottom: 12px; }

/* ---------- 4. Everything you track: photo cards ---------- */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin-top: clamp(20px, 3svh, 40px); }
.card { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; min-height: 0; overflow: hidden;
  padding: var(--card-pad); border-radius: var(--radius); border: 1px solid var(--line); background: var(--ink-2); }
.card-img { position: absolute; inset: 0; z-index: -2; background-image: var(--bg); background-size: cover; background-position: var(--pos, center); }
.card::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(11 12 10 / .95) 0%, rgb(11 12 10 / .8) 40%, rgb(11 12 10 / 0) 72%); }
.card .tag { position: absolute; top: 14px; right: 14px; background: rgb(11 12 10 / .72); }
.card h3 { padding: 0; }
.card p { color: #dedcd4; font-size: 15px; line-height: 1.45; }

/* ---------- 5/6. Split sections: medicines and research ---------- */
.dark-band { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.split > * { min-width: 0; }
.split-img { min-height: 0; height: 280px; border-radius: var(--radius); background-image: var(--bg); background-size: cover; background-position: center; }
.meds-col { display: flex; flex-direction: column; gap: var(--gap); }
.ticks { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 34px; color: var(--muted); }
.ticks li strong { color: var(--paper); }
.ticks li::before { content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime);
  -webkit-mask: radial-gradient(circle, #000 0 40%, transparent 41%); mask: radial-gradient(circle, #000 0 40%, transparent 41%); }
.ticks li::after { content: ''; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--lime); }
.note { margin-top: 22px; padding: 14px 18px; border-left: 3px solid var(--ember); background: rgb(255 91 41 / 0.07); color: var(--muted); font-size: 15px; }
.chips-card { margin: 22px 0; background: none; box-shadow: none; }
.chips-card::before, .chips-card .mock-label { display: none; }
.chips { margin: 0; }
.chips .tag { height: 40px; padding: 0 17px; font-size: 15px; }

/* Mock reminder card (illustration) */
.meds-ui { display: none; flex-direction: column; justify-content: space-between; gap: 10px; padding: clamp(14px, 1.6vw, 22px) var(--card-pad); border-radius: var(--radius); overflow: hidden; }
.mock-label { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; font: 650 10.5px/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: rgb(247 245 239 / .78); }
.mock-label::before { content: ''; width: 5px; height: 5px; border-radius: 50%; border: 1.3px solid currentColor; }
.mu-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mu-time { font: 650 clamp(22px, min(2.2vw, 3.6svh), 30px)/1.05 var(--display); letter-spacing: -.02em; }
.mu-q { margin-top: 4px; font-size: 14px; line-height: 1.2; color: var(--muted); }
.mu-btns { display: flex; gap: 8px; flex: none; }
.mu-btns span { display: inline-grid; place-items: center; height: 36px; padding: 0 18px; border-radius: 999px; font: 700 14px/1 var(--body); }
.mu-yes { background: var(--lime); color: var(--ink); }
.mu-later { border: 1.5px solid rgb(247 245 239 / .3); color: var(--paper); }
.mu-week { list-style: none; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.mu-week li { display: grid; justify-items: center; gap: 5px; }
.mu-week b { font: 650 11px/1 var(--body); color: var(--muted); }
.mu-week i { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgb(247 245 239 / .2); }
.mu-week svg { width: 14px; height: 14px; fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.mu-week .done i { background: var(--lime); box-shadow: none; }
.mu-week .today i { box-shadow: inset 0 0 0 2px var(--lime); }
.mu-refill { display: flex; align-items: center; gap: 8px; font: 600 13px/1 var(--body); color: var(--paper); }
.mu-refill span { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); }

/* ---------- 7. Results ---------- */
.commit { overflow: hidden; }
.commit-bg { position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center; opacity: .4; }
.commit-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, var(--ink) 0%, rgb(11 12 10 / .3) 30%, rgb(11 12 10 / .5) 70%, var(--ink) 100%); }
.commit-copy { position: relative; display: flex; flex-direction: column; }
.commit .lead { color: #d0cec7; }
.commit-copy .steps { order: 1; }
.commit-copy .lead2 { order: 2; }
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); margin: 28px 0 20px; }
.step { display: flex; flex-direction: column; min-width: 0; padding: var(--card-pad); border-radius: var(--radius); background: rgb(11 12 10 / .58); }
.step-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.step .num { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--ember); color: var(--ink); font: 800 17px/1 var(--display); }
.step h3 { margin-top: auto; }
.step p { color: var(--muted); }

/* ---------- 8. FAQ ---------- */
#faq .wrap { display: flex; flex-direction: column; }
.faq-list { order: 1; margin-top: 12px; }
.faq-photo { order: 2; position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 140px; margin-top: 20px; border-radius: var(--radius);
  overflow: hidden; background-image: var(--bg); background-size: cover; background-position: center 60%; }
.faq-photo::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(11 12 10 / .92), rgb(11 12 10 / .15) 75%); }
.faq-ask { padding: 16px 20px; font-size: 15px; color: #dedcd4; }
.faq-ask a { color: var(--lime); text-underline-offset: 3px; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font: 650 17px/1.3 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--lime); font-size: 26px; line-height: 1; }
details[open] summary::after { content: '\2013'; }
details p { margin-top: 12px; color: var(--muted); max-width: 680px; }

/* ---------- 9. Launch + footer ---------- */
.launch { overflow: hidden; }
.launch::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 80% at 50% 100%, rgb(197 242 92 / 0.14), transparent 70%); }
.launch-plate { position: absolute; inset: 0; opacity: .2; pointer-events: none;
  -webkit-mask-image: radial-gradient(75% 85% at 50% 55%, #000 25%, transparent 78%); mask-image: radial-gradient(75% 85% at 50% 55%, #000 25%, transparent 78%); }
.lp { position: absolute; inset: 0; background-size: cover; background-position: center; }
.lp-a { background-image: url(img/gym-lift.jpg); }
.lp-b { background-image: url(img/meal-prep.jpg); clip-path: polygon(64% 0, 100% 0, 100% 100%, 40% 100%); }
.launch .wrap { position: relative; z-index: 1; }
.launch-tags { justify-content: center; }
.launch-icon { width: 72px; height: 72px; }
.launch-cta { justify-content: center; margin-top: 8px; }
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.footer-grid p { margin-top: 14px; max-width: 560px; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; align-content: start; }
.footer-links a { text-decoration: none; }

/* Section photos load when their section is within 600px of the screen (js/site.js adds .bg-on). Without .bg-lazy (no JS, or site.js failed) they load as usual. */
.bg-lazy section:not(.bg-on) :is(.card-img, .split-img, .commit-bg, .faq-photo) { background-image: none; }
.bg-lazy section:not(.bg-on) .inside-group::after { background-image: none; }
.bg-lazy section:not(.bg-on) .lp { background-image: none; }

.bw { filter: grayscale(1) contrast(1.15); }

/* App link button (placeholder until the App Store link is in) */
.btn-app { gap: 12px; min-height: 60px; padding: 0 24px 0 14px; text-align: left; }
.btn-app img { width: 32px; height: 32px; border-radius: 8px; }
.btn-app span { display: flex; flex-direction: column; line-height: 1.15; }
.btn-app small { font-size: 12px; font-weight: 600; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.btn-app[aria-disabled="true"] { cursor: default; }
.btn-app[aria-disabled="true"]:hover { transform: none; }

/* Legacy sticky bar: only the legal pages still use it */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 32px; padding: 14px var(--gutter);
  background: rgb(11 12 10 / 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-logo img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--paper); }

/* =====================================================================
   Tablet portrait, 641 to 899
   ===================================================================== */
@media (min-width: 641px) and (max-width: 899.98px) {
  :root { --sec-top: 88px; --sec-bot: 48px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { aspect-ratio: 4 / 3; }
  .steps { margin: 24px 0; }
  .inside-group::after { min-height: 56px; }
  .faq-photo { min-height: 180px; }
}

/* =====================================================================
   Desktop and laptop, 900 and up
   ===================================================================== */
@media (min-width: 900px) {
  /* Why FitBud */
  .problem .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto 1fr; column-gap: clamp(32px, 5vw, 96px); }
  .problem .eyebrow { grid-area: 1 / 1; }
  .problem h2 { grid-area: 2 / 1; }
  .problem .lead { grid-area: 1 / 2 / 3 / 3; align-self: end; margin-bottom: 16px; }
  .swap { grid-area: 3 / 1 / 4 / 3; margin-top: clamp(24px, 4svh, 48px); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(32px, 5vw, 96px); align-items: stretch; }
  .jug-stage { height: auto; min-height: clamp(240px, 34svh, 400px); }
  .one-app { padding: clamp(20px, 2.4vw, 36px); grid-template-rows: auto 1fr auto; }
  .one-app-tags { grid-area: 2 / 1 / 3 / 3; align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; align-content: center; gap: var(--gap); }
  .one-app-tags .tag { height: clamp(48px, 7svh, 76px); font-size: clamp(15px, 1.3vw, 20px); justify-content: center; }
  .jug-chip:nth-child(2) { --x: 46%; } .jug-chip:nth-child(4) { --x: 58%; } .jug-chip:nth-child(6) { --x: 54%; }
  .one-app-icon { width: clamp(72px, 7vw, 112px); height: clamp(72px, 7vw, 112px); }
  .one-app p { grid-area: 3 / 1 / 4 / 3; font-size: clamp(18px, 1.6vw, 24px); }

  /* What's inside: bento */
  .inside-sec .wrap, .track .wrap { display: flex; flex-direction: column; }
  .inside { flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: 1fr 1fr auto;
    grid-template-areas: "train eat meds" "recover health meds" "coach coach coach"; }
  .g-coach { display: grid; grid-template-columns: minmax(140px, 1fr) 4fr; align-items: center; column-gap: 24px; padding-top: 16px; padding-bottom: 16px; }
  .g-coach .ig-head { flex-direction: column; margin: 0; gap: 8px; }
  .g-coach .ig-head .tags { justify-content: flex-start; }
  .g-coach ul:not(.tags) { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }

  /* Everything you track */
  .cards { flex: 1; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(2, minmax(220px, 1fr)); }
  .card { aspect-ratio: auto; }

  /* Medicines + research */
  #medicines .split, #research .split { flex: 1; align-items: stretch; column-gap: clamp(32px, 5vw, 72px); }
  #medicines .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  #research .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  #medicines .split-img { flex: 1 1 58%; aspect-ratio: auto; min-height: 0; height: auto; background-position: 30% 28%; }
  .meds-ui { display: flex; flex: 1 0 auto; justify-content: center; gap: clamp(10px, 1.8svh, 18px); }
  #research .split-img { height: auto; }
  .split-copy { display: flex; flex-direction: column; }
  #medicines .split-copy { justify-content: center; }
  .lead-end { margin-top: 20px; }
  .chips-card { flex: 1 1 auto; display: flex; flex-direction: column; margin: clamp(20px, 3svh, 32px) 0 0; padding: var(--card-pad); border-radius: var(--radius); background: rgb(247 245 239 / .045); box-shadow: inset 0 1px 1px rgb(255 255 255 / .06); }
  .chips-card::before { display: block; }
  .chips-card .mock-label { display: inline-flex; margin-bottom: 12px; }
  #research .chips { flex: 1 1 auto; display: grid; grid-auto-rows: 1fr; gap: 8px; }
  #research .chips .tag { width: 100%; height: auto; min-height: 36px; border-radius: 14px; justify-content: space-between; font-size: clamp(15px, 1.1vw, 18px); }
  #research .chips .tag::after { content: ''; height: 6px; width: calc(var(--lvl) * 40%); border-radius: 3px; background: currentColor; opacity: .5; }

  /* Results */
  .commit .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto auto auto 1fr; column-gap: clamp(32px, 5vw, 96px); }
  .commit .eyebrow { grid-area: 1 / 1; } .commit h2 { grid-area: 2 / 1; } .commit .lead1 { grid-area: 3 / 1; }
  .commit .lead2 { grid-area: 1 / 2 / 4 / 3; align-self: end; margin: 0; }
  .steps { grid-area: 4 / 1 / 5 / 3; align-self: end; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(24px, 4svh, 48px) 0 0; }
  .step { min-height: clamp(180px, 24svh, 260px); }
  .step h3 { font-size: clamp(22px, 1.7vw, 30px); }
  .step p { font-size: clamp(15px, 1.05vw, 18px); }

  /* FAQ */
  #faq .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto 1fr; column-gap: clamp(32px, 6vw, 120px); }
  #faq .eyebrow { grid-area: 1 / 1; } #faq h2 { grid-area: 2 / 1; }
  .faq-photo { grid-area: 3 / 1; min-height: 200px; margin-top: 24px; }
  .faq-list { grid-area: 1 / 2 / 4 / 3; align-self: center; margin-top: 0; }
  summary { font-size: clamp(18px, 1.5vw, 22px); }
  details { padding: clamp(16px, 2.4svh, 24px) 0; }
  .faq-ask { font-size: clamp(15px, 1.2vw, 18px); }

  /* Launch */
  .launch .wrap { justify-content: center; }
  .launch h2 { font-size: clamp(40px, min(5.6vw, 8svh), 88px); }
  .launch-icon { width: clamp(72px, 11svh, 128px); height: auto; }
  .footer { padding: 32px 0 40px; }
  .footer-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; }
  .footer-links { gap: 8px 24px; }
}
@media (min-width: 900px) and (min-height: 600px) {
  .launch.screen { min-height: calc(100svh - var(--footer-h)); }
}

/* Compact lists on narrower laptops and short screens */
@media (min-width: 900px) and (max-width: 1279px), (min-width: 900px) and (max-height: 820px) {
  .inside-group { padding: 16px 18px; }
  .inside-group li:not(.tag) { font-size: 15px; line-height: 1.45; }
  .inside-group ul:not(.tags) { gap: 6px; }
  .ig-head { margin-bottom: 8px; }
  .inside-group::after { margin: 12px -18px -16px; }
}
@media (min-width: 900px) and (max-height: 960px) {
  .inside-group ul:not(.tags) { gap: 5px; }
  .inside-group li:not(.tag) { font-size: 15px; line-height: 1.4; }
  .inside-group::after { min-height: 48px; }
}
@media (min-width: 900px) and (max-height: 820px) {
  .inside-group::after { display: none; }
  .inside { flex: 0 0 auto; grid-template-rows: auto auto auto; }
  .inside-sec .wrap { justify-content: center; }
}
@media (min-width: 900px) and (max-height: 820px) {
  .card::before { background: linear-gradient(0deg, rgb(11 12 10 / .95) 0%, rgb(11 12 10 / .85) 55%, rgb(11 12 10 / .35) 82%, rgb(11 12 10 / 0) 100%); }
}
@media (min-width: 900px) and (max-height: 700px) {
  .gnav { --nt: 8px; --nh: 50px; }
  .inside-group { padding-block: 12px; }
  .cards { grid-template-rows: repeat(2, minmax(180px, 1fr)); }
  .ticks li { font-size: 15px; }
  .ticks { gap: 8px; margin-top: 16px; }
  .note { margin-top: 16px; padding: 10px 14px; font-size: 14px; }
  .card p { font-size: 14px; }
  .launch-icon { width: clamp(64px, 9svh, 96px); }
}

/* =====================================================================
   Phone, 640 and narrower
   ===================================================================== */
@media (max-width: 640px) {
  :root { --sec-top: 48px; --sec-bot: 40px; --gap: 10px; --card-pad: 16px; --radius: 16px; }
  html { scroll-padding-top: 64px; }
  .gnav { --nt: 8px; --nh: 52px; }
  .eyebrow { font-size: 12px; margin-bottom: 10px; }
  h2 { font-size: 30px; margin-bottom: 12px; }
  .lead { font-size: 16px; }
  .lead + .lead { margin-top: 12px; }

  /* Why FitBud */
  .swap { margin-top: 20px; }
  .jug-stage { height: 200px; }
  .jug-chip { font-size: 13px; padding: .62em 1em; }
  .jug-chip:nth-child(1) { --x: 0; --y: 0; --r: -3deg; }
  .jug-chip:nth-child(2) { left: auto; right: 0; --y: 10px; --r: 3deg; }
  .jug-chip:nth-child(3) { --x: 5%; --y: 50px; --r: 2deg; }
  .jug-chip:nth-child(4) { left: auto; right: 0; --y: 62px; --r: -3deg; }
  .jug-chip:nth-child(5) { --x: 0; --y: 108px; --r: 3deg; }
  .jug-chip:nth-child(6) { left: auto; right: 2%; --y: 152px; --r: -2deg; }
  .jug-replay { right: auto; left: 0; bottom: -4px; }
  .one-app { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; gap: 12px 14px; padding: 14px; align-items: center; }
  .one-app-icon { grid-area: 1 / 1; width: 52px; height: 52px; }
  .one-app p { grid-area: 1 / 2; font-size: 15px; align-self: center; }
  .one-app-tags { grid-area: 2 / 1 / 3 / 3; justify-content: flex-start; gap: 6px; }
  .one-app-tags .tag { height: 28px; padding: 0 11px; font-size: 12px; }

  /* Swipe rows. Any grid holding one uses minmax(0,1fr) columns and min-width:0 children. */
  .inside, .cards, .ticks { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-template-areas: none; grid-auto-columns: 82%; gap: 10px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .inside::-webkit-scrollbar, .cards::-webkit-scrollbar, .ticks::-webkit-scrollbar { display: none; }
  .inside > *, .cards > *, .ticks > li { grid-area: auto; scroll-snap-align: start; min-width: 0; }
  .inside { margin-top: 16px; }
  .inside-group { padding: 16px; }
  .inside-group li:not(.tag) { font-size: 15px; }
  .inside-group::after { margin: 12px -16px -16px; min-height: 64px; }
  .g-coach::after { display: block; }
  .g-coach { --strip: url(img/grip.jpg); }
  .lp-a { background-image: url(img/gym-lift-800.jpg); }
  .lp-b { background-image: url(img/meal-prep-800.jpg); }
  .cards, .ticks { grid-auto-columns: 78%; }
  .cards { margin-top: 20px; }
  .card { aspect-ratio: 4 / 5; }

  .split { gap: 20px; }
  .split-img { height: 150px; }
  #research .split-img { order: -1; background-position: center 40%; }
  .ticks { margin-top: 18px; }
  .ticks li { padding: 16px 16px 16px 46px; background: var(--ink-3); border: 1px solid var(--line); border-radius: 16px; font-size: 15px; line-height: 1.45; }
  .ticks li::before, .ticks li::after { left: 16px; top: 18px; }
  .note { margin-top: 16px; font-size: 14px; padding: 12px 14px; }
  .chips-card { margin: 16px 0; }
  .chips { margin: 0; gap: 6px; }
  .chips .tag { height: 34px; padding: 0 13px; font-size: 14px; }

  .steps { gap: 10px; margin: 20px 0; }
  .step { padding: 14px; }
  .step-top { margin-bottom: 10px; }
  .step .num { width: 28px; height: 28px; font-size: 14px; }
  .step .tag { height: 26px; padding: 0 9px; font-size: 11.5px; }
  .step h3 { font-size: 17px; }
  .step p { font-size: 14px; line-height: 1.45; }

  .faq-photo { min-height: 130px; margin-top: 16px; }
  .center { gap: 12px; }
  .footer { padding: 32px 0; }
}
@media (max-width: 380px) {
  .step .tag { font-size: 11px; padding: 0 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tag, .gnav-links { transition: none; }
}

/* Review fixes round 2 */
@media (min-width: 900px) and (max-height: 770px) { #research .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) {
  .commit .wrap { grid-template-rows: auto auto auto auto; align-content: center; }
  .commit .steps { align-self: start; margin-top: clamp(32px, 6svh, 72px); }
}

/* Pricing (25 Nov): the always-free list and Full access, side by side on desktop */
.plans { display: grid; gap: var(--gap); margin-top: 24px; }
.plan { display: flex; flex-direction: column; min-width: 0; padding: var(--card-pad); border-radius: var(--radius); }
.plan h3 { font-size: clamp(20px, 1.6vw, 26px); }
.plan-full h3 { color: var(--lime); }
.plan-full { background: rgb(197 242 92 / .06); }
.plan-price { margin-top: 14px; font: 750 clamp(40px, 4vw, 64px)/1 var(--display); letter-spacing: -0.02em; }
.plan-price span { font: 500 clamp(16px, 1.2vw, 20px)/1 var(--body); letter-spacing: 0; color: var(--muted); }
.plan-alt { margin-top: 8px; font-size: 15px; color: var(--muted); }
.plan ul { list-style: none; display: grid; gap: 10px; margin-top: 22px; }
.plan li { position: relative; padding-left: 28px; color: #dedcd4; }
.plan li::before { content: ''; position: absolute; left: 3px; top: .38em; width: 13px; height: 7px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg); }
.plan-note { margin-top: auto; padding-top: 20px; font-size: 14px; color: var(--muted); }
@media (min-width: 900px) {
  .pricing .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto auto auto 1fr; align-content: center; column-gap: clamp(32px, 5vw, 96px); }
  .pricing .eyebrow { grid-area: 2 / 1; } .pricing h2 { grid-area: 3 / 1; } .pricing .lead { grid-area: 4 / 1; }
  .plans { grid-area: 1 / 2 / 6 / 3; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; align-self: center; }
  .plan { min-height: clamp(380px, 58svh, 600px); }
  .plan li { font-size: clamp(15px, 1.05vw, 18px); }
}
@media (min-width: 900px) and (max-height: 700px) { .plan { min-height: 0; } .plan ul { gap: 7px; margin-top: 16px; } .plan-price { margin-top: 10px; } }
@media (max-width: 640px) {
  .plans { margin-top: 20px; gap: 10px; }
  .plan { padding: 18px 16px; }
  .plan li { font-size: 15px; }
  .plan-price { font-size: 40px; }
}
@media (min-width: 900px) and (max-width: 1100px) { #medicines .ticks { gap: 8px; } #medicines .ticks li { font-size: 15px; } }
