/* ==========================================================================
   BoochBot — Living Culture · Apple-modern (2026-07-15)
   Bright, precise, product-forward. Cool white canvas, near-black ink, deep
   teal brand accent, amber fermentation signal. System UI typography with
   Bricolage Grotesque for display headlines.
   ========================================================================== */

:root {
  /* Neutrals — Apple-clean white stack */
  --paper: #fbfbfd;
  --paper-dim: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #fafafc;
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --ink-mute: #86868b;

  /* Brand accent — deep teal */
  --teal: #0e6b5b;
  --teal-deep: #0a5346;
  --teal-ink: #0a5648;
  --teal-soft: #d4ebe4;
  --teal-drench: #0a3d34;

  /* Fermentation signal */
  --amber: #dd8b2b;
  --amber-ink: #8f5115;
  --amber-soft: #f5e4cc;
  --ready: #5f9b3e;
  --ready-soft: #d4ebc8;

  /* Lines & fields */
  --line: #d2d2d7;
  --line-strong: #c7c7cc;
  --line-dark: #2a4a42;
  --field: #f5f5f7;

  /* Status text */
  --error-ink: #a5331b;
  --success-ink: #3e6b36;
  --status-error-dark: #f0a488;
  --status-ok-dark: #bcd7a6;

  --white: #ffffff;

  --font-display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "Segoe UI", sans-serif;
  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue",
    sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  --max-width: 1080px;
  --narrow-width: 720px;
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 980px;
  --header-height: 52px;

  --shadow-soft: 0 4px 24px rgba(0, 0, 0, 0.06);
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.08);
  --shadow-product: 0 32px 64px -24px rgba(0, 0, 0, 0.14);

  --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* 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-text);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.section-label::before {
  display: none;
}

/* ===== 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(22px, calc((100vw - var(--max-width)) / 2));
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}

.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-text);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

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

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  font-size: 0.84rem;
  font-weight: 400;
}

.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: 7px 16px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 500;
  transition: background 160ms ease, transform 120ms var(--ease-out);
}

.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: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 500;
  font-size: 0.94rem;
  line-height: 1.2;
  text-align: center;
  transition: background 160ms ease, border-color 160ms ease, transform 120ms var(--ease-out),
    color 160ms ease, box-shadow 160ms ease;
}

.button:active {
  transform: scale(0.98);
}

.button-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--teal) 28%, transparent);
}

.button-primary:hover {
  background: var(--teal-deep);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--teal) 34%, transparent);
}

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

.button-secondary {
  border-color: var(--line);
  color: var(--teal);
  background: transparent;
}

.button-secondary:hover {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal-soft) 40%, transparent);
}

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

.hero {
  padding: clamp(28px, 5vh, 56px) 24px clamp(20px, 4vh, 40px);
  text-align: center;
}

.hero-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 48px);
  justify-items: center;
}

.hero-copy {
  display: grid;
  justify-items: center;
  max-width: 780px;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 28px;
  padding: 4px 14px;
  color: var(--teal);
  background: color-mix(in srgb, var(--teal-soft) 50%, var(--surface));
  border: 0;
  border-radius: var(--radius-pill);
  margin-bottom: 18px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--ready);
}

.hero h1,
.survey-hero h1 {
  max-width: 14ch;
  font-size: clamp(2.6rem, 6.8vw, 4.6rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.hero-summary {
  max-width: 42ch;
  margin-top: 18px;
  color: var(--ink-soft);
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
  line-height: 1.45;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
  justify-content: center;
}

.hero-stage {
  width: min(680px, 100%);
  min-width: 0;
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px clamp(32px, 5vh, 56px);
  list-style: none;
}

.hero-status li {
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}

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

.device {
  position: relative;
  min-height: 400px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--paper-dim) 100%);
  border: 0;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-product);
}

.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%;
  }
}

/* ===== Value pillars (Apple-style feature grid) ========================== */

.value-section {
  padding: clamp(48px, 8vh, 96px) 24px;
  background: var(--paper-dim);
  border-top: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}

.value-header {
  max-width: var(--max-width);
  margin: 0 auto clamp(32px, 5vw, 56px);
  display: grid;
  gap: 12px;
  text-align: center;
  justify-items: center;
}

.value-header h2 {
  max-width: 18ch;
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.value-header p {
  max-width: 48ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.value-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  display: grid;
  gap: 10px;
  padding: clamp(24px, 3vw, 32px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.value-card-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 4px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: color-mix(in srgb, var(--teal-soft) 60%, var(--surface));
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.value-card h3 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.value-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ===== Truth band (legacy; hero-status preferred) ======================== */

.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: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 240ms var(--ease-out), box-shadow 240ms var(--ease-out);
}

.pain-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.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(--surface);
  border-top: 0;
  border-bottom: 0;
  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: 20px 22px;
  border-radius: var(--radius-lg);
  background: var(--paper-dim);
  border: 0;
  color: var(--ink);
  font-weight: 500;
  box-shadow: var(--shadow-soft);
}

.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: 0;
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  box-shadow: var(--shadow-soft);
}

