/* Build a Peptide Brand. One stylesheet, no framework. Brand tokens first. */

@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-var.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument";
  src: url("/fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f6f4ee;
  --surface: #ffffff;
  --ink: #14171a;
  --muted: #545960;
  --line: #e1ddd2;
  --line-strong: #c9c4b6;
  --green: #0f3d2e;
  --green-2: #16583f;
  --green-soft: #e6efe9;
  --lime: #d9f45c;
  --lime-deep: #b8d63a;
  --warn-bg: #fff6e0;
  --warn-line: #e3b341;
  --err: #a3261b;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 23, 26, 0.06), 0 8px 24px rgba(20, 23, 26, 0.06);
  --display: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Instrument", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--green-2); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--green); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green-2); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 750; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 720; letter-spacing: -0.025em; }
h3 { font-size: 1.25rem; font-weight: 680; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
strong, b { font-weight: 650; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 238, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--green); }
.mark { width: 26px; height: 26px; }
.wordmark { font-family: var(--display); font-weight: 600; font-size: 1.12rem; letter-spacing: -0.02em; color: var(--ink); white-space: nowrap; }
.wordmark b { font-weight: 780; color: var(--green); }
.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: 0.96rem; padding: 8px 12px; border-radius: 999px; }
.nav a:hover { background: rgba(15, 61, 46, 0.07); }
.nav a[aria-current="page"] { background: var(--green-soft); color: var(--green); }
.nav .nav-apply { display: none; }
.nav-toggle { display: none; }
.header-cta { flex-shrink: 0; }

@media (max-width: 900px) {
  .header-inner { gap: 12px; min-height: 60px; }
  .nav-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-strong);
    border-radius: 12px; background: var(--surface); cursor: pointer; order: 3;
  }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform 0.2s, background 0.2s;
  }
  .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
  .nav-toggle span::before { top: -6px; }
  .nav-toggle span::after { top: 6px; }
  .nav-open .nav-toggle span { background: transparent; }
  .nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }
  .header-cta { order: 2; margin-left: auto; padding: 9px 14px; font-size: 0.9rem; }
  .nav-toggle { margin-left: 0; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 16px 18px;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 23, 26, 0.08);
  }
  .nav-open .nav { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1.05rem; border-radius: 12px; }
  .nav .nav-apply { display: block; background: var(--green); color: #fff; text-align: center; margin-top: 8px; }
}


/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 650; font-size: 1rem; line-height: 1.2;
  padding: 14px 22px; border-radius: 999px; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); color: #fff; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.btn-lime { background: var(--lime); color: var(--green); }
.btn-lime:hover { background: #e6fb7c; color: var(--green); text-decoration: none; }
.btn-sm { padding: 10px 16px; font-size: 0.94rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- generic sections ---------- */
.section { padding: 88px 0; }
.section.tight { padding: 56px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section.dark { background: var(--green); color: #e9f0ec; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section.dark a { color: var(--lime); }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section.dark .section-head p { color: #c4d5cb; }
.kicker { display: inline-block; font-weight: 650; font-size: 0.95rem; color: var(--green-2); margin-bottom: 12px; }
.section.dark .kicker { color: var(--lime); }
@media (max-width: 700px) { .section { padding: 60px 0; } .section-head { margin-bottom: 32px; } }

/* ---------- hero ---------- */
.hero { padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero h1 .hl { background: linear-gradient(transparent 62%, var(--lime) 62%, var(--lime) 92%, transparent 92%); padding: 0 2px; }
.hero-lede { font-size: 1.2rem; color: #33383d; max-width: 34em; margin-bottom: 28px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.97rem; }
.hero-proof li { display: flex; align-items: center; gap: 8px; }
.hero-proof li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green-2); flex-shrink: 0; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding: 40px 0 56px; } }

/* label builder (hero demo) */
.builder {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow);
  padding: 28px; display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: center;
}
.builder-vial { width: 150px; }

.builder-controls label { display: block; font-weight: 650; font-size: 0.95rem; margin-bottom: 6px; }
.builder-controls input[type="text"] {
  width: 100%; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--paper); color: var(--ink);
}
.builder-controls input[type="text"]:focus { border-color: var(--green-2); outline: none; box-shadow: 0 0 0 3px rgba(22, 88, 63, 0.18); }
.swatches { display: flex; gap: 10px; margin: 16px 0 6px; padding: 0; border: 0; }
.swatches legend { font-weight: 650; font-size: 0.95rem; margin-bottom: 8px; padding: 0; }
.swatch { position: relative; }
.swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch span { display: block; width: 34px; height: 34px; border-radius: 50%; border: 2px solid rgba(0, 0, 0, 0.12); cursor: pointer; }
.swatch input:checked + span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--ink); }
.swatch input:focus-visible + span { outline: 3px solid var(--green-2); outline-offset: 4px; }
.builder-note { color: var(--muted); font-size: 0.9rem; margin: 14px 0 0; }
.demo-tag { display: inline-block; font-size: 0.82rem; font-weight: 650; color: var(--green-2); background: var(--green-soft); border-radius: 999px; padding: 3px 10px; margin-bottom: 14px; }
@media (max-width: 520px) {
  .builder { grid-template-columns: 1fr; padding: 20px; gap: 18px; justify-items: center; }
  .builder-vial { width: 120px; }
  .builder-controls { width: 100%; }
}

