/* ============================================================================
   ProteinCheck — house style prototype
   Design language: Swiss / functional (SBB-inspired). Flat, rectangular,
   generous whitespace, thin rules, tabular data, one restrained accent.
   Goal: transparency + trust + premium, without screaming.
   ============================================================================ */

:root {
  /* Ink + warm paper, not stark white — premium, calm */
  --ink:        #1a1c1e;
  --ink-2:      #3a3d40;
  --muted:      #6e6b63;
  --paper:      #fbfaf7;
  --panel:      #f3f1ea;
  --panel-2:    #ece9e0;
  --line:       #e3e0d8;
  --line-2:     #d2cec3;

  /* Single restrained accent: deep pine. Used sparingly, like SBB's red. */
  --accent:     #1e5a45;
  --accent-700: #16432f;
  --accent-soft:#e6efe9;

  /* Premium hairline gold — used only on premium / verified marks */
  --gold:       #9a7b35;

  --ok:         #1e5a45;
  --warn:       #9a6b1f;

  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

.container { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* --- Typography helpers ------------------------------------------------- */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.num { font-family: var(--mono); font-feature-settings: "tnum" 1; letter-spacing: -0.02em; }
.serif { font-family: var(--serif); }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; margin: 0; }

/* ============================================================================
   Top utility bar
   ============================================================================ */
.utility {
  background: var(--ink);
  color: #d8d6cf;
  font-size: 12.5px;
}
.utility .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 36px;
}
.utility .trust-note { display: flex; align-items: center; gap: 8px; }
.utility .dot { width: 6px; height: 6px; border-radius: 50%; background: #5fa583; display: inline-block; }
.utility .langs { display: flex; gap: 2px; }
.utility .langs a { padding: 2px 8px; color: #d8d6cf; }
.utility .langs a.is-active { color: #fff; font-weight: 600; border-bottom: 2px solid #5fa583; }

/* ============================================================================
   Header
   ============================================================================ */
.header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.header .container {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 72px;
}
.brand { display: flex; align-items: baseline; gap: 9px; }
.brand .mark {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.brand .mark .pure { color: var(--accent); }
.brand .tld { font-size: 12px; color: var(--muted); font-weight: 500; }

.nav { display: flex; gap: 26px; margin-left: 8px; }
.nav a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); }
.nav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

.header-search {
  margin-left: auto;
  display: flex; align-items: center;
  border: 1px solid var(--line-2);
  background: #fff;
  height: 42px; width: min(300px, 32vw);
  padding: 0 12px;
}
.header-search input { border: 0; outline: 0; flex: 1; font-size: 14px; background: transparent; font-family: var(--sans); }
.header-search svg { color: var(--muted); flex: none; }

/* ============================================================================
   Buttons
   ============================================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  padding: 13px 22px; border: 1px solid transparent; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
  letter-spacing: -0.01em;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-700); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn .chev { transition: transform .15s; }
.btn:hover .chev { transform: translateX(3px); }

/* ============================================================================
   Hero
   ============================================================================ */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(32px, 4vw, 56px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.lede {
  margin: 24px 0 0; max-width: 46ch;
  font-size: 17.5px; color: var(--ink-2); line-height: 1.5;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }

/* Hero side stat card — pure data, no decoration */
.hero-card {
  border: 1px solid var(--line);
  background: #fff;
}
.hero-card .hc-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.hero-card .hc-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 15px 18px; border-bottom: 1px solid var(--line);
}
.hero-card .hc-row:last-child { border-bottom: 0; }
.hero-card .hc-label { font-size: 14px; color: var(--ink-2); }
.hero-card .hc-val { font-family: var(--mono); font-size: 16px; font-weight: 500; }
.hero-card .hc-val small { color: var(--muted); font-weight: 400; }

/* ============================================================================
   Trust strip
   ============================================================================ */
.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); }
.trust-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 24px 26px 24px 0;
}
.trust-item + .trust-item { border-left: 1px solid var(--line); padding-left: 26px; }
.trust-item .ti-icon { color: var(--accent); flex: none; margin-top: 2px; }
.trust-item h4 { font-size: 14.5px; font-weight: 600; margin: 0 0 3px; }
.trust-item p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.45; }

