/* ============================================================================
   x4digital V3 — Landing page styles
   Honors warm-paper palette + serif headlines + clay/gold accents.
   Per Charter NN#5: every surface earns its wow. Per
   feedback_aesthetic_is_signal.md: the landing IS the credibility test.
   ============================================================================ */

/* ── Page-specific layout ── */
.container { max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--space-5); }
main > section { padding: var(--space-9) 0; }
main > section:first-of-type { padding-top: var(--space-7); }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--ink-100);
}

/* Theme toggle button (landing nav). Subtle — square, icon-only, swaps
   sun/moon glyph based on current theme. Hover lifts the icon. */
.theme-toggle {
  background: transparent;
  border: 1px solid var(--ink-200);
  cursor: pointer;
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center; justify-content: center;
  color: var(--ink-700);
  transition: background var(--duration-base) var(--ease-standard),
              border-color var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard);
}
.theme-toggle:hover {
  background: var(--surface-2);
  border-color: var(--ink-300);
  color: var(--ink-900);
}
.theme-toggle__icon { font-size: 14px; line-height: 1; }
.theme-toggle__icon--sun { display: none; }
.theme-toggle__icon--moon { display: inline; }
[data-theme="dark"] .theme-toggle__icon--sun { display: inline; }
[data-theme="dark"] .theme-toggle__icon--moon { display: none; }
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-5);
}
.brand-mark {
  display: inline-flex; align-items: baseline; gap: var(--space-2);
  font-family: var(--font-serif); font-size: var(--text-xl);
  font-weight: var(--weight-semibold); color: var(--ink-900);
  letter-spacing: var(--tracking-tight); text-decoration: none;
}
.brand-mark::before {
  content: ""; display: inline-block; width: 10px; height: 10px;
  background: var(--gold); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.20);
}
.nav { display: flex; gap: var(--space-5); align-items: center; }
.nav a { color: var(--ink-600); font-size: var(--text-sm); font-weight: var(--weight-medium); text-decoration: none; }
.nav a:hover { color: var(--accent); }

/* ── Mobile nav (drawer slides in from right) ── */
.nav__hamburger {
  display: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: var(--space-2);
  width: 40px; height: 40px;
  border-radius: var(--radius-md);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.nav__hamburger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--ink-900);
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-standard),
              opacity var(--duration-base) var(--ease-standard);
}
.nav__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__hamburger.is-open span:nth-child(2) { opacity: 0; }
.nav__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  transform: translateX(100%);
  transition: transform var(--duration-slow) var(--ease-emphasized);
  z-index: 60;
  padding: var(--space-7) var(--space-5) var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4);
  visibility: hidden;
}
.nav__drawer.is-open { transform: translateX(0); visibility: visible; }
.nav__drawer a {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--ink-900);
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--ink-100);
}
.nav__drawer a:last-of-type { border-bottom: 0; }
.nav__drawer .btn { margin-top: var(--space-3); justify-content: center; }
.nav__scrim {
  position: fixed; inset: 0;
  background: rgba(26, 22, 18, 0.45);
  opacity: 0;
  transition: opacity var(--duration-base) var(--ease-standard);
  z-index: 55;
  visibility: hidden;
}
.nav__scrim.is-open { opacity: 1; visibility: visible; }

/* ── Hero (split: copy + live demo) ── */
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-7);
  align-items: center;
  padding: var(--space-7) 0 var(--space-8);
}
.hero__copy { max-width: 600px; }
.hero__eyebrow { color: var(--gold-deep); margin: 0 0 var(--space-3); }
.hero__h1 {
  font-size: var(--text-6xl); font-weight: var(--weight-semibold);
  color: var(--ink-900); margin: 0 0 var(--space-3);
  line-height: 1.04;
  letter-spacing: var(--tracking-tight);
}
.hero__lede {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--accent-2);
  margin: 0 0 var(--space-3);
  letter-spacing: var(--tracking-tight);
}
.hero__lede strong { font-weight: var(--weight-semibold); color: var(--accent-2); }
.hero__sub {
  font-size: var(--text-lg); color: var(--ink-600);
  margin: 0 0 var(--space-6);
  line-height: var(--leading-snug);
}
.hero__cta { display: inline-flex; gap: var(--space-3); flex-wrap: wrap; }