/* ---------- logos/strip ---------- */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.strip-inner { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 26px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-family: var(--display); font-size: 1.9rem; font-weight: 750; letter-spacing: -0.02em; color: var(--green); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 800px) {
  .strip-inner { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.steps li::before {
  content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--green);
  font-family: var(--display); font-weight: 780; margin-bottom: 14px;
}
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--muted); margin: 0; font-size: 0.98rem; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- cards / grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card .price { display: block; font-family: var(--display); font-weight: 720; font-size: 1.15rem; color: var(--green); margin-bottom: 6px; }
.section.dark .card { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.section.dark .card p { color: #c4d5cb; }

.split-list { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split-list .card ul { margin: 12px 0 0; padding: 0; list-style: none; }
.split-list .card li { padding: 9px 0 9px 30px; border-top: 1px solid var(--line); position: relative; }
.split-list .card li:first-of-type { border-top: 0; }
.split-list .us li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 12px; height: 7px; border-left: 2.5px solid var(--green-2); border-bottom: 2.5px solid var(--green-2); transform: rotate(-45deg); }
.split-list .you li::before { content: ""; position: absolute; left: 6px; top: 15px; width: 9px; height: 9px; border-radius: 50%; border: 2.5px solid var(--ink); }
.split-list .us { border-color: var(--green-2); box-shadow: inset 0 4px 0 var(--green-2); }
@media (max-width: 760px) { .split-list { grid-template-columns: 1fr; } }

/* ---------- compare (three models) ---------- */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.model { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.model h3 { color: #fff; font-size: 1.1rem; margin-bottom: 4px; }
.model .model-cost { font-family: var(--display); font-size: 1.7rem; font-weight: 760; color: #fff; letter-spacing: -0.02em; line-height: 1.15; margin: 10px 0 6px; }
.model .model-sub { color: #b7cabe; font-size: 0.95rem; margin-bottom: 14px; }
.model ul { margin: auto 0 0; padding: 0; list-style: none; color: #d6e3db; font-size: 0.97rem; }
.model li { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.model.ours { background: var(--lime); border-color: var(--lime); }
.model.ours h3, .model.ours .model-cost { color: var(--green); }
.model.ours .model-sub, .model.ours ul { color: #22412f; }
.model.ours li { border-top-color: rgba(15, 61, 46, 0.18); }
.models-note { margin-top: 18px; color: #b7cabe; font-size: 0.92rem; }
@media (max-width: 900px) { .models { grid-template-columns: 1fr; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 14px 18px; border-top: 1px solid var(--line); vertical-align: top; }
thead th { border-top: 0; background: #faf9f5; font-weight: 650; color: var(--ink); white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr:first-child td { border-top: 0; }
thead + tbody tr:first-child td { border-top: 1px solid var(--line); }
.table-caption { color: var(--muted); font-size: 0.92rem; margin-top: 10px; }
@media (max-width: 640px) {
  table.stack thead { display: none; }
  table.stack tr { display: block; padding: 12px 16px; border-top: 1px solid var(--line); }
  table.stack tbody tr:first-child { border-top: 0; }
  table.stack td { display: flex; justify-content: space-between; gap: 16px; border: 0; padding: 4px 0; text-align: left; }
  table.stack td::before { content: attr(data-label); color: var(--muted); font-weight: 550; flex-shrink: 0; max-width: 45%; }
  table.stack td.num { text-align: right; }
  table.stack td:first-child { font-weight: 650; display: block; }
  table.stack td:first-child::before { content: none; }
}

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.calc-in { padding: 30px; }
.calc-out { padding: 30px; background: var(--green); color: #e9f0ec; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 650; margin-bottom: 6px; font-size: 0.97rem; }
.field .hint { display: block; color: var(--muted); font-size: 0.88rem; margin-top: 4px; }
.input-prefix { display: flex; align-items: stretch; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); overflow: hidden; }
.input-prefix:focus-within { border-color: var(--green-2); box-shadow: 0 0 0 3px rgba(22, 88, 63, 0.18); }
.input-prefix span { padding: 12px 0 12px 14px; color: var(--muted); font-weight: 600; }
.input-prefix input, .field input[type="number"] { flex: 1; min-width: 0; font: inherit; font-size: 1.05rem; padding: 12px 14px; border: 0; background: transparent; color: var(--ink); font-variant-numeric: tabular-nums; }
.input-prefix input:focus { outline: none; }
.calc-out h3 { color: #fff; font-size: 1.05rem; margin-bottom: 16px; }
.calc-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid rgba(255, 255, 255, 0.14); font-variant-numeric: tabular-nums; }
.calc-line:first-of-type { border-top: 0; }
.calc-line span:first-child { color: #c4d5cb; }
.calc-line strong { color: #fff; }
.calc-big { margin: 18px 0 6px; padding: 18px; background: rgba(255, 255, 255, 0.08); border-radius: var(--radius-sm); }
.calc-big span { display: block; color: #c4d5cb; font-size: 0.92rem; }
.calc-big strong { display: block; font-family: var(--display); font-size: 2.2rem; color: var(--lime); letter-spacing: -0.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.calc-flag { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: rgba(217, 244, 92, 0.14); color: #eef7d0; font-size: 0.93rem; }
.calc-flag.warn { background: #fff1c9; color: #4a3a05; }
.calc-foot { margin-top: 14px; color: #b7cabe; font-size: 0.86rem; }
@media (max-width: 820px) { .calc { grid-template-columns: 1fr; } .calc-in, .calc-out { padding: 22px; } }

/* ---------- faq ---------- */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--display); font-weight: 650; font-size: 1.14rem; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; margin-top: -8px;
  border-right: 2.5px solid var(--green-2); border-bottom: 2.5px solid var(--green-2); transform: rotate(45deg); transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-a { padding: 0 0 20px; color: #33383d; max-width: 68ch; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--green); border-radius: 28px; padding: 56px; color: #e9f0ec; display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #c4d5cb; margin: 0; font-size: 1.08rem; }
.cta-band .btn-row { justify-content: flex-end; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; padding: 34px 24px; } .cta-band .btn-row { justify-content: flex-start; } }

/* ---------- breadcrumbs ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 22px; font-size: 0.92rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: 48px 0 40px; }
.page-hero .lede { font-size: 1.2rem; color: #33383d; max-width: 40em; }
.page-hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 18em; }

/* ---------- guides ---------- */
.guide-head { padding: 48px 0 24px; }
.guide-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); max-width: 16em; }
.byline { color: var(--muted); font-size: 0.95rem; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; align-items: start; padding-bottom: 72px; }
.toc { position: sticky; top: 92px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; font-size: 0.94rem; }
.toc h2 { font-family: var(--body); font-size: 0.95rem; font-weight: 700; letter-spacing: 0; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.1em; }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink); text-decoration: none; }
.toc a:hover { color: var(--green-2); text-decoration: underline; }
.toc .toc-cta { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.toc .toc-cta p { color: var(--muted); margin-bottom: 10px; }
@media (max-width: 1000px) { .guide-layout { grid-template-columns: 1fr; gap: 0; } .toc { display: none; } }

.prose { max-width: 70ch; font-size: 1.06rem; }
.prose h2 { font-size: clamp(1.55rem, 2.8vw, 2rem); margin-top: 2.1em; scroll-margin-top: 92px; }
.prose h3 { font-size: 1.22rem; margin-top: 1.6em; }
.prose p, .prose li { color: #262a2f; }
.prose li { margin-bottom: 0.45em; }
.prose .table-wrap { margin: 1.2em 0 1.4em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--green-2); color: #33383d; }
.takeaways { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--lime-deep); border-radius: var(--radius); padding: 22px 26px; margin: 8px 0 28px; }
.takeaways h2 { font-family: var(--body); font-size: 1rem; font-weight: 700; margin: 0 0 10px; letter-spacing: 0; }
.takeaways ul { margin: 0; }
.callout { background: var(--green-soft); border-radius: var(--radius); padding: 20px 24px; margin: 1.4em 0; }
.callout p:last-child { margin: 0; }
.callout.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); }
.sources { font-size: 0.93rem; color: var(--muted); }
.sources li { color: var(--muted); }
.guide-cta { margin: 2.4em 0 0; }

.guide-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guide-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; text-decoration: none; color: var(--ink); position: relative; transition: border-color 0.15s, transform 0.15s; }
.guide-card:hover { border-color: var(--green-2); transform: translateY(-2px); color: var(--ink); }
.guide-card h2, .guide-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.guide-card p { color: var(--muted); margin: 0 0 18px; }
.guide-card .more { margin-top: auto; font-weight: 650; color: var(--green-2); }
@media (max-width: 900px) { .guide-cards { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 34px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-card .field input, .form-card .field select, .form-card .field textarea {
  width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--paper); color: var(--ink);
}
.form-card .field textarea { min-height: 120px; resize: vertical; }
.form-card .field input:focus, .form-card .field select:focus, .form-card .field textarea:focus { border-color: var(--green-2); outline: none; box-shadow: 0 0 0 3px rgba(22, 88, 63, 0.18); }
.form-card .field [aria-invalid="true"] { border-color: var(--err); }
.req { color: var(--err); }
.checks { display: flex; flex-wrap: wrap; gap: 8px 10px; border: 0; padding: 0; margin: 0; }
.checks legend { font-weight: 650; margin-bottom: 8px; font-size: 0.97rem; padding: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--line-strong); border-radius: 999px; cursor: pointer; font-size: 0.96rem; background: var(--paper); }
.check input { accent-color: var(--green-2); width: 16px; height: 16px; margin: 0; }
.check:has(input:checked) { border-color: var(--green-2); background: var(--green-soft); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); display: none; }
.form-status.err { display: block; background: #fbe9e7; color: var(--err); }
.form-status.ok { display: block; background: var(--green-soft); color: var(--green); }
.form-fine { color: var(--muted); font-size: 0.88rem; margin-top: 14px; }
.apply-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; align-items: start; }
.apply-aside ol { padding-left: 1.2em; }
.apply-aside li { margin-bottom: 10px; color: #33383d; }
@media (max-width: 900px) { .apply-grid { grid-template-columns: 1fr; gap: 28px; } }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 22px; } }

/* ---------- flow diagram (dropshipping) ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; list-style: none; padding: 0; margin: 0; }
.flow li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; right: -11px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-top: 2px solid var(--green-2); border-right: 2px solid var(--green-2); transform: rotate(45deg); z-index: 1;
}
.flow .who { display: inline-block; font-size: 0.82rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.flow .who.you { background: #ece9e0; color: var(--ink); }
.flow .who.us { background: var(--lime); color: var(--green); }
.flow h3 { font-size: 1.05rem; margin-bottom: 6px; }
.flow p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .flow li:not(:last-child)::after { right: auto; left: 50%; top: auto; bottom: -11px; margin: 0 0 0 -4px; transform: rotate(135deg); }
}

/* ---------- footer ---------- */
.site-footer { background: #0c2219; color: #bccbc2; padding: 64px 0 32px; margin-top: 0; }
.site-footer .brand .wordmark { color: #fff; }
.site-footer .brand .wordmark b { color: var(--lime); }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 0.8fr; gap: 32px; }
.footer-about p { margin-top: 14px; max-width: 30em; font-size: 0.95rem; }
.footer-h { font-family: var(--body); color: #fff; font-size: 0.98rem; font-weight: 700; letter-spacing: 0; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a { color: #dfe8e2; text-decoration: none; }
.site-footer a:hover { color: var(--lime); text-decoration: underline; }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.86rem; color: #9fb3a7; }
.footer-bottom p { max-width: 80em; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ---------- utility ---------- */
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.error-page { padding: 120px 0; text-align: center; }

.sw-lime { background: #d9f45c; }
.sw-white { background: #ffffff; }
.sw-black { background: #14171a; }
.sw-green { background: #0f3d2e; }
.sw-coral { background: #ffb4a2; }
.h3 { font-size: 1.25rem; }
.error-actions { justify-content: center; margin-top: 24px; }

/* Guide context overrides: .toc a and .prose p are more specific than the button and band colors. */
.toc a.btn-primary, .toc a.btn-primary:hover { color: #fff; text-decoration: none; }
.prose .cta-band { grid-template-columns: 1fr; gap: 20px; padding: 36px; }
.prose .cta-band h2 { margin-top: 0; color: #fff; }
.prose .cta-band p { color: #c4d5cb; }
.prose .cta-band .btn-row { justify-content: flex-start; }
/* Bare number fields (vials, orders) get the same box as the prefixed ones. Declared last on
   purpose: .field input[type="number"] above has equal specificity and sets border: 0. */
.field > input[type="number"] { width: 100%; border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--paper); }
.field > input[type="number"]:focus { border-color: var(--green-2); outline: none; box-shadow: 0 0 0 3px rgba(22, 88, 63, 0.18); }

/* Phone header: keep the primary action visible with a short label; hide it only on very narrow phones.
   .site-header prefix because .btn is declared earlier with equal specificity. */
.cta-short { display: none; }
@media (max-width: 480px) {
  .wordmark { font-size: 1rem; }
  .site-header .header-cta { padding: 8px 14px; }
  .cta-full { display: none; }
  .cta-short { display: inline; }
  .nav-toggle { flex-shrink: 0; }
}
@media (max-width: 359px) { .site-header .header-cta { display: none; } .nav-toggle { margin-left: auto; } }

/* Checkboxes inside .field: .form-card .field input would stretch them to full width, and
   .field label (display:block, bold) would override the pill layout. */
.form-card .checks .check { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-weight: 500; font-size: 0.96rem; }
.form-card .check input { width: 16px; height: 16px; padding: 0; border: 0; flex-shrink: 0; }
.form-card .checks { margin-bottom: 18px; }

/* Phone stacked tables: values align right like the labels they sit next to. */
@media (max-width: 640px) { table.stack td:not(:first-child) { text-align: right; } }

/* Guide table of contents on phones and tablets, collapsed. */
.toc-mobile { display: none; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px; margin: 0 0 28px; }
.toc-mobile summary { cursor: pointer; font-weight: 700; padding: 14px 0; }
.toc-mobile ol { margin: 0 0 16px; padding-left: 1.2em; }
.toc-mobile li { margin: 8px 0; }
@media (max-width: 1000px) { .toc-mobile { display: block; } }
