/* Sofrito public site V2 — product-led, mobile-first. */
:root {
  --ink: #262016;
  --ink-soft: #554b40;
  --green: #2d5f39;
  --green-deep: #1f4329;
  --green-soft: #e5f3e8;
  --cream: #faf1e9;
  --paper: #fffdf9;
  --paper-warm: #f1e7d8;
  --border: #d7c4ad;
  --muted: #6c655e;
  --purple: #90335e;
  --purple-deep: #6a2645;
  --purple-soft: #f5e3eb;
  --coral: #e85d3f;
  --coral-deep: #b53216;
  --coral-soft: #f9e3e0;
  --orange: #e07823;
  --gold: #daa64e;
  --gold-deep: #865f1c;
  --gold-soft: #f6efe1;
  --white: #fff;
  --display: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", "Segoe UI", sans-serif;
  --shadow-sm: 0 4px 18px rgba(38, 32, 22, .07);
  --shadow: 0 18px 55px rgba(38, 32, 22, .13);
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --max: 1180px;

  /* Shared-surface compatibility. The operator console and Living Brief load
     this public foundation before their scoped styles. Keep the established
     brand-token names available so a public-site redesign cannot silently
     drop their typography, colour, radius, or elevation values. */
  --caldero-black: var(--ink);
  --eerie-black: var(--ink);
  --sofrito-cream: var(--cream);
  --culantro-green: var(--green);
  --imperial-green: var(--green);
  --achiote-orange: var(--coral);
  --peanut-butter-jelly: #cb432b;
  --red-onion: var(--purple);
  --dark-pink: var(--purple);
  --red-onion-400: #c35688;
  --garlic-gold: var(--gold);
  --chili-coral: var(--coral);
  --gold-text: var(--gold-deep);
  --smoke-gray: var(--muted);
  --ash-gray: #aaa199;
  --clay-border: var(--border);
  --ink-900: var(--ink);
  --text-primary: var(--ink);
  --primary-action: var(--coral);
  --primary-action-hover: var(--ink);
  --primary-action-text: var(--ink);
  --disp: "Cormorant Garamond", Georgia, serif;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-elevated: 0 10px 30px rgba(38, 32, 22, .10);
  --shadow-overlay: 0 18px 60px rgba(38, 32, 22, .16);
  --sofrito-green: var(--green-deep);
  --berenjena-purple: var(--purple-deep);
  --charcoal: var(--ink-soft);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg { display: block; max-width: 100%; }
a { color: var(--green-deep); }
body:not([class~="console-body"]) button { color: inherit; font: inherit; }
body:not([class~="console-body"]) input { font: inherit; }
body:not([class~="console-body"]) select { font: inherit; }
body:not([class~="console-body"]) textarea { font: inherit; }
::selection { background: #ee846d; color: var(--ink); }

.site-skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 200;
  transform: translateY(-160%); background: var(--ink); color: var(--white);
  padding: 12px 16px; border-radius: var(--radius-sm); text-decoration: none;
}
.site-skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }

