/* ==========================================================================
   BoochBot — "Living Culture" design system (2026-07-03)
   Bright, precise, scientific-alive. Cool paper base, near-black ink, a
   committed deep-teal brand color, amber as the fermentation signal, and a
   green "ready" cue. Fonts: Bricolage Grotesque (display) + Hanken Grotesk
   (body) + Geist Mono (instrument labels & readouts).
   ========================================================================== */

:root {
  /* Neutrals — cool off-white paper, not warm cream */
  --paper: #f2f4ee;
  --paper-dim: #e7ebe0;
  --surface: #ffffff;
  --surface-2: #f8faf5;
  --ink: #15170f;
  --ink-soft: #494f41; /* secondary text — AA (~7:1) on paper */
  --ink-mute: #6c7261; /* labels / large text only — ~4.1:1 */

  /* Brand accent — deep teal ("the culture") */
  --teal: #0e6b5b;
  --teal-deep: #0a5346;
  --teal-ink: #0a5648; /* small teal text on light — AA */
  --teal-soft: #cfe1da;
  --teal-drench: #0c3a32; /* drenched section background */

  /* Fermentation signal — amber warms into ready-green */
  --amber: #dd8b2b;
  --amber-ink: #8f5115; /* text-safe amber on light — AA */
  --amber-soft: #f0d3a6;
  --ready: #5f9b3e;
  --ready-soft: #bcd7a6;

  /* Lines & fields */
  --line: #dbe1d3;
  --line-strong: #c7cfbb;
  --line-dark: #274039; /* borders on teal-drench */
  --field: #edf0e8;

  /* Status text */
  --error-ink: #a5331b; /* light surfaces */
  --success-ink: #3e6b36; /* light surfaces */
  --status-error-dark: #f0a488; /* on teal-drench */
  --status-ok-dark: #bcd7a6; /* on teal-drench */

  --white: #ffffff;

  --font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --font-text: "Hanken Grotesk", -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", "Menlo", monospace;

  --max-width: 1140px;
  --narrow-width: 760px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-xl: 28px;
  --header-height: 74px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Semantic z-scale */
  --z-sticky: 40;
  --z-nav: 60;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* No-JS fallback: keep anchored sections clear of the sticky header when JS is
   unavailable. When JS is on, startup.js centers the target instead (takes
   precedence via scrollIntoView block:center). */
section[id],
[id].anchor-target {
  scroll-margin-top: calc(var(--header-height) + 16px);
}

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

body.no-scroll {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

ul {
  margin: 0;
  padding: 0;
}

dl,
dd {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

*:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--teal) 65%, var(--white));
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--amber-soft);
  color: var(--ink);
}

/* --- Instrument label: the deliberate mono "readout" eyebrow ---------------
   Reframed from a generic uppercase kicker into a lab-readout label: mono,
   lowercase, teal, with a leading measurement tick. Used as brand voice. */
.section-label,
.hero-chip,
.readout-tag,
.path-item > span,
.form-section legend span,
.form-section > label span {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal-ink);
}

.section-label::before {
  content: "";
  width: 14px;
  height: 2px;
  background: var(--amber);
  border-radius: 2px;
}

/* ===== Header ============================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - var(--max-width)) / 2));
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: var(--teal);
  flex: 0 0 auto;
  transform: rotate(45deg);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.32rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.wordmark span {
  color: var(--teal);
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  font-size: 0.95rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--ink-soft);
  transition: color 160ms ease;
}

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

.site-nav .nav-cta {
  color: var(--white);
  background: var(--teal);
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  transition: background 160ms ease;
}

.site-nav .nav-cta:hover {
  background: var(--teal-deep);
  color: var(--white);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  transition: transform 180ms ease, opacity 180ms ease;
}

/* ===== Buttons =========================================================== */

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, transform 120ms var(--ease-out),
    color 160ms ease;
}

.button:active {
  transform: translateY(1px);
}

.button-primary {
  background: var(--teal);
  color: var(--white);
}

.button-primary:hover {
  background: var(--teal-deep);
}

.button-primary:disabled {
  cursor: progress;
  background: var(--ink-mute);
}

.button-secondary {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface);
}

.button-secondary:hover {
  border-color: var(--ink);
  background: var(--surface-2);
}

/* ===== Hero ============================================================== */

.hero {
  padding: clamp(34px, 6vh, 68px) 24px clamp(26px, 5vh, 52px);
}