/* ── Hero live demo (right column, autoplay chat mock) ── */
.hero__demo {
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  border: 1px solid var(--ink-100);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 480px;
  max-height: 580px;
}
.demo__header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--ink-100);
  background: var(--surface-2);
}
.demo__title {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--ink-900);
  display: flex; align-items: center; gap: var(--space-2);
}
.demo__title::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  background: var(--success); border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74, 124, 63, 0.18);
  animation: demo-pulse 2.4s ease-in-out infinite;
}
@keyframes demo-pulse { 0%, 100% { opacity: 1 } 50% { opacity: 0.55 } }
.demo__live-tag {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--success);
  font-weight: var(--weight-semibold);
}
.demo__messages {
  flex: 1 1 0;
  min-height: 0;
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-4);
  overflow-y: auto;
  scroll-behavior: smooth;
}
.demo__msg {
  display: flex; gap: var(--space-3);
  align-items: flex-start;
  opacity: 0;
  transform: translateY(8px);
  animation: demo-msg-in var(--duration-slow) var(--ease-out-expo) forwards;
}
@keyframes demo-msg-in { to { opacity: 1; transform: none; } }
.demo__msg--user { flex-direction: row-reverse; }
.demo__avatar {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-bold);
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: -0.02em;
}
.demo__msg--ai .demo__avatar { background: var(--gold-soft); color: var(--gold-deep); }
.demo__msg--user .demo__avatar { background: var(--accent-soft); color: var(--accent-2); }
.demo__bubble {
  background: var(--surface-2);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--ink-700);
  line-height: var(--leading-snug);
  max-width: 80%;
}
.demo__msg--user .demo__bubble {
  background: var(--accent-soft);
  border-color: rgba(217, 81, 44, 0.18);
  color: var(--accent-2);
}
.demo__bubble strong { color: var(--ink-900); }
.demo__bubble--building {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--ink-500);
  background: var(--surface);
  border-style: dashed;
}
.demo__bubble .demo__url {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.demo__caret { display: inline-block; width: 7px; height: 1em; vertical-align: -2px; background: var(--ink-500); margin-left: 1px; animation: demo-caret 0.9s steps(2) infinite; }
@keyframes demo-caret { 50% { opacity: 0 } }

.demo__input-row {
  display: flex; gap: var(--space-2);
  padding: var(--space-3) var(--space-4) var(--space-4);
  /* No top border — the input row blends seamlessly with the demo body so
     the input feels like the natural "type the next message" affordance,
     not a separate footer. The hairline divider was reading as "form below
     a transcript" instead of "you can keep this conversation going." */
  border-top: 1px solid transparent;
  background: var(--surface);
  /* Subtle warm-paper inset shadow at the top — tells the eye there's
     content above without imposing a hard line. */
  box-shadow: inset 0 1px 0 rgba(26, 22, 18, 0.04);
}
.demo__input {
  flex: 1;
  background: var(--surface-2);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-900);
  outline: none;
  transition: border-color var(--duration-base) var(--ease-standard);
}
.demo__input:focus {
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.demo__input::placeholder { color: var(--ink-400); }

/* Cycle-accent: per-archetype subtle hue rotation. The JS sets
   `data-cycle-idx` on .hero__demo each iteration (0–3). The visible touch
   is on the URL-pill underline + the AI avatar ring — both already use
   gold/clay; rotating the AI avatar shadow accent gives a subtle "different
   business, different vibe" cue without overriding the brand palette. */
.hero__demo[data-cycle-idx="0"] .demo__msg--ai .demo__avatar { box-shadow: 0 0 0 3px rgba(200, 162, 74, 0.16); }
.hero__demo[data-cycle-idx="1"] .demo__msg--ai .demo__avatar { box-shadow: 0 0 0 3px rgba(217, 81, 44, 0.14); }
.hero__demo[data-cycle-idx="2"] .demo__msg--ai .demo__avatar { box-shadow: 0 0 0 3px rgba(74, 124, 63, 0.14); }
.hero__demo[data-cycle-idx="3"] .demo__msg--ai .demo__avatar { box-shadow: 0 0 0 3px rgba(184, 62, 31, 0.14); }
.hero__demo .demo__avatar { transition: box-shadow var(--duration-deliberate) var(--ease-standard); }
.demo__send {
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: white;
  border: 0;
  border-radius: var(--radius-md);
  padding: 0 var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  box-shadow: var(--shadow-clay);
  transition: box-shadow var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
  white-space: nowrap;
}
.demo__send:hover { box-shadow: var(--shadow-clay-lift); transform: translateY(-1px); }
.demo__send:active { transform: none; }

/* ── Process section ── */
.process { background: var(--surface-2); }
.process__inner { padding: var(--space-8) 0; }
.process__heading { text-align: center; max-width: 720px; margin: 0 auto var(--space-7); }
.process__heading h2 { font-size: var(--text-4xl); margin-bottom: var(--space-3); }
.process__heading p { color: var(--ink-600); font-size: var(--text-lg); line-height: var(--leading-snug); }
.process__steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5);
}
.step {
  background: var(--surface); padding: var(--space-6); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--space-3);
  position: relative;
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--duration-slow) var(--ease-out-expo),
              transform var(--duration-slow) var(--ease-out-expo);
}
.step.is-visible { opacity: 1; transform: none; }
.step__icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--gold-soft);
  color: var(--gold-deep);
  display: inline-flex; align-items: center; justify-content: center;
}
.step__icon svg { width: 22px; height: 22px; }
.step__num {
  font-family: var(--font-serif); font-size: var(--text-2xl);
  color: var(--gold-deep); line-height: 1;
  position: absolute; top: var(--space-5); right: var(--space-5);
  opacity: 0.55;
}
.step h3 { font-size: var(--text-xl); margin: var(--space-2) 0; }
.step p { color: var(--ink-600); font-size: var(--text-base); line-height: var(--leading-snug); margin: 0; }
.step__time {
  display: inline-flex; align-items: center; gap: var(--space-1);
  margin-top: var(--space-3);
  background: var(--accent-soft);
  color: var(--accent-2);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  align-self: flex-start;
}

