/* Primer — component styles (mobile-first) */

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
::selection { background: var(--sage-tint2); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.serif { font-family: var(--serif); font-weight: 400; }
.em { font-style: italic; color: var(--sage-deep); }
.kicker { font-size: 12px; letter-spacing: .15em; text-transform: uppercase; color: var(--sage-deep); font-weight: 700; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-weight: 600; font-size: 16px; line-height: 1;
  border: none; border-radius: 100px; padding: 16px 26px; cursor: pointer;
  white-space: nowrap; text-decoration: none; transition: transform .15s ease, background .18s ease, box-shadow .18s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--sage); color: #fff; box-shadow: 0 1px 2px rgba(67,57,44,.12); }
.btn-primary:hover { background: var(--sage-deep); box-shadow: 0 8px 22px rgba(90,103,73,.28); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink-soft); background: rgba(67,57,44,.03); }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn:disabled:hover { background: var(--sage); box-shadow: none; }

.tlink { font-weight: 600; border-bottom: 2px solid var(--sage-2); padding-bottom: 2px; cursor: pointer; }
.tlink:hover { border-color: var(--sage-deep); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid var(--line-soft); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: baseline; gap: 8px; cursor: pointer; }
.brand .mark { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.brand .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); transform: translateY(-3px); }
.nav-links { display: none; gap: 30px; font-size: 15px; color: var(--ink-soft); }
.nav-links span { cursor: pointer; }
.nav-links span:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav .btn { padding: 11px 18px; font-size: 14.5px; }
.nav-menu { display: inline-flex; width: 40px; height: 40px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; align-items: center; justify-content: center; cursor: pointer; }
.nav-menu i, .nav-menu i::before, .nav-menu i::after { content: ""; display: block; width: 17px; height: 2px; background: var(--ink); position: relative; }
.nav-menu i::before { position: absolute; top: -5px; } .nav-menu i::after { position: absolute; top: 5px; }
@media (min-width: 860px) { .nav-links { display: flex; } .nav-menu { display: none; } }

/* ---------- photo placeholder ---------- */
.photo { background-color: var(--oat);
  background-image: repeating-linear-gradient(135deg, transparent 0 16px, rgba(67,57,44,.04) 16px 32px);
  display: flex; align-items: flex-end; border-radius: var(--radius-lg); position: relative; overflow: hidden; }
.photo .cap { font-family: ui-monospace, monospace; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); padding: 14px 16px; }

/* ============ HERO ============ */
.hero { padding: 40px 0 26px; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 11vw, 58px); line-height: 1.0;
  letter-spacing: -.025em; margin: 16px 0 0; text-wrap: balance; }
.hero .sub { font-size: clamp(17px, 4.4vw, 20px); line-height: 1.5; color: var(--ink-soft); margin: 18px 0 0; max-width: 30ch; }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; margin: 28px 0 0; }
.hero-photo { position: relative; }
.hero-photo .photo { aspect-ratio: 4/5; }
.hero-tag { position: absolute; left: 14px; bottom: 14px; background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 13px 16px; box-shadow: var(--shadow); max-width: 215px; }
.hero-tag b { font-family: var(--serif); font-weight: 500; font-size: 21px; color: var(--sage-deep); display: block; line-height: 1.05; }
.hero-tag span { font-size: 12.5px; color: var(--muted); display: block; margin-top: 5px; }
@media (min-width: 860px) {
  .hero { padding: 64px 0 40px; }
  .hero-grid { grid-template-columns: 1.06fr .94fr; gap: 56px; }
  .hero h1 { font-size: clamp(54px, 5.4vw, 72px); margin-top: 22px; }
  .hero .cta { margin-top: 38px; }
  .hero-photo .photo { aspect-ratio: 5/6; min-height: 500px; }
  .hero-tag { left: -22px; bottom: 46px; padding: 15px 18px; }
  .hero-tag b { font-size: 25px; }
}
.trustrow { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-soft); }
.ti { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); }
.tick { flex: 0 0 auto; width: 17px; height: 17px; border-radius: 50%; background: var(--sage-tint); display: grid; place-items: center; }
.tick::after { content: ""; width: 5px; height: 8px; border: solid var(--sage-deep); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-1px); }

