/* MuscleOnGLP — standalone landing page. Self-contained, no external loads. */

:root {
  --accent: #2f6f5e;
  --accent-dark: #245546;
  --accent-light: #e7f1ee;
  --accent-bright: #34a07f;
  --ink: #1b2420;
  --ink-soft: #45524c;
  --bg: #ffffff;
  --bg-alt: #f4f8f6;
  /* Form-field surface. Fields used to hardcode background:#fff while their
     text stayed var(--ink), so in dark mode every value a visitor typed was
     #e8efec on #ffffff: 1.17:1, i.e. invisible. The dark block below carefully
     re-backgrounded the cards and missed every input. A token means the two
     themes can no longer drift apart the way they silently did for a month. */
  /* Accent text vs accent surface. --accent is a SURFACE colour: it fills
     buttons, badges and bars that carry white text, and it must stay dark
     enough for that. It was also being used as a TEXT colour on themed
     backgrounds, where in dark mode it lands at 2.47 to 2.8:1. One token
     could not satisfy both jobs, which is the root of every contrast bug
     found in this sweep.

     Text on a themed surface now uses --accent-text (or the stronger variant
     where --accent-dark was used). Light values are identical to the previous
     ones, so light mode does not shift; only dark gains a readable value.

     Two surfaces are pinned to one theme and deliberately opt out: .price-top
     .tag and .finalcta .btn-primary sit on white in both themes and keep
     --accent, while the footer is dark in both themes and takes
     --accent-bright outright. */
  --accent-text: #2f6f5e;
  --accent-text-strong: #245546;
  --field-bg: #ffffff;
  --line: #dde7e3;
  /* Control boundary (WCAG 1.4.11, 3:1). --line is a decorative hairline at 1.26:1
     and was also the border of every input. Measured: #7a8a83 is 3.63:1 on white
     and 3.39:1 on --bg-alt. Dark value is below. */
  --field-line: #7a8a83;
  --gold: #e0a63c;
  --radius: 16px;
  --radius-lg: 24px;
  /* Calculator type scale. The tool pages had font sizes at 0.82, 0.85, 0.9
     and 0.95rem doing four different jobs within 6% of each other, which
     reads as one undifferentiated size. Three steps at a ~1.2 ratio, with
     weight carrying the label/body distinction rather than size:
       meta 0.80 -> body 0.95 (1.19) -> head 1.15 (1.21) -> .calc-n 1.4 (1.22)
     Fixed rem rather than clamp(): these are tool controls, not display type. */
  --fs-meta: 0.8rem;
  --fs-body: 0.95rem;
  --fs-head: 1.15rem;
  --shadow-sm: 0 1px 3px rgba(20, 40, 33, 0.06), 0 4px 14px rgba(20, 40, 33, 0.05);
  --shadow-md: 0 6px 24px rgba(20, 40, 33, 0.10);
  --shadow-lg: 0 20px 60px rgba(20, 40, 33, 0.16);
  --maxw: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Georgia", serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; scroll-padding-bottom: 88px; }
@media (max-width: 1099px) { html { scroll-padding-top: 16px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); text-wrap: balance; }
h3 { font-size: 1.4rem; letter-spacing: 0; }
p { text-wrap: pretty; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.eyebrow { display: inline-block; font-family: var(--font); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); background: var(--accent-light); padding: 6px 14px; border-radius: 100px; margin-bottom: 18px; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font); font-weight: 650; font-size: 0.95rem; padding: 15px 30px; border-radius: 100px; border: 2px solid transparent; cursor: pointer; transition: transform .18s cubic-bezier(.22,1,.36,1), box-shadow .18s, background .18s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(47,111,94,.28); }
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 12px 30px rgba(47,111,94,.34); }
.btn-ghost { background: transparent; color: var(--accent-text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn-lg { padding: 18px 40px; font-size: 1.15rem; }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; color: var(--ink); letter-spacing: -0.02em; flex-shrink: 0; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; }
.brand-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; display: block; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 18px; flex-shrink: 0; min-width: 0; }
.nav-links a { color: var(--ink-soft); font-weight: 550; font-size: 0.95rem; white-space: nowrap; }
.nav-links a:hover { color: var(--accent-text); text-decoration: none; }
/* The nav CTA is a filled accent button, but the rule above set every nav link
   to --ink-soft, which landed dark grey on green at 1.39:1 in light mode and
   2.8:1 in dark. It needs the button's white in both themes, so it is fixed
   here rather than inside the dark block. */
.nav-links a.nav-cta, .nav-links a.btn-primary { color: #fff; }
.nav-links a.nav-cta:hover { color: #fff; }
.nav-cta { padding: 9px 16px; font-size: 0.95rem; flex-shrink: 0; }
/* Below the desktop breakpoint the links used to be hidden outright, which left
   phones and tablets with no site navigation at all. Instead, wrap them onto a
   second, horizontally scrollable row so every section stays reachable. */
@media (max-width: 1099px) {
  /* Two rows on a phone is about 100px of sticky bar; it covered focused fields and
     anchor targets. Only the desktop one-row bar is sticky. */
  .nav { position: static; }
  .nav-inner { flex-wrap: wrap; height: auto; padding: 10px 24px 8px; row-gap: 8px; }
  .nav-links { width: 100%; gap: 16px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; padding-bottom: 2px; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex-shrink: 0; }
}
@media (max-width: 480px) { .brand { font-size: 0.95rem; gap: 8px; } .brand-logo { width: 26px; height: 26px; } .nav-cta { padding: 8px 12px; font-size: 0.8rem; } }

/* Hero */
.hero { position: relative; overflow: hidden; background:
   radial-gradient(1200px 500px at 80% -10%, #eafaf4 0%, rgba(234,250,244,0) 60%),
   linear-gradient(180deg, #fbfdfc 0%, #ffffff 100%); }
.hero-grid { display: grid; grid-template-columns: 1fr 0.95fr; gap: 56px; align-items: center; padding-block: clamp(48px, 7vw, 92px); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.7rem); }
.hero .lead { margin-top: 22px; }
.hero-stat { margin: 0 0 16px; font-size: 1.15rem; line-height: 1.5; color: var(--ink-soft); max-width: 40ch; }
.hero-stat-n { color: var(--accent-text-strong); font-weight: 800; font-family: var(--font-display); font-size: 1.28em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; align-items: center; }
.hero-cta.center { justify-content: center; }
.hero-price { display: flex; align-items: baseline; gap: 8px; margin-top: 22px; }
.hero-price .now { font-size: 2.0rem; font-weight: 800; font-family: var(--font-display); color: var(--ink); }
.hero-price .was { font-size: 1.15rem; color: var(--ink-soft); text-decoration: line-through; }
.hero-price .tag { font-size: 0.8rem; font-weight: 700; color: var(--accent-text); background: var(--accent-light); padding: 4px 10px; border-radius: 100px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 30px; }
.hero-trust span { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--ink-soft); font-weight: 550; }
.hero-trust svg { flex: none; color: var(--accent-text); }
.hero-visual { position: relative; display: grid; place-items: center; }
.hero-stack { position: relative; display: inline-block; }
.hero-cover { position: relative; z-index: 2; display: block; width: min(420px, 100%); height: auto; border-radius: 14px; box-shadow: var(--shadow-lg); transform: rotate(2.5deg); transition: transform .4s cubic-bezier(.22,1,.36,1); border: 1px solid var(--line); }
.hero-cover:hover { transform: rotate(0deg) translateY(-4px); }
.hero-page { position: absolute; inset: 0; z-index: 1; border-radius: 14px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); }
.hero-page-1 { transform: rotate(6.5deg) translate(16px, 8px); }
.hero-page-2 { transform: rotate(10.5deg) translate(30px, 16px); opacity: .92; }
.hero-badge { position: absolute; bottom: -16px; left: -8px; z-index: 3; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 20px; box-shadow: var(--shadow-md); display: flex; align-items: center; gap: 12px; }
.hero-badge .n { font-size: 2.0rem; font-weight: 800; color: var(--accent-text); font-family: var(--font-display); line-height: 1; }
.hero-badge .l { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.25; }
/* Below 900px the hero stacks. The headline, stat and buttons come first and
   the cover follows at a smaller size: with the cover first, a phone visitor's
   whole first screen was the book cover, the h1 started at 878px, and the
   average homepage visit lasted 6 seconds (GA4, Sep 29 to Oct 26, 2026). */
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero-cover { width: min(280px, 72vw); } }
@media (max-width: 520px) { .hero-page-2 { display: none; } }

/* Credibility band */
.credibility { background: var(--bg-alt); }
.credibility .lead { max-width: 64ch; margin-left: auto; margin-right: auto; }

/* Why not ChatGPT */
.why-list { max-width: 760px; margin: 34px auto 0; display: grid; gap: 14px; padding: 0; list-style: none; }
.why-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.95rem; line-height: 1.6; color: var(--ink); background: var(--bg-alt); border-radius: var(--radius); padding: 18px 22px; }
.why-list svg { flex: none; color: var(--accent-text); margin-top: 3px; }
.why-list strong { color: var(--ink); font-weight: 700; }


