/* ═══════════════════════════════════════════════════════════
   Clex® Pro Drink — "The Product" landing page
   Palette: cream base · dark-green anchors · red used sparingly
   Type: Josefin Sans (display) + JetBrains Mono (micro-labels)
   ═══════════════════════════════════════════════════════════ */

:root {
  --green-900: #15211f;
  --green-800: #1f2a2a;
  --green-700: #2e5754;
  --green-600: #3a6b67;
  --paper:     #faf8f3;
  --paper-2:   #f1ede3;
  --paper-3:   #e8e3d6;
  --ink:       #1c2422;
  --ink-soft:  #5c655f;
  --red:       #c63a2a;
  --red-soft:  #e05943;
  --line:      #d9d3c4;
  --gold:      #d8b46a;

  --font-display: 'Josefin Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --maxw: 1240px;
  --pad: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-display);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }

/* ── shared atoms ──────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1.5px;
  background: var(--red);
  display: inline-block;
}
.eyebrow.on-dark { color: var(--gold); }
.eyebrow.on-dark::before { background: var(--gold); }
.eyebrow.center { justify-content: center; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.01em; line-height: 1.05; text-wrap: balance; }
.display {
  font-weight: 300;
  font-size: clamp(38px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.display em { font-style: italic; font-weight: 500; color: var(--red); }
.h2 {
  font-weight: 300;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.h2 em { font-style: italic; font-weight: 500; color: var(--red); }
.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--ink-soft);
  max-width: 60ch;
  line-height: 1.6;
}

.section { padding-block: clamp(64px, 9vw, 130px); }
.section-head { max-width: 64ch; }
.section-head .lead { margin-top: 20px; }
.section-head h2 { margin-top: 18px; }

/* ── buttons ──────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-soft); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(198,58,42,0.7); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--green-800); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-ghost.on-dark { color: var(--paper); border-color: rgba(255,255,255,0.3); }
.btn-ghost.on-dark:hover { border-color: var(--paper); background: rgba(255,255,255,0.06); }
.btn .wa { font-size: 17px; }

/* ── nav ──────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
  border-bottom: 1px solid transparent;
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 16px var(--pad);
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav .logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav .logo img { height: 26px; width: auto; transition: filter .3s ease; }
.nav .logo .brand {
  font-family: var(--font-display); font-weight: 600; font-size: 18px;
  color: #fff; letter-spacing: -0.01em; transition: color .3s ease;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.82);
  text-decoration: none; padding: 8px 14px; border-radius: 999px;
  transition: color .2s ease, background .2s ease;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.1); }
.nav-links .nav-cta {
  background: var(--red); color: #fff; margin-left: 8px;
}
.nav-links .nav-cta:hover { background: var(--red-soft); }

/* scrolled state */
.nav.scrolled { background: rgba(250,248,243,0.92); backdrop-filter: blur(12px); border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(0,0,0,0.4); }
.nav.scrolled .logo img { filter: brightness(0) saturate(100%) invert(13%) sepia(10%) saturate(900%) hue-rotate(120deg); }
.nav.scrolled .logo .brand { color: var(--ink); }
.nav.scrolled .nav-links a { color: var(--ink-soft); }
.nav.scrolled .nav-links a:hover { color: var(--ink); background: var(--paper-2); }
.nav.scrolled .nav-links .nav-cta { color: #fff; }
.nav.scrolled .nav-links .nav-cta:hover { color: #fff; }

.nav-toggle { display: none; }

/* ── hero ──────────────────────────────── */
.hero {
  position: relative;
  background: radial-gradient(120% 120% at 50% -10%, var(--green-700) 0%, var(--green-800) 42%, var(--green-900) 100%);
  color: var(--paper);
  padding-top: clamp(120px, 16vh, 180px);
  padding-bottom: clamp(60px, 8vw, 96px);
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0);
  background-size: 26px 26px;
  pointer-events: none;
  mask-image: radial-gradient(120% 80% at 50% 30%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 2; text-align: center; }
.hero .eyebrow { margin-bottom: 26px; }
.hero h1 { color: var(--paper); }
.hero h1 em { color: var(--red-soft); }
.hero .lead { color: rgba(250,248,243,0.74); margin: 26px auto 0; text-align: center; }

/* product diagram */
.diagram {
  margin-top: clamp(40px, 5vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: clamp(16px, 3vw, 48px);
  align-items: center;
  max-width: 1080px;
  margin-inline: auto;
}
.callout-col { display: flex; flex-direction: column; gap: clamp(20px, 3vw, 40px); }
.callout-col.left { align-items: flex-end; text-align: right; }
.callout-col.right { align-items: flex-start; text-align: left; }
.callout {
  max-width: 230px;
  opacity: 0;
  transform: translateY(14px);
}
.callout .ci {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold);
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px;
}
.callout-col.left .ci { flex-direction: row-reverse; }
.callout .ci .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.callout .ct { font-size: 18px; font-weight: 600; color: var(--paper); line-height: 1.1; }
.callout .cb { font-size: 13px; color: rgba(250,248,243,0.62); line-height: 1.45; margin-top: 5px; }

.product-stage {
  position: relative;
  width: clamp(200px, 27vw, 300px);
  aspect-ratio: 4 / 5;
  justify-self: center;
  border-radius: 24px;
  transition: background .3s ease, padding .3s ease, box-shadow .3s ease;
}
.product-stage::after {
  content: 'Clex® Pro Drink';
  position: absolute; left: 0; right: 0; bottom: -34px;
  text-align: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(250,248,243,0.55);
}
.product-stage image-slot {
  width: 100%; height: 100%;
  display: block;
  color: rgba(28,36,34,0.6);
}

/* Cream pedestal — shown for the EMPTY drop target (so it's visible on the
   dark hero) and in explicit "card" mode. Collapses once a photo is dropped. */
.product-stage:has(image-slot:not([data-filled])),
body[data-product="card"] .product-stage {
  background: linear-gradient(168deg, #fdfcf8 0%, #ece6d8 100%);
  padding: 14px;
  box-shadow: 0 40px 70px -34px rgba(0,0,0,0.7), 0 2px 0 0 rgba(255,255,255,0.5) inset;
}
/* "Fill the pill" — filled image covers the rounded frame edge-to-edge. */
body[data-product="fill"] .product-stage:has(image-slot[data-filled]) {
  background: transparent; padding: 0;
  box-shadow: 0 44px 74px -34px rgba(0,0,0,0.65);
}
/* "No background" — filled image floats clean on the hero (best for cut-outs). */
body[data-product="bare"] .product-stage:has(image-slot[data-filled]) {
  background: transparent; padding: 0; box-shadow: none;
}
body[data-product="bare"] .product-halo { opacity: 0.5; }
.product-halo {
  position: absolute; inset: -12% -8%;
  background: radial-gradient(circle, rgba(216,180,106,0.16), transparent 62%);
  z-index: 0; pointer-events: none;
}
.reg-chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(250,248,243,0.7);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 999px;
  padding: 7px 14px; margin-top: 30px;
}
.reg-chip .led { width: 7px; height: 7px; border-radius: 50%; background: #6ad08f; box-shadow: 0 0 8px #6ad08f; }

.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 38px; }

/* mobile callout list */
.callout-mobile { display: none; }

/* ── metrics strip ──────────────────────────────── */
.metrics {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.metrics-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.metric {
  padding: 30px clamp(16px, 2.5vw, 32px);
  border-left: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
}
.metric:first-child { border-left: 0; }
.metric .m-top {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--red); display: flex; align-items: center; gap: 8px;
}
.metric .m-val { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.01em; }
.metric .m-lbl { font-size: 13.5px; color: var(--ink-soft); }

/* ── problem (compact) ──────────────────────────────── */
.problem { background: var(--paper); }
.problem-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.window-strip { display: flex; gap: 10px; margin-top: 28px; align-items: stretch; }
.window-card {
  flex: 1; border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 16px; background: var(--paper-2);
  display: flex; flex-direction: column; gap: 6px;
}
.window-card .wn { font-family: var(--font-mono); font-size: 24px; font-weight: 600; color: var(--red); letter-spacing: -0.02em; }
.window-card .wl { font-size: 13px; color: var(--ink-soft); line-height: 1.35; }
.problem-photo { position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; }
.problem-photo img { width: 100%; height: 100%; object-fit: cover; }
.problem-photo .pp-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 40px 22px 20px;
  background: linear-gradient(transparent, rgba(21,33,31,0.9));
  color: var(--paper); font-size: 14px; line-height: 1.45;
}

/* ── ingredients ──────────────────────────────── */
.ingredients { background: var(--paper-2); }
.ing-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden;
  margin-top: 52px;
}
.ing-card {
  background: var(--paper); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background .25s ease;
  position: relative;
}
.ing-card:hover { background: #fff; }
.ing-num { font-family: var(--font-mono); font-size: 12px; color: var(--red); letter-spacing: 0.1em; }
.ing-title { font-size: 21px; font-weight: 600; line-height: 1.1; }
.ing-body { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }
.ing-job {
  margin-top: auto; padding-top: 14px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green-700); display: flex; align-items: center; gap: 8px;
}
.ing-job::before { content: '→'; }