/* ============ PLAIN ENGLISH ============ */
.plain { padding: 50px 0; border-top: 1px solid var(--line-soft); }
.plain-head { max-width: 720px; }
.plain-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 7vw, 44px); line-height: 1.04; letter-spacing: -.02em; margin: 12px 0 0; text-wrap: balance; }
.plain-def { font-size: clamp(18px, 4.6vw, 22px); line-height: 1.5; color: var(--ink-soft); margin: 20px 0 0; max-width: 40ch; }
.plain-def b { color: var(--ink); font-weight: 600; }
.facts { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 34px; }
.fact { background: var(--paper); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 24px; }
.fact .n { font-family: ui-monospace, monospace; font-size: 12px; color: var(--faint); letter-spacing: .1em; }
.fact h3 { font-family: var(--serif); font-weight: 500; font-size: 23px; margin: 12px 0 0; }
.fact p { font-size: 15.5px; line-height: 1.5; color: var(--muted); margin: 8px 0 0; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* ============ JOURNEY ============ */
.journey { padding: 54px 0 56px; border-top: 1px solid var(--line-soft); background: var(--paper); }
.journey-head { text-align: center; max-width: 640px; margin: 0 auto; }
.journey-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 7vw, 46px); line-height: 1.04; letter-spacing: -.02em; margin: 12px 0 0; text-wrap: balance; }
.journey-head p { font-size: 16.5px; line-height: 1.55; color: var(--muted); margin: 14px 0 0; }
.stairs { margin: 40px auto 0; max-width: 880px; display: flex; flex-direction: column; gap: 12px; }
.step { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 16px; border-radius: var(--radius);
  padding: 20px 22px; border: 1px solid var(--line); width: 100%; transition: transform .2s ease; }
