/* Lifebuff — warm stone ground, liquid glass, editorial type. */

:root {
  --bg: #ebe4d8;
  --bg-elevated: rgba(255, 255, 255, 0.78);
  --bg-muted: rgba(255, 255, 255, 0.42);
  --ink: #1c1915;
  --ink-soft: #5c564c;
  --ink-faint: #645d52;
  --line: rgba(28, 25, 21, 0.14);
  --hairline: rgba(28, 25, 21, 0.14);
  --metal: #a68456;
  --metal-ink: #775a33; /* small bronze text; passes 4.5:1 on page and cards */
  --glass: rgba(255, 255, 255, 0.62);
  --glass-edge: rgba(255, 255, 255, 0.72);
  --glass-shadow: 0 20px 50px rgba(28, 25, 21, 0.08);
  --glass-blur: blur(18px) saturate(1.35);
  --sheet-glass: rgb(255 255 255 / 0.8);
  --card-glass: linear-gradient(160deg, rgb(255 255 255 / 0.78), rgb(255 255 255 / 0.4));
  --well: rgb(166 132 86 / 0.1);
  --inner-veil: rgb(238 232 222 / 0.6);
  --cta-bg: linear-gradient(180deg, #2c4068, #152440);
  --cta-ink: #f6f1e8;
  --accent: #1c1915;
  --accent-soft: rgba(166, 132, 86, 0.14);
  --accent-ink: #1c1915;
  --accent-contrast: #f6f1e8;
  --btn-bg: #1c1915;
  --btn-ink: #f6f1e8;
  --research: #6b5844;
  --research-bg: rgba(166, 132, 86, 0.12);
  --user: #b45309;
  --user-bg: #fffbeb;
  --user-badge: #9a3412;
  --user-contrast: #fff;
  --waitlist: #b45309;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 20px 50px rgba(28, 25, 21, 0.08);
  --header-h: 64px;
  --dose-bar-h: 52px;
  --font: "Outfit", system-ui, -apple-system, sans-serif;
  --display: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --wrap: 1120px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --motion: 200ms;
  --ring: color-mix(in srgb, var(--metal) 65%, transparent);
  --page-wash:
    radial-gradient(ellipse 72% 48% at 8% -8%, rgba(255, 255, 255, 0.65), transparent 58%),
    radial-gradient(ellipse 46% 42% at 100% 0%, rgba(186, 204, 214, 0.45), transparent 52%),
    radial-gradient(ellipse 38% 32% at 78% 100%, rgba(166, 132, 86, 0.1), transparent 60%);
}

/* Explicit theme override (R16) beats system when set */
html[data-theme="light"] {
  color-scheme: light;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0f12;
  --bg-elevated: rgba(22, 23, 27, 0.82);
  --bg-muted: rgba(255, 255, 255, 0.04);
  --ink: #f3efe6;
  --ink-soft: #c9c2b4;
  --ink-faint: #9a9488;
  --metal-ink: #a68456;
  --line: rgba(243, 239, 230, 0.16);
  --hairline: rgba(243, 239, 230, 0.16);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-edge: rgba(255, 255, 255, 0.16);
  --sheet-glass: rgb(22 23 27 / 0.82);
  --card-glass: linear-gradient(160deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.03));
  --well: rgb(255 255 255 / 0.04);
  --inner-veil: rgb(14 15 18 / 0.84);
  --cta-bg: var(--accent);
  --cta-ink: var(--accent-contrast);
  --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --accent: #f3efe6;
  --accent-soft: rgba(166, 132, 86, 0.18);
  --accent-ink: #f3efe6;
  --accent-contrast: #1c1915;
  --btn-bg: #f3efe6;
  --btn-ink: #1c1915;
  --research: #d7c7aa;
  --research-bg: rgba(166, 132, 86, 0.16);
  --user: #e2b15a;
  --user-bg: rgba(226, 177, 90, 0.12);
  --user-badge: #f0d7a4;
  --user-contrast: #1c1915;
  --waitlist: #e2b15a;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --page-wash:
    radial-gradient(ellipse 55% 42% at 88% -6%, rgba(166, 132, 86, 0.18), transparent 56%),
    radial-gradient(ellipse 48% 40% at 0% 24%, rgba(150, 170, 184, 0.1), transparent 52%),
    radial-gradient(ellipse 36% 28% at 70% 100%, rgba(243, 239, 230, 0.04), transparent 54%);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e0f12;
    --bg-elevated: rgba(22, 23, 27, 0.82);
    --bg-muted: rgba(255, 255, 255, 0.04);
    --ink: #f3efe6;
    --ink-soft: #c9c2b4;
    --ink-faint: #9a9488;
    --metal-ink: #a68456;
    --line: rgba(243, 239, 230, 0.16);
    --hairline: rgba(243, 239, 230, 0.16);
    --glass: rgba(255, 255, 255, 0.06);
    --glass-edge: rgba(255, 255, 255, 0.16);
  --sheet-glass: rgb(22 23 27 / 0.82);
  --card-glass: linear-gradient(160deg, rgb(255 255 255 / 0.09), rgb(255 255 255 / 0.03));
  --well: rgb(255 255 255 / 0.04);
  --inner-veil: rgb(14 15 18 / 0.84);
  --cta-bg: var(--accent);
  --cta-ink: var(--accent-contrast);
    --glass-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --accent: #f3efe6;
    --accent-soft: rgba(166, 132, 86, 0.18);
    --accent-ink: #f3efe6;
    --accent-contrast: #1c1915;
    --btn-bg: #f3efe6;
    --btn-ink: #1c1915;
    --research: #d7c7aa;
    --research-bg: rgba(166, 132, 86, 0.16);
    --user: #e2b15a;
    --user-bg: rgba(226, 177, 90, 0.12);
    --user-badge: #f0d7a4;
    --user-contrast: #1c1915;
    --waitlist: #e2b15a;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    --page-wash:
      radial-gradient(ellipse 55% 42% at 88% -6%, rgba(166, 132, 86, 0.18), transparent 56%),
      radial-gradient(ellipse 48% 40% at 0% 24%, rgba(150, 170, 184, 0.1), transparent 52%),
      radial-gradient(ellipse 36% 28% at 70% 100%, rgba(243, 239, 230, 0.04), transparent 54%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--page-wash);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
.logo {
  font-family: var(--display);
  font-weight: 500;
}

img {
  max-width: 100%;
}

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip-link:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* R13 focus-visible */
:focus-visible {
  outline: 2px solid var(--metal);
  outline-offset: 2px;
}
button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

.wrap {
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: var(--glass);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  height: 100%;
  width: min(100% - 2rem, var(--wrap));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.logo {
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.logo:hover {
  color: var(--ink);
}

.primary-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: 0.5rem;
  flex: 1;
}

.primary-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.primary-nav a:hover {
  color: var(--ink);
}

.nav-cta {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--btn-ink) !important;
  background: var(--btn-bg);
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  text-decoration: none !important;
  transition: transform 0.15s var(--ease);
}

.nav-cta:hover {
  filter: brightness(1.05);
}

.nav-cta:active {
  transform: scale(0.98);
}

@media (max-width: 720px) {
  .primary-nav {
    display: none;
  }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-rows: 1fr;
  align-items: start;
  justify-items: start;
  height: 100svh;
  min-height: 100svh;
  margin-top: calc(-1 * var(--header-h));
  padding: 0;
  background:
    url("hero-wall.png?v=51") center / 100% 100% no-repeat,
    radial-gradient(ellipse 58% 46% at 16% 24%, #c9b496 0%, rgba(201, 180, 150, 0) 68%),
    radial-gradient(ellipse 50% 42% at 4% 78%, #e4d5c0 0%, rgba(228, 213, 192, 0) 62%),
    radial-gradient(ellipse 42% 56% at 72% 40%, #b08968 0%, rgba(122, 90, 66, 0) 70%),
    linear-gradient(96deg, #f7f2ea 0%, #f4efe6 32%, #e7d5c0 44%, #8d6b52 64%, #6a4c38 76%, #3f2c22 78%, #6b4e3c 100%);
}

.peptide-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  pointer-events: none;
}

@media (max-width: 800px) {
  .hero {
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: stretch;
    margin-top: 0;
    height: calc(100svh - var(--header-h));
    min-height: calc(100svh - var(--header-h));
    background: radial-gradient(ellipse 92% 78% at 50% 46%, #c4a07a 0%, #e6d3b8 62%, #f0e2cc 100%);
  }

  .hero-scene {
    position: relative;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .hero-copy {
    grid-row: 2;
    margin-left: 1.25rem;
    width: min(40rem, calc(100% - 2.5rem));
    max-width: min(40rem, calc(100% - 2.5rem));
    padding: 0.15rem 0 0.9rem;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2rem, 8vw, 2.4rem);
  }
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(28rem, calc(100% - 2.5rem));
  max-width: min(28rem, calc(100% - 2.5rem));
  min-width: 0;
  margin-left: max(1.25rem, calc((100% - var(--wrap)) / 2));
  padding: 14vh 0 0;
}

@media (max-width: 800px) {
  .hero-copy {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .hero-copy {
    padding-bottom: 0.9rem;
  }
}

.hero-kicker,
.eyebrow {
  margin: 0 0 0.85rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--metal-ink);
}

.hero h1 {
  margin: 0 0 0.85rem;
  max-width: 22ch;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.85rem, 2.5vw, 2.7rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
  color: #4a433c;
}

.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: inherit;
}

.hero-lede {
  margin: 0 0 1.5rem;
  color: #6b6258;
  font-size: 1.05rem;
  max-width: 36rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.hero-text {
  color: var(--ink);
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 0.12rem;
}

.hero-text:hover {
  border-bottom-color: var(--ink);
}

.hero-follow {
  /* This band is always light, so it keeps light-theme text colors in dark mode too. */
  --ink: #1c1915;
  --ink-soft: #5c564c;
  --ink-faint: #645d52;
  --metal-ink: #775a33;
  --line: rgba(28, 25, 21, 0.14);
  --hairline: rgba(28, 25, 21, 0.14);
  --bg-elevated: rgba(255, 255, 255, 0.78);
  --bg-muted: rgba(255, 255, 255, 0.42);
  color: var(--ink);
  background: #f6f1e8;
  border-bottom: 1px solid var(--hairline);
}

.hero-follow-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem 1.25rem;
  padding: 1rem 0 1.15rem;
}

.hero-follow .hero-lede {
  margin: 0;
  flex: 1 1 18rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 100%;
}

.hero-chip {
  margin: 0;
  max-width: 100%;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  line-height: 1.35;
}

.hero-chip-num {
  font-family: var(--display);
  font-size: 0.95rem;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-right: 0.28rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: transform 0.15s var(--ease), background 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink) !important;
  border: none;
  box-shadow: none;
}

.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: none;
  border-radius: 0;
  padding-inline: 0.15rem;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--hairline);
  text-underline-offset: 0.28em;
  font-weight: 500;
}

.btn-ghost:hover {
  background: transparent;
  text-decoration-color: var(--ink);
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1rem;
  box-shadow: var(--shadow);
}

.stat {
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.stat.wide {
  grid-column: 1 / -1;
}

.stat-num {
  font-family: var(--mono);
  font-size: 1.75rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--accent-ink);
  line-height: 1;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* Bands */
.band {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}
/* A nav jump lands on the section title, not on the section's top padding. */
.band[id] {
  scroll-margin-top: calc(1.5rem - clamp(4.5rem, 9vw, 8rem));
}

.band.how {
  background: transparent;
  border-block: 1px solid var(--hairline);
}

.section-head {
  margin-bottom: 2.25rem;
  max-width: 40rem;
}

.section-head h2,
.how h2 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(2.3rem, 4vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.section-lede {
  margin: 0;
  color: var(--ink-soft);
}

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.25rem 0 1.5rem;
}

@media (max-width: 640px) {
  .how-grid {
    grid-template-columns: 1fr;
  }
}

.how-card {
  border-radius: 22px;
  padding: 1.15rem 1.25rem;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.how-card p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* Peptide explainer — #how-to-read */
.pep-explainer {
  margin: 1rem 0 1.25rem;
}
.pep-kicker {
  margin: 0 0 0.35rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--metal-ink);
}
.pep-explainer h3 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
  letter-spacing: -0.025em;
}
.pep-lede {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.5;
}
.pep-picker { margin: 0 0 0.85rem; }
.pep-picker-label {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pep-picker-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.pep-pick {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 550;
  cursor: pointer;
}
.pep-pick:hover { border-color: var(--accent); color: var(--accent-ink); }
.pep-pick.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.pep-frame {
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  background: var(--glass);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.pep-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(196px, 28%);
  align-items: stretch;
  overflow: hidden;
  background:
    radial-gradient(80% 90% at 16% 28%, rgba(166, 132, 86, 0.08), transparent 62%),
    radial-gradient(70% 80% at 88% 72%, rgba(186, 204, 214, 0.28), transparent 60%),
    var(--bg-elevated);
}
.pep-outcome {
  border-left: 1px solid var(--line);
  padding: 0.8rem 0.95rem 0.9rem;
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--bg-elevated));
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  min-width: 0;
  position: relative;
}
.pep-outcome-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.pep-outcome-name {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.pep-outcome-benefit {
  margin: 0 0 0.45rem;
  font-size: 0.92rem;
  line-height: 1.4;
  color: var(--ink);
  font-weight: 550;
}
.pep-outcome-point {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--ink-soft);
}
.pep-outcome-point:empty { display: none; }
.pep-timeline {
  margin: 0 0 0.45rem;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.pep-timeline[hidden] { display: none; }
.pep-timeline li {
  margin: 0;
  display: grid;
  grid-template-columns: 5.6rem 1fr;
  gap: 0.4rem;
  font-size: 0.75rem;
  line-height: 1.35;
  color: var(--ink-soft);
}
.pep-timeline strong {
  color: var(--accent-ink);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.pep-outcome-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--ink-faint);
}
.pep-svg {
  display: block;
  width: 100%;
  height: auto;
  min-width: 0;
}
.pep-epidermis { fill: color-mix(in srgb, #c98972 70%, var(--bg-elevated)); }
.pep-epidermis-edge {
  stroke: color-mix(in srgb, #8b4d3a 55%, var(--ink-soft));
  stroke-width: 2;
}
.pep-dermis { fill: color-mix(in srgb, #e3b39a 62%, var(--bg-elevated)); }
.pep-fat path { fill: color-mix(in srgb, #f0d4a8 55%, var(--bg-elevated)); }
.pep-fat ellipse {
  fill: color-mix(in srgb, #f6e2b8 72%, var(--bg-elevated));
  stroke: color-mix(in srgb, #d4b07a 50%, transparent);
  stroke-width: 1;
}
.pep-tissue { fill: color-mix(in srgb, #f3e6d4 28%, var(--bg-elevated)); }
html[data-theme="dark"] .pep-epidermis { fill: color-mix(in srgb, #6a3b30 50%, var(--bg-muted)); }
html[data-theme="dark"] .pep-dermis { fill: color-mix(in srgb, #5a3a32 42%, var(--bg-muted)); }
html[data-theme="dark"] .pep-fat path { fill: color-mix(in srgb, #4a3a28 40%, var(--bg-muted)); }
html[data-theme="dark"] .pep-fat ellipse {
  fill: color-mix(in srgb, #5c4930 48%, var(--bg-muted));
  stroke: color-mix(in srgb, #c9a46a 28%, transparent);
}
html[data-theme="dark"] .pep-tissue { fill: color-mix(in srgb, #2a241c 35%, var(--bg-muted)); }
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .pep-epidermis { fill: color-mix(in srgb, #6a3b30 50%, var(--bg-muted)); }
  html:not([data-theme="light"]) .pep-dermis { fill: color-mix(in srgb, #5a3a32 42%, var(--bg-muted)); }
  html:not([data-theme="light"]) .pep-fat path { fill: color-mix(in srgb, #4a3a28 40%, var(--bg-muted)); }
  html:not([data-theme="light"]) .pep-tissue { fill: color-mix(in srgb, #2a241c 35%, var(--bg-muted)); }
}
.pep-vessel-wide {
  stroke: color-mix(in srgb, #c45c5c 16%, transparent);
  stroke-width: 28;
  stroke-linecap: round;
}
.pep-vessel {
  stroke: color-mix(in srgb, #b42318 42%, var(--accent));
  stroke-width: 14;
  stroke-linecap: round;
}
.pep-vessel-lumen {
  stroke: color-mix(in srgb, #f43f5e 55%, var(--bg-elevated));
  stroke-width: 6;
  stroke-linecap: round;
}
.pep-membrane {
  fill: none;
  stroke: color-mix(in srgb, var(--metal) 45%, var(--ink-soft));
  stroke-width: 4;
}
.pep-cytoplasm {
  fill: color-mix(in srgb, var(--accent-soft) 78%, var(--bg-elevated));
  stroke: none;
}
.pep-nucleus {
  fill: color-mix(in srgb, var(--accent) 28%, var(--bg-elevated));
  stroke: color-mix(in srgb, var(--accent) 45%, transparent);
  stroke-width: 1.5;
}
.pep-nucleolus {
  fill: color-mix(in srgb, var(--accent) 55%, var(--bg-elevated));
  stroke: none;
}
.pep-lock path {
  fill: var(--bg-elevated);
  stroke: var(--accent);
  stroke-width: 3;
}
.pep-aa circle,
.pep-bond,
.pep-traveler circle,
.pep-drop {
  fill: var(--accent);
}
.pep-drop { opacity: 0; }
.pep-load { opacity: 0; }
.pep-load circle { fill: var(--accent); }
.pep-handoff { opacity: 0; }
.pep-handoff path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pep-bond {
  stroke: var(--accent);
  stroke-width: 3.5;
  stroke-linecap: round;
}
.pep-label {
  fill: var(--ink-soft);
  font-size: 12px;
  font-family: var(--font);
}
.pep-label-strong {
  fill: var(--accent-ink);
  font-size: 13px;
  font-weight: 650;
}
.pep-caption-track {
  position: relative;
  min-height: 5rem;
  padding: 0.75rem 1.15rem 0.85rem;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg-elevated) 86%, var(--accent-soft));
}
.pep-caption {
  margin: 0;
  position: absolute;
  left: 1.15rem;
  right: 1.15rem;
  top: 0.75rem;
  padding-right: 7.25rem;
  font-size: clamp(0.98rem, 2.1vw, 1.18rem);
  line-height: 1.4;
  letter-spacing: -0.018em;
  font-weight: 550;
  opacity: 0;
  pointer-events: none;
}
.pep-caption small {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.84rem;
  font-weight: 450;
  color: var(--ink-faint);
  letter-spacing: 0;
}
.pep-controls {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.1rem 0.7rem;
  border-top: 1px solid var(--line);
  background: var(--bg-elevated);
}
.pep-ctrl {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 550;
  cursor: pointer;
}
.pep-ctrl:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-ink); }
.pep-ctrl:disabled { opacity: 0.4; cursor: default; }
.pep-ctrl-next {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.pep-progress {
  margin-right: auto;
  font-size: 0.8rem;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.pep-story { display: none; margin: 0.9rem 0 0; padding: 0 0 0 1.15rem; color: var(--ink-soft); }
.pep-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.pep-aa {
  transform-box: fill-box;
  transform-origin: center;
  --dx: 0px;
  --dy: 0px;
  opacity: 0;
}
.pep-aa-1 { --dx: 34px; --dy: 14px; }
.pep-aa-2 { --dx: 10px; --dy: 24px; }
.pep-aa-3 { --dx: -8px; --dy: 6px; }
.pep-aa-4 { --dx: -26px; --dy: 18px; }
.pep-aa-5 { --dx: -46px; --dy: 2px; }
.pep-bond { opacity: 0; }
.pep-traveler {
  offset-path: path("M175 104 C 260 84, 340 124, 460 104 C 560 86, 640 124, 730 108");
  offset-rotate: 0deg;
  offset-distance: 0%;
  opacity: 0;
  transition: offset-distance 0.7s var(--ease), opacity 0.35s var(--ease);
}

[data-pep-step="1"] .pep-caption-1,
[data-pep-step="2"] .pep-caption-2,
[data-pep-step="3"] .pep-caption-3,
[data-pep-step="4"] .pep-caption-4,
[data-pep-step="5"] .pep-caption-5,
[data-pep-step="6"] .pep-caption-6 { opacity: 1; }

[data-pep-step="1"] .pep-aa {
  opacity: 1;
  transform: translate(var(--dx), var(--dy));
}
[data-pep-step="1"] .pep-bond,

[data-pep-step="2"] .pep-load { opacity: 1; }

[data-pep-step="3"] .pep-traveler { opacity: 1; offset-distance: 8%; }
[data-pep-step="3"] .pep-drop { opacity: 1; }

[data-pep-step="4"] .pep-traveler { opacity: 1; offset-distance: 42%; }

[data-pep-step="5"] .pep-traveler,
[data-pep-step="6"] .pep-traveler { opacity: 1; offset-distance: 100%; }

[data-pep-step="5"] .pep-cytoplasm,
[data-pep-step="6"] .pep-cytoplasm {
  fill: color-mix(in srgb, var(--accent-soft) 92%, var(--bg-elevated));
}
[data-pep-step="5"] .pep-membrane,
[data-pep-step="6"] .pep-membrane { stroke: var(--accent); }
[data-pep-step="5"] .pep-lock path,
[data-pep-step="6"] .pep-lock path {
  fill: color-mix(in srgb, var(--accent) 22%, var(--bg-elevated));
}
[data-pep-step="5"] .pep-handoff,
[data-pep-step="6"] .pep-handoff { opacity: 0.9; }


@media (max-width: 640px) {
  .pep-caption-track { min-height: 6.2rem; padding: 0.7rem 0.95rem 0.85rem; }
  .pep-caption {
    left: 0.95rem;
    right: 0.95rem;
    top: 0.85rem;
    padding-right: 0;
    font-size: 0.98rem;
  }
  .pep-stage { grid-template-columns: 1fr; }
  .pep-outcome {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-bottom: 3.25rem;
  }
  .pep-label,
  .pep-label-strong { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .pep-traveler { transition: none; }
  .pep-story { display: none; }
}

.research-tint {
  background: var(--glass);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--metal) 55%, transparent), var(--glass-shadow);
}

.user-tint {
  background: var(--glass);
  box-shadow: inset 3px 0 0 var(--user), var(--glass-shadow);
}

.disclaimer {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-faint);
  max-width: 70ch;
  line-height: 1.5;
}

/* Stream badges */
.stream-badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 6px;
}

.badge-research {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.badge-user {
  background: color-mix(in srgb, var(--user) 18%, transparent);
  color: var(--user-badge);
}

/* Peptide jump chips */
.peptide-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.75rem;
}

.chip {
  display: inline-flex;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  color: var(--ink-soft) !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  font-weight: 500;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent-ink) !important;
  background: var(--research-bg);
}

/* Peptide cards */
.peptide-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.peptide-card {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  padding: 1.35rem 1.4rem 1.25rem;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.peptide-card:target {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent),
    var(--shadow);
}

.peptide-head h3 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.peptide-summary {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.guide-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  text-underline-offset: 0.2em;
}

.streams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.15rem;
}

@media (max-width: 720px) {
  .streams {
    grid-template-columns: 1fr;
  }
}

.stream {
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  border: 1px solid var(--line);
}

.stream-researched {
  background: var(--research-bg);
  border-color: color-mix(in srgb, var(--research) 22%, var(--line));
}

.stream-user {
  background: var(--user-bg);
  border-color: color-mix(in srgb, var(--user) 22%, var(--line));
}

.stream-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
}

.stream-sub {
  font-size: 0.78rem;
  color: var(--ink-faint);
}

.benefit-list {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.benefit-list li {
  font-size: 0.92rem;
  color: var(--ink);
  padding-left: 0.15rem;
}

.sources {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.sources li {
  font-size: 0.78rem;
  font-family: var(--mono);
}

.sources a {
  color: var(--ink-faint);
  word-break: break-word;
}

.sources a:hover {
  color: var(--accent-ink);
}

.stream-note {
  margin: 0.75rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-style: italic;
}

/* Compact dosing evidence rail */
.dosing-report {
  grid-column: 1 / -1;
  min-width: 0;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent-soft) 38%, var(--bg-elevated));
}

.dosing-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.dosing-head h4,
.stack-dosing h4 {
  margin: 0;
  font-size: 0.88rem;
}

.dosing-head > p {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-faint);
}

.dosing-patterns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.dosing-pattern {
  min-width: 0;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.dosing-pattern-label,
.dosing-evidence,
.dosing-citations,
.dosing-source-number {
  font-family: var(--mono);
  font-size: 0.66rem;
}

.dosing-pattern-label {
  display: block;
  color: var(--ink-faint);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dosing-pattern strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

.dosing-evidence {
  display: inline-flex;
  margin-top: 0.45rem;
  padding: 0.14rem 0.35rem;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--research);
}

.dosing-evidence-thin-or-conflicting,
.dosing-evidence-thin,
.dosing-evidence-anecdotal {
  color: var(--user);
}

.dosing-citations {
  display: inline-flex;
  gap: 0.25rem;
  margin-left: 0.35rem;
}

.dosing-citations a {
  display: inline-grid;
  min-width: 1.35rem;
  min-height: 1.35rem;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--accent-ink);
  text-decoration: none;
}

.dosing-citations a:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.dosing-pattern p,
.dosing-insufficient,
.dosing-caveat,
.dosing-disclaimer,
.stack-dosing-note {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.dosing-caveat {
  color: var(--ink);
}

.dosing-disclaimer {
  font-weight: 600;
}

.dosing-sources {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.68rem;
}

.dosing-sources li {
  min-width: 0;
  color: var(--ink-faint);
  overflow-wrap: anywhere;
}

.dosing-sources a {
  color: var(--ink-faint);
  overflow-wrap: anywhere;
}

.dosing-sources a:hover {
  color: var(--accent-ink);
}

.dosing-community {
  min-width: 0;
  margin-top: 0.8rem;
  padding: 0.7rem 0.8rem;
  border: 1px dashed color-mix(in srgb, var(--user) 45%, var(--line));
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--user) 7%, var(--bg-elevated));
}

.dosing-community-intro {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.dosing-community-label {
  margin: 0.55rem 0 0;
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--user);
}

.dosing-community-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0.4rem 0 0;
  padding: 0;
  list-style: none;
}

.dosing-community-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.3rem 0.6rem;
  border: 1px solid color-mix(in srgb, var(--user) 40%, var(--line));
  border-radius: 999px;
  background: var(--bg-elevated);
  font-size: 0.72rem;
  line-height: 1.2;
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.dosing-community-links a::after {
  content: "\2197";
  font-size: 0.78rem;
  color: var(--user);
}

.dosing-community-links a:hover {
  border-color: var(--user);
  background: color-mix(in srgb, var(--user) 12%, var(--bg-elevated));
}

.dosing-community-links a:focus-visible {
  outline: 2px solid var(--user);
  outline-offset: 2px;
}

.stack-dosing {
  min-width: 0;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.stack-dosing ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.65rem 0 0;
  padding: 0;
  list-style: none;
}

.stack-dosing li {
  display: grid;
  grid-template-columns: minmax(7rem, auto) 1fr auto;
  gap: 0.2rem 0.65rem;
  min-width: 0;
  padding-top: 0.45rem;
  border-top: 1px solid var(--line);
}

.stack-dosing a {
  font-weight: 700;
}

.stack-dose {
  min-width: 0;
  font-size: 0.78rem;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.stack-dose-amt {
  font-weight: 600;
}

.stack-dose-why {
  font-size: 0.68rem;
  color: var(--ink-faint);
  overflow-wrap: anywhere;
}

.stack-dose-sep {
  color: var(--ink-faint);
  margin: 0 0.1rem;
}

.stack-dose-insufficient {
  color: var(--ink-faint);
}

.stack-dose-context {
  grid-column: 2 / -1;
  font-size: 0.7rem;
  color: var(--ink-faint);
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .dosing-patterns {
    grid-template-columns: 1fr;
  }

  .stack-dosing li {
    grid-template-columns: minmax(7rem, auto) 1fr;
  }

  .stack-dose,
  .stack-dose-context {
    grid-column: 1 / -1;
  }
}

.related {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
}

.related-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  font-family: var(--mono);
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.related-links a {
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.related-links a:hover {
  filter: brightness(0.97);
}

/* Stacks */
.band.stacks {
  background: transparent;
  border-top: 1px solid var(--hairline);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 720px) {
  .stack-grid {
    grid-template-columns: 1fr;
  }
}

.stack-card {
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 22px;
  padding: 1.2rem 1.25rem 1.3rem;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  scroll-margin-top: calc(var(--header-h) + 12px);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  /* Content-sized flow; do not stretch children to fill equal-height grid rows */
  align-self: start;
  width: 100%;
}
/* Author display:flex must not defeat HTML hidden on filtered cards */
.stack-card[hidden],
.peptide-card[hidden],
.stack-card-featured[hidden] {
  display: none !important;
}
.filter-empty {
  margin: 0.75rem 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px dashed var(--line);
  background: var(--bg-muted);
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.stack-report {
  margin-top: 0.35rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--user-bg);
  border: 1px solid color-mix(in srgb, var(--user) 22%, var(--line));
}

.stack-report-list {
  margin-top: 0.55rem;
}

.stack-who {
  margin-top: 0.2rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--research-bg) 70%, var(--bg-muted));
  border: 1px solid color-mix(in srgb, var(--research) 22%, var(--line));
}

.badge-who {
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.who-row {
  margin-top: 0.65rem;
}

.who-row:first-of-type {
  margin-top: 0.55rem;
}

.who-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 0.3rem;
}

.who-text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.45;
}

.who-list {
  margin-top: 0.15rem;
}

.who-not .who-text {
  color: var(--ink-soft);
  font-size: 0.88rem;
}

.watch-block {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  border: 1px solid var(--line);
}

.badge-watch {
  background: color-mix(in srgb, var(--ink) 12%, transparent);
  color: var(--ink-soft);
}

.video-list {
  list-style: none;
  margin: 0.55rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.video-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.video-item a {
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--accent-ink);
  line-height: 1.35;
}

.video-item a:hover {
  text-decoration: underline;
}

.video-meta {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
}

.video-extra {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.video-note {
  margin-top: 0.55rem;
}

.stack-card:target {
  border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent),
    var(--shadow);
}

.stack-card h3 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.entity-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.entity-heading h3 {
  min-width: 0;
}

.entity-icon {
  display: block;
  flex: 0 0 auto;
  overflow: visible;
  color: var(--accent);
  stroke-linecap: round;
  stroke-linejoin: round;
}

.entity-icon-stack {
  width: 3.1rem;
  height: 3.1rem;
}

.entity-icon-peptide {
  width: 2.25rem;
  height: 2.25rem;
}

.entity-icon .icon-primary,
.entity-icon .icon-accent {
  vector-effect: non-scaling-stroke;
  stroke-width: 2.2;
}

.entity-icon .icon-primary {
  stroke: currentcolor;
}

.entity-icon .icon-accent {
  stroke: var(--icon-accent);
}

.entity-icon .icon-node {
  fill: var(--icon-accent);
  stroke: var(--bg-elevated);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}

.icon-family-skin {
  --icon-accent: #b45309;
}

.icon-family-repair {
  --icon-accent: #c2410c;
}

.icon-family-performance {
  --icon-accent: #1d4ed8;
}

.icon-family-cognition {
  --icon-accent: #6d28d9;
}

.icon-family-metabolic {
  --icon-accent: #15803d;
}

.icon-family-nerve {
  --icon-accent: #0e7490;
}

html[data-theme="dark"] .icon-family-skin {
  --icon-accent: #fbbf24;
}

html[data-theme="dark"] .icon-family-repair {
  --icon-accent: #fb923c;
}

html[data-theme="dark"] .icon-family-performance {
  --icon-accent: #60a5fa;
}

html[data-theme="dark"] .icon-family-cognition {
  --icon-accent: #a78bfa;
}

html[data-theme="dark"] .icon-family-metabolic {
  --icon-accent: #4ade80;
}

html[data-theme="dark"] .icon-family-nerve {
  --icon-accent: #22d3ee;
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .icon-family-skin {
    --icon-accent: #fbbf24;
  }

  html:not([data-theme="light"]) .icon-family-repair {
    --icon-accent: #fb923c;
  }

  html:not([data-theme="light"]) .icon-family-performance {
    --icon-accent: #60a5fa;
  }

  html:not([data-theme="light"]) .icon-family-cognition {
    --icon-accent: #a78bfa;
  }

  html:not([data-theme="light"]) .icon-family-metabolic {
    --icon-accent: #4ade80;
  }

  html:not([data-theme="light"]) .icon-family-nerve {
    --icon-accent: #22d3ee;
  }
}

.peptide-list[data-view="compact"] .entity-heading {
  gap: 0.55rem;
}

.peptide-list[data-view="compact"] .entity-icon-peptide {
  width: 1.5rem;
  height: 1.5rem;
}

@media (max-width: 560px) {
  .entity-heading-stack {
    gap: 0.65rem;
  }

  .entity-icon-stack {
    width: 2.75rem;
    height: 2.75rem;
  }
}

.stack-purpose {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  /* Do not grow: growing purpose left a tall empty band before Components */
  flex: 0 0 auto;
}

.stack-components {
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.components-label {
  display: block;
  font-size: 0.7rem;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin-bottom: 0.45rem;
}

.component-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.component-pill {
  display: inline-flex;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--bg-muted);
  border: 1px solid var(--line);
  color: var(--ink) !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  font-weight: 600;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.component-pill:hover {
  background: var(--research-bg);
  border-color: var(--accent);
  color: var(--accent-ink) !important;
}

/* Footer */
.site-footer {
  padding: clamp(4.5rem, 9vw, 8rem) 0 3rem;
  border-top: 1px solid var(--hairline);
  background: transparent;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-inner p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.footer-note {
  max-width: 65ch;
  font-size: 0.82rem !important;
  color: var(--ink-faint) !important;
}

.back-top {
  align-self: flex-start;
  margin-top: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--accent-ink);
}

.back-top:hover {
  text-decoration: underline;
}

/* --- Pricing / protocol / interest list --- */
.how-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 860px) {
  .how-grid-3 {
    grid-template-columns: 1fr;
  }
}
.price-tint {
  background: var(--glass);
  box-shadow: inset 0 0 0 1px var(--hairline), var(--glass-shadow);
}
.badge-price {
  background: color-mix(in srgb, var(--accent) 18%, var(--bg-elevated));
  color: var(--accent-ink);
}
.protocol-block,
.stack-cost {
  margin: 0.85rem 0 1rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: linear-gradient(
    165deg,
    color-mix(in srgb, var(--research-bg) 55%, var(--bg-elevated)),
    var(--bg-elevated)
  );
}
.price-glance,
.cost-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.55rem;
  margin-top: 0.75rem;
}
.cost-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0.75rem;
  margin-top: 0.75rem;
  align-items: stretch;
}
.cost-hero-main {
  background: color-mix(in srgb, var(--accent-soft) 70%, var(--bg-elevated));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cost-hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 0.55rem;
}
.cost-value-lg {
  font-size: 1.65rem !important;
  line-height: 1.1;
}
.cost-hint {
  font-size: 0.75rem;
  color: var(--ink-faint);
  line-height: 1.35;
  max-width: 28ch;
}
.stack-monthly-list {
  list-style: none;
  margin: 0.7rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.stack-line-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
}
.stack-line-name {
  font-weight: 600;
  font-size: 0.92rem;
}
.stack-line-name em {
  font-style: normal;
  font-weight: 500;
  color: var(--ink-faint);
  font-size: 0.8rem;
}
.stack-line-money {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent-ink);
  white-space: nowrap;
}
.stack-line-meta {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 0.12rem;
}
.stack-line-bar {
  margin-top: 0.35rem;
  height: 5px;
  border-radius: 999px;
  background: var(--bg-muted);
  overflow: hidden;
}
.stack-line-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  min-width: 4%;
}
.stack-breakdown-details summary {
  color: var(--accent-ink);
}
@media (max-width: 560px) {
  .price-glance,
  .cost-strip {
    grid-template-columns: 1fr;
  }
  .cost-hero {
    grid-template-columns: 1fr;
  }
}
.price-stat,
.cost-cell {
  background: var(--bg-muted);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.price-stat-label,
.cost-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.price-stat-value,
.cost-value {
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--accent-ink);
  letter-spacing: -0.02em;
}
.price-stat-meta {
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.cost-story {
  margin: 0.75rem 0 0;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.45;
}
.price-blend-note {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-soft);
}
.price-disclaimer {
  margin: 0.65rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.protocol-details {
  margin-top: 0.75rem;
}
.protocol-details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.protocol-dl {
  margin: 0.65rem 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.45rem 0.75rem;
}
.protocol-dl div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.protocol-dl dt {
  font-family: var(--mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.protocol-dl dd {
  margin: 0;
  font-size: 0.9rem;
}
.cost-breakdown {
  list-style: none;
  margin: 0.65rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.cost-breakdown li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.88rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--line);
}
.cost-breakdown em {
  font-style: normal;
  color: var(--ink-faint);
  font-size: 0.8rem;
}
.duration-track {
  margin-top: 0.65rem;
  height: 6px;
  border-radius: 999px;
  background: var(--bg-muted);
  overflow: hidden;
}
.duration-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  min-width: 4%;
}
.btn-add {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-contrast);
  font: inherit;
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.18) inset,
    0 8px 20px color-mix(in srgb, var(--accent) 28%, transparent);
  transition:
    transform 0.15s var(--ease),
    background 0.15s ease,
    box-shadow 0.15s ease;
}
.btn-add:hover {
  background: var(--accent-ink);
  color: var(--accent-contrast);
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.14) inset,
    0 10px 24px color-mix(in srgb, var(--accent) 34%, transparent);
}
.btn-add:active {
  transform: scale(0.98) translateY(1px);
}
.btn-add.is-added {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
  box-shadow: none;
}
.btn-add-primary {
  /* primary CTA lock — same as .btn-add base */
}
.interest-count {
  display: inline-flex;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.35rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: color-mix(in srgb, #fff 22%, transparent);
  font-size: 0.75rem;
  margin-left: 0.35rem;
}
.interest-dock {
  /* The header "Your list" button carries the count and total; a second floating copy covered content. */
  display: none;
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 50;
}
.interest-dock-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-elevated) 92%, var(--accent-soft)),
    var(--bg-elevated)
  );
  box-shadow:
    var(--shadow),
    0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink);
  transition:
    transform 180ms var(--ease),
    box-shadow 180ms var(--ease),
    border-color 180ms var(--ease);
}
.interest-dock-toggle:hover {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow:
    0 1px 0 rgb(15 23 32 / 0.04),
    0 16px 36px rgb(15 23 32 / 0.1);
}
.interest-dock-toggle:active {
  transform: translateY(1px);
}
.interest-dock-total {
  font-family: var(--mono);
  color: var(--accent-ink);
  font-size: 0.92rem;
}
.interest-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgb(28 25 21 / 0.34);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 0.5rem;
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  animation: interest-scrim-in 200ms var(--ease);
}
.interest-sheet[hidden] {
  display: none !important;
}
.interest-sheet-inner,
.interest-sheet-dense {
  position: relative;
  /* Dense list mode: wider + taller sheet; list row is the only 1fr region. */
  width: min(100%, 36rem);
  height: min(96dvh, 920px);
  max-height: min(96dvh, 920px);
  display: grid;
  /* head | disclaimer | picker | list(1fr) | footer — dose lives in the head */
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  background: color-mix(in srgb, var(--bg) 88%, white);
  border: 1px solid var(--glass-edge);
  border-radius: calc(var(--radius) + 10px) calc(var(--radius) + 10px) 0 0;
  box-shadow:
    0 -8px 40px rgb(15 23 32 / 0.14),
    var(--shadow);
  padding: 0;
  animation: interest-sheet-up 240ms var(--ease);
}
.interest-sheet-inner {
  /* alias for legacy selector; dense class is the contract */
}
.interest-sheet-inner::before,
.interest-sheet-dense::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--metal);
  border-radius: calc(var(--radius) + 10px) calc(var(--radius) + 10px) 0 0;
}
@keyframes interest-scrim-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes interest-sheet-up {
  from {
    transform: translateY(12px);
    opacity: 0.86;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.interest-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem 0.3rem;
  flex: 0 0 auto;
}
.interest-sheet-title {
  min-width: 0;
  flex: 0 0 auto;
}
.interest-sheet-kicker {
  display: none;
}
.interest-sheet-head h2 {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.interest-close {
  border: 1px solid var(--line);
  background: var(--bg-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--ink-soft);
  cursor: pointer;
  min-height: 32px;
  min-width: 32px;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  transition:
    background 160ms var(--ease),
    color 160ms var(--ease),
    border-color 160ms var(--ease);
}
.interest-close:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--bg-elevated));
}
.interest-disclaimer {
  font-size: 0.72rem;
  color: var(--ink);
  margin: 0;
  padding: 0 0.75rem 0.6rem;
  line-height: 1.25;
  flex: 0 0 auto;
}
.interest-stack-picker {
  position: relative;
  z-index: 6;
  min-width: 0;
  padding: 0 0.7rem 0.45rem;
}
/* An open popover must paint above the sibling picker section below it. */
.interest-stack-picker:has([data-picker-popover]:not([hidden])) {
  z-index: 7;
}
.interest-stack-picker > label {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
}
.interest-picker-search {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  background: var(--bg-elevated);
  color: var(--ink);
  font: inherit;
  /* 16px or larger, or iOS Safari zooms the page when the box is tapped. */
  font-size: 1rem;
}
.interest-picker-search::placeholder {
  color: var(--ink-faint);
}
.interest-picker-search:focus-visible {
  border-color: var(--accent);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px var(--ring);
}
.interest-picker-search:disabled {
  cursor: not-allowed;
  color: var(--ink-faint);
  background: var(--bg-muted);
}
.interest-stack-popover {
  position: absolute;
  top: calc(100% - 0.35rem);
  left: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line));
  border-radius: var(--radius-sm);
  /* Solid: the list rows underneath must not show through the results. */
  background: linear-gradient(var(--bg-elevated), var(--bg-elevated)), var(--bg);
  box-shadow: var(--shadow);
  opacity: 1;
  transform: translateY(0);
  transform-origin: top center;
  transition:
    opacity var(--motion) var(--ease),
    transform var(--motion) var(--ease);
}
.interest-stack-popover[hidden] {
  display: none;
}
.interest-picker-results {
  margin: 0;
  padding: 0.25rem;
  /* The controlled listbox is the ARIA combobox popup and scrolling surface. */
  max-height: min(17rem, 40dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  list-style: none;
}
.interest-stack-option {
  min-width: 0;
  min-height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "name action"
    "summary action";
  align-items: center;
  column-gap: 0.7rem;
  padding: 0.42rem 0.55rem;
  border-radius: calc(var(--radius-sm) - 2px);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.interest-stack-option[hidden] {
  display: none;
}
.interest-stack-option + .interest-stack-option {
  border-top: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}
.interest-stack-option:hover:not([aria-disabled="true"]) {
  background: color-mix(in srgb, var(--research-bg) 72%, var(--bg-elevated));
}
.interest-stack-option:active:not([aria-disabled="true"]) {
  background: var(--accent-soft);
  transform: translateY(1px);
}
.interest-stack-option.is-active,
.interest-stack-option[aria-selected="true"] {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
  background: var(--accent-soft);
}
.interest-stack-option-name {
  grid-area: name;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
}
.interest-stack-option-summary {
  grid-area: summary;
  min-width: 0;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 0.68rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.interest-stack-option-action {
  grid-area: action;
  color: var(--accent-ink);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
}
.interest-stack-option[aria-disabled="true"] {
  cursor: default;
  color: var(--ink-faint);
  background: var(--bg-muted);
  opacity: 0.72;
}
.interest-stack-option[aria-disabled="true"] .interest-stack-option-name,
.interest-stack-option[aria-disabled="true"] .interest-stack-option-action {
  color: var(--ink-faint);
}
[data-picker-no-match],
[data-picker-empty] {
  margin: 0;
  padding: 0.7rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
/* Dose in head row — compact segment only */
.interest-sheet-head .interest-dose {
  flex: 1 1 auto;
  flex-direction: row;
  max-width: 16rem;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.interest-dose {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  flex: 0 0 auto;
}
.interest-dose.dose-mode {
  margin: 0;
  gap: 0.4rem;
}
.interest-dose-label,
.interest-dose .dose-mode-label {
  display: inline;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  white-space: nowrap;
  font-family: var(--font);
  text-transform: none;
}
.interest-dose .dose-mode-label {
  display: none; /* panel uses .interest-dose-label "Dose" */
}
.interest-dose .dose-mode-seg {
  width: 100%;
  display: flex;
}
.interest-dose .dose-mode-btn {
  flex: 1;
  min-height: 30px;
  padding: 0.18rem 0.4rem;
  font-size: 0.74rem;
  transition:
    background 160ms var(--ease),
    color 160ms var(--ease),
    box-shadow 160ms var(--ease);
}
.interest-dose-hint {
  display: none;
}
/* Primary flexible region: densest list surface for 8+ rows */
.interest-body {
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.05rem 0.6rem 0.3rem;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.interest-items {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.interest-stacks {
  padding: 0.3rem 0.35rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
  background: color-mix(in srgb, var(--research-bg) 55%, var(--bg-elevated));
}
.interest-stacks-label,
.interest-compounds-label {
  display: none;
}
.interest-stacks-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
.interest-stack-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
  padding: 0.15rem 0.28rem 0.15rem 0.4rem;
  border-radius: 999px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 600;
}
.interest-stack-remove {
  border: none;
  background: transparent;
  color: var(--ink-faint);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  min-width: 22px;
  min-height: 22px;
  padding: 0 0.08rem;
  border-radius: 999px;
  transition: color 150ms var(--ease), background 150ms var(--ease);
}
.interest-stack-remove:hover {
  color: var(--ink);
  background: var(--bg-muted);
}
.interest-compounds-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.22rem; /* density marker: tight row stack for 8+ peptides */
}
.interest-item,
.interest-item-dense {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.28rem 0.4rem; /* density: compact row padding */
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  transition: border-color 160ms var(--ease);
}
.interest-item:hover,
.interest-item-dense:hover {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  box-shadow: none;
}
.interest-compound-main {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.02rem;
}
.interest-compound-name {
  display: block;
  font-size: 0.84rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.interest-compound-line {
  display: block;
  margin-top: 0;
  font-size: 0.7rem;
  color: var(--ink-soft);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.interest-compound-benefit {
  display: block;
  margin-top: 0.05rem;
  font-size: 0.66rem;
  color: var(--ink-faint);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.interest-item-meta {
  display: none;
  font-size: 0.7rem;
  color: var(--ink-faint);
  margin-top: 0;
  line-height: 1.2;
}
.interest-item-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.28rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  flex-shrink: 0;
}
.interest-qty {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.interest-qty-btn {
  width: 1.75rem;
  height: 1.75rem;
  min-width: 32px;
  min-height: 32px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
  transition: background 150ms var(--ease);
}
.interest-qty-btn:hover:not(:disabled) {
  background: color-mix(in srgb, var(--accent-soft) 55%, var(--bg-muted));
}
.interest-qty-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.interest-qty-value {
  min-width: 1.15rem;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
}
.interest-remove {
  border: 1px solid color-mix(in srgb, var(--user) 28%, var(--line));
  background: color-mix(in srgb, var(--user-bg) 45%, var(--bg-elevated));
  color: var(--user-badge);
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  min-height: 32px;
  min-width: 32px;
  padding: 0;
  border-radius: 999px;
  text-decoration: none;
  transition:
    border-color 150ms var(--ease),
    color 150ms var(--ease),
    background 150ms var(--ease);
}
.interest-remove:hover {
  border-color: var(--user-badge);
  color: var(--ink);
}
.interest-remove:active {
  transform: translateY(1px);
}
.interest-empty {
  max-width: 24rem;
  margin: clamp(2rem, 16dvh, 9rem) auto 0;
  color: var(--ink-soft);
  font-family: var(--display);
  font-size: 1.2rem;
  line-height: 1.35;
  text-align: center;
  padding: 0.3rem 0.5rem 0.4rem;
}
.interest-empty strong {
  font-weight: 500;
  color: var(--ink);
}
.interest-footer {
  min-height: 0;
  padding: 0.4rem 0.7rem 0.55rem;
  border-top: 1px solid color-mix(in srgb, var(--line) 85%, transparent);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-elevated) 70%, var(--research-bg)),
    var(--bg-elevated)
  );
}
.interest-footer-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.35rem;
}
.interest-totals {
  margin: 0;
  flex: 1 1 11rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--research-bg) 88%, var(--bg-elevated));
  border: 1px solid color-mix(in srgb, var(--research) 24%, var(--line));
}
.interest-totals div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.6rem;
  font-size: 0.78rem;
}
.interest-total-main {
  font-weight: 600;
  font-size: 0.82rem !important;
}
.interest-total-main strong {
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}
.interest-total-sub {
  color: var(--ink-soft);
  font-size: 0.74rem !important;
}
.interest-totals strong {
  font-family: var(--mono);
  color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.interest-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.35rem;
}
.interest-actions .btn {
  cursor: pointer;
  border: none;
  min-height: 34px;
  padding: 0.3rem 0.65rem;
  font-size: 0.84rem;
  transition:
    transform 150ms var(--ease),
    box-shadow 150ms var(--ease),
    background 150ms var(--ease);
}
.interest-actions .btn-primary {
  flex: 1 1 auto;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--accent) 30%, transparent);
}
.interest-actions .btn-primary:hover {
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 22%, transparent);
}
.interest-actions a.btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.interest-contact {
  /* Redundant with Venmo block + Email Ken — hide to free list height. */
  display: none;
  margin: 0.4rem 0 0;
  font-size: 0.72rem;
  color: var(--ink-faint);
  line-height: 1.3;
}
.interest-band {
  border-top: 1px solid var(--hairline);
  background: transparent;
}
.interest-empty-hint {
  color: var(--ink-soft);
  max-width: 52ch;
}
.supply-note {
  max-width: 46rem;
  margin: 0 0 1.25rem;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.45;
}
.supply-note a {
  color: var(--ink);
  font-weight: 600;
  text-underline-offset: 0.15em;
  /* Padding grows the tap area; the negative margin keeps the line from spreading. */
  padding: 0.25rem 0.05rem;
  margin: -0.25rem 0;
}
.interest-footer .supply-note {
  max-width: none;
  margin: 0.4rem 0 0.1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
/* An empty list is for adding the first item. The supply line waits until a total is on screen. */
.interest-sheet:has(#interest-empty:not([hidden])) .interest-footer .supply-note {
  display: none;
}
/* Ordering: how to send the list, then how to reach Ken. */
.order-steps {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}
.order-steps h3,
.order-contact h3 {
  margin: 0;
  font-size: 1.1rem;
}
.order-contact {
  max-width: 40rem;
  margin-top: 1rem;
}
.order-contact .btn {
  margin-top: 1rem;
}
body.interest-open {
  overflow: hidden;
}

/* Dose intensity toggle on stacks */
.dose-mode {
  margin: 0.75rem 0 0.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.dose-mode-label {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.dose-mode-seg {
  display: inline-flex;
  align-self: flex-start;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem;
  background: var(--bg-muted);
  gap: 0.15rem;
}
.dose-mode-btn {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}
.dose-mode-btn:hover {
  color: var(--ink);
}
.dose-mode-btn.is-active {
  background: var(--bg-elevated);
  color: var(--accent-ink);
  box-shadow: 0 1px 2px rgb(15 23 32 / 0.08);
}
.dose-mode-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 52ch;
}
.dose-mode-hint strong {
  color: var(--ink);
  font-weight: 600;
}

/* Out of stock / waitlist
   Design read: calm restock signal (warm amber, not alarm red);
   calendar chip + soft hatch on OOS cards. Motion 2, density 4. */
.stock-banner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.85rem 1.1rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--user) 32%, var(--line));
  background:
    linear-gradient(
      125deg,
      color-mix(in srgb, var(--user-bg) 88%, var(--bg-elevated)) 0%,
      var(--bg-elevated) 55%
    );
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.45);
}
.stock-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--user-badge) 55%, transparent),
    var(--user-badge) 40%,
    color-mix(in srgb, var(--user-badge) 55%, transparent)
  );
}
.stock-banner-mark {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  background:
    radial-gradient(
      circle at 32% 30%,
      color-mix(in srgb, var(--user-badge) 22%, transparent),
      transparent 58%
    ),
    var(--bg-muted);
}
.stock-mark-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px dashed color-mix(in srgb, var(--user-badge) 65%, transparent);
}
.stock-mark-slash {
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 2px;
  margin-top: -1px;
  background: var(--user-badge);
  transform: rotate(-28deg);
  border-radius: 2px;
  opacity: 0.9;
}
.stock-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--user-badge);
  margin-bottom: 0.22rem;
}
.stock-title {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stock-body {
  margin: 0.35rem 0 0;
  font-size: 0.84rem;
  color: var(--ink-soft);
  line-height: 1.45;
  max-width: 48ch;
}
.stock-body strong {
  color: var(--ink);
  font-weight: 600;
}
.stock-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 4.6rem;
  padding: 0.45rem 0.55rem 0.5rem;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--user) 30%, var(--line));
  background: var(--bg-elevated);
  box-shadow: 0 1px 0 rgb(15 23 32 / 0.04);
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
}
.stock-date-label {
  display: block;
  width: 100%;
  margin: -0.45rem -0.55rem 0.35rem;
  padding: 0.22rem 0.4rem;
  border-radius: 9px 9px 0 0;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--user-contrast);
  background: var(--user-badge);
}
.stock-date-value {
  font-family: var(--mono);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  padding-top: 0.05rem;
}
.stock-banner-stack {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
  background:
    linear-gradient(
      125deg,
      color-mix(in srgb, var(--research-bg) 78%, var(--bg-elevated)) 0%,
      var(--bg-elevated) 55%
    );
}
.stock-banner-stack::before {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 55%, transparent),
    var(--accent) 40%,
    color-mix(in srgb, var(--accent) 55%, transparent)
  );
}
.stock-banner-stack .stock-kicker {
  color: var(--accent-ink);
}
.stock-banner-stack .stock-date {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}
.stock-banner-stack .stock-date-label {
  background: var(--accent);
  color: var(--accent-contrast);
}
.stock-banner-stack .stock-mark-ring {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
}
.stock-banner-stack .stock-mark-slash {
  background: var(--accent);
}
.stock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  margin-left: 0.45rem;
  padding: 0.2rem 0.55rem 0.2rem 0.42rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  vertical-align: middle;
  background: color-mix(in srgb, var(--user) 14%, transparent);
  color: var(--user-badge);
  border: 1px solid color-mix(in srgb, var(--user) 28%, transparent);
}
.stock-pill-dot {
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: var(--user-badge);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--user-badge) 45%, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .stock-pill-dot {
    animation: stock-pulse 2.4s var(--ease) infinite;
  }
}
@keyframes stock-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--user-badge) 40%, transparent);
    opacity: 1;
  }
  50% {
    box-shadow: 0 0 0 5px transparent;
    opacity: 0.75;
  }
}
.stock-pill-partial {
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent-ink);
  border-color: color-mix(in srgb, var(--accent) 28%, transparent);
}
.stock-pill-partial .stock-pill-dot {
  background: var(--accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent);
}
.stock-pill-sm {
  font-size: 0.6rem;
  margin-left: 0.3rem;
  padding: 0.12rem 0.4rem;
  gap: 0;
}
.peptide-card-oos,
.stack-card-oos {
  border-color: color-mix(in srgb, var(--user) 24%, var(--line));
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 10px,
      color-mix(in srgb, var(--user) 4%, transparent) 10px,
      color-mix(in srgb, var(--user) 4%, transparent) 11px
    );
}
.stack-card-oos {
  border-color: color-mix(in srgb, var(--accent) 22%, var(--line));
  background-image:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 10px,
      color-mix(in srgb, var(--accent) 5%, transparent) 10px,
      color-mix(in srgb, var(--accent) 5%, transparent) 11px
    );
}
.protocol-block.is-oos,
.stack-cost.is-oos {
  border-color: color-mix(in srgb, var(--user) 25%, var(--line));
}
.stack-line-oos {
  opacity: 0.92;
}
.stack-line-oos .stack-line-bar span {
  background: color-mix(in srgb, var(--user-badge) 55%, var(--line));
}
.btn-add-waitlist {
  border-color: transparent;
  color: var(--user-contrast);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--user-badge) 92%, #fff),
    var(--user-badge)
  );
  box-shadow:
    0 1px 0 rgb(255 255 255 / 0.2) inset,
    0 8px 20px color-mix(in srgb, var(--user-badge) 30%, transparent);
}
.btn-add-waitlist:hover {
  border-color: transparent;
  color: var(--user-contrast);
  background: color-mix(in srgb, var(--user-badge) 88%, #000);
}
.btn-add-waitlist.is-added {
  background: color-mix(in srgb, var(--user) 16%, var(--bg-elevated));
  border-color: var(--user-badge);
  color: var(--user-badge);
  box-shadow: none;
}
.interest-pay {
  margin-top: 0;
  flex: 0 1 auto;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  background: color-mix(in srgb, var(--research-bg) 70%, var(--bg-elevated));
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 0.35rem;
  row-gap: 0.05rem;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 150ms var(--ease),
    background 150ms var(--ease);
}
.interest-pay:hover {
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  background: color-mix(in srgb, var(--research-bg) 90%, var(--bg-elevated));
}
.interest-pay:active {
  transform: translateY(1px);
}
.interest-pay-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
  font-family: var(--font);
  color: var(--ink-soft);
}
.interest-pay-handle {
  font-size: 0.92rem;
  letter-spacing: -0.02em;
  color: var(--accent-ink);
}
.interest-pay-hint {
  flex: 1 1 100%;
  font-size: 0.65rem;
  color: var(--ink-faint);
  line-height: 1.2;
}
.interest-pay-note {
  display: none;
}
@media (min-width: 640px) {
  .interest-sheet {
    align-items: center;
    padding: 1rem;
  }
  .interest-sheet-inner,
  .interest-sheet-dense {
    border-radius: calc(var(--radius) + 10px);
    width: min(100%, 38rem);
    height: min(94dvh, 920px);
    max-height: min(94dvh, 920px);
  }
  .interest-sheet-inner::before,
  .interest-sheet-dense::before {
    border-radius: calc(var(--radius) + 10px) calc(var(--radius) + 10px) 0 0;
  }
}
.interest-item.is-waitlist {
  border: 1px solid color-mix(in srgb, var(--user) 25%, transparent);
  background: color-mix(in srgb, var(--user-bg) 45%, transparent);
}
@media (max-width: 640px) {
  .interest-picker-results {
    /* 4 complete 44px rows plus list padding keeps the footer comfortably visible. */
    max-height: min(11.5rem, 34dvh);
  }
  .interest-pay {
    flex: 1 1 100%;
  }
  .interest-actions .btn-primary {
    flex: 1 1 100%;
  }
  .interest-actions .btn-ghost {
    flex: 1 1 0;
  }
  .stock-banner {
    grid-template-columns: auto 1fr;
  }
  .stock-date {
    grid-column: 1 / -1;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
    padding: 0.35rem 0.55rem;
  }
  .stock-date-label {
    width: auto;
    margin: 0;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
  }
  .stock-date-value {
    padding-top: 0;
  }
}