/* ── Trust signals — universal archetype per Q10 ── */
.who { text-align: center; }
.who h2 { font-size: var(--text-3xl); margin-bottom: var(--space-3); }
.who p { color: var(--ink-600); margin: 0 0 var(--space-6); }
.who__pills {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2);
  max-width: 920px; margin: 0 auto;
}

/* ── Comparison table ── */
.compare { background: var(--surface-2); }
.compare__heading { text-align: center; max-width: 720px; margin: 0 auto var(--space-7); }
.compare__heading h2 { font-size: var(--text-4xl); margin-bottom: var(--space-3); }
.compare__heading p { color: var(--ink-600); font-size: var(--text-lg); }
.compare__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare__table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  min-width: 720px;
}
.compare__table th, .compare__table td {
  padding: var(--space-4) var(--space-5);
  text-align: left;
  font-size: var(--text-sm);
  vertical-align: top;
  border-bottom: 1px solid var(--ink-100);
}
.compare__table th {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--ink-900);
  background: var(--surface-2);
  letter-spacing: var(--tracking-tight);
  text-align: left;
}
.compare__table th:first-child { width: 32%; }
.compare__table tr:last-child td { border-bottom: 0; }
.compare__col--us { background: rgba(217, 81, 44, 0.04); }
.compare__col--us-th { color: var(--accent-2); }
.compare__cell--good { color: var(--success); font-weight: var(--weight-semibold); }
.compare__cell--ok { color: var(--ink-700); }
.compare__cell--bad { color: var(--ink-500); }
.compare__row-label {
  font-weight: var(--weight-semibold);
  color: var(--ink-900);
}
.compare__lead {
  display: block;
  font-weight: var(--weight-semibold);
  margin-bottom: 4px;
}
.compare__sub {
  display: block;
  font-weight: var(--weight-regular);
  font-size: 0.875em;
  color: var(--ink-500);
}
.compare__cell--good .compare__sub { color: var(--ink-600); }

/* ── Build stats ── */
.stats { text-align: center; }
.stats__heading { max-width: 720px; margin: 0 auto var(--space-7); }
.stats__heading h2 { font-size: var(--text-4xl); margin-bottom: var(--space-3); }
.stats__heading p { color: var(--ink-600); font-size: var(--text-lg); }
.stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4);
  max-width: 1024px; margin: 0 auto;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  box-shadow: var(--shadow-0);
  display: flex; flex-direction: column; gap: var(--space-2);
}
.stat__value {
  font-family: var(--font-serif);
  font-size: var(--text-5xl);
  font-weight: var(--weight-semibold);
  color: var(--ink-900);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}
.stat__label {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--ink-600);
  letter-spacing: var(--tracking-wide);
}
.stats__footnote {
  margin-top: var(--space-5);
  font-size: var(--text-xs);
  color: var(--ink-500);
  font-style: italic;
}