/* ── use cases (interactive) ──────────────────────────────── */
.usecases { background: var(--green-800); color: var(--paper); }
.usecases .lead { color: rgba(250,248,243,0.7); }
.uc-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.uc-tab {
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  color: rgba(250,248,243,0.7);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px; padding: 11px 22px; cursor: pointer;
  transition: all .2s ease;
}
.uc-tab:hover { color: #fff; border-color: rgba(255,255,255,0.4); }
.uc-tab.active { background: var(--paper); color: var(--green-800); border-color: var(--paper); font-weight: 600; }
.uc-panel {
  margin-top: 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 60px);
  align-items: center;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 40px;
}
.uc-content { min-height: 200px; }
.uc-content .uc-when {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.uc-content h3 { font-size: clamp(26px, 3.2vw, 40px); font-weight: 300; line-height: 1.05; letter-spacing: -0.02em; }
.uc-content h3 em { font-style: italic; color: var(--gold); font-weight: 400; }
.uc-content p { font-size: 16px; color: rgba(250,248,243,0.74); line-height: 1.6; margin-top: 18px; max-width: 46ch; }
.uc-dose {
  display: inline-flex; align-items: baseline; gap: 10px; margin-top: 24px;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.05em;
  color: var(--paper); border: 1px solid rgba(255,255,255,0.2);
  padding: 10px 18px; border-radius: 12px; background: rgba(255,255,255,0.04);
}
.uc-dose b { font-size: 20px; color: var(--gold); }
.uc-visual {
  border-radius: 18px; overflow: hidden; aspect-ratio: 5/4; position: relative;
  background: var(--green-900);
}
.uc-visual img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; position: absolute; inset: 0; }
.uc-visual img.show { opacity: 0.92; }
.uc-fade { animation: ucfade .45s ease; }
@keyframes ucfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── dosing ──────────────────────────────── */
.dosing { background: var(--paper); }
.dosing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.dose-headline { font-family: var(--font-display); font-weight: 300; font-size: clamp(34px, 4.6vw, 58px); line-height: 1; letter-spacing: -0.025em; }
.dose-headline b { font-weight: 600; color: var(--red); }
.dose-methods { display: flex; flex-direction: column; gap: 2px; margin-top: 34px; }
.dose-method {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  padding: 20px 0; border-top: 1px solid var(--line);
}
.dose-method:last-child { border-bottom: 1px solid var(--line); }
.dose-method .dm-num { font-family: var(--font-mono); font-size: 12px; color: var(--red); padding-top: 4px; }
.dose-method .dm-t { font-size: 18px; font-weight: 600; }
.dose-method .dm-b { font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin-top: 3px; }
.dosing-photo { border-radius: 18px; overflow: hidden; aspect-ratio: 4/5; }
.dosing-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── math ──────────────────────────────── */
.math { background: var(--green-900); color: var(--paper); }
.math .eyebrow { color: var(--gold); }
.math .eyebrow::before { background: var(--gold); }
.math h2 { color: var(--paper); }
.math h2 em { color: var(--red-soft); font-style: italic; font-weight: 400; }
.math-compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; margin-top: 52px; align-items: stretch; }
.math-col { padding: 34px clamp(20px, 3vw, 40px); }
.math-col h4 {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  margin-bottom: 22px;
}
.math-col.without h4 { color: rgba(250,248,243,0.5); }
.math-col.with { background: rgba(255,255,255,0.05); border-radius: 18px; }
.math-col.with h4 { color: var(--gold); }
.math-col ul { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.math-col li { font-size: 15px; line-height: 1.5; padding-left: 26px; position: relative; }
.math-col.without li { color: rgba(250,248,243,0.66); }
.math-col.without li::before { content: '✕'; position: absolute; left: 0; color: var(--red-soft); font-size: 13px; top: 1px; }
.math-col.with li::before { content: '✓'; position: absolute; left: 0; color: #6ad08f; font-weight: 700; top: 0; }
.math-vs {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em;
  color: rgba(250,248,243,0.4); padding: 0 8px;
}
.math-foot { margin-top: 34px; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.math-foot .big { font-size: clamp(30px, 4vw, 48px); font-weight: 300; letter-spacing: -0.02em; }
.math-foot .big b { color: var(--gold); font-weight: 600; }
.math-foot .fine { font-size: 12.5px; color: rgba(250,248,243,0.45); }

/* ── benefits ──────────────────────────────── */
.benefits { background: var(--paper-2); }
.ben-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-radius: 16px; overflow: hidden; border: 1px solid var(--line); margin-top: 48px; }
.ben { background: var(--paper); padding: 28px 22px; display: flex; flex-direction: column; gap: 10px; }
.ben .bt { font-size: 16px; font-weight: 600; line-height: 1.15; }
.ben .bb { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.ben .bk { font-family: var(--font-mono); font-size: 11px; color: var(--red); }

/* ── trust ──────────────────────────────── */
.trust { background: var(--paper); }
.trust-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.trust-photo { border-radius: 18px; overflow: hidden; aspect-ratio: 1/1; }
.trust-photo img { width: 100%; height: 100%; object-fit: cover; }
.trust-items { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
.trust-item { padding: 22px 0; border-top: 1px solid var(--line); }
.trust-item:last-child { border-bottom: 1px solid var(--line); }
.trust-item h4 { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.trust-item p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

/* ── testimonial ──────────────────────────────── */
.testi { background: var(--green-800); color: var(--paper); }
.testi-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.testi .stars { color: var(--gold); font-size: 18px; letter-spacing: 4px; margin-bottom: 26px; }
.testi blockquote {
  font-weight: 300; font-size: clamp(26px, 3.6vw, 44px); line-height: 1.18; letter-spacing: -0.015em;
  text-wrap: balance;
}
.testi blockquote em { font-style: italic; color: var(--gold); }
.testi .attr { margin-top: 28px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(250,248,243,0.6); }

/* ── final cta ──────────────────────────────── */
.cta { background: radial-gradient(120% 130% at 50% 0%, var(--green-700), var(--green-900) 70%); color: var(--paper); text-align: center; }
.cta h2 { color: var(--paper); }
.cta h2 em { color: var(--red-soft); font-style: italic; font-weight: 400; }
.cta .lead { color: rgba(250,248,243,0.74); margin: 22px auto 0; text-align: center; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }
.cta-logistics { margin-top: 34px; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; color: rgba(250,248,243,0.5); }

/* ── brochure email gate ──────────────────────────────── */
.brochure {
  margin: 40px auto 0; max-width: 720px;
  display: grid; grid-template-columns: 1fr; gap: 20px;
  text-align: left;
  border: 1px solid rgba(255,255,255,0.16); border-radius: 18px;
  background: rgba(255,255,255,0.04);
  padding: clamp(22px, 3vw, 32px);
}
.br-kicker {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); display: inline-flex; align-items: center; gap: 9px;
}
.br-kicker::before { content: ''; width: 18px; height: 1.5px; background: var(--gold); display: inline-block; }
.br-head { font-weight: 300; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.08; color: var(--paper); margin-top: 12px; letter-spacing: -0.015em; }
.br-head em { font-style: italic; font-weight: 500; color: var(--red-soft); }
.br-sub { font-size: 14.5px; line-height: 1.55; color: rgba(250,248,243,0.7); margin-top: 12px; max-width: 56ch; }
.br-field { display: flex; gap: 12px; flex-wrap: wrap; }
.br-field input {
  flex: 1 1 260px; min-width: 0;
  font-family: var(--font-display); font-size: 15px; color: var(--paper);
  background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.22); border-radius: 999px;
  padding: 14px 22px; outline: none; transition: border-color .2s ease, background .2s ease;
}
.br-field input::placeholder { color: rgba(250,248,243,0.42); }
.br-field input:focus { border-color: var(--gold); background: rgba(0,0,0,0.3); }
.br-btn { white-space: nowrap; }
.br-note { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; color: rgba(250,248,243,0.5); }
.br-form.err .br-field input { border-color: var(--red-soft); }
.br-form.err .br-note { color: var(--red-soft); }
.br-form.done .br-field input { border-color: var(--gold); }
.br-form.done .br-note { color: var(--gold); }

/* ── footer ──────────────────────────────── */
.footer { background: var(--green-900); color: rgba(250,248,243,0.6); padding-block: 48px; border-top: 1px solid rgba(255,255,255,0.08); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer img { height: 24px; }
.footer .f-meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; text-align: right; line-height: 1.8; }

/* ── floating whatsapp ──────────────────────────────── */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  display: flex; align-items: center; gap: 10px;
  background: var(--red); color: #fff; text-decoration: none;
  padding: 13px 20px 13px 16px; border-radius: 999px;
  font-weight: 600; font-size: 15px;
  box-shadow: 0 14px 30px -10px rgba(198,58,42,0.7);
  transition: transform .2s ease, background .2s ease;
}
.wa-float:hover { transform: translateY(-3px) scale(1.02); background: var(--red-soft); }
.wa-float .wa { font-size: 19px; }

/* ── reveal ──────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── responsive ──────────────────────────────── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 100%; right: var(--pad); flex-direction: column; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 10px; gap: 4px; box-shadow: 0 20px 40px -20px rgba(0,0,0,0.4); min-width: 200px; }
  .nav-links.open a { color: var(--ink); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.25); background: transparent; cursor: pointer; }
  .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ''; display: block; width: 18px; height: 2px; background: #fff; position: relative; transition: .2s; }
  .nav-toggle span::before { position: absolute; top: -6px; } .nav-toggle span::after { position: absolute; top: 6px; }
  .nav.scrolled .nav-toggle span, .nav.scrolled .nav-toggle span::before, .nav.scrolled .nav-toggle span::after { background: var(--ink); }
  .nav.scrolled .nav-toggle { border-color: var(--line); }

  .diagram { grid-template-columns: 1fr; }
  .callout-col { display: none; }
  .product-stage { width: min(64vw, 260px); }
  .callout-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; text-align: left; max-width: 560px; margin-inline: auto; }
  .cm { border: 1px solid rgba(255,255,255,0.14); border-radius: 12px; padding: 14px 16px; background: rgba(255,255,255,0.03); }
  .cm .ci { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 5px; }
  .cm .ct { font-size: 15px; font-weight: 600; }

  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(odd) { border-left: 0; }
  .metric:nth-child(even) { border-left: 1px solid var(--line); }
  .metric:nth-child(n+3) { border-top: 1px solid var(--line); }

  .problem-grid, .dosing-grid, .trust-grid, .uc-panel { grid-template-columns: 1fr; }
  .problem-photo, .dosing-photo { aspect-ratio: 16/10; }
  .trust-photo { aspect-ratio: 16/10; }
  .ing-grid { grid-template-columns: 1fr 1fr; }
  .ben-grid { grid-template-columns: 1fr 1fr; }
  .uc-panel { gap: 28px; }
  .uc-visual { order: -1; }
}

@media (max-width: 560px) {
  .ing-grid { grid-template-columns: 1fr; }
  .ben-grid { grid-template-columns: 1fr; }
  .window-strip { flex-wrap: wrap; }
  .window-card { min-width: calc(50% - 5px); flex: none; }
  .math-compare { grid-template-columns: 1fr; }
  .math-vs { padding: 18px 0; }
  .callout-mobile { grid-template-columns: 1fr; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric { border-left: 0 !important; border-top: 1px solid var(--line); }
  .metric:first-child { border-top: 0; }
  .wa-float span.lbl { display: none; }
  .wa-float { padding: 14px; }
}

/* ── tweakable hero backgrounds ──────────────────────────────── */
body[data-herobg="charcoal"] .hero {
  background: radial-gradient(120% 120% at 50% -10%, #303436 0%, #1f2123 44%, #141516 100%);
}
body[data-herobg="forest"] .hero {
  background: radial-gradient(120% 120% at 50% -10%, #34715a 0%, #1f3b2d 44%, #112018 100%);
}
/* hide the floating WhatsApp button when toggled off */
body[data-wafloat="off"] .wa-float { display: none; }
