/* ============================================================================
   x4digital V5 — 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 { width: 100%; 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 + mobile drawer). */
.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:focus { outline: none; }
.theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.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-color: var(--emphasis-solid); border-radius: 50%;
  box-shadow: 0 0 0 3px var(--emphasis-glow);
}
/* P2-5 (Launch-Gate 2026-05-16) — wordmark + brand-promise tagline.
   Grid layout: column 1 is the dot pseudo, column 2 stacks the two text
   lines. Keeps the brand-mark dot beside the visual center of the stack. */
.brand-mark--with-tagline {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "dot word" "dot tag";
  align-items: center;
  gap: 0 var(--space-2);
}
.brand-mark--with-tagline::before { grid-area: dot; align-self: center; }
.brand-mark--with-tagline .brand-mark__word { grid-area: word; line-height: 1; }
.brand-mark--with-tagline .brand-mark__tagline {
  grid-area: tag;
  font-family: var(--font-sans, inherit);
  font-size: 10.5px;
  font-weight: var(--weight-medium);
  color: var(--ink-500);
  letter-spacing: 0.04em;
  line-height: 1.2;
  margin-top: 2px;
  white-space: nowrap;
}
@media (max-width: 540px) {
  .brand-mark--with-tagline .brand-mark__tagline { display: none; }
}
.nav { display: flex; gap: var(--space-5); align-items: center; }
.nav__cta-desktop { gap: var(--space-2); }
.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); }
.nav a.btn--accent,
.nav a.btn--accent:hover { color: var(--accent-foreground, white); }
.nav a.btn--ghost { color: var(--ink-700); }
.nav-control-group {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  min-height: 38px;
  padding: 3px;
  background: color-mix(in srgb, var(--surface) 68%, var(--surface-2));
  border: 1px solid color-mix(in srgb, var(--ink-200) 88%, transparent);
  border-radius: var(--radius-pill);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), var(--shadow-0);
}
.locale-switcher {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  min-height: 32px;
  padding: 0;
  color: var(--ink-500);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  font-size: var(--text-sm);
  line-height: 1;
}
.locale-switcher__link {
  color: var(--ink-500);
  text-decoration: none;
  font-weight: var(--weight-semibold);
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  min-width: 34px;
  text-align: center;
  transition: background var(--duration-base) var(--ease-standard),
              color var(--duration-base) var(--ease-standard),
              box-shadow var(--duration-base) var(--ease-standard);
}
.locale-switcher__link:hover {
  color: var(--ink-900);
  background: color-mix(in srgb, var(--surface) 68%, transparent);
}
.locale-switcher__link.is-active {
  color: var(--ink-900);
  background: var(--surface);
  box-shadow: 0 1px 3px rgba(26, 22, 18, 0.08);
}
.locale-switcher__link:focus { outline: none; }
.locale-switcher__link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.locale-switcher__divider { display: none; }
.theme-toggle--nav {
  width: auto;
  min-width: 74px;
  height: 32px;
  padding: 4px 9px 4px 7px;
  gap: 7px;
  border: 0;
  border-left: 1px solid var(--ink-100);
  border-radius: var(--radius-pill);
  color: var(--ink-600);
  background: transparent;
  box-shadow: none;
}
.theme-toggle--nav:hover {
  background: var(--surface);
  color: var(--ink-900);
  box-shadow: 0 1px 3px rgba(26, 22, 18, 0.08);
}
.theme-toggle__chat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 14px;
  line-height: 1;
  transform: translateY(-0.5px);
}
.theme-toggle--nav .theme-toggle__state {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-600);
  font-size: 12px;
  line-height: 1;
}
[data-theme="dark"] .nav-control-group {
  background: color-mix(in srgb, var(--surface) 76%, var(--surface-2));
  border-color: color-mix(in srgb, var(--ink-200) 92%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), var(--shadow-0);
}
[data-theme="dark"] .locale-switcher__link.is-active,
[data-theme="dark"] .theme-toggle--nav:hover {
  background: color-mix(in srgb, var(--surface-3) 68%, var(--surface));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 3px rgba(0, 0, 0, 0.24);
}

