/* ═══════════════════════════════════════════════════════════════════
   LabForge — lf2.css · premium design system (v2, local staging)
   Dark-first deep-tech SaaS. Self-contained: no external fonts,
   scripts, or images. System font stacks only.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Tokens ────────────────────────────────────────────────────── */
:root {
  /* ground — restored to the PREVIOUS LabForge palette (deep navy-black) */
  --bg:        #0a0e17;
  --bg-2:      #0d1220;
  --surface:   #111827;
  --surface-2: #161f32;
  --surface-3: #1c2742;

  /* lines */
  --line:        #1e2d4a;
  --line-strong: #2a3a5e;

  /* ink */
  --text:       #e8edf5;
  --text-soft:  #c9d6e6;
  --text-muted: #8896b3;

  /* accents — PREVIOUS palette: blue primary (#3b82f6) + amber secondary (#f59e0b).
     NOTE: the token names --amber / --teal are kept for stability but now hold the
     previous blue (primary accent) and amber (secondary accent) — remapping the
     values here re-themes the entire site to the previous look. */
  --amber:        #3b82f6;
  --amber-bright: #60a5fa;
  --amber-dim:    rgba(59, 130, 246, 0.14);
  --amber-line:   rgba(59, 130, 246, 0.38);
  --teal:         #f59e0b;
  --teal-bright:  #f5b042;
  --teal-dim:     rgba(245, 158, 11, 0.12);
  --teal-line:    rgba(245, 158, 11, 0.35);

  /* type */
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
          "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Cascadia Mono",
          Menlo, Consolas, "Liberation Mono", monospace;

  /* geometry */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 20px;
  --container: 1120px;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  --section-pad: clamp(4rem, 9vw, 7rem);

  /* depth */
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.40), 0 20px 48px rgba(0, 0, 0, 0.45);

  color-scheme: dark;
}

/* ── Reset ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;              /* 17px body */
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
svg { height: auto; }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 650;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 5.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); letter-spacing: -0.012em; }
h4 { font-size: 1.05rem; letter-spacing: -0.008em; }

p  { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--teal-bright); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--text); }

ul, ol { margin: 0 0 1em; padding-left: 1.35em; }
li { margin-bottom: 0.4em; }

code, kbd, samp { font-family: var(--mono); font-size: 0.92em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: rgba(232, 164, 76, 0.30); color: var(--text); }

/* ── Screen-reader-only text ───────────────────────────────────── */
.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 — always visible ────────────────────────────────────── */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible { outline-offset: 4px; }

