/* ==========================================================================
   Signa Peptide — brand system
   Light mode only. Palette = Oct 2026 site palette,
   with the original Dark Indigo used as the ink colour so both identities meet.
   To switch palette, edit the :root block only.
   ========================================================================== */
:root {
  --ivory: #F4EEE1;
  --ivory-deep: #EAE1CC;
  --white: #FFFFFF;
  --gold: #E1AB32;               /* brand gold, from the typography brief */
  --gold-deep: #8A6A3C;
  --gold-text: #7A5C30;          /* small gold text: passes AA on ivory */
  --ink: #1B1747;                /* original Dark Indigo */
  --ink-soft: #4B4870;
  --blue: #32505B;
  --olive: #6E7350;
  --terracotta: #BC7A5A;
  --line: rgba(169, 129, 75, .55);
  --line-soft: rgba(169, 129, 75, .28);
  --ok: #4F6B3A;
  --warn: #7F5414;
  --crit: #9C3F2C;
  --radius: 10px;
  --max: 1040px;
  --serif: 'Bodoni Moda', Georgia, serif;
  --cond: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
  --f-head: var(--serif);
  --f-body: var(--sans);
  --f-ui: var(--cond);
  --text: rgba(30, 27, 22, .75);  /* body copy colour from the live-site typography spec */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: light; }
body {
  margin: 0; background: var(--ivory); color: var(--text);
  font-family: var(--f-body); font-weight: 400; font-size: 15px; line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { text-wrap: balance; font-family: var(--serif); font-weight: 500; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(29px, 23px + 1.6vw, 42px); line-height: 1.15; letter-spacing: -.01em; }
h2 { font-size: clamp(21px, 18.5px + 0.8vw, 28px); line-height: 1.2; }
h3 { font-size: clamp(16.5px, 15.5px + 0.3vw, 19px); line-height: 1.4; }
h4 { font-size: .95rem; line-height: 1.4; }
p { margin: 0 0 1em; max-width: 60ch; }
.cta-band p, .section-head.center p { margin-inline: auto; }
.lead { font-size: clamp(15.5px, 15px + 0.2vw, 17px); line-height: 1.7; color: var(--ink-soft); max-width: 40em; }
.muted { color: var(--ink-soft); }
.small { font-size: .85rem; }

.eyebrow, .label {
  font-family: var(--cond); font-weight: 600; font-size: 12px;
  letter-spacing: .06em; text-transform: uppercase; color: var(--gold-text);
  display: block; margin-bottom: .9rem;
}

.container { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding: clamp(40px, 6vw, 72px) 0; }
.section.alt { background: var(--ivory-deep); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.rule { height: 1px; background: var(--line); border: 0; margin: 2rem 0; }

.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card.feature { border-width: 2px; border-color: var(--gold); }

/* Buttons */
.btn {
  display: inline-block; font-family: var(--cond); font-weight: 600;
  letter-spacing: .03em; font-size: 13.5px; line-height: 1.2;
  padding: 11px 22px; border-radius: 999px; border: 1px solid var(--gold-deep);
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s;
  background: transparent; color: var(--ink);
}
.btn:hover { background: var(--ivory-deep); color: var(--ink); }
.btn-primary { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--gold); }
.btn-lg { padding: 13px 28px; font-size: 14.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.2rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--ivory);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; gap: 4px; }
.brand-sig { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; letter-spacing: .1em; color: var(--gold-deep); }
.brand-sub { font-family: var(--f-ui); font-weight: 500; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.nav a { font-family: var(--cond); font-weight: 500; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 5px 0; border-bottom: 1px solid transparent; }
.nav a.btn-primary { color: var(--ink); border-color: transparent; }
.nav a.btn-primary:hover { color: var(--gold); }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--gold); }
.nav .btn { padding: 7px 18px; letter-spacing: .03em; text-transform: none; font-weight: 600; border-bottom: 1px solid var(--gold); }
.nav .btn:hover { border-bottom-color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-family: var(--f-ui); letter-spacing: .14em; text-transform: uppercase; font-size: .9rem; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { padding: clamp(36px, 6vw, 64px) 0 clamp(36px, 5vw, 56px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px; align-items: center; }
.hero h1 em { font-style: italic; color: var(--gold-deep); }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); font-family: var(--f-ui); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--ink-soft); }
.trust-row span::before { content: "✓ "; color: var(--gold-deep); }