/* Latest research */
.lr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); gap: 18px; margin-top: 30px; }
.lr-card { display: block; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; color: var(--ink); transition: transform .18s ease, box-shadow .18s ease; }
.lr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.lr-week { font-size: 0.8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-text); }
.lr-card h3 { font-size: 1.15rem; margin: 8px 0; }
.lr-card p { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.55; margin: 0; }
.lr-more { display: inline-block; margin-top: 12px; font-weight: 650; color: var(--accent-text-strong); font-size: 0.95rem; }
.lr-fallback { grid-column: 1 / -1; text-align: center; }

/* App teaser */
.app-teaser { background: var(--bg-alt); }
.app-teaser-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.app-teaser-form { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; max-width: 460px; }
.app-teaser-form .calc-in { flex: 1 1 220px; min-width: 0; }
.app-teaser-form button { flex: 0 0 auto; }
.app-teaser-form .subscribe-status { flex-basis: 100%; margin: 4px 0 0; font-size: 0.95rem; }
.app-teaser-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 14px; max-width: 460px; }
.app-teaser-feats { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.app-teaser-feats li { display: flex; gap: 14px; align-items: flex-start; }
.app-teaser-feats svg { flex: none; color: var(--accent-text); margin-top: 2px; }
.app-teaser-feats strong { display: block; color: var(--ink); font-size: 0.95rem; margin-bottom: 2px; }
.app-teaser-feats span { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.5; }
@media (max-width: 820px) { .app-teaser-inner { grid-template-columns: 1fr; gap: 32px; } }

/* Stat band */
.statband { background: var(--accent); color: #fff; }
.statband .grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 44px 0; text-align: center; }
.statband .n { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 800; font-family: var(--font-display); }
.statband .l { font-size: 0.95rem; color: #d3e8e1; margin-top: 4px; }
.statband .grid > div { border-right: 1px solid rgba(255,255,255,.18); }
.statband .grid > div:last-child { border-right: none; }
@media (max-width: 720px) { .statband .grid { grid-template-columns: repeat(2, 1fr); gap: 30px 12px; } .statband .grid > div:nth-child(2) { border-right: none; } }

/* Problem */
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.problem-card { background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; }
.problem-card .big { font-size: clamp(3rem, 7vw, 4.6rem); font-weight: 800; font-family: var(--font-display); color: var(--accent-text); line-height: 1; }
.problem-card .cap { color: var(--ink-soft); margin-top: 8px; font-size: 1.15rem; }
.problem-list { list-style: none; margin-top: 22px; display: grid; gap: 14px; }
.problem-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.problem-list svg { flex: none; margin-top: 4px; color: var(--accent-text); }
@media (max-width: 820px) { .problem-grid { grid-template-columns: 1fr; gap: 30px; } }

/* Features */
.features { background: var(--bg-alt); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--accent-light); color: var(--accent-text); display: grid; place-items: center; margin-bottom: 16px; }
.feature h3 { margin-bottom: 8px; }
.feature p { color: var(--ink-soft); font-size: 0.95rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .feature-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .feature:hover { transform: none; } }

/* Evidence */
.evidence-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px; align-items: center; }
.evidence-quote { position: relative; padding-top: 40px; font-family: var(--font-display); font-size: 1.4rem; line-height: 1.42; color: var(--ink); }
.evidence-quote::before { content: "\201C"; position: absolute; top: -10px; left: -4px; font-family: var(--font-display); font-size: 4.2rem; line-height: 1; color: var(--accent-text); opacity: .5; }
.cite-list { display: grid; gap: 12px; margin-top: 8px; }
.cite { display: flex; gap: 14px; align-items: flex-start; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.cite .badge { flex: none; font-size: 0.68rem; font-weight: 800; color: #fff; background: var(--accent); padding: 4px 8px; border-radius: 6px; margin-top: 2px; }
.cite p { font-size: 0.95rem; color: var(--ink-soft); }
.cite strong { color: var(--ink); }
@media (max-width: 820px) { .evidence-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Preview */
.preview-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.preview-strip img { border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: transform .25s, box-shadow .25s; background: #fff; }
.preview-strip img:hover { transform: translateY(-5px) scale(1.02); box-shadow: var(--shadow-lg); }
@media (max-width: 720px) { .preview-strip { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; } }
@media (prefers-reduced-motion: reduce) { .preview-strip img:hover { transform: none; } }

/* Reviews */
.reviews { background: var(--bg-alt); }
.rev-head { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.stars { color: var(--gold); font-size: 1.4rem; letter-spacing: 2px; }
.rev-score { font-size: 0.95rem; color: var(--ink-soft); }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.rev-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.rev-card .stars { font-size: 1.15rem; }
.rev-card blockquote { font-size: 0.95rem; color: var(--ink); line-height: 1.55; }
.rev-who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rev-av { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.rev-who .nm { font-weight: 650; font-size: 0.95rem; }
.rev-who .mt { font-size: 0.8rem; color: var(--ink-soft); }
.rev-note { margin-top: 34px; text-align: center; font-size: 0.8rem; color: var(--ink-soft); }
.rev-card .rev-title { font-size: 1.15rem; font-weight: 700; color: var(--ink); line-height: 1.32; margin: 0; }
.rev-verified { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 0.8rem; font-weight: 650; color: var(--accent-text); }
.rev-verified svg { flex: none; }
@media (max-width: 900px) { .rev-grid { grid-template-columns: 1fr; max-width: 460px; margin-left:auto; margin-right:auto; } }

/* Pricing */
.price-card { max-width: 560px; margin: 44px auto 0; background: #fff; border: 2px solid var(--accent); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.price-top { background: var(--accent); color: #fff; padding: 26px 32px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.price-top h3 { color: #fff; font-size: 1.4rem; }
.price-card-featured { box-shadow: 0 22px 55px rgba(47,111,94,.30); }
.related-reading { margin: 44px 0; padding: 28px 32px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.related-reading h2 { font-size: 1.4rem; margin-bottom: 14px; }
.related-reading ul { list-style: none; display: grid; gap: 11px; }
.related-reading li { display: flex; gap: 10px; align-items: baseline; }
.related-reading li::before { content: "\2192"; color: var(--accent-text); font-weight: 700; flex: none; }
.related-reading a { font-weight: 600; }
.capture { background: var(--accent-light); }
.subscribe-form { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }
.subscribe-form input[type="email"] { flex: 1 1 280px; min-width: 0; padding: 15px 20px; font: inherit; font-size: 0.95rem; border: 1.5px solid var(--field-line); border-radius: 100px; background: var(--field-bg); color: var(--ink); }
.subscribe-form input[type="email"]:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px rgba(47,111,94,.18); }
.subscribe-form .btn { flex: 0 0 auto; }
.subscribe-form .subscribe-status { flex: 1 1 100%; margin: 4px 0 0; min-height: 1.1em; font-size: 0.95rem; color: var(--ink-soft); }
.subscribe-thanks { margin-top: 26px; display: grid; gap: 18px; justify-items: center; }
.article-capture { margin: 44px 0; padding: 30px 32px; background: var(--accent-light); border-radius: var(--radius); text-align: center; }
.article-capture h3 { font-size: 1.15rem; margin-bottom: 8px; }
.article-capture p { color: var(--ink-soft); margin-bottom: 6px; }
.stats-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; margin: 24px 0 32px; }
.stats-card { background: var(--accent-light); border-radius: var(--radius); padding: 20px; text-align: center; }
.stats-card .n { display: block; font-size: 1.7rem; font-weight: 800; font-family: var(--font-display); color: var(--accent-text); }
.stats-card span:last-child { font-size: 0.8rem; color: var(--ink-soft); }
.stats-scroll { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; margin: 10px 0 26px; font-size: 0.95rem; }
.stats-table th, .stats-table td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.stats-table th { color: var(--ink-soft); font-weight: 700; }
.price-top .tag { display: inline-block; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; background: #fff; color: var(--accent); padding: 3px 10px; border-radius: 100px; margin-left: 10px; vertical-align: middle; }
.price-top .p { display: flex; align-items: baseline; gap: 8px; }
.price-top .now { font-size: 2.4rem; font-weight: 800; font-family: var(--font-display); }
.price-top .was { opacity: .7; text-decoration: line-through; }
.price-body { padding: 30px 32px 34px; }
.price-body ul { list-style: none; display: grid; gap: 13px; margin-bottom: 26px; }
.price-body li { display: flex; gap: 12px; align-items: flex-start; text-align: left; }
.price-body svg { flex: none; margin-top: 3px; color: var(--accent-text); }
.price-body .btn { width: 100%; justify-content: center; }
.guarantee { text-align: center; margin-top: 16px; font-size: 0.95rem; color: var(--ink-soft); }
/* Success-page delivery of that same bonus, once it's actually been paid for. */
.bonus-box { margin-top: 24px; padding: 22px 24px; background: var(--accent-light); border: 1.5px dashed var(--accent); border-radius: var(--radius); }
.bonus-box-label { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent-text-strong); margin-bottom: 6px; }
/* Post-purchase "first week" steps on the Tracker success pages. The success
   pages are centred, so the list is set left-aligned inside its own card. */
.next-box { margin-top: 24px; padding: 22px 24px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); text-align: left; }
.next-box-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; }
.next-box ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--ink-soft); }
.bonus-box-title { font-weight: 700; font-size: 1.05rem; margin-bottom: 16px; }
.checkout-status { text-align: center; margin-top: 14px; min-height: 1.3em; font-size: 0.95rem; color: var(--ink-soft); }
/* Two-step assent (checkout.js): the first click relabels the button as the
   agreement itself. A darker fill marks the changed state so the second click
   is a deliberate one, not a double-tap. */
.btn-agree { background: var(--accent-dark); }
.tos-note { text-align: center; margin-top: 10px; font-size: 0.875rem; color: var(--ink-soft); }
.gc-body .tos-note { margin-top: 6px; font-size: 0.8rem; }
/* #a3372c is 6.7:1 on the light theme's white card, but the dark-mode price
   card sits on #172420, where that same red drops to ~2.4:1 — the "please
   accept the Terms" message a buyer sees after clicking Buy without ticking
   the checkbox was nearly unreadable, so the button looked dead. */
.checkout-err { color: #a3372c; }
@media (prefers-color-scheme: dark) {
  .checkout-err { color: #f87171; }
}
.checkout-spinner {
  display: inline-block; width: 13px; height: 13px; margin-right: 7px;
  vertical-align: -2px; border: 2px solid var(--line);
  border-top-color: var(--accent); border-radius: 50%;
  animation: checkout-spin 0.7s linear infinite;
}
@keyframes checkout-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .checkout-spinner { animation: none; } }

/* ---- Mini-guides: hub grid + detail pages ---- */
.crumbs { font-size: 0.95rem; color: var(--ink-soft); margin-bottom: 20px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--accent-text); }
.crumbs span { margin: 0 6px; opacity: .5; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 26px; margin-top: 48px; text-align: left; }
.guide-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.guide-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
@media (prefers-reduced-motion: reduce) { .guide-card:hover { transform: none; } }
.guide-card > a.gc-thumb { display: block; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.guide-card img { display: block; width: 100%; height: auto; }
.gc-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.gc-kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.gc-body h3 { font-size: 1.15rem; margin-bottom: 8px; line-height: 1.2; }
.gc-body h3 a { color: var(--ink); }
.gc-body h3 a:hover { color: var(--accent-text); text-decoration: none; }
.gc-desc { color: var(--ink-soft); font-size: 0.95rem; flex: 1; }
.gc-meta { display: flex; align-items: baseline; gap: 10px; margin: 16px 0 14px; }
.gc-price { font-family: var(--font-display); font-size: 1.7rem; font-weight: 800; color: var(--ink); }
.gc-pages { font-size: 0.95rem; color: var(--ink-soft); }
.gc-body .btn { width: 100%; justify-content: center; }
.gc-body .checkout-status { margin-top: 10px; font-size: 0.8rem; }
/* Phones: the buy buttons kept their 40px side padding inside a 259px card
   body, which left about 180px for the label and wrapped every one onto two
   lines. Less padding keeps them one line and the same tap height. */
@media (max-width: 560px) {
  .price-body { padding-left: 20px; padding-right: 20px; }
  .price-body .btn-lg { padding: 17px 14px; font-size: 1rem; width: 100%; justify-content: center; }
}
/* Phones: the homepage's eight free articles become a swipe row, with the
   next card showing at the edge so the row reads as scrollable. Stacked, they
   ran 2,400px. Every card stays in the page and in the tab order. */
@media (max-width: 560px) {
  #free-articles .learn-grid { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; padding: 4px 2px 14px; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
  #free-articles .learn-card { scroll-snap-align: start; }
}
/* Phones: a small cover beside the text instead of a full-width cover on top.
   Full width, each card ran about 735px, so four guides took 3,000px of the
   homepage before the reader reached the free calculators. */
@media (max-width: 560px) {
  .guide-grid { gap: 16px; margin-top: 32px; }
  .guide-card { display: grid; grid-template-columns: 88px 1fr; align-items: start; }
  .guide-card > a.gc-thumb { border-bottom: 0; margin: 18px 0 0 16px; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
  .gc-body { padding: 16px 16px 18px; }
  .gc-body .btn { padding: 13px 12px; font-size: 0.9rem; }
}
.gc-more { display: inline-block; margin-top: 12px; font-size: 0.95rem; font-weight: 600; }

/* Detail page hero */
.guide-hero { padding: clamp(40px, 6vw, 76px) 0 clamp(32px, 4vw, 56px); }
.guide-hero-grid { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 820px) { .guide-hero-grid { grid-template-columns: 1fr; } }
.guide-cover { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; height: auto; display: block; }
.guide-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); margin-bottom: 14px; }
.guide-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 62ch; }
.guide-buybox { margin-top: 30px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt); max-width: 460px; }
.guide-buybox .p { display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px; }
.guide-buybox .now { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; }
.guide-buybox .unit { color: var(--ink-soft); font-size: 0.95rem; }
.guide-buybox .btn { width: 100%; justify-content: center; }