.hero-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(330px, 1.08fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: center;
}

.hero-copy {
  display: grid;
  justify-items: start;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 32px;
  padding: 6px 14px 6px 12px;
  color: var(--teal-ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  margin-bottom: 22px;
}

.hero-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ready);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ready) 22%, transparent);
}

.hero h1,
.survey-hero h1 {
  max-width: 12ch;
  font-size: clamp(2.7rem, 5.6vw, 4.4rem);
}

.hero-summary {
  max-width: 54ch;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 1.12rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero-stage {
  min-width: 0;
}

/* ===== The device (signature instrument visual) ========================== */

.device {
  position: relative;
  min-height: 428px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 30px 60px -40px rgba(21, 23, 15, 0.4);
}

.device::before {
  /* soft field of light behind the jar */
  content: "";
  position: absolute;
  inset: -20% 20% 30% -10%;
  background: radial-gradient(60% 60% at 40% 40%, color-mix(in srgb, var(--teal) 12%, transparent), transparent 70%);
  pointer-events: none;
}

.device-scene {
  position: relative;
  height: 100%;
  min-height: 428px;
  display: grid;
  place-items: end center;
  padding: 40px 28px 58px;
}

.counter-line {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 62px;
  height: 1px;
  background: var(--line-strong);
}

.device-probe {
  position: absolute;
  top: 34px;
  left: calc(50% + 78px);
  width: 6px;
  height: 210px;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--ink) 0%, #3a4038 100%);
  box-shadow: -1px 0 0 rgba(255, 255, 255, 0.15) inset;
  z-index: 3;
}

.device-probe::before {
  /* clip collar over the jar rim */
  content: "";
  position: absolute;
  top: 20px;
  left: -7px;
  width: 20px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: transparent;
}

.device-probe::after {
  /* sensor tip glowing in the liquid */
  content: "";
  position: absolute;
  bottom: -3px;
  left: -2px;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ready);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--ready) 26%, transparent);
  animation: probe-pulse 3.4s var(--ease-out) infinite;
}

.jar {
  position: relative;
  width: min(238px, 56vw);
  height: 356px;
  z-index: 2;
}

.jar-lid {
  position: absolute;
  left: 24%;
  top: 0;
  width: 52%;
  height: 30px;
  border: 1px solid var(--line-strong);
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  background: var(--surface);
}

.jar-glass {
  position: absolute;
  inset: 28px 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 22px 22px 16px 16px;
  background: color-mix(in srgb, var(--teal) 5%, var(--surface));
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.jar-glass::before {
  content: "";
  position: absolute;
  inset: 16px auto 16px 22px;
  width: 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.1));
  z-index: 4;
}

.tea-fill {
  position: absolute;
  inset: auto 0 0;
  height: 72%;
  background: linear-gradient(180deg, var(--amber-soft) 0%, color-mix(in srgb, var(--amber) 60%, var(--amber-soft)) 100%);
  border-top: 3px solid color-mix(in srgb, var(--amber) 70%, transparent);
}

.bubble {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  opacity: 0;
  animation: bubble 4.6s ease-in infinite;
}

.bubble-a {
  left: 32%;
  bottom: 20%;
  animation-delay: 0.4s;
}

.bubble-b {
  left: 56%;
  bottom: 16%;
  width: 5px;
  height: 5px;
  animation-delay: 1.7s;
}

.bubble-c {
  left: 70%;
  bottom: 24%;
  animation-delay: 3s;
}

/* Readout screen — a small dark instrument display */
.readout {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: min(230px, 62%);
  z-index: 4;
  padding: 14px 16px 15px;
  background: var(--ink);
  color: var(--paper);
  border: 1px solid #33392f;
  border-radius: 14px;
  font-family: var(--font-mono);
  box-shadow: 0 18px 34px -22px rgba(21, 23, 15, 0.7);
}

.readout-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #9aa08f;
  font-size: 0.68rem;
}

.readout-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ready-soft);
}

.readout-live::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ready);
  animation: probe-pulse 3.4s var(--ease-out) infinite;
}

.readout-status {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
}

.readout-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--ready);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--ready) 24%, transparent);
}

.readout-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--white);
}

.gauge {
  margin-top: 12px;
  height: 8px;
  border-radius: 999px;
  background: #2c3228;
  overflow: hidden;
}

.gauge-fill {
  display: block;
  height: 100%;
  width: 86%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--ready) 100%);
  transform-origin: left center;
  animation: gauge 4.5s var(--ease-out) infinite alternate;
}