/* ── Skip link ─────────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--amber);
  color: #0b1416;
  font-weight: 650;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  text-decoration: none;
}
.skip-link:focus {
  left: 0;
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

/* ── Layout primitives ─────────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: 860px; }

.section { padding-block: var(--section-pad); }
.section-tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.eyebrow-amber { color: var(--amber); }

.lede {
  font-size: clamp(1.1rem, 2.2vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-soft);
  text-wrap: pretty;
}

.muted { color: var(--text-muted); }
.mono  { font-family: var(--mono); }
.accent-amber { color: var(--amber); }
.accent-teal  { color: var(--teal); }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.5rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: 0.005em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease,
              color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--amber);
  color: #0b1416;
  box-shadow: 0 2px 10px rgba(232, 164, 76, 0.22);
}
.btn-primary:hover {
  background: var(--amber-bright);
  color: #0b1416;
  box-shadow: 0 4px 18px rgba(232, 164, 76, 0.32);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal-bright);
  background: var(--teal-dim);
}

.btn-lg { min-height: 54px; padding: 0.85rem 1.9rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn-note {
  display: block;
  margin-top: 0.7rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Sticky nav ────────────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 20, 22, 0.86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
  padding-block: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}
.brand:hover { color: var(--text); }
.brand .brand-mark { flex: none; }

.site-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-menu a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  color: var(--text-soft);
  font-size: 0.98rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 140ms ease, background-color 140ms ease;
}
.site-menu a:not(.btn):hover {
  color: var(--text);
  background: var(--teal-dim);
}
.site-menu a[aria-current="page"] {
  color: var(--amber);
  font-weight: 650;
}
.site-menu .btn { margin-left: 0.6rem; min-height: 44px; padding: 0.55rem 1.2rem; }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  min-width: 44px;
  padding: 0.5rem 0.9rem;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--teal); }

.nav-toggle-bars {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 160ms ease;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }

  .site-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.9rem var(--gutter) 1.25rem;
    background: var(--bg-2);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
  }
  .site-menu.is-open { display: flex; }
  .site-menu a:not(.btn) {
    min-height: 48px;
    font-size: 1.05rem;
    padding-inline: 0.75rem;
  }
  .site-menu .btn {
    margin: 0.6rem 0 0;
    width: 100%;
  }
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(4.5rem, 11vw, 8.5rem) clamp(3.5rem, 8vw, 6rem);
  background:
    radial-gradient(52rem 30rem at 82% -12%, rgba(91, 192, 184, 0.10), transparent 62%),
    radial-gradient(46rem 28rem at 8% 108%, rgba(232, 164, 76, 0.09), transparent 60%),
    var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(233, 241, 240, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 241, 240, 0.028) 1px, transparent 1px);
  background-size: 52px 52px;
  -webkit-mask-image: radial-gradient(70rem 42rem at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(70rem 42rem at 50% 0%, #000 30%, transparent 78%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 2; }

/* Hero background video (restored from the previous site — opener only) */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero::before { z-index: 1; }               /* grid overlay sits above the video */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(ellipse 75% 65% at center, rgba(10, 14, 23, 0.30), rgba(10, 14, 23, 0.60) 100%),
    linear-gradient(180deg, rgba(10, 14, 23, 0.50) 0%, rgba(10, 14, 23, 0.28) 38%, rgba(10, 14, 23, 0.88) 100%);
}
.hero-content h1, .hero-content .lede { text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55); }
/* No motion / small screens → static poster, no video (perf + a11y) */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero--video { background-image: url('video/labforge-loop-poster.jpg'); background-size: cover; background-position: center; }
}
@media (max-width: 640px) {
  .hero-video { display: none; }
  .hero--video { background-image: url('video/labforge-loop-poster.jpg'); background-size: cover; background-position: center; }
}

.hero h1 { max-width: 17.5ch; }
.hero .lede { max-width: 620px; margin-bottom: 2rem; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--teal-line);
  background: var(--teal-dim);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  margin-bottom: 1.6rem;
}

.hero-highlight {
  color: var(--amber-bright);                 /* fallback when background-clip:text is unsupported */
  background: linear-gradient(92deg, var(--amber-bright), var(--amber) 55%, #d98f2f);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;       /* gradient shows only where clip:text is supported */
}

/* ── Stat strip ────────────────────────────────────────────────── */
.stat-strip {
  border-block: 1px solid var(--line);
  background: var(--bg-2);
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--line);
  border-inline: 1px solid var(--line);
}
.stat {
  background: var(--bg-2);
  padding: 1.6rem 1.4rem;
}
.stat-value {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--amber);
  margin-bottom: 0.25rem;
  font-variant-numeric: tabular-nums;   /* no width jitter during the count-up */
}
.stat-value.teal { color: var(--teal); }
.stat-label {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Cards ─────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 78%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow-1);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--text-muted); font-size: 0.98rem; }

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--amber-dim);
  border: 1px solid var(--amber-line);
  color: var(--amber);
  margin-bottom: 1.1rem;
}
.card-icon.teal {
  background: var(--teal-dim);
  border-color: var(--teal-line);
  color: var(--teal);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  margin-top: 0.5rem;
  font-weight: 600;
  color: var(--teal-bright);
  text-decoration: none;
}
.card-link:hover { color: var(--text); text-decoration: underline; }

/* audience cards */
.card-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  background: var(--teal-dim);
  border: 1px solid var(--teal-line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}