/* ========== UX roadmap R1–R17 additions ========== */

/* R7 type. The hero line is large enough to hold the left side. */
.hero h1 {
  font-family: var(--display);
  font-size: clamp(4.8rem, 6.2vw, 5.6rem);
  letter-spacing: -0.04em;
  line-height: 0.86;
  font-weight: 500;
  max-width: 4.6ch;
  color: #4a433c;
}

@media (max-width: 800px) {
  .hero h1 {
    max-width: none;
    font-size: clamp(1.65rem, 6.8vw, 1.95rem);
    margin-bottom: 0.45rem;
    color: #4a433c;
  }

  .hero-kicker {
    margin-bottom: 0.35rem;
  }

  .hero-lede {
    margin-bottom: 0.75rem;
    font-size: 0.98rem;
  }

  .hero-facts {
    margin-top: 0.7rem;
  }
}
.section-head h2 {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  font-size: clamp(2.3rem, 4vw, 4rem);
}
.cost-value,
.price-stat-value,
[data-kit-total],
.interest-dock-total {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

/* R1 mobile nav */
.nav-menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 40px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--bg-muted);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  min-height: 36px;
  transition: background var(--motion) var(--ease), color var(--motion) var(--ease);
}
.theme-toggle:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent-soft) 40%, var(--bg-elevated));
}