.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(--white);
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: clamp(52px, 8vw, 88px) 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(--teal) 24%, transparent), transparent 70%);
  pointer-events: none;
}

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

.waitlist .section-label {
  color: color-mix(in srgb, var(--teal-soft) 90%, var(--white));
}

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

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

.waitlist-subtext {
  max-width: 56ch;
  margin-top: 16px;
  color: color-mix(in srgb, var(--white) 72%, var(--ink));
}

.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 {
  /* --ink-soft (~8.5:1 on the white form) rather than --ink-mute (~4.1:1),
     so pending step labels clear WCAG 1.4.3 for this small text and do not
     read as disabled. */
  color: var(--ink-soft);
  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);
}

/* Make the current step visually prominent through weight, not colour alone. */
.survey-progress li.is-active {
  font-weight: 600;
}

.survey-progress li.is-complete::after {
  /* Decorative check for sighted users; the "/ \"\"" empty alt keeps AT from
     announcing it (the JS adds a visually-hidden "(completed)" instead). */
  content: " ✓" / "";
  color: var(--success-ink);
}

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

/* Conditional question blocks (data-show-when). A .form-section sets
   display:grid, which beats the UA [hidden] rule, so hide it explicitly. */
.survey-form .form-section[hidden] {
  display: none;
}

/* Conditional "Other — please specify" reveals: only shown once the matching
   option is selected (see data-show-when in survey.html). The base rule sets
   display:grid, so the [hidden] state needs an explicit, more-specific reset. */
.conditional-other {
  display: grid;
  gap: 8px;
  margin-top: 2px;
}

.survey-form .conditional-other[hidden] {
  display: none;
}

.concept-intro {
  margin-bottom: 22px;
  font-size: 1rem;
}

.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);
}

.survey-form.is-submitted {
  border-color: var(--ready-soft);
  background: color-mix(in srgb, var(--ready-soft) 16%, var(--surface));
}

.survey-form.is-submitted [data-survey-progress],
.survey-form.is-submitted [data-survey-step],
.survey-form.is-submitted .form-error {
  display: none;
}

.survey-confirmation {
  display: grid;
  justify-items: start;
  gap: 12px;
  max-width: 56ch;
  margin: 0 auto;
  padding: clamp(14px, 3vw, 24px) 0;
}

.survey-confirmation[hidden] {
  display: none;
}

.survey-confirmation:focus {
  outline: none;
}

.survey-confirmation-mark {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ready);
  color: var(--surface);
  font-size: 1.45rem;
  font-weight: 700;
}

.survey-confirmation-mark::before {
  content: "✓";
}

.survey-confirmation .hero-chip {
  margin: 2px 0 0;
  color: var(--success-ink);
}

.survey-confirmation h2 {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.survey-confirmation .form-success {
  margin-top: 0;
  color: var(--success-ink);
  font-size: 1.08rem;
}

.survey-confirmation-copy {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ===== 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;
  }

  .value-grid {
    grid-template-columns: 1fr;
  }

  .hero-layout {
    gap: 30px;
  }

  .hero-copy {
    order: 0;
  }

  .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;
    width: 100%;
    min-height: 48px;
  }

  .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: 240px;
  }

  .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;
  }

  .survey-hero {
    padding: 28px 20px 16px;
  }

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

  .survey-trust-item {
    padding: 12px 14px;
  }

  .survey-trust-item p {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .survey-shell {
    padding-top: 8px;
  }
}

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

  .hero {
    padding-bottom: 12px;
  }

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

  .jar {
    width: min(150px, 42vw);
    height: 220px;
  }

  .readout {
    display: none;
  }

  .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-evidence {
  display: grid;
  gap: 24px;
}

.guide-evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.guide-evidence-item {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: clamp(18px, 2.4vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.guide-evidence-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--teal-ink);
  text-transform: uppercase;
  letter-spacing: 0;
}

.guide-evidence-item p:not(.guide-evidence-label) {
  color: var(--ink-soft);
}

.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;
}