/* ── FAQ ── */
.faq { background: var(--surface-2); }
.faq__heading { text-align: center; max-width: 720px; margin: 0 auto var(--space-7); }
.faq__heading h2 { font-size: var(--text-4xl); margin-bottom: var(--space-3); }
.faq__heading p { color: var(--ink-600); font-size: var(--text-lg); }
.faq__list {
  max-width: var(--container-base); margin: 0 auto;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.faq__item {
  background: var(--surface);
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-0);
  overflow: hidden;
}
.faq__question {
  width: 100%;
  background: transparent;
  border: 0;
  text-align: left;
  padding: var(--space-5);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--ink-900);
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-4);
  letter-spacing: var(--tracking-tight);
}
.faq__toggle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-deep);
  font-family: var(--font-sans);
  font-weight: var(--weight-bold);
  font-size: var(--text-lg);
  line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform var(--duration-base) var(--ease-standard);
}
.faq__item.is-open .faq__toggle {
  transform: rotate(45deg);
  background: var(--accent-soft);
  color: var(--accent-2);
}
.faq__answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height var(--duration-deliberate) var(--ease-out-expo),
              opacity var(--duration-base) var(--ease-standard);
}
.faq__answer-inner {
  padding: 0 var(--space-5) var(--space-5);
  color: var(--ink-600);
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
}
.faq__item.is-open .faq__answer {
  max-height: 360px;
  opacity: 1;
  transition: max-height var(--duration-deliberate) var(--ease-out-expo),
              opacity var(--duration-slow) var(--ease-standard) 80ms;
}
.faq__item:hover .faq__toggle {
  background: var(--gold);
  color: var(--ink-900);
}

/* ── Final CTA ── */
.final { text-align: center; max-width: 720px; margin: 0 auto; padding: var(--space-9) 0; }
.final h2 { font-size: var(--text-5xl); margin-bottom: var(--space-3); }
.final p { color: var(--ink-600); font-size: var(--text-lg); margin: 0 0 var(--space-5); line-height: var(--leading-snug); }

/* Live-status indicator under the final CTA — green pulsing dot + live + ETA.
   Reads as "we're live, you'll be helped soon" without making any uptime
   promise the system can't keep. Pulse honors prefers-reduced-motion. */
.final__live {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-6) auto 0;
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  color: var(--ink-600);
  background: rgba(74, 124, 63, 0.06);
  border: 1px solid rgba(74, 124, 63, 0.18);
  border-radius: var(--radius-pill);
}
.final__live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(74, 124, 63, 0.18);
  animation: final-live-pulse 2.4s ease-in-out infinite;
  flex-shrink: 0;
}
.final__live-text {
  font-weight: var(--weight-semibold);
  color: var(--success);
  letter-spacing: var(--tracking-wide);
}
.final__live-sep { color: var(--ink-300); }
.final__live-meta { color: var(--ink-600); }
@keyframes final-live-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 124, 63, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(74, 124, 63, 0.10); }
}
@media (prefers-reduced-motion: reduce) {
  .final__live-dot { animation: none; }
}

/* ── Footer ── */
.site-footer {
  background: var(--surface-2); border-top: 1px solid var(--ink-100);
  padding: var(--space-7) var(--space-5);
}
.site-footer__inner {
  max-width: var(--container-wide); margin: 0 auto;
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-5);
}
.site-footer__brand { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__brand p { color: var(--ink-500); font-size: var(--text-sm); margin: 0; max-width: 360px; }
.site-footer__nav { display: flex; gap: var(--space-5); align-items: flex-start; }
.site-footer__nav a { color: var(--ink-600); font-size: var(--text-sm); text-decoration: none; }
.site-footer__nav a:hover { color: var(--accent); }

/* ── Cookie consent banner ── */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: var(--space-5);
  transform: translateX(-50%) translateY(calc(100% + var(--space-5)));
  z-index: 100;
  width: min(680px, calc(100vw - var(--space-7)));
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  padding: var(--space-5);
  display: flex; gap: var(--space-5); align-items: center;
  transition: transform var(--duration-deliberate) var(--ease-emphasized);
}
.cookie-banner.is-visible { transform: translateX(-50%) translateY(0); }
.cookie-banner__copy {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--ink-700);
  line-height: var(--leading-snug);
}
.cookie-banner__copy strong {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-base);
  color: var(--ink-900);
  margin-bottom: var(--space-1);
}
.cookie-banner__copy a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex; gap: var(--space-2);
  flex-shrink: 0;
}

/* ── Demo live-pill (delivered URL in the 6th-turn AI bubble) ──
   Reads as "live deployment, click to open" — gold-accented inline pill
   with a small ↗ external-link glyph. Click handler intercepts and either
   opens a real V3 URL (when window.X4_DEMO_LIVE_URLS[id] is populated)
   or shows a tooltip + routes to /chat (the activation path). */
