@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/assets/plus-jakarta-sans.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --brand: #0f766e;
  --brand-ink: #0b4f4a;
  --bg: #ffffff;
  --surface: #ffffff;
  --field: #f5f7f9;
  --ink: #111a2e;
  --muted: #4a5568;
  --line: #e4e8ee;
  --peach: #fdf1e6;
  --sky: #e4f1fc;
  --mint: #e5f7ea;
  --lilac: #eef0fc;
  --sand: #f7f5f1;
  --warn-bg: #fff4d6;
  --warn-ink: #6b4a00;
  --err-bg: #fde8e6;
  --err-ink: #8a1c13;
  --radius: 24px;
  --radius-sm: 14px;
  --max: 1120px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 18px/1.65 "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid var(--brand); outline-offset: 2px;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Header */
.site-header { background: var(--bg); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; min-height: 84px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 0; font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; padding: 8px 0; }
.logo::before { content: ""; margin-right: 10px; width: 30px; height: 30px; border-radius: 9px; background: var(--brand) url("/favicon.svg") center / cover; flex: none; }
.logo span { color: var(--brand); }
.nav { display: flex; gap: 6px 26px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav > a { color: var(--ink); text-decoration: none; font-size: 1rem; font-weight: 500; padding: 10px 0; }
.nav > a:hover { color: var(--brand); }

/* Dropdown menus (open on click; work without JavaScript) */
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; font-size: 1.05rem; font-weight: 600; color: var(--ink); padding: 12px 18px; border-radius: 999px; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; user-select: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .15s ease; }
.menu[open] summary { background: var(--lilac); }
.menu[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.menu summary:hover { background: var(--field); }
.menu-panel { position: absolute; z-index: 20; top: calc(100% + 10px); right: 0; width: min(640px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 40px 70px -30px rgba(17, 26, 46, .45); padding: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.menu-panel a { display: block; padding: 14px 16px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); }
.menu-panel a:hover, .menu-panel a:focus-visible { background: var(--field); }
.menu-panel strong { display: block; font-size: 1.08rem; font-weight: 700; }
.menu-panel span { display: block; color: var(--muted); font-size: 1rem; line-height: 1.4; margin-top: 2px; }
.menu-panel a:last-child { background: var(--mint); }
.menu-panel a:last-child strong::after { content: " →"; }
@media (prefers-reduced-motion: reduce) { .menu summary::after { transition: none; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--brand); color: #fff; border: 2px solid var(--brand); border-radius: 999px;
  padding: 14px 28px; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 52px;
  transition: background .15s ease, transform .15s ease;
}
.btn::after { content: "→"; font-weight: 500; }
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); }
.btn.small { padding: 10px 20px; font-size: 1rem; min-height: 46px; }
.nav a.btn { background: transparent; color: var(--ink); border-color: var(--ink); padding: 10px 20px; font-weight: 700; }
.nav a.btn:hover { background: var(--ink); color: #fff; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* Typography */
h1, h2, h3 { font-weight: 700; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.6vw, 3.9rem); line-height: 1.08; letter-spacing: -0.035em; margin: 0 0 18px; }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 16px; }
h3 { font-size: 1.3rem; line-height: 1.25; letter-spacing: -0.015em; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 60ch; }
.eyebrow { font-size: 1rem; font-weight: 700; color: var(--brand); margin-bottom: 14px; }
.muted { color: var(--muted); }
.small { font-size: 1rem; }
section { padding: 72px 0; }
section:first-child { padding-top: 40px; }
.crumbs { font-size: 1rem; color: var(--muted); padding-top: 6px; }
.crumbs a { color: var(--muted); }

/* Hero */
.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; gap: 44px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1fr 1.02fr; } .hero-grid > div:first-child { padding-top: 28px; } }
.trust { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 24px 0 0; list-style: none; font-size: 1rem; }
.trust li { background: var(--mint); color: var(--ink); border-radius: 999px; padding: 8px 16px; font-weight: 600; }
.trust li:nth-child(4n+2) { background: var(--sky); }
.trust li:nth-child(4n+3) { background: var(--peach); }
.trust li:nth-child(4n+4) { background: var(--lilac); }
.trust li::before { content: "✓ "; color: var(--brand); font-weight: 800; }