.step:hover { transform: translateX(4px); }
.step .n { font-family: var(--serif); font-size: 16px; color: var(--muted); }
.step .t { font-family: var(--serif); font-size: clamp(20px, 5vw, 24px); color: var(--ink); }
.step .d { font-size: 14px; color: var(--muted); margin-top: 3px; line-height: 1.4; }
.step .pill { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 6px 12px; border-radius: 100px; white-space: nowrap; }
.step.s1 { background: var(--sage-tint); border-color: var(--sage-tint2); }
.step.s2 { background: var(--cream-deep); }
.step.s3 { background: var(--cream); }
.step.s4 { background: transparent; border-style: dashed; border-color: var(--clay); }
.step.s1 .pill { background: var(--sage); color: #fff; }
.step.s2 .pill, .step.s3 .pill { background: var(--oat); color: var(--ink-soft); }
.step.s4 .pill { background: var(--clay-tint); color: var(--clay-deep); }
@media (min-width: 760px) {
  .step.s1 { width: 100%; } .step.s2 { width: 94%; align-self: center; }
  .step.s3 { width: 86%; align-self: center; } .step.s4 { width: 76%; align-self: center; }
  .step { padding: 24px 28px; }
}

/* ============ ASSESS CTA BAND ============ */
.band { padding: 0 0 64px; }
.band-card { background: var(--choco); color: var(--cream); border-radius: var(--radius-lg); padding: 40px 26px;
  text-align: center; position: relative; overflow: hidden; }
.band-card .kicker { color: var(--sage-2); }
.band-card h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 6.6vw, 42px); line-height: 1.06; letter-spacing: -.02em; margin: 12px auto 0; max-width: 16ch; text-wrap: balance; }
.band-card p { font-size: 16px; color: rgba(246,241,231,.72); margin: 14px auto 0; max-width: 42ch; }
.band-card .btn { margin-top: 26px; }
.band-card .btn-primary { background: var(--sage-2); color: var(--choco); }
.band-card .btn-primary:hover { background: #fff; }
@media (min-width: 760px) { .band-card { padding: 56px 40px; } }

/* ============ FOOTER ============ */
.foot { background: var(--cream-deep); border-top: 1px solid var(--line); padding: 44px 0 36px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 22px; justify-content: space-between; align-items: flex-start; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14.5px; color: var(--ink-soft); }
.foot-nav span { cursor: pointer; } .foot-nav span:hover { color: var(--ink); }
.disclaimer { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.6; color: var(--muted); max-width: 70ch; }
.disclaimer b { color: var(--ink-soft); }
.foot-meta { margin-top: 18px; font-size: 12.5px; color: var(--faint); }

/* ============ ASSESSMENT ============ */
.assess { position: fixed; inset: 0; z-index: 100; background: var(--cream); display: flex; flex-direction: column; }
.assess-top { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-bottom: 1px solid var(--line-soft); }
.assess-top .brand { flex: 0 0 auto; }
.assess-close { margin-left: auto; width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: transparent; cursor: pointer; font-size: 18px; color: var(--ink-soft); display: grid; place-items: center; }
.assess-close:hover { background: rgba(67,57,44,.04); }
.progress { flex: 1; max-width: 520px; height: 7px; border-radius: 100px; background: var(--oat); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--sage); border-radius: 100px; transition: width .45s cubic-bezier(.3,.8,.3,1); }
.assess-body { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.qwrap { flex: 1; width: 100%; max-width: 620px; margin: 0 auto; padding: 32px 22px 28px; display: flex; flex-direction: column; }
.qstep { font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sage-deep); font-weight: 700; }
.qtitle { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 7vw, 40px); line-height: 1.08; letter-spacing: -.02em; margin: 12px 0 0; text-wrap: balance; }
.qhint { font-size: 16px; color: var(--muted); margin: 12px 0 0; }
.opts { display: flex; flex-direction: column; gap: 11px; margin: 28px 0 0; }
.opt { display: flex; align-items: center; gap: 14px; text-align: left; padding: 18px 20px; border-radius: var(--radius);
  border: 1.5px solid var(--line); background: var(--paper); cursor: pointer; font-size: 16.5px; color: var(--ink);
  transition: border-color .15s, background .15s, transform .12s; width: 100%; }