@media (max-width: 820px) {
  .nav-menu-toggle {
    display: inline-flex;
    align-items: center;
  }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column;
    padding: 0.5rem 1rem 0.85rem;
    gap: 0.15rem;
    z-index: 40;
  }
  /* Open menu: a full-height frosted sheet under the header, large editorial links. */
  body.nav-open {
    overflow: hidden;
  }
  /* A backdrop-filter on the header would trap the fixed sheet inside the header box. */
  body.nav-open .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: color-mix(in srgb, var(--bg) 92%, white);
  }
  body.nav-open .primary-nav {
    display: flex;
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 45;
    margin: 0;
    padding: 1.75rem 1.25rem 2rem;
    gap: 0;
    counter-reset: navitem;
    background: color-mix(in srgb, var(--bg) 94%, transparent);
    backdrop-filter: blur(28px) saturate(1.4);
    -webkit-backdrop-filter: blur(28px) saturate(1.4);
    border-bottom: 0;
    box-shadow: none;
    animation: nav-sheet-in 320ms var(--ease);
  }
  body.nav-open .primary-nav a {
    counter-increment: navitem;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1.1rem 0.25rem;
    border-radius: 0;
    border-bottom: 1px solid var(--hairline);
    font-family: var(--display);
    font-size: 2.1rem;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--ink);
  }
  body.nav-open .primary-nav a::before {
    content: counter(navitem, decimal-leading-zero);
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    color: var(--metal-ink);
  }
  body.nav-open .primary-nav a:hover {
    background: none;
    color: var(--metal);
  }
  body.nav-open .interest-dock {
    visibility: hidden;
  }
  .site-header {
    position: sticky;
    top: 0;
  }
  .header-inner {
    position: relative;
    flex-wrap: nowrap;
    gap: 0.4rem;
    width: min(100% - 1.5rem, var(--wrap));
  }
  .logo {
    font-size: 1.2rem;
  }
  .nav-cta {
    padding: 0.4rem 0.65rem;
    font-size: 0.8rem;
  }
  .theme-toggle,
  .nav-menu-toggle {
    padding-inline: 0.5rem;
  }
}
@keyframes nav-sheet-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