/* ── 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(340px, 88vw);
  background: var(--surface);
  box-shadow: var(--shadow-3);
  transform: translateX(100%);
  transition:
    transform 260ms var(--ease-emphasized),
    visibility 0s linear 260ms;
  z-index: 60;
  padding: var(--space-5);
  display: flex; flex-direction: column; gap: var(--space-3);
  visibility: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.nav__drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform 260ms var(--ease-emphasized),
    visibility 0s;
}
body.nav-open .nav__drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}
.nav__drawer[aria-hidden="true"] { pointer-events: none; }
.nav__drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.nav__drawer-brand {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  color: var(--ink-900);
}
.nav__drawer-brand::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: var(--space-2);
  border-radius: 50%;
  background-color: var(--emphasis-solid);
  box-shadow: 0 0 0 3px var(--emphasis-glow);
  vertical-align: 1px;
}
.nav__drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--ink-200) 82%, transparent);
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--surface) 70%, var(--surface-2));
  color: var(--ink-700);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.nav__drawer-close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.nav__drawer-section {
  display: grid;
  gap: var(--space-2);
}
.nav__drawer-section--utility {
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--ink-200) 78%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 74%, var(--surface-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.36), 0 1px 8px rgba(26, 22, 18, 0.04);
}
.nav__drawer-section.nav__drawer-section--utility {
  padding: 6px;
  border: 1px solid color-mix(in srgb, var(--ink-200) 78%, transparent);
}
.nav__drawer-section + .nav__drawer-section {
  padding-top: var(--space-3);
  border-top: 1px solid var(--ink-100);
}
.nav__drawer-section--utility + .nav__drawer-section {
  border-top: 0;
  padding-top: 0;
}
.nav__drawer-label {
  margin-top: var(--space-1);
  font-size: 11px;
  font-weight: var(--weight-semibold);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  color: var(--ink-500);
}
.nav__drawer-label--preferences {
  margin-top: var(--space-2);
}
.nav__drawer-utility {
  display: grid;
  grid-template-columns: minmax(94px, 0.8fr) minmax(138px, 1.2fr);
  gap: 6px;
  align-items: center;
}
.drawer-control {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  min-height: 38px;
  padding: 3px;
  border: 1px solid color-mix(in srgb, var(--ink-200) 82%, transparent);
  border-radius: 7px;
  background: color-mix(in srgb, var(--surface-2) 72%, var(--surface));
  box-shadow: inset 0 1px 2px rgba(26, 22, 18, 0.035);
}
.drawer-control__option {
  min-width: 0;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-600);
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}
.drawer-control__option:focus { outline: none; }
.drawer-control__option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.drawer-control__option.is-active {
  background-color: var(--emphasis-bg);
  color: var(--emphasis-fg);
  box-shadow: inset 0 0 0 1px var(--emphasis-glow), 0 1px 5px rgba(26, 22, 18, 0.08);
}
.drawer-control__icon { font-size: 13px; line-height: 1; }
.nav__drawer-section--utility .drawer-control__option {
  border: 0;
  padding: 0 7px;
}
.nav__drawer-section--utility .drawer-control__option:not(.is-active) {
  background: transparent;
  color: var(--ink-600);
  box-shadow: none;
}
.drawer-theme-toggle {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  padding: 0 var(--space-3);
  border: 1px solid color-mix(in srgb, var(--ink-200) 82%, transparent);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-2));
  color: var(--ink-700);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: var(--weight-bold);
  line-height: 1;
  box-shadow: inset 0 1px 2px rgba(26, 22, 18, 0.035);
}
.drawer-theme-toggle:hover {
  color: var(--ink-900);
  background: color-mix(in srgb, var(--surface) 64%, var(--surface-2));
}
.drawer-theme-toggle:focus { outline: none; }
.drawer-theme-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.nav__drawer a:not([data-locale-link]) {
  min-height: 44px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  color: var(--ink-900);
  text-decoration: none;
  padding: 11px 12px;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--surface) 82%, var(--surface-2));
}
.nav__drawer a.btn--accent {
  justify-content: center;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  background-color: var(--gold);
  border-color: transparent;
  color: var(--accent-foreground, white);
}
.nav__drawer-links a {
  border-color: transparent;
  background: transparent;
}
.nav__drawer-links a:hover {
  background: var(--surface-2);
}
.nav__drawer .btn {
  margin-top: var(--space-2);
  justify-content: center;
  border-color: transparent;
}
.nav__drawer-account { margin-top: auto; }
.theme-toggle__state {
  margin-left: auto;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  color: var(--emphasis-fg);
  background-color: var(--emphasis-bg);
  border: 1px solid var(--emphasis-glow);
  border-radius: var(--radius-pill);
  padding: 4px 9px;
}
.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; }
body.nav-open .cookie-banner { display: none; }

/* ── 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 > * { min-width: 0; }
.hero__copy { max-width: 600px; }
.hero__eyebrow { color: var(--emphasis-fg); 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);
}
/* P0-6 (2026-05-16) — h1 lines are space-separated <span> children so the
   DOM serializes as readable text for SEO scrapers, social-share previews,
   and screen readers. display:block restores the line-break visual. */