h1, h2, h3, h4, p, ul, ol, dl { margin-top: 0; }
h1, h2, h3, .display {
  color: var(--ink); font-family: var(--display); font-weight: 600;
  letter-spacing: -.018em; line-height: 1.04;
}
h1 { font-size: clamp(2.65rem, 6.2vw, 5.35rem); margin-bottom: 24px; }
h2 { font-size: clamp(2.15rem, 4.2vw, 3.75rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.4rem, 2vw, 1.85rem); margin-bottom: 10px; }
h4 { font-size: 1rem; margin-bottom: 8px; }
p { color: var(--ink-soft); max-width: 68ch; }
strong { color: var(--ink); font-weight: 650; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.56; }
.eyebrow {
  margin-bottom: 16px; color: var(--coral-deep); font-size: .76rem;
  font-weight: 700; letter-spacing: .16em; line-height: 1.35; text-transform: uppercase;
}
.section-intro { max-width: 720px; margin-bottom: 38px; }
.section-intro.centered { margin-inline: auto; text-align: center; }
.section-intro.centered p { margin-inline: auto; }
.micro { color: var(--muted); font-size: .84rem; line-height: 1.5; }
.kicker { font-family: var(--display); font-size: 1.18rem; font-style: italic; color: var(--green); }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.wrap.narrow, .narrow { max-width: 780px; margin-inline: auto; }
body:not([class~="console-body"]) main { min-height: 60vh; }
section { position: relative; padding: 104px 0; }
section.compact { padding-block: 70px; }
.band-warm { background: var(--paper-warm); border-block: 1px solid var(--border); }
.band-paper { background: var(--paper); border-block: 1px solid rgba(215, 196, 173, .72); }
.band-green, .band-ink {
  overflow: hidden; color: var(--cream); background: var(--green-deep);
}
.band-ink { background: var(--ink); }
.band-green::before, .band-ink::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: url("/assets/brand/sofrito-pattern.svg") top right / 150px repeat;
  opacity: .055; mask-image: radial-gradient(circle at 85% 10%, #000, transparent 66%);
}
.band-green > *, .band-ink > * { position: relative; }
.band-green h1, .band-green h2, .band-green h3,
.band-ink h1, .band-ink h2, .band-ink h3 { color: var(--cream); }
.band-green p, .band-ink p { color: #e3dcd1; }
.band-green strong, .band-ink strong { color: var(--white); }
.band-green .eyebrow, .band-ink .eyebrow { color: #f2c14e; }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: clamp(36px, 7vw, 88px); align-items: center; }
.stack { display: grid; gap: 16px; }
.center { text-align: center; }

.btn {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  gap: 9px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius-sm);
  font-weight: 650; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 44px; padding: 10px 16px; font-size: .9rem; }
.btn-primary { background: var(--coral); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--ink); color: var(--cream); }
.btn-secondary { background: var(--green); color: var(--white); }
.btn-secondary:hover { background: var(--green-deep); }
.btn-ghost { border-color: var(--border); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,.25); }
.band-green .btn-ghost, .band-ink .btn-ghost { border-color: rgba(255,255,255,.45); color: var(--cream); }
.band-green .btn-ghost:hover, .band-ink .btn-ghost:hover { border-color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.card {
  background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: clamp(22px, 3vw, 32px);
}
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card-flat { box-shadow: none; }
.card-purple { border-top: 5px solid var(--purple); }
.card-green { border-top: 5px solid var(--green); }
.card-coral { border-top: 5px solid var(--coral); }
.card-gold { border-top: 5px solid var(--gold); }
.number {
  width: 38px; height: 38px; display: inline-grid; place-items: center; margin-bottom: 18px;
  border-radius: 50%; background: var(--ink); color: var(--cream); font-size: .82rem; font-weight: 700;
}
.icon-box {
  width: 46px; height: 46px; display: grid; place-items: center; margin-bottom: 18px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--paper-warm);
  color: var(--purple-deep); font-weight: 700;
}

.tag {
  display: inline-flex; align-items: center; min-height: 28px; padding: 4px 10px;
  border: 1px solid currentColor; border-radius: 999px; font-size: .71rem;
  font-weight: 700; letter-spacing: .06em; line-height: 1.15; text-transform: uppercase;
}
.tag.verified { color: var(--green-deep); background: var(--green-soft); }
.tag.inference { color: var(--gold-deep); background: var(--gold-soft); }
.tag.unknown { color: var(--purple-deep); background: var(--purple-soft); }
.tag.illustrative { color: var(--muted); background: var(--paper-warm); border-color: var(--border); text-transform: none; letter-spacing: 0; }
.status-dot { width: 9px; height: 9px; display: inline-block; margin-right: 7px; border-radius: 50%; background: currentColor; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; border-bottom: 1px solid rgba(215,196,173,.8);
  background: rgba(250, 241, 233, .95); backdrop-filter: blur(14px);
}
.nav-inner { width: min(100% - 32px, 1280px); min-height: 76px; margin-inline: auto; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: 0 0 auto; text-decoration: none; }
.brand img { width: auto; height: 42px; }
.brand-name { color: var(--ink); font: 600 1.7rem/1 var(--display); transform: translateY(4px); }
.nav-panel { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex: 1; }
.nav-primary, .nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-primary a, .nav-demo { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-size: .86rem; font-weight: 600; text-decoration: none; }
.nav-primary a:hover, .nav-primary a[aria-current="page"], .nav-demo:hover { color: var(--coral-deep); }
.nav-demo { white-space: nowrap; }
.nav-toggle {
  min-width: 48px; min-height: 48px; display: none; margin-left: auto; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--paper); cursor: pointer; font-weight: 650;
}