/* R2 global dose bar */
.global-dose-bar {
  position: sticky;
  /* Tuck under the header's hairline so the two stuck bars read as one glass slab. */
  top: calc(var(--header-h) - 1px);
  z-index: 41;
  height: auto;
  min-height: var(--dose-bar-h);
  background: var(--glass);
  border-bottom: 1px solid var(--hairline);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}
.global-dose-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  height: 100%;
  min-height: 0;
  padding: 0;
}
.global-dose.dose-mode {
  margin: 0;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
}
.global-dose .dose-mode-label {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.02em;
  font-family: var(--font);
  color: var(--ink-soft);
}
.global-dose .dose-mode-seg {
  min-width: 0;
}
.global-dose .dose-mode-btn {
  min-height: 32px;
  font-size: 0.8rem;
  padding: 0.25rem 0.55rem;
}
.global-dose-hint {
  margin: 0;
  flex: 1 1 12rem;
  min-width: 0;
  font-size: 0.75rem;
  color: var(--ink-soft);
  line-height: 1.35;
  white-space: normal;
}

/* R4 filters */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 1rem;
}
.filter-chip {
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background var(--motion) var(--ease), border-color var(--motion) var(--ease), color var(--motion) var(--ease);
}
.filter-chip:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--line));
  color: var(--ink);
}
.filter-chip.is-active {
  background: var(--glass);
  border-color: color-mix(in srgb, var(--metal) 70%, var(--line));
  color: var(--ink);
}