/* ── Badges / status pills ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.05em;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-strong);
  color: var(--text-soft);
  background: var(--surface);
}
.badge-good  { color: var(--teal-bright);  border-color: var(--teal-line);  background: var(--teal-dim); }
.badge-amber { color: var(--amber-bright); border-color: var(--amber-line); background: var(--amber-dim); }

.badge-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }

/* ── Spec / recipe panels (monospace) ──────────────────────────── */
.spec-panel {
  background: #081012;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.spec-panel-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.1rem;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.spec-panel-bar .dot-row { display: inline-flex; gap: 0.4rem; }
.spec-panel-bar .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line-strong);
}
.spec-panel-bar .dot:first-child { background: var(--amber); }
.spec-panel-bar .dot:nth-child(2) { background: var(--teal); }

.spec-body {
  margin: 0;
  padding: 1.2rem 1.3rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--text-soft);
  white-space: pre;
}
.spec-body .k { color: var(--teal); }
.spec-body .v { color: var(--text); }
.spec-body .a { color: var(--amber); }
.spec-body .c { color: var(--text-muted); }

/* key–value spec list (wrapping variant) */
.spec-list {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.9rem;
}
.spec-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 200px) 1fr;
  gap: 0.4rem 1.2rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.spec-list > div:last-child { border-bottom: 0; }
.spec-list dt { color: var(--teal); margin: 0; }
.spec-list dd { color: var(--text); margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) {
  .spec-list > div { grid-template-columns: 1fr; padding-block: 0.55rem; }
  .spec-list dt { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
}

/* ── Callouts ──────────────────────────────────────────────────── */
.callout {
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--teal);
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 1.3rem 1.4rem;
}
.callout-amber { border-left-color: var(--amber); }
.callout-title {
  display: block;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.55rem;
}
.callout-amber .callout-title { color: var(--amber); }
.callout p { color: var(--text-soft); font-size: 0.98rem; }

/* ── Steps ─────────────────────────────────────────────────────── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  position: relative;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 80%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem 1.6rem;
  box-shadow: var(--shadow-1);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font-family: var(--mono);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0b1416;
  background: var(--amber);
  margin-bottom: 1.1rem;
}
.step h3 { margin-bottom: 0.5rem; }
.step p { color: var(--text-muted); font-size: 0.98rem; }

/* vertical numbered process (recipe steps) */
.proc {
  display: grid;
  gap: 1.1rem;
}
.proc-step {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 1.1rem;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 85%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.3rem;
}
.proc-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--amber-line);
  background: var(--amber-dim);
  color: var(--amber);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.05rem;
}
.proc-step h2, .proc-step h3, .proc-step h4 { font-size: 1.1rem; letter-spacing: -0.012em; margin-bottom: 0.45rem; }
.proc-step p { color: var(--text-muted); font-size: 0.97rem; }
.proc-params {
  margin: 0.8rem 0 0;
  padding: 0.9rem 1rem;
  background: #081012;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--text-soft);
  white-space: pre;
}
@media (max-width: 520px) {
  .proc-step { grid-template-columns: 1fr; gap: 0.75rem; }
}

/* ── Checklist ─────────────────────────────────────────────────── */
.checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 0.35rem 1.75rem;
}
.checklist li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.9rem;
  margin: 0;
  color: var(--text-soft);
  font-size: 0.99rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78rem;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal-dim);
  border: 1px solid var(--teal-line);
}
.checklist li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.02rem;
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.checklist.mono li { font-family: var(--mono); font-size: 0.9rem; }