/* Calculator */
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 30px 60px -40px rgba(17, 26, 46, .35); }
.calc h2, .calc h3 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 8px; font-size: 1rem; padding: 0; }
.field .hint { font-weight: 500; color: var(--muted); font-size: 1rem; }
.input-row { display: flex; align-items: stretch; }
.input-row input { flex: 1; min-width: 0; }
.input-row .suffix { display: flex; align-items: center; padding: 0 16px; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--surface); color: var(--muted); font-size: 1rem; font-weight: 600; }
input[type="number"], input[type="email"], select {
  width: 100%; font: inherit; color: var(--ink); background: var(--field);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 16px; min-height: 54px;
}
input::placeholder { color: #6b7686; }
.input-row input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
fieldset { border: 0; padding: 0; margin: 0; }
.seg { display: inline-flex; gap: 6px; padding: 5px; border-radius: 999px; background: var(--field); border: 1px solid var(--line); }
.seg label { margin: 0; padding: 9px 26px; cursor: pointer; font-weight: 700; min-height: 46px; display: flex; align-items: center; border-radius: 999px; }
.seg input { position: absolute; opacity: 0; }
.seg span { font-size: 1rem; }
.seg input:checked + span { color: #fff; }
.seg label:has(input:checked) { background: var(--brand); }
.seg label:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.two { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .two { grid-template-columns: 1fr 1fr; } }
.calc .btn { width: 100%; margin-top: 6px; }

.messages { list-style: none; margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 1rem; }
.messages li + li { margin-top: 6px; }
.messages.errors { background: var(--err-bg); color: var(--err-ink); }
.messages.warnings { background: var(--warn-bg); color: var(--warn-ink); }

.result { margin-top: 22px; padding: 22px; border-radius: 20px; background: var(--mint); }
.result .big { font-size: clamp(2.8rem, 9vw, 3.8rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; color: var(--brand-ink); }
.result .big small { font-size: 1.1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.stats div { background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; }
.stats dt { font-size: 0.9rem; color: var(--muted); }
.stats dd { margin: 0; font-weight: 700; }
.syringe { margin: 16px 0; }
.syringe-track { height: 24px; border: 2px solid var(--ink); border-radius: 6px 14px 14px 6px; background:
  repeating-linear-gradient(90deg, #fff 0 calc(10% - 1px), #c9d0da calc(10% - 1px) 10%); overflow: hidden; }
.syringe-fill { height: 100%; width: 0; background: var(--brand); opacity: .8; transition: width .7s cubic-bezier(.2,.7,.2,1); }
.syringe-fill.over { background: var(--err-ink); }
@media (prefers-reduced-motion: reduce) { .syringe-fill { transition: none; } }
.formula { margin: 14px 0; padding: 14px 16px 14px 34px; background: var(--surface); border-radius: var(--radius-sm); font-size: 1rem; font-variant-numeric: tabular-nums; }
.notice { font-size: 1rem; color: var(--ink); background: var(--surface); border-radius: var(--radius-sm); padding: 12px 14px; margin: 14px 0; }
.cta-inline { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 1rem; }

/* Cards and grids */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--lilac); border-radius: var(--radius); padding: 28px; }
.grid > .card:nth-child(4n+1) { background: var(--peach); }
.grid > .card:nth-child(4n+2) { background: var(--sky); }
.grid > .card:nth-child(4n+3) { background: var(--mint); }
.grid > .card:nth-child(4n+4) { background: var(--lilac); }
.card h3 { color: var(--ink); }
.card p:last-child { margin-bottom: 0; }
a.card { color: var(--ink); text-decoration: none; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -28px rgba(17, 26, 46, .45); }
@media (prefers-reduced-motion: reduce) { a.card { transition: none; } a.card:hover { transform: none; } }
a.card .go { color: var(--brand-ink); font-weight: 700; font-size: 1rem; margin-top: auto; padding-top: 14px; }
.badge { display: inline-block; font-size: 0.95rem; font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--brand-ink); margin-bottom: 14px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.steps li { counter-increment: s; background: var(--peach); border-radius: var(--radius); padding: 28px; }
.steps li:nth-child(3n+2) { background: var(--sky); }
.steps li:nth-child(3n+3) { background: var(--mint); }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: 16px; }
.steps p:last-child { margin-bottom: 0; }

/* App preview */
.preview { display: grid; gap: 40px; grid-template-columns: 1fr; align-items: center; background: var(--peach); border-radius: 32px; padding: 40px 28px; }
@media (min-width: 900px) { .preview { grid-template-columns: 1fr 340px; padding: 64px; } }
.preview .card, .preview .grid > .card:nth-child(n) { background: var(--surface); }
.phone { border: 10px solid var(--ink); border-radius: 44px; padding: 26px 20px; background: var(--surface); max-width: 340px; box-shadow: 0 40px 60px -40px rgba(17, 26, 46, .6); }
.phone h3 { font-size: 1.3rem; }
.phone ul { list-style: none; padding: 0; margin: 0; }
.phone li { display: flex; gap: 12px; align-items: center; padding: 14px; margin-top: 10px; border-radius: var(--radius-sm); background: var(--field); font-size: 1rem; }
.phone li > div { font-size: 1rem; font-weight: 600; }
.phone .tick { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--brand); flex: none; }
.phone .tick.done { background: var(--brand); }
.phone .meta { color: var(--muted); font-size: 0.95rem; font-weight: 500; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); margin: 0 0 18px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
caption { text-align: left; padding: 14px 18px; color: var(--muted); font-size: 1rem; }
th, td { padding: 13px 18px; text-align: right; border-top: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; font-weight: 600; }
thead th { border-top: 0; font-size: 1rem; color: var(--ink); background: var(--lilac); font-weight: 700; }
tbody tr:nth-child(even) td { background: #fafbfc; }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; margin-bottom: 12px; background: var(--surface); }
.faq details[open] { background: var(--sand); border-color: transparent; }
.faq summary { font-weight: 700; cursor: pointer; padding: 18px 0; min-height: 56px; }
.faq p { margin: 0 0 18px; color: var(--muted); }
.prose { max-width: 70ch; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.92em; }
pre { background: var(--lilac); border-radius: 18px; padding: 20px 22px; overflow-x: auto; font-size: 0.95rem; }

/* Waitlist */
.waitlist-box { background: var(--mint); border-radius: 32px; padding: 40px 28px; max-width: none; }
@media (min-width: 900px) { .waitlist-box { padding: 64px; } }
.waitlist-box form { max-width: 620px; }
.waitlist-box input[type="email"] { background: var(--surface); }
.waitlist-row { display: flex; gap: 12px; flex-wrap: wrap; }
.waitlist-row input[type="email"] { flex: 1 1 240px; border-radius: 999px; padding-left: 22px; }
.radio-row { border: 0; padding: 0; margin: 14px 0 16px; display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-weight: 600; margin: 0; font-size: 1rem; }
.radio-row input { width: 20px; height: 20px; accent-color: var(--brand); }

/* Footer */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 56px 0 56px; margin-top: 40px; font-size: 1rem; color: var(--muted); }
.foot-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 28px; }
.foot-grid h2 { font-size: 1rem; letter-spacing: 0; color: var(--ink); margin-bottom: 10px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 8px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); text-decoration: underline; }
.disclaimer { border-top: 1px solid var(--line); padding-top: 22px; max-width: 80ch; }