/* Hero and public product surfaces */
.hero { position: relative; overflow: hidden; padding: clamp(70px, 9vw, 118px) 0 92px; }
.hero .split > div { position: relative; }
.hero-copy { position: relative; z-index: 2; }
.hero .lede { max-width: 65ch; }
.hero-actions { margin-top: 30px; }
.trust-line { margin-top: 20px; color: var(--muted); font-size: .88rem; }
.trust-line span { display: inline-flex; align-items: center; }
.trust-line span:not(:last-child)::after { content: "•"; margin: 0 9px; color: var(--gold-deep); }
.ingredient-accent { position: absolute; pointer-events: none; opacity: .85; }
.ingredient-accent.pepper { width: 84px; height: 46px; border: 3px solid var(--coral); border-radius: 70% 30% 60% 40%; transform: rotate(-24deg); }
.ingredient-accent.leaf { width: 48px; height: 82px; border: 3px solid var(--green); border-radius: 100% 0 100% 0; transform: rotate(33deg); }
.hero .pepper { left: -54px; bottom: -36px; }
.hero .leaf { right: -30px; top: -24px; }

.product-shell {
  position: relative; overflow: hidden; border: 1px solid rgba(215,196,173,.9); border-radius: 30px;
  background: var(--paper); box-shadow: var(--shadow); min-width: 0;
}
.product-shell::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -100px; bottom: -130px;
  border: 38px solid rgba(144,51,94,.08); border-radius: 50%; pointer-events: none;
}
.product-topbar { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 20px; background: var(--green-deep); color: var(--cream); }
.product-brand { display: inline-flex; gap: 9px; align-items: center; font-weight: 650; }
.product-brand img { width: auto; height: 34px; }
.product-meta { color: #d8d0c4; font-size: .76rem; }
.product-body { position: relative; z-index: 1; padding: clamp(22px, 4vw, 36px); }
.product-greeting { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .78rem; }
.product-story { margin: 22px 0; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.product-story h2, .product-story h3 { font-size: clamp(2rem, 4vw, 3rem); margin: 10px 0 12px; }
.story-copy { color: var(--ink); font-size: 1.02rem; font-weight: 600; }
.money-affected { margin-top: 12px; color: var(--purple-deep); }
.money-affected span { display: block; margin-bottom: 3px; color: var(--muted); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.money-affected strong { display: block; color: var(--purple-deep); font: 600 1.45rem/1.2 var(--display); }
.next-move { padding: 20px; border-left: 5px solid var(--coral); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--coral-soft); }
.next-move .label, .proof-label, .mini-label { color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.next-move p { margin: 7px 0 13px; color: var(--ink); font-weight: 650; }
.reassurance { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.reassurance span { padding: 10px; border: 1px solid var(--border); border-radius: 9px; color: var(--green-deep); background: var(--green-soft); font-size: .74rem; font-weight: 650; text-align: center; }
.state-switch { display: inline-flex; gap: 5px; padding: 5px; margin-top: 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--paper-warm); }
.state-switch button { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-size: .78rem; font-weight: 650; }
.state-switch button[aria-pressed="true"] { background: var(--green-deep); color: var(--cream); }
.quiet-mark { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: var(--green-soft); color: var(--green-deep); font-size: 1.35rem; }

.signal-flow { display: grid; grid-template-columns: minmax(0, .95fr) 80px minmax(0, 1.05fr); gap: 18px; align-items: center; }
.signal-list { display: flex; flex-wrap: wrap; gap: 9px; }
.signal-list span { padding: 9px 12px; border: 1px solid var(--border); border-radius: 999px; background: var(--paper); color: var(--ink-soft); font-size: .82rem; }
.flow-arrow { color: var(--purple); font: 600 2.5rem/1 var(--display); text-align: center; }
.answer-list { display: grid; gap: 8px; }
.answer-list div { padding: 13px 16px; border-left: 4px solid var(--green); background: var(--green-soft); color: var(--green-deep); font-weight: 650; }

.operator-card { min-height: 100%; }
.operator-card .best-for { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: .84rem; }
.capability-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.capability-card { grid-column: span 4; min-height: 230px; }
.capability-card.wide { grid-column: span 6; }
.capability-card .question { margin: 12px 0; color: var(--ink); font-weight: 650; }

.economics { display: grid; grid-template-columns: .88fr 1.12fr; gap: clamp(30px, 6vw, 76px); align-items: start; }
.money-stack { overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); background: rgba(255,255,255,.06); }
.money-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.13); font-size: .9rem; }
.money-row span { color: #ddd5c9; }
.money-row strong { font-variant-numeric: tabular-nums; }
.money-row small { display: block; max-width: 42ch; margin-top: 3px; color: #c9c0b4; font-size: .72rem; line-height: 1.35; }
.money-row.total { padding-block: 20px; background: var(--cream); }
.money-row.total span, .money-row.total strong { color: var(--ink); }
.money-row.total strong { font: 600 1.55rem/1 var(--display); }
.comparison-label { margin: 14px 0 7px; color: #ddd5c9; font-size: .76rem; }
.comparison-strip { display: grid; grid-template-columns: repeat(3, 1fr); overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-sm); background: rgba(255,255,255,.06); }
.comparison-strip div { padding: 10px 12px; border-right: 1px solid rgba(255,255,255,.13); }
.comparison-strip div:last-child { border-right: 0; }
.comparison-strip span { display: block; color: #c9c0b4; font-size: .7rem; }
.comparison-strip strong { display: block; margin-top: 3px; color: var(--cream); font-variant-numeric: tabular-nums; }
.judgment-card { margin-top: 18px; padding: 20px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius); background: rgba(255,255,255,.07); }
.judgment-card p { margin: 10px 0 0; }
.proof-disclosure { margin-top: 18px; }
.proof-disclosure summary { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; color: var(--cream); font-weight: 650; }
.proof-disclosure .proof-body { padding-top: 16px; border-top: 1px solid rgba(255,255,255,.15); }

.loop-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; counter-reset: loop; }
.loop-step { position: relative; min-height: 170px; padding: 20px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); }
.loop-step::before { counter-increment: loop; content: counter(loop, decimal-leading-zero); display: block; margin-bottom: 22px; color: var(--purple); font-size: .72rem; font-weight: 700; }
.loop-step h3 { font-size: 1.35rem; }
.loop-step p { margin-bottom: 0; font-size: .86rem; }