.hero__line { display: block; }
.hero__lede {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  color: var(--emphasis-fg);
  margin: 0 0 var(--space-3);
  letter-spacing: var(--tracking-tight);
}
.hero__lede strong { font-weight: var(--weight-semibold); color: var(--emphasis-fg); }
.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__microline {
  margin: var(--space-4) 0 0;
  font-size: var(--text-sm);
  color: var(--ink-500);
  line-height: var(--leading-snug);
  max-width: 540px;
}

/* ── 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;
  width: 100%;
  min-width: 0;
  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);
  min-width: 58px;
  text-align: right;
}
.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;
}
.demo__msg--ai .demo__avatar { background-color: var(--emphasis-bg); color: var(--emphasis-fg); }
.demo__msg--user .demo__avatar { background-color: var(--emphasis-bg); color: var(--emphasis-fg); }
.demo__avatar,
.demo__msg--user .demo__bubble,
.demo__send,
.demo-live-pill {
  transition:
    background-color var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    box-shadow var(--duration-base) var(--ease-standard);
}
.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%;
  overflow-wrap: anywhere;
}
.demo__msg--user .demo__bubble {
  background-color: var(--emphasis-bg);
  border-color: var(--emphasis-glow);
  color: var(--emphasis-fg);
}
.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__thinking {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  white-space: nowrap;
}
.demo__thinking span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.3;
  animation: demo-thinking 1s ease-in-out infinite;
}
.demo__thinking span:nth-child(2) { animation-delay: 0.15s; }
.demo__thinking span:nth-child(3) { animation-delay: 0.3s; }
@keyframes demo-thinking {
  50% { opacity: 1; transform: translateY(-2px); }
}
.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;
  min-width: 0;
  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); }

.hero__demo .demo__msg--ai .demo__avatar { box-shadow: 0 0 0 3px var(--emphasis-glow); }
.demo__send {
  background-color: var(--emphasis-solid);
  background-image: none;
  color: var(--emphasis-on-solid);
  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: 0 4px 12px var(--emphasis-glow);
  transition: transform var(--duration-base) var(--ease-standard);
  white-space: nowrap;
}
.demo__send:hover { background-color: var(--emphasis-solid-hover); box-shadow: 0 12px 32px var(--emphasis-glow); 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); }
.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-7);
}
.section-heading h2 { font-size: var(--text-4xl); margin-bottom: var(--space-3); }
.section-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-color: var(--emphasis-bg);
  color: var(--emphasis-fg);
  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(--emphasis-fg); 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; padding-bottom: var(--space-10); }
.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;
}
.for { text-align: center; padding-bottom: var(--space-10); }
.for__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  max-width: 920px;
  margin: 0 auto;
}
.for__grid span {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  color: var(--ink-700);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
}
.who .who__bottom-line,
.for .who__bottom-line {
  display: block;
  margin: var(--space-4) auto 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink-600);
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
  text-align: center;
}

/* ── 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,
.compare__table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; }
.compare__swipe-cue { display: none; }
.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-color: var(--emphasis-bg); }
.compare__col--us-th { color: var(--emphasis-fg); }
.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); }
.compare__mobile {
  display: none;
}

[data-theme="dark"] .compare__table {
  background: var(--surface);
}
[data-theme="dark"] .compare__table th {
  background: var(--surface-2);
}
[data-theme="dark"] .compare__col--us {
  background-color: color-mix(in srgb, var(--emphasis-solid) 11%, var(--surface));
  color: var(--ink-900);
  box-shadow: inset 1px 0 0 color-mix(in srgb, var(--emphasis-solid) 24%, transparent),
              inset -1px 0 0 color-mix(in srgb, var(--emphasis-solid) 14%, transparent);
}
[data-theme="dark"] .compare__col--us-th {
  color: var(--emphasis-fg);
  background: color-mix(in srgb, var(--emphasis-solid) 10%, var(--surface-2));
}
[data-theme="dark"] .compare__cell--good.compare__col--us {
  color: var(--ink-900);
}
[data-theme="dark"] .compare__cell--good.compare__col--us .compare__lead,
[data-theme="dark"] .compare__cell--good.compare__col--us strong {
  color: var(--emphasis-fg);
}
[data-theme="dark"] .compare__cell--good.compare__col--us .compare__sub {
  color: var(--ink-600);
}
[data-theme="dark"] .compare__cell--bad {
  color: var(--ink-500);
}
[data-theme-transitioning="enter"] .compare__col--us,
[data-theme-transitioning="enter"] .compare__col--us-th,
[data-theme-transitioning="exit"] .compare__col--us,
[data-theme-transitioning="exit"] .compare__col--us-th {
  transition: none;
}

/* ── Build stats ── */
.stats { text-align: center; padding-bottom: var(--space-10); }
.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;
}
.metrics__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}
.metrics { padding-bottom: var(--space-10); }
.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);
}
.metric {
  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);
  text-align: center;
}
.metric strong {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  color: var(--ink-900);
  line-height: 1;
}
.metric span {
  color: var(--ink-600);
  font-size: var(--text-sm);
}
.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-color: var(--emphasis-bg);
  color: var(--emphasis-fg);
  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-color: var(--emphasis-solid);
  color: var(--emphasis-on-solid);
}