/* Loop card */
.loop-card { padding: 24px; }
.loop-card h3 { text-align: center; margin-bottom: 1rem; }
.loop-list { list-style: none; counter-reset: loop; margin: 0; padding: 0; }
.loop-list li { counter-increment: loop; display: flex; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.loop-list li:last-child { border-bottom: 0; }
.loop-list li::before { content: counter(loop); font-family: var(--f-head); font-size: 1.4rem; color: var(--gold-deep); min-width: 1.2rem; }
.loop-list b { font-weight: 600; display: block; }
.loop-list span { font-size: .85rem; color: var(--ink-soft); }
.loop-foot { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); font-family: var(--f-ui); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; color: var(--gold-text); text-align: center; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.steps > li { counter-increment: step; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 72px; position: relative; }
.steps > li::before { content: counter(step); position: absolute; left: 22px; top: 14px; font-family: var(--f-head); font-size: 2.3rem; line-height: 1; color: var(--gold-deep); }
.steps h3 { margin-bottom: .25em; }
.steps p { margin-bottom: .5em; }
.steps .who { font-family: var(--f-ui); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--gold-text); }

/* Tags / badges */
.tag, .badge { display: inline-block; font-family: var(--cond); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--ivory); color: var(--ink); white-space: nowrap; }
.t-strong, .badge.ok { border-color: var(--ok); color: var(--ok); }
.t-moderate { border-color: var(--blue); color: var(--blue); }
.t-limited, .badge.warn { border-color: var(--warn); color: var(--warn); }
.t-exp, .badge.crit { border-color: var(--crit); color: var(--crit); }
.badge.neutral { color: var(--ink-soft); }

/* Tables */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .88rem; }
table.data th { font-family: var(--f-ui); letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; text-align: left; color: var(--gold-text); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--ivory); white-space: nowrap; }
table.data td { padding: 10px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.yes::before { content: "✓"; color: var(--ok); font-weight: 700; }
table.data td.no { color: var(--ink-soft); }

/* Callout */
.callout { border: 1px solid var(--line); border-left: 4px solid var(--gold); background: var(--white); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; }
.callout.warn { border-left-color: var(--terracotta); }
.callout p:last-child { margin-bottom: 0; }

/* Lists */
.ticks { list-style: none; padding: 0; margin: 0 0 1em; }
.ticks li { padding-left: 1.6em; position: relative; margin-bottom: .55em; }
.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-deep); font-weight: 700; }
.crosses li::before { content: "–"; color: var(--ink-soft); }

/* Pricing */
.price { font-family: var(--f-head); font-size: 1.4rem; color: var(--ink); margin: .2em 0 .1em; }
.price small { font-family: var(--f-body); font-size: .85rem; color: var(--ink-soft); }

/* FAQ */
details.faq { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 20px; margin-bottom: 10px; }
details.faq summary { cursor: pointer; font-family: var(--f-head); font-size: 1.05rem; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; color: var(--gold-deep); font-size: 1.5rem; line-height: 1; }
details.faq[open] summary::after { content: "–"; }
details.faq p { padding-bottom: 6px; }

/* CTA band */
.cta-band { text-align: center; }
.cta-band .lead { margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* Footer */
.site-footer { background: var(--ivory-deep); border-top: 1px solid var(--line); padding: 40px 0 28px; font-size: .88rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { font-family: var(--f-ui); letter-spacing: .2em; text-transform: uppercase; font-size: .85rem; color: var(--gold-text); margin-bottom: .8rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .4rem; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { text-decoration: underline; }
.disclaimer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--ink-soft); }

/* Article blocks */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6em; font-size: 2rem; }
.prose h3 { margin-top: 1.2em; }