.command-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.command-card { position: relative; min-height: 220px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); }
.command-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 5px; border-radius: var(--radius) 0 0 var(--radius); background: var(--coral); }
.command-card.waiting::before { background: var(--gold); }
.command-card.proven::before, .command-card.quiet::before { background: var(--green); }
.command-card.quiet { background: var(--green-deep); border-color: var(--green-deep); }
.command-card.quiet h3, .command-card.quiet strong { color: var(--cream); }
.command-card.quiet p { color: #ded7cb; }

.location-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.location { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); }
.location.alert { border-color: var(--purple); background: var(--purple-soft); }
.location dl { display: grid; grid-template-columns: 1fr auto; gap: 9px 16px; margin-bottom: 0; font-size: .84rem; }
.location dt { color: var(--muted); }
.location dd { margin: 0; color: var(--ink); font-weight: 650; text-align: right; }
.review-callout { margin-top: 14px; padding: 18px 20px; border-left: 5px solid var(--coral); background: var(--coral-soft); }

.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.evidence-card { padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); }
.evidence-card p { margin: 14px 0 0; }

.price-card { padding: clamp(28px, 4vw, 44px); border: 1px solid var(--coral); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow-sm); }
.price { margin: 10px 0; font: 600 clamp(3.1rem, 7vw, 5rem)/1 var(--display); color: var(--ink); }
.price small { font: 500 .98rem/1.4 var(--sans); color: var(--muted); }
.site-check-list, .dash-list { display: grid; gap: 10px; padding: 0; list-style: none; }
.site-check-list li, .dash-list li { position: relative; padding-left: 28px; color: var(--ink-soft); }
.site-check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700; }
.dash-list li::before { content: "—"; position: absolute; left: 0; color: var(--purple); font-weight: 700; }