/* ── 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); }
/* P2-4 (Launch-Gate 2026-05-16) — secondary "See how we compare" anchor
   sits beside the primary CTA. Wraps on narrow viewports. */
.final__actions {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-3);
}

/* 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 ── P1-4 (Launch-Gate 2026-05-16) — standardized multi-column.
   Same structure on /pricing for cross-surface consistency. */
.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: minmax(0, 1.2fr) minmax(0, 1.8fr);
  gap: var(--space-7);
  align-items: start;
}
.site-footer__brand { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__brand .brand-mark { font-size: var(--text-lg); }
.site-footer__brand p { color: var(--ink-500); font-size: var(--text-sm); margin: 0; max-width: 360px; }
.site-footer__tagline {
  color: var(--ink-700);
  font-size: var(--text-sm);
  font-family: var(--font-serif);
  font-style: italic;
  margin: 0 0 var(--space-1) !important;
  letter-spacing: var(--tracking-tight);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.site-footer__col { display: flex; flex-direction: column; gap: var(--space-2); }
.site-footer__col h4 {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--ink-900);
  margin: 0 0 var(--space-1);
  letter-spacing: 0.02em;
}
.site-footer__col a {
  color: var(--ink-600); font-size: var(--text-sm); text-decoration: none;
  line-height: 1.6;
}
.site-footer__col a:hover { color: var(--accent); }
.site-footer__note {
  color: var(--ink-500); font-size: var(--text-xs); margin-top: var(--space-1);
}
/* Legacy single-row nav kept so any historical footer still renders. */
.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); }
@media (max-width: 760px) {
  .site-footer__inner { grid-template-columns: 1fr; }
  .site-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .site-footer__cols { grid-template-columns: 1fr; }
}