.demo-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin-left: 4px;
  background: var(--gold-soft);
  color: var(--gold-deep);
  border: 1px solid rgba(200, 162, 74, 0.32);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  text-decoration: none;
  letter-spacing: 0;
  cursor: pointer;
  transition:
    background var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard),
    transform var(--duration-base) var(--ease-standard);
  position: relative;
}
.demo-live-pill:hover {
  background: var(--gold);
  color: var(--ink-900);
  box-shadow: 0 1px 8px rgba(200, 162, 74, 0.30);
  transform: translateY(-1px);
}
.demo-live-pill:active { transform: none; }
.demo-live-pill__url { font-family: inherit; }
.demo-live-pill__icon {
  font-family: var(--font-sans);
  font-size: 0.85em;
  line-height: 1;
  opacity: 0.8;
}

/* Tooltip flashed when demo-live-pill is clicked before we have a real
   V3 URL for that archetype. Self-removes after ~1s. Positioned absolute
   in document space so it floats above any surface. */
.demo-live-tooltip {
  position: absolute;
  z-index: 1000;
  background: var(--ink-900);
  color: var(--surface);
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-medium);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-2);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity var(--duration-base) var(--ease-standard),
              transform var(--duration-base) var(--ease-standard);
}
.demo-live-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Closer-pricing (single $5/free block — replaces the 4-card matrix) ──
   Tight, focused closer block. Warm-paper bg, clay accent on the
   primary CTA, serif headline. Reads as "the offer is simple, here it is,
   click to start." */
.closer-pricing {
  background: var(--surface-2);
  text-align: center;
}
.closer-pricing__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: var(--space-8) var(--space-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}
.closer-pricing h2 {
  font-family: var(--font-serif);
  font-size: var(--text-5xl);
  font-weight: var(--weight-semibold);
  color: var(--ink-900);
  margin: 0;
  line-height: 1.08;
  letter-spacing: var(--tracking-tight);
}
.closer-pricing__lede {
  font-size: var(--text-lg);
  color: var(--ink-600);
  line-height: var(--leading-snug);
  margin: 0;
  max-width: 620px;
}
.closer-pricing__inclusions {
  list-style: none;
  padding: 0;
  margin: var(--space-2) 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  text-align: left;
  align-self: center;
}
.closer-pricing__inclusions li {
  position: relative;
  padding-left: 28px;
  font-size: var(--text-base);
  color: var(--ink-700);
  line-height: var(--leading-snug);
}
.closer-pricing__inclusions li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(74, 124, 63, 0.18);
}
.closer-pricing__inclusions li::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.78em;
  width: 6px;
  height: 3px;
  border-left: 2px solid white;
  border-bottom: 2px solid white;
  transform: rotate(-45deg);
}
.closer-pricing .btn { margin-top: var(--space-3); }
.closer-pricing__fineprint {
  font-size: var(--text-sm);
  color: var(--ink-500);
  margin: 0;
  font-style: italic;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero__copy { max-width: none; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .nav__cta-desktop { display: none; }
  .nav__hamburger { display: flex; }
  .nav__links { display: none; }

  .hero__h1 { font-size: var(--text-5xl); line-height: 1.02; }
  .hero__lede { font-size: var(--text-lg); }
  .hero__sub { font-size: var(--text-base); }
  .process__steps { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .final h2 { font-size: var(--text-3xl); }
  .closer-pricing h2 { font-size: var(--text-3xl); }
  .closer-pricing__lede { font-size: var(--text-base); }
  .site-footer__inner { grid-template-columns: 1fr; }

  .cookie-banner {
    flex-direction: column; align-items: stretch;
    gap: var(--space-3);
    bottom: 0; left: 0; right: 0;
    width: 100%;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    transform: translateY(calc(100% + var(--space-5)));
  }
  .cookie-banner.is-visible { transform: translateY(0); }
  .cookie-banner__actions { justify-content: stretch; }
  .cookie-banner__actions .btn { flex: 1; justify-content: center; }
}

/* Phone viewports — 320 / 375. Tighter rhythm + the live-status pill
   stays one line by allowing wrap inside it but keeping the dot+label
   inseparable. The hero demo card needs minimum height relaxed so it
   doesn't waste space on small screens. */
@media (max-width: 480px) {
  .hero__h1 { font-size: var(--text-4xl); line-height: 1.04; }
  .hero__demo { min-height: 380px; }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; justify-content: center; }
  .stats__grid { gap: var(--space-3); }
  .stat { padding: var(--space-5) var(--space-3); }
  .stat__value { font-size: var(--text-3xl); }
  .closer-pricing__inner { padding: var(--space-7) var(--space-4); }
  .demo-live-pill { padding: 3px 10px; font-size: 11px; }
  /* Pricing tier grid (inline-styled grid-template-columns: repeat(4,...)
     in HTML) collapses cleanly via the `.process__steps { 1fr }` 720px
     rule above; nothing extra needed at 480px. */
  .final__live {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
}