/* Interior pages */
.page-hero { padding: clamp(72px, 9vw, 116px) 0 78px; }
.page-hero .lede { max-width: 760px; }
.page-hero .btn-row { margin-top: 28px; }
.page-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(34px, 7vw, 86px); align-items: center; }
.page-hero h1 { font-size: clamp(2.75rem, 6vw, 5rem); }
.capability-row { display: grid; grid-template-columns: .82fr 1.18fr; gap: clamp(32px, 7vw, 88px); align-items: center; padding: 54px 0; border-top: 1px solid var(--border); }
.capability-row:first-child { border-top: 0; }
.capability-row:nth-child(even) > :first-child { order: 2; }
.ui-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.ui-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--border); background: var(--paper-warm); color: var(--muted); font-size: .75rem; }
.ui-body { padding: 24px; }
.ui-story { color: var(--ink); font: 600 1.72rem/1.12 var(--display); }
.ui-row { display: flex; justify-content: space-between; gap: 20px; padding: 12px 0; border-top: 1px solid var(--border); font-size: .84rem; }
.ui-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.site-timeline { position: relative; display: grid; gap: 0; }
.timeline-item { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding-bottom: 25px; }
.timeline-item::before { content: ""; position: absolute; left: 19px; top: 30px; bottom: -2px; width: 1px; background: var(--border); }
.timeline-item:last-child::before { display: none; }
.timeline-mark { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--paper); color: var(--green-deep); font-weight: 700; }
.timeline-item p { margin-bottom: 0; font-size: .9rem; }
.process-list { counter-reset: process; display: grid; gap: 0; }
.process-step { counter-increment: process; display: grid; grid-template-columns: 80px 1fr; gap: 24px; padding: 30px 0; border-top: 1px solid var(--border); }
.process-step::before { content: counter(process, decimal-leading-zero); color: var(--purple); font: 600 2rem/1 var(--display); }
.process-step p { margin-bottom: 0; }
.principle-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius); background: var(--border); }
.principle-strip div { padding: 22px; background: var(--paper); }
.principle-strip strong { display: block; margin-bottom: 6px; }