.readout-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid #2c3228;
}

.readout-stats dt {
  color: #8a907f;
  font-size: 0.62rem;
  text-transform: lowercase;
}

.readout-stats dd {
  margin-top: 2px;
  color: var(--paper);
  font-size: 0.94rem;
  font-weight: 500;
}

@keyframes bubble {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  14% {
    opacity: 0.9;
  }
  86% {
    opacity: 0.4;
  }
  100% {
    opacity: 0;
    transform: translateY(-150px);
  }
}

@keyframes probe-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--ready) 26%, transparent);
  }
  50% {
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--ready) 6%, transparent);
  }
}

@keyframes gauge {
  from {
    width: 68%;
  }
  to {
    width: 92%;
  }
}

/* ===== Truth band ======================================================== */

.truth-band,
.split-section,
.guide-preview,
.kit-section,
.path-section,
.waitlist,
.survey-trust,
.survey-shell {
  padding-inline: 24px;
}

.truth-band {
  padding-bottom: clamp(48px, 7vh, 84px);
}

.truth-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(20px, 4vw, 48px);
  padding: 26px clamp(22px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.truth-inner strong {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 0.02em;
  color: var(--amber-ink);
}

.truth-inner ul {
  display: grid;
  gap: 10px;
  color: var(--ink-soft);
  list-style: none;
}

.truth-inner li {
  position: relative;
  padding-left: 22px;
}

.truth-inner li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}

/* ===== Split / problem =================================================== */

.split-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: clamp(36px, 6vh, 76px);
  padding-bottom: clamp(52px, 8vh, 104px);
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: clamp(28px, 6vw, 74px);
  align-items: start;
}

.section-copy,
.kit-copy,
.path-header {
  display: grid;
  gap: 16px;
}

.section-copy h2,
.kit-copy h2,
.path-header h2,
.waitlist h2 {
  font-size: clamp(1.95rem, 3.5vw, 2.7rem);
}

.section-copy p:not(.section-label),
.kit-copy p,
.path-header p:not(.section-label),
.pain-item p,
.path-item p {
  color: var(--ink-soft);
}

.pain-list {
  display: grid;
  gap: 14px;
}

.pain-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 200ms ease, transform 200ms var(--ease-out);
}

.pain-item:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.pain-item > span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--paper-dim);
  color: var(--teal-ink);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.95rem;
}

.pain-item h3,
.path-item h3 {
  font-size: 1.22rem;
  margin-bottom: 8px;
}

/* ===== Guide preview ====================================================== */

.guide-preview {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: clamp(12px, 3vh, 34px);
  padding-bottom: clamp(52px, 8vh, 96px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: start;
}

.guide-preview-copy {
  display: grid;
  gap: 16px;
}

.guide-preview-copy h2 {
  max-width: 16ch;
  font-size: clamp(1.9rem, 3.2vw, 2.55rem);
}

.guide-preview-copy p {
  max-width: 62ch;
  color: var(--ink-soft);
}

.guide-preview-copy .button {
  justify-self: start;
  margin-top: 4px;
}

.guide-preview-list {
  display: grid;
  gap: 12px;
  list-style: none;
}

.guide-preview-list li {
  position: relative;
  padding: 18px 20px 18px 46px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 500;
}

.guide-preview-list li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 24px;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--ready);
  transform: rotate(45deg);
}

/* ===== Kit =============================================================== */

.kit-section {
  background: var(--paper-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: clamp(56px, 8vh, 96px);
  padding-bottom: clamp(56px, 8vh, 96px);
}

.kit-section > * {
  max-width: var(--max-width);
  margin-inline: auto;
}

.kit-copy {
  max-width: 720px;
  margin-bottom: 32px;
}

.kit-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.kit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}

.kit-dot {
  width: 10px;
  height: 10px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--teal);
  transform: rotate(45deg);
  flex: 0 0 auto;
}

/* ===== Path ============================================================== */

.path-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-top: clamp(54px, 8vh, 100px);
  padding-bottom: clamp(52px, 8vh, 104px);
}

.path-header {
  max-width: 700px;
  margin-bottom: 34px;
}

.path-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  counter-reset: path;
}

.path-item {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
}

.path-item::before {
  counter-increment: path;
  content: "0" counter(path);
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--line-strong);
}

.path-item > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--teal-ink);
  margin-bottom: 16px;
}