/* R9 featured stack */
.featured-stack-wrap {
  margin-bottom: 1.25rem;
}
.stack-card-featured {
  border: 1px solid color-mix(in srgb, var(--metal) 55%, var(--glass-edge));
  background: var(--glass);
  box-shadow: var(--glass-shadow);
  padding: 1.45rem 1.2rem 1.25rem;
}
.featured-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--metal-ink);
  font-family: var(--mono);
}
.featured-note {
  margin: 0.85rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* R3 progressive disclosure */
.card-details {
  margin-top: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-muted) 40%, var(--bg-elevated));
  padding: 0.15rem 0.55rem 0.45rem;
}
.card-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 0.45rem 0.2rem;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.card-details > summary::-webkit-details-marker {
  display: none;
}
.card-details > summary::after {
  content: " +";
  color: var(--ink-faint);
  font-weight: 500;
}
.card-details[open] > summary::after {
  content: " −";
}
.stream-summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* R10 compact peptides */
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
}
.view-toggle {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-elevated);
}
.view-toggle-btn {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  color: var(--ink-soft);
}
.view-toggle-btn.is-active {
  background: color-mix(in srgb, var(--accent) 16%, var(--bg-elevated));
  color: var(--accent-ink);
}
.peptide-list[data-view="compact"] {
  gap: 0.35rem;
}
.peptide-list[data-view="compact"] .peptide-card {
  padding: 0.55rem 0.75rem;
}
.peptide-list[data-view="compact"] .peptide-summary,
.peptide-list[data-view="compact"] .card-details,
.peptide-list[data-view="compact"] .watch-block,
.peptide-list[data-view="compact"] .related,
.peptide-list[data-view="compact"] .protocol-details,
.peptide-list[data-view="compact"] .price-disclaimer,
.peptide-list[data-view="compact"] .price-blend-note,
.peptide-list[data-view="compact"] .price-glance .price-stat:nth-child(n + 2) {
  display: none;
}
.peptide-list[data-view="compact"] .protocol-block {
  margin-top: 0.35rem;
}
.peptide-list[data-view="compact"] .price-glance {
  display: flex;
  gap: 0.75rem;
}
.peptide-list[data-view="compact"] .btn-add {
  margin-top: 0.35rem;
}