/* ── Pricing ───────────────────────────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(255px, 1fr));
  gap: 1.25rem;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 82%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.9rem 1.7rem;
  box-shadow: var(--shadow-1);
}
.price-card.featured {
  border-color: var(--amber-line);
  background:
    linear-gradient(180deg, rgba(232, 164, 76, 0.09), rgba(232, 164, 76, 0.02) 40%),
    linear-gradient(180deg, var(--surface-2), var(--surface) 82%);
  box-shadow: 0 0 0 1px rgba(232, 164, 76, 0.25), var(--shadow-2);
}

.price-flag {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0b1416;
  background: var(--amber);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  margin-bottom: 1rem;
}

.price-name { font-size: 1.2rem; margin-bottom: 0.2rem; }
.price-for  { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 1.2rem; min-height: 2.6em; }

.price-figure {
  font-family: var(--mono);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.05;
}
.price-figure .per {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-muted);
}
.price-sub {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--amber);
  margin: 0.4rem 0 1.3rem;
}

.price-feats {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 1.2rem 0 0;
  border-top: 1px solid var(--line);
  flex-grow: 1;
}
.price-feats li {
  position: relative;
  padding: 0.32rem 0 0.32rem 1.6rem;
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-soft);
}
.price-feats li::before {
  content: "";
  position: absolute;
  left: 0.1rem;
  top: 0.88em;
  width: 7px;
  height: 4px;
  border-left: 2px solid var(--teal);
  border-bottom: 2px solid var(--teal);
  transform: rotate(-45deg);
}
.price-feats li strong { color: var(--text); font-weight: 650; }

/* pack option rows inside the packs card */
.pack-opt {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  margin-bottom: 0.6rem;
  font-family: var(--mono);
  font-size: 0.92rem;
}
.pack-opt .pack-size { color: var(--text); font-weight: 650; }
.pack-opt .pack-price { color: var(--amber); font-weight: 700; }
.pack-opt .pack-unit { color: var(--text-muted); font-size: 0.82rem; }

/* ── Comparison table ──────────────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  -webkit-overflow-scrolling: touch;
}
table.compare {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare caption {
  text-align: left;
  padding: 1.1rem 1.25rem 0.4rem;
  font-weight: 650;
  color: var(--text);
}
.compare th, .compare td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
.compare tbody th[scope="row"] {
  font-weight: 550;
  color: var(--text-soft);
  min-width: 200px;
}
.compare td { color: var(--text-soft); }
.compare td .yes {
  font-family: var(--mono);
  color: var(--teal-bright);
  font-weight: 700;
}
.compare td .no {
  font-family: var(--mono);
  color: var(--text-muted);
}
.compare td.hl { color: var(--text); font-weight: 600; }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td,
.compare tbody tr:hover th[scope="row"] { background: rgba(91, 192, 184, 0.045); }

/* ── Report viewer (sample recipe) ─────────────────────────────── */
.report {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--bg-2);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.report-head {
  padding: 1.5rem clamp(1.25rem, 4vw, 2.25rem);
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  border-bottom: 1px solid var(--line);
}
.report-id {
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}
.report-id .redacted {
  color: var(--amber);
  border: 1px dashed var(--amber-line);
  border-radius: 6px;
  padding: 0.1rem 0.5rem;
}
.report-body {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
}
.report-section > h2,
.report-section > h3 { margin-bottom: 0.9rem; }
.report-section > h2 { font-size: clamp(1.15rem, 2.2vw, 1.35rem); letter-spacing: -0.012em; }
.report-section .section-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.6rem;
}

/* ── CTA band ──────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    radial-gradient(40rem 22rem at 85% 120%, rgba(232, 164, 76, 0.13), transparent 60%),
    radial-gradient(36rem 20rem at 10% -30%, rgba(91, 192, 184, 0.10), transparent 60%),
    var(--bg-2);
  text-align: center;
}
.cta-band .container { position: relative; }
.cta-band h2 { max-width: 22ch; margin-inline: auto; }
.cta-band .lede { max-width: 560px; margin-inline: auto; margin-bottom: 2rem; }
.cta-band .btn-row { justify-content: center; }

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  padding-block: clamp(2.75rem, 6vw, 4rem) 2rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.25rem;
}
@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-brand p {
  color: var(--text-muted);
  max-width: 34ch;
  margin-top: 0.9rem;
}
.footer-col h2 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; }
.footer-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-soft);
  text-decoration: none;
}
.footer-col a:hover { color: var(--teal-bright); text-decoration: underline; }

.footer-base {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* ── Prose helpers ─────────────────────────────────────────────── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}
@media (max-width: 820px) {
  .two-col { grid-template-columns: 1fr; }
}

.kicker-line {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.kicker-line::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

/* not-a list (index) */
.nots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.not-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.25rem 1.3rem;
}
.not-item .strike {
  font-family: var(--mono);
  font-size: 0.92rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(232, 164, 76, 0.6);
  text-decoration-thickness: 1.5px;
  display: block;
  margin-bottom: 0.4rem;
}
.not-item .instead { color: var(--text); font-weight: 600; font-size: 0.98rem; }