/* Articles */
.article { max-width: 760px; }
.article h1 { font-size: clamp(2.1rem, 5vw, 3.2rem); }
.article h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 48px; }
.article h3 { margin-top: 28px; }
.article .byline { color: var(--muted); font-size: 1rem; margin-bottom: 24px; }
.article .calc { margin: 28px 0; }
.article ul, .article ol { padding-left: 24px; }
.article li { margin-bottom: 8px; }
.callout { background: var(--peach); border-radius: 20px; padding: 22px 24px; margin: 26px 0; }
.callout p:last-child { margin-bottom: 0; }
.sources { font-size: 1rem; color: var(--muted); }
.sources li { margin-bottom: 8px; overflow-wrap: anywhere; }
sup a { padding: 6px 5px; margin: 0 -2px; font-weight: 700; text-decoration: none; }
label, legend { font-size: 1rem; }

/* Phone layout */
@media (max-width: 720px) {
  section { padding: 52px 0; }
  .wrap { padding: 0 20px; }
  .site-header .wrap { position: relative; gap: 0 12px; padding-top: 8px; padding-bottom: 6px; min-height: 0; }
  .nav { width: 100%; margin-left: 0; gap: 0 4px; }
  .nav a.btn { position: absolute; top: 10px; right: 20px; }
  .menu { position: static; }
  .menu summary { padding: 10px 14px; }
  .menu-panel { left: 20px; right: 20px; top: auto; width: auto; grid-template-columns: 1fr; margin-top: 6px; max-height: 70vh; overflow-y: auto; }
  .calc { padding: 22px; }
  .card, .steps li { padding: 24px; }
}

/* Focus on form fields: a soft ring around the whole field instead of a clipped outline */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"]:focus-visible, input[type="email"]:focus-visible, select:focus-visible {
  outline: none; border-color: var(--brand); background: var(--surface);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 24%, transparent);
}
.input-row { border-radius: var(--radius-sm); transition: box-shadow .12s ease; }
.input-row:focus-within { box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 24%, transparent); }
.input-row:focus-within input, .input-row input:focus-visible { box-shadow: none; border-color: var(--brand); }
.input-row:focus-within .suffix { border-color: var(--brand); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .input-row { transition: none; } }