/* R14 hero visual */
.hero-visual {
  position: relative;
  overflow: hidden;
}
.hero-orb {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .hero-orb {
    animation: hero-breathe 8s ease-in-out infinite;
  }
}
@keyframes hero-breathe {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 0.75; }
  50% { transform: scale(1.08) translate(-4%, 3%); opacity: 0.95; }
}

/* R15 videos */
.video-list {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.video-link {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  text-decoration: none;
  color: inherit;
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: background var(--motion) var(--ease);
}
.video-link:hover {
  background: var(--bg-muted);
}
.video-thumb {
  width: 5.5rem;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-muted);
}
.video-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}
.video-title {
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.video-top-pick {
  display: inline-block;
  margin-left: 0.35rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-ink);
  vertical-align: middle;
}
.video-item.is-top .video-link {
  border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line));
}

/* R6 toast + dock pulse */
.toast-region {
  position: fixed;
  left: 50%;
  bottom: 5.5rem;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  pointer-events: none;
  width: min(92vw, 22rem);
}
.toast {
  background: linear-gradient(var(--bg-elevated), var(--bg-elevated)), var(--bg);
  color: var(--ink);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity var(--motion) var(--ease), transform var(--motion) var(--ease);
}
/* With the list open, keep toasts off its order buttons. */
body.interest-open .toast-region {
  top: max(0.75rem, env(safe-area-inset-top));
  bottom: auto;
}
.toast.is-in {
  opacity: 1;
  transform: translateY(0);
}
.toast.is-out {
  opacity: 0;
  transform: translateY(6px);
}
.interest-dock-toggle.is-pulse {
  animation: dock-pulse 0.55s var(--ease);
}
@keyframes dock-pulse {
  0% { transform: scale(1); }
  40% { transform: scale(1.06); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .interest-dock-toggle.is-pulse,
  .hero-orb {
    animation: none !important;
  }
  .toast {
    transition: none;
  }
}

/* R5 next modal */
.next-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(28, 25, 21, 0.46);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.next-modal[hidden] {
  display: none !important;
}
.next-modal-inner {
  width: min(100%, 26rem);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: 1.25rem 1.3rem 1.2rem;
}
.next-modal-inner h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.next-steps {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.next-steps li {
  margin-bottom: 0.35rem;
}
.next-note {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  color: var(--ink-faint);
  line-height: 1.4;
}

/* R12 micro motion on primary controls */
.btn-add,
.btn-primary,
.nav-cta {
  transition: transform var(--motion) var(--ease), box-shadow var(--motion) var(--ease), background var(--motion) var(--ease), border-color var(--motion) var(--ease);
}
.btn-add:active,
.btn-primary:active,
.nav-cta:active {
  transform: translateY(1px) scale(0.99);
}

/* Waitlist quieter (R8) */
.btn-add-waitlist {
  --user-badge: var(--waitlist);
}
.stock-pill {
  border-color: color-mix(in srgb, var(--waitlist) 35%, var(--line));
  color: var(--waitlist);
}

html {
  scroll-padding-top: calc(var(--header-h) + var(--dose-bar-h) + 8px);
}

/* First-visit acceptance gate — trust-first overlay. */
.gate {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 2rem);
  background: rgba(28, 25, 21, 0.38);
  backdrop-filter: blur(8px);
}

.gate[hidden] {
  display: none;
}

html:not(.gate-done) body {
  overflow: hidden;
}

html.gate-done .gate {
  display: none;
}

.gate-card {
  display: flex;
  flex-direction: column;
  width: min(640px, 100%);
  max-height: min(88dvh, 720px);
  background: var(--glass);
  border: 1px solid var(--glass-edge);
  border-radius: 28px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  overflow: hidden;
}

html[data-theme="dark"] .gate,
html[data-theme="dark"] .next-modal {
  background: rgba(0, 0, 0, 0.62);
}

html[data-theme="dark"] .gate-card {
  background:
    linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)),
    rgba(14, 15, 18, 0.92);
}

@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .gate,
  html:not([data-theme="light"]) .next-modal {
    background: rgba(0, 0, 0, 0.62);
  }

  html:not([data-theme="light"]) .gate-card {
    background:
      linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06)),
      rgba(14, 15, 18, 0.92);
  }
}

.gate-scroll {
  min-height: 0;
  overflow-y: auto;
  padding: clamp(1.1rem, 2.5vw, 1.75rem);
}

.gate-head {
  margin-bottom: 1rem;
}

.gate-eyebrow {
  margin: 0 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--metal);
}

.gate-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.gate-intro {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.gate-body {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-soft);
}

.gate-section {
  padding-top: 0.85rem;
  margin-top: 0.85rem;
  border-top: 1px solid var(--line);
}

.gate-section:first-child {
  padding-top: 0;
  margin-top: 0;
  border-top: 0;
}

.gate-section h3 {
  margin: 0 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}

.gate-section p,
.gate-section ul {
  margin: 0.4rem 0 0;
}

.gate-section ul {
  padding-left: 1.1rem;
}

.gate-section li {
  margin-top: 0.2rem;
}

.gate-section li::marker {
  color: var(--ink-faint);
}

.gate-accept {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(0.9rem, 2vw, 1.25rem);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.gate-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 44px;
  padding: 0.35rem 0;
  cursor: pointer;
  user-select: none;
}

.gate-check input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.gate-check-box {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.05rem;
  border: 1.5px solid var(--ink-faint);
  border-radius: 5px;
  background: var(--bg-elevated);
  position: relative;
}

.gate-check input:focus-visible + .gate-check-box {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.gate-check input:checked + .gate-check-box {
  background: var(--accent);
  border-color: var(--accent);
}

.gate-check input:checked + .gate-check-box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid var(--accent-contrast);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.gate-check-text {
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--ink);
}

.gate-enter {
  width: 100%;
  min-height: 48px;
  font-size: 1rem;
}