.guide-source-list {
  display: grid;
  gap: 0;
  margin-top: 24px;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.guide-source-list li {
  display: grid;
  gap: 8px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.guide-source-list a {
  color: var(--teal-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.guide-source-list a:hover {
  color: var(--teal-deep);
}

.guide-source-list p {
  max-width: 76ch;
  color: var(--ink-soft);
}

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

  .guide-evidence-grid {
    grid-template-columns: repeat(2, minmax(0, 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%;
  }

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

@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;
  }
}

/* ===== SCOBY photo check (/scoby-check) ================================== */

.scoby-page .survey-trust-item p {
  margin: 0;
  color: var(--ink-soft);
}

.scoby-guidance h2 {
  margin: 0 0 8px;
  color: var(--ink-mute);
}

/* Photo picker rendered as a friendly dropzone. The file input is visually
   hidden but stays keyboard-focusable; the wrapping label makes the whole zone
   clickable, and :focus-within surfaces the focus ring. */
.scoby-dropzone {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(20px, 5vw, 40px);
  border: 2px dashed var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s var(--ease-out), background 0.18s var(--ease-out);
}

.scoby-dropzone:hover,
.scoby-dropzone.has-photo {
  border-color: var(--teal);
  background: color-mix(in srgb, var(--teal-soft) 34%, var(--surface));
}

.scoby-dropzone:focus-within {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 22%, transparent);
}

.scoby-dropzone-inner {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.scoby-dropzone-prompt {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.scoby-dropzone-hint {
  font-size: 0.92rem;
  color: var(--ink-mute);
}

.scoby-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.scoby-preview {
  display: block;
  width: 100%;
  max-width: 420px;
}

.scoby-preview[hidden] {
  display: none;
}

.scoby-preview img {
  display: block;
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}

/* Result cards: one accent per state. mold = alarm, kahm = caution,
   healthy = go, unsure = neutral. Each is revealed by JS; the rest stay
   [hidden]. */
.scoby-result-card {
  display: grid;
  justify-items: start;
  gap: 8px;
  width: 100%;
  padding: clamp(16px, 3vw, 22px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.scoby-result-card[hidden] {
  display: none;
}

.scoby-result-body {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.5;
}

/* State is carried by the tinted background + coloured chip/heading, with a
   softly tinted hairline border — no heavy side accent. */
.scoby-result-mold_likely {
  border-color: color-mix(in srgb, var(--error-ink) 30%, var(--line));
  background: color-mix(in srgb, var(--error-ink) 8%, var(--surface));
}
.scoby-result-mold_likely .hero-chip {
  color: var(--error-ink);
}

.scoby-result-kahm_likely {
  border-color: color-mix(in srgb, var(--amber) 32%, var(--line));
  background: color-mix(in srgb, var(--amber-soft) 40%, var(--surface));
}
.scoby-result-kahm_likely .hero-chip {
  color: var(--amber-ink);
}

.scoby-result-healthy_looking {
  border-color: color-mix(in srgb, var(--ready) 32%, var(--line));
  background: color-mix(in srgb, var(--ready-soft) 40%, var(--surface));
}
.scoby-result-healthy_looking .hero-chip {
  color: var(--success-ink);
}

.scoby-result-unsure .hero-chip {
  color: var(--ink-mute);
}

.scoby-degraded,
.scoby-disclaimer {
  margin: 0;
}

/* Primary next action after a result — the brewer survey. */
.scoby-survey-cta {
  width: 100%;
  margin-top: 4px;
  padding: clamp(16px, 3vw, 22px);
  border-radius: var(--radius);
  border: 1px solid var(--teal-soft);
  background: color-mix(in srgb, var(--teal-soft) 26%, var(--surface));
  display: grid;
  justify-items: start;
  gap: 8px;
}

.scoby-survey-cta .hero-chip {
  color: var(--teal-ink);
}

.scoby-survey-body {
  margin: 0;
  color: var(--ink);
  font-size: 1.06rem;
  font-weight: 500;
}

/* Mentor chatbot — one interaction surface under the photo check. */
.scoby-chat {
  width: min(920px, calc(100% - 32px));
  margin: 0 auto 48px;
}

.scoby-chat-inner {
  display: grid;
  gap: 16px;
  padding: clamp(16px, 3vw, 24px);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--teal-soft) 22%, var(--surface)) 0%,
      var(--surface) 48%
    );
}

.scoby-chat-intro {
  display: grid;
  gap: 6px;
}

.scoby-chat-summary {
  margin: 0;
  max-width: 62ch;
  color: var(--ink-soft);
  line-height: 1.5;
}

.scoby-chat-log {
  display: grid;
  gap: 10px;
  min-height: 120px;
  max-height: 360px;
  overflow-y: auto;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.scoby-chat-empty {
  margin: 0;
}

.scoby-chat-bubble {
  display: grid;
  gap: 4px;
  max-width: min(100%, 64ch);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  white-space: pre-wrap;
  line-height: 1.45;
}

.scoby-chat-bubble[data-role="user"] {
  justify-self: end;
  background: color-mix(in srgb, var(--teal-soft) 34%, var(--surface));
  border-color: color-mix(in srgb, var(--teal) 28%, var(--line));
  color: var(--ink);
}

.scoby-chat-bubble[data-role="assistant"] {
  justify-self: start;
}

.scoby-chat-bubble[data-role="assistant"].is-pending {
  color: var(--ink-mute);
  font-style: italic;
}

.scoby-chat-form {
  display: grid;
  gap: 10px;
}

.scoby-chat-input {
  resize: vertical;
  min-height: 72px;
}

.scoby-chat-disclaimer {
  margin: 0;
}

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