/* Terms clickwrap next to every buy button */
.tos-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; text-align: left; cursor: pointer; }
.tos-check input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); cursor: pointer; }
.tos-check span { font-size: 0.95rem; color: var(--ink-soft); line-height: 1.45; }
.tos-check a { font-weight: 600; }

/* Legal / terms prose */
.legal { max-width: 760px; }
.legal h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 14px; }
.legal h2 { font-size: 1.4rem; margin: 38px 0 10px; color: var(--ink); }
.legal p { color: var(--ink-soft); margin-bottom: 14px; max-width: 72ch; }
.legal strong { color: var(--ink); }
.legal-meta { font-size: 0.95rem; color: var(--ink-soft); }
.legal-callout { margin: 26px 0 8px; padding: 20px 24px; background: var(--accent-light); border-radius: var(--radius); }
.legal-callout p { margin: 0; color: var(--ink); }

.inside-list { max-width: 760px; margin: 28px auto 0; display: grid; gap: 12px; text-align: left; list-style: none; }
.inside-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.inside-list svg { flex: none; margin-top: 4px; color: var(--accent-text); }
.evidence-note { max-width: 760px; margin: 30px auto 0; font-size: 0.95rem; color: var(--ink-soft); }

/* FAQ */
.faq-list { max-width: 760px; margin: 40px auto 0; display: grid; gap: 12px; }
details { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 12px; padding: 4px 22px; }
details[open] { background: #fff; box-shadow: var(--shadow-sm); }
summary { cursor: pointer; font-weight: 650; font-size: 1.15rem; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.4rem; color: var(--accent-text); font-weight: 400; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--ink-soft); }