/* ── 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[hidden] { display: none; }
.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 (proof/preview action in the 6th-turn AI bubble) ──
   If a real URL is configured for that demo example, the click opens it;
   otherwise it routes to /chat. */
.demo-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  margin-left: 4px;
  background-color: var(--emphasis-bg);
  color: var(--emphasis-fg);
  border: 1px solid var(--emphasis-glow);
  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: transform var(--duration-base) var(--ease-standard);
  position: relative;
}
.demo-live-pill:hover {
  background-color: var(--emphasis-solid);
  color: var(--emphasis-on-solid);
  box-shadow: 0 1px 8px var(--emphasis-glow);
  transform: translateY(-1px);
}
.demo-live-pill:active { transform: none; }
.demo-live-pill__url { font-family: inherit; }

/* Tooltip flashed when demo-live-pill routes into /chat. */
.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);
}

[data-theme="dark"] .site-header .btn--accent,
[data-theme="dark"] .nav__drawer .btn--accent,
[data-theme="dark"] .hero__cta .btn--accent,
[data-theme="dark"] .closer-pricing .btn--accent,
[data-theme="dark"] .final__actions .btn--accent {
  background-color: var(--emphasis-solid);
  background-image: none;
  color: var(--emphasis-on-solid);
  box-shadow: 0 4px 16px var(--emphasis-glow);
}
[data-theme="dark"] .site-header .btn--accent:hover,
[data-theme="dark"] .nav__drawer .btn--accent:hover,
[data-theme="dark"] .hero__cta .btn--accent:hover,
[data-theme="dark"] .closer-pricing .btn--accent:hover,
[data-theme="dark"] .final__actions .btn--accent:hover {
  background-color: var(--emphasis-solid-hover);
  color: var(--emphasis-on-solid);
  box-shadow: 0 12px 32px var(--emphasis-glow);
}
[data-theme-transitioning="enter"] .site-header .btn--accent,
[data-theme-transitioning="enter"] .nav__drawer .btn--accent,
[data-theme-transitioning="enter"] .hero__cta .btn--accent,
[data-theme-transitioning="enter"] .closer-pricing .btn--accent,
[data-theme-transitioning="enter"] .final__actions .btn--accent,
[data-theme-transitioning="enter"] .theme-toggle__state,
[data-theme-transitioning="enter"] .drawer-control__option.is-active {
  transition:
    background-color 90s ease-in-out,
    color 90s ease-in-out,
    border-color 90s ease-in-out,
    box-shadow 90s ease-in-out,
    transform var(--duration-base) var(--ease-standard);
}
[data-theme-transitioning="enter"] .demo__send,
[data-theme-transitioning="enter"] .demo-live-pill,
[data-theme-transitioning="enter"] .demo__msg--ai .demo__avatar,
[data-theme-transitioning="enter"] .demo__msg--user .demo__avatar,
[data-theme-transitioning="enter"] .demo__msg--user .demo__bubble,
[data-theme-transitioning="enter"] .demo__bubble .demo__url {
  transition:
    background-color 90s ease-in-out,
    color 90s ease-in-out,
    border-color 90s ease-in-out,
    box-shadow 90s ease-in-out,
    transform var(--duration-base) var(--ease-standard);
}
[data-theme-resetting="gold"] .site-header .btn--accent,
[data-theme-resetting="gold"] .nav__drawer .btn--accent,
[data-theme-resetting="gold"] .hero__cta .btn--accent,
[data-theme-resetting="gold"] .closer-pricing .btn--accent,
[data-theme-resetting="gold"] .final__actions .btn--accent,
[data-theme-resetting="gold"] .drawer-control__option.is-active,
[data-theme-resetting="gold"] .demo__send,
[data-theme-resetting="gold"] .demo-live-pill,
[data-theme-resetting="gold"] .demo__msg--ai .demo__avatar,
[data-theme-resetting="gold"] .demo__msg--user .demo__avatar,
[data-theme-resetting="gold"] .demo__msg--user .demo__bubble,
[data-theme-resetting="gold"] .demo__bubble .demo__url {
  transition: none !important;
}
[data-theme-transitioning="exit"] .site-header .btn--accent,
[data-theme-transitioning="exit"] .nav__drawer .btn--accent,
[data-theme-transitioning="exit"] .hero__cta .btn--accent,
[data-theme-transitioning="exit"] .closer-pricing .btn--accent,
[data-theme-transitioning="exit"] .final__actions .btn--accent,
[data-theme-transitioning="exit"] .drawer-control__option.is-active,
[data-theme-transitioning="exit"] .demo__send,
[data-theme-transitioning="exit"] .demo-live-pill,
[data-theme-transitioning="exit"] .demo__msg--ai .demo__avatar,
[data-theme-transitioning="exit"] .demo__msg--user .demo__avatar,
[data-theme-transitioning="exit"] .demo__msg--user .demo__bubble,
[data-theme-transitioning="exit"] .demo__bubble .demo__url {
  transition:
    background-color 2.5s ease-in-out,
    color 2.5s ease-in-out,
    border-color 2.5s ease-in-out,
    box-shadow 2.5s ease-in-out,
    transform var(--duration-base) var(--ease-standard);
}
@media (prefers-reduced-motion: reduce) {
  [data-theme-transitioning="enter"] .site-header .btn--accent,
  [data-theme-transitioning="enter"] .nav__drawer .btn--accent,
  [data-theme-transitioning="enter"] .hero__cta .btn--accent,
  [data-theme-transitioning="enter"] .closer-pricing .btn--accent,
  [data-theme-transitioning="enter"] .final__actions .btn--accent,
  [data-theme-transitioning="enter"] .drawer-control__option.is-active { transition: none !important; }
}