.path-item > span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--amber);
}

/* ===== Waitlist (drenched teal) ========================================== */

.waitlist {
  padding-bottom: clamp(64px, 10vh, 120px);
}

.waitlist-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  justify-items: center;
  text-align: center;
  color: var(--paper);
  background: var(--teal-drench);
  border-radius: var(--radius-xl);
  padding: clamp(46px, 7vw, 82px) clamp(22px, 6vw, 80px);
  overflow: hidden;
}

.waitlist-inner::before {
  content: "";
  position: absolute;
  inset: auto -10% -60% 40%;
  height: 120%;
  background: radial-gradient(50% 50% at 50% 50%, color-mix(in srgb, var(--amber) 30%, transparent), transparent 70%);
  pointer-events: none;
}

.waitlist-inner > * {
  position: relative;
}

.waitlist .section-label {
  color: var(--ready-soft);
}

.waitlist .section-label::before {
  background: var(--amber);
}

.waitlist h2 {
  color: var(--white);
  margin-top: 12px;
}

.waitlist-subtext {
  max-width: 56ch;
  margin-top: 16px;
  color: color-mix(in srgb, var(--paper) 82%, var(--teal-drench));
}

.waitlist-form {
  width: min(640px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  margin-top: 32px;
  align-items: start;
}

.check-row.waitlist-consent {
  grid-column: 1 / -1;
  justify-self: center;
  max-width: 620px;
  text-align: left;
  color: color-mix(in srgb, var(--paper) 82%, var(--teal-drench));
  background: transparent;
  border: 0;
  min-height: 0;
  padding: 0;
}

/* ===== Fields ============================================================ */

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.form-input::placeholder {
  color: var(--ink-mute);
}

textarea.form-input {
  min-height: 128px;
  resize: vertical;
}

select.form-input {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-soft) 50%),
    linear-gradient(135deg, var(--ink-soft) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 14px) 21px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
}

.form-input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 18%, transparent);
}

.waitlist-input {
  border-color: var(--line-dark);
  background: color-mix(in srgb, var(--paper) 10%, transparent);
  color: var(--paper);
}

.waitlist-input::placeholder {
  color: color-mix(in srgb, var(--paper) 55%, var(--teal-drench));
}

.waitlist-input:focus {
  border-color: var(--ready-soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ready) 22%, transparent);
}

.form-error,
.form-success {
  display: none;
  margin-top: 18px;
  font-weight: 500;
}

.form-error.is-visible,
.form-success.is-visible {
  display: block;
}

.form-error {
  color: var(--error-ink);
}

.form-success {
  color: var(--success-ink);
}

.waitlist .form-error {
  color: var(--status-error-dark);
}

.waitlist .form-success {
  color: var(--status-ok-dark);
}

/* ===== Survey ============================================================ */

.survey-page {
  padding-bottom: clamp(56px, 9vh, 104px);
}

.survey-hero {
  max-width: var(--narrow-width);
  margin: 0 auto;
  padding: clamp(44px, 8vh, 92px) 24px 34px;
  display: grid;
  justify-items: start;
}

.survey-hero h1 {
  max-width: 15ch;
}

.survey-hero p:last-child {
  max-width: 62ch;
  margin-top: 22px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.survey-trust {
  padding-bottom: 24px;
}

.survey-trust-inner {
  max-width: var(--narrow-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.survey-trust-item {
  min-height: 100%;
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.survey-trust-item h2 {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  color: var(--teal-ink);
}

.survey-trust-item p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.45;
}

.survey-shell {
  max-width: var(--narrow-width);
  margin: 0 auto;
}

.survey-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 38px);
}

.survey-progress {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.survey-progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.survey-progress-top span {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--teal-ink);
}

.survey-progress-top strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.survey-progress-track {
  height: 7px;
  margin-top: 14px;
  border-radius: 999px;
  background: var(--paper-dim);
  overflow: hidden;
}

.survey-progress-track span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal) 0%, var(--ready) 100%);
  transform: scaleX(0.3333);
  transform-origin: left center;
  transition: transform 220ms var(--ease-out);
}

.survey-progress ol {
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  list-style: none;
}

.survey-progress li {
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.35;
  text-transform: lowercase;
}

.survey-progress li.is-active,
.survey-progress li.is-complete {
  color: var(--ink);
}

.survey-progress li.is-complete::after {
  content: " complete";
  color: var(--success-ink);
}