/* ── Forms (contact / intake) ──────────────────────────────────── */
.form-grid { display: grid; gap: 1.3rem; }

.field > label {
  display: block;
  font-weight: 650;
  font-size: 0.98rem;
  color: var(--text);
  margin-bottom: 0.45rem;
}
.field .hint {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: 0.45rem;
}
.intake-list {
  margin: 0.5rem 0 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.intake-list li { margin: 0.25rem 0; }
.intake-list strong { color: var(--text-soft); }

/* ── FAQ (AEO one-Q-one-A) ── */
.faq { display: grid; gap: 1rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
}
.faq-item h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.faq-item p { margin: 0 0 0.6rem; color: var(--text-soft); }
.faq-item p:last-child { margin-bottom: 0; }
.faq-item ul { margin: 0.5rem 0 0.7rem; padding-left: 1.2rem; }
.faq-item li { margin: 0.4rem 0; color: var(--text-soft); }
.faq-item strong { color: var(--text); }

/* ── "Unlisted number" redaction — values shown but obscured; the sharp spec is the paid deliverable ── */
.locked,
.locked-box .v,
.locked-box .a {
  filter: blur(4.5px);
  -webkit-user-select: none;
  user-select: none;
  cursor: not-allowed;
}
.locked-box .k { filter: none; }                 /* field labels stay sharp */
.lock-tag {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--mono); font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--amber); filter: none !important; user-select: text;
}

.input,
.select,
.textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;                 /* ≥16px — prevents mobile zoom */
  line-height: 1.5;
  transition: border-color 140ms ease, background-color 140ms ease;
}
.textarea { min-height: 180px; resize: vertical; }
.input::placeholder,
.textarea::placeholder { color: var(--text-muted); opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--teal); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible {
  border-color: var(--teal);
}

.form-note {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
  padding: 0.9rem 1.1rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--teal-line);
  border-radius: var(--radius-sm);
  background: var(--teal-dim);
  color: var(--text);
  font-size: 0.95rem;
}
.form-status[hidden] { display: none; }

/* ── Legal prose (privacy / terms) ─────────────────────────────── */
.legal { padding-bottom: 1rem; }
.legal section {
  border-top: 1px solid var(--line);
  padding-top: 2.1rem;
  margin-top: 2.1rem;
}
.legal section > h2 { font-size: 1.35rem; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6rem; }
.legal p, .legal li { color: var(--text-soft); }
.legal p.muted, .legal .muted { color: var(--text-muted); }

.confirm-flag {
  font-family: var(--mono);
  font-size: 0.88em;
  color: var(--amber);
  border: 1px dashed var(--amber-line);
  border-radius: 6px;
  padding: 0.08rem 0.45rem;
  white-space: nowrap;
}

.toc {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 1.4rem 1.5rem;
  margin-bottom: 0.5rem;
}
.toc h2 {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}
.toc ol {
  margin: 0;
  padding-left: 1.25em;
  columns: 2;
  column-gap: 2.75rem;
}
.toc li { break-inside: avoid; margin-bottom: 0; }
.toc a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.42rem 0;
  color: var(--teal-bright);
  text-decoration: none;
}
.toc a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 640px) {
  .toc ol { columns: 1; }
}