/* ============================================================================
   Section scaffolding
   ============================================================================ */
.section { padding: clamp(44px, 6vw, 80px) 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 30px;
}
.section-head h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -0.02em; }
.section-head p { color: var(--muted); margin: 8px 0 0; font-size: 15px; max-width: 52ch; }
.section-link { font-size: 14px; font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.section-link:hover { color: var(--accent-700); }

/* ============================================================================
   Product grid + cards
   ============================================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.pcard {
  background: #fff;
  padding: 0;
  display: flex; flex-direction: column;
  transition: background .15s;
  position: relative;
}
.pcard:hover { background: #fffdf9; }
.pcard-media {
  height: 230px; background: #fff;
  display: flex; align-items: center; justify-content: center;
  position: relative; border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 22px;
}
.pcard-media img { max-height: 100%; max-width: 80%; object-fit: contain; }
.flag {
  position: absolute; top: 0; left: 0;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 5px 10px;
}
.flag.flag-premium { background: var(--gold); }
.flag.flag-organic { background: var(--accent); }
.flag.flag-best   { background: var(--ink); }

.pcard-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.pcard .brand-line { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.pcard h3 { font-size: 17px; font-weight: 600; margin: 6px 0 0; letter-spacing: -0.015em; line-height: 1.2; }
.pcard .src { font-size: 12.5px; color: var(--muted); margin-top: 7px; display: flex; align-items: center; gap: 6px; }

.spec-list { margin: 16px 0 0; border-top: 1px solid var(--line); }
.spec-list .spec {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 9px 0; border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.spec .k { color: var(--muted); }
.spec .v { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--ink); }
.spec .v.hi { color: var(--accent); }

.pcard-foot {
  margin-top: auto; padding-top: 18px;
  display: flex; align-items: flex-end; justify-content: space-between;
}
.price-block .ppp { font-family: var(--mono); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.price-block .ppp-unit { font-size: 12px; color: var(--muted); margin-top: 2px; }
.price-block .from { font-size: 11.5px; color: var(--muted); }

/* small badges */
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.badge {
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  padding: 4px 9px; border: 1px solid var(--line-2); color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 5px;
}
.badge.is-on { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.badge svg { flex: none; }

/* ============================================================================
   Filter bar — the three decisive factors, prominent
   ============================================================================ */
.filterbar {
  border: 1px solid var(--line-2);
  border-top: 3px solid var(--accent);
  background: #fff;
  margin-bottom: 22px;
}
.fb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 22px; border-bottom: 1px solid var(--line);
}
.fb-title { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.fb-reset {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600; color: var(--accent);
  background: none; border: 0; cursor: pointer; padding: 4px 0;
}
.fb-reset:hover { color: var(--accent-700); text-decoration: underline; }

.fb-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.fb-group { padding: 18px 22px; }
.fb-group + .fb-group { border-left: 1px solid var(--line); }
.fb-label {
  display: block; font-size: 12px; color: var(--muted); margin-bottom: 11px; font-weight: 500;
}
.fb-label b {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 11px; font-weight: 700; margin-right: 8px; vertical-align: middle;
}

/* segmented control (single-select) */
.seg { display: inline-flex; border: 1px solid var(--line-2); flex-wrap: wrap; }
.seg button {
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: #fff; border: 0; border-right: 1px solid var(--line); cursor: pointer;
  padding: 9px 14px; transition: background .12s, color .12s;
}
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--paper); }
.seg button.is-active { background: var(--ink); color: #fff; }

/* chips (multi-select) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button {
  font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink-2);
  background: #fff; border: 1px solid var(--line-2); cursor: pointer;
  padding: 8px 13px; display: inline-flex; align-items: center; gap: 7px;
  transition: background .12s, color .12s, border-color .12s;
}
.chips button::before {
  content: ""; width: 13px; height: 13px; border: 1.5px solid var(--line-2); display: inline-block;
}
.chips button:hover { border-color: var(--ink-2); }
.chips button.is-active { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.chips button.is-active::before {
  background: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='m5 12 5 5 9-11'/%3E%3C/svg%3E");
  background-size: 11px; background-repeat: no-repeat; background-position: center;
}

.fb-foot { padding: 12px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.fb-count { font-size: 13px; color: var(--muted); }
.fb-count b { color: var(--ink); font-family: var(--mono); }

@media (max-width: 820px) {
  .fb-grid { grid-template-columns: 1fr; }
  .fb-group + .fb-group { border-left: 0; border-top: 1px solid var(--line); }
}

/* ============================================================================
   Comparison table
   ============================================================================ */
.cmp-wrap { border: 1px solid var(--line); overflow-x: auto; background: #fff; }
table.cmp { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 14px; }
table.cmp th, table.cmp td { text-align: left; padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.cmp thead th {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted); background: var(--paper); position: sticky; top: 0;
  border-bottom: 1px solid var(--line-2);
}
table.cmp tbody tr:hover { background: #fffdf9; }
table.cmp .prod-cell { min-width: 230px; }
table.cmp .prod-cell .pc-brand { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
table.cmp .prod-cell .pc-name { font-weight: 600; font-size: 15px; margin-top: 2px; }
table.cmp .prod-cell .pc-name .ribbon { font-size: 10px; color: var(--gold); font-weight: 700; letter-spacing: 0.06em; margin-left: 7px; vertical-align: middle; }
table.cmp td .num { font-size: 14px; }
table.cmp .lead-val { font-weight: 600; color: var(--accent); }
.tick { color: var(--accent); }
.cross { color: #b9b5aa; }
table.cmp td.cta-cell { text-align: right; white-space: nowrap; }
.row-rank { font-family: var(--mono); color: var(--muted); font-size: 13px; }

.cmp-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; color: var(--muted); font-size: 13px; }
.cmp-note svg { flex: none; margin-top: 1px; color: var(--accent); }

/* ============================================================================
   Methodology / how we know
   ============================================================================ */
.method { background: var(--ink); color: #e7e5de; }
.method .eyebrow { color: #8fcaac; }
.method h2 { color: #fff; font-family: var(--serif); font-weight: 500; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #2c2f31; border: 1px solid #2c2f31; margin-top: 34px; }
.method-cell { background: var(--ink); padding: 28px 26px; }
.method-cell .step-no { font-family: var(--mono); font-size: 13px; color: #8fcaac; }
.method-cell h4 { font-size: 17px; font-weight: 600; margin: 12px 0 8px; color: #fff; }
.method-cell p { font-size: 14px; color: #b6b4ac; margin: 0; line-height: 1.5; }

/* provenance pill (the trust hook) */
.prov {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 600; padding: 3px 8px;
  border: 1px solid var(--line-2); color: var(--muted); background: var(--paper);
}
.prov .src-dot { width: 6px; height: 6px; border-radius: 50%; }
.prov.scrape  .src-dot { background: #4f8fbf; }
.prov.lab     .src-dot { background: var(--accent); }
.prov.human   .src-dot { background: var(--gold); }

/* ============================================================================
   Product detail page
   ============================================================================ */
.crumbs { font-size: 13px; color: var(--muted); padding: 22px 0; display: flex; gap: 8px; align-items: center; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--line-2); }

.pdp { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 4vw, 56px); padding-bottom: 32px; }
.pdp-media { border: 1px solid var(--line); background: #fff; aspect-ratio: 4/5; display: flex; align-items: center; justify-content: center; position: relative; padding: 36px; }
.pdp-media img { max-height: 100%; max-width: 86%; object-fit: contain; }
.pdp-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.pdp-thumbs .t { width: 64px; height: 64px; border: 1px solid var(--line); background: var(--panel); display: flex; align-items: center; justify-content: center; }
.pdp-thumbs .t.is-active { border-color: var(--ink); }

.pdp-info .pi-brand { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.pdp-info h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 4vw, 42px); margin: 8px 0 0; letter-spacing: -0.02em; }
.pdp-info .pi-sub { color: var(--ink-2); margin-top: 12px; font-size: 16px; max-width: 52ch; }

.pi-headline {
  display: flex; gap: 28px; margin: 26px 0; padding: 22px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.pi-headline .stat .v { font-family: var(--mono); font-size: 26px; font-weight: 500; letter-spacing: -0.02em; }
.pi-headline .stat .v small { font-size: 13px; color: var(--muted); }
.pi-headline .stat .l { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.pi-headline .stat + .stat { border-left: 1px solid var(--line); padding-left: 28px; }

/* offers table on PDP */
.offers { border: 1px solid var(--line); margin-top: 8px; }
.offers .offer {
  display: grid; grid-template-columns: 1fr auto auto auto; gap: 16px;
  align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.offers .offer:last-child { border-bottom: 0; }
.offers .offer.is-best { background: var(--accent-soft); }
.offers .vname { font-weight: 600; font-size: 14.5px; }
.offers .vmeta { font-size: 12px; color: var(--muted); }
.offers .oprice { font-family: var(--mono); font-weight: 500; font-size: 16px; text-align: right; }
.offers .opps { font-family: var(--mono); font-size: 12px; color: var(--muted); text-align: right; }
.offers .stock { font-size: 12px; color: var(--accent); display: flex; align-items: center; gap: 5px; }
.offers .stock.out { color: var(--muted); }
.best-tag { font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }

/* spec/transparency panels */
.panel { border: 1px solid var(--line); margin-top: 22px; }
.panel-head { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.panel-head h3 { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.panel-body { padding: 4px 18px 8px; }
.drow { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); gap: 16px; }
.drow:last-child { border-bottom: 0; }
.drow .dk { font-size: 14px; color: var(--ink-2); }
.drow .dv { display: flex; align-items: center; gap: 10px; }
.drow .dv .val { font-family: var(--mono); font-size: 14px; font-weight: 500; }

/* full ingredient transparency */
.ingredients { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.ingredients b { color: var(--ink); }

/* nutrition table */
table.nut { width: 100%; border-collapse: collapse; font-size: 14px; }
table.nut td { padding: 11px 0; border-bottom: 1px solid var(--line); }
table.nut tr:last-child td { border-bottom: 0; }
table.nut td.n { text-align: right; font-family: var(--mono); }
table.nut td.sub { padding-left: 18px; color: var(--muted); }

/* ============================================================================
   CTA band + footer
   ============================================================================ */
.cta-band { border-top: 1px solid var(--line); }
.cta-band .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 56px var(--gutter); }
.cta-band h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3vw, 34px); }
.cta-band p { color: var(--muted); margin: 8px 0 0; }

.footer { background: var(--ink); color: #b6b4ac; padding: 56px 0 40px; font-size: 13.5px; }
.footer .container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer .mark { color: #fff; font-weight: 700; font-size: 20px; letter-spacing: -0.04em; }
.footer .mark .pure { color: #5fa583; }
.footer p { margin: 14px 0 0; max-width: 34ch; line-height: 1.6; }
.footer h5 { color: #fff; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer ul a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid #2c2f31; margin-top: 44px; padding-top: 22px; color: #807e77; font-size: 12.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ============================================================================
   In-development landing page (single-page preview)
   ============================================================================ */
.devbar {
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.devbar .container { display: flex; align-items: center; gap: 9px; height: 38px; }
.devbar .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; display: inline-block; animation: devpulse 1.8s ease-in-out infinite; }
@keyframes devpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* Hero: compact horizontal intro, then the 3-step flow as the centrepiece */
.hero { padding-top: clamp(22px, 3vw, 40px); padding-bottom: clamp(28px, 4vw, 56px); }
.hero-head {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 4vw, 56px); align-items: end; max-width: none;
}
.hero-head .hero-h { margin-top: 10px; font-size: clamp(24px, 2.5vw, 36px); }
.hero-head .lede { font-size: 15.5px; max-width: 48ch; margin: 0 0 4px; }
@media (max-width: 820px) {
  .hero-head { grid-template-columns: 1fr; gap: 14px; }
  .hero-head .lede { margin-bottom: 0; }
}

.flow { display: flex; align-items: stretch; gap: 0; margin-top: 30px; }
.flow-step {
  flex: 1 1 0; min-width: 0; margin: 0;
  border: 1px solid var(--line-2); background: #fff;
  display: flex; flex-direction: column; box-shadow: 0 1px 0 var(--line);
}
.flow-arrow { flex: none; width: 40px; display: flex; align-items: center; justify-content: center; color: var(--accent); }
.flow-head { padding: 16px 18px; border-bottom: 1px solid var(--line); }
.flow-num { font-family: var(--mono); font-size: 11.5px; font-weight: 500; color: var(--accent); letter-spacing: 0.02em; }
.flow-step h3 { font-size: 16px; font-weight: 600; margin: 5px 0 0; letter-spacing: -0.01em; }
.flow-step .cap { font-size: 12.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.4; }
.flow-art { flex: 1; padding: 14px; display: flex; align-items: center; justify-content: center; background: var(--paper); }
.flow-art svg { width: 100%; height: auto; display: block; }
.flow-art text { font-family: var(--sans); }
.flow-art .dg-mono { font-family: var(--mono); }
@media (max-width: 880px) {
  .flow { flex-direction: column; }
  .flow-arrow { width: 100%; height: 38px; transform: rotate(90deg); }
}

/* hero footer row: coming-soon + learn link */
.hero-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: 32px; }
.hero-foot .soon { margin: 0; }

.dg-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; }

/* fills / strokes mapped to the house palette */
.dg-muted-t { fill: var(--muted); }
.dg-ink-t   { fill: var(--ink); }
.dg-tag-t   { fill: var(--accent); }
.dg-frame      { fill: #fff; stroke: var(--line-2); }
.dg-frame-mid  { fill: var(--panel); stroke: var(--line-2); }
.dg-frame-back { fill: var(--panel-2); stroke: var(--line-2); }
.dg-bar     { fill: var(--paper); }
.dg-pill    { fill: var(--panel); }
.dg-line    { stroke: var(--line); }
.dg-faint   { fill: var(--line-2); }
.dg-tile    { fill: #fff; stroke: var(--line); }
.dg-tile-sel{ fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.dg-mini    { fill: var(--panel); stroke: var(--line); }
.dg-mini-sel{ fill: #fff; stroke: var(--accent); stroke-width: 1.5; }
.dg-tub     { fill: #fff; stroke: var(--ink); stroke-width: 1.6; }
.dg-lid     { fill: var(--panel); stroke: var(--ink); stroke-width: 1.6; }
.dg-hole    { fill: var(--paper); stroke: var(--ink); stroke-width: 1.2; }
.dg-panel   { fill: var(--paper); stroke: var(--line); }
.dg-soft    { fill: var(--accent-soft); stroke: var(--accent); }
.dg-acc     { fill: var(--accent); }
.dg-acc-s   { fill: none; stroke: var(--accent); }
.dg-glass   { fill: #fff; stroke: var(--accent); stroke-width: 2.5; }
.dg-anno    { fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-dasharray: 4 3; }
.dg-lead    { fill: none; stroke: var(--accent); stroke-width: 1.2; stroke-dasharray: 3 3; }
.dg-tag     { fill: #fff; stroke: var(--accent); }

.demo-foot { margin: 0; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--paper); }

/* Coming-soon infobox */
.soon {
  margin-top: 40px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--accent);
  background: #fff;
  padding: 20px 24px;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.soon-tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-soft);
  padding: 4px 10px;
}
.soon p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; max-width: 48ch; }

/* Plain (paper) method grid — no dark band, no lab references */
.method-grid-plain {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.method-cell-plain { background: #fff; padding: 26px 24px; }
.method-cell-plain .step-no { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.method-cell-plain h4 { font-size: 17px; font-weight: 600; margin: 12px 0 8px; }
.method-cell-plain p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }

/* Top nav (stays visible on mobile, unlike the prototype .nav) */
.topnav { margin-left: auto; display: flex; gap: 22px; }
.topnav a { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 6px 0; border-bottom: 2px solid transparent; }
.topnav a:hover { color: var(--ink); }
.topnav a.is-active { color: var(--ink); border-bottom-color: var(--accent); }

/* By the numbers — stat band */
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 28px;
}
.statcard { background: #fff; padding: 24px 22px; display: flex; flex-direction: column; gap: 10px; }
.statbig { font-size: clamp(28px, 3.4vw, 42px); font-weight: 500; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.statlab { font-size: 13.5px; color: var(--ink-2); margin: 0; line-height: 1.45; }
.statlab em { font-style: italic; }
.statsrc { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-top: auto; }
.statsrc:hover { color: var(--accent); }
@media (max-width: 820px) { .stat-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stat-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   Education page
   ============================================================================ */
.edu-intro { font-size: 17px; color: var(--ink-2); max-width: 60ch; margin: 16px 0 0; line-height: 1.55; }
.edu-topic { padding: 34px 0; border-top: 1px solid var(--line); }
.edu-topic:first-of-type { border-top: 0; padding-top: 8px; }
.edu-topic h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; margin-top: 8px; }
.edu-topic p { color: var(--ink-2); max-width: 64ch; margin: 14px 0 0; line-height: 1.6; font-size: 15.5px; }
.edu-topic .cite { color: var(--accent); font-weight: 600; }
.edu-topic .cite:hover { text-decoration: underline; }
.takeaway {
  border-left: 3px solid var(--accent); background: var(--accent-soft);
  padding: 12px 16px; margin-top: 18px; font-size: 14px; max-width: 64ch; color: var(--ink-2);
}
.takeaway b { color: var(--accent); }
.edu-src { margin-top: 16px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 16px; }
.edu-src strong { color: var(--ink-2); font-weight: 600; }
.edu-src a { color: var(--accent); font-weight: 600; }
.edu-src a:hover { text-decoration: underline; }

/* Why it matters / evidence */
.why-h { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -0.02em; margin-top: 12px; max-width: 22ch; }
.why-p { color: var(--ink-2); font-size: 16px; line-height: 1.55; max-width: 60ch; margin: 18px 0 0; }
.reading { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); max-width: 760px; }
.reading li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.reading a {
  font-size: 15px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 7px;
}
.reading a::after {
  content: "↗"; font-size: 13px; color: var(--muted); font-weight: 400;
}
.reading a:hover { color: var(--accent-700); text-decoration: underline; }
.reading span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* Slim footer for the preview page */
.footer-slim { padding: 28px 0; }
.footer-slim .footer-bottom { border-top: 0; margin-top: 0; padding-top: 0; align-items: center; }
.footer-slim .mark { font-size: 18px; }

@media (max-width: 760px) {
  .method-grid-plain { grid-template-columns: 1fr; }
}

/* ============================================================================
   Responsive
   ============================================================================ */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-search { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { margin-top: 12px; }
  .trust-strip .container { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; padding-left: 0; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .method-grid { grid-template-columns: 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .footer .container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .trust-strip .container { grid-template-columns: 1fr; }
  .trust-item { border-left: 0 !important; padding-left: 0 !important; border-top: 1px solid var(--line); }
  .trust-item:first-child { border-top: 0; }
  .product-grid { grid-template-columns: 1fr; }
  .cta-band .container { flex-direction: column; align-items: flex-start; }
  .footer .container { grid-template-columns: 1fr; }
}