.gate-enter:disabled {
  background: var(--bg-muted);
  color: var(--ink-faint) !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.gate-enter:not(:disabled):active {
  transform: scale(0.99);
}

@media (max-width: 480px) {
  .gate-section h3 {
    font-size: 0.66rem;
  }
  .gate-body {
    font-size: 0.84rem;
  }
}

/* Navigation and inner pages */
.primary-nav a[aria-current] {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--metal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.45em;
}
.nav-note {
  display: none;
}
.nav-cta-total {
  margin-left: 0.55rem;
  padding-left: 0.55rem;
  border-left: 1px solid color-mix(in srgb, var(--btn-ink) 28%, transparent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.section-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.65rem 0 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.section-note::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--metal);
}
.peptide-jump {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  mask-image: linear-gradient(90deg, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
}
.peptide-jump::-webkit-scrollbar {
  display: none;
}
.peptide-jump .chip {
  flex: none;
}
@media (max-width: 820px) {
  .nav-cta-total {
    display: none;
  }
  .nav-menu-toggle {
    margin-left: 0.5rem;
  }
  body.nav-open .global-dose-bar {
    visibility: hidden;
  }
  body.nav-open .primary-nav {
    padding-inline: 0.75rem;
  }
  body.nav-open .primary-nav a {
    padding-inline: 0;
  }
  body.nav-open .primary-nav a[aria-current] {
    text-decoration: none;
    border-bottom-color: var(--ink);
  }
  .band[id] {
    /* The phone dose bar wraps to a taller strip, so leave a little more room. */
    scroll-margin-top: -1.5rem;
  }
  body.nav-open .nav-note {
    display: block;
    margin: 0;
    padding-top: 1.75rem;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
}

/* Your list: translucent glass sheet with a designed empty state. */
.interest-sheet-inner,
.interest-sheet-dense {
  background: linear-gradient(165deg, var(--sheet-glass), color-mix(in srgb, var(--bg) 84%, transparent));
  backdrop-filter: blur(30px) saturate(1.5);
  -webkit-backdrop-filter: blur(30px) saturate(1.5);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    0 30px 80px rgb(28 25 21 / 0.18);
}
.interest-sheet-inner::before,
.interest-sheet-dense::before {
  display: none;
}
.interest-footer {
  background: color-mix(in srgb, var(--bg) 40%, transparent);
}
.interest-empty-glyph,
.interest-suggest {
  display: none;
}
.interest-body:has(#interest-empty:not([hidden])) .interest-empty-glyph {
  display: block;
  width: 46px;
  height: 92px;
  margin: clamp(1.5rem, 10dvh, 5rem) auto 0;
  border-radius: 23px;
  border: 1px solid var(--glass-edge);
  background:
    radial-gradient(circle at 34% 22%, rgb(255 255 255 / 0.9) 0 7%, transparent 22%),
    radial-gradient(circle at 60% 64%, color-mix(in srgb, var(--metal) 70%, transparent) 0 9%, transparent 11%),
    radial-gradient(circle at 42% 78%, color-mix(in srgb, var(--metal) 55%, transparent) 0 6%, transparent 8%),
    linear-gradient(90deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.12) 40%, rgb(28 25 21 / 0.08) 85%, rgb(255 255 255 / 0.4));
  box-shadow:
    inset 0 -18px 24px -12px color-mix(in srgb, var(--metal) 35%, transparent),
    0 18px 30px -14px rgb(28 25 21 / 0.35);
}
.interest-body:has(#interest-empty:not([hidden])) .interest-empty {
  margin-top: 1.25rem;
}
.interest-body:has(#interest-empty:not([hidden])) .interest-suggest {
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  margin: 1.5rem auto 1rem;
}
.interest-suggest-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.interest-suggest-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
}
.interest-suggest-btn {
  min-height: 40px;
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: var(--glass);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 6px 18px rgb(28 25 21 / 0.08);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 150ms var(--ease), background 150ms var(--ease);
}
.interest-suggest-btn:hover {
  background: var(--bg-elevated);
}
.interest-suggest-btn:active {
  transform: translateY(1px);
}

/* Stack cards: the add action sits under the kit price. */
.cost-hero-main .cost-hint {
  margin-bottom: 0.9rem;
}
.cost-hero-main .btn-add {
  margin-top: auto;
}
@media (max-width: 640px) {
  .pep-picker-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .pep-picker-row > * {
    flex: none;
  }
  /* Stepper order on phones: illustration, then Back/Next, then the words. */
  .pep-frame {
    display: flex;
    flex-direction: column;
  }
  .pep-stage {
    display: contents;
  }
  .pep-art {
    order: 1;
  }
  .pep-controls {
    order: 2;
    border-top: 0;
    border-bottom: 1px solid var(--line);
  }
  .pep-caption-track {
    order: 3;
  }
  .pep-outcome {
    order: 4;
  }
}

/* Explainer labels live in HTML strips so they stay readable when the drawing shrinks. */
.pep-art {
  min-width: 0;
}
.pep-zones {
  position: relative;
  height: 1.9rem;
}
.pep-zones span {
  position: absolute;
  top: 0.55rem;
  font-size: 1rem;
  line-height: 1;
  color: var(--ink-soft);
  white-space: nowrap;
}
.pep-zones span:nth-child(1) {
  left: 5%;
}
.pep-zones span:nth-child(2) {
  left: 40.6%;
}
.pep-zones span:nth-child(3) {
  left: 82.3%;
}
.pep-art-note {
  margin: 0;
  padding: 0.35rem 0.75rem 0.6rem 5%;
  font-size: 1rem;
  color: var(--ink-soft);
}
.pep-label-strong {
  font-size: 18px;
}
@media (max-width: 640px) {
  .pep-svg text {
    display: none;
  }
}

@media (max-width: 640px) {
  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    mask-image: linear-gradient(90deg, #000 85%, transparent);
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent);
  }
  .filter-bar > * {
    flex: none;
  }
  /* Phone cards: name, then price and Add, then the details. */
  .stack-card > * {
    order: 3;
  }
  .stack-card > .featured-kicker,
  .stack-card > .entity-heading {
    order: 1;
  }
  .stack-card > .stack-cost {
    order: 2;
  }
}
.interest-body:has(#interest-empty:not([hidden])) {
  display: flex;
  flex-direction: column;
  justify-content: safe center;
}
.interest-body:has(#interest-empty:not([hidden])) .interest-empty-glyph {
  width: 60px;
  height: 120px;
  border-radius: 30px;
  margin-top: 0;
}
.interest-body:has(#interest-empty:not([hidden])) .interest-empty {
  color: var(--ink);
}
.interest-suggest-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
  width: min(100%, 30rem);
}
.interest-suggest-btn {
  display: grid;
  gap: 0.35rem;
  justify-items: start;
  min-height: 5.5rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  text-align: left;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 500;
}
.interest-suggest-btn::after {
  content: "+ Add";
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--metal-ink);
}
.interest-body:has(#interest-empty:not([hidden])) > * {
  flex-shrink: 0;
}
.interest-body:has(#interest-empty:not([hidden])) .interest-suggest {
  align-self: stretch;
  margin-inline: 0;
}
.interest-suggest-row {
  margin-inline: auto;
}
@media (max-width: 640px) {
  .interest-body:has(#interest-empty:not([hidden])) .interest-empty-glyph {
    width: 40px;
    height: 80px;
    border-radius: 20px;
  }
  .interest-body:has(#interest-empty:not([hidden])) .interest-empty {
    font-size: 1.05rem;
    margin-top: 0.9rem;
  }
  .interest-body:has(#interest-empty:not([hidden])) .interest-suggest {
    margin-block: 1rem 0.5rem;
  }
  .interest-suggest-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .interest-suggest-btn {
    min-height: 4.25rem;
    padding: 0.7rem 0.75rem;
    font-size: 1rem;
  }
}

/* Inner-page glass: soft light fields behind the catalog, frosted cards on top. */
.stack-card,
.peptide-card,
.pep-frame,
.how-card {
  border: 1px solid var(--glass-edge);
  backdrop-filter: blur(22px) saturate(1.4);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
}
.protocol-block,
.stack-cost {
  border: 0;
  background: var(--well);
}
.price-stat,
.cost-cell,
.cost-hero-main {
  border: 0;
  background: var(--sheet-glass);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    0 10px 24px -18px rgb(28 25 21 / 0.35);
}
.section-head-row {
  max-width: none;
}
.pep-picker-label,
.interest-dose-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.pep-explainer h3 {
  margin-top: 2rem;
}
.pep-lede {
  margin-bottom: 2rem;
}

/* Header: glass sheen once past the hero; the dose switch floats as a small pill. */
body.past-hero .site-header {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.82), rgb(255 255 255 / 0.55));
  box-shadow:
    inset 0 -1px 0 var(--glass-edge),
    0 12px 30px -22px rgb(28 25 21 / 0.45);
}
html[data-theme="dark"] body.past-hero .site-header {
  background: var(--glass);
}
.global-dose-bar {
  background: none;
  border-bottom: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  pointer-events: none;
}
.global-dose-inner {
  justify-content: flex-end;
  padding-top: 0.5rem;
}
.global-dose {
  pointer-events: auto;
  padding: 0.3rem 0.35rem 0.3rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: var(--sheet-glass);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow:
    inset 0 1px 0 var(--glass-edge),
    0 12px 28px -18px rgb(28 25 21 / 0.4);
}
.global-dose-hint {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.nav-sheet-cta {
  display: none;
}
@media (max-width: 820px) {
  body.nav-open .primary-nav .nav-sheet-cta {
    display: block;
    margin-top: auto;
    min-height: 52px;
    border: 0;
    border-radius: 999px;
    background: var(--btn-bg);
    color: var(--btn-ink);
    font: inherit;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
  }
  body.nav-open .primary-nav .nav-sheet-cta .interest-count {
    min-width: 1.6rem;
    height: 1.6rem;
    margin-left: 0.5rem;
    font-family: var(--mono);
    font-size: 0.85rem;
    vertical-align: 0.05em;
  }
}

/* List panel: quieter controls, soft footer cards, an empty order button, and light in the glass. */
.interest-totals,
.interest-pay {
  border: 0;
  background: var(--sheet-glass);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 8px 20px -16px rgb(28 25 21 / 0.35);
}
body.nav-open.past-hero .site-header {
  background: color-mix(in srgb, var(--bg) 92%, white);
  box-shadow: none;
}
.band.how {
  border-block: 0;
}

/* Round 5: a real backdrop behind the inner pages so the frosted cards have something to frost. */
.band.how,
.band.stacks,
.band.peptides,
.band.interest-band {
  background:
    linear-gradient(var(--inner-veil), var(--inner-veil)),
    url("hero-wall.png?v=51") center / cover fixed,
    #a6906d; /* the image has a see-through seam; match its neighbours */
}
.stack-card,
.peptide-card,
.pep-frame,
.how-card {
  background: linear-gradient(160deg, rgb(255 255 255 / 0.72), rgb(255 255 255 / 0.3));
  box-shadow:
    inset 1px 1px 0 rgb(255 255 255 / 0.95),
    0 30px 70px -36px rgb(28 25 21 / 0.5);
}
.price-stat,
.cost-cell,
.cost-hero-main {
  background: linear-gradient(160deg, rgb(255 255 255 / 0.62), rgb(255 255 255 / 0.22));
  box-shadow:
    inset 1px 1px 0 rgb(255 255 255 / 1),
    0 10px 24px -18px rgb(28 25 21 / 0.4);
}
html[data-theme="dark"] :is(.stack-card, .peptide-card, .pep-frame, .how-card, .price-stat, .cost-cell, .cost-hero-main) {
  background: var(--card-glass);
  box-shadow: inset 1px 1px 0 var(--glass-edge), 0 30px 70px -36px rgb(0 0 0 / 0.6);
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) :is(.stack-card, .peptide-card, .pep-frame, .how-card, .price-stat, .cost-cell, .cost-hero-main) {
    background: var(--card-glass);
    box-shadow: inset 1px 1px 0 var(--glass-edge), 0 30px 70px -36px rgb(0 0 0 / 0.6);
  }
}
.btn-add {
  background: var(--cta-bg);
  color: var(--cta-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.25), 0 14px 28px -16px rgb(21 36 64 / 0.7);
}
.pep-carrier {
  fill: rgb(255 255 255 / 0.7);
  stroke: var(--metal);
  stroke-width: 1.5;
}
[data-pep-step="2"] .pep-carrier {
  stroke: var(--accent);
}
.nav-pace {
  display: none;
}

/* Desktop: the pace pill sits inside the header row instead of hanging under it. */
@media (min-width: 1200px) {
  .global-dose-bar {
    top: 0;
    height: var(--header-h);
    min-height: 0;
    margin-bottom: calc(-1 * var(--header-h));
  }
  .global-dose-inner {
    height: 100%;
    align-items: center;
    padding-top: 0;
    padding-right: 17.25rem;
  }
  .global-dose {
    padding-block: 0.15rem;
    box-shadow: none;
  }
}

@media (max-width: 820px) {
  /* Phone header: Close sits at the far right, and the menu carries its own list button. */
  .nav-menu-toggle {
    order: 3;
    margin-left: 0.4rem;
  }
  /* Open menu: drop the list button so Dark sits right beside Close; the sheet carries its own list button. */
  body.nav-open .nav-cta {
    display: none;
  }
  body.nav-open .nav-menu-toggle {
    margin-left: 0;
  }
  body.nav-open .primary-nav {
    background: var(--bg);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  body.nav-open .nav-pace {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.75rem;
  }
  body.nav-open .nav-pace .dose-mode-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-soft);
  }
}

@media (max-width: 640px) {
  /* The pace switch lives in the phone menu and the list panel, not over the page. */
  .global-dose-bar {
    display: none;
  }
  html {
    scroll-padding-top: calc(var(--header-h) + 8px);
  }
  .stack-card > .stack-components {
    order: 1;
  }
  .peptide-card {
    display: flex;
    flex-direction: column;
  }
  .peptide-card > * {
    order: 3;
  }
  .peptide-card > .peptide-head {
    order: 1;
  }
  .peptide-card > .protocol-block {
    order: 2;
  }
  .price-glance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
  }
  .price-stat {
    padding: 0.55rem 0.6rem;
  }
  .price-stat-value {
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .peptide-card > .peptide-summary {
    order: 3;
  }
  .protocol-block {
    display: flex;
    flex-direction: column;
  }
  .protocol-block > * {
    order: 2;
  }
  .protocol-block > .stream-head,
  .protocol-block > .price-glance {
    order: 0;
  }
  .protocol-block > .btn-add {
    order: 1;
  }
}

/* List panel: a confident title, fine frosted grain in the empty glass, and the order action first on phones. */
.interest-sheet-head h2 {
  font-family: var(--display);
  font-weight: 400;
}
.interest-body:has(#interest-empty:not([hidden])) {
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45 0 0 0 0 .4 0 0 0 0 .34 0 0 0 .1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    radial-gradient(320px 220px at 22% 18%, rgb(166 132 86 / 0.16), transparent 70%),
    radial-gradient(360px 240px at 82% 88%, rgb(110 140 185 / 0.16), transparent 70%);
}
#interest-email[aria-disabled="true"] {
  --btn-ink: var(--ink-soft);
  cursor: not-allowed;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}
@media (max-width: 640px) {
  .interest-footer {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
  }
  .interest-footer-summary {
    display: contents;
  }
  .interest-totals {
    order: 0;
    flex: none;
  }
  .interest-footer .supply-note {
    order: 1;
  }
  .interest-actions {
    order: 2;
    margin-top: 0;
  }
  .interest-pay {
    order: 3;
    flex: none;
  }
  .interest-email-hint {
    order: 4;
  }
}