/* Interactive demo */
.demo-page { padding: 64px 0 100px; }
.demo-frame { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--paper); box-shadow: var(--shadow); }
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 22px; background: var(--green-deep); color: var(--cream); }
.demo-bar .tag { color: var(--cream); border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.08); }
.demo-stage { padding: clamp(24px, 5vw, 54px); }
.demo-progress { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; color: var(--muted); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.progress-track { height: 6px; flex: 1; overflow: hidden; border-radius: 999px; background: var(--paper-warm); }
.progress-track span { display: block; height: 100%; width: var(--progress, 0%); border-radius: inherit; background: var(--purple); transition: width .25s ease; }
.demo-title { max-width: 780px; font-size: clamp(2.15rem, 5vw, 4rem); }
.demo-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.demo-choice {
  min-height: 190px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--paper); cursor: pointer; text-align: left; transition: border-color .16s, transform .16s, background .16s;
}
.demo-choice:hover { transform: translateY(-3px); border-color: var(--coral); background: var(--coral-soft); }
.demo-choice strong { display: block; margin: 14px 0 8px; font: 600 1.55rem/1.08 var(--display); }
.demo-choice span { display: block; color: var(--muted); font-size: .88rem; }
.demo-quiet { margin-top: 14px; }
.demo-screen { min-height: 480px; }
.demo-screen .lede { max-width: 720px; }
.demo-data { max-width: 760px; margin-top: 30px; }
.demo-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 38px; padding-top: 24px; border-top: 1px solid var(--border); }
.demo-actions > div { display: flex; gap: 10px; }
.proof-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 22px; }
.proof-cell { padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--paper-warm); }
.proof-cell dt { color: var(--muted); font-size: .69rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.proof-cell dd { margin: 5px 0 0; color: var(--ink); font-weight: 600; }
.response-options { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.response-options .btn[aria-pressed="true"] { background: var(--green-deep); color: var(--cream); border-color: var(--green-deep); }
.demo-announcement { min-height: 1px; }

/* Trust */
.trust-flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.trust-node { position: relative; min-height: 140px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); }
.trust-node:not(:last-child)::after { content: "→"; position: absolute; right: -17px; top: 50%; z-index: 2; color: var(--purple); font-weight: 700; transform: translateY(-50%); }
.boundary { padding: 24px; border: 2px solid var(--purple); border-radius: var(--radius); background: var(--purple-soft); }
.gap-panel { padding: 26px; border-left: 6px solid var(--gold-deep); background: var(--gold-soft); }
.gap-panel h3 { font-family: var(--sans); font-size: 1.08rem; letter-spacing: 0; }
.fact-table { width: 100%; border-collapse: collapse; }
.fact-table th, .fact-table td { padding: 16px; border-top: 1px solid var(--border); vertical-align: top; text-align: left; }
.fact-table th { width: 28%; color: var(--ink); font-size: .86rem; }
.fact-table td { color: var(--ink-soft); font-size: .9rem; }

/* FAQ */
.faq-list { border-bottom: 1px solid var(--border); }
.faq-item { border-top: 1px solid var(--border); }
.faq-item summary { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 2px; cursor: pointer; list-style: none; color: var(--ink); font-weight: 650; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--coral-deep); font: 600 1.7rem/1 var(--display); transition: transform .15s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { max-width: 760px; padding: 0 0 24px; }
.faq-answer p:last-child { margin-bottom: 0; }

/* Application */
.application-page { padding: 66px 0 100px; }
.application-head { max-width: 760px; margin-bottom: 34px; }
.step-label { color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.step-label .of { color: #a0978e; }
.stepper { display: flex; gap: 8px; margin: 14px 0 28px; }
.stepper .seg { height: 7px; flex: 1; border-radius: 999px; background: var(--paper-warm); }
.stepper .seg.active { background: var(--purple); }
.application-form { max-width: 900px; }
.step-panel { padding: clamp(22px, 4vw, 38px); border: 1px solid var(--border); border-radius: var(--radius); background: var(--paper); box-shadow: var(--shadow-sm); }
.step-panel legend { width: 100%; margin-bottom: 8px; color: var(--ink); font: 600 clamp(1.6rem, 3vw, 2.2rem)/1.08 var(--display); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 18px; }
.field { margin-bottom: 20px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: 7px; color: var(--ink); font-size: .9rem; font-weight: 650; }
.field .hint { color: var(--muted); font-size: .8rem; font-weight: 400; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #9b8f83; border-radius: var(--radius-sm); background: var(--white); color: var(--ink);
}
.field textarea { min-height: 112px; resize: vertical; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--coral-deep); background: var(--coral-soft); }
.err { display: none; margin-top: 5px; color: var(--coral-deep); font-size: .8rem; font-weight: 650; }
.field.invalid .err { display: block; }
.form-error-summary { display: none; margin-bottom: 18px; padding: 14px 16px; border: 1px solid var(--coral-deep); border-radius: var(--radius-sm); background: var(--coral-soft); color: var(--coral-deep); font-weight: 650; }
.form-error-summary.show { display: block; }
.check { min-height: 44px; display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; color: var(--ink-soft); font-size: .9rem; }
.check input { width: 20px; height: 20px; margin-top: 4px; flex: 0 0 auto; accent-color: var(--green); }
.consent-error { color: var(--coral-deep); font-weight: 650; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.form-actions > :last-child { margin-left: auto; }
.hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
#turnstile { min-height: 65px; }
.recovery { margin-top: 20px; }

/* Footer */
.site-footer { margin-top: 0; padding: 70px 0 34px; background: var(--ink); color: #d8d1c7; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 44px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--cream); font: 600 1.8rem/1 var(--display); }
.footer-brand img { width: auto; height: 48px; }
.footer-position { margin-top: 18px; color: #cfc6bb; }
.footer-tagline { color: #f2c14e; font-family: var(--display); font-size: 1.15rem; font-style: italic; }
.footer-title { margin-bottom: 12px; color: #9f968c; font-size: .72rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.site-footer a { min-height: 38px; display: flex; align-items: center; color: #d8d1c7; font-size: .9rem; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer-legal { grid-column: 1 / -1; margin-top: 18px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.13); color: #9f968c; font-size: .78rem; }

.source-note { padding: 14px 17px; border-left: 4px solid var(--gold-deep); background: var(--gold-soft); color: var(--ink-soft); font-size: .84rem; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mt-4 { margin-top: 58px; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (min-width: 901px) {
  .hero { padding: clamp(46px, 4vw, 62px) 0 68px; }
  .hero .split { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: clamp(32px, 4vw, 60px); }
  .hero h1 { margin-bottom: 20px; font-size: clamp(3.35rem, 4.45vw, 4.2rem); line-height: .99; }
  .hero .lede { font-size: clamp(1.02rem, 1.25vw, 1.14rem); line-height: 1.48; }
  .hero-actions { margin-top: 22px; }
  .hero .trust-line { margin-top: 16px; }
}

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-panel { display: none; position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 76px); overflow-y: auto; padding: 20px; border-bottom: 1px solid var(--border); background: var(--cream); box-shadow: var(--shadow); }
  .nav-panel.open { display: grid; }
  .nav-primary, .nav-actions { display: grid; gap: 4px; }
  .nav-primary a, .nav-demo { min-height: 48px; padding: 7px 4px; }
  .nav-actions { margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
  .nav-actions .btn { width: 100%; }
  .loop-grid { grid-template-columns: repeat(3, 1fr); }
  .capability-card { grid-column: span 6; }
  .command-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  section { padding: 82px 0; }
  .split, .economics, .page-hero-grid, .capability-row { grid-template-columns: 1fr; }
  .capability-row:nth-child(even) > :first-child { order: initial; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signal-flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); }
  .principle-strip { grid-template-columns: repeat(2, 1fr); }
  .trust-flow { grid-template-columns: repeat(2, 1fr); }
  .trust-node:not(:last-child)::after { display: none; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { width: min(100% - 30px, var(--max)); }
  h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .hero { padding-top: 62px; }
  .hero .pepper, .hero .leaf { display: none; }
  .grid-2, .grid-3, .grid-4, .evidence-grid, .location-compare, .proof-grid, .form-grid { grid-template-columns: 1fr; }
  .capability-grid { display: grid; grid-template-columns: 1fr; }
  .capability-card, .capability-card.wide { grid-column: auto; min-height: 0; }
  .loop-grid { grid-template-columns: 1fr 1fr; }
  .loop-step { min-height: 150px; }
  .command-grid { grid-template-columns: 1fr; }
  .reassurance { grid-template-columns: 1fr; }
  .comparison-strip { grid-template-columns: 1fr; }
  .comparison-strip div { display: flex; align-items: center; justify-content: space-between; gap: 14px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .comparison-strip div:last-child { border-bottom: 0; }
  .comparison-strip strong { margin-top: 0; }
  .demo-choice-grid { grid-template-columns: 1fr; }
  .demo-choice { min-height: 0; }
  .demo-screen { min-height: 0; }
  .demo-actions { flex-direction: column-reverse; }
  .demo-actions > div { display: grid; }
  .demo-actions .btn { width: 100%; }
  .trust-flow, .principle-strip { grid-template-columns: 1fr; }
  .fact-table, .fact-table tbody, .fact-table tr, .fact-table th, .fact-table td { display: block; width: 100%; }
  .fact-table th { padding-bottom: 4px; }
  .fact-table td { padding-top: 4px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-legal { grid-column: auto; }
  .field.full { grid-column: auto; }
  .form-actions { display: grid; }
  .form-actions > :last-child { margin-left: 0; }
  .form-actions .btn { width: 100%; }
}

@media (max-width: 430px) {
  .wrap { width: min(100% - 24px, var(--max)); }
  section { padding: 68px 0; }
  .nav-inner { width: calc(100% - 24px); min-height: 70px; }
  .brand img { height: 38px; }
  .brand-name { font-size: 1.5rem; }
  .btn-row { display: grid; }
  .btn-row .btn { width: 100%; }
  .trust-line { display: grid; gap: 5px; }
  .trust-line span:not(:last-child)::after { display: none; }
  .product-topbar { padding-inline: 14px; }
  .product-body { padding: 20px 16px; }
  .product-story h2, .product-story h3 { font-size: 2rem; }
  .loop-grid { grid-template-columns: 1fr; }
  .loop-step { min-height: 0; }
  .money-row { padding-inline: 14px; }
  .demo-stage { padding: 22px 16px; }
  .demo-bar { padding-inline: 16px; }
  .step-panel { padding-inline: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
}
