/* Peptide Education - premium design system (light, charcoal accents) */

:root {
  --bg: #FFFFFF;
  --bg-subtle: #FAFAFA;
  --bg-muted: #F4F4F5;
  --line: #E9E9EC;
  --line-2: #DCDCE0;
  --ink: #0A0A0B;
  --ink-2: #52525B;
  --ink-3: #71717A;
  --accent: #2563EB;
  --accent-600: #1D4ED8;
  --accent-50: #F1F6FF;
  --accent-100: #DCE8FE;
  --accent-200: #BFD4FD;
  --char: #0B0B0D;
  --char-2: #131316;
  --char-line: rgba(255, 255, 255, .09);
  --char-ink: #A1A1AA;

  /* legacy aliases */
  --white: #FFFFFF; --surface: var(--bg-subtle); --blue: var(--accent); --blue-600: var(--accent-600);
  --blue-300: #93B4FB; --navy: var(--char);

  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --r-sm: 8px; --r: 10px; --r-lg: 14px; --r-xl: 20px;
  --sh-1: 0 1px 2px rgba(10, 10, 11, .04), 0 1px 1px rgba(10, 10, 11, .02);
  --sh-2: 0 1px 2px rgba(10, 10, 11, .04), 0 8px 24px -6px rgba(10, 10, 11, .10), 0 20px 48px -18px rgba(10, 10, 11, .12);
  --sh-3: 0 2px 4px rgba(10, 10, 11, .04), 0 16px 40px -8px rgba(10, 10, 11, .16);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --wrap: 1180px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); line-height: 1.65; font-size: 16px;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
}
::selection { background: var(--accent-100); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.025em; font-weight: 700; color: inherit; }
p { margin: 0; }
img, svg { max-width: 100%; }
svg { display: block; }
a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-600); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 32px; }
.wrap.narrow { max-width: 780px; }
.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus {
  position: fixed; top: 12px; left: 12px; z-index: 300; background: var(--bg); color: var(--ink);
  padding: 10px 16px; border-radius: var(--r); box-shadow: var(--sh-3); border: 1px solid var(--line);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ico, .tico, .sico, .bico, .faq-ico { display: inline-flex; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  min-height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid transparent;
  font: inherit; font-size: 14.5px; font-weight: 600; letter-spacing: -0.005em; cursor: pointer; white-space: nowrap;
  transition: background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn:active { transform: translateY(1px); }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 15.5px; border-radius: 11px; }
.btn-primary {
  background: var(--ink); color: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .12);
}
.btn-primary:hover { background: #26262B; color: #fff; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line-2); box-shadow: var(--sh-1); }
.btn-ghost:hover { color: var(--ink); border-color: #C4C4CA; background: var(--bg-subtle); }
.band-dark .btn-primary, .promo .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.band-dark .btn-primary:hover, .promo .btn-primary:hover { background: #E9E9EC; color: var(--ink); }
.band-dark .btn-ghost { background: transparent; color: #fff; border-color: var(--char-line); box-shadow: none; }
.band-dark .btn-ghost:hover { background: rgba(255,255,255,.06); color: #fff; }

/* ------------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.is-scrolled, .nav:focus-within { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(10, 10, 11, .04); background: rgba(255,255,255,.88); }
.nav-in {
  max-width: var(--wrap); margin: 0 auto; padding: 0 32px; height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: none; }
.brand:hover { color: var(--ink); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 1px 2px rgba(0,0,0,.2);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-text { display: flex; gap: 5px; line-height: 1; }
.brand-text b { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; text-transform: lowercase; }
.brand-text b:first-letter { text-transform: uppercase; }
.brand-text b + b { color: var(--ink-3); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-links > a, .nav-trigger {
  display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 12px; border-radius: 8px;
  color: var(--ink-2); font: inherit; font-weight: 500; font-size: 14.5px; letter-spacing: -0.005em;
  background: transparent; border: 0; cursor: pointer; transition: color .15s ease, background .15s ease;
}
.nav-links > a:hover, .nav-trigger:hover, .nav-dd.is-open .nav-trigger { color: var(--ink); background: var(--bg-muted); }
.nav-links > a.on, .nav-trigger.on { color: var(--ink); }
.nav-trigger svg { width: 14px; height: 14px; transform: rotate(90deg); transition: transform .2s var(--ease); opacity: .6; }
.nav-dd { position: relative; }
.nav-dd.is-open .nav-trigger svg { transform: rotate(-90deg); }
.nav-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; width: 340px; padding: 8px;
  background: rgba(255,255,255,.98); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3);
  opacity: 0; visibility: hidden; transform: translate(-50%, -6px) scale(.98); transform-origin: top center;
  transition: opacity .18s ease, transform .22s var(--ease), visibility 0s linear .22s;
}
.nav-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.nav-dd.is-open .nav-menu {
  opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s;
}
@media (hover: hover) and (min-width: 961px) {
  .nav-dd:hover .nav-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0) scale(1); transition-delay: 0s; }
  .nav-dd:hover .nav-trigger { color: var(--ink); background: var(--bg-muted); }
  .nav-dd:hover .nav-trigger svg { transform: rotate(-90deg); }
}
.nav-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.nav-item:hover { background: var(--bg-subtle); color: var(--ink); }
.nav-item.on { background: var(--accent-50); }
.nav-item-ico {
  flex: none; width: 34px; height: 34px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); background: var(--bg); color: var(--ink-2); box-shadow: var(--sh-1);
  transition: color .15s ease, border-color .15s ease;
}
.nav-item:hover .nav-item-ico { color: var(--accent); border-color: var(--accent-200); }
.nav-item-ico svg { width: 17px; height: 17px; }
.nav-item-t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.nav-item-t b { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.nav-item-t em { font-style: normal; font-size: 13px; color: var(--ink-3); line-height: 1.4; }

.nav-right { display: flex; align-items: center; gap: 8px; flex: none; }
.nav-search {
  display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
  color: var(--ink-2); border-radius: 8px; border: 1px solid transparent;
}
.nav-search svg { width: 18px; height: 18px; }
.nav-search:hover { color: var(--ink); background: var(--bg-muted); }
.nav-cta { min-height: 36px; font-size: 14px; padding: 0 14px; border-radius: 8px; }
.nav-burger {
  display: none; width: 38px; height: 38px; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); cursor: pointer;
}
.nav-burger svg { width: 20px; height: 20px; }
.mobile-nav { display: none; flex-direction: column; padding: 8px 24px 22px; border-top: 1px solid var(--line); background: var(--bg); }
.mobile-nav .mnav-h { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding: 16px 4px 6px; }
.mobile-nav a { color: var(--ink); padding: 12px 4px; font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-nav a.btn { margin-top: 16px; border-bottom: 0; color: #fff; }

/* ------------------------------------------------------- shared backdrops */
.hero, .subhero, .ahero, .dhero {
  position: relative; overflow: hidden; background: var(--bg); color: var(--ink);
  isolation: isolate;
}
.hero::before, .subhero::before, .ahero::before, .dhero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(10,10,11,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,10,11,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
}
.hero::after, .subhero::after, .ahero::after, .dhero::after {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 520px; right: -180px; top: -260px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(37, 99, 235, .14), rgba(124, 58, 237, .06) 55%, transparent);
  filter: blur(10px);
}

/* ------------------------------------------------------------------ hero */
.hero { border-bottom: 1px solid var(--line); }
.hero-in {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; align-items: center; padding-block: 96px 88px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-2); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-100); }
.hero .eyebrow, .subhero .eyebrow {
  padding: 5px 12px 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.8);
  box-shadow: var(--sh-1); font-size: 11.5px;
}
.eyebrow-dark { color: var(--ink-2); }
.hero h1 { font-size: clamp(44px, 6.2vw, 76px); font-weight: 750; letter-spacing: -0.045em; line-height: 1.02; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #1D4ED8 0%, #2563EB 35%, #7C3AED 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 26px; font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 540px; }
.hero-btns { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 6%; border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.7), rgba(255,255,255,.2));
  border: 1px solid var(--line); box-shadow: var(--sh-2); z-index: 0;
}
.hero-art { position: relative; z-index: 1; width: 100%; max-width: 640px; height: auto; }
.hero-art > circle { opacity: .45; }
.hero-art text { fill: var(--ink-2); font-family: var(--mono); font-size: 11px; letter-spacing: .04em; }
.hero-art line { stroke: #A9BDE8; }

/* ---------------------------------------------------------- trust strips */
.trust { border-top: 1px solid var(--line); background: var(--bg-subtle); }
.trust-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 22px; }
.trust-item, .dinfo-item { display: flex; align-items: center; gap: 12px; }
.tico {
  width: 38px; height: 38px; flex: none; border-radius: 10px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line); box-shadow: var(--sh-1);
  align-items: center; justify-content: center;
}
.tico svg { width: 18px; height: 18px; }
.trust-item b, .dinfo-item b { display: block; font-size: 14px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.trust-item em, .dinfo-item em { display: block; font-style: normal; font-size: 13px; color: var(--ink-3); }

/* ----------------------------------------------------------------- bands */
.band { padding-block: 104px; background: var(--bg); }
.band + .band:not(.band-dark):not(.band-tight) { border-top: 1px solid var(--line); }
.band-tight { padding-top: 0; }
.band-dark {
  background: var(--char); color: #fff; position: relative; overflow: hidden; isolation: isolate;
}
.band-dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 80% at 50% 0%, #000 20%, transparent 75%);
}
.band-dark::after {
  content: ""; position: absolute; z-index: -1; left: 50%; top: -1px; width: 60%; height: 1px; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(147,180,251,.6), transparent);
}
.band-dark .eyebrow { color: var(--char-ink); }
.band-dark .eyebrow::before { box-shadow: 0 0 0 3px rgba(37,99,235,.3); background: #6E9BFF; }
.band-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.band-head h2, .mission h2, .promo h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.035em; }
.viewall {
  display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14.5px; color: var(--ink);
  padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--bg); box-shadow: var(--sh-1);
}
.viewall:hover { color: var(--ink); background: var(--bg-subtle); }
.viewall svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.viewall:hover svg { transform: translateX(2px); }