/* ========== Questionnaire ========== */
.q-shell { max-width: 640px; margin-inline: auto; padding: 32px 0 72px; }
.q-progress { height: 3px; background: var(--line-soft); border-radius: 3px; margin-bottom: 36px; overflow: hidden; }
.q-progress > i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .35s ease; }
.q-step { display: none; }
.q-step.active { display: block; animation: rise .3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.q-title { margin-bottom: .3em; }
.q-title em { font-style: italic; color: var(--gold-deep); }
.q-field { margin: 28px 0; }
.q-field > label, .q-field > .q-label { display: block; font-family: var(--f-ui); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; font-size: .95rem; color: var(--ink); margin-bottom: 6px; }
.q-field .req::after { content: " *"; color: var(--crit); }
.q-hint { font-size: .9rem; color: var(--ink-soft); margin: 0 0 10px; }
.q-new { font-family: var(--f-ui); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--olive); border: 1px solid var(--olive); border-radius: 999px; padding: 1px 8px; margin-left: 8px; vertical-align: 2px; }
input[type=text], input[type=email], input[type=number], input[type=date], .q-field > input[type=datetime-local], input[type=password], textarea {
  width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px;
  font: inherit; font-size: 1rem; color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.q-options { display: grid; gap: 8px; }
.q-options.inline { display: flex; flex-wrap: wrap; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; cursor: pointer; margin: 0; }
.opt span { display: flex; align-items: center; gap: 10px; padding: 9px 14px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; line-height: 1.35; font-size: .93rem; }
.opt span::before { content: ""; width: 16px; height: 16px; border: 1.5px solid var(--gold-deep); border-radius: 50%; flex: none; }
.opt.multi span::before { border-radius: 4px; }
.opt input:checked + span { border-color: var(--gold-deep); background: #FBF6EA; box-shadow: inset 0 0 0 1px var(--gold-deep); }
.opt input:checked + span::before { background: var(--gold-deep); box-shadow: inset 0 0 0 3px var(--white); }
.opt input:focus-visible + span { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; }
.scale .opt span { justify-content: center; padding: 10px 0; }
.scale .opt span::before { display: none; }
.scale-labels { display: flex; justify-content: space-between; font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
.q-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; }
.q-count { font-family: var(--f-ui); letter-spacing: .14em; color: var(--ink-soft); font-size: .9rem; }
.q-error { color: var(--crit); font-size: .9rem; margin-top: 6px; }
.q-flag { border-left: 4px solid var(--terracotta); background: var(--white); border-radius: 0 8px 8px 0; padding: 14px 18px; margin-top: 12px; font-size: .95rem; }
.panel-groups { display: grid; gap: 14px; margin: 18px 0; }
.panel-groups h4 { font-family: var(--f-ui); letter-spacing: .16em; text-transform: uppercase; font-size: .82rem; color: var(--gold-text); margin: 0 0 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: .85rem; padding: 3px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); }
.chip.core { border-color: var(--gold-deep); background: #FBF6EA; }
.q-result { margin-top: 20px; }
.q-result dl { margin: 0; display: grid; grid-template-columns: 11rem 1fr; gap: 8px 16px; }
.q-result dt { color: var(--ink-soft); }
.q-result dd { margin: 0; }

/* ========== App shells (portal / review) ========== */
.demo-banner { background: var(--ink); color: var(--ivory); font-family: var(--f-ui); letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; text-align: center; padding: 8px 16px; }
.app-wrap { padding: 28px 0 60px; }
.app-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.dash-grid { display: grid; gap: 18px; grid-template-columns: 2fr 1fr; align-items: start; }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 18px; }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat b { font-family: var(--f-head); font-size: 2rem; font-weight: 500; display: block; line-height: 1.1; }
.stat span { font-family: var(--f-ui); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--ink-soft); }
.track { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.track li { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.track li:last-child { border-bottom: 0; }
.dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); margin-top: 2px; }
.dot.done { background: var(--gold); border-color: var(--gold); }
.dot.now { border-color: var(--gold-deep); box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 11px var(--gold-deep); }
.track b { display: block; }
.track span.sub { font-size: .9rem; color: var(--ink-soft); }
.arrow-up { color: var(--ok); } .arrow-down { color: var(--crit); } .arrow-flat { color: var(--ink-soft); }
.locked { opacity: .75; border-style: dashed; }
.queue { display: grid; gap: 10px; }
.queue button { text-align: left; font: inherit; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 11px 14px; cursor: pointer; color: var(--ink); width: 100%; }
.queue button[aria-pressed="true"] { border-color: var(--gold-deep); box-shadow: inset 0 0 0 1px var(--gold-deep); background: #FBF6EA; }
.queue .row { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.split { display: grid; grid-template-columns: 300px 1fr; gap: 18px; align-items: start; }
.checks { list-style: none; padding: 0; margin: 0 0 1em; }
.checks li { display: flex; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: .88rem; }
.checks li:last-child { border-bottom: 0; }
.checks .ic { flex: none; width: 22px; height: 22px; border-radius: 50%; text-align: center; font-size: .8rem; line-height: 22px; font-family: var(--f-ui); font-weight: 700; color: var(--white); }
.ic.ok { background: var(--ok); } .ic.warn { background: var(--warn); } .ic.crit { background: var(--crit); }
.field-ro { background: var(--ivory); border: 1px dashed var(--line); border-radius: 8px; padding: 10px 14px; font-size: .95rem; }
.review-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: var(--ivory); padding: 12px 22px; border-radius: 8px; font-family: var(--f-ui); letter-spacing: .1em; text-transform: uppercase; font-size: .9rem; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 100; }
.toast.show { opacity: 1; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .g2, .g3, .g4, .dash-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .g4 { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: 1fr; }
  .site-header { position: sticky; }
  .steps > li { padding: 22px 22px 22px 76px; }
  .steps > li::before { left: 20px; font-size: 2.4rem; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .container { width: min(100% - 32px, var(--max)); }
  .g4 { grid-template-columns: 1fr; }
  .scale { grid-template-columns: repeat(5, 1fr); }
  .q-result dl { grid-template-columns: 1fr; }
  .btn-row .btn { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.dose-card{border:1px solid var(--line,#e3dccb);border-radius:6px;padding:12px 14px;margin:0 0 12px;background:#fff}
.dose-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin:8px 0}
.dose-row label{display:grid;gap:4px}
.dose-row input{font:inherit;padding:8px 10px;border:1px solid var(--line,#e3dccb);border-radius:6px;min-width:0}
.dose-row input[readonly]{background:#f6f2e8}
.warn-over{color:#9b1c1c;font-weight:600}

@media (max-width: 1100px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--ivory); border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; padding: 18px 24px 24px; gap: 16px; }
  .nav.open { display: flex; }
  .nav { white-space: normal; }
}

.brand-img { height: 44px; width: auto; max-width: none; }
.site-footer .brand-img { height: 52px; }
@media (max-width: 560px) { .brand-img { height: 38px; } }

.price { margin: .2em 0 .3em; }

.tabs { display: flex; gap: 6px; margin: 0 0 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tab { font-family: var(--cond); font-weight: 600; font-size: 13.5px; letter-spacing: .04em; background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 14px; cursor: pointer; color: var(--ink-soft); }
.tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }
.tab:hover { color: var(--ink); }
.badge.crit { color: var(--crit); border-color: var(--crit); }
.badge.ok { color: var(--ok); border-color: var(--ok); }
.badge.warn { color: var(--warn); border-color: var(--warn); }

/* ---------- account pages ---------- */
.auth-shell { max-width: 520px; margin: 0 auto; padding-top: 36px; padding-bottom: 56px; }
.auth-shell h1 { margin-bottom: .6em; }
.auth-shell .q-captcha { margin: 10px 0; min-height: 0; }
.auth-shell code { background: var(--ivory-deep); padding: 1px 6px; border-radius: 4px; word-break: break-all; }
.meter { height: 6px; background: var(--ivory-deep); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.meter i { display: block; height: 100%; width: 0; background: var(--terracotta, #a4462f); transition: width .2s, background .2s; }
.meter[data-level="2"] i { background: var(--gold-deep); }
.meter[data-level="3"] i, .meter[data-level="4"] i { background: #4a6b3a; }

/* ---- age gate ---- */
html.gate-pending body { overflow: hidden; }
html.gate-pending body > *:not(.agegate) { visibility: hidden; }
.agegate { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(27, 23, 71, .94); }
.agegate-box { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); max-width: 440px; width: 100%; padding: 28px 26px; text-align: center; }
.agegate-box h2 { margin: 6px 0 10px; font-size: 1.6rem; }
.agegate-box p { font-size: 14px; }
.agegate-check { display: flex; gap: 10px; align-items: flex-start; justify-content: center; text-align: left; margin: 16px 0 4px; font-size: 14px; cursor: pointer; }
.agegate-check input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--gold-deep); }
.agegate .btn-row { justify-content: center; }
.agegate .btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.agegate-fine { font-size: 12px; margin-top: 14px; color: var(--ink-soft); }
@media (max-width: 600px) { .agegate .btn-row .btn { width: 100%; } }

/* ---------- signed-in app ---------- */
.app-shell { max-width: 1040px; margin: 0 auto; padding-top: 28px; padding-bottom: 56px; }
.narrow { max-width: 520px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px 6px; margin: 18px 0 22px; border-bottom: 1px solid var(--line-soft); }
.tabs a { font-family: var(--f-ui); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; font-size: .9rem; padding: 9px 13px; color: var(--ink-soft); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 6px; align-items: center; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.tabs .n { background: var(--gold); color: var(--ink); border-radius: 999px; font-size: .7rem; min-width: 18px; height: 18px; line-height: 18px; text-align: center; padding: 0 5px; }
.stack > * + * { margin-top: 18px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.thread { display: grid; gap: 10px; max-height: 420px; overflow-y: auto; padding: 4px 2px; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; background: var(--white); border: 1px solid var(--line-soft); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.mine { justify-self: end; background: #FBF6EA; border-color: var(--line); }
.msg small { display: block; color: var(--ink-soft); font-size: .72rem; margin-top: 4px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cat { background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px; }
.cat.on { border-color: var(--gold-deep); background: #FBF6EA; }
.cat h4 { margin: 0 0 4px; }
.cat ul { margin: 8px 0 0; padding-left: 1.1em; font-size: .86rem; }
.cat li.on { font-weight: 700; }
.opt-list { display: grid; gap: 6px; }
.opt-list label { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; }
select, input[type=number].sm { font: inherit; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); max-width: 100%; }
.hist { list-style: none; margin: 0; padding: 0; }
.hist li { padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: .9rem; }
.hist li:last-child { border-bottom: 0; }
.err { color: var(--crit); }
.table-wrap.sm table.data { font-size: .84rem; }
.split-2 { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 800px) { .split-2 { grid-template-columns: 1fr; } .msg { max-width: 94%; } }
.q-hint { font-size: .85rem; color: var(--ink-soft); margin: 0 0 6px; }
.pick { cursor: pointer; }
.pick:hover { background: #FBF6EA; }
.pick[aria-selected="true"] { background: #FBF6EA; box-shadow: inset 3px 0 0 var(--gold-deep); }

/* retest panel chooser (practitioner) */
.panel-ctl { margin-top: 6px; }
.panel-ctl summary { cursor: pointer; }
.checks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; margin-top: 8px; }
.linklike{background:none;border:0;padding:0;color:var(--indigo);text-decoration:underline;cursor:pointer;font:inherit}
.linklike:hover,.linklike:focus-visible{color:var(--gold-text,#7F5414)}

.cred { align-items: stretch; }
.cred-card { display: flex; flex-direction: column; justify-content: center; }
.cred-cert { margin: 0; padding: 10px; display: flex; align-items: center; }
.cred-cert img { width: 100%; height: auto; display: block; border-radius: 4px; }
.stat.warn { border-color: var(--gold, #E1AB32); }

/* ---- cookie notice ---- */
.cookiebar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; background: var(--ivory); color: var(--ink);
  border-top: 1px solid var(--gold); box-shadow: 0 -2px 14px rgba(27,23,71,.08); }
.cookiebar-in { max-width: 1280px; margin: 0 auto; padding: 10px 24px; display: grid; grid-template-columns: 1fr auto; gap: 8px 24px; align-items: center; }
.cookiebar-text p { margin: 0; font-size: .78rem; font-weight: 400; line-height: 1.5; max-width: 74ch; color: var(--ink-soft); }
.cookiebar a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; font-weight: 500; }
.cookiebar-btns { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ck-btn { font: 500 .75rem var(--sans); letter-spacing: .02em; background: transparent; color: var(--ink); border: 1px solid var(--gold-deep); padding: 7px 16px; border-radius: 2px; cursor: pointer; min-height: 34px; }
.ck-btn:hover { background: var(--gold); border-color: var(--gold); }
.ck-link { font: 400 .75rem var(--sans); background: none; border: 0; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 7px 6px; min-height: 34px; }
.ck-x { background: none; border: 0; color: var(--ink-soft); font-size: 1.3rem; line-height: 1; cursor: pointer; width: 34px; height: 34px; }
.cookiebar button:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 2px; }
.cookiebar-manage { grid-column: 1 / -1; display: grid; gap: 6px; border-top: 1px solid var(--line-soft); padding-top: 8px; }
.ck-row { display: flex; justify-content: space-between; align-items: center; gap: 18px; font-size: .78rem; }
.ck-row b { font-weight: 500; }
.ck-row small { display: block; color: var(--ink-soft); margin-top: 1px; font-size: .72rem; }
.ck-row input { width: 18px; height: 18px; accent-color: var(--gold-deep); flex: none; }
@media (max-width: 800px) {
  .cookiebar-in { grid-template-columns: 1fr; padding: 10px 14px; gap: 6px; }
  .cookiebar-btns { justify-content: stretch; gap: 6px; }
  .cookiebar-btns .ck-btn { flex: 1 1 30%; padding: 7px 8px; }
  .ck-x { position: absolute; top: 2px; right: 2px; }
  .cookiebar-text p { padding-right: 30px; }
}
@media print { .cookiebar { display: none; } }
.cookiebar [hidden] { display: none !important; }

/* ---- honeycomb background, carried over from the original signapeptide.com hero ---- */
.hero { background-color: var(--ivory); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128.17' height='222' viewBox='0 0 128.17 222'%3E%3Cpath d='M64.085 0L128.17 37.0L128.17 111.0L64.085 148L0 111.0L0 37.0ZM64.085 148L64.085 222' fill='none' stroke='rgb(169,129,75)' stroke-opacity='.2' stroke-width='1'/%3E%3C/svg%3E"); background-size: 128.17px 222px; background-position: center top; border-bottom: 1px solid var(--line-soft); }

/* ---------- practitioners page: EU network (Nov 2026) ---------- */
.net { background: var(--ink); color: rgba(244, 238, 225, .82); padding: clamp(56px, 8vw, 104px) 0 clamp(56px, 7vw, 88px); }
.net .net-eyebrow { color: var(--gold); }
.net-title { color: var(--ivory); font-size: clamp(2.3rem, 6.4vw, 4.6rem); line-height: 1.04; letter-spacing: -.01em; margin: .3em 0 .45em; max-width: 14ch; }
.net-title em { font-style: italic; color: var(--ivory); }
.net-dot-mark { color: var(--gold); }
.net-lead { font-family: var(--serif); font-size: clamp(1.08rem, 1.9vw, 1.38rem); line-height: 1.6; max-width: 46rem; color: rgba(244, 238, 225, .86); margin: 0; }
.net-lead em { color: var(--gold); }
.net-fig { margin: clamp(36px, 6vw, 64px) 0 0; border: 1px solid rgba(225, 171, 50, .28); border-radius: 18px; overflow: hidden; background: rgba(255, 255, 255, .02); }
.net-map { display: block; width: 100%; height: auto; }
.net-gridline { stroke: rgba(225, 171, 50, .07); stroke-width: 1; }
.net-halo { fill: rgba(225, 171, 50, .12); }
.net-core { fill: var(--gold); opacity: .75; }
.net-dot:hover .net-core { opacity: 1; }
.net-hub-ring { fill: rgba(244, 238, 225, .14); }
.net-hub-core { fill: var(--ivory); }
.net-pulse { fill: none; stroke: var(--gold); stroke-width: 1.5; opacity: .5; transform-box: fill-box; transform-origin: center; animation: net-pulse 2.8s ease-out infinite; }
@keyframes net-pulse { from { transform: scale(.6); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .net-pulse { animation: none; } }
.net-label { fill: var(--ivory); font-family: var(--cond); font-size: 19px; letter-spacing: .14em; text-transform: uppercase; }
.net-cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 16px 22px; border-top: 1px solid rgba(225, 171, 50, .18);
  font-family: var(--cond); font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: rgba(244, 238, 225, .55); }
.net-cap b { color: var(--ivory); font-weight: 600; }
.net-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.net-legend .lg::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.net-legend .lg-hub::before { background: var(--ivory); box-shadow: 0 0 0 4px rgba(244, 238, 225, .16); }
.net-legend .lg-open::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(225, 171, 50, .14); }
.net-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); margin-top: clamp(48px, 7vw, 80px); }
.net-pillar { border-top: 0; position: relative; padding-top: 26px; }
.net-pillar::before { content: ""; position: absolute; top: 0; left: 0; width: 42px; height: 2px; background: var(--gold); }
.net-pillar h2 { color: var(--ivory); font-size: clamp(1.35rem, 2.2vw, 1.7rem); margin-bottom: .55em; }
.net-pillar h2 em { font-style: italic; color: var(--gold); }
.net-pillar p { margin: 0; color: rgba(244, 238, 225, .76); }
.net-join { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(48px, 7vw, 76px); padding: 26px 28px;
  border: 1px solid rgba(225, 171, 50, .35); border-radius: 14px; }
.net-join > div { flex: 1 1 26rem; }
.net-join p { margin: .3rem 0 0; color: rgba(244, 238, 225, .8); }
.net .btn-primary:hover { background: var(--ivory); border-color: var(--ivory); color: var(--ink); }
@media (max-width: 760px) { .net-pillars { grid-template-columns: 1fr; } .net-label { font-size: 40px; letter-spacing: .08em; } .net-core { r: 9px; } .net-halo { r: 20px; } .net-hub-core { r: 14px; } .net-hub-ring { r: 28px; } .net-cap { padding: 14px 16px; letter-spacing: .16em; } }

/* r14.1: Baseline vs Signa Plan explanation */
.plan-difference { margin-bottom: 1.1em; padding-bottom: .2em; border-bottom: 1px solid var(--line); }
#baseline-vs-plan { margin: 14px 0 16px; }

/* r15.3: effect-card choices use the full card width so longer R3 option wording is not cut off on narrow screens */
.effect-card select { width: 100%; }

/* practitioner application form (practitioners.html) */
.pa-wrap { max-width: 720px; }
.pa-form select, .pa-form input[type=tel] { width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 1rem; color: var(--ink); }
.pa-form select:focus, .pa-form input[type=tel]:focus { outline: 2px solid var(--gold-deep); outline-offset: 1px; }
.pa-fieldset { border: 0; padding: 0; min-width: 0; }
.pa-fieldset legend { padding: 0; }
.pa-form [aria-invalid="true"] { border-color: var(--crit); box-shadow: inset 0 0 0 1px var(--crit); }
.pa-hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.pa-privacy { background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 28px 0; font-size: .93rem; }
.pa-privacy h3 { margin-top: 0; }
.pa-summary { margin: 18px 0; }
.pa-summary ul { margin: 6px 0 0; padding-left: 20px; }
.pa-summary a { color: inherit; }
.pa-detail { display: grid; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); gap: 6px 16px; margin: 12px 0 18px; }
.pa-detail dt { font-weight: 600; }
.pa-detail dd { margin: 0; min-width: 0; }
.pa-text { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 560px) { .pa-detail { grid-template-columns: minmax(0, 1fr); } .pa-detail dd { margin-bottom: 8px; } }
.pa-form .q-field > label.opt { font-family: inherit; font-weight: 400; letter-spacing: normal; text-transform: none; font-size: inherit; color: inherit; margin-bottom: 0; }
#pa-status:not(:empty) { margin-top: 14px; }

/* ---- interim public site (28 Nov 2026) ---- */
.status-band { background: var(--ink); color: var(--ivory); font-size: .9rem; line-height: 1.5; }
.status-band .container { padding-top: 9px; padding-bottom: 9px; }
.status-band b { color: var(--gold); font-weight: 600; }
.status-band a { color: var(--gold); }
.tbc { background: #FFF1C2; color: #5B3D00; padding: 0 .25em; border-radius: 3px; font-weight: 600; }
.planned { font-family: var(--f-ui); letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--gold-text); }
.mail-big { font-family: var(--f-head); font-size: 1.6rem; word-break: break-word; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 0 0 6px 0; font-weight: 600; }
.skip:focus { left: 0; }

/* Responsive public data tables: keep every column label and value visible. */
.table-mobile-label { display: none; }
@media (max-width: 600px) {
  .table-wrap { overflow: visible; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  table.data tr + tr { border-top: 2px solid var(--line); }
  table.data td { padding: 10px 14px; border: 0; overflow-wrap: anywhere; }
  table.data td + td { padding-top: 0; }
  .table-mobile-label { display: block; margin-bottom: 4px; font-family: var(--f-ui); font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-text); }
  table.data td.yes::before { content: none; }
  table.data td.yes::after { content: "\2713"; color: var(--ok); font-weight: 700; }
}