/* Final CTA */
.finalcta { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%); color: #fff; text-align: center; }
.finalcta h2 { color: #fff; }
.finalcta .lead { color: #d9ece6; margin: 18px auto 30px; }
.finalcta .btn-primary { background: #fff; color: var(--accent); box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.finalcta .btn-primary:hover { background: #f0f7f4; }
/* .finalcta paints itself with the accent gradient in BOTH themes, so anything
   inside it is on a fixed dark-green ground and must not follow either theme's
   text tokens. It set color:#fff and then styled h2, .lead and .btn-primary
   individually, which left two things behind:

     .guarantee kept --ink-soft   -> 1.39:1 in light, 2.8:1 in dark
     plain links kept the accent  -> 1.0:1 in light. The same green as the
                                     background, i.e. invisible.

   That second one is the "Terms of Service" link in the checkout block on all
   six paid guide pages, next to the box a customer has to tick to agree to
   them. Both predate the token split; the split moved the dark case from
   1.0:1 to 1.82:1 without making either pass.

   #d9ece6 is the colour .lead already uses here and clears 4.5:1 against the
   lighter end of the gradient, which is the worst case. */
.finalcta .guarantee { color: #d9ece6; }
.finalcta a:not(.btn) { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.finalcta a:not(.btn):hover { color: #fff; }

/* Footer */
/* The footer keeps a dark ground in both themes, so --accent links sit at
   2.8:1 there even in light mode. This is not a dark-mode-only problem and so
   is not fixed in the dark block. */
footer a { color: var(--accent-bright); }
footer { background: #16211d; color: #b9c7c1; padding: 52px 0 34px; font-size: 0.95rem; }
.foot-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px; }
.foot-brand { max-width: 320px; }
.foot-brand .brand { color: #fff; margin-bottom: 12px; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h3, .foot-col h4 { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; font-family: var(--font); font-weight: 700; line-height: 1.3; }
.foot-col a { display: block; color: #b9c7c1; margin-bottom: 9px; }
.foot-col a:hover { color: #fff; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 40px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 0.875rem; color: #b9c7c1; }
/* The medical disclaimer is the text a reader most needs to see, so it is body-sized
   and #b9c7c1 (9.5:1 on the footer), not the 12.8px #8a9993 it was. */
.foot-disclaimer { max-width: 720px; font-size: 0.9rem; color: #b9c7c1; margin-top: 14px; line-height: 1.55; }

/* Article / long-form (the /learn cluster). Deliberately NOT gated behind
   .reveal so the prose renders without JS, for crawlers and AI answer engines. */
.article-hero { padding: clamp(36px, 6vw, 72px) 0 clamp(20px, 3vw, 34px); }
.article-hero .wrap { max-width: 760px; }
.article-eyebrow { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); }
.article-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 12px 0 0; text-wrap: balance; }
.article-dek { font-size: 1.15rem; color: var(--ink-soft); line-height: 1.5; margin-top: 18px; max-width: 62ch; }
.article-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 22px; font-size: 0.8rem; color: var(--ink-soft); }
.article-meta .badge-cited { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--accent-text); }
.article-meta .badge-cited svg { flex: none; }

.article { max-width: 720px; margin: 0 auto; padding: 8px 0 8px; }
.article > p { font-size: 1.15rem; line-height: 1.75; color: var(--ink); margin: 0 0 1.25em; }
.article h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 1.9em 0 .5em; text-wrap: balance; }
.article h3 { font-size: 1.4rem; margin: 1.6em 0 .4em; }
.article ul, .article ol { margin: 0 0 1.35em; padding-left: 1.35em; }
.article li { font-size: 1.15rem; line-height: 1.7; color: var(--ink); margin-bottom: .55em; }
.article a { color: var(--accent-text-strong); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.article a:hover { color: var(--accent-text); }
.article strong { color: var(--ink); font-weight: 700; }
.article sup { line-height: 0; }
.article sup a { text-decoration: none; font-weight: 650; padding: 0 1px; }
.article blockquote { margin: 1.5em 0; padding: 20px 24px; background: var(--bg-alt); border-radius: var(--radius); font-size: 1.15rem; line-height: 1.5; color: var(--ink); font-family: var(--font-display); }

.key-takeaways { background: var(--accent-light); border-radius: var(--radius); padding: 24px 28px; margin: 0 auto 40px; max-width: 720px; }
.key-takeaways h2 { font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 12px; color: var(--accent-text-strong); }
.key-takeaways ul { margin: 0; padding-left: 1.25em; }
.key-takeaways li { color: var(--ink); line-height: 1.6; margin-bottom: .5em; font-size: 0.95rem; }

.article-cta { max-width: 720px; margin: 40px auto; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px; }
.article-cta .k { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); }
.article-cta h3 { font-size: 1.4rem; margin: 8px 0 8px; }
.article-cta p { color: var(--ink-soft); margin: 0 0 18px; font-size: 0.95rem; line-height: 1.6; }

.calc-cta { max-width: 720px; margin: 0 auto 32px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; }
.calc-cta .k { font-size: 0.78rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); margin: 0 0 4px; }
.calc-cta h2 { font-size: 1.15rem; margin: 0 0 10px; }
.calc-cta ul { margin: 0 0 10px; padding-left: 1.2em; }
.calc-cta li { margin-bottom: 6px; line-height: 1.5; font-size: 0.95rem; color: var(--ink-soft); }
.calc-cta li a { font-weight: 600; }
.calc-cta-note { margin: 0; font-size: 0.82rem; color: var(--ink-soft); }

.references { max-width: 720px; margin: 48px auto 0; }
.references h2 { font-size: 1.4rem; margin-bottom: 16px; }
.references ol { margin: 0; padding-left: 1.5em; }
.references li { font-size: 0.8rem; color: var(--ink-soft); line-height: 1.5; margin-bottom: 10px; }
.references a { color: var(--accent-text-strong); word-break: break-word; }

/* Research roundup items */
.rr-list .rr-item { padding: 22px 0; border-bottom: 1px solid var(--line); }
.rr-list .rr-item:last-child { border-bottom: none; }
.rr-item h2 { font-size: 1.15rem; line-height: 1.3; margin: 0 0 6px; }
.rr-item h2 a { color: var(--ink); text-decoration: none; }
.rr-item h2 a:hover { color: var(--accent-text); text-decoration: underline; }
.rr-preprint { display: inline-block; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text-strong); background: var(--accent-light); border-radius: 100px; padding: 2px 9px; vertical-align: middle; margin-left: 6px; }
.rr-meta { font-size: 0.8rem; color: var(--ink-soft); margin: 0 0 12px; }
.rr-item > p { font-size: 0.95rem; line-height: 1.65; color: var(--ink); margin: 0 0 10px; }
.rr-why { color: var(--ink-soft); }
.rr-action { color: var(--ink-soft); }
.rr-action strong { color: var(--accent-text-strong); }
.rr-source a { font-weight: 650; color: var(--accent-text-strong); }

/* Learn hub cards */
.learn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 44px; text-align: left; }
.learn-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; transition: border-color .2s, transform .2s; }
.learn-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.learn-card .lc-kicker { font-size: 0.8rem; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 8px; }
.learn-card h3 { font-size: 1.15rem; line-height: 1.26; margin-bottom: 10px; }
.learn-card h3 a { color: var(--ink); }
.learn-card h3 a:hover { color: var(--accent-text); }
.learn-card p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin-bottom: 16px; }
.learn-card .lc-more { margin-top: auto; font-weight: 650; color: var(--accent-text); font-size: 0.95rem; }

