/* Self-hosted variable fonts (SIL OFL 1.1, see assets/fonts/), Latin subset. No third-party requests. */
@font-face { font-family: "DM Sans"; font-style: normal; font-display: swap; font-weight: 100 1000; src: url("assets/fonts/dm-sans.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-display: swap; font-weight: 200 800; src: url("assets/fonts/manrope.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --paper: #f8f7f0;
  --white: #fdfdf7;
  --ink: #23372d;
  --green: #234b3b;
  --accent: #527455;
  --muted: #516056;
  --sage: #e9eee0;
  --line: #dbdfd2;
  --heading: Manrope, "Arial", sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.6 var(--body); }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-family: var(--heading); line-height: 1.1; letter-spacing: -.055em; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #8c5817; outline-offset: 4px; }
[hidden] { display: none !important; }
.shell { width: min(100% - 5rem, 1280px); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; padding: .5rem 1rem; background: white; z-index: 30; transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-block: .85rem;
}
html { scroll-padding-top: 6rem; }
.nav {
  min-height: 65px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .9rem;
  padding: .5rem .65rem .5rem 1.05rem;
  border: 1px solid #fff;
  border-radius: 2rem;
  background: #f4f6ed;
  box-shadow: 0 1px 2px #24443510, 0 10px 30px #24443518, inset 0 1px 1px #fff;
}
.wordmark { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; font: 800 clamp(1.15rem, 2.2vw, 1.48rem)/1 var(--heading); letter-spacing: -.065em; }
.wordmark span { margin-left: -.51rem; color: var(--accent); }
.nav-sections { display: flex; gap: clamp(.2rem, 1vw, .65rem); }
.nav-section { position: relative; }
.nav-section summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .52rem;
  min-height: 44px;
  padding-inline: .85rem;
  border-radius: 2rem;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
  transition: background .18s ease;
}
.nav-section summary::-webkit-details-marker { display: none; }
.nav-section summary:hover, .nav-section[open] summary { background: #dce9dbb3; }
.nav-chevron {
  width: .43rem;
  height: .43rem;
  border: solid var(--accent);
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-.11rem) rotate(45deg);
  transition: transform .18s ease;
}
.nav-section[open] .nav-chevron { transform: translateY(.11rem) rotate(225deg); }
.nav-dropdown {
  position: absolute;
  top: calc(100% + .65rem);
  left: 50%;
  z-index: 1;
  min-width: 15rem;
  max-height: min(60vh, 22rem);
  overflow: auto;
  transform: translateX(-50%);
  margin: 0;
  padding: .42rem;
  list-style: none;
  border: 1px solid #fff;
  border-radius: 1.15rem;
  background: #f7f9f1;
  box-shadow: 0 14px 36px #23372d29, inset 0 1px 1px #fff;
}
.nav-dropdown a {
  display: block;
  padding: .68rem .75rem;
  border-radius: .75rem;
  color: var(--ink);
  font-size: .94rem;
  font-weight: 600;
  text-decoration: none;
}
.nav-dropdown a:hover, .nav-dropdown a:focus-visible { background: #dce9db; }
.nav-dropdown a:focus-visible { outline-offset: -2px; }
.text-link:hover { color: #2b6b48; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav, .nav-dropdown {
    background: linear-gradient(145deg, #fffdf4ed, #eef5e9de);
    -webkit-backdrop-filter: blur(20px) saturate(145%);
    backdrop-filter: blur(20px) saturate(145%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .nav, .nav-dropdown {
    background: #f4f6ed;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .66rem 1.35rem; border: 1px solid var(--green); border-radius: 99rem; background: var(--green); color: #fff; font-weight: 700; text-decoration: none; text-align: center; line-height: 1.25; transition: background .18s ease, border-color .18s ease; }
.button:hover { background: #35664e; border-color: #35664e; }
.button-small { min-height: 43px; font-size: .91rem; padding: .55rem 1.05rem; }
.button-outline { background: transparent; color: var(--green); }
.button-outline:hover { background: #e2eadd; }
.text-link { font-weight: 700; color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 4px; }

.hero { display: grid; grid-template-columns: 1fr 1.045fr; align-items: center; gap: clamp(2rem, 5vw, 5rem); padding-block: clamp(2.8rem, 6vw, 5.75rem); }
.eyebrow { display: flex; align-items: center; gap: .55rem; color: var(--accent); font-size: .81rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em; line-height: 1.4; }
.eyebrow span { width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; flex: none; }
.hero h1 { font-size: clamp(3.5rem, 6.55vw, 6.1rem); line-height: .99; margin-block: 1.38rem 1.55rem; }
.hero h1 em { color: var(--accent); font: italic 400 1.07em/.9 Georgia, serif; white-space: nowrap; letter-spacing: -.077em; }
.hero-description { color: var(--muted); max-width: 43ch; font-size: clamp(1.02rem, 1.5vw, 1.16rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.45rem; margin-top: 1.9rem; }
.actions .text-link { font-size: .92rem; }
.hero-visual { isolation: isolate; position: relative; aspect-ratio: 1.21; min-width: 0; background: #a6b297; border-radius: 1.3rem; }
.hero-photo { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: center; border-radius: inherit; }
.hero-visual::after { position: absolute; content: ""; inset: 52% 0 0; background: linear-gradient(transparent, #13291c58); border-radius: inherit; pointer-events: none; }
.dashboard { position: absolute; z-index: 2; right: -.85rem; bottom: 2.2rem; width: clamp(12.2rem, 44%, 17rem); background: #fbfcf4; border: 1px solid #fff; box-shadow: 0 16px 42px #152f293f; border-radius: 1.2rem; padding: .95rem; }
.dash-top, .dash-bottom { display: flex; justify-content: space-between; align-items: center; gap: .4rem; }
.icon-tile { width: 2.75rem; height: 2.75rem; display: inline-grid; place-items: center; background: #e1ead9; border-radius: .8rem; color: var(--green); flex: none; }
.icon-tile svg, .phase-band svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.dash-top .icon-tile { width: 2rem; height: 2rem; border-radius: .55rem; }
.dash-top svg { width: 1.1rem; height: 1.1rem; }
.preview-label { color: var(--muted); font-size: .75rem; letter-spacing: .08em; font-weight: 700; }
.dash-title { margin-top: .55rem; font-weight: 700; font-size: .9rem; }
.metric { font: 800 clamp(1.65rem, 2.7vw, 2.65rem)/1.1 var(--heading); letter-spacing: -.06em; }
.metric span { font: 600 .86rem var(--body); letter-spacing: normal; color: var(--muted); }
.trend { display: block; width: 100%; height: 3.2rem; margin-block: .45rem .22rem; }
.dash-bottom { font-size: .75rem; font-weight: 700; color: var(--muted); line-height: 1.2; }
.dash-status { padding: .27rem .5rem; border-radius: 99rem; background: #e2eedb; color: #365a42; white-space: nowrap; }

.phase-band { background: #ecf0e4; border-block: 1px solid #e1e6d8; }
.phase-band-inner { min-height: 4.8rem; display: grid; grid-template-columns: repeat(3, 1fr); align-items: center; }
.phase-band-inner span { display: flex; align-items: center; justify-content: center; gap: .65rem; font-weight: 700; color: var(--green); font-size: .94rem; line-height: 1.35; }
.phase-band-inner span + span { border-left: 1px solid #d4dece; }
.phase-band svg { flex: none; }

.section { padding-block: clamp(3.6rem, 7vw, 6.9rem); }
.section h2, .maintenance h2, .signup h2 { font-size: clamp(2.45rem, 4.3vw, 4rem); margin-block: .68rem .9rem; }
.section-intro { display: grid; justify-items: center; text-align: center; margin-bottom: 2.45rem; }
.section-intro > p:last-child:not(.eyebrow) { color: var(--muted); }
.journey-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.2rem, 3.3vw, 3rem); max-width: 1080px; margin-inline: auto; }
.stage-list { display: grid; gap: .65rem; align-content: start; }
.stage { width: 100%; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.15rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: .85rem; text-align: left; }
.stage:hover { border-color: #8ea68e; }
.stage[aria-pressed="true"] { border-color: #638268; background: #e9efe2; }
.stage strong, .stage small { display: block; }
.stage strong { font-size: 1rem; }
.stage small { font-size: .88rem; color: var(--muted); }
.radio { display: grid; place-items: center; width: 1.1rem; height: 1.1rem; border: 1px solid #78917c; border-radius: 50%; flex: none; }
.stage[aria-pressed="true"] .radio::after { content: ""; width: .53rem; height: .53rem; border-radius: 50%; background: var(--green); }
.plan-panel { background: #edf1e6; border: 1px solid var(--line); border-radius: 1.05rem; padding: clamp(1.1rem, 3vw, 2.1rem); scroll-margin-top: 1rem; }
.plan-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .6rem; }
.plan-head h3 { font-size: clamp(1.55rem, 2.6vw, 2.2rem); margin-block: .4rem .65rem; }
#plan-description { color: var(--muted); }
.progress-row { margin-top: 1.05rem; display: flex; justify-content: space-between; gap: .5rem; font-size: .9rem; font-weight: 700; }
progress { width: 100%; height: .45rem; display: block; margin-block: .38rem .82rem; appearance: none; border: 0; border-radius: 1rem; background: #d7e0d3; color: var(--green); }
progress::-webkit-progress-bar { background: #d7e0d3; border-radius: 1rem; }
progress::-webkit-progress-value { background: var(--green); border-radius: 1rem; }
progress::-moz-progress-bar { background: var(--green); border-radius: 1rem; }
.checklist { margin-bottom: 1.1rem; }
.checklist label { display: flex; align-items: baseline; gap: .65rem; padding-block: .4rem; cursor: pointer; line-height: 1.45; }
.checklist input { accent-color: var(--green); width: 1.05rem; height: 1.05rem; flex: none; margin: 0; transform: translateY(.16rem); }
.maintenance { background: var(--green); color: #f9fcf2; }
.evidence { display: grid; align-items: center; grid-template-columns: 1fr .85fr; gap: clamp(1.7rem, 6vw, 6rem); padding-block: clamp(3.5rem, 7vw, 6.4rem); }
.evidence > div > p:last-child { max-width: 47ch; color: #e0e9df; }
.evidence .eyebrow, .signup .eyebrow { color: #c9dda7; }
.evidence-card { background: #e7eedd; color: var(--ink); border-radius: 1.2rem; padding: clamp(1.35rem, 3.5vw, 2.7rem); }
.stat { font: italic 400 clamp(2.85rem, 5vw, 4.6rem)/1 Georgia, serif; letter-spacing: -.07em; color: var(--green); margin-bottom: .7rem; }
.evidence-card a { display: inline-block; margin-top: .9rem; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-grid article { background: var(--white); border: 1px solid var(--line); padding: clamp(1.2rem, 2.6vw, 2.3rem); border-radius: 1.1rem; }
.feature-grid h3 { font-size: 1.55rem; margin-block: 1rem .65rem; letter-spacing: -.045em; }
.feature-grid p, .faq details p { color: var(--muted); }
.faq { border-top: 1px solid var(--line); display: grid; grid-template-columns: .62fr 1fr; gap: 2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 1rem 2rem 1rem 0; cursor: pointer; font-weight: 700; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; inset: .85rem 0 auto auto; font-size: 1.35rem; line-height: 1.4; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 1rem; }
.signup { background: #1f4436; color: #fff; text-align: center; padding-block: clamp(3rem, 6vw, 5.75rem); }
.signup-inner { display: grid; justify-items: center; }
.signup p { color: #e0eadf; }
.signup .actions { justify-content: center; margin-top: 1.1rem; }
.signup .text-link { color: #fff; }
.fine-print { font-size: .88rem; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding-block: 1.55rem; color: var(--muted); }
.footer > div { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.2rem; }
.footer .wordmark { color: var(--ink); }
.footer p, .copyright { font-size: .87rem; }
.footer p { max-width: 55ch; }
@media (max-width: 950px) {
  .shell { width: min(100% - 3rem, 1280px); }
  .hero { gap: 1.65rem; }
  .hero h1 { font-size: clamp(3rem, 7.2vw, 5.1rem); }
  .dashboard { right: -.5rem; bottom: 1.5rem; }
}
@media (max-width: 690px) {
  .shell { width: calc(100% - 2rem); }
  .hero, .journey-grid, .evidence, .feature-grid, .faq { grid-template-columns: 1fr; }
  .hero { padding-top: 2.5rem; gap: 1.7rem; }
  .hero h1 { font-size: clamp(3.05rem, 10.8vw, 5rem); margin-block: 1rem 1.15rem; }
  .actions { margin-top: 1.25rem; }
  .hero-visual { aspect-ratio: 1.16; }
  .dashboard { right: .65rem; bottom: .75rem; }
  .phase-band-inner { gap: .3rem; padding-block: .8rem; }
  .phase-band-inner span { flex-direction: column; align-self: stretch; justify-content: flex-start; text-align: center; gap: .35rem; padding-inline: .25rem; font-size: .82rem; }
  .faq { gap: .35rem; }
  .footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* Legal pages (privacy) */
.legal { max-width: 72ch; padding-block: 3.5rem 4.5rem; }
.legal h1 { font-size: clamp(2.3rem, 5vw, 3.4rem); margin-top: .9rem; }
.legal-date { color: var(--muted); margin-top: .7rem; font-size: .95rem; }
.legal h2 { font-size: 1.45rem; letter-spacing: -.03em; margin-top: 2.6rem; }
.legal h3 { font-size: 1.08rem; letter-spacing: -.02em; margin-top: 1.6rem; }
.legal p, .legal ul { margin-top: .7rem; }
.legal a { color: var(--green); text-underline-offset: .18em; }
.legal-summary { margin-top: 2rem; padding: 1.4rem 1.6rem; border-radius: 22px; background: var(--sage); }
.legal-summary h2 { margin-top: 0; font-size: 1.15rem; }
.legal-summary ul { padding-left: 1.2rem; }
.legal-summary li + li { margin-top: .35rem; }
.footer-link { font-size: .87rem; color: var(--muted); text-underline-offset: .18em; }

/* Resource pages and tools */
.library { max-width: 1080px; padding-block: 3.5rem 4.5rem; }
.library h1, .article h1 { font-size: clamp(2.25rem, 6vw, 4rem); margin-block: .85rem; text-wrap: balance; }
.library .page-deck, .article .page-deck { color: var(--muted); font-size: 1.15rem; max-width: 62ch; }
.library .journey-grid, .post-grid { margin-top: 2rem; }
.article .byline { color: var(--muted); font-size: .92rem; border-bottom: 1px solid var(--line); padding-bottom: 1rem; margin-block: 1rem 1.65rem; }
.article li + li { margin-top: .4rem; }
.article p, .article li { overflow-wrap: anywhere; }
.article .related, .library .related { margin-top: 1.8rem; padding: .9rem 1.15rem; border-left: 3px solid var(--accent); background: var(--sage); }
.related a, .resources a, .post-grid a { text-underline-offset: .18em; }
.resources article h3 { margin-top: 0; }
.post-grid h2 { font-size: 1.35rem; margin: 0 0 .65rem; }
.protein-form { margin-top: 1.6rem; }
.protein-form > label { font-weight: 700; }
.calculator-fields { display: flex; flex-wrap: wrap; gap: .6rem; margin-block: .4rem; }
.calculator-fields input, .calculator-fields select { background: var(--white); color: var(--ink); border: 1px solid #78917c; border-radius: .5rem; padding: .55rem .7rem; min-height: 44px; font: inherit; }
.calculator-fields input { width: 8rem; }
.protein-form button { margin-top: .85rem; }
.protein-form output:not(:empty) { display: block; margin-top: 1rem; font-size: 1.12rem; font-weight: 700; }
.store-badge { display: inline-block; margin: .7rem; }
.store-badge img { height: 44px; width: auto; }
@media (max-width: 690px) {
  html { scroll-padding-top: 8.5rem; }
  .header { padding-block: .5rem; }
  .nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .3rem .5rem;
    padding: .48rem .55rem;
    border-radius: 1.45rem;
  }
  .nav > .wordmark { margin-left: .3rem; }
  .nav > .wordmark img { width: 30px; height: 30px; }
  .nav-cta { grid-column: 2; grid-row: 1; }
  .nav-sections { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: .2rem; }
  .nav-section { position: static; }
  .nav-section summary { padding-inline: .3rem; }
  .nav-dropdown { top: calc(100% + .35rem); left: 0; right: 0; min-width: 0; transform: none; }
}

.signup .button { background: #dceabf; color: #203e2f; border-color: #dceabf; }
.signup .button:hover { background: #eef6df; }