/* Round 6 stacks: one box inside the card, a lit card face, and a brass cost chip. */
.stack-card {
  background:
    radial-gradient(90% 55% at 0% 0%, rgb(255 255 255 / 0.6), transparent 70%),
    linear-gradient(115deg, rgb(255 255 255 / 0.74), rgb(255 255 255 / 0.26) 55%, rgb(166 132 86 / 0.16));
}
.stack-cost {
  margin: 0.25rem 0 0.5rem;
  padding: 0;
  background: none;
  box-shadow: none;
}
.badge-price {
  background: rgb(166 132 86 / 0.24);
  color: color-mix(in srgb, var(--metal-ink) 75%, var(--ink));
}

/* Round 6 peptides: thin glass that lets the wall read through, and a framed product icon. */
.peptide-card {
  background: linear-gradient(160deg, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.1));
  backdrop-filter: blur(4px) saturate(1.6);
  -webkit-backdrop-filter: blur(4px) saturate(1.6);
}
.peptide-card .price-stat {
  background: linear-gradient(160deg, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.1));
}
.peptide-card .protocol-block {
  padding: 0;
  background: none;
}
.peptide-card .entity-icon-peptide {
  box-sizing: content-box;
  padding: 0.4rem;
  border: 1.5px solid rgb(166 132 86 / 0.7);
  border-radius: 14px;
  background: rgb(255 255 255 / 0.6);
  box-shadow: inset 0 1px 0 #fff;
}

/* Round 6 explainer: the capsule waits outside the skin and the beads drift in as dots.
   The stage drops its own grey shading so the lighter right side of the page shows through. */
.pep-drop circle:nth-child(2) { opacity: 0.8; }
.pep-drop circle:nth-child(3) { opacity: 0.6; }
.pep-drop circle:nth-child(4) { opacity: 0.45; }
.pep-drop circle:nth-child(5) { opacity: 0.3; }
.pep-frame {
  background: linear-gradient(90deg, rgb(255 255 255 / 0.5), rgb(255 255 255 / 0.72));
}
.pep-stage,
.pep-outcome {
  background: none;
}

/* Round 6 list panel: a large title as the focal point, air under the disclaimer,
   and on phones the pace switch takes its own row so it never crowds Close. */
.interest-sheet-head h2 {
  font-size: 3.25rem;
  line-height: 1;
}
.interest-disclaimer {
  padding-bottom: 1.25rem;
}
@media (max-width: 640px) {
  .interest-sheet-head {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
  .interest-sheet-head h2 {
    font-size: 2.25rem;
  }
  .interest-sheet-head .interest-dose {
    order: 3;
    flex: 1 0 100%;
    max-width: none;
  }
}

/* Ship polish */
.interest-totals[hidden] {
  display: none;
}
.interest-email-hint {
  display: none;
  order: 1;
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.interest-footer:has(#interest-email[aria-disabled="true"]) .interest-email-hint {
  display: block;
}
/* The capsule appears only on the steps whose captions mention it. */
.pep-entry {
  opacity: 0;
  transition: opacity 300ms var(--ease);
}
[data-pep-step="2"] .pep-entry,
[data-pep-step="3"] .pep-entry {
  opacity: 1;
}
/* Keep the cell drawing off the card and panel edge. */
.pep-svg {
  box-sizing: border-box;
  padding-right: 16px;
}

/* Hero: one lit room scene in every theme, rendered at its design size and scaled to the screen. */
.hero {
  --ink: #1c1915;
  --ink-soft: #5c564c;
  --ink-faint: #645d52;
  --line: rgba(28, 25, 21, 0.14);
  --hairline: rgba(28, 25, 21, 0.14);
  --accent: #1c1915;
  --accent-contrast: #f6f1e8;
  --btn-bg: #1c1915;
  --btn-ink: #f6f1e8;
  color: var(--ink);
}
@media (min-width: 801px) {
  .hero {
    background: none;
  }
  .hero-scene {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 50%;
    width: 1440px;
    height: 900px;
    transform: translate(-50%, -50%) scale(var(--hero-scale, 1));
    background:
      url("hero-wall.png?v=51") center / 100% 100% no-repeat,
      radial-gradient(ellipse 58% 46% at 16% 24%, #c9b496 0%, rgba(201, 180, 150, 0) 68%),
      radial-gradient(ellipse 50% 42% at 4% 78%, #e4d5c0 0%, rgba(228, 213, 192, 0) 62%),
      radial-gradient(ellipse 42% 56% at 72% 40%, #b08968 0%, rgba(122, 90, 66, 0) 70%),
      linear-gradient(96deg, #f7f2ea 0%, #f4efe6 32%, #e7d5c0 44%, #8d6b52 64%, #6a4c38 76%, #3f2c22 78%, #6b4e3c 100%);
  }
  .hero-scene::before {
    content: "";
    position: absolute;
    z-index: 0;
    left: 8%;
    bottom: 10px;
    width: 1200px;
    height: 300px;
    border-radius: 50%;
    background: #c6ad88;
    filter: blur(1.25px);
    box-shadow:
      inset 0 -18px 0 #b6a184,
      0 22px 36px rgba(70, 52, 28, 0.2);
  }
  /* The headline sits where it does in the 1440x900 design, at the same scale as the scene. */
  .hero-copy {
    width: min(calc(480px * var(--hero-scale, 1)), 48vw);
    max-width: none;
    margin-left: max(1.25rem, calc((100% - 1440px * var(--hero-scale, 1)) / 2 + 160px * var(--hero-scale, 1)));
    padding-top: max(
      calc(var(--header-h) + 1.25rem),
      calc((100svh - 900px * var(--hero-scale, 1)) / 2 + 262px * var(--hero-scale, 1))
    );
  }
  /* Four balanced lines beside the molecule; short screens shrink the type so the button stays visible. */
  .hero h1 {
    max-width: min(calc(470px * var(--hero-scale, 1)), 46vw);
    margin-bottom: max(30px, calc(34px * var(--hero-scale, 1)));
    font-size: min(calc(66px * var(--hero-scale, 1)), 5vw, calc((100svh - 240px) / 4.2));
    line-height: 1.04;
    letter-spacing: -0.03em;
  }
  .hero-scene::after {
    content: "";
    position: absolute;
    z-index: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 40px;
    background: linear-gradient(180deg, rgba(196, 168, 136, 0) 0%, rgba(214, 186, 152, 0.95) 100%);
    /* Fade the floor band in from the left so it has no hard vertical edge. */
    mask-image: linear-gradient(90deg, transparent 25%, #000 75%);
    -webkit-mask-image: linear-gradient(90deg, transparent 25%, #000 75%);
    pointer-events: none;
  }
}

/* Dark mode: a solid dark header, so light links never sit on the light hero. */
html[data-theme="dark"] .site-header,
html[data-theme="dark"] body.past-hero .site-header {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  box-shadow: none;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .site-header,
  html:not([data-theme="light"]) body.past-hero .site-header {
    background: color-mix(in srgb, var(--bg) 92%, transparent);
    box-shadow: none;
  }
}

/* Hero plate: the museum caption beside the sequence molecule. Placed in the 1440x900 scene on desktop.
   In a window squarer than the scene (--hero-fit < 1) it shrinks with the molecule and keeps its right
   edge inside the window, but never below 0.8 of its size on screen. */
.hero-plate {
  --plate-k: max(var(--hero-fit, 1), 0.8 / var(--hero-scale, 1));
  position: absolute;
  z-index: 2;
  left: calc(720px + 666px * var(--hero-fit, 1) - 268px * var(--plate-k));
  bottom: 292px;
  width: 268px;
  scale: var(--plate-k);
  transform-origin: 0 100%;
  padding: 16px 18px 14px;
  border: 1px solid rgb(255 255 255 / 0.62);
  border-top: 1px solid rgb(166 132 86 / 0.7);
  border-radius: 3px;
  background: linear-gradient(160deg, rgb(255 253 248 / 0.62), rgb(250 242 230 / 0.38));
  box-shadow: 0 18px 40px rgb(70 50 26 / 0.12);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  color: #2d2419;
  transition:
    opacity 380ms var(--ease),
    transform 380ms var(--ease);
}
.hero-plate.is-swapping {
  opacity: 0;
  transform: translateY(4px);
}
.hero-plate-kicker {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #775a33;
}
.hero-plate-name {
  margin: 8px 0 0;
  font-family: var(--display);
  font-weight: 500;
  font-size: 30px;
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero-plate-count {
  margin: 4px 0 0;
  font-family: var(--font);
  font-size: 13px;
  color: #5c564c;
}
.hero-plate-label {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid rgb(166 132 86 / 0.35);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #775a33;
}
.hero-plate-studied {
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: #2f261c;
}
@media (min-width: 801px) {
  .hero-plate-studied li::before {
    content: "";
    display: inline-block;
    width: 10px;
    height: 1px;
    margin-right: 8px;
    vertical-align: middle;
    background: #9a7442;
  }
}
.hero-plate-note {
  margin: 6px 0 0;
  font-family: var(--font);
  font-size: 13px;
  color: #4f473d;
}
.hero-plate-ticks {
  display: flex;
  gap: 4px;
  margin: 12px 0 0;
}
.hero-plate-ticks span {
  width: 12px;
  height: 5px;
  border-radius: 3px;
  background: rgb(92 66 34 / 0.38);
  box-shadow: inset 0 0 0 1px rgb(74 54 32 / 0.35);
  transition: background 380ms var(--ease);
}
.hero-plate-ticks span.is-on {
  background: #3a2814;
  box-shadow: none;
}
@media (max-width: 800px) {
  .hero-plate {
    left: 1.25rem;
    right: 1.25rem;
    bottom: 12px;
    width: auto;
    padding: 8px 0 0;
    border: 0;
    border-top: 1px solid rgb(166 132 86 / 0.55);
    border-radius: 0;
    background: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: baseline;
    column-gap: 10px;
  }
  /* The descender of "peptides." keeps at least 12px of air above the button. */
  .hero h1 {
    margin-bottom: 1.15rem;
    line-height: 1.06;
  }
  .hero-plate-kicker,
  .hero-plate-note {
    display: none;
  }
  .hero-plate-name {
    margin: 0;
    font-size: 20px;
  }
  .hero-plate-count {
    margin: 0;
    font-size: 12px;
  }
  .hero-plate-ticks {
    grid-column: 3;
    grid-row: 1;
    margin: 0;
    align-self: center;
  }
  .hero-plate-ticks {
    gap: 3px;
  }
  .hero-plate-ticks span {
    width: 6px;
  }
  .hero-plate-label {
    display: none;
  }
  /* One line on the phone: terms separated by middle dots. */
  .hero-plate-studied {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    padding-top: 6px;
    border-top: 1px solid rgb(166 132 86 / 0.35);
    font-size: 12.5px;
    line-height: 1.4;
  }
  .hero-plate-studied li {
    display: inline;
  }
  .hero-plate-studied li + li::before {
    content: " · ";
    color: #9a7442;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-plate,
  .hero-plate-ticks span {
    transition: none;
  }
}

/* Your list on phones: while a search box has focus, hide the pace switch,
   disclaimer and the other search box so results sit above the keyboard. */
@media (max-width: 640px) {
  .interest-sheet-inner:has(.interest-picker-search:focus) .interest-disclaimer,
  .interest-sheet-inner:has(.interest-picker-search:focus) .interest-sheet-head .interest-dose,
  .interest-sheet-inner:has(.interest-picker-search:focus) .interest-stack-picker:not(:has(:focus)) {
    display: none;
  }
  .interest-sheet-inner:has(.interest-picker-search:focus) .interest-sheet-head {
    padding-bottom: 0.7rem;
  }
  /* Pin rows so hiding the disclaimer does not shift the footer into the 1fr row. */
  .interest-body {
    grid-row: 4;
  }
  .interest-footer {
    grid-row: 5;
  }
  /* Let the price line wrap so the monthly cost is not cut off. */
  .interest-compound-line {
    white-space: normal;
  }
}
/* Short screens: the whole sheet scrolls, so a long list is not squeezed into
   a sliver between the pickers and the footer. The head stays pinned. */
@media (max-width: 640px), (max-height: 500px) {
  .interest-sheet-inner,
  .interest-sheet-dense {
    grid-template-rows: auto auto auto 1fr auto;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .interest-body,
  .interest-footer {
    min-height: auto;
    overflow: visible;
  }
  .interest-footer {
    padding-bottom: 0.9rem;
  }
  .interest-sheet-head {
    position: sticky;
    top: 0;
    z-index: 8;
    background: color-mix(in srgb, var(--bg) 92%, white);
  }
}