.survey-form.is-stepped .survey-step[hidden] {
  display: none;
}

.survey-form:not(.is-stepped) [data-survey-next],
.survey-form:not(.is-stepped) [data-survey-back] {
  display: none;
}

.survey-form:not(.is-stepped) .step-actions {
  padding-top: 0;
  border-top: 0;
}

.form-section {
  border: 0;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 12px;
}

.form-section > label,
.form-section legend {
  padding: 0;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
}

.small-label {
  margin-top: 4px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 500;
}

.field-help {
  margin-top: -2px;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.option-stack {
  display: grid;
  gap: 10px;
}

.option-row,
.check-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 48px;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, color 150ms ease;
}

.option-row:hover,
.check-row:hover {
  border-color: var(--line-strong);
}

.option-row input,
.check-row input {
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  accent-color: var(--teal);
}

.option-row:has(input:checked),
.check-row:has(input:checked) {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 7%, var(--surface));
  color: var(--ink);
}

.consent-section {
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.consent-section p {
  color: var(--ink-soft);
}

.survey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.step-actions {
  padding-top: 2px;
  border-top: 1px solid var(--line);
}

/* ===== Footer ============================================================ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 44px max(24px, calc((100vw - var(--max-width)) / 2));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.footer-about {
  display: grid;
  gap: 8px;
  max-width: 46ch;
}

.footer-brand {
  display: inline-flex;
  align-items: baseline;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.footer-stop {
  color: var(--teal);
}

.footer-note {
  color: var(--ink-soft);
  line-height: 1.5;
}

.footer-heart {
  font-style: normal;
}

.footer-links {
  display: inline-flex;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 4px;
}

.footer-links a {
  transition: color 150ms ease;
}

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

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
}

/* ===== Motion / reveals ================================================== */

.reveal,
.reveal-now {
  opacity: 1;
}

body.is-ready .reveal-now {
  animation: rise 680ms var(--ease-out) both;
}

body.is-ready .hero-stage.reveal-now {
  animation-delay: 90ms;
}

.reveal {
  transform: translateY(16px);
  transition: transform 620ms var(--ease-out);
}

.reveal.is-visible {
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ===== Responsive ======================================================== */

@media (max-width: 920px) {
  .hero-layout,
  .split-section {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 30px;
  }

  .hero-stage {
    order: -1;
  }

  .hero h1,
  .survey-hero h1 {
    max-width: 14ch;
  }

  .truth-inner {
    grid-template-columns: 1fr;
  }

  .path-list {
    grid-template-columns: 1fr;
  }

  .survey-trust-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding-inline: 20px;
  }

  .site-nav {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 12px 4px;
  }

  .site-nav .nav-cta {
    text-align: center;
    margin-top: 8px;
  }

  .nav-toggle {
    display: flex;
  }

  .site-header.nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .device,
  .device-scene {
    min-height: 340px;
  }

  .jar {
    width: min(180px, 48vw);
    height: 270px;
  }

  .device-probe {
    left: calc(50% + 62px);
    height: 168px;
  }

  .readout {
    left: 16px;
    bottom: 16px;
    width: min(210px, 70%);
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .waitlist-btn,
  .survey-actions .button {
    width: 100%;
  }

  .survey-progress-top {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .survey-progress ol {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .hero,
  .survey-hero {
    padding-top: 26px;
  }

  .hero {
    padding-bottom: 12px;
  }

  .hero-layout {
    gap: 18px;
  }

  .hero h1,
  .survey-hero h1 {
    max-width: 100%;
    font-size: clamp(2.3rem, 11vw, 2.9rem);
  }

  .hero-summary {
    margin-top: 16px;
    font-size: 1rem;
  }

  .hero-actions {
    margin-top: 24px;
    width: 100%;
  }

  .hero-actions .button,
  .survey-actions {
    width: 100%;
  }

  .pain-item {
    grid-template-columns: 1fr;
  }

  .pain-item > span {
    margin-bottom: 2px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ===== Skip link (a11y) =================================================== */

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: calc(var(--z-nav) + 1);
  padding: 10px 16px;
  background: var(--teal);
  color: var(--white);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top 0.18s var(--ease-out);
}

.skip-link:focus {
  top: 12px;
}

/* ===== Legal / privacy page =============================================== */

.legal-page {
  padding-bottom: clamp(56px, 9vh, 104px);
}

.legal-hero {
  max-width: var(--narrow-width);
  margin: 0 auto;
  padding: clamp(44px, 8vh, 92px) 24px 30px;
  display: grid;
  justify-items: start;
}

.legal-hero h1 {
  max-width: 18ch;
}

.legal-updated {
  margin-top: 14px;
  color: var(--ink-mute);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.legal-intro {
  max-width: 66ch;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: 1.08rem;
}

.legal-shell {
  max-width: var(--narrow-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  gap: 30px;
}

.legal-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 30px);
  display: grid;
  gap: 12px;
}

.legal-section h2 {
  font-size: 1.28rem;
}

.legal-section p {
  color: var(--ink-soft);
}

.legal-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  list-style: disc;
  color: var(--ink-soft);
}

.legal-contact {
  font-family: var(--font-mono);
  font-size: 0.98rem;
}

.legal-section a,
.check-row a,
.consent-section a {
  color: var(--teal-ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-section a:hover,
.check-row a:hover,
.consent-section a:hover {
  color: var(--teal-deep);
}

/* ===== Kombucha readiness guide ========================================== */

.guide-page {
  padding-bottom: clamp(60px, 9vh, 110px);
}

.guide-hero {
  max-width: var(--narrow-width);
  margin: 0 auto;
  padding: clamp(44px, 8vh, 92px) 24px 26px;
  display: grid;
  justify-items: start;
  gap: 16px;
}

.guide-hero h1 {
  max-width: 15ch;
}

.guide-dek {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 2vw, 1.22rem);
}

.guide-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.guide-disclaimer {
  max-width: var(--narrow-width);
  margin: 0 auto clamp(36px, 6vh, 64px);
  padding: 0 24px;
}

.guide-disclaimer p {
  padding: 18px 20px;
  background: color-mix(in srgb, var(--amber-soft) 45%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--amber) 42%, var(--line));
  border-radius: var(--radius);
  color: var(--ink-soft);
}

.guide-shell {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px clamp(44px, 7vh, 78px);
}

.guide-section {
  display: grid;
  gap: 16px;
}

.guide-section h2 {
  max-width: 18ch;
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
}

.guide-section p {
  max-width: 72ch;
  color: var(--ink-soft);
}

.guide-intro {
  max-width: 820px;
}

.guide-list {
  display: grid;
  gap: 10px;
  margin-top: 4px;
  list-style: none;
}

.guide-list li {
  position: relative;
  padding-left: 24px;
  color: var(--ink-soft);
}

.guide-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
}

.guide-signals {
  display: grid;
  gap: 24px;
}

.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.guide-card,
.guide-faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
}

.guide-card-index {
  display: inline-block;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--amber-ink);
}

.guide-card h3,
.guide-faq-item h3 {
  font-size: 1.22rem;
  margin-bottom: 10px;
}

.guide-card p,
.guide-faq-item p {
  color: var(--ink-soft);
}

.guide-checklist {
  grid-template-columns: minmax(0, 0.75fr) minmax(280px, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
  padding: clamp(26px, 4vw, 42px);
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.guide-checklist ol {
  display: grid;
  gap: 14px;
  margin: 0;
  padding-left: 22px;
  color: var(--ink-soft);
}

.guide-checklist li::marker {
  color: var(--teal-ink);
  font-family: var(--font-mono);
  font-weight: 500;
}

.guide-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 54px);
  background: var(--teal-drench);
  color: var(--paper);
  border-radius: var(--radius-xl);
}

.guide-cta h2 {
  max-width: 18ch;
  color: var(--white);
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.guide-cta p {
  max-width: 72ch;
  color: color-mix(in srgb, var(--paper) 82%, var(--teal-soft));
}

.guide-cta .section-label {
  color: var(--ready-soft);
  margin-bottom: 14px;
}

.guide-cta-actions {
  display: grid;
  gap: 12px;
  min-width: 220px;
}

.guide-faq {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 920px) {
  .guide-preview,
  .guide-checklist,
  .guide-cta {
    grid-template-columns: 1fr;
  }

  .guide-card-grid {
    grid-template-columns: 1fr;
  }

  .guide-cta-actions {
    justify-self: start;
  }
}

@media (max-width: 520px) {
  .guide-hero h1 {
    max-width: 100%;
    font-size: clamp(2.2rem, 10vw, 2.85rem);
  }

  .guide-preview-copy .button,
  .guide-cta-actions,
  .guide-cta-actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal,
  .reveal-now {
    opacity: 1;
    transform: none;
  }
}