.sec-h { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.035em; font-weight: 700; }
.sec-sub { margin-top: 14px; color: var(--ink-2); max-width: 640px; font-size: 17.5px; line-height: 1.6; }
.sec-sub-dark { color: var(--char-ink); max-width: 760px; }
.band .sec-h + .grid, .band .sec-sub + .grid { margin-top: 48px; }

.grid { display: grid; gap: 20px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ------------------------------------------------------------- cards */
.pcard, .acard, .xcard, .bcard, .linklist li, .kf, .faq, .stat {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.pcard, .acard, .xcard {
  position: relative; color: var(--ink);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s ease;
}
.pcard:hover, .acard:hover, .xcard:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); color: var(--ink); }

.pcard { display: flex; flex-direction: column; overflow: hidden; }
.pcard-art { display: block; border-bottom: 1px solid var(--line); background: var(--char); }
.pcard-art img { width: 100%; height: 148px; object-fit: cover; display: block; }
.pcard-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 22px 20px; flex: 1; }
.pcard-name { font-size: 18px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.25; }
.pcard-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 500;
  background: var(--bg-muted); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; line-height: 1.5;
}
.badge-status { background: var(--accent-50); color: var(--accent-600); border-color: var(--accent-100); }
.badge-cat {
  align-self: flex-start; font-family: var(--mono); text-transform: uppercase; letter-spacing: .05em; font-size: 10.5px;
  background: var(--accent-50); color: var(--accent-600); border-color: var(--accent-100);
}
.pcard-desc { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; flex: 1; }
.pcard-more {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; font-size: 14px;
  margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line);
}
.pcard-more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); color: var(--accent); }
.pcard:hover .pcard-more svg, .xcard:hover .pcard-more svg { transform: translateX(3px); }