/* ── 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;
}

/* "How free works" steps inside the closer (replaced the inclusions checklist 2026-06-12;
   mirrors the /pricing how-free section so the hero "See how free works" CTA lands on it). */
.closer-pricing__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
  text-align: left;
  margin: var(--space-6) 0 var(--space-3);
}
.closer-pricing__step {
  background: var(--surface);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-1);
  padding: var(--space-5);
}
.closer-pricing__num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-weight: 700;
  margin-bottom: var(--space-3);
}
.closer-pricing__step h3 {
  font-size: var(--text-lg);
  margin: 0 0 var(--space-2);
}
.closer-pricing__step p {
  font-size: var(--text-sm);
  color: var(--ink-600);
  line-height: var(--leading-normal);
  margin: 0;
}
.closer-pricing__ladder {
  width: 100%;
  margin-top: var(--space-3);
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.closer-pricing__ladder td {
  padding: var(--space-2) 0;
  border-top: 1px solid var(--ink-100);
}
.closer-pricing__ladder td:last-child { text-align: right; }
.closer-pricing__ladder tr:first-child td {
  border-top: 0;
  color: var(--ink-500);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
@media (max-width: 860px) {
  .closer-pricing__steps {
    grid-template-columns: 1fr;
    gap: var(--space-4);
    margin: var(--space-5) 0 var(--space-3);
  }
  .closer-pricing__step { padding: var(--space-4); }
  .closer-pricing__num { margin-bottom: var(--space-2); }
}

/* Desktop rhythm pass: keep the page editorial, but avoid stacked section
   padding creating empty bands between dense product-proof sections. */
@media (min-width: 721px) {
  main > section { padding: var(--space-8) 0; }
  main > section[id] { scroll-margin-top: 76px; }
  main > section:first-of-type { padding-top: var(--space-6); }
  .hero { padding: var(--space-6) 0; }
  .process__inner { padding: 0; }
  .process__heading,
  .section-heading,
  .compare__heading,
  .stats__heading,
  .faq__heading {
    margin-bottom: var(--space-6);
  }
  .for,
  .who,
  .stats,
  .metrics {
    padding-bottom: var(--space-6);
  }
  .closer-pricing__inner { padding: var(--space-7) var(--space-5); }
  .final { padding: var(--space-7) 0; }
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: var(--space-7); }
  .hero__copy { max-width: none; }
  .stats__grid,
  .metrics__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  main > section[id] { scroll-margin-top: 72px; }
  main {
    display: flex !important;
    flex-direction: column !important;
  }
  main > section { order: 10 !important; }
  main > section:first-of-type { order: 1 !important; }
  #compare { order: 2 !important; }
  #process { order: 3 !important; }
  #for,
  .who { order: 4 !important; }
  .stats,
  .metrics { order: 5 !important; }
  #pricing { order: 6 !important; }
  #faq { order: 7 !important; }
  .site-header__inner {
    position: relative;
    min-height: 58px;
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }
  .brand-mark__tagline { display: none; }
  .nav__cta-desktop { display: none; }
  .nav__hamburger {
    display: flex;
    position: absolute;
    right: var(--space-5);
    top: 50%;
    transform: translateY(-50%);
  }
  .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__links { display: none; }

  .hero {
    align-items: stretch;
    gap: var(--space-5);
  }
  .hero__copy { max-width: none; }
  .hero__eyebrow { margin-bottom: var(--space-2); }
  .hero__h1 { font-size: 42px; line-height: 1.02; margin-bottom: var(--space-3); }
  .hero__lede { font-size: var(--text-lg); line-height: 1.15; margin-bottom: var(--space-3); }
  .hero__sub { display: none; }
  .hero__cta {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .hero__cta .btn--ghost { display: none; }
  .hero__cta .btn {
    justify-content: center;
    padding: 13px 14px;
    font-size: var(--text-base);
  }
  .hero__demo {
    min-height: 0;
    max-height: 344px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
  }
  .demo__header { padding: 12px 14px; }
  .demo__messages {
    flex: 0 1 auto;
    min-height: 168px;
    max-height: 204px;
  }
  .process__inner { padding: 0; }
  .process__heading { margin-bottom: var(--space-4); }
  .process__heading p { display: none; }
  .process__steps { grid-template-columns: 1fr; gap: var(--space-3); }
  .step {
    padding: var(--space-4);
    gap: var(--space-2);
    box-shadow: var(--shadow-0);
  }
  .step__icon { width: 36px; height: 36px; }
  .step__icon svg { width: 18px; height: 18px; }
  .step__num { top: var(--space-4); right: var(--space-4); font-size: var(--text-xl); }
  .step h3 { margin: 0; font-size: var(--text-lg); }
  .step p {
    font-size: var(--text-sm);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .step__time { margin-top: 0; }
  .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; }
  .compare__wrap,
  .compare__table-wrap {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    margin-inline: calc(var(--space-5) * -1);
    padding: 0 var(--space-5) 12px;
    background: transparent;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--emphasis-solid) 62%, var(--ink-400)) transparent;
  }
  .compare__wrap::-webkit-scrollbar,
  .compare__table-wrap::-webkit-scrollbar { height: 8px; }
  .compare__wrap::-webkit-scrollbar-track,
  .compare__table-wrap::-webkit-scrollbar-track {
    background: color-mix(in srgb, var(--ink-100) 56%, transparent);
    border-radius: 999px;
  }
  .compare__wrap::-webkit-scrollbar-thumb,
  .compare__table-wrap::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--emphasis-solid) 68%, var(--ink-300));
    border: 2px solid var(--surface-2);
    border-radius: 999px;
  }
  .compare__table {
    min-width: 780px;
    width: 100%;
    table-layout: auto;
    font-size: 13px;
    background: var(--surface);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-1);
    overflow: hidden;
  }
  .compare__table th,
  .compare__table td {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.35;
    vertical-align: top;
  }
  .compare__table th { white-space: nowrap; }
  .compare__table th:not(:first-child),
  .compare__table td:not(:first-child) {
    min-width: 180px;
  }
  .compare__table th:first-child,
  .compare__table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    width: 152px;
    min-width: 152px;
    max-width: 152px;
    background: var(--surface);
    box-shadow: 1px 0 0 var(--ink-100), 14px 0 22px -24px rgba(26, 22, 18, 0.65);
  }
  .compare__table th:first-child {
    z-index: 3;
    background: var(--surface-2);
  }
  .compare__mobile,
  .compare__mobile-hint {
    display: none !important;
  }
  .compare__heading,
  .section-heading {
    margin-bottom: var(--space-4);
  }
  .compare__swipe-cue {
    display: none;
  }
  .compare__heading h2,
  .section-heading h2 {
    font-size: var(--text-3xl);
  }
  .compare__heading p,
  .section-heading p {
    font-size: var(--text-base);
    line-height: var(--leading-snug);
  }
  [data-theme="dark"] .compare__table th:first-child,
  [data-theme="dark"] .compare__table td:first-child {
    background: var(--surface);
    box-shadow: 1px 0 0 var(--ink-100), 14px 0 24px -22px rgba(0, 0, 0, 0.86);
  }
  [data-theme="dark"] .compare__table th:first-child {
    background: var(--surface-2);
  }
  .who__pills,
  .for__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-2);
  }
  .who__pills .pill,
  .for__grid span {
    justify-content: center;
    text-align: center;
    min-height: 36px;
    padding: 8px 10px;
    line-height: 1.15;
  }
  .who__bottom-line {
    margin: var(--space-4) auto 0;
    color: var(--ink-600);
    font-family: var(--font-serif);
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    text-align: 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) {
  .container { padding-left: var(--space-4); padding-right: var(--space-4); }
  main > section { padding: var(--space-6) 0; }
  main > section:first-of-type { padding-top: var(--space-4); }
  .hero { gap: var(--space-4); padding: var(--space-4) 0 var(--space-5); }
  .hero__h1 { font-size: 34px; line-height: 1.03; }
  .hero__lede { font-size: 19px; }
  .hero__copy,
  .hero__sub { max-width: 100%; }
  .hero__demo { min-height: 0; max-height: 328px; }
  .demo__messages {
    flex: 0 1 auto;
    min-height: 164px;
    max-height: 196px;
    overflow: hidden;
    padding: var(--space-3);
    gap: var(--space-2);
    scroll-behavior: auto;
    scrollbar-width: none;
  }
  .demo__messages::-webkit-scrollbar { display: none; }
  .demo__msg.is-archived { display: none; }
  .demo__avatar {
    width: 28px;
    height: 28px;
    font-size: 10px;
  }
  .demo__bubble {
    max-width: 86%;
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .demo__bubble .demo-live-pill {
    display: inline-flex;
    margin-top: 4px;
    margin-left: 0;
  }
  .demo__input-row { padding: var(--space-2) var(--space-3) var(--space-3); }
  .demo__input { padding: 10px 12px; }
  .demo__send { padding: 0 var(--space-3); }
  .who,
  .for { padding-top: var(--space-5); padding-bottom: var(--space-7); }
  .stats,
  .metrics { padding-bottom: var(--space-7); }
  .who__pills { max-height: none; overflow: visible; }
  .compare__wrap,
  .compare__table-wrap {
    margin-inline: calc(var(--space-4) * -1);
    padding-inline: var(--space-4);
  }
  .stats__grid,
  .metrics__grid { gap: var(--space-3); }
  .stat,
  .metric { padding: var(--space-5) var(--space-3); }
  .stat__value { font-size: var(--text-3xl); }
  .metric strong { 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;
  }
  .cookie-banner {
    padding: var(--space-3);
    max-height: 28vh;
    overflow: auto;
  }
  .cookie-banner h3 { font-size: var(--text-lg); }
  .cookie-banner p { font-size: var(--text-sm); line-height: var(--leading-snug); }
  .cookie-banner .btn { padding: 10px 12px; font-size: var(--text-sm); }
  .cookie-banner__actions {
    flex-direction: column;
  }
  .cookie-banner__actions .btn {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 360px) {
  .hero__cta {
    grid-template-columns: 1fr;
  }
  .hero__cta .btn {
    width: 100%;
  }
}