/* Dark mode */
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8efec; --ink-soft: #a7b6b0; --bg: #101613; --bg-alt: #172420;
    --line: #26352f; --accent-light: #1c2c27;
    /* 3.46:1 on the #172420 card, about 4:1 on the #101613 field. */
    --field-line: #66796f;
    --field-bg: #101613;
    --accent-text: #34a07f; --accent-text-strong: #34a07f;
  }
  body { background: var(--bg); }
  .nav { background: rgba(16,22,19,.82); }
  .brand, h1, h2, h3 { color: var(--ink); }
  .hero { background: radial-gradient(1200px 500px at 80% -10%, #16302a 0%, rgba(22,48,42,0) 60%), linear-gradient(180deg, #121a17 0%, #101613 100%); }
  .hero-cover, .hero-badge, .hero-page { border-color: var(--line); }
  .hero-badge, .hero-page, .feature, .rev-card, .price-card, details[open], .lr-card { background: #172420; }
  .guide-card { background: #172420; }
  .cite, .problem-card, details { background: #172420; }
  .preview-strip img { background: #fff; }
  .price-card { border-color: var(--accent-bright); }
  .article blockquote, .key-takeaways, .article-cta { background: #172420; }
  .learn-card { background: #172420; }
}

/* Protein/weight-loss calculator */
/* Calculator input grid. This was an inline minmax(200px,1fr), which at a
   267px-wide card on a phone resolves to a single column: eight fields in one
   stack, 750px of form, and the Calculate button 1.6 screens below the fold.
   A visitor landing from a phone saw no field at all above the fold and no
   button without scrolling. 120px lets two columns fit that same 267px, which
   halves the form height. It stays auto-fit, so wider screens keep expanding. */
/* Chart and table cards stay light in both themes on purpose: the SVG the
   calculators draw hardcodes #6b7280 axis labels, #e5e7eb gridlines and
   #9ca3af series strokes, none of which read on a dark surface. What was
   wrong is that the card pinned its background to #fff but let its text keep
   following --ink, so in dark mode the phase-timeline heading and the
   meal-plan table sat near 1.2:1 on white. Pinning the text with the surface
   keeps the pair consistent. */
.chart-card { margin-top: 26px; background: #fff; border: 1px solid #dde7e3; border-radius: 16px; padding: 20px 18px; color: #1b2420; }
.chart-card h2, .chart-card h3, .chart-card h4, .chart-card p, .chart-card li, .chart-card th, .chart-card td, .chart-card strong, .chart-card span { color: inherit; }

/* Shown while the calculators are displaying their seeded example values,
   hidden for good on the visitor's first edit. The tools now compute live,
   so something is always on screen; this is what stops that something from
   reading as the visitor's own numbers before they have entered any. */
.calc-example-note { margin: 20px 0 0; padding: 12px 14px; background: var(--bg-alt);
  border: 1px dashed var(--line); border-radius: 10px; color: var(--ink-soft);
  font-size: var(--fs-body); line-height: 1.5; text-align: center; }

.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 16px; }
/* A field that carries its own unit selector cannot share a 126px column:
   the number input was left 50px wide, too narrow to read a 3-digit weight.
   Those span the full row; the plain one-control fields still sit two-up. */
.calc-grid > .calc-field-wide { grid-column: 1 / -1; }

.calc-in { width: 100%; box-sizing: border-box; padding: 12px 14px; font: inherit; font-size: 0.95rem; border: 1.5px solid var(--field-line); border-radius: 10px; background: var(--field-bg); color: var(--ink); }
.calc-in:focus { outline: none; border-color: var(--accent-text); box-shadow: 0 0 0 3px rgba(47,111,94,.15); }
.calc-stat { background: var(--accent-light); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.calc-n { font-family: var(--font-display); font-size: 1.4rem; font-weight: 800; color: var(--accent-text); line-height: 1.1; }
/* Empty-value placeholder. The dash lives in CSS rather than in the markup so
   the span is genuinely empty until calc.js writes a result: a screen reader
   then announces nothing instead of "em dash", and the em-dash count in the
   HTML reflects prose rather than UI glyphs. calc.js sets textContent, which
   removes :empty, so the real value replaces the dash automatically. */
.calc-n:empty::before { content: "\2014"; color: var(--ink-soft); }
.calc-l { font-size: var(--fs-meta); color: var(--ink-soft); }
/* A caution, not an error: neutral surface with an amber edge. Red is kept for field errors. */
.calc-warn { margin-top: 16px; padding: 12px 16px; background: var(--bg-alt); border: 1px solid var(--field-line); border-left: 4px solid #b7791f; border-radius: 10px; color: var(--ink); font-size: var(--fs-body); }

/* Statistics page: per-stat permalinks + citation box (link-earning asset) */
.stat-row { position: relative; }
.stat-link { opacity: 0; margin-left: 6px; color: var(--ink-soft); font-weight: 700; text-decoration: none; transition: opacity .15s ease; }
.stat-row:hover .stat-link, .stat-link:focus { opacity: 1; color: var(--accent-text); }
.stat-row:target { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Phones: the number sits above its sentence. Side by side, a wide figure such
   as "51 / 31 kg" left the sentence a column two or three words wide. The rows
   set flex-direction inline, hence !important. */
@media (max-width: 560px) { .stat-row { flex-direction: column !important; gap: 6px !important; } }
.cite-box { margin-top: 34px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; }
.cite-box h2 { margin: 0 0 10px; font-size: 1.15rem; }
.cite-box p { color: var(--ink-soft); line-height: 1.6; margin: 0 0 14px; }
.stat-hash { font-weight: 700; color: var(--accent-text); }
.cite-copy { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cite-copy label { flex-basis: 100%; font-size: 0.8rem; font-weight: 650; color: var(--ink); text-transform: uppercase; letter-spacing: 0.05em; }
.cite-copy textarea { flex: 1 1 320px; min-width: 0; font-family: inherit; font-size: 0.95rem; line-height: 1.5; padding: 12px 14px; border: 1px solid var(--field-line); border-radius: 10px; background: var(--field-bg); color: var(--ink); resize: vertical; }
.cite-status { font-size: 0.95rem; color: var(--accent-text-strong); font-weight: 650; }
.cite-note { font-size: 0.95rem; margin-top: 16px !important; }
@media (prefers-color-scheme: dark) { .cite-copy textarea { background: #172420; } }

/* Survey form */
.sv-q { border: 0; padding: 0 0 20px; margin: 0 0 20px; border-bottom: 1px solid var(--line); }
.sv-q:last-of-type { border-bottom: 0; }
.sv-q legend { font-weight: 700; color: var(--ink); font-size: 0.95rem; line-height: 1.45; margin-bottom: 12px; padding: 0; }
.sv-opt { font-weight: 550; font-size: 0.8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; margin-left: 6px; }
.sv-q label { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; margin-bottom: 4px; border-radius: 10px; cursor: pointer; color: var(--ink); line-height: 1.5; transition: background .14s ease; }
.sv-q label:hover { background: var(--bg-alt); }
.sv-q input[type="radio"] { flex: none; margin-top: 5px; accent-color: var(--accent); width: 17px; height: 17px; }
.sv-q input[type="radio"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sv-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .sv-q label { transition: none; } }

/* Inline mid-article email capture. Deliberately lighter than .article-capture:
   the end-of-article block sits at ~83% page depth, which almost nobody reaches,
   so this one runs after the first section. Left-aligned and low-chrome so it
   reads as part of the article rather than an ad break. */
.inline-capture { margin: 40px 0; padding: 22px 24px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.inline-capture p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.inline-capture strong { color: var(--ink); }
.inline-capture .subscribe-form { justify-content: flex-start; margin-top: 16px; gap: 10px; }
.inline-capture .subscribe-form input[type="email"] { flex: 1 1 240px; padding: 12px 18px; }
.inline-capture .subscribe-form .btn { padding: 12px 22px; font-size: 0.95rem; }
.inline-capture .subscribe-thanks { justify-items: start; margin-top: 16px; }

/* Article tables. There were no table styles anywhere in this file, so the one
   existing table (best-protein-for-muscle-on-glp1) carried its own inline
   border and padding on every single cell to compensate. Scoped to .article so
   nothing else on the site inherits it. .table-scroll keeps a wide table
   scrolling inside its own box instead of pushing the page sideways on a phone. */
.table-scroll { overflow-x: auto; margin: 1.4rem 0; -webkit-overflow-scrolling: touch; }
.article table { border-collapse: collapse; width: 100%; min-width: 460px; font-size: var(--fs-body); }
.article th { text-align: left; font-weight: 700; color: var(--ink); padding: 10px 14px; border-bottom: 2px solid var(--line); }
.article td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--ink-soft); vertical-align: top; }
.article tbody tr:last-child td { border-bottom: 0; }

/* Affiliate gear blocks. These carried no styling at all until now, so the
   heading inherited .article h2 at ~1.9rem and the disclosure read as one more
   body paragraph. Setting the block apart matters beyond looks: the FTC asks
   that the disclosure be clear and conspicuous and sit near the links, and a
   sentence that looks identical to the prose around it is neither. */
.gear { max-width: 720px; margin: 44px auto 0; padding: 22px 24px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); box-sizing: border-box; }
.gear h2 { font-size: var(--fs-head); margin: 0; }
.gear-disclosure { color: var(--ink-soft); font-size: var(--fs-meta); line-height: 1.55; margin: 6px 0 14px; }
.gear-list { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.gear-list li { color: var(--ink-soft); font-size: var(--fs-body); line-height: 1.6; }
.gear-list a { font-weight: 600; }
/* Chart bars grow from the axis when motion.js marks a figure in view (never under reduced motion). */
figure svg[data-grow] rect { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }
figure svg[data-grow-in] rect { transform: scaleX(1); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
figure svg[data-grow] text { opacity: 0; }
figure svg[data-grow-in] text { opacity: 1; transition: opacity .5s ease .5s; }
@media print { figure svg[data-grow] rect { transform: none; } figure svg[data-grow] text { opacity: 1; } }
/* Product cards built from .gear-list by affiliate.js (the list is the no-JS fallback). */
.gear-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 12px; }
.gear-card { display: flex; gap: 14px; align-items: flex-start; padding: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.gear-card:hover, .gear-card:focus-visible { border-color: var(--accent-text); transform: translateY(-1px); }
.gear-card-art { flex: 0 0 auto; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 10px; background: var(--accent-light); color: var(--accent-text-strong); }
.gear-card-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gear-card-name { font-weight: 700; line-height: 1.3; }
.gear-card-why { color: var(--ink-soft); font-size: var(--fs-meta); line-height: 1.5; }
.gear-card-cta { margin-top: 4px; font-size: var(--fs-meta); font-weight: 650; color: var(--accent-text-strong); }
@media (prefers-reduced-motion: reduce) { .gear-card { transition: none; } .gear-card:hover { transform: none; } }
@media (prefers-color-scheme: dark) { .inline-capture .subscribe-form input[type="email"] { background: #172420; } }

/* Placeholders are body text for contrast purposes. The browser default grey
   sits near 2.8:1 on the dark field surface, so it is set explicitly. */
.calc-in::placeholder,
.subscribe-form input[type="email"]::placeholder,
.cite-copy textarea::placeholder { color: var(--ink-soft); opacity: 1; }


/* ---- 2026-10-24 audit fixes ---- */

/* Skip link: first focusable element on every page. */
.skip-link { position: absolute; left: 12px; top: -64px; z-index: 100; padding: 10px 16px; background: var(--accent); color: #fff; font-weight: 650; border-radius: 8px; text-decoration: underline; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* Visually hidden, still announced. */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Link identity should not rely on colour alone (WCAG 1.4.1). Buttons keep their own look. */
main :is(p, li) a:not(.btn) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* Calculator input feedback. Errors are plain, near the fields, and not red-on-pink alarm. */
.field-error { margin: 14px 0 0; padding: 10px 14px; border-left: 4px solid #a3372c; background: var(--bg-alt); color: var(--ink); font-size: var(--fs-body); }
.field-error[hidden] { display: none; }
.calc-in[aria-invalid="true"] { border-color: #a3372c; border-width: 2px; }
@media (prefers-color-scheme: dark) { .field-error { border-left-color: #f87171; } .calc-in[aria-invalid="true"] { border-color: #f87171; } }
.calc-hint { margin: 6px 0 0; font-size: var(--fs-meta); color: var(--ink-soft); }
.calc-note { margin: 14px 0 0; padding: 12px 16px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); font-size: var(--fs-body); line-height: 1.55; }
.calc-note strong { color: var(--ink); }
.calc-caution { margin-top: 16px; padding: 12px 16px; background: var(--bg-alt); border: 1px solid var(--field-line); border-radius: 10px; color: var(--ink); font-size: var(--fs-body); line-height: 1.55; }
.calc-l small { display: block; margin-top: 4px; font-size: var(--fs-meta); }
.calc-label { display: block; font-weight: 650; margin-bottom: 6px; font-size: var(--fs-body); }

/* Wide tables scroll inside their own box, reachable by keyboard, with an edge shadow as the hint. */
.table-scroll { background: linear-gradient(to right, var(--bg) 30%, rgba(255,255,255,0)) left center / 28px 100% no-repeat local, linear-gradient(to left, var(--bg) 30%, rgba(255,255,255,0)) right center / 28px 100% no-repeat local, radial-gradient(farthest-side at 0 50%, rgba(0,0,0,.18), rgba(0,0,0,0)) left center / 10px 100% no-repeat scroll, radial-gradient(farthest-side at 100% 50%, rgba(0,0,0,.18), rgba(0,0,0,0)) right center / 10px 100% no-repeat scroll; }
.table-scroll:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }

/* White-on-green button over the green final band loses the default ring. */
.finalcta :focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.preview-strip img { height: auto; }
.statband a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

/* Product pages (2026-10 design pass). Scoped to pages with a .guide-hero so the
   rest of the site is unchanged. The product's own cover and inside pages are the
   pictures; type carries the hierarchy; surfaces step in tone, never by outline. */
main:has(.guide-hero) .wrap.center { text-align: left; }
main:has(.guide-hero) .wrap.center > h2,
main:has(.guide-hero) .wrap.center > .lead { max-width: 760px; }
.guide-hero-grid { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); align-items: center; }
.guide-cover { border: 0; border-radius: 0; box-shadow: none; }
.guide-meta { font-size: 1rem; font-weight: 600; color: var(--accent-text); margin: 0 0 12px; }
.guide-hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.0; letter-spacing: -0.025em; margin-bottom: 18px; max-width: 14ch; }
.guide-sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--ink); max-width: 46ch; }
.guide-buybox { border: 0; border-radius: 0; background: var(--bg-alt); padding: 26px 28px; }
.guide-buybox .btn, main:has(.guide-hero) .btn-primary { box-shadow: none; }
.guide-buybox .guarantee { text-align: left; font-size: 0.9rem; }
@media (max-width: 820px) {
  /* One column below 820px. Without this the two-column rule above (which comes
     after the original 820px rule at the top of the file) won, and the cover
     column shrank to nothing on phones: no product page showed its cover. */
  .guide-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .guide-hero-grid > div:first-child { order: 2; max-width: 360px; }
  .guide-hero-grid > div:last-child { order: 1; }
}
main:has(.guide-hero) .inside-list { max-width: none; margin: 32px 0 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 18px 48px; }
main:has(.guide-hero) .inside-list li { color: var(--ink); font-size: 1.05rem; line-height: 1.5; display: block; }
main:has(.guide-hero) .inside-list svg { display: none; }
main:has(.guide-hero) .evidence-note { text-align: left; margin-left: 0; }
main:has(.guide-hero) .faq-list { margin-left: 0; }
main:has(.guide-hero) .finalcta { background: var(--accent); text-align: left; }
main:has(.guide-hero) .finalcta .lead { margin-left: 0; }
main:has(.guide-hero) .finalcta .guarantee { text-align: left; }
.look-inside { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2.5vw, 32px); margin-top: 32px; }
.look-inside figure { margin: 0; }
.look-inside img { display: block; width: 100%; height: auto; background: #fff; }
.look-inside figcaption { margin-top: 10px; font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 600px) { .look-inside { grid-template-columns: repeat(2, minmax(0, 1fr)); } .look-inside figure:nth-child(3) { display: none; } }
body:has(.guide-hero) .nav { border-bottom: 0; }
body:has(.guide-hero) .nav-links a.btn, body:has(.guide-hero) .btn { box-shadow: none; }
body:has(.guide-hero) .foot-legal { border-top: 0; }
@media (max-width: 720px) { body:has(.guide-hero) .nav-links { flex-wrap: wrap; overflow: visible; row-gap: 6px; } }
main:has(.guide-hero) .faq-list details { border: 0; background: var(--bg); }
main:has(.guide-hero) .section:not(.features) .faq-list details { background: var(--bg-alt); }
main:has(.guide-hero) .finalcta, main:has(.guide-hero) .finalcta .guarantee { text-align: center; }
main:has(.guide-hero) .finalcta .lead { margin-left: auto; }
@media (max-width: 820px) { main:has(.guide-hero) .crumbs { display: none; } }
main:has(.guide-hero) .evidence-stats li strong { display: block; font-family: var(--font-display); font-size: clamp(2.2rem, 3.6vw, 3rem); font-weight: 700; line-height: 1; letter-spacing: -0.02em; color: var(--accent-text); margin-bottom: 10px; }
main:has(.guide-hero) .wrap.center > p, main:has(.guide-hero) .evidence-note { max-width: 68ch; }
main:has(.guide-hero) .finalcta .wrap.center { text-align: center; }
main:has(.guide-hero) .finalcta .wrap.center > * { margin-left: auto; margin-right: auto; }
main:has(.guide-hero) .faq-list, main:has(.guide-hero) .wrap.center > .lead { max-width: 64ch; }

/* Calculator refresh (2026-10-27). The input card was a 2px green outline with a
   55px green glow, the loudest object on the page, louder than the results it
   produces. It is now a flat tone step, so the eye lands on the numbers. Short
   choices (units, sex, meals) are segmented buttons drawn by calc-ui.js; the
   real <select> stays hidden in the form. Results lead with the number, set
   large and tight, the label below in the UI face. */
form#calc.price-card { background: var(--bg-alt); border: 0; box-shadow: none; border-radius: var(--radius-lg); }
form#calc .calc-in { border-width: 1px; border-color: transparent; background: var(--bg); min-height: 46px; transition: border-color .15s ease; }
form#calc .calc-in:hover { border-color: var(--line); }
form#calc .calc-in:focus { border-color: var(--accent-text); box-shadow: 0 0 0 3px rgba(47,111,94,.15); }
form#calc .calc-label { font-size: 0.86rem; color: var(--ink-soft); font-weight: 600; }
.seg { display: flex; flex: 0 0 auto; gap: 2px; padding: 3px; background: var(--line); border-radius: 12px; min-height: 46px; box-sizing: border-box; }
.seg-b { flex: 1 1 0; min-width: 40px; padding: 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-soft); font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer; transition: background-color .18s ease, color .18s ease; white-space: nowrap; }
.seg-b:hover { color: var(--ink); }
.seg-b[aria-checked="true"] { background: var(--bg); color: var(--ink); }
.seg-b:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.calc-grid > div:has(> .seg) .seg { width: 100%; }
/* A select that stays a select holds a long option ("Light (1-3 days/week)");
   on a wide card it takes two columns so the choice is readable, not cut. */
@media (min-width: 640px) { .calc-grid > div:has(> select.calc-in:not([hidden])) { grid-column: span 2; } }
.calc-stat { border-radius: 14px; padding: 16px 18px 14px; gap: 6px; }
.calc-n { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
/* Results peek bar (calc-ui.js section 3): phones only. */
.calc-peek { display: none; }
@media (max-width: 820px) {
  .calc-peek:not([hidden]) { display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--accent-dark, #1f4d40); color: #fff; font: inherit; font-size: 0.9rem; text-align: left; box-shadow: 0 10px 28px rgba(0,0,0,.28); cursor: pointer; }
  .calc-peek b { font-weight: 800; font-size: 1.02rem; }
  .calc-peek-go { margin-left: auto; font-weight: 700; opacity: .85; }
}
@media print { .calc-peek { display: none !important; } }
.calc-share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.calc-share-b { padding: 10px 16px; border: 0; border-radius: 999px; background: var(--bg); color: var(--accent-text-strong); font: inherit; font-size: 0.9rem; font-weight: 650; cursor: pointer; }
.calc-share-b:hover { background: var(--accent-light); }
.calc-share-s { font-size: var(--fs-meta); color: var(--ink-soft); overflow-wrap: anywhere; }
.calc-example-note { border: 0; }
@media (prefers-color-scheme: dark) {
  form#calc.price-card { background: #172420; }
  .seg { background: #26352f; }
  .seg-b[aria-checked="true"] { background: #101613; }
  .calc-share-b { background: #101613; }
}
@media (prefers-reduced-motion: reduce) { .seg-b, form#calc .calc-in { transition: none; } }

/* Protein food calculator. The running total is the hero, set large and kept
   in view while the list scrolls (sticky inside the form on every width).
   The bar shows the target as a band, not a finish line: under, in, over. */
.pf-weight { max-width: 280px; }
.pf-total { position: sticky; top: 0; z-index: 2; background: var(--bg-alt); margin: 14px -24px 0; padding: 12px 24px 12px; }
.pf-big { margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem, 2rem + 2.4vw, 3.6rem); font-weight: 700; line-height: 0.95; letter-spacing: -0.035em; color: var(--accent-text); font-variant-numeric: tabular-nums; }
.pf-big small { font-size: 0.42em; letter-spacing: 0; color: var(--ink-soft); font-weight: 600; }
.pf-of { margin: 4px 0 10px; color: var(--ink-soft); font-size: var(--fs-body); }
.pf-of span { color: var(--ink); font-weight: 650; }
.pf-bar { position: relative; height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; }
.pf-fill { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--accent); border-radius: 999px; transition: width .35s cubic-bezier(.2,.8,.2,1); z-index: 1; }
.pf-band { position: absolute; top: 0; bottom: 0; background: var(--accent-light); opacity: .9; }
.pf-left { margin: 8px 0 0; font-size: var(--fs-meta); color: var(--ink-soft); min-height: 1.3em; }
.pf-hit .pf-left { color: var(--accent-text); font-weight: 650; }
.pf-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 4px; }
.pf-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; transition: background-color .18s ease; }
.pf-row.on { background: var(--bg); }
.pf-name { display: flex; flex-direction: column; min-width: 0; }
.pf-name label { font-weight: 600; font-size: 0.97rem; }
.pf-name small { color: var(--ink-soft); font-size: var(--fs-meta); }
.pf-name small b { color: var(--accent-text); font-weight: 650; }
.pf-step { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; background: var(--line); border-radius: 12px; padding: 3px; }
.pf-b { width: 40px; height: 40px; border: 0; border-radius: 9px; background: var(--bg); color: var(--ink); font: inherit; font-size: 1.25rem; font-weight: 600; line-height: 1; cursor: pointer; }
.pf-b:hover { color: var(--accent-text); }
.pf-b:active { transform: scale(.94); }
.pf-b:focus-visible, .pf-in:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.pf-in { width: 46px; height: 40px; border: 0; background: transparent; color: var(--ink); text-align: center; font: inherit; font-weight: 650; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.pf-in::-webkit-outer-spin-button, .pf-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pf-actions { margin-top: 14px; }
@media (prefers-color-scheme: dark) {
  .pf-total { background: #172420; }
  .pf-step { background: #26352f; }
  .pf-b { background: #101613; }
  .pf-row.on { background: #101613; }
  .pf-band { background: #2a4a40; }
}
@media (prefers-reduced-motion: reduce) { .pf-fill, .pf-row { transition: none; } .pf-b:active { transform: none; } }
form#calc.pf { overflow: visible; }
@media (min-width: 1100px) { .pf-total { top: 66px; } }
@media (max-width: 420px) { .pf-b { width: 36px; height: 38px; } .pf-in { width: 36px; } .pf-row { padding: 9px 8px; } }
.pf .pf-actions, .pf .calc-share { display: inline-flex; vertical-align: middle; margin: 14px 10px 0 0; }

/* Calculator printout ("Print for your appointment" in calc-ui.js): the form
   and the results, on white, with the page URL so the numbers can be checked.
   Everything that is not the reader's own numbers or the method is dropped. */
@media print {
  .nav, footer, .skip-link, .ad-slot, .adsbygoogle, .gear, .inline-capture, .calc-share, .pf-actions, .sr-timer-row,
  .related-reading, .faq-list, main .article, .article-cta, .references, .article-dek, .crumbs, .article-eyebrow, .calc-hint, .price-card-featured .seg-b[aria-checked="false"], .calc-example-note, .chart-card table + div { display: none !important; }
  body, .price-card, form#calc.price-card, .calc-stat, .pf-total, .chart-card { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  .calc-n, .pf-big, .calc-l, .calc-label, h1, h2, p, li, td, th { color: #000 !important; }
  .calc-in, .seg, .pf-step { border: 1px solid #999 !important; background: #fff !important; }
  .article-hero { padding: 0 !important; }
  .section { padding: 8px 0 !important; }
  .price-body { padding: 12px 0 !important; }
  .calc-grid { gap: 8px !important; }
  #chartWrap, #planWrap, #macroRow { break-inside: avoid; }
  .calc-stat { border: 1px solid #ccc; break-inside: avoid; }
  .references { font-size: 9pt; }
  main::after { content: "Printed from getmuscleonglp.com. Population-based estimates, not medical advice."; display: block; margin-top: 16px; font-size: 9pt; }
}

/* Muscle-loss calculator: lean mass at risk as three bars on one scale. */
.risk-bars { margin-top: 18px; display: grid; gap: 10px; }
.rb-row { display: grid; grid-template-columns: 88px 1fr; align-items: center; gap: 12px; font-size: var(--fs-meta); color: var(--ink-soft); }
.rb-track { position: relative; height: 14px; border-radius: 999px; background: var(--line); overflow: hidden; }
.rb-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--accent); transition: width .4s cubic-bezier(.2,.8,.2,1); }
.rb-span { position: absolute; top: 0; bottom: 0; width: 0; background: var(--accent); opacity: .4; transition: left .4s cubic-bezier(.2,.8,.2,1), width .4s cubic-bezier(.2,.8,.2,1); }
.rb-fill.rb-bad, .rb-bad + .rb-span { background: #b4483b; }
.rb-fill.rb-mid, .rb-span.rb-mid { background: #b7791f; }
.rb-key { margin: 2px 0 0; font-size: var(--fs-meta); color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .rb-fill, .rb-span { transition: none; } }
.success-h { font-size: clamp(1.9rem, 3.6vw, 2.9rem); text-wrap: balance; }

/* Homepage calculator strip: tone-step tiles, the tool name first. */
.tool-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 28px; text-align: left; }
.tool-tile { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--bg-alt); color: var(--ink); text-decoration: none; transition: background-color .18s ease; }
.tool-tile strong { font-family: var(--font-display); font-size: 1.08rem; color: var(--accent-text-strong); }
.tool-tile span { font-size: var(--fs-meta); color: var(--ink-soft); line-height: 1.45; }
.tool-tile:hover { background: var(--accent-light); }
.tool-tile:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
@media (prefers-color-scheme: dark) { .tool-tile { background: #172420; } .tool-tile:hover { background: #1c2c27; } }

/* Learn hub topic filters (learn/filter.js): flat tone-step pills, the chosen
   one filled with the accent. The count line is the live status for screen readers. */
.learn-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 28px 0 10px; }
.learn-filter { font: inherit; font-size: 0.9rem; font-weight: 600; padding: 9px 16px; border: 0; border-radius: 999px; background: var(--bg-alt); color: var(--ink-soft); cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.learn-filter:hover { color: var(--ink); background: var(--accent-light); }
.learn-filter[aria-pressed="true"] { background: var(--accent); color: #fff; }
.learn-filter:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.learn-count { margin: 0 0 18px; font-size: var(--fs-meta); color: var(--ink-soft); }
.learn-card[hidden] { display: none; }
@media (prefers-color-scheme: dark) { .learn-filter { background: #172420; } .learn-filter:hover { background: #1c2c27; } }
@media (prefers-reduced-motion: reduce) { .learn-filter { transition: none; } }

/* Muscle strength check: each test is a number, a bar with the cut-off as a
   fixed tick at the midpoint, and a one-line verdict. Below the line turns amber. */
.strength-rows { display: grid; gap: 16px; margin-top: 14px; }
.sr-row { background: var(--accent-light); border-radius: 14px; padding: 16px 18px 14px; }
.sr-head { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.sr-track { position: relative; height: 12px; border-radius: 999px; background: var(--line); overflow: visible; }
.sr-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px; background: var(--accent); transition: width .35s cubic-bezier(.2,.8,.2,1); }
.sr-mark { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-left: -1px; background: var(--ink); }
.sr-timer-row { grid-column: 1 / -1; }
.sr-timer .calc-share-b { white-space: nowrap; }
.sr-timer { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.sr-timer-t { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.25rem; color: var(--ink); min-width: 4.5ch; }
.sr-timer.running .sr-timer-t { color: var(--accent-text-strong); }
.sr-timer.counting .sr-timer-t { color: #b7791f; }
.sr-verdict { margin: 10px 0 0; font-size: var(--fs-body); color: var(--ink); }
.sr-age { margin: 6px 0 0; font-size: 0.92rem; color: var(--ink-soft); }
.sr-age:empty { display: none; }
.sr-verdict.sr-low { color: #b7791f; font-weight: 600; }
.sr-row:has(.sr-low) .sr-fill { background: #b7791f; }
@media (prefers-color-scheme: dark) { .sr-verdict.sr-low { color: #e0a63c; } .sr-row:has(.sr-low) .sr-fill { background: #e0a63c; } }
@media (prefers-reduced-motion: reduce) { .sr-fill { transition: none; } }

/* Glossary: a letter jump row, then term and definition pairs on tone steps. */
.gl-jump { display: flex; flex-wrap: wrap; gap: 6px; max-width: 760px; margin: 0 auto 24px; }
.gl-jump a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; border-radius: 10px; background: var(--bg-alt); color: var(--accent-text-strong); font-weight: 650; text-decoration: none; }
.gl-jump a:hover { background: var(--accent-light); }
.gl-list { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.gl-term { background: var(--bg-alt); border-radius: 14px; padding: 16px 20px; scroll-margin-top: 80px; }
.gl-term:target { background: var(--accent-light); }
.gl-term dt { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; color: var(--ink); margin: 0 0 6px; }
.gl-term dd { margin: 0; color: var(--ink-soft); line-height: 1.6; }
.gl-term dd a { white-space: nowrap; font-weight: 600; }
@media (prefers-color-scheme: dark) { .gl-jump a, .gl-term { background: #172420; } .gl-term:target, .gl-jump a:hover { background: #1c2c27; } }

/* Homepage pricing comparison: what each of the three tiers includes. */
.price-compare { max-width: 760px; margin: 40px auto 0; text-align: left; }
.price-compare h3 { font-size: var(--fs-head); margin: 0 0 4px; }
.price-compare th small { font-weight: 600; color: var(--accent-text); font-size: 0.85rem; }
.price-compare tbody th { font-weight: 600; color: var(--ink); text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.price-compare td { text-align: center; }
.price-compare .pc-yes { color: var(--accent-text); font-weight: 650; }
.price-compare .pc-no { color: var(--ink-soft); }
.pf-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 0; }
.pf-filters .learn-filter { padding: 7px 13px; font-size: 0.85rem; }
.pf-row[hidden] { display: none; }