/* ----------------------------------------------------------------- promo */
.promo {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
  background: var(--char); color: #fff; border-radius: 24px; overflow: hidden;
  padding: 64px; position: relative; isolation: isolate; border: 1px solid #1E1E22;
  box-shadow: 0 30px 80px -30px rgba(10, 10, 11, .45);
}
.promo::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 80% at 85% 40%, rgba(37, 99, 235, .35), transparent 70%),
    radial-gradient(40% 60% at 100% 100%, rgba(124, 58, 237, .25), transparent 70%);
}
.promo::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
}
.promo-copy { position: relative; }
.promo-copy p { margin: 20px 0 32px; color: var(--char-ink); max-width: 460px; font-size: 17px; }
.promo-art { position: relative; }
.promo-art svg, .mission-art svg { width: 100%; height: auto; }
.promo-art svg > rect, .mission-art svg > rect, .subhero-bg svg > rect { fill: transparent; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 30px; }
.stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.sico { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--bg-muted); color: var(--ink); align-items: center; justify-content: center; border: 1px solid var(--line); }
.sico svg { width: 20px; height: 20px; }
.stat b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.stat em { font-style: normal; font-size: 13.5px; color: var(--ink-2); display: block; line-height: 1.35; }
.stat div, .stat-t { min-width: 0; }

/* --------------------------------------------------------------- subhero */
.subhero { border-bottom: 1px solid var(--line); }
.subhero-bg {
  position: absolute; inset: 0; z-index: -1; opacity: .22; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 85%);
  mask-image: linear-gradient(90deg, transparent 35%, #000 85%);
}
.subhero-bg svg { width: 100%; height: 100%; }
.subhero-in { position: relative; z-index: 1; padding-block: 88px 72px; max-width: 860px; }
.subhero h1 { font-size: clamp(38px, 5vw, 60px); letter-spacing: -0.04em; font-weight: 750; }
.subhero-sub { margin-top: 18px; color: var(--ink-2); font-size: 18px; max-width: 680px; line-height: 1.6; }
.subhero-sm .subhero-in { padding-block: 76px 60px; }

.search {
  position: relative; display: flex; align-items: center; gap: 12px; margin-top: 34px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 0 18px;
  min-height: 56px; max-width: 640px; box-shadow: var(--sh-2); transition: border-color .15s ease, box-shadow .15s ease;
}
.search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-100), var(--sh-2); }
.search .sicon { color: var(--ink-3); display: inline-flex; }
.search .sicon svg { width: 19px; height: 19px; }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: var(--ink-3); }

/* --------------------------------------------------------------- filters */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.pill {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg);
  font: inherit; font-size: 13.5px; font-weight: 500; color: var(--ink-2); cursor: pointer; box-shadow: var(--sh-1);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pill:hover { border-color: var(--line-2); color: var(--ink); background: var(--bg-subtle); }
.pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.count { font-size: 13.5px; color: var(--ink-3); margin-bottom: 24px; font-family: var(--mono); letter-spacing: .01em; }
.empty { text-align: center; padding: 64px 0; color: var(--ink-3); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }

.mission { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.mission p { margin: 18px 0 30px; color: var(--char-ink); font-size: 17px; max-width: 560px; }

/* ---------------------------------------------------------- detail pages */
.dhero { border-bottom: 1px solid var(--line); }
.dhero-in { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; padding-block: 64px 40px; }
.crumbs { font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumbs a { color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 500; }
.dhero h1 { font-size: clamp(36px, 5vw, 56px); font-weight: 750; letter-spacing: -0.04em; }
.dhero-aka { margin-top: 10px; color: var(--ink-3); font-size: 15px; }
.dhero-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.dhero-sum { margin-top: 20px; font-size: 17.5px; color: var(--ink-2); max-width: 620px; }
.dhero-art img { width: 100%; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--sh-2); }
.dinfo {
  position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  padding: 18px; margin-bottom: 40px; background: var(--bg-subtle);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}

.tabs {
  position: sticky; top: var(--nav-h); z-index: 90;
  background: rgba(255,255,255,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.tabs-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.tabs-in::-webkit-scrollbar { display: none; }
.tabs a {
  padding: 7px 12px; color: var(--ink-3); font-weight: 500; font-size: 14px; white-space: nowrap; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.tabs a:hover { color: var(--ink); background: var(--bg-muted); }
.tabs a.on { color: var(--ink); background: var(--bg-muted); box-shadow: inset 0 0 0 1px var(--line); }

.dbody { padding-block: 56px 88px; }
.dsec { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; margin-bottom: 56px; scroll-margin-top: 130px; }
.dsec-full { display: block; }
.dsec h2 { font-size: 30px; margin-bottom: 18px; letter-spacing: -0.03em; }
.h2-note { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.dsec h3 { font-size: 17px; margin-bottom: 10px; letter-spacing: -0.015em; }
.lead { font-size: 17px; color: var(--ink-2); margin-bottom: 18px; }
.sub { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.sub > * + * { margin-top: 12px; }
.sub p, .prose p { color: #3F3F46; }
.bullets { margin: 0; padding-left: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; color: #3F3F46; }
.bullets li { position: relative; padding-left: 22px; }
.bullets li::before {
  content: ""; position: absolute; left: 4px; top: .68em; width: 6px; height: 6px; border-radius: 2px;
  background: var(--accent); opacity: .85;
}
.callout {
  position: relative; background: var(--bg-subtle); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px 16px 20px; font-size: 15px; color: #3F3F46; overflow: hidden;
}
.callout::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.callout strong { color: var(--ink); }
.callout-amber { background: #FFFBF2; border-color: #F5E6C8; color: #6B4A16; }
.callout-amber::before { background: #F59E0B; }
.callout-amber strong { color: #5A3C0E; }
.note-line { color: var(--ink-2); font-size: 15px; margin-bottom: 16px; }
.cap { font-size: 13px; color: var(--ink-3); margin-top: 8px; }
.muted { color: var(--ink-3); }

.kf { padding: 24px; position: sticky; top: 140px; }
.kf h3 { font-size: 13px; margin-bottom: 14px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.kf dl { margin: 0; }
.kf-row { display: grid; gap: 3px; padding: 12px 0; border-top: 1px solid var(--line); }
.kf-row:first-child { border-top: 0; padding-top: 0; }
.kf dt { font-size: 12.5px; color: var(--ink-3); }
.kf dd { margin: 0; font-size: 14.5px; font-weight: 550; line-height: 1.45; }

.bgrid { gap: 16px; margin-bottom: 8px; grid-template-columns: repeat(auto-fit, minmax(226px, 1fr)); }
.bcard { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.bico, .xcard-art, .rung-ico {
  width: 40px; height: 40px; flex: none; border-radius: 10px; align-items: center; justify-content: center;
  background: var(--bg); color: var(--ink); border: 1px solid var(--line); box-shadow: var(--sh-1);
}
.bico svg { width: 19px; height: 19px; }
.bcard h3 { font-size: 15.5px; margin: 0; line-height: 1.35; }
.bcard p { font-size: 14px; color: var(--ink-2); line-height: 1.6; flex: 1; }
.level { align-self: flex-start; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 6px; border: 1px solid transparent; }
.level-established { background: #ECFDF3; color: #067647; border-color: #CFF5DE; }
.level-clinical-trials { background: var(--accent-50); color: var(--accent-600); border-color: var(--accent-100); }
.level-early-human-data { background: #FFFAEB; color: #93370D; border-color: #FDEBC6; }
.level-preliminary { background: var(--bg-muted); color: var(--ink-2); border-color: var(--line); }

.tscroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); background: var(--bg); }
.dtable { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; background: var(--bg); }
.dtable th {
  text-align: left; background: var(--bg-subtle); color: var(--ink-3); font-size: 12px; font-weight: 500;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.dtable td { padding: 13px 16px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.55; color: #3F3F46; }
.dtable tbody tr:first-child td { border-top: 0; }
.dtable tbody tr { transition: background .15s ease; }
.dtable tbody tr:hover { background: var(--bg-subtle); }

.se-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.se { border-radius: var(--r-lg); padding: 22px 24px; border: 1px solid var(--line); background: var(--bg); box-shadow: var(--sh-1); position: relative; overflow: hidden; }
.se::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; }
.se h3 { font-size: 15.5px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.se h3::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.se ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; line-height: 1.55; color: #3F3F46; }
.se-red::before, .se-red h3::before { background: #F04438; }
.se-amber::before, .se-amber h3::before { background: #F59E0B; }

.refs { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; }
.faqs { display: flex; flex-direction: column; gap: 10px; }
.faq { overflow: hidden; transition: border-color .15s ease, box-shadow .2s ease; }
.faq:hover { border-color: var(--line-2); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: transparent; border: 0; font: inherit; font-weight: 600; font-size: 15.5px; color: var(--ink);
  padding: 18px 20px; cursor: pointer; text-align: left; min-height: 58px; letter-spacing: -0.01em;
}
.faq-ico {
  color: var(--ink-2); transition: transform .25s var(--ease); flex: none; width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--line); align-items: center; justify-content: center;
}
.faq-ico svg { width: 15px; height: 15px; }
.faq-q[aria-expanded="true"] .faq-ico { transform: rotate(45deg); color: var(--ink); }
.faq-a { padding: 0 20px 20px; font-size: 15px; color: #3F3F46; animation: pe-fade .3s var(--ease); }
.faq-a > * + * { margin-top: 10px; }
.disclaimer {
  margin-top: 16px; padding: 16px 18px; background: var(--bg-subtle); border: 1px solid var(--line);
  border-radius: var(--r); font-size: 13.5px; color: var(--ink-3); line-height: 1.6;
}

/* ---------------------------------------------------------------- prose */
.prose { font-size: 16.5px; line-height: 1.75; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: 28px; margin-top: 52px; letter-spacing: -0.03em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; margin-top: 32px; }
.prose a:not(.btn) { text-decoration: underline; text-decoration-color: var(--accent-200); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.prose a:not(.btn):hover { text-decoration-color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 650; }
.linklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.linklist li { padding: 18px 20px; transition: border-color .15s ease, box-shadow .2s ease; }
.linklist li:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.prose .linklist a { font-weight: 600; text-decoration: none; color: var(--ink); }
.prose .linklist a::after { content: " \2197"; color: var(--accent); font-weight: 500; }
.linklist span { display: block; font-size: 14.5px; color: var(--ink-2); margin-top: 4px; line-height: 1.55; }
.math-formula {
  margin-top: 20px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--bg-subtle); font-family: var(--mono); font-size: 14px; color: var(--ink-2);
}
.math-formula strong { font-family: var(--sans); }

/* --------------------------------------------------------------- footer */
.foot { background: var(--bg-subtle); color: var(--ink-2); padding-block: 72px 40px; border-top: 1px solid var(--line); }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line);
}
.foot-brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.foot-about p { margin-top: 16px; font-size: 14px; color: var(--ink-3); max-width: 320px; line-height: 1.6; }
.fcol h3 { font-size: 12px; color: var(--ink); margin-bottom: 16px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.fcol ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.fcol a { color: var(--ink-3); font-size: 14px; }
.fcol a:hover { color: var(--ink); }
.foot-social { list-style: none; display: flex; gap: 8px; margin: 20px 0 0; padding: 0; }
.foot-social a {
  width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg);
  display: flex; align-items: center; justify-content: center; color: var(--ink-3); box-shadow: var(--sh-1);
}
.foot-social a:hover { color: var(--ink); border-color: var(--line-2); }
.foot-social svg { width: 16px; height: 16px; }
.foot-legal { padding-top: 28px; font-size: 13px; line-height: 1.65; color: var(--ink-3); }
.foot-legal p { max-width: 820px; }
.foot-legal p + p { margin-top: 8px; }
.foot-copy { color: var(--ink-3); font-family: var(--mono); font-size: 12px; }

/* ================= homepage ================= */
.xgrid { gap: 16px; }
.xcard { display: flex; flex-direction: column; gap: 18px; padding: 26px; }
.xcard-art { position: relative; display: inline-flex; overflow: hidden; width: 44px; height: 44px; border-radius: 11px; }
.xcard-art > svg { display: none; }
.xcard-ico { display: flex; align-items: center; justify-content: center; color: var(--ink); transition: color .2s ease; }
.xcard-ico svg { width: 21px; height: 21px; }
.xcard:hover .xcard-ico { color: var(--accent); }
.xcard-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; flex: 1; }
.xcard-t { font-size: 17px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.3; }
.xcard-d { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; flex: 1; }
.xcard .pcard-more { border-top: 0; padding-top: 4px; }

/* Evidence ladder */
.ladder {
  list-style: none; margin: 56px 0 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
}
.ladder::before {
  content: ""; position: absolute; left: 10%; right: 10%; top: 46px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(147,180,251,.45), rgba(167,139,250,.45), transparent);
}
.rung {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 24px 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid var(--char-line); border-radius: var(--r-lg);
  transition: border-color .2s ease, background .2s ease, transform .3s var(--ease);
}
.rung:hover { border-color: rgba(255,255,255,.18); transform: translateY(-2px); }
.rung-ico { background: var(--char-2); color: #fff; border-color: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); display: inline-flex; }
.rung:last-child .rung-ico { background: var(--accent); border-color: var(--accent); }
.rung-ico svg { width: 19px; height: 19px; }
.rung-n { font-size: 15px; font-weight: 600; color: #fff; line-height: 1.35; letter-spacing: -0.01em; }
.rung-d { font-size: 13.5px; color: var(--char-ink); line-height: 1.6; }

/* Article cards */
.acard { display: flex; flex-direction: column; overflow: hidden; }
.acard-art { background: var(--char); display: block; }
.acard-art img { width: 100%; height: 160px; object-fit: cover; display: block; }
.acard-body { display: flex; flex-direction: column; gap: 10px; padding: 24px; flex: 1; }
.acard-title { font-size: 18px; font-weight: 650; line-height: 1.35; letter-spacing: -0.02em; }
.acard-ex { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; flex: 1; }
.acard-meta {
  font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line);
}
.acard-go { margin-left: auto; color: var(--ink); display: inline-flex; }
.acard-go svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.acard:hover .acard-go { color: var(--accent); }
.acard:hover .acard-go svg { transform: translateX(3px); }
.acard-row { flex-direction: row; }
.acard-row .acard-art { flex: none; width: 190px; }
.acard-row .acard-art img { height: 100%; min-height: 150px; }

/* ================= resources index ================= */
.res-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 48px; align-items: start; }
.res-side { position: sticky; top: calc(var(--nav-h) + 28px); display: flex; flex-direction: column; gap: 28px; }
.side-search {
  display: flex; align-items: center; gap: 8px; background: var(--bg); box-shadow: var(--sh-1);
  border: 1px solid var(--line-2); border-radius: var(--r); padding: 4px 4px 4px 14px; min-height: 44px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.side-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-100); }
.side-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 14.5px; color: var(--ink); }
.side-search-btn {
  flex: none; width: 34px; height: 34px; border: 0; border-radius: 7px; background: var(--ink);
  color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.side-search-btn svg { width: 16px; height: 16px; }
.side-group h2 { font-size: 12px; margin-bottom: 10px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); padding-left: 10px; }
.catlist, .typelist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.catbtn {
  width: 100%; display: flex; justify-content: space-between; gap: 10px; align-items: center;
  background: transparent; border: 0; border-radius: var(--r-sm); padding: 8px 10px;
  font: inherit; font-size: 14.5px; color: var(--ink-2); cursor: pointer; text-align: left; transition: background .15s ease, color .15s ease;
}
.catbtn span { color: var(--ink-3); font-size: 12px; flex: none; font-family: var(--mono); }
.catbtn:hover { background: var(--bg-muted); color: var(--ink); }
.catbtn.on { background: var(--bg-muted); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }
.chk { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-sm); cursor: pointer; font-size: 14.5px; color: var(--ink-2); position: relative; }
.chk:hover { background: var(--bg-muted); color: var(--ink); }
.chk input { position: absolute; opacity: 0; width: 0; height: 0; }
.chk-box {
  flex: none; width: 17px; height: 17px; border: 1px solid var(--line-2); border-radius: 5px;
  background: var(--bg); display: flex; align-items: center; justify-content: center; color: transparent; box-shadow: var(--sh-1);
  transition: background .15s ease, border-color .15s ease;
}
.chk-box svg { width: 11px; height: 11px; }
.chk input:checked + .chk-box { background: var(--ink); border-color: var(--ink); color: #fff; }
.chk input:focus-visible + .chk-box { outline: 2px solid var(--accent); outline-offset: 2px; }
.chk-t { flex: 1; min-width: 0; }
.chk-n { color: var(--ink-3); font-size: 12px; font-family: var(--mono); }

.res-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.res-head h2 { font-size: 26px; letter-spacing: -0.03em; }
.sortwrap select {
  font: inherit; font-size: 14px; color: var(--ink); background: var(--bg); box-shadow: var(--sh-1);
  border: 1px solid var(--line-2); border-radius: 9px; padding: 8px 12px; cursor: pointer; min-height: 38px;
}
.res-main .count { margin: 10px 0 20px; }
.alist { display: flex; flex-direction: column; gap: 14px; }

.pager { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.pager button {
  min-width: 38px; min-height: 38px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: 14px;
  color: var(--ink-2); cursor: pointer; box-shadow: var(--sh-1); transition: background .15s ease, color .15s ease;
}
.pager button:hover:not(:disabled) { color: var(--ink); background: var(--bg-subtle); }
.pager button.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.pager button:disabled { opacity: .4; cursor: default; }
.pager .gap { align-self: center; color: var(--ink-3); padding: 0 4px; }

/* Newsletter */
.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.signup h2 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -0.03em; }
.signup p { color: var(--char-ink); margin-top: 10px; }
.signup-form { display: flex; gap: 8px; flex-wrap: wrap; position: relative; }
.signup-form input {
  flex: 1; min-width: 220px; min-height: 46px; padding: 0 16px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.05); color: #fff; font: inherit; font-size: 15px;
  transition: border-color .15s ease, background .15s ease;
}
.signup-form input:focus { outline: 0; border-color: rgba(147,180,251,.7); background: rgba(255,255,255,.08); }
.signup-form input::placeholder { color: #71717A; }
.signup-form .btn { min-height: 46px; }
.signup-note { flex-basis: 100%; font-size: 13.5px; color: #93B4FB; margin: 0; }

/* ================= article page ================= */
.ahero { border-bottom: 1px solid var(--line); }
.ahero-in { position: relative; padding-block: 72px 56px; max-width: 840px; }
.ahero h1 { font-size: clamp(34px, 4.6vw, 54px); margin-top: 18px; letter-spacing: -0.04em; font-weight: 750; line-height: 1.08; }
.ahero-ex { margin-top: 18px; color: var(--ink-2); font-size: 18.5px; line-height: 1.6; }
.ahero-meta {
  margin-top: 22px; color: var(--ink-3); font-size: 12.5px; font-family: var(--mono);
  display: inline-flex; flex-wrap: wrap; padding: 6px 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.8);
}
.abody { padding-block: 64px 16px; }
.abody .prose h2 { font-size: 26px; margin-top: 48px; }
.abody .prose .bullets, .abody .prose .tscroll, .abody .prose .callout { margin-top: 16px; }
.abody .disclaimer { margin-top: 40px; }

/* compound guide */
.pa-figure { margin: 0 0 30px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; box-shadow: var(--sh-1); }
.pa-figure img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; background: var(--char); }
.pa-figure figcaption { padding: 12px 18px; color: var(--ink-3); font-size: 13.5px; font-weight: 500; }
.prose .refs { padding-left: 22px; color: var(--ink-3); font-size: 14px; line-height: 1.6; }
.prose .refs li + li { margin-top: 10px; }
.prose .refs a { font-weight: 600; white-space: nowrap; }
.prose .faq-q { margin-top: 28px; font-size: 18px; padding: 0; min-height: 0; display: block; }
.prose .faq-q + * { margin-top: 8px; }
.no-art .pcard-art { display: none; }

/* ================= legacy math block ================= */
.math-calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; box-shadow: var(--sh-1); }
.math-field { display: grid; gap: 8px; }
.math-field label { font-weight: 600; }
.math-input-wrap { display: flex; align-items: center; min-height: 50px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; }
.math-input-wrap:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-100); }
.math-calc input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.math-input-wrap > span { padding: 0 14px; color: var(--ink-3); font-weight: 600; }
.math-output { grid-column: 1 / -1; padding: 28px; border: 1px solid var(--accent-100); border-radius: var(--r-lg); background: var(--accent-50); }
.math-result { margin-top: 18px; color: var(--ink); font-size: clamp(32px, 7vw, 56px); font-weight: 750; letter-spacing: -.04em; line-height: 1.08; }
.math-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ================= peptide calculator ================= */
.pc {
  --pc-blue: #2563EB; --pc-blue-600: #1D4ED8; --pc-blue-50: #F1F6FF; --pc-blue-100: #DCE8FE;
  display: grid; gap: 16px; margin-top: 28px; padding: 16px; border-radius: 22px;
  background: var(--bg-subtle); border: 1px solid var(--line);
}
.pc-card, .pc-result, .pc-details {
  padding: clamp(20px, 4vw, 30px); border: 1px solid var(--line); border-radius: 16px; background: var(--bg); box-shadow: var(--sh-1);
}
.pc-heading { display: flex; align-items: center; gap: 12px; margin: 0; font-size: clamp(17px, 2.4vw, 19px); letter-spacing: -0.02em; font-weight: 650; }
.pc-num {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 8px;
  background: var(--ink); color: #fff; font-family: var(--mono); font-size: 12.5px; font-weight: 500; letter-spacing: 0;
}
.pc-sub { margin: 6px 0 0 40px; color: var(--ink-3); font-size: 14px; }
.pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; margin-top: 26px; }
.pc-field { display: grid; gap: 8px; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.pc-field > label, .pc-sizes legend { padding: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.pc-sizes legend { margin-bottom: 8px; }
.pc-row { display: flex; gap: 8px; align-items: stretch; }
.pc-input {
  display: flex; flex: 1; align-items: center; min-width: 0; min-height: 54px; border: 1px solid var(--line-2);
  border-radius: 11px; background: var(--bg); box-shadow: var(--sh-1); transition: border-color .15s ease, box-shadow .15s ease;
}
.pc-input:hover { border-color: #C4C4CA; }
.pc-input:focus-within { border-color: var(--pc-blue); box-shadow: 0 0 0 4px var(--accent-100); }
.pc-input.is-invalid { border-color: #F04438; box-shadow: 0 0 0 4px rgba(240, 68, 56, .12); }
.pc-input input { width: 100%; min-width: 0; padding: 12px 16px; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.pc-input input::placeholder { color: #A1A1AA; font-weight: 400; }
.pc-input > span { padding-right: 16px; color: var(--ink-3); font-size: 13px; font-weight: 500; font-family: var(--mono); }
.pc-hint { color: var(--ink-3); font-size: 13.5px; }
.pc-error { color: #B42318; font-size: 13.5px; font-weight: 600; }
.pc-units { display: flex; flex: none; padding: 4px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-muted); }
.pc-unit { min-width: 56px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink-3); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.pc-unit:hover { color: var(--ink); }
.pc-unit.is-active { background: var(--bg); color: var(--ink); box-shadow: 0 1px 2px rgba(10,10,11,.08), 0 0 0 1px var(--line); }
.pc-unit:focus-visible, .pc-how summary:focus-visible { outline: 2px solid var(--pc-blue); outline-offset: 2px; }
.pc-size-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pc-size {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-height: 64px; padding: 10px 6px;
  border: 1px solid var(--line-2); border-radius: 11px; background: var(--bg); text-align: center; cursor: pointer; box-shadow: var(--sh-1);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.pc-size:hover { border-color: #C4C4CA; }
.pc-size input { position: absolute; opacity: 0; pointer-events: none; }
.pc-size-ml { color: var(--ink); font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.pc-size-u { color: var(--ink-3); font-size: 12px; font-weight: 500; font-family: var(--mono); }
.pc-size:has(input:checked) { border-color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1px var(--ink), var(--sh-1); }
.pc-size:has(input:focus-visible) { box-shadow: 0 0 0 4px var(--accent-100); }

.pc-result {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid #1E1E22; background: var(--char); color: #fff; box-shadow: 0 24px 60px -24px rgba(10,10,11,.5);
}
.pc-result::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 90% at 50% 0%, rgba(37,99,235,.35), transparent 70%),
    linear-gradient(to right, rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: auto, 40px 40px, 40px 40px;
}
.pc-result .pc-heading { color: #fff; }
.pc-result .pc-num { background: #fff; color: var(--ink); }
.pc-result-body { display: grid; justify-items: center; margin-top: 18px; text-align: center; }
.pc-eyebrow { color: var(--char-ink); font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.pc-big { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 12px; margin-top: 12px; color: #fff; line-height: 1; }
.pc-big-num {
  font-size: clamp(72px, 18vw, 136px); font-weight: 750; letter-spacing: -.05em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere;
  background: linear-gradient(180deg, #FFFFFF 30%, #A9C2FB); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.pc-big-word { font-size: clamp(20px, 3.5vw, 28px); font-weight: 600; letter-spacing: .04em; color: var(--char-ink); }
.pc-approx { font-size: clamp(36px, 7vw, 52px); font-weight: 600; color: var(--char-ink); }
.pc-big.is-empty .pc-big-num { background: none; color: #3F3F46; }
.pc-volume { margin-top: 18px; color: #fff; font-size: clamp(17px, 2.4vw, 20px); font-weight: 600; letter-spacing: -0.01em; }
.pc-small { margin-top: 6px; color: var(--char-ink); font-size: 14px; }
.pc-warnings { display: grid; gap: 10px; }
.pc-warnings:not(:empty) { margin-top: 22px; }
.pc-warning { padding: 14px 16px 14px 44px; border: 1px solid #FCD34D; border-radius: var(--r); background: #FFFBEB url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='%23F59E0B' d='M10 1.5a1.5 1.5 0 0 1 1.3.75l7.5 13A1.5 1.5 0 0 1 17.5 17.5h-15a1.5 1.5 0 0 1-1.3-2.25l7.5-13A1.5 1.5 0 0 1 10 1.5Zm0 5a1 1 0 0 0-1 1v4a1 1 0 1 0 2 0v-4a1 1 0 0 0-1-1Zm0 8.75a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5Z'/%3E%3C/svg%3E") no-repeat 15px 15px / 20px; color: #78350F; font-size: 14px; text-align: left; }
.pc-warning strong { display: block; margin-bottom: 2px; }

.pc-frame { width: 100%; margin-top: 20px; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-subtle), #fff); }
.pc-frame svg { display: block; width: 100%; font-family: var(--sans); user-select: none; }
.pc-frame text { font-variant-numeric: tabular-nums; }
.pc-move { transition: transform .5s cubic-bezier(.22, 1, .36, 1); }
.pc-caption { margin-top: 12px; color: var(--ink-3); font-size: 13.5px; }
.pc-caption.is-over { color: #B45309; font-weight: 600; }

.pc-details { padding: 20px; }
.pc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; }
.pc-stats > div { padding: 14px 16px; border-radius: 11px; background: var(--bg-subtle); border: 1px solid var(--line); }
.pc-stats dt { color: var(--ink-3); font-size: 11.5px; font-weight: 500; font-family: var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.pc-stats dd { margin: 0; font-variant-numeric: tabular-nums; }
.pc-stat-main { margin-top: 6px !important; color: var(--ink); font-size: 19px; font-weight: 650; letter-spacing: -0.02em; }
.pc-stat-sub { color: var(--ink-3); font-size: 13.5px; }
.pc-how { margin-top: 16px; color: var(--ink-2); font-size: 14px; }
.pc-how summary { color: var(--ink); font-weight: 600; cursor: pointer; }
.pc-how ol { margin: 12px 0 0; padding-left: 20px; font-family: var(--mono); font-size: 13px; }
.pc-how li + li { margin-top: 6px; }
.pc-how p { margin-top: 12px; }

.pc-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; padding: 4px 4px 0; }
.pc-status { margin-right: auto; color: var(--accent-600); font-size: 14px; font-weight: 600; }
.pc-status.is-error { color: #B42318; }
.pc .btn { min-height: 44px; }
.pc-disclaimer { padding: 14px 16px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }

/* ================= motion ================= */
@keyframes pe-fade { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes pe-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.hero-copy > *, .subhero-in > *, .ahero-in > *, .dhero-copy > * { animation: pe-rise .8s var(--ease) both; }
.hero-copy > :nth-child(2), .subhero-in > :nth-child(2), .ahero-in > :nth-child(2), .dhero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3), .subhero-in > :nth-child(3), .ahero-in > :nth-child(3), .dhero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4), .subhero-in > :nth-child(4), .ahero-in > :nth-child(4), .dhero-copy > :nth-child(4) { animation-delay: .18s; }
.ahero-in > :nth-child(5), .dhero-copy > :nth-child(5) { animation-delay: .24s; }
.hero-visual { animation: pe-rise 1s var(--ease) .15s both; }
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ================= responsive ================= */
@media (max-width: 1100px) {
  .ladder { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ladder::before { display: none; }
}
@media (max-width: 1040px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dsec { grid-template-columns: 1fr; }
  .kf { position: static; }
  .trust-in, .dinfo, .stats { grid-template-columns: repeat(2, 1fr); }
  .res-layout { grid-template-columns: 1fr; gap: 32px; }
  .res-side { position: static; }
  .signup { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-in { gap: 12px; justify-content: space-between; padding: 0 20px; }
  .mobile-nav { display: flex; }
  .mobile-nav[hidden] { display: none; }
  .hero-in, .promo, .mission, .dhero-in { grid-template-columns: 1fr; }
  .hero-in { padding-block: 64px 56px; gap: 40px; }
  .hero-visual { order: 2; }
  .hero-art { max-width: 520px; }
  .promo { padding: 40px 28px; }
  .dhero-art { max-width: 440px; }
  .xgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .band { padding-block: 80px; }
}
@media (max-width: 680px) {
  .wrap { padding-inline: 20px; }
  .band { padding-block: 64px; }
  .grid-4, .grid-3, .xgrid, .ladder { grid-template-columns: 1fr; }
  .se-grid { grid-template-columns: 1fr; }
  .trust-in, .dinfo, .stats { grid-template-columns: 1fr; }
  .hero h1 { font-size: 44px; }
  .hero-sub { font-size: 17px; }
  .hero-btns .btn { width: 100%; }
  .subhero-in { padding-block: 64px 52px; }
  .dsec h2 { font-size: 25px; }
  .tabs-in { gap: 2px; }
  .pcard-art img { height: 160px; }
  .acard-row { flex-direction: column; }
  .acard-row .acard-art { width: 100%; }
  .acard-row .acard-art img { height: 170px; min-height: 0; }
  .res-head h2 { font-size: 22px; }
  .pc { padding: 10px; border-radius: 18px; }
  .pc-grid, .pc-stats { grid-template-columns: 1fr; }
  .pc-sub { margin-left: 0; }
  .pc-actions .btn { flex: 1; }
  .pc-status { flex-basis: 100%; order: 3; }
  .math-calc { grid-template-columns: 1fr; }
  .math-output, .math-actions { grid-column: 1; }
  html { scroll-padding-top: 120px; }
  .dsec { scroll-margin-top: 120px; }
}
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
  .pc-move { transition: none; }
}

/* ================= overrides ================= */
.hero-art > circle { display: none; }
.prose .pc-result .pc-volume { color: #fff; }
.prose .pc-result .pc-eyebrow, .prose .pc-result .pc-small { color: var(--char-ink); }
.prose .pc-disclaimer { color: var(--ink-3); }
.prose .pc-hint, .prose .pc-sub, .prose .pc-caption { color: var(--ink-3); }
.prose .pc-error { color: #B42318; }
.prose .pc-caption.is-over { color: #B45309; }
.prose .pc-status { color: var(--accent-600); }
.prose .pc-status.is-error { color: #B42318; }

/* ---------------------------------------------------- centered hero (hc) */
.hc { position: relative; overflow: hidden; padding: 96px 0 0; isolation: isolate; }
.hc-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hc-bg::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  opacity: .7;
}
.hc-bg::after {
  content: ""; position: absolute; left: 50%; top: -280px; width: 1100px; height: 640px; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(46, 98, 245, .14), rgba(46, 98, 245, 0));
}
.hc-copy { text-align: center; max-width: 900px; margin: 0 auto; }
.hc-announce {
  display: inline-flex; align-items: center; gap: 10px; height: 34px; padding: 0 6px 0 6px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.8);
  font-size: 13.5px; color: var(--ink-2); box-shadow: 0 1px 2px rgba(11, 12, 15, .04); margin-bottom: 32px;
  transition: border-color .2s ease; white-space: nowrap; max-width: 100%;
}
.hc-announce:hover { color: var(--ink); border-color: var(--line-2); }
.hc-announce b {
  display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: 999px;
  background: var(--char); color: #fff; font-size: 12px; font-weight: 600;
}
.hc-announce .ico svg { width: 14px; height: 14px; }
.hc-announce > span:last-child { padding-right: 6px; display: inline-flex; }
.hc h1 {
  font-size: clamp(44px, 7.4vw, 84px); line-height: 1.02; letter-spacing: -0.055em; font-weight: 700;
}
.hc h1 .hc-soft {
  background: linear-gradient(180deg, #5A5E6A 0%, #9A9DA8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hc-sub { margin: 28px auto 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.6; color: var(--ink-2); max-width: 640px; }
.hc-btns { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hc-note { margin-top: 18px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.hc-note span { display: inline-flex; align-items: center; gap: 6px; }
.hc-note svg { width: 14px; height: 14px; color: #0E8A55; }
.hc-copy > * { animation: hc-rise .8s var(--ease) both; }
.hc-copy > :nth-child(2) { animation-delay: .06s; }
.hc-copy > :nth-child(3) { animation-delay: .12s; }
.hc-copy > :nth-child(4) { animation-delay: .18s; }
.hc-copy > :nth-child(5) { animation-delay: .24s; }
@media (max-width: 680px) {
.hc { padding-top: 56px; }
.hc-announce { font-size: 12.5px; gap: 8px; }
.hc-announce b { font-size: 11.5px; }
.hc h1 { font-size: 44px; letter-spacing: -0.05em; }
.hc-btns .btn { flex: 1 1 100%; }
}
@keyframes hc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--line-2); box-shadow: 0 1px 2px rgba(11, 12, 15, .04); }
.btn-secondary:hover { color: var(--ink); border-color: #C6C8D0; background: #FAFAFB; }