/* Article pages: calmer title, clearer byline and lead */
.article h1 { font-size: clamp(2rem, 4.2vw, 2.75rem); line-height: 1.14; letter-spacing: -0.03em; margin-bottom: 16px; }
.article .byline { display: inline-block; background: var(--sand); color: var(--muted); border-radius: 999px; padding: 6px 16px; margin-bottom: 26px; }
.article .lead { color: var(--ink); font-size: 1.22rem; line-height: 1.6; max-width: none; }
.article h2 { padding-top: 6px; }

/* Syringe size: three visible choices instead of a dropdown */
.seg-wide { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; border-radius: 20px; }
.seg-wide label { justify-content: center; text-align: center; padding: 10px 8px; border-radius: 15px; min-height: 60px; }
.seg-wide span { display: block; line-height: 1.25; }
.seg-wide small { display: block; font-size: 0.9rem; font-weight: 500; color: var(--muted); }
.seg-wide input:checked + span small { color: #fff; opacity: .9; }
/* Remaining dropdowns: light list and a custom arrow */
select { appearance: none; -webkit-appearance: none; color-scheme: light; padding-right: 46px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23111a2e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; }
/* A calculator inside an article keeps its own compact heading */
.article .calc h2, .article .calc h3 { margin-top: 0; padding-top: 0; }

/* Keep results inside the screen on narrow phones */
.hero-grid > *, .calc, .result { min-width: 0; }
.stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats dd, .formula, .messages { overflow-wrap: anywhere; }
@media (max-width: 400px) { .stats { grid-template-columns: 1fr 1fr; } .result { padding: 18px; } }

/* Result panel: number first, syringe picture next, details after, one quiet link at the end */
.result { padding: 26px; }
.result-label { font-size: 0.95rem; font-weight: 700; color: var(--brand-ink); margin: 0 0 4px; }
.result .big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.result .big small { font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.syringe { margin: 18px 0 20px; }
.syringe-track { --tick: 10%; height: 30px; border: 2px solid var(--ink); border-radius: 8px 16px 16px 8px; background:
  repeating-linear-gradient(90deg, #fff 0 calc(var(--tick) - 2px), #aeb8c6 calc(var(--tick) - 2px) var(--tick)); }
.syringe-fill { opacity: .85; border-right: 3px solid var(--brand-ink); min-width: 3px; }
.syringe-scale { display: flex; justify-content: space-between; font-size: 0.95rem; font-weight: 600; color: var(--muted); margin-top: 6px; }
.syringe-label { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 8px 0 0; }
.stats { grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); margin: 0 0 20px; }
.stats div { padding: 14px 16px; }
.stats dt { font-size: 0.95rem; }
.stats dd { font-size: 1.15rem; }
.result .messages.warnings { margin: 0 0 18px; font-weight: 600; }
.result-heading { font-weight: 700; margin: 0 0 8px; }
.formula { padding: 16px 18px 16px 46px; margin: 0 0 16px; }
.formula li { padding-left: 4px; }
.formula li + li { margin-top: 6px; }
.notice { background: transparent; border-left: 3px solid var(--brand); border-radius: 0; padding: 2px 0 2px 14px; margin: 0 0 20px; color: var(--muted); }
.cta-inline { border-top: 1px solid color-mix(in srgb, var(--brand) 22%, transparent); padding-top: 18px; margin: 0; justify-content: space-between; }
.cta-inline span { font-weight: 600; }
.btn.ghost, .calc .btn.ghost { width: auto; margin: 0; background: var(--surface); color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 400px) { .stats { grid-template-columns: 1fr 1fr; } .result { padding: 20px; } }

/* Result details as rows: label left, value right; never wraps awkwardly */
.stats, .result .stats { display: block; background: var(--surface); border-radius: var(--radius-sm); padding: 4px 18px; margin: 0 0 20px; }
.stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; background: transparent; border-radius: 0; padding: 12px 0; }
.stats div + div { border-top: 1px solid var(--line); }
.stats dt { font-size: 1rem; color: var(--muted); }
.stats dd { font-size: 1.1rem; font-weight: 700; text-align: right; white-space: nowrap; }

/* Diagrams */
.diagram { margin: 28px 0; background: var(--sand); border-radius: 24px; padding: 22px; }
.diagram svg { display: block; width: 100%; height: auto; max-width: 420px; margin: 0 auto; font-family: inherit; }
.diagram figcaption { font-size: 1rem; line-height: 1.5; color: var(--ink); opacity: 0.8; margin-top: 14px; text-align: center; }
@media (max-width: 480px) { .diagram { padding: 14px 10px; border-radius: 18px; } }

/* Motion. Everything here is skipped when the device asks for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes vm-rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

  /* Calculator result */
  .result.reveal { animation: vm-rise-in .35s ease-out both; }

  /* Header menus */
  .menu[open] .menu-panel { animation: vm-rise-in .18s ease-out both; }

  /* Diagrams: parts start hidden only when JavaScript is running, so nothing is lost without it */
  .js .diagram .dg-item { opacity: 0; transform: translateY(8px); transition: opacity .45s ease-out, transform .45s ease-out; transition-delay: calc(var(--i, 0) * 160ms + 100ms); }
  .js .diagram.in-view .dg-item { opacity: 1; transform: none; }
  .js .diagram .dg-fill { transform: scaleX(0); transform-box: fill-box; transform-origin: left center; transition: transform 1s cubic-bezier(.2,.7,.2,1) .35s; }
  .js .diagram.in-view .dg-fill { transform: none; }
  .js .diagram .dg-rise { transform: scaleY(0); transform-box: fill-box; transform-origin: center bottom; transition: transform 1s cubic-bezier(.2,.7,.2,1) .25s; }
  .js .diagram.in-view .dg-rise { transform: none; }

  @keyframes vm-flow { to { stroke-dashoffset: -16; } }
  .js .diagram.in-view .dg-flow { animation: vm-flow .8s linear 1.1s 4; }
  @keyframes vm-roll { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
  .js .diagram .dg-roll { transform-box: fill-box; transform-origin: center; }
  .js .diagram.in-view .dg-roll { animation: vm-roll 1.2s ease-in-out 1.4s 2; }
}

/* Accessibility helpers */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.table-wrap:focus-visible, pre:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Header button on narrow phones: a shorter label so it never covers the logo */
.cta-short { display: none; }
@media (max-width: 480px) {
  .nav a.btn .cta-full { display: none; }
  .nav a.btn .cta-short { display: inline; }
  .nav a.btn { padding: 8px 16px; min-height: 44px; }
}
@media (max-width: 350px) {
  .nav a.btn { padding: 8px 12px; }
  .nav a.btn::after { display: none; }
  .logo { font-size: 1.3rem; }
}

/* Quick-fill buttons under a calculator field */
.picks { margin: 24px 0 12px; }
.picks p { margin: 0 0 10px; }
.pick { min-height: 46px; padding: 9px 18px; margin: 0 8px 8px 0; border-radius: 999px; border: 1px solid var(--line); background: var(--field); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.pick[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
/* Tables with four short columns: tighter cells so they fit a 360px phone */
.table-wrap.tight th, .table-wrap.tight td { padding: 13px 8px; }
.table-wrap.tight th:first-child, .table-wrap.tight td:first-child { padding-left: 18px; }
.field .picks { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.field .pick { min-height: 44px; padding: 8px 13px; margin: 0; }
.pick-note { margin: 6px 0 0; font-size: 0.95rem; color: var(--muted); }
.live-note { margin: 12px 0 0; }
[data-compare] { margin: 0 0 20px; }
[data-compare] .table-wrap { margin: 0 0 8px; }
[data-compare] tr.yours th, [data-compare] tr.yours td { font-weight: 700; background: var(--surface); }
[data-compare] th, [data-compare] td { white-space: normal; text-align: left; }
[data-compare] .table-wrap.tight th:first-child, [data-compare] .table-wrap.tight td:first-child { padding-left: 12px; }
/* Tables with longer text cells: let the text wrap instead of scrolling sideways */
.table-wrap.wrap th, .table-wrap.wrap td { white-space: normal; }
.table-wrap.wrap th, .table-wrap.wrap td { text-align: left; }
/* "Everything on <peptide>" box at the foot of every peptide page */
.peptide-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px 24px; margin: 8px 0 32px; }
.peptide-box h2 { font-size: 1.25rem; margin: 0 0 12px; }
.peptide-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.peptide-box a, .peptide-box span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; }
.peptide-box a:hover { background: var(--field); }
.peptide-box span[aria-current] { background: var(--mint); border-color: transparent; }
/* Three menus must fit one row on a phone */
@media (max-width: 480px) { .nav { gap: 0; } .menu summary { padding: 10px 9px; font-size: 1rem; gap: 6px; } }