.opt:hover { border-color: var(--sage-2); }
.opt:active { transform: scale(.992); }
.opt.sel { border-color: var(--sage); background: var(--sage-tint); }
.opt .dotmark { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: border-color .15s, background .15s; }
.opt.sel .dotmark { border-color: var(--sage); background: var(--sage); }
.opt.sel .dotmark::after { content: ""; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-1px); }
.opt .box { border-radius: 7px; } .opt.sel .box { border-radius: 7px; }
.opt .lab { flex: 1; } .opt .lab b { display: block; font-weight: 600; }
.opt .lab small { display: block; font-size: 13.5px; color: var(--muted); margin-top: 2px; font-weight: 400; }
.chips { display: flex; flex-wrap: wrap; gap: 11px; margin: 26px 0 0; }
.chip { font-size: 15.5px; font-weight: 500; padding: 13px 19px; border-radius: 100px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; transition: all .14s; }
.chip:hover { border-color: var(--sage-2); }
.chip.sel { background: var(--sage); border-color: var(--sage); color: #fff; }
.qnav { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 30px; }
.qback { background: transparent; border: none; color: var(--muted); font-size: 15px; font-weight: 600; cursor: pointer; padding: 10px 4px; }
.qback:hover { color: var(--ink); }
.qnav .spacer { flex: 1; }

/* step transition — transform-only so content is never hidden if a
   capture/reduced-motion environment freezes the animation at frame 0 */
.qcard { animation: qin .5s cubic-bezier(.22,.8,.3,1); }
@keyframes qin { from { transform: translateY(16px); } to { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .qcard { animation: none; } }

/* ============ VERDICT ============ */
.verdict { width: 100%; max-width: 760px; margin: 0 auto; padding: 30px 22px 60px; }
.verdict .vhead { text-align: center; }
.vlabel { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; padding: 7px 14px; border-radius: 100px; }
.vlabel.foundations { background: var(--sage-tint); color: var(--sage-deep); }
.vlabel.ready { background: var(--clay-tint); color: var(--clay-deep); }
.verdict h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(29px, 6.4vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 18px auto 0; max-width: 16ch; text-wrap: balance; }
.verdict .vsub { font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin: 14px auto 0; max-width: 48ch; }

.score-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; margin: 30px 0 0; box-shadow: var(--shadow); }
.score-top { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ring { position: relative; width: 150px; height: 150px; flex: 0 0 auto; }
.ring svg { transform: rotate(-90deg); }
.ring .rn { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring .rn b { font-family: var(--serif); font-size: 46px; line-height: 1; font-weight: 500; }
.ring .rn span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.score-blurb { text-align: center; }
.score-blurb h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0; }
.score-blurb p { font-size: 15px; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
@media (min-width: 620px) { .score-top { flex-direction: row; align-items: center; gap: 32px; } .score-blurb { text-align: left; } }

.pillars { margin-top: 26px; display: flex; flex-direction: column; gap: 16px; }
.pillar .pl-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pillar .pl-name { font-size: 15px; font-weight: 600; }
.pillar .pl-tag { font-size: 12.5px; font-weight: 600; }
.pillar .pl-tag.gap { color: var(--clay-deep); }
.pillar .pl-tag.ok { color: var(--sage-deep); }
.pl-bar { height: 12px; border-radius: 100px; background: var(--oat); overflow: hidden; }
.pl-bar i { display: block; height: 100%; border-radius: 100px; transition: width .8s cubic-bezier(.3,.8,.3,1); }
.pl-bar i.ok { background: var(--sage); } .pl-bar i.gap { background: var(--clay); }

.fixlist { margin-top: 30px; }
.fixlist h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 0 0 4px; }
.fix { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.fix .fi { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; background: var(--sage-tint); color: var(--sage-deep); display: grid; place-items: center; font-family: var(--serif); font-size: 17px; }
.fix .fc b { display: block; font-size: 16px; font-weight: 600; }
.fix .fc p { font-size: 14.5px; color: var(--muted); margin: 4px 0 0; line-height: 1.5; }

/* peptide preview / components */
.pep-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: var(--paper); margin-top: 14px; }
.pep-top { display: flex; align-items: center; gap: 14px; }
.grade { flex: 0 0 auto; width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 22px; color: #fff; }
.grade.a { background: var(--sage-deep); } .grade.b { background: var(--sage); } .grade.c { background: #B89A55; }
.grade.d { background: var(--clay); } .grade.f { background: var(--clay-deep); }
.pep-name b { font-family: var(--serif); font-weight: 500; font-size: 19px; display: block; }
.pep-name span { font-size: 13px; color: var(--muted); }
.pep-flags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.flag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 100px; }
.flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; }
.flag.low { background: var(--sage-tint); color: var(--sage-deep); } .flag.low::before { background: var(--sage); }
.flag.mod { background: #F1E7CF; color: #8A6D2B; } .flag.mod::before { background: #C7A24E; }
.flag.high { background: var(--clay-tint); color: var(--clay-deep); } .flag.high::before { background: var(--clay); }
.legal { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 100px; background: var(--cream-deep); color: var(--ink-soft); border: 1px solid var(--line); margin-top: 14px; }
.legal::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--clay); }

.prescriber { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; justify-content: space-between;
  background: var(--sage-tint); border: 1px solid var(--sage-tint2); border-radius: var(--radius); padding: 18px 20px; }
.prescriber .pt b { font-family: var(--serif); font-weight: 500; font-size: 17px; display: block; }
.prescriber .pt span { font-size: 13.5px; color: var(--ink-soft); }

.vactions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cite { font-size: 12.5px; color: var(--faint); margin-top: 24px; line-height: 1.6; }
.cite b { color: var(--muted); }