/* ── Motion preferences ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ── Small-screen guards ───────────────────────────────────────── */
@media (max-width: 360px) {
  body { font-size: 1rem; }
  .btn { padding-inline: 1.1rem; }
  .container { padding-inline: 1rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   Email-capture funnel — restyled to lf2 tokens
   (ported from the previous engine styles; blue-primary theme)
   Used by: free-recipes.html + lf-gate.js
   ═══════════════════════════════════════════════════════════════════ */

/* ── Free-recipe challenge cards (clickable) ───────────────────── */
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.25rem;
}

.challenge-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 78%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem 1.5rem;
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}
.challenge-card:hover {
  border-color: var(--amber-line);
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  color: var(--text);
}
.challenge-card:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

.challenge-tag {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid var(--amber-line);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  margin-bottom: 1rem;
}

.challenge-card h3 {
  margin-bottom: 1rem;
  color: var(--text);
  font-size: 1.15rem;
  line-height: 1.28;
}

.challenge-go {
  margin-top: auto;
  font-weight: 650;
  color: var(--amber-bright);
}
.challenge-card:hover .challenge-go { color: var(--text); }

/* Unlocked state — after a successful capture, cards read as "open" */
.challenge-card.unlocked {
  border-color: var(--teal-line);
  background:
    linear-gradient(180deg, var(--teal-dim), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface) 78%);
}
.challenge-card.unlocked .challenge-go { color: var(--teal-bright); }

/* ── Gated recipe body — hidden until the email is captured ─────── */
.gated-recipe[hidden],
.gated-recipe.is-locked { display: none; }

/* ── Honeypot — visually hidden, still in the DOM for bots ──────── */
.hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Email-capture modal ───────────────────────────────────────── */
.lf-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 10, 18, 0.82);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lf-gate-overlay.open { opacity: 1; pointer-events: auto; }
.lf-gate-overlay :focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.lf-gate-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 32px 30px 28px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface) 82%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.3s 0.05s ease, opacity 0.3s 0.05s ease;
}
.lf-gate-overlay.open .lf-gate-card { transform: translateY(0); opacity: 1; }

.lf-gate-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.lf-gate-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line);
}

.lf-gate-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 8px;
}
.lf-gate-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  color: var(--text);
  margin-bottom: 10px;
}
.lf-gate-desc {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.lf-gate-emphasis {
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-soft);
  margin-bottom: 22px;
  padding: 12px 14px;
  border-left: 3px solid var(--amber);
  background: var(--amber-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

.lf-gate-form { display: flex; flex-direction: column; gap: 10px; }
.lf-gate-form input[type=email] {
  min-height: 48px;
  padding: 0.7rem 0.95rem;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  font-family: var(--sans);
  font-size: 1rem;              /* ≥16px — prevents mobile zoom */
  line-height: 1.5;
  transition: border-color 0.2s ease;
}
.lf-gate-form input[type=email]::placeholder { color: var(--text-muted); opacity: 1; }
.lf-gate-form input[type=email]:hover { border-color: var(--amber); }
.lf-gate-form input[type=email]:focus { border-color: var(--amber); outline: none; }
.lf-gate-form input[type=email]:focus-visible { border-color: var(--amber); }

.lf-gate-submit {
  min-height: 48px;
  padding: 0.75rem 1rem;
  background: var(--amber);
  color: #0b1416;
  border: none;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.005em;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.22);
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}
.lf-gate-submit:hover {
  background: var(--amber-bright);
  color: #0b1416;
  box-shadow: 0 4px 18px rgba(59, 130, 246, 0.32);
}
.lf-gate-submit:disabled { opacity: 0.55; cursor: not-allowed; }

.lf-gate-fine {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: 12px;
}
.lf-gate-error {
  font-size: 0.82rem;
  color: #ff7373;
  margin-top: 10px;
  min-height: 16px;
}

@media (max-width: 640px) {
  .lf-gate-card { padding: 26px 22px 22px; }
}
