/* ==========================================================================
   Cortexia for E-commerce -- Vertical Landing Page
   Apple-inspired restyle: clean light surfaces, generous whitespace,
   system fonts, confident typography, subtle motion.
   Matched to cortexia_main.html and cortexia_automations.html.
   ========================================================================== */

/* ---------- TOKENS ---------- */
:root {
  --surface-primary: #ffffff;
  --surface-secondary: #f5f5f7;
  --surface-dark: #1d1d1f;
  --surface-dark-alt: #2d2d2f;

  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;
  --text-inverse: #f5f5f7;

  --accent: #0071e3;
  --accent-hover: #0077ED;
  --accent-subtle: rgba(0, 113, 227, 0.08);

  --border-light: #d2d2d7;
  --border-faint: rgba(0, 0, 0, 0.04);

  --status-good: #34c759;
  --status-warn: #ff9f0a;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.08);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.10);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-pill: 980px;

  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-apple: cubic-bezier(0.4, 0, 0, 1);

  --dur-fast: 200ms;
  --dur-normal: 400ms;
  --dur-slow: 700ms;

  --wrap: 1060px;
  --gut: clamp(1.25rem, 4vw, 3rem);
  --section-pad: clamp(80px, 12vw, 160px);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-system);
  background: var(--surface-primary);
  color: var(--text-primary);
  line-height: 1.58;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: 4px solid rgba(0, 113, 227, 0.4); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--accent); color: var(--text-inverse); padding: 0.6rem 1.2rem;
  border-radius: var(--radius-pill); font-weight: 600; z-index: 200; transition: top 0.2s var(--ease-out-quart);
}
.skip:focus { top: 12px; }

/* ---------- KEYFRAME ANIMATIONS ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes blurIn {
  from { opacity: 0; filter: blur(4px); }
  to { opacity: 1; filter: blur(0); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes staggerFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes parallaxFloat {
  0% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
@keyframes heroReveal {
  from { opacity: 0; transform: scale(1.04) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); }
  50% { box-shadow: 0 0 20px 4px rgba(0, 113, 227, 0.12); }
}
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes shimmer {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}
@keyframes breathe {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
@keyframes pulsedot {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}
@keyframes chatpop { to { opacity: 1; transform: none; } }
@keyframes typedot {
  0%, 60%, 100% { opacity: 0.3; transform: scale(1); }
  30% { opacity: 1; transform: scale(1.25); }
}
@keyframes nodeFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.02); }
}
@keyframes liftCard {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes revealLine {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- ANIMATION UTILITY CLASSES ---------- */
.anim-fade-up { animation: fadeInUp var(--dur-slow) var(--ease-out-expo) both; }
.anim-scale-in { animation: scaleIn var(--dur-slow) var(--ease-out-expo) both; }
.anim-blur-in { animation: blurIn var(--dur-slow) var(--ease-apple) both; }
.anim-slide-left { animation: slideInLeft var(--dur-normal) var(--ease-out-expo) both; }
.anim-slide-right { animation: slideInRight var(--dur-normal) var(--ease-out-expo) both; }
.anim-stagger { animation: staggerFade var(--dur-normal) var(--ease-out-quart) both; }
.anim-hero { animation: heroReveal 1s var(--ease-apple) both; }
.anim-glow { animation: pulseGlow 3s var(--ease-out-quart) infinite; }
.anim-gradient { background-size: 200% 200%; animation: gradientShift 6s ease infinite; }
.anim-breathe { animation: breathe 3s ease-in-out infinite; }
.anim-float { animation: parallaxFloat 4s var(--ease-out-quart) infinite; }
.anim-lift { animation: liftCard var(--dur-slow) var(--ease-out-expo) both; }

/* ---------- SCROLL REVEAL ---------- */
.reveal {
  opacity: 0; transform: translateY(28px) scale(0.97);
  filter: blur(3px);
  transition: opacity 0.8s var(--ease-apple), transform 0.8s var(--ease-apple), filter 0.8s var(--ease-apple);
}
.reveal.in { opacity: 1; transform: none; filter: blur(0); }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }
.reveal[data-delay="4"] { transition-delay: 0.4s; }
.reveal[data-delay="5"] { transition-delay: 0.5s; }
.reveal[data-delay="6"] { transition-delay: 0.6s; }
.reveal[data-delay="7"] { transition-delay: 0.7s; }
.reveal[data-delay="8"] { transition-delay: 0.8s; }

/* ---------- SECTION ANIMATIONS ---------- */
.hero-inner .hero-wordmark { animation: heroReveal 1s var(--ease-apple) 0.15s both; }
.hero-inner .hero-lead { animation: fadeInUp 0.8s var(--ease-apple) 0.35s both; }
.hero-inner .hero-blurb { animation: fadeInUp 0.8s var(--ease-apple) 0.5s both; }
.hero-inner .hero-cta { animation: fadeInUp 0.8s var(--ease-apple) 0.65s both; }

/* ---------- SHARED TYPE ---------- */
.section-kicker {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-weight: 500;
}
.section-kicker::before {
  content: ""; width: 26px; height: 1px; background: var(--accent);
  opacity: 0.5;
}
.section-head { max-width: 62ch; margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.section-head h2, h2 {
  font-family: var(--font-system); font-weight: 700; letter-spacing: -0.025em;
  line-height: 1.08; font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem);
  color: var(--text-primary); text-wrap: balance;
}
h3 { font-family: var(--font-system); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15; }
.lead { color: var(--text-secondary); font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); max-width: 56ch; margin-top: 0.9rem; line-height: 1.65; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 50px; padding: 0.85rem 1.7rem; border-radius: var(--radius-pill);
  font-weight: 500; font-size: 1rem; letter-spacing: -0.005em;
  transition: transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart), background var(--dur-fast) var(--ease-out-quart);
}
.btn-primary {
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { transform: scale(1.02); box-shadow: var(--shadow-md); background: var(--accent-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-ghost {
  background: transparent; color: var(--text-primary); border: 1px solid var(--border-light);
}
.btn-ghost:hover { transform: scale(1.02); border-color: var(--accent); color: var(--accent); box-shadow: var(--shadow-sm); }
.btn-ghost:active { transform: scale(0.98); }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border-faint);
  transition: background var(--dur-normal) var(--ease-out-quart), box-shadow var(--dur-normal) var(--ease-out-quart);
}
.nav.condensed {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-light);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; gap: 0.6rem; font-weight: 700; font-size: 1.15rem; letter-spacing: -0.02em; color: var(--text-primary); }
.brand-mark { width: 28px; height: 28px; color: var(--accent); flex: none; }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links > a { color: var(--text-secondary); font-size: 0.87rem; font-weight: 400; transition: color var(--dur-fast) var(--ease-out-quart); }
.nav-links > a:hover { color: var(--text-primary); }
.nav-cta {
  color: var(--text-inverse) !important; background: var(--accent);
  padding: 0.5rem 1.1rem; border-radius: var(--radius-pill); font-weight: 500; font-size: 0.87rem;
  min-height: 36px; display: inline-flex; align-items: center;
  transition: background var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart);
}
.nav-cta:hover { background: var(--accent-hover); transform: scale(1.02); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--text-primary); border-radius: var(--radius-sm); border: 1px solid var(--border-light); }

/* ---------- HERO ---------- */
/* Near-full-viewport hero: min-height fills the view minus the sticky nav (53px)
   and a deliberate ~35px sliver, so only a hint of the white section below shows
   on first load. Flex column + justify-content:center holds the wordmark stack in
   the vertical middle band, leaving generous black above (where the wave now sits,
   pushed down in cortexia-hero-bg.js) and matching breathing room below. */
.hero {
  position: relative;
  min-height: calc(100svh - 88px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: clamp(6rem, 16vh, 11.5rem);
  padding-bottom: clamp(2.5rem, 5vh, 4.25rem);
  background: var(--surface-dark); color: var(--text-inverse); overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse 80% 60% at 70% 30%, rgba(0,113,227,0.12), transparent 70%);
  pointer-events: none;
}
/* Three.js particle-wave background. Sits above the ::before gradient fallback
   and behind the hero copy (.hero-inner, z-index 1). pointer-events:none so it
   never blocks clicks / scroll / selection on the hero content. Opaque deep-navy
   backdrop reproduces Jacob's approved look; hidden by JS if WebGL is absent,
   letting the ::before gradient + --surface-dark show as a clean fallback. */
.cx-hero-canvas {
  position: absolute; inset: 0; z-index: 0;
  display: block; width: 100%; height: 100%;
  pointer-events: none; background: #01020a;
}
.hero-inner { max-width: 54ch; position: relative; z-index: 1; }

/* Centred wordmark composition (Jacob's reference: symmetrical, top-central).
   The whole block is centred as one column so the wordmark, subheading,
   paragraph, CTAs and chips all share the same optical centre line. */
.hero-inner--centered {
  max-width: 62ch;
  margin-inline: auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* CORTEXIA wordmark: thin, wide-tracked caps in near-white; the X carries the
   warm signal accent. Trailing letter-spacing pushes the line right, so a
   matching text-indent nudges it back to true optical centre. A dark halo keeps
   it legible where the animated wave crosses brightest behind it. */
.hero-wordmark {
  margin: 0;
  font-family: var(--font-system);
  font-weight: 250;
  line-height: 0.98;
  letter-spacing: 0.30em;
  text-indent: 0.30em;
  font-size: clamp(2.9rem, 1.4rem + 7.4vw, 7rem);
  color: var(--hero-wordmark-ink);
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.55), 0 0 46px rgba(0, 113, 227, 0.22);
}
.hero-wordmark .hw-x {
  font-weight: 320;
  color: var(--hero-x-accent);
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.5), 0 0 30px var(--hero-x-glow);
}
.hero-lead {
  margin: 2.9rem 0 0; max-width: 26ch;
  font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.15rem);
  font-weight: 350; letter-spacing: -0.015em; line-height: 1.15;
  color: var(--text-inverse);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.5);
}
.hero-blurb {
  margin: 2rem 0 0; max-width: 54ch;
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.18rem);
  line-height: 1.7; color: rgba(245, 245, 247, 0.72);
  text-wrap: balance;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2.9rem; }
.hero-inner--centered .hero-cta { justify-content: center; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.2); color: var(--text-inverse); }
.hero .btn-ghost:hover { border-color: rgba(255,255,255,0.5); color: var(--text-inverse); background: rgba(255,255,255,0.06); }

/* ---------- PROOF BAR ---------- */
.proof-bar {
  background: var(--surface-secondary); padding-block: var(--section-pad);
  border-bottom: 1px solid var(--border-faint);
}
.proof-kicker {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  color: var(--status-good); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 2.5rem;
}
.proof-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--status-good);
  animation: pulsedot 2.5s ease-in-out infinite;
}
.proof-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
}
.proof-stat + .proof-stat {
  border-left: 1px solid var(--border-light); padding-left: 2rem;
}
.proof-number {
  font-family: var(--font-mono); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  color: var(--accent); line-height: 1; margin-bottom: 0.5rem;
}
.proof-stat.in .proof-number { animation: countUp 0.6s var(--ease-out-expo) both; }
.proof-label { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.4; margin-bottom: 0.25rem; }
.proof-brand {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ---------- CASE STUDIES ---------- */
.cases { padding-block: var(--section-pad); background: var(--surface-primary); }
.cases-header { margin-bottom: 4rem; }
.case {
  padding-block: 3rem; border-top: 1px solid var(--border-light);
  transition: background var(--dur-fast) var(--ease-out-quart);
}
.case:last-child { border-bottom: 1px solid var(--border-light); }
.case:hover { background: var(--surface-secondary); }
.case-brand {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}
.case-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start;
}
.case-state-label {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.75rem;
}
.case-before .case-state-label { color: var(--text-muted); }
.case-after .case-state-label { color: var(--status-good); }
.case-text {
  font-size: 1rem; color: var(--text-secondary); line-height: 1.7; max-width: 48ch;
}
.case-stat {
  margin-top: 1.5rem; display: flex; align-items: baseline; gap: 0.75rem;
}
.case-stat-number {
  font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 700;
  color: var(--accent); line-height: 1;
}
.case-stat-label { font-size: 0.9rem; color: var(--text-secondary); }

/* ---------- CAPABILITIES ---------- */
.capabilities { padding-block: var(--section-pad); background: var(--surface-secondary); }
.cap-header { margin-bottom: 4rem; }
.vertical {
  padding-block: 3rem; border-top: 1px solid var(--border-light);
}
.vertical:last-child { border-bottom: 1px solid var(--border-light); }
.vertical-layout {
  display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start;
}
.vertical-name { font-size: clamp(1.3rem, 2.5vw, 1.8rem); margin-bottom: 0.5rem; color: var(--text-primary); }
.vertical-desc { font-size: 0.9rem; color: var(--text-muted); max-width: 28ch; line-height: 1.6; }
.capability-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.capability-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 1rem 1.25rem; background: var(--surface-primary);
  border-radius: var(--radius-md); border: 1px solid var(--border-faint);
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.5;
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart);
}
.capability-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-light); }
.cap-icon {
  flex-shrink: 0; width: 18px; height: 18px; margin-top: 2px; color: var(--accent);
}

/* ---------- CHAT DEMO ---------- */
.demo { padding-block: var(--section-pad); background: var(--surface-primary); }
.demo-stage { display: grid; grid-template-columns: 360px 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.phone-pin { position: sticky; top: 96px; }
.phone-frame {
  position: relative; border-radius: 40px; overflow: hidden;
  background: var(--surface-dark); aspect-ratio: 390/800;
  box-shadow: 0 0 0 10px #0a0a0a, 0 0 0 12px #3a3a3c, var(--shadow-xl);
  animation: scaleIn var(--dur-slow) var(--ease-apple) both;
}
.phone-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 150px; height: 26px; background: #0a0a0a;
  border-radius: 0 0 16px 16px; z-index: 40;
}
.phone-statusbar {
  height: 44px; display: flex; align-items: flex-end; justify-content: space-between;
  padding: 0 22px 5px; font-size: 13px; font-weight: 600; color: var(--text-inverse); z-index: 30; flex-shrink: 0;
}
.phone-header {
  background: var(--surface-dark-alt); display: flex; align-items: center; gap: 10px;
  padding: 6px 12px; box-shadow: 0 1px 0 rgba(0,0,0,0.3); z-index: 20;
}
.phone-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; color: var(--text-inverse);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
}
.phone-cname { font-size: 15px; font-weight: 600; color: var(--text-inverse); }
.phone-cstatus { font-size: 12px; color: var(--accent); margin-top: 1px; }
.phone-chat {
  flex: 1; overflow-y: auto; padding: 12px 10px 16px; position: relative;
  background-color: #111113;
  background-image:
    radial-gradient(circle at 20% 15%, rgba(0,113,227,0.06), transparent 25%),
    radial-gradient(circle at 80% 40%, rgba(0,113,227,0.04), transparent 25%);
  scrollbar-width: none;
}
.phone-chat::-webkit-scrollbar { width: 0; }
.phone-inner { display: flex; flex-direction: column; height: 100%; }
.chat-row { display: flex; margin: 2px 0; opacity: 0; transform: translateY(8px) scale(0.96); animation: chatpop 0.28s var(--ease-out-expo) forwards; }
.chat-row.out { justify-content: flex-end; }
.chat-row.in { justify-content: flex-start; }
.bubble {
  max-width: 82%; padding: 7px 10px 6px; border-radius: 14px;
  font-size: 14.5px; line-height: 1.42; position: relative; word-wrap: break-word; white-space: normal;
}
.chat-row.in .bubble { background: #1c1c1e; color: var(--text-inverse); border-bottom-left-radius: 5px; }
.chat-row.out .bubble { background: var(--accent); color: var(--text-inverse); border-bottom-right-radius: 5px; }
.bubble b { font-weight: 700; }
.chat-row.in .bubble i { color: rgba(245,245,247,0.6); font-style: italic; }
.bubble-time { font-size: 11px; color: rgba(142,142,147,0.8); float: right; margin: 6px 0 -2px 10px; position: relative; top: 3px; }
.chat-row.out .bubble-time { color: rgba(245,245,247,0.7); }
.chat-daychip {
  align-self: center; margin: 2px auto 12px;
  background: rgba(28,28,30,0.85); color: rgba(245,245,247,0.7);
  font-size: 12px; padding: 4px 12px; border-radius: 12px; width: max-content; display: block; text-align: center;
}
.chat-typing { display: flex; gap: 4px; padding: 10px 14px; }
.chat-typing span {
  width: 6px; height: 6px; border-radius: 50%; background: rgba(142,142,147,0.6);
  animation: typedot 1.4s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
.demo-annot { display: flex; flex-direction: column; gap: 1.5rem; }
.beat { display: flex; gap: 1rem; align-items: flex-start; }
.beat .idx {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent);
  width: 32px; flex: none; padding-top: 0.15rem; font-weight: 500; opacity: 0.7;
}
.beat .bt { font-weight: 600; font-size: 1.05rem; margin-bottom: 0.35rem; color: var(--text-primary); }
.beat .bd { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.6; max-width: 46ch; }
.demo-replay {
  display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.2rem;
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted);
  padding: 0.6rem 1.15rem; border: 1px solid var(--border-light); border-radius: var(--radius-pill);
  background: var(--surface-primary);
  transition: color var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart);
  cursor: pointer;
}
.demo-replay:hover { color: var(--accent); border-color: var(--accent); transform: scale(1.02); }

/* ---------- INTEGRATIONS ---------- */
.integrations { padding-block: var(--section-pad); background: var(--surface-secondary); }
.integrations-header { margin-bottom: 3rem; }
.integ-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.75rem;
}
.integ-item {
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  padding: 1.25rem 1rem;
  background: var(--surface-primary); border: 1px solid var(--border-faint); border-radius: var(--radius-md);
  font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-secondary);
  box-shadow: var(--shadow-sm); position: relative;
  transition: transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart);
}
.integ-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-light); }
.integ-logo {
  width: 28px; height: 28px; flex-shrink: 0;
  color: var(--text-primary); opacity: 0.7;
  transition: opacity var(--dur-fast) var(--ease-out-quart), transform var(--dur-fast) var(--ease-out-quart);
}
.integ-item:hover .integ-logo { opacity: 1; transform: scale(1.08); }
.integ-name { font-weight: 500; letter-spacing: 0.02em; text-align: center; line-height: 1.2; }
.integ-dot {
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%; background: var(--border-light); flex-shrink: 0;
}
.integ-live .integ-dot { background: var(--status-good); animation: breathe 3s ease-in-out infinite; }

/* ---------- HOW IT WORKS (Timeline Infographic) ---------- */
.how-it-works { padding-block: var(--section-pad); background: var(--surface-primary); }
.hiw-header { margin-bottom: 4rem; }
.hiw-timeline {
  display: flex; align-items: flex-start; gap: 0; position: relative;
}
.hiw-tl-step {
  flex: 1; display: flex; flex-direction: column; align-items: center; text-align: center;
  position: relative; padding-top: 2rem;
}
.hiw-tl-icon-wrap {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--surface-secondary); border: 2px solid var(--border-light);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.6s var(--ease-apple), box-shadow 0.6s var(--ease-apple), transform 0.4s var(--ease-out-quart);
}
.hiw-tl-step.hiw-tl-active .hiw-tl-icon-wrap {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12), var(--shadow-md);
  transform: scale(1.06);
}
.hiw-tl-icon {
  width: 26px; height: 26px; color: var(--text-muted);
  transition: color 0.6s var(--ease-apple);
}
.hiw-tl-step.hiw-tl-active .hiw-tl-icon { color: var(--accent); }
.hiw-tl-connector {
  position: absolute; top: calc(2rem + 32px); left: calc(50% + 32px); right: 0;
  height: 2px; z-index: 1; overflow: hidden;
}
.hiw-tl-step:last-child .hiw-tl-connector { display: none; }
.hiw-tl-connector-bg {
  position: absolute; inset: 0; background: var(--border-light);
}
.hiw-tl-connector-fill {
  position: absolute; top: 0; left: 0; bottom: 0; width: 0;
  background: var(--accent);
  transition: width 0.8s var(--ease-out-expo);
}
.hiw-tl-step.hiw-tl-active .hiw-tl-connector-fill { width: 100%; }
.hiw-tl-connector-dot {
  position: absolute; right: -3px; top: -2px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  opacity: 0; transform: scale(0);
  transition: opacity 0.4s var(--ease-out-quart), transform 0.4s var(--ease-out-quart);
}
.hiw-tl-step.hiw-tl-active .hiw-tl-connector-dot { opacity: 1; transform: scale(1); }
.hiw-tl-content {
  margin-top: 1.5rem; padding-inline: 0.75rem;
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.6s var(--ease-apple) 0.2s, transform 0.6s var(--ease-apple) 0.2s;
}
.hiw-tl-step.hiw-tl-active .hiw-tl-content { opacity: 1; transform: none; }
.hiw-tl-num {
  font-family: var(--font-mono); font-size: 0.65rem; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem; font-weight: 500;
  opacity: 0.7;
}
.hiw-tl-step h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.hiw-tl-step p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; max-width: 28ch; margin-inline: auto; }
@keyframes hiwIconDraw {
  from { stroke-dashoffset: 60; }
  to { stroke-dashoffset: 0; }
}
.hiw-tl-step.hiw-tl-active .hiw-tl-icon path,
.hiw-tl-step.hiw-tl-active .hiw-tl-icon circle,
.hiw-tl-step.hiw-tl-active .hiw-tl-icon rect,
.hiw-tl-step.hiw-tl-active .hiw-tl-icon polyline {
  stroke-dasharray: 60;
  animation: hiwIconDraw 0.8s var(--ease-out-expo) forwards;
}
@media (max-width: 980px) {
  .hiw-timeline { flex-direction: column; align-items: stretch; gap: 0; }
  .hiw-tl-step { flex-direction: row; align-items: flex-start; text-align: left; padding-top: 0; padding-bottom: 2rem; }
  .hiw-tl-connector {
    position: absolute; top: calc(64px); left: 32px; right: auto;
    width: 2px; height: calc(100% - 64px);
  }
  .hiw-tl-connector-fill { width: 100% !important; height: 0; transition: height 0.8s var(--ease-out-expo); }
  .hiw-tl-step.hiw-tl-active .hiw-tl-connector-fill { height: 100%; width: 100%; }
  .hiw-tl-connector-dot { right: auto; bottom: -3px; top: auto; left: -2px; }
  .hiw-tl-content { margin-top: 0; margin-left: 1.25rem; padding-inline: 0; }
  .hiw-tl-step p { max-width: 48ch; margin-inline: 0; }
}
@media (max-width: 720px) {
  .hiw-timeline { flex-direction: column; }
  .hiw-tl-step { flex-direction: row; text-align: left; }
  .hiw-tl-icon-wrap { width: 52px; height: 52px; flex-shrink: 0; }
  .hiw-tl-connector { left: 26px; top: 52px; height: calc(100% - 52px); }
}

/* ---------- PRODUCTION LOG ---------- */
.production { padding-block: clamp(3rem, 6vw, 5rem); background: var(--surface-dark); color: var(--text-inverse); }
.production-header { margin-bottom: 2rem; }
.production .proof-kicker { color: var(--status-good); }
.production-list { display: flex; flex-direction: column; gap: 0.6rem; }
.production-entry {
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--surface-dark-alt); border-radius: var(--radius-md); border: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-mono); font-size: 0.85rem; line-height: 1.6;
  transition: transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);
}
.production-entry:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.production-status {
  font-size: 0.72rem; font-weight: 600; color: var(--status-good);
  text-transform: uppercase; letter-spacing: 0.06em; flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  background: rgba(52, 199, 89, 0.12); border-radius: var(--radius-sm);
}
.production-brand { color: var(--accent); font-weight: 500; flex-shrink: 0; min-width: 9ch; }
.production-brand-logo {
  height: 22px; width: auto; max-width: 100px; flex-shrink: 0;
  filter: brightness(0) invert(1); opacity: 0.85;
  transition: opacity var(--dur-fast) var(--ease-out-quart);
  object-fit: contain;
}
.production-entry:hover .production-brand-logo { opacity: 1; }
.production-result { color: rgba(245,245,247,0.7); font-family: var(--font-system); }
.production h2 {
  font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em;
  color: var(--text-inverse);
}

/* ---------- FAQ ---------- */
.faq { padding-block: var(--section-pad); background: var(--surface-secondary); }
.faq-header { margin-bottom: 3rem; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
.faq-item {
  padding: 2rem; background: var(--surface-primary);
  border: 1px solid var(--border-faint); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);
}
.faq-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.faq-q {
  font-weight: 600; font-size: 1.05rem;
  margin-bottom: 0.6rem; color: var(--text-primary); line-height: 1.3;
}
.faq-a { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65; max-width: 48ch; }

/* ---------- TRUST ---------- */
.trust { padding-block: clamp(4rem, 8vw, 7rem); border-bottom: 1px solid var(--border-faint); background: var(--surface-primary); }
.trust-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
  max-width: 1000px; margin-inline: auto;
}
.trust-item {
  padding: 2.5rem 2rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
  position: relative;
}
.trust-item + .trust-item::before {
  content: ""; position: absolute; left: 0; top: 20%; height: 60%;
  width: 1px; background: var(--border-light);
}
.trust-icon {
  width: 72px; height: 72px; color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-subtle); border-radius: 50%;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);
}
.trust-icon svg { width: 32px; height: 32px; }
.trust-item:hover .trust-icon { transform: scale(1.06); box-shadow: 0 0 0 8px rgba(0, 113, 227, 0.06); }
.trust-label {
  font-weight: 700; font-size: 1.2rem;
  color: var(--text-primary); letter-spacing: -0.015em;
  line-height: 1.2;
}
.trust-value { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; max-width: 30ch; }

/* ---------- COST COMPARISON ---------- */
.cost-compare { padding-block: var(--section-pad); background: var(--surface-primary); }
.cost-headline-stat {
  text-align: center; margin-bottom: 3.5rem;
}
.cost-headline-stat .stat-number {
  font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700;
  letter-spacing: -0.03em; line-height: 1.1; color: var(--accent);
}
.cost-headline-stat .stat-label {
  font-size: 1.05rem; color: var(--text-secondary); margin-top: 0.5rem;
}
.cost-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
  max-width: 900px; margin-inline: auto;
}
.cost-card {
  padding: 2rem; border-radius: var(--radius-xl);
  border: 1px solid var(--border-light); background: var(--surface-secondary);
  box-shadow: var(--shadow-md);
}
.cost-card-header {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 1.25rem;
}
.cost-card:not(.cost-cortexia-card) { opacity: 0.72; }
.cost-team-total {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem); font-weight: 700;
  letter-spacing: -0.02em; color: var(--text-muted);
  text-decoration: line-through; text-decoration-color: rgba(210,60,60,0.78);
  text-decoration-thickness: 4px;
}
.cost-team-per { font-size: 0.9rem; color: var(--text-muted); margin-top: 0.25rem; }
.cost-roles {
  margin-top: 1.5rem; display: flex; flex-direction: column; gap: 0.6rem;
  border-top: 1px solid var(--border-faint); padding-top: 1.25rem;
}
.cost-role {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 0.88rem; color: var(--text-secondary);
}
.cost-role-amount { font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.cost-cortexia-card {
  display: flex; flex-direction: column; justify-content: center;
  align-items: center; text-align: center;
  background: var(--surface-dark); border-color: transparent;
  padding: 2.5rem;
  box-shadow: 0 4px 36px rgba(0,113,227,0.22), 0 0 0 1px rgba(0,113,227,0.1);
  position: relative; overflow: hidden;
}
@keyframes cortexiaGlow {
  0%, 100% { box-shadow: 0 4px 36px rgba(0,113,227,0.22), 0 0 0 1px rgba(0,113,227,0.1); }
  50% { box-shadow: 0 4px 50px rgba(0,113,227,0.35), 0 0 0 2px rgba(0,113,227,0.2), 0 0 80px rgba(0,113,227,0.08); }
}
@keyframes cortexiaPop {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.cost-cortexia-card.cortexia-glow-active {
  animation: cortexiaGlow 3s var(--ease-out-quart) infinite, cortexiaPop 0.8s var(--ease-out-expo) both;
}
.cost-cortexia-card::before {
  content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(0, 113, 227, 0.06), transparent, rgba(0, 113, 227, 0.04), transparent);
  opacity: 0; transition: opacity 1s var(--ease-apple);
  pointer-events: none;
}
.cost-cortexia-card.cortexia-glow-active::before {
  opacity: 1;
  animation: cortexiaRotate 8s linear infinite;
}
@keyframes cortexiaRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cost-cortexia-card .cost-card-header { color: rgba(245,245,247,0.5); }
.cost-cortexia-price {
  font-size: clamp(2.6rem, 5vw, 3.4rem); font-weight: 700;
  letter-spacing: -0.02em; color: var(--accent);
}
.cost-cortexia-sub { font-size: 0.88rem; color: rgba(245,245,247,0.6); margin-top: 0.25rem; }
.cost-cortexia-ratio {
  margin-top: 1.5rem; padding: 0.7rem 1.5rem;
  background: rgba(0,113,227,0.2); border-radius: var(--radius-pill);
  font-size: 0.95rem; font-weight: 700; color: var(--accent);
  box-shadow: 0 0 20px rgba(0,113,227,0.1);
}
.cost-grid { position: relative; }
.cost-grid::after {
  content: "\2192"; position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.3rem; font-weight: 700; color: var(--accent);
  background: var(--surface-primary);
  width: 2.4rem; height: 2.4rem;
  display: grid; place-items: center;
  border-radius: 50%; border: 2px solid rgba(0,113,227,0.15);
  z-index: 2; pointer-events: none; line-height: 1;
}
.cost-fine-print {
  text-align: center; font-size: 0.75rem; color: var(--text-muted);
  max-width: 60ch; margin-inline: auto; margin-top: 2.5rem; line-height: 1.6;
}

/* ---------- FINAL CTA ---------- */
.final { padding-block: var(--section-pad); text-align: center; background: var(--surface-primary); }
.final .section-kicker { justify-content: center; }
.final .section-kicker::before { display: none; }
.final h2 { margin-bottom: 1rem; }
.final .lead { margin-inline: auto; margin-bottom: 2.5rem; }
.final-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; }

/* ---------- SCREENING FORM ---------- */
.form-section { padding-block: var(--section-pad); background: var(--surface-secondary); }
.form-shell { max-width: 36rem; margin-inline: auto; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-field { display: flex; flex-direction: column; gap: 0.3rem; }
.form-field--full { grid-column: 1 / -1; }
.form-label {
  font-size: 0.72rem; font-weight: 500; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.04em;
}
.form-input, .form-select, .form-textarea {
  background: var(--surface-primary); border: 1px solid var(--border-light); border-radius: var(--radius-md);
  padding: 0.75rem 1rem; font-size: 0.95rem; color: var(--text-primary);
  transition: border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);
  min-height: 44px;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' viewBox='0 0 12 12'%3E%3Cpath stroke='%236e6e73' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0.75rem center; padding-right: 2.5rem;
}
.form-select option { background: var(--surface-primary); color: var(--text-primary); }
.form-textarea { resize: vertical; min-height: 5rem; }
.form-submit { margin-top: 0.75rem; grid-column: 1 / -1; }
.form-note { grid-column: 1 / -1; font-size: 0.75rem; color: var(--text-muted); text-align: center; margin-top: 0.5rem; }

/* ---------- job 776: legal footer + form privacy text ---------- */
.foot-legal { position: relative; display: grid; gap: 0.35rem; margin-top: 1.25rem; padding-top: 1.25rem; }
.foot-legal::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); border-top: 1px solid var(--hairline); }
.foot-entity { color: var(--text-secondary); font-size: 0.75rem; line-height: 1.6; max-width: 75ch; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; font-size: 0.8rem; color: var(--text-secondary); }
.foot-links a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 0.4rem; color: var(--text-primary); text-decoration: underline; text-decoration-color: var(--border-light); text-underline-offset: 3px; transition: text-decoration-color var(--dur-fast) var(--ease-out-quart); }
.foot-links a:first-child { padding-left: 0; }
.foot-links a:hover { text-decoration-color: currentColor; }
.foot-sep { color: var(--text-secondary); }
.form-note.form-privacy { color: var(--text-secondary); font-size: 0.8rem; line-height: 1.6; max-width: 68ch; margin-inline: auto; }
.form-privacy a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 720px) {
  .foot-legal { text-align: center; justify-items: center; }
  .foot-links { justify-content: center; }
  .foot-links a:first-child { padding-left: 0.4rem; }
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border-faint); padding-block: 2rem;
  background: var(--surface-secondary);
}
.footer-in { display: flex; align-items: center; justify-content: space-between; }
.foot-line { color: var(--text-secondary); font-size: 0.87rem; }
.foot-small { color: var(--text-muted); font-size: 0.75rem; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.5rem; }
  .proof-stat:nth-child(3) { border-left: none; padding-left: 0; }
  .case-content { grid-template-columns: 1fr; gap: 1.5rem; }
  .vertical-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .capability-list { grid-template-columns: 1fr 1fr; }
  .demo-stage { grid-template-columns: 1fr; }
  .phone-pin { position: static; }
  .hiw-steps { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr 1fr 1fr; gap: 0; }
  .cost-grid { grid-template-columns: 1fr; max-width: 28rem; margin-inline: auto; }
  .cost-grid::after { content: "\2193"; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(20rem, 85vw);
    background: rgba(255,255,255,0.98); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid var(--border-light);
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 5rem var(--gut) 2rem; gap: 0.5rem;
    transform: translateX(100%); transition: transform var(--dur-normal) var(--ease-out-expo); z-index: 99;
  }
  .nav-links[data-open="true"] { transform: translateX(0); }
  .nav-links > a { font-size: 1rem; padding: 0.75rem 0; color: var(--text-primary); }
  .nav-cta { margin-top: 1rem; }
  .phone-frame { max-width: 340px; margin-inline: auto; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .production-entry { flex-direction: column; gap: 0.5rem; }
  .production-brand { min-width: auto; }
  .footer-in { flex-direction: column; gap: 1rem; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 0; }
  .trust-item { padding: 2rem 1rem; }
  .trust-item + .trust-item::before { left: 10%; top: 0; height: 1px; width: 80%; }
  .hiw-steps { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .hero-wordmark { letter-spacing: 0.20em; text-indent: 0.20em; font-size: clamp(2.5rem, 13vw, 3.4rem); }
  .hero-lead { font-size: clamp(1.3rem, 6vw, 1.6rem); }
  .hero-blurb { font-size: 1rem; }
  .proof-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .proof-stat + .proof-stat { border-left: none; padding-left: 0; border-top: 1px solid var(--border-light); padding-top: 1.5rem; }
  .proof-number { font-size: clamp(1.8rem, 5vw, 2.4rem); }
  .capability-list { grid-template-columns: 1fr; }
}

/* ---------- WORKFLOW PIPELINE MODULE ---------- */
.wf-pipeline {
  padding-block: var(--section-pad);
  background: var(--surface-secondary);
  border-bottom: 1px solid var(--border-faint);
  overflow: hidden;
}
.wf-pipeline-header { margin-bottom: 3.5rem; }
.wf-track {
  display: flex; gap: 0; align-items: stretch;
  position: relative; overflow-x: auto; overflow-y: visible;
  scrollbar-width: none; padding-bottom: 1rem;
}
.wf-track::-webkit-scrollbar { width: 0; height: 0; }
.wf-stage {
  flex: 1; min-width: 190px; position: relative;
  padding: 1.5rem 1.25rem; background: var(--surface-primary);
  border: 1px solid var(--border-faint); border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 0.75rem;
  box-shadow: var(--shadow-sm);
}
.wf-stage-num {
  font-family: var(--font-mono); font-size: 0.65rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em;
  opacity: 0.7;
}
.wf-stage-title {
  font-size: 0.88rem; font-weight: 600; color: var(--text-primary);
  letter-spacing: -0.01em; line-height: 1.2;
}
.wf-stage-body {
  flex: 1; display: flex; flex-direction: column; gap: 0.4rem;
  min-height: 110px; position: relative; overflow: hidden;
}
/* Connector arrows between stages */
.wf-connector {
  display: flex; align-items: center; justify-content: center;
  width: 32px; flex-shrink: 0; position: relative;
}
.wf-connector::before {
  content: ""; position: absolute; top: 50%; left: 0; right: 0;
  height: 2px; background: var(--border-light); transform: translateY(-50%);
}
.wf-connector-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); position: relative; z-index: 1;
  animation: wfPulseFlow 2.4s var(--ease-out-quart) infinite;
}

/* Stage 1: Field fill animation */
.wf-field-row {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.5rem; background: var(--surface-secondary);
  border-radius: var(--radius-sm); border: 1px solid var(--border-faint);
  font-size: 0.72rem; overflow: hidden;
}
.wf-field-label {
  font-family: var(--font-mono); color: var(--text-muted);
  font-size: 0.65rem; flex-shrink: 0; min-width: 3.5rem;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.wf-field-value {
  color: var(--text-primary); font-weight: 500; font-size: 0.75rem;
  white-space: nowrap; overflow: hidden;
  opacity: 0; animation: wfFieldAppear 0.6s var(--ease-out-expo) forwards;
}
.wf-field-row:nth-child(1) .wf-field-value { animation-delay: 0.8s; }
.wf-field-row:nth-child(2) .wf-field-value { animation-delay: 1.4s; }
.wf-field-row:nth-child(3) .wf-field-value { animation-delay: 2.0s; }
.wf-field-row:nth-child(4) .wf-field-value { animation-delay: 2.6s; }

/* Stage 2: Price swap */
.wf-price-display {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 0.4rem; padding: 0.5rem;
  flex: 1;
}
.wf-price-old {
  font-family: var(--font-mono); font-size: 1.2rem; font-weight: 700;
  color: var(--text-muted); position: relative;
}
.wf-price-old::after {
  content: ""; position: absolute; left: -4px; right: -4px;
  top: 50%; height: 2px; background: rgba(210, 60, 60, 0.7);
  transform: scaleX(0); transform-origin: left;
  animation: wfStrikethrough 0.4s var(--ease-out-expo) 1.5s forwards;
}
.wf-price-new {
  font-family: var(--font-mono); font-size: 1.4rem; font-weight: 700;
  color: var(--status-good); opacity: 0; transform: translateY(6px);
  animation: wfPriceReveal 0.5s var(--ease-out-expo) 2s forwards;
}
.wf-price-signal {
  font-size: 0.65rem; color: var(--text-muted); font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.04em;
  opacity: 0; animation: wfFieldAppear 0.4s var(--ease-out-expo) 1s forwards;
}

/* Stage 3: Inventory sync badges */
.wf-sync-channels {
  display: flex; flex-direction: column; gap: 0.4rem; flex: 1;
  justify-content: center;
}
.wf-channel-badge {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.4rem 0.6rem; background: var(--surface-secondary);
  border-radius: var(--radius-sm); border: 1px solid var(--border-faint);
  font-size: 0.72rem;
}
.wf-channel-name {
  font-family: var(--font-mono); color: var(--text-secondary);
  font-size: 0.68rem; font-weight: 500;
}
.wf-channel-stock {
  font-family: var(--font-mono); font-weight: 700; color: var(--accent);
  font-size: 0.78rem;
}
.wf-sync-indicator {
  display: flex; align-items: center; gap: 0.3rem;
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--status-good);
  text-transform: uppercase; letter-spacing: 0.04em;
  margin-top: 0.25rem;
}
.wf-sync-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--status-good);
  animation: breathe 2s ease-in-out infinite;
}

/* Stage 4: Auto-reply */
.wf-chat-mini {
  display: flex; flex-direction: column; gap: 0.3rem; flex: 1;
  justify-content: center;
}
.wf-mini-bubble {
  padding: 0.35rem 0.6rem; border-radius: 8px;
  font-size: 0.68rem; line-height: 1.35; max-width: 85%;
  opacity: 0; transform: translateY(4px);
}
.wf-mini-bubble--in {
  background: var(--surface-secondary); color: var(--text-secondary);
  align-self: flex-start; border-bottom-left-radius: 3px;
  animation: wfBubbleIn 0.4s var(--ease-out-expo) 0.6s forwards;
}
.wf-mini-bubble--out {
  background: var(--accent); color: var(--text-inverse);
  align-self: flex-end; border-bottom-right-radius: 3px;
  animation: wfBubbleIn 0.4s var(--ease-out-expo) 2.2s forwards;
}
.wf-mini-typing {
  display: flex; gap: 3px; padding: 0.35rem 0.6rem; align-self: flex-start;
  opacity: 0; animation: wfBubbleIn 0.3s var(--ease-out-expo) 1.2s forwards;
}
.wf-mini-typing span {
  width: 4px; height: 4px; border-radius: 50%; background: var(--text-muted);
  animation: typedot 1.4s infinite;
}
.wf-mini-typing span:nth-child(2) { animation-delay: 0.2s; }
.wf-mini-typing span:nth-child(3) { animation-delay: 0.4s; }
.wf-mini-status {
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--status-good);
  text-transform: uppercase; letter-spacing: 0.04em;
  opacity: 0; animation: wfFieldAppear 0.4s var(--ease-out-expo) 3s forwards;
}

/* Stage 5: Marketing send */
.wf-campaign-card {
  padding: 0.6rem; background: var(--surface-secondary);
  border-radius: var(--radius-sm); border: 1px solid var(--border-faint);
  opacity: 0; transform: translateY(8px);
  animation: wfBubbleIn 0.5s var(--ease-out-expo) 0.8s forwards;
}
.wf-campaign-label {
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.3rem;
}
.wf-campaign-subject {
  font-size: 0.72rem; font-weight: 600; color: var(--text-primary);
  margin-bottom: 0.4rem;
}
.wf-campaign-stats {
  display: flex; gap: 0.75rem;
}
.wf-campaign-stat {
  display: flex; flex-direction: column; gap: 0.1rem;
}
.wf-campaign-stat-val {
  font-family: var(--font-mono); font-size: 0.85rem; font-weight: 700;
  color: var(--accent);
}
.wf-campaign-stat-label {
  font-family: var(--font-mono); font-size: 0.55rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.03em;
}
.wf-send-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  margin-top: 0.4rem; font-family: var(--font-mono);
  font-size: 0.6rem; color: var(--status-good); font-weight: 600;
  opacity: 0; animation: wfFieldAppear 0.4s var(--ease-out-expo) 2s forwards;
}

/* Workflow keyframes */
@keyframes wfPulseFlow {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.5); }
}
@keyframes wfFieldAppear {
  from { opacity: 0; transform: translateX(-6px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes wfStrikethrough {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes wfPriceReveal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wfBubbleIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes wfStockTick {
  0%, 80% { opacity: 1; }
  90% { opacity: 0.4; }
  100% { opacity: 1; }
}

/* Looping version for stages (JS-driven restart) */
.wf-stage[data-active="true"] {
  border-color: rgba(0, 113, 227, 0.2);
  box-shadow: 0 0 0 1px rgba(0, 113, 227, 0.08), var(--shadow-md);
}

/* Bottom recap strip */
.wf-recap {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  background: var(--surface-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.wf-recap-title {
  font-size: 0.72rem; font-family: var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 1.5rem; font-weight: 500;
}
.wf-recap-track {
  display: flex; align-items: center; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.wf-recap-track::-webkit-scrollbar { width: 0; height: 0; }
.wf-recap-node {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.6rem 1rem; background: var(--surface-dark-alt);
  border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md);
  white-space: nowrap; flex-shrink: 0;
}
.wf-recap-node-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
  flex-shrink: 0;
}
.wf-recap-node-dot--active { animation: breathe 2.5s ease-in-out infinite; }
.wf-recap-node-label {
  font-size: 0.78rem; font-weight: 500; color: var(--text-inverse);
  letter-spacing: -0.005em;
}
.wf-recap-arrow {
  width: 24px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.25); font-size: 0.8rem;
}

/* Responsive for workflow */
@media (max-width: 980px) {
  .wf-track { flex-direction: column; gap: 0; }
  .wf-connector { width: auto; height: 24px; }
  .wf-connector::before {
    top: 0; bottom: 0; left: 50%; right: auto;
    width: 2px; height: 100%; transform: translateX(-50%);
  }
  .wf-recap-track { flex-wrap: wrap; gap: 0.5rem; }
  .wf-recap-arrow { display: none; }
}
@media (max-width: 460px) {
  .wf-stage { min-width: 0; padding: 1.25rem 1rem; }
  .wf-recap-node { padding: 0.5rem 0.75rem; }
}

/* ---------- PIPELINE VERTICAL FLOW (redesigned: large simple elements) ---------- */
.wf-vertical-flow {
  display: flex; flex-direction: column; gap: 0;
  max-width: 720px; margin-inline: auto;
}
.wf-vertical-item {
  display: flex; align-items: flex-start; gap: clamp(1.5rem, 4vw, 2.5rem);
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--border-faint);
}
.wf-vertical-item:first-child { border-top: 1px solid var(--border-faint); }
.wf-v-icon-wrap {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--accent-subtle); border: 1.5px solid rgba(0, 113, 227, 0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);
}
.wf-vertical-item:hover .wf-v-icon-wrap {
  transform: scale(1.06); box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.06);
}
.wf-v-icon-wrap svg { width: 34px; height: 34px; color: var(--accent); }
.wf-v-content { flex: 1; padding-top: 0.5rem; }
.wf-v-label {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.wf-v-num {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em;
}
.wf-v-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 700;
  letter-spacing: -0.02em; line-height: 1.2; color: var(--text-primary);
  margin-bottom: 0.5rem;
}
.wf-v-desc {
  font-size: 1rem; color: var(--text-secondary); line-height: 1.65;
  max-width: 50ch;
}
@media (max-width: 720px) {
  .wf-vertical-item { gap: 1.25rem; }
  .wf-v-icon-wrap { width: 64px; height: 64px; }
  .wf-v-icon-wrap svg { width: 28px; height: 28px; }
}

/* ---------- PIPELINE RECAP (redesigned, bigger) ---------- */
.wf-recap-v2 {
  padding-block: clamp(5rem, 10vw, 8rem);
  background: var(--surface-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}
.wf-recap-v2-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700;
  color: var(--text-inverse); letter-spacing: -0.025em;
  margin-bottom: clamp(2.5rem, 5vw, 4rem); text-align: center;
  line-height: 1.15;
}
.wf-recap-v2-track {
  display: flex; align-items: center; justify-content: center;
  gap: 0; flex-wrap: wrap;
}
.wf-recap-v2-node {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  padding: 1.5rem 2rem; flex-shrink: 0;
}
.wf-recap-v2-node-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(0, 113, 227, 0.12); border: 1.5px solid rgba(0, 113, 227, 0.25);
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);
}
.wf-recap-v2-node:hover .wf-recap-v2-node-icon {
  transform: scale(1.08);
  box-shadow: 0 0 0 6px rgba(0, 113, 227, 0.08);
}
.wf-recap-v2-node-icon svg { width: 30px; height: 30px; color: var(--accent); }
.wf-recap-v2-node-label {
  font-size: 1.1rem; font-weight: 600; color: var(--text-inverse);
  letter-spacing: -0.01em;
}
.wf-recap-v2-arrow {
  width: 48px; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1.25rem;
}
.wf-recap-v2-arrow svg { width: 28px; height: 28px; }
@media (max-width: 720px) {
  .wf-recap-v2-track { flex-direction: column; gap: 0; }
  .wf-recap-v2-arrow { transform: rotate(90deg); width: auto; height: 36px; margin-bottom: 0; }
  .wf-recap-v2-node { padding: 1rem 1.25rem; }
  .wf-recap-v2-node-icon { width: 56px; height: 56px; }
  .wf-recap-v2-node-icon svg { width: 24px; height: 24px; }
}

/* ---------- CASE STUDIES (redesigned: interactive before/after) ---------- */
.cases-v2 { padding-block: var(--section-pad); background: var(--surface-primary); }
.cases-v2-header { margin-bottom: 4rem; }
.case-v2 {
  margin-bottom: 2rem; padding: 2.5rem; background: var(--surface-secondary);
  border-radius: var(--radius-xl); border: 1px solid var(--border-faint);
  box-shadow: var(--shadow-sm);
}
.case-v2-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.case-v2-brand {
  font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600;
  color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em;
}
.case-v2-toggle {
  display: flex; background: var(--surface-primary); border-radius: var(--radius-pill);
  border: 1px solid var(--border-light); padding: 3px; position: relative;
  overflow: hidden;
}
.case-v2-toggle-btn {
  padding: 0.5rem 1.25rem; font-size: 0.82rem; font-weight: 600;
  border-radius: var(--radius-pill); position: relative; z-index: 1;
  color: var(--text-secondary); background: transparent;
  transition: color var(--dur-fast) var(--ease-out-quart);
  min-height: 36px; cursor: pointer; border: none;
}
.case-v2-toggle-btn[aria-pressed="true"] { color: var(--text-inverse); }
.case-v2-toggle-slider {
  position: absolute; top: 3px; left: 3px; height: calc(100% - 6px);
  width: calc(50% - 3px); background: var(--surface-dark);
  border-radius: var(--radius-pill);
  transition: transform var(--dur-normal) var(--ease-out-expo);
}
.case-v2-toggle[data-state="after"] .case-v2-toggle-slider {
  transform: translateX(100%);
}
.case-v2-body { position: relative; min-height: 80px; }
.case-v2-panel {
  transition: opacity var(--dur-normal) var(--ease-out-quart), transform var(--dur-normal) var(--ease-out-quart);
}
.case-v2-panel[data-visible="false"] {
  position: absolute; top: 0; left: 0; right: 0;
  opacity: 0; transform: translateY(8px); pointer-events: none;
}
.case-v2-panel[data-visible="true"] { opacity: 1; transform: none; }
.case-v2-before-items { display: flex; flex-direction: column; gap: 0.6rem; opacity: 0.6; }
.case-v2-before-item {
  display: flex; align-items: flex-start; gap: 0.75rem;
  font-size: 0.92rem; color: var(--text-muted); line-height: 1.5;
}
.case-v2-before-item::before {
  content: ""; flex-shrink: 0; width: 5px; height: 5px; border-radius: 50%;
  background: var(--text-muted); margin-top: 0.5rem; opacity: 0.4;
}
.case-v2-after-items {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
}
.case-v2-after-item {
  display: flex; flex-direction: column; gap: 0.35rem;
  padding: 1rem 1.25rem; background: var(--surface-primary);
  border-radius: var(--radius-md); border: 1px solid var(--border-faint);
}
.case-v2-metric {
  font-family: var(--font-mono); font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700;
  color: var(--accent); line-height: 1;
}
.case-v2-metric-text {
  font-size: 0.88rem; color: var(--text-secondary); line-height: 1.4;
  font-weight: 500;
}
@media (max-width: 460px) {
  .case-v2-after-items { grid-template-columns: 1fr; }
}

/* ---------- CAPABILITIES (redesigned: tabs + expandable cards) ---------- */
.cap-tabs-wrap { margin-bottom: 2.5rem; }
.cap-tab-bar {
  display: inline-flex; background: var(--surface-primary); border-radius: var(--radius-pill);
  border: 1px solid var(--border-light); padding: 4px; position: relative;
}
.cap-tab-btn {
  padding: 0.65rem 1.6rem; font-size: 0.9rem; font-weight: 600;
  border-radius: var(--radius-pill); position: relative; z-index: 1;
  color: var(--text-secondary); background: transparent; border: none; cursor: pointer;
  transition: color var(--dur-fast) var(--ease-out-quart);
  min-height: 44px;
}
.cap-tab-btn[aria-selected="true"] { color: var(--text-inverse); }
.cap-tab-slider {
  position: absolute; top: 4px; height: calc(100% - 8px);
  background: var(--surface-dark); border-radius: var(--radius-pill);
  transition: left var(--dur-normal) var(--ease-out-expo), width var(--dur-normal) var(--ease-out-expo);
  z-index: 0;
}
.cap-panel { display: none; }
.cap-panel[data-active="true"] { display: block; }
.cap-panel-header {
  margin-bottom: 2rem;
}
.cap-panel-title {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem); font-weight: 700;
  letter-spacing: -0.02em; color: var(--text-primary); margin-bottom: 0.5rem;
}
.cap-panel-desc {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.65; max-width: 56ch;
}
.cap-accordion { display: flex; flex-direction: column; gap: 0.5rem; }
.cap-accordion-item {
  background: var(--surface-primary); border: 1px solid var(--border-faint);
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);
}
.cap-accordion-item:hover { border-color: var(--border-light); box-shadow: var(--shadow-md); }
.cap-accordion-trigger {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 1.1rem 1.4rem; text-align: left;
  font-size: 0.95rem; font-weight: 600; color: var(--text-primary);
  cursor: pointer; border: none; background: none;
  min-height: 44px;
  transition: background var(--dur-fast) var(--ease-out-quart);
}
.cap-accordion-trigger:hover { background: rgba(0, 0, 0, 0.015); }
.cap-accordion-chevron {
  width: 18px; height: 18px; flex-shrink: 0; color: var(--text-muted);
  transition: transform var(--dur-normal) var(--ease-out-expo);
}
.cap-accordion-item[data-open="true"] .cap-accordion-chevron { transform: rotate(180deg); }
.cap-accordion-body {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height var(--dur-normal) var(--ease-out-expo), opacity var(--dur-normal) var(--ease-out-quart), padding var(--dur-normal) var(--ease-out-expo);
  padding: 0 1.4rem;
}
.cap-accordion-item[data-open="true"] .cap-accordion-body {
  max-height: 300px; opacity: 1; padding: 0 1.4rem 1.25rem;
}
.cap-accordion-text {
  font-size: 0.9rem; color: var(--text-secondary); line-height: 1.65;
}
.cap-accordion-icon {
  width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); margin-right: 0.75rem;
}
.cap-accordion-trigger-left { display: flex; align-items: center; }
@media (max-width: 720px) {
  .cap-tab-btn { padding: 0.5rem 1rem; font-size: 0.82rem; }
}

/* ---------- SCROLL REVEAL VARIANTS ---------- */
.reveal[data-reveal="left"] {
  transform: translateX(-40px) scale(0.98); filter: blur(2px);
}
.reveal[data-reveal="right"] {
  transform: translateX(40px) scale(0.98); filter: blur(2px);
}
.reveal[data-reveal="scale"] {
  transform: scale(0.9); filter: blur(2px);
}
.reveal[data-reveal="left"].in,
.reveal[data-reveal="right"].in,
.reveal[data-reveal="scale"].in {
  opacity: 1; transform: none; filter: blur(0);
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; }
  .hero-inner .hero-wordmark,
  .hero-inner .hero-lead,
  .hero-inner .hero-blurb,
  .hero-inner .hero-cta { animation: none; opacity: 1; transform: none; }
  .phone-frame { animation: none; opacity: 1; transform: none; }
  .proof-stat.in .proof-number { animation: none; opacity: 1; transform: none; }
  .anim-fade-up, .anim-scale-in, .anim-blur-in, .anim-slide-left,
  .anim-slide-right, .anim-stagger, .anim-hero, .anim-glow,
  .anim-gradient, .anim-breathe, .anim-float, .anim-lift {
    animation: none; opacity: 1; transform: none; filter: none;
  }
  /* Timeline infographic reduced motion */
  .hiw-tl-content { opacity: 1 !important; transform: none !important; }
  .hiw-tl-connector-fill { width: 100% !important; height: 100% !important; }
  .hiw-tl-connector-dot { opacity: 1 !important; transform: scale(1) !important; }
  .hiw-tl-icon path, .hiw-tl-icon circle, .hiw-tl-icon rect, .hiw-tl-icon polyline {
    animation: none !important; stroke-dasharray: none !important; stroke-dashoffset: 0 !important;
  }
  .hiw-tl-icon-wrap { border-color: var(--accent) !important; }
  .hiw-tl-icon { color: var(--accent) !important; }
  /* Cortexia glow reduced motion */
  .cost-cortexia-card.cortexia-glow-active {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .cost-cortexia-card.cortexia-glow-active::before { animation: none !important; opacity: 1 !important; }
  /* Scroll reveal variants reduced motion */
  .reveal[data-reveal="left"], .reveal[data-reveal="right"], .reveal[data-reveal="scale"] {
    opacity: 1 !important; transform: none !important; filter: none !important;
  }
  /* Workflow pipeline reduced motion */
  .wf-field-value, .wf-price-new, .wf-price-signal,
  .wf-mini-bubble, .wf-mini-typing, .wf-mini-status,
  .wf-campaign-card, .wf-send-badge, .wf-connector-dot,
  .wf-sync-dot, .wf-recap-node-dot--active {
    animation: none !important; opacity: 1 !important; transform: none !important;
  }
  .wf-price-old::after { animation: none !important; transform: scaleX(1) !important; }
  /* Case v2 toggle reduced motion */
  .case-v2-toggle-slider { transition: none !important; }
  .case-v2-panel { transition: none !important; }
  .case-v2-panel[data-visible="false"] { opacity: 0 !important; }
  .case-v2-panel[data-visible="true"] { opacity: 1 !important; transform: none !important; }
  /* Capabilities accordion reduced motion */
  .cap-accordion-body { transition: none !important; }
  .cap-accordion-chevron { transition: none !important; }
  .cap-tab-slider { transition: none !important; }
}


/* ===== PHONE-FOLD DEMO SCENE (persistent single phone, day-part fold), ported verbatim from the working build ===== */
/* ==========================================================================
   THE DEVICE MOMENT: dark section, 3D phone that rotates and drops in.
   ========================================================================== */
.demo {
  padding-block: var(--section-pad);
  background: var(--surface-dark); color: var(--text-inverse);
  /* overflow must stay visible: an overflow:hidden/clip ancestor disables the
     position:sticky pin on .demo-viewport. Horizontal bleed is contained by
     body{overflow-x:clip}. */
  position: relative; overflow: visible;
}
.demo::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,113,227,0.35), transparent);
}
.demo .section-kicker { color: rgba(90,180,255,0.95); }
.demo .section-kicker::before { background: rgba(90,180,255,0.6); }
.demo .section-head h2 { color: var(--text-inverse); }
.demo .lead { color: rgba(245,245,247,0.7); }

/* ---------- SINGLE PERSISTENT PHONE: pinned scene ----------
   .demo-track gives the scene its scroll length (taller = slower). Inside it,
   .demo-viewport is sticky, so the ONE phone stays centred in view while the
   captions cross-fade. Falls back (no .demo--scene) to a flat, readable stack. */

/* Fallback (no JS / no GSAP / reduced motion): everything in normal flow. */
.demo-track { position: relative; }
.demo-viewport { position: relative; }
.demo-grid {
  display: grid; grid-template-columns: 360px 1fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.caption-col { position: relative; }
.day-block { display: flex; flex-direction: column; gap: 1.2rem; }
.day-block:not(:first-child) { margin-top: 3.5rem; }
.day-block h3 { font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; color: #f5f5f7; }
.db-lead { font-size: clamp(15px, 1.5vw, 17px); line-height: 1.6; color: rgba(245,245,247,0.72); max-width: 48ch; }

/* Active scene (JS + GSAP on): pin the phone, stack + cross-fade captions.
   Track height sets the scroll length. It is deliberately tall so each day-part
   hand-off gets a WIDE scroll window (~178vh per flip) -- that is what keeps the
   180deg turn moving only a small angle per wheel-tick instead of snapping.
   --demo-track-h is overridable via ?phonetrack=NNN for live tuning. */
.demo--scene .demo-track { height: var(--demo-track-h, 620vh); }
.demo--scene .demo-viewport {
  position: sticky; top: 0; height: 100vh;
  display: grid; place-items: center; overflow: hidden;
}
.demo--scene .demo-grid { width: 100%; align-items: center; }
.demo--scene .caption-col { position: relative; min-height: 340px; }
.demo--scene .day-block {
  position: absolute; inset: 0; margin: 0;
  justify-content: center;
  opacity: 0; transform: translateY(14px);
  transition: opacity var(--dur-slow) var(--ease-out-quart),
              transform var(--dur-slow) var(--ease-out-quart);
  pointer-events: none;
}
.demo--scene .day-block.is-active {
  opacity: 1; transform: none; pointer-events: auto;
}

/* Perspective lives on this ancestor. The rotated element (.phone-tilt) must
   NOT carry preserve-3d: a single element rotating inside a perspective parent
   renders crisp; preserve-3d makes Chrome rasterise the iframe to a low-res
   texture. Perspective here is enough. */
.phone-persp { perspective: 1600px; perspective-origin: 50% 46%; }

/* Three stacked screens inside the one frame, cross-faded by the controller. */
.phone-panels { position: absolute; inset: 0; z-index: 2; }
.phone-panel {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000;
  opacity: 0; pointer-events: none;
  /* visibility flips to hidden AFTER the fade completes, so an inactive iframe
     stops being composited/rastered while the phone rotates in 3D. This is the
     main jank fix: the drop was reprojecting all three live iframe textures
     every frame; now only the active one paints. */
  visibility: hidden;
  transition: opacity var(--dur-slow) var(--ease-out-quart), visibility 0s linear var(--dur-slow);
}
.phone-panel.is-active {
  opacity: 1; pointer-events: auto; visibility: visible;
  transition: opacity var(--dur-slow) var(--ease-out-quart), visibility 0s linear 0s;
}
/* Static screenshot shown DURING a hand-off flip. The live iframes are the
   expensive thing to rotate in 3D (they re-composite every frame -> jank), so
   while the phone turns we hide the live panels and rotate this cheap flat image
   instead, swapping the day-part at the invisible edge-on seam. Shown only in
   .demo--scene while flipping; never in the reduced-motion / no-JS fallback. */
.phone-still {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  z-index: 5; border-radius: inherit;
  opacity: 0; pointer-events: none;
  transition: opacity 0.28s var(--ease-out-quart);
  background: #0a0a0c;
}
.phone-still.show { opacity: 1; }
.phone-tilt {
  will-change: transform;
  transform-origin: 50% 50%;
  /* Visible by default so the phone is never invisible if GSAP fails to load.
     GSAP's fromTo with immediateRender sets the dropped start state on init. */
  opacity: 1;
}
.phone-frame {
  position: relative; width: 100%; max-width: 360px; margin-inline: auto;
  aspect-ratio: 390 / 800; border-radius: var(--radius-device); overflow: hidden;
  background: #000;
  box-shadow:
    0 0 0 2px #202024,
    0 0 0 11px #0a0a0c,
    0 0 0 12px #34343a,
    var(--shadow-device);
}
.phone-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
/* Soft screen glare that catches the light as the phone turns. */
.phone-frame::after {
  content: ""; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
  background: linear-gradient(118deg, rgba(255,255,255,0.20) 0%, transparent 28%, transparent 72%, rgba(0,0,0,0.10) 100%);
  /* No CSS transition here: GSAP scrubs --glare every frame, and a transition
     would restart on each write, perpetually lagging ~0.4s and never settling
     (this was a visible stutter source). The scrub itself provides smoothing. */
  opacity: var(--glare, 0.4);
}
/* Grounding shadow under the phone, scrubbed by GSAP on the drop. */
.phone-shadow {
  position: absolute; left: 50%; bottom: -6%; transform: translateX(-50%);
  width: 62%; height: 34px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.55), transparent 70%);
  filter: blur(9px); z-index: -1; opacity: 0.5; pointer-events: none;
}
/* Poster overlay before the iframe loads / plays. */
.phone-poster {
  position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 0.5rem; cursor: pointer;
  background: radial-gradient(circle at 50% 40%, #26262b, #0e0e10 74%);
  transition: opacity var(--dur-slow) var(--ease-out-quart);
}
.phone-poster.hide { opacity: 0; pointer-events: none; }
.pulse-ring {
  position: absolute; width: 92px; height: 92px; top: 34%; border-radius: 50%;
  border: 2px solid var(--accent); opacity: 0.5; animation: ring 2.6s var(--ease-out-quart) infinite;
}
.play-badge {
  width: 66px; height: 66px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); box-shadow: 0 10px 34px -6px rgba(0,113,227,0.7);
}
.play-badge svg { width: 28px; height: 28px; margin-left: 3px; fill: #fff; }
.pt { font-weight: 700; font-size: 1.02rem; margin-top: 0.4rem; color: #fff; }
.ps { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(90,180,255,0.95); }
@keyframes ring { 0% { transform: scale(0.8); opacity: 0.6; } 100% { transform: scale(1.7); opacity: 0; } }

/* Demo annotation (a real 01-04 sequence: the arc of one morning). */
.demo-annot { display: flex; flex-direction: column; gap: 1.3rem; }
.beat { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; padding-bottom: 1.3rem; border-bottom: 1px solid rgba(255,255,255,0.09); }
.beat .idx { font-family: var(--font-mono); font-size: 12px; color: rgba(90,180,255,0.95); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-sm); padding: 0.3rem 0.55rem; }
.beat .bt { font-weight: 600; font-size: 17px; color: #f5f5f7; }
.beat .bd { font-size: 15px; color: rgba(245,245,247,0.66); line-height: 1.5; max-width: 46ch; margin-top: 0.25rem; }

/* Receipt motif (the product reports in one-line receipts). */
.receipt-strip {
  display: grid; grid-template-columns: auto auto 1fr; gap: 0.7rem; align-items: center;
  padding: 1rem 1.2rem; border-radius: var(--radius-md);
  background: rgba(0,113,227,0.12); border: 1px solid rgba(0,113,227,0.32);
  font-size: 15px; color: #f5f5f7;
}
.receipt-strip .rtick { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; }
.receipt-strip .rtick svg { width: 15px; height: 15px; }
.receipt-strip .rk { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(90,180,255,0.95); }
.receipt-strip .rline b { color: #fff; }
.demo-replay {
  display: inline-flex; align-items: center; gap: 0.55rem; align-self: flex-start; margin-top: 0.4rem;
  min-height: 44px; padding: 0.55rem 1.1rem; border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.16); color: rgba(245,245,247,0.75); font-size: 13px; font-weight: 500;
  transition: color var(--dur-fast), border-color var(--dur-fast), background var(--dur-fast);
}
.demo-replay:hover { color: #f5f5f7; border-color: rgba(255,255,255,0.32); background: rgba(255,255,255,0.05); }


/* ==========================================================================
   INDUSTRY CARDS (the hub → spoke pages). Styled to Sach's card system:
   surface-primary tiles, faint borders, soft-grey depth, one accent that
   means "this one is live". Coming-soon tiles are quiet on purpose.
   ========================================================================== */
.industries { padding-block: var(--section-pad); background: var(--surface-secondary); }
.industries .section-head { margin-inline: auto; text-align: center; }
.industries .section-kicker { justify-content: center; }
.industries .section-kicker::before { display: none; }
.industries .lead { margin-inline: auto; }
.ind-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
  margin-top: clamp(2.4rem, 5vw, 3.6rem);
}
.ind-card {
  display: flex; flex-direction: column; gap: 1rem;
  padding: 2rem; min-height: 268px;
  background: var(--surface-primary);
  border: 1px solid var(--border-faint); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); position: relative; color: inherit;
  transition: transform var(--dur-fast) var(--ease-out-quart),
              box-shadow var(--dur-fast) var(--ease-out-quart),
              border-color var(--dur-fast) var(--ease-out-quart);
}
.ind-card--live:hover,
.ind-card--live:focus-visible {
  transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-light);
}
.ind-card--soon { opacity: 0.7; }
.ind-icon {
  width: 48px; height: 48px; border-radius: var(--radius-md);
  display: grid; place-items: center; background: var(--accent-subtle); color: var(--accent);
}
.ind-card--soon .ind-icon { background: var(--surface-secondary); color: var(--text-muted); }
.ind-icon svg { width: 24px; height: 24px; }
.ind-status {
  position: absolute; top: 1.6rem; right: 1.6rem;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  padding: 0.3rem 0.62rem; border-radius: var(--radius-pill);
}
.ind-status--live {
  color: var(--status-good); background: rgba(52,199,89,0.12);
  display: inline-flex; align-items: center; gap: 0.42rem;
}
.ind-status--live::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--status-good); animation: breathe 3s ease-in-out infinite;
}
.ind-status--soon { color: var(--text-muted); background: var(--surface-secondary); border: 1px solid var(--border-light); }
.ind-name { font-size: 1.32rem; font-weight: 600; letter-spacing: -0.015em; color: var(--text-primary); }
.ind-desc { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.62; flex: 1; }
.ind-link {
  display: inline-flex; align-items: center; gap: 0.42rem; margin-top: auto;
  font-size: 0.9rem; font-weight: 500; color: var(--accent);
}
.ind-card--soon .ind-link { color: var(--text-muted); }
.ind-link svg { width: 16px; height: 16px; transition: transform var(--dur-fast) var(--ease-out-quart); }
.ind-card--live:hover .ind-link svg { transform: translateX(4px); }

/* ==========================================================================
   PHONE-FOLD DEMO: responsive + reduced-motion (ported from working build).
   Kept AFTER the theme so it wins the cascade over Sach's inline-chat rules.
   ========================================================================== */
@media (max-width: 980px) {
  .demo-grid { grid-template-columns: 1fr; gap: clamp(1.1rem, 4vw, 1.8rem); }
  .demo--scene .demo-grid { grid-template-rows: auto auto; align-content: center; }
  .demo--scene .phone-col { width: 100%; }
  .demo--scene .caption-col { min-height: 38vh; width: 100%; max-width: 34rem; margin-inline: auto; }
  .demo--scene .day-block { justify-content: flex-start; gap: 0.9rem; }
  .phone-persp { perspective: 1300px; }
  .phone-frame { max-width: 232px; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .phone-frame { max-width: 300px; }
  .demo--scene .phone-frame { max-width: 232px; }
  .demo--scene .caption-col { min-height: auto; }
  .demo--scene .day-block .beat { display: none; }
  .demo--scene .day-block { gap: 0.7rem; }
  .ind-grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-ring { display: none; }
  .phone-frame::after { opacity: 0.3; }
}

/* ==========================================================================
   POST-REVIEW FIXES (2026-07-22, design-review pass):
   1. Mobile nav drawer: .nav has backdrop-filter, which makes it the containing
      block for the position:fixed drawer, so bottom:0 collapsed it to the 52px
      nav height. Pin an explicit full viewport height and lift the toggle above
      the drawer so it stays tappable to close.
   2. .demo-replay: the light-theme rule set a white background that the dark
      phone-fold rule never reset, leaving near-white text on white. Reset it.
   3. Form controls did not inherit the Apple system font (UA Arial/monospace).
   ========================================================================== */
@media (max-width: 720px) {
  .nav-links {
    top: 0; bottom: auto; height: 100vh; height: 100dvh;
    overflow-y: auto; z-index: 120;
  }
  .nav-links > a { color: var(--text-primary); }
  .nav-toggle { position: relative; z-index: 130; }
}
.demo .demo-replay { background: transparent; }
.demo .demo-replay:hover { background: rgba(255,255,255,0.05); }
input, select, textarea { font: inherit; }

/* ==========================================================================
   REBUILD 2026-07-22 (web-app-developer): working phone motion + surfaced
   real-software mockups + richer hero, proof band and capabilities. All new
   selectors namespaced so they do not collide with the ported theme above.
   ========================================================================== */

/* --- Hero additions: at-a-glance chips (centred under the wordmark block) --- */
.hero-chips {
  list-style: none; display: flex; flex-wrap: wrap; gap: 0.7rem 1.4rem;
  margin-top: 2.4rem; padding: 0; animation: fadeInUp 0.8s var(--ease-apple) 0.8s both;
}
.hero-inner--centered .hero-chips { justify-content: center; }
.hero-chips li {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.86rem; color: rgba(245,245,247,0.72);
}
.hc-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex-shrink: 0; box-shadow: 0 0 0 4px rgba(0,113,227,0.14); }

/* --- Proof band (count-up breadth stats) --- */
.proof { padding-block: clamp(3.4rem, 7vw, 6rem); background: var(--surface-primary); border-bottom: 1px solid var(--border-faint); }
.proof-kicker {
  display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 auto clamp(2rem, 4vw, 3rem);
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-muted); justify-content: center; width: 100%;
}
.proof-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--status-good); box-shadow: 0 0 0 4px rgba(52,199,89,0.14); animation: breathe 3s ease-in-out infinite; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.2rem, 3vw, 2.2rem); }
.proof-stat { border-left: 1px solid var(--border-light); padding-left: clamp(0.9rem, 2vw, 1.4rem); }
.proof-number { font-size: clamp(2.6rem, 2rem + 3vw, 4rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.proof-label { margin-top: 0.7rem; font-size: 0.88rem; color: var(--text-secondary); line-height: 1.5; max-width: 24ch; }

/* --- REAL SOFTWARE showcase: framed browser cards --- */
.software { padding-block: var(--section-pad); background: var(--surface-secondary); border-top: 1px solid var(--border-faint); }
.software .section-head { margin-inline: auto; text-align: center; max-width: 60ch; }
.software .section-kicker { justify-content: center; }
.software .section-kicker::before { display: none; }
.software .lead { margin-inline: auto; }

.browser {
  margin: clamp(2.4rem, 5vw, 3.4rem) auto 0; max-width: var(--wrap-wide);
  background: var(--surface-primary); border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-xl);
}
.browser-bar {
  display: flex; align-items: center; gap: 0.9rem; padding: 0.7rem 1.1rem;
  background: linear-gradient(180deg, #fbfbfd, #f1f1f4); border-bottom: 1px solid var(--border-light);
}
.bdots { display: inline-flex; gap: 0.42rem; }
.bdots i { width: 11px; height: 11px; border-radius: 50%; background: #d6d6db; }
.bdots i:nth-child(1) { background: #ff5f57; }
.bdots i:nth-child(2) { background: #febc2e; }
.bdots i:nth-child(3) { background: #28c840; }
.baddr {
  display: inline-flex; align-items: center; gap: 0.5rem; flex: 1; max-width: 30rem;
  margin-inline: auto; padding: 0.36rem 0.9rem; border-radius: var(--radius-pill);
  background: var(--surface-secondary); border: 1px solid var(--border-faint);
  font-size: 0.82rem; color: var(--text-secondary); font-family: var(--font-mono);
}
.baddr svg { width: 14px; height: 14px; color: var(--status-good); flex-shrink: 0; }
.btag {
  display: inline-flex; align-items: center; gap: 0.42rem; font-size: 0.72rem; font-weight: 600;
  color: var(--accent); white-space: nowrap;
}
.btag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: breathe 3s ease-in-out infinite; }
.browser-body { position: relative; background: #fff; }
.browser-body .sw-frame {
  display: block; width: 100%; height: clamp(440px, 62vh, 680px); border: 0; background: #f6f2ea;
}
.browser--tall .sw-frame { height: clamp(520px, 74vh, 760px); }
.browser-peek {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.0) 0%, rgba(0,0,0,0.02));
}

/* Receipts under the dashboard */
.sw-receipts {
  list-style: none; padding: 0; margin: clamp(1.6rem, 3vw, 2.4rem) auto 0; max-width: var(--wrap-wide);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.receipt-strip--light {
  background: var(--surface-primary); border: 1px solid var(--border-light);
  color: var(--text-primary); box-shadow: var(--shadow-sm);
}
.receipt-strip--light .rk { color: var(--text-muted); }
.receipt-strip--light .rline { color: var(--text-secondary); }
.receipt-strip--light .rline b { color: var(--text-primary); }
.sw-receipts .receipt-strip { grid-template-columns: auto auto 1fr; }

/* Refill split: browser card + facts aside */
.sw-split {
  display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.6rem, 3.5vw, 3rem);
  align-items: center; margin-top: clamp(3rem, 6vw, 5rem); max-width: var(--wrap-wide); margin-inline: auto;
}
.sw-split .browser { margin: 0; max-width: none; }
.sw-aside h3 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); letter-spacing: -0.02em; line-height: 1.12; margin-top: 0.4rem; }
.sw-aside-lead { color: var(--text-secondary); line-height: 1.6; margin-top: 0.9rem; max-width: 42ch; }
.sw-facts { list-style: none; padding: 0; margin: 1.6rem 0 0; display: flex; flex-direction: column; }
.sw-facts li { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.9rem; padding: 0.8rem 0; border-top: 1px solid var(--border-faint); align-items: baseline; }
.sw-facts li:last-child { border-bottom: 1px solid var(--border-faint); }
.swf-k { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.swf-v { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.5; }
.swf-v b { color: var(--text-primary); }
.swf-v code { font-family: var(--font-mono); font-size: 0.86em; background: var(--accent-subtle); color: var(--accent-deep); padding: 0.05em 0.4em; border-radius: 5px; }

/* --- Capabilities grid --- */
.caps { padding-block: var(--section-pad); background: var(--surface-primary); }
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: clamp(2.4rem, 5vw, 3.6rem); }
.cap-card {
  position: relative; padding: 2rem 1.9rem; background: var(--surface-primary);
  border: 1px solid var(--border-faint); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart), border-color var(--dur-fast) var(--ease-out-quart);
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-light); }
.cap-num { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; color: var(--accent); }
.cap-card h3 { margin-top: 0.7rem; font-size: 1.22rem; font-weight: 600; letter-spacing: -0.015em; color: var(--text-primary); }
.cap-card p { margin-top: 0.7rem; font-size: 0.94rem; color: var(--text-secondary); line-height: 1.62; }
.cap-foot { margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.cap-foot .receipt-strip { max-width: 56rem; margin-inline: auto; }

/* --- Bigger phone presence (was reading as "tiny") --- */
.phone-frame { max-width: 384px; }
.demo--scene .phone-frame { max-width: 384px; }

/* --- Responsive --- */
@media (max-width: 980px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .sw-receipts { grid-template-columns: 1fr; }
  .sw-split { grid-template-columns: 1fr; }
  .cap-grid { grid-template-columns: 1fr 1fr; }
  .browser--tall .sw-frame { height: clamp(460px, 60vh, 620px); }
  /* re-assert the compact pinned-phone size (my base rule above raised it) */
  .phone-frame { max-width: 300px; }
  .demo--scene .phone-frame { max-width: 244px; }
}
@media (max-width: 720px) {
  .proof-grid { grid-template-columns: 1fr 1fr; gap: 1.4rem; }
  .proof-stat { border-left: none; padding-left: 0; }
  .proof-number { font-size: clamp(2.2rem, 8vw, 3rem); }
  .cap-grid { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; }
  .sw-facts li { grid-template-columns: 1fr; gap: 0.2rem; }
  .browser-body .sw-frame { height: clamp(380px, 66vh, 520px); }
  /* a touch more phone presence on mobile, still fits the 100vh sticky pin */
  .demo--scene .phone-frame { max-width: 262px; }
  .phone-frame { max-width: 300px; }
}
@media (prefers-reduced-motion: reduce) {
  .proof-dot, .btag-dot, .hc-dot { animation: none; }
}

/* Mobile nav drawer: the old closed state used transform:translateX(100%), which
   pushed a 20rem panel off the right edge and added ~320px of horizontal scroll
   (its containing block is .nav via backdrop-filter, so it counts toward page
   width). We cannot clip on html/root without killing the sticky phone pin, so
   keep the panel ON-screen at right:0 and reveal it with a clip-path wipe. */
@media (max-width: 720px) {
  .nav-links { transform: none; right: 0; clip-path: inset(0 0 0 100%); opacity: 0; pointer-events: none;
    transition: clip-path var(--dur-normal) var(--ease-out-expo), opacity var(--dur-normal) var(--ease-out-expo); }
  .nav-links.open, .nav-links[data-open="true"] { transform: none; clip-path: inset(0); opacity: 1; pointer-events: auto; }
}
@media (max-width: 560px) {
  .browser-bar .btag { display: none; }
  .browser-bar .baddr { margin-right: 0; }
}

/* The internal hero-version comparison note (.foot-devnote) was dev scaffolding
   that had leaked into production. Markup and styles both removed 2026-07-31. */


/* ==========================================================================
   REBUILD 2026-07-31 (web-app-developer).
   New sections: control/boundary split, value ledger, comparison, cost slider,
   rebuilt trust spine. Plus motion repairs to the flat middle of the page.

   Everything below is built on ONE device, the "ledger rule": a hairline, a
   mono micro-label on the left, a tabular figure on the right. The product
   reports in one-line receipts, so the page is built out of receipt rows. All
   colour comes from tokens.css; nothing here invents a hue.

   Selectors are namespaced against the ported theme above (.split-, .ledger-,
   .cmp-, .calc-, .spine-) so nothing collides with the legacy rule sets.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Shared: batch reveal.
   The hidden state is applied by a class that ONLY JavaScript adds, so if JS
   never runs the content is simply visible. No blank page, ever.
   -------------------------------------------------------------------------- */
.batch-item {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.7s var(--ease-apple), transform 0.7s var(--ease-apple);
}
.batch-item.in { opacity: 1; transform: none; }

/* Shared figure treatment: every money or counted number on the page. */
.ledger-v, .ledger-sum-v, .calc-v, .payback-fig, .proof-number {
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--figure-track);
}

/* --------------------------------------------------------------------------
   NAV hover. There was a colour shift and nothing else, which on a 0.87rem
   link is close to invisible. Add a drawn underline in the accent, which is
   the colour that means "you can act on this" everywhere else on the page.
   -------------------------------------------------------------------------- */
.nav-links > a:not(.nav-cta) { position: relative; }
.nav-links > a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 1.5px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur-fast) var(--ease-out-quart);
}
.nav-links > a:not(.nav-cta):hover,
.nav-links > a:not(.nav-cta):focus-visible { color: var(--text-primary); }
.nav-links > a:not(.nav-cta):hover::after,
.nav-links > a:not(.nav-cta):focus-visible::after { transform: scaleX(1); }

/* ==========================================================================
   CONTROL / BOUNDARY SPLIT (directly under the hero)
   ========================================================================== */
.control { padding-block: var(--section-pad); background: var(--surface-primary); }
.control .section-head { max-width: 64ch; margin-inline: auto; text-align: center; }
.control .section-kicker { justify-content: center; }
.control .section-kicker::before { display: none; }
.control .lead { margin-inline: auto; }

.split-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1rem, 2.4vw, 1.6rem);
  margin-top: clamp(2.4rem, 5vw, 3.4rem);
}
.split-col {
  border: 1px solid var(--border-light); border-radius: var(--radius-xl);
  padding: clamp(1.4rem, 3vw, 2rem);
  background: var(--surface-primary);
  border-top-width: 3px;
}
.split-col--auto { border-top-color: var(--auto-rule); }
.split-col--gate { border-top-color: var(--gate-rule); background: var(--surface-secondary); }

.split-head { display: flex; flex-direction: column; gap: 0.55rem; margin-bottom: 1.4rem; }
.split-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.11em;
  padding: 0.38rem 0.75rem; border-radius: var(--radius-pill);
}
.split-badge--auto { color: var(--auto-ink); background: var(--auto-bg); }
.split-badge--gate { color: var(--gate-ink); background: var(--gate-bg); }
.split-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.split-badge--auto .split-dot { animation: breathe 3s ease-in-out infinite; }
.split-note { font-size: 0.85rem; color: var(--text-secondary); }

.split-list { list-style: none; padding: 0; margin: 0; }
.split-list li {
  padding: 0.95rem 0; border-top: 1px solid var(--ledger-rule);
  font-size: 0.94rem; line-height: 1.6; color: var(--text-secondary);
}
.split-list li:last-child { border-bottom: 1px solid var(--ledger-rule); }
.split-list b { color: var(--text-primary); font-weight: 600; }

.split-foot {
  text-wrap: pretty;
  margin-top: clamp(1.6rem, 3vw, 2.2rem); text-align: center;
  max-width: 52ch; margin-inline: auto;
  font-size: 1rem; color: var(--text-secondary); line-height: 1.65;
}

/* ==========================================================================
   PROOF BAND: hairline underline that draws under each figure on entry.
   ========================================================================== */
.proof-stat { position: relative; }
.proof-stat::after {
  content: ""; position: absolute; left: 0; bottom: -0.9rem; width: 100%; height: 1px;
  background: var(--accent); opacity: 0.5;
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1s var(--ease-out-expo) 0.15s;
}
.proof-stat.in::after { transform: scaleX(1); }

/* ==========================================================================
   DEMO: the honesty label. Understated on purpose, but unmissable.
   ========================================================================== */
.illus-tag {
  display: flex; gap: 0.7rem; align-items: flex-start;
  margin-top: 1.5rem; padding: 0.85rem 1.1rem;
  border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04);
  font-size: 0.84rem; line-height: 1.55; color: rgba(245,245,247,0.66);
  max-width: 62ch;
}
.illus-mark {
  flex: none; width: 7px; height: 7px; margin-top: 0.45rem; border-radius: 50%;
  background: var(--status-warn); box-shadow: 0 0 0 4px rgba(255,159,10,0.16);
}

/* ==========================================================================
   SOFTWARE PROOF: the receipt ticks draw themselves in.
   Re-uses hiwIconDraw, which had been sitting unused in this stylesheet.
   stroke-dasharray/offset are inherited SVG properties, so animating them on
   the <svg> reaches the <use> shadow content.
   ========================================================================== */
.sw-receipts .receipt-strip .rtick svg { stroke-dasharray: 60; stroke-dashoffset: 60; }
.sw-receipts .receipt-strip.in .rtick svg { animation: hiwIconDraw 0.75s var(--ease-out-expo) 0.15s forwards; }
.sw-receipts .receipt-strip .rtick {
  transform: scale(0.7); opacity: 0;
  transition: transform 0.55s var(--ease-out-expo), opacity 0.55s var(--ease-out-expo);
}
.sw-receipts .receipt-strip.in .rtick { transform: scale(1); opacity: 1; }

/* ==========================================================================
   CAPABILITIES: gradient border-draw on entry, live numeral on hover.
   ========================================================================== */
.cap-card { position: relative; overflow: hidden; }
.cap-card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), rgba(0,113,227,0.06));
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.9s var(--ease-out-expo) 0.1s;
}
.cap-card.in::before { transform: scaleX(1); }
.cap-num {
  display: inline-block;
  transition: transform var(--dur-fast) var(--ease-out-quart), color var(--dur-fast) var(--ease-out-quart);
}
.cap-card:hover .cap-num { transform: translateY(-2px); color: var(--accent-deep); }
.cap-card::after {
  content: ""; position: absolute; left: clamp(1.4rem, 3vw, 1.9rem); top: 2.55rem;
  width: 2.2rem; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left center;
  transition: transform var(--dur-fast) var(--ease-out-quart);
}
.cap-card:hover::after { transform: scaleX(1); }

/* ==========================================================================
   VALUE LEDGER ("what it replaces")
   ========================================================================== */
.value { padding-block: var(--section-pad); background: var(--surface-secondary); }
.value .section-head { max-width: 64ch; }

.ledger { margin-top: clamp(2rem, 4vw, 3rem); }
.ledger-rows { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.ledger-row {
  display: grid; grid-template-columns: minmax(11rem, 1.1fr) minmax(0, 2fr) auto;
  gap: 0.6rem clamp(1rem, 3vw, 2.4rem); align-items: baseline;
  padding: clamp(1.1rem, 2.4vw, 1.5rem) 0;
  border-top: 1px solid var(--ledger-rule);
}
.ledger-row:last-child { border-bottom: 1px solid var(--ledger-rule); }
.ledger-k { font-size: 1.02rem; font-weight: 600; color: var(--text-primary); letter-spacing: -0.01em; }
.ledger-d { font-size: 0.9rem; color: var(--text-secondary); line-height: 1.55; }
.ledger-v {
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.3rem); font-weight: var(--figure-weight);
  color: var(--ledger-struck); white-space: nowrap; text-align: right;
  position: relative;
}
/* The struck-through rule draws itself as the row arrives: these are the costs
   being taken off the table. */
.ledger-v::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 1.5px;
  background: var(--ledger-struck);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.7s var(--ease-out-expo);
}
.ledger.in .ledger-row:nth-child(1) .ledger-v::after { transition-delay: 0.20s; }
.ledger.in .ledger-row:nth-child(2) .ledger-v::after { transition-delay: 0.38s; }
.ledger.in .ledger-row:nth-child(3) .ledger-v::after { transition-delay: 0.56s; }
.ledger.in .ledger-v::after { transform: scaleX(1); }
.ledger-per { font-size: 0.62em; font-weight: 500; color: var(--text-secondary); margin-left: 0.15em; }

.ledger-sum {
  display: grid; grid-template-columns: minmax(11rem, 1.1fr) minmax(0, 2fr) auto;
  gap: 0.6rem clamp(1rem, 3vw, 2.4rem); align-items: baseline;
  margin-top: 0.9rem; padding: clamp(1.3rem, 2.6vw, 1.7rem) clamp(1.2rem, 2.6vw, 1.8rem);
  background: var(--surface-dark); color: var(--text-inverse);
  border-radius: var(--radius-lg);
}
.ledger-sum-k { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.015em; }
.ledger-sum-d { font-size: 0.9rem; color: rgba(245,245,247,0.62); line-height: 1.55; }
.ledger-sum-v {
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem); font-weight: 700;
  white-space: nowrap; text-align: right;
}
.ledger-sum .ledger-per { color: rgba(245,245,247,0.5); }

.payback { margin-top: clamp(1.8rem, 4vw, 2.6rem); max-width: 60ch; }
.payback-line { font-size: 1.05rem; line-height: 1.6; color: var(--text-secondary); }
.payback-fig {
  display: block; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem); font-weight: 700;
  color: var(--text-primary); letter-spacing: -0.03em; margin-bottom: 0.35rem;
}
.payback-note { margin-top: 1.1rem; font-size: 0.82rem; line-height: 1.6; color: var(--text-secondary); }

/* ==========================================================================
   COMPARISON. Rebuilt from scratch on the ledger device; only the row concept
   and the argument come from the concierge page, none of its CSS.
   ========================================================================== */
.compare { padding-block: var(--section-pad); background: var(--surface-primary); }
.compare .section-head { max-width: 62ch; margin-inline: auto; text-align: center; }
.compare .section-kicker { justify-content: center; }
.compare .section-kicker::before { display: none; }
.compare .lead { margin-inline: auto; }

.cmp {
  display: grid; grid-template-columns: 10.5rem repeat(3, minmax(0, 1fr));
  gap: 0 clamp(0.5rem, 1.4vw, 1rem);
  margin-top: clamp(2.2rem, 5vw, 3.2rem);
}
.cmp-rail { display: grid; grid-template-rows: auto repeat(6, 1fr); padding-top: 0; }
.cmp-rail-head { height: 5.6rem; }
.cmp-rail-label {
  display: flex; align-items: center;
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.11em; color: var(--ledger-label);
  border-top: 1px solid var(--cmp-rule); padding: 1.05rem 0;
}
.cmp-col {
  display: grid; grid-template-rows: auto repeat(6, 1fr);
  border-radius: var(--radius-lg); padding: 0 clamp(0.8rem, 1.8vw, 1.2rem) 0.6rem;
}
.cmp-head { height: 5.6rem; display: flex; flex-direction: column; justify-content: center; gap: 0.25rem; }
.cmp-head h3 { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.015em; color: var(--text-primary); }
.cmp-sub { font-size: 0.78rem; color: var(--text-secondary); }
.cmp-cell {
  display: flex; align-items: center;
  border-top: 1px solid var(--cmp-rule); padding: 1.05rem 0;
  font-size: 0.89rem; line-height: 1.5; color: var(--cmp-quiet);
}
.cmp-k {
  /* Visually hidden, NOT display:none: the label rail beside the table is
     aria-hidden, so this is the only thing telling a screen reader which row
     each cell belongs to. It becomes visible again below 980px, where the rail
     is dropped and the table stacks into cards. */
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.11em; color: var(--ledger-label);
}

/* The winner column: lifted and ringed, WITHOUT breaking row alignment.
   The card is drawn as a pseudo-element that bleeds outside the column box, so
   the column's own grid rows stay in step with the other two columns and the
   label rail. (Doing this with margin-top/padding on the column itself knocked
   every winner row ~24px out of line with its neighbours.) */
.cmp-col--win { position: relative; background: transparent; }
.cmp-col--win::before {
  content: ""; position: absolute; inset: -1rem -0.2rem -1rem -0.2rem;
  border-radius: var(--radius-lg); background: var(--cmp-win-bg);
  box-shadow: var(--cmp-win-lift); z-index: 0;
}
.cmp-col--win::after {
  content: ""; position: absolute; inset: -1rem -0.2rem -1rem -0.2rem;
  border-radius: var(--radius-lg); border: 1px solid var(--cmp-win-ring);
  border-top: 3px solid var(--accent); pointer-events: none; z-index: 1;
  opacity: 0; transition: opacity 0.9s var(--ease-out-expo) 0.25s;
}
.cmp.in .cmp-col--win::after { opacity: 1; }
/* Lift the real content above both pseudo-elements. */
.cmp-col--win > * { position: relative; z-index: 2; }
.cmp-col--win .cmp-head h3 { color: var(--accent-deep); }
.cmp-col--win .cmp-cell { color: var(--text-primary); }

.cmp-note {
  display: block; margin-top: clamp(1.8rem, 4vw, 2.6rem);
  max-width: 62rem; padding: clamp(1.1rem, 2.4vw, 1.5rem) clamp(1.2rem, 2.6vw, 1.7rem);
  border-radius: var(--radius-lg); background: var(--surface-secondary);
  border-left: 2px solid var(--accent);
}
.cmp-note-k {
  display: block; font-family: var(--font-mono); font-size: 0.66rem;
  text-transform: uppercase; letter-spacing: 0.12em; color: var(--ledger-label);
  margin-bottom: 0.5rem;
}
.cmp-note p { text-wrap: pretty; font-size: 0.94rem; line-height: 1.62; color: var(--text-secondary); max-width: 68ch; }

/* Read-as-a-comparison strengthening (rebuild 2). Desktop only: column dividers
   and a header underline so the three columns register as a table at a glance,
   not three quiet text blocks on white. Below 980px the columns are already
   bordered cards, so this is scoped to the wide layout. */
@media (min-width: 981px) {
  .cmp-col:not(.cmp-col--win) { border-left: 1px solid var(--cmp-rule); }
  .cmp-head, .cmp-rail-head { border-bottom: 2px solid var(--border-light); }
  .cmp-col--win .cmp-head { border-bottom-color: var(--cmp-win-ring); }
}

/* ==========================================================================
   METERED VS FLAT (API cost, rebuild 2).
   A spend AXIS, not another ledger. The band is the wide, uncertain metered
   range; the pin is the one fixed number. Grouped on the same grey surface as
   the value ledger and split from it by a hairline, because the two are a pair:
   the two honest ways to price the alternative to hiring.
   ========================================================================== */
.apicost {
  padding-block: var(--section-pad); background: var(--surface-secondary);
  border-top: 1px solid var(--hairline);
}
.apicost .section-head { max-width: 60ch; }

.apicost-framing { margin-top: 1.1rem; color: var(--text-primary); font-weight: 500; max-width: 60ch; }

/* ---- Climbing gauge (api cost) ---------------------------------------------
   A single metered figure that climbs, and a horizontal gauge whose fill rockets
   past a fixed $671 reference as intensity rises. Deliberately NOT the odometer:
   the figure here is plain tabular and shifts toward amber as the bill climbs,
   so the two cost sliders read as different instruments. */
.gauge {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
  background: var(--surface-primary);
  border: 1px solid var(--border-light); border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}
.gauge-cap {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.gauge-cap-k {
  font-family: var(--font-mono); font-size: 0.68rem; text-transform: uppercase;
  letter-spacing: 0.11em; color: var(--ledger-label);
}

/* Segmented model toggle. :has drives the active pill; a JS-set .is-on class is
   the fallback for engines without :has. */
.seg {
  display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-secondary);
  border: 1px solid var(--border-light); border-radius: var(--radius-pill);
}
.seg-opt {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; min-height: 44px; padding: 0 0.95rem; border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 560; color: var(--text-secondary);
  transition: color var(--dur-fast) var(--ease-out-quart), background var(--dur-fast) var(--ease-out-quart);
}
.seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg-opt.is-on,
.seg-opt:has(input:checked) { background: var(--surface-primary); color: var(--text-primary); box-shadow: var(--shadow-sm); }
.seg-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.gauge-readout { margin-top: 1.7rem; }
.gauge-fig-line { display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; margin: 0; }
.gauge-fig {
  font-size: clamp(2.4rem, 1.8rem + 2.6vw, 3.6rem); font-weight: 700; line-height: 1;
  letter-spacing: -0.04em; color: var(--gauge-lo); font-variant-numeric: tabular-nums;
  transition: color var(--dur-normal) var(--ease-out-quart);
}
.gauge-fig.is-over { color: var(--gauge-fig-hi); }
.gauge-per { font-size: 0.98rem; color: var(--text-secondary); }
.gauge-sub { margin: 0.55rem 0 0; font-size: 0.9rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

.gauge-bar {
  position: relative; height: 12px; margin-top: 1.7rem; border-radius: var(--radius-pill);
  background: var(--gauge-track);
}
.gauge-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 10%; border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--gauge-lo), var(--gauge-hi) 220px);
  transition: width var(--dur-normal) var(--ease-out-expo);
}
.gauge-ref {
  position: absolute; top: -9px; bottom: -9px; left: 16.78%; width: 0;
  border-left: 2px solid var(--gauge-ref);
}
.gauge-ref-lab {
  position: absolute; left: 8px; top: 100%; margin-top: 9px; white-space: nowrap;
  font-size: 0.72rem; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums;
}
.gauge-verdict {
  margin: 2.8rem 0 0; max-width: 60ch; font-size: 0.96rem; line-height: 1.55;
  color: var(--text-primary); text-wrap: pretty;
}

.gauge-control { margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.gauge-slabel {
  display: block; font-family: var(--font-mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.11em; color: var(--ledger-label); margin-bottom: 0.9rem;
}
.gauge-notches { position: relative; height: 2.5rem; margin-top: 0.35rem; }
.gauge-notch {
  position: absolute; transform: translateX(-50%); text-align: center;
  font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--text-secondary); line-height: 1.35;
}
.gauge-notch:first-child { transform: translateX(0); text-align: left; }
.gauge-notch:last-child { transform: translateX(-100%); text-align: right; }
.gauge-notch b { display: block; font-family: var(--font-system); font-size: 0.82rem; color: var(--text-primary); font-weight: 640; }
.gauge-notch--hi b { color: var(--gate-ink); }

.gauge-tail {
  display: flex; gap: 0.55rem; margin: 1.6rem 0 0; max-width: 60ch;
  font-size: 0.8rem; line-height: 1.5; color: var(--gate-ink);
}
.gauge-tail-mark {
  flex: none; width: 6px; height: 6px; margin-top: 0.45em; border-radius: 50%; background: var(--status-warn);
}

.meter-point { margin-top: clamp(1.8rem, 4vw, 2.6rem); }
.meter-point-lead {
  text-wrap: pretty; max-width: 74ch;
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.14rem); line-height: 1.6; color: var(--text-primary);
}
.meter-work { margin-top: 1.4rem; border-top: 1px solid var(--ledger-rule); max-width: 78ch; }
.meter-work summary {
  list-style: none; cursor: pointer; padding: 1rem 0;
  display: flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-mono); font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent-deep);
}
.meter-work summary::-webkit-details-marker { display: none; }
.meter-work summary::before {
  content: ""; width: 7px; height: 7px; flex: none; margin-top: -2px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(-45deg); transition: transform var(--dur-fast) var(--ease-out-quart);
}
.meter-work[open] summary::before { transform: rotate(45deg); }
.meter-work summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.meter-work-body { padding-bottom: 0.4rem; }
.meter-work-body p { font-size: 0.9rem; line-height: 1.65; color: var(--text-secondary); max-width: 74ch; }
.meter-table {
  width: 100%; border-collapse: collapse; margin: 1.2rem 0;
  font-size: 0.88rem; font-variant-numeric: tabular-nums;
}
.meter-table th, .meter-table td {
  text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--ledger-rule);
}
.meter-table thead th {
  font-family: var(--font-mono); font-size: 0.64rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--ledger-label); font-weight: 500;
}
.meter-table th:not(:first-child), .meter-table td:not(:first-child) { text-align: right; }
.meter-table tbody td:first-child { color: var(--text-primary); }
.meter-work-note { margin-top: 0.8rem; font-size: 0.82rem; color: var(--text-secondary); }

/* ==========================================================================
   COST SLIDER.
   A native range input, restyled end to end. The rail, the fill and the stepped
   bars are separate layers underneath; the input itself is transparent except
   for its thumb, so keyboard, touch and screen readers work by construction.
   ========================================================================== */
.costs { padding-block: var(--section-pad); background: var(--surface-secondary); }
.costs .section-head { max-width: 62ch; }

.calc {
  margin-top: clamp(2rem, 4vw, 3rem);
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start;
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
  background: var(--surface-primary);
  border: 1px solid var(--border-light); border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-md);
}

.calc-label {
  display: block; font-family: var(--font-mono); font-size: 0.68rem;
  text-transform: uppercase; letter-spacing: 0.11em; color: var(--ledger-label);
}
.calc-hours {
  display: block; margin-top: 0.5rem;
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.7rem); font-weight: 700;
  letter-spacing: -0.035em; color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* ---- Tactile slider (shared by both cost sliders) --------------------------
   A recessed groove, an accent fill, and a raised knob with real depth. The
   native range sits on top, transparent apart from its knob, so keyboard, touch
   and assistive tech all work by construction. The box is 44px tall for the
   touch target even though the knob reads smaller. */
.calc-slider { margin-top: clamp(1.4rem, 3vw, 2rem); }
.tslider { position: relative; height: 44px; display: flex; align-items: center; }
.tslider-groove {
  position: absolute; left: 0; right: 0; top: 50%; height: var(--slider-h);
  transform: translateY(-50%); border-radius: var(--radius-pill);
  background: var(--tslider-groove);
  box-shadow: inset 0 1px 2px var(--tslider-groove-in);
  overflow: hidden;
}
.tslider-fill {
  display: block; height: 100%; width: 30%; background: var(--tslider-fill);
  border-radius: var(--radius-pill);
  transition: width var(--dur-fast) var(--ease-out-quart);
}
.tslider-fill--api { background: linear-gradient(90deg, var(--gauge-lo), var(--gauge-hi)); }

/* #costs detent rail: a machined groove with evenly spaced stops and NO fill, so
   nothing accumulates left to right and it cannot read as a filling level meter.
   The knob is the only thing that moves. */
.tslider-groove--detent {
  height: 10px; background: var(--tslider-groove);
  box-shadow: inset 0 1px 2px var(--tslider-groove-in);
}
.tslider-groove--detent::before {
  content: ""; position: absolute; left: 15px; right: 15px; top: 50%; height: 10px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg,
    var(--detent-tick) 0 1.5px, transparent 1.5px, transparent 10%);
}

.calc-range, .api-range {
  position: relative; z-index: 1; width: 100%; height: 44px; display: block;
  margin: 0; padding: 0; background: transparent;
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.calc-range:focus, .api-range:focus { outline: none; }
.calc-range::-webkit-slider-runnable-track,
.api-range::-webkit-slider-runnable-track { height: 44px; background: transparent; border: none; }
.calc-range::-moz-range-track,
.api-range::-moz-range-track { height: 44px; background: transparent; border: none; }

/* The knob: a white disc with a soft top-light, a hairline ring and a layered
   depth shadow so it feels raised off the groove rather than painted on. */
.calc-range::-webkit-slider-thumb,
.api-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: var(--slider-thumb-d); height: var(--slider-thumb-d); border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, #ffffff, #f1f1f4 78%);
  border: 1px solid var(--slider-thumb-ring);
  box-shadow: var(--slider-thumb-shadow);
  margin-top: calc((44px - var(--slider-thumb-d)) / 2);
  transition: transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);
}
.calc-range::-moz-range-thumb,
.api-range::-moz-range-thumb {
  width: var(--slider-thumb-d); height: var(--slider-thumb-d); border-radius: 50%;
  background: radial-gradient(circle at 50% 34%, #ffffff, #f1f1f4 78%);
  border: 1px solid var(--slider-thumb-ring);
  box-shadow: var(--slider-thumb-shadow);
  transition: transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-fast) var(--ease-out-quart);
}
.calc-range:hover::-webkit-slider-thumb,
.api-range:hover::-webkit-slider-thumb { transform: scale(1.07); }
.calc-range:hover::-moz-range-thumb,
.api-range:hover::-moz-range-thumb { transform: scale(1.07); }
.calc-range:active::-webkit-slider-thumb,
.api-range:active::-webkit-slider-thumb { transform: scale(0.96); box-shadow: var(--slider-thumb-shadow), inset 0 1px 3px rgba(0,0,0,0.12); }
.calc-range:active::-moz-range-thumb,
.api-range:active::-moz-range-thumb { transform: scale(0.96); box-shadow: var(--slider-thumb-shadow), inset 0 1px 3px rgba(0,0,0,0.12); }
/* Visible focus ring, in the accent, meeting the same standard as the buttons. */
.calc-range:focus-visible::-webkit-slider-thumb,
.api-range:focus-visible::-webkit-slider-thumb {
  box-shadow: var(--slider-thumb-shadow), 0 0 0 4px var(--accent-glow); border-color: var(--accent);
}
.calc-range:focus-visible::-moz-range-thumb,
.api-range:focus-visible::-moz-range-thumb {
  box-shadow: var(--slider-thumb-shadow), 0 0 0 4px var(--accent-glow); border-color: var(--accent);
}

/* ---- Odometer worth counter -------------------------------------------------
   The worth figure is a row of mechanical reels. Each reel is a vertical strip
   of 0-9; a changed digit rolls the strip to its new number on an exponential
   settle, and while it rolls a speed-scaled blur reads as motion. The price
   figure below it has none of this and never moves: the contrast is the pitch. */
/* The odometer carries a permanent mechanical tell even at rest: the digits sit
   in a shallow recessed window with a curved top/bottom shade (the wheel falling
   away), and consecutive reels are separated by a hairline seam. So a still frame
   still reads as a counter, not as bold text. */
.odo {
  position: relative; display: inline-flex; align-items: center; line-height: 1;
  font-variant-numeric: tabular-nums;
  padding: 0.1em 0.16em; border-radius: 0.18em;
  background: rgba(0, 0, 0, 0.02);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.06), inset 0 -1px 2px rgba(0,0,0,0.05);
}
.odo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(180deg,
    var(--odo-window) 0%, transparent 30%, transparent 70%, var(--odo-window) 100%);
}
.odo-sym { display: inline-block; }
.odo-d { position: relative; display: inline-block; height: 1em; width: 1ch; overflow: hidden; }
/* Hairline seam between two adjacent reels (a wheel bank like 3 7 6), not around
   isolated digits, so it groups rather than clutters. */
.odo-d + .odo-d { box-shadow: inset 1px 0 0 var(--odo-seam); }
.odo-strip {
  display: block; will-change: transform;
  transition: transform var(--odo-roll-dur) var(--ease-out-expo), filter var(--dur-fast) linear;
}
.odo-strip span { display: block; height: 1em; text-align: center; }
.odo.is-rolling .odo-strip { filter: blur(var(--odo-blur, 0px)); }

.calc-scale {
  display: flex; justify-content: space-between; margin-top: 0.7rem;
  font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--text-secondary);
}

/* The worth odometer, placed directly under the slider so cause (dragging the
   knob) and effect (the reels spinning) sit in one eyeline. It is the loud,
   moving thing; the price row in the other column is the quiet, still thing. */
.calc-worth {
  margin-top: clamp(1.5rem, 3.4vw, 2.3rem);
  padding-top: 1.3rem; border-top: 1px solid var(--ledger-rule);
}
.calc-worth-k { display: block; font-size: 0.9rem; color: var(--text-secondary); }
.calc-worth-v {
  display: block; margin-top: 0.45rem;
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.1rem); font-weight: 700;
  color: var(--accent-deep); letter-spacing: -0.035em; line-height: 1.05;
}
.calc-worth-per { display: block; margin-top: 0.35rem; font-size: 0.76rem; color: var(--text-secondary); }

/* The receipt: ledger rows, none of which ever moves. It stretches to the full
   height of the taller control column and pushes its small print to the base, so
   the two columns resolve at the same bottom edge instead of leaving an L-shaped
   void. On one column (<=980px) it collapses back to natural flow. */
.calc-receipt {
  align-self: stretch; display: flex; flex-direction: column; justify-content: space-between;
  border-top: 1px solid var(--ledger-rule);
}
.calc-receipt-rows { display: block; }
.calc-row {
  display: grid; grid-template-columns: 1fr auto; align-items: baseline;
  gap: 0.2rem 1rem; padding: 0.95rem 0; border-bottom: 1px solid var(--ledger-rule);
}
.calc-k { font-size: 0.9rem; color: var(--text-secondary); }
.calc-v {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.05rem); font-weight: 700;
  color: var(--text-primary); text-align: right; line-height: 1.05;
}
.calc-v--worth { color: var(--accent-deep); }
.calc-per { grid-column: 2; font-size: 0.76rem; color: var(--text-secondary); text-align: right; }
.calc-row--flat .calc-v { color: var(--text-primary); }
/* The quiet row is quiet by size and weight, not by fading it under AA. */
.calc-row--quiet .calc-k, .calc-row--quiet .calc-per { color: var(--text-secondary); }
.calc-row--quiet .calc-v { font-size: 1.1rem; font-weight: 600; color: var(--text-secondary); }
/* The price row is deliberately inert: no transition, no motion, ever. The
   asymmetry against the rolling worth odometer is the whole argument. */
.calc-row--flat .calc-v--price { transition: none; }

/* Spans the whole card so the two columns are not forced to different heights. */
.calc-foot {
  text-wrap: pretty; grid-column: 1 / -1; margin-top: 0.4rem; padding-top: 1.2rem;
  border-top: 1px solid var(--ledger-rule);
  font-size: 0.82rem; line-height: 1.6; color: var(--text-secondary); max-width: 78ch;
}
/* Anchors the base of the receipt column; margin only applies once it is not
   already pushed to the bottom by the column's space-between (i.e. on mobile). */
.calc-subnote { margin-top: 1.6rem; }

/* ---- Small print (Claude subscription disclosure) --------------------------
   Genuine small print, not a callout box. Amber ink (the AA-verified --gate-ink)
   and a single small amber dot, no coloured panel, so it sits quietly beneath the
   claim it qualifies. */
.sub-note {
  display: flex; gap: 0.5rem; margin-top: 1.1rem; max-width: 72ch;
  font-size: 0.78rem; line-height: 1.55; color: var(--gate-ink);
}
.sub-note::before {
  content: ""; flex: none; width: 6px; height: 6px; margin-top: 0.45em;
  border-radius: 50%; background: var(--status-warn);
}
.value-subnote { margin-top: 1.4rem; }

/* ==========================================================================
   INDUSTRIES: the live card is the only one that reacts to you.
   ========================================================================== */
.ind-card--live { transition: transform var(--dur-fast) var(--ease-out-quart), box-shadow var(--dur-normal) var(--ease-out-quart), border-color var(--dur-normal) var(--ease-out-quart); }
.ind-status--live::before { animation: pulsedot 2.4s var(--ease-out-quart) infinite; }
.ind-status--live::after {
  content: ""; position: absolute; left: 0.62rem; top: 50%; width: 6px; height: 6px;
  margin-top: -3px; border-radius: 50%; background: var(--status-good);
  animation: indRing 2.4s var(--ease-out-quart) infinite; pointer-events: none;
}
@keyframes indRing {
  0% { transform: scale(1); opacity: 0.45; }
  70%, 100% { transform: scale(3.4); opacity: 0; }
}
/* The two in-build cards read visibly quieter: less contrast, no lift, no icon tint. */
.ind-card--soon { opacity: 0.86; transition: opacity var(--dur-fast) var(--ease-out-quart); }
.ind-card--soon .ind-name { color: var(--text-secondary); }
.ind-card--soon:hover { opacity: 1; }

/* ==========================================================================
   TRUST, REBUILT: the spine.
   Was three bare text columns with no background, border, radius, padding or
   shadow. Now a vertical rail that lights as you scroll, discs whose icons draw
   themselves stroke by stroke, and phases NAMED rather than numbered, because
   this is a real sequence in time.
   ========================================================================== */
.trust { padding-block: var(--section-pad); background: var(--surface-primary); border-bottom: 1px solid var(--border-faint); }
.trust-head { max-width: 60ch; margin-inline: auto; text-align: center; }
.trust-head .section-kicker { justify-content: center; }
.trust-head .section-kicker::before { display: none; }
.trust-head .lead { margin-inline: auto; }

.spine { list-style: none; margin: clamp(2.4rem, 5vw, 3.6rem) 0 0; padding: 0; max-width: 46rem; margin-inline: auto; }
.spine-node { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: clamp(1.2rem, 3vw, 2rem); padding-bottom: clamp(2.4rem, 5vw, 3.4rem); }
.spine-node:last-child { padding-bottom: 0; }

/* The rail runs from this node's disc down to the next one. */
.spine-rail {
  position: absolute; left: 31px; top: 64px; bottom: 0; width: 1px;
  background: var(--spine-line);
}
.spine-node:last-child .spine-rail { display: none; }
.spine-rail-fill {
  position: absolute; inset: 0; background: var(--spine-line-lit);
  transform: scaleY(0); transform-origin: top center;
  transition: transform 1.1s var(--ease-out-expo) 0.25s;
}
.spine-node.in .spine-rail-fill { transform: scaleY(1); }

.spine-disc {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--spine-node); border: 1px solid var(--spine-node-ring);
  color: var(--text-muted); box-shadow: var(--shadow-sm);
  transition: color var(--dur-slow) var(--ease-out-quart), border-color var(--dur-slow) var(--ease-out-quart), box-shadow var(--dur-slow) var(--ease-out-quart);
}
.spine-node.in .spine-disc {
  color: var(--accent); border-color: var(--accent);
  box-shadow: 0 0 0 6px var(--accent-subtle);
}
.spine-icon { width: 28px; height: 28px; }
/* Icons draw themselves in. hiwIconDraw was already in this stylesheet and unused. */
.spine-icon path, .spine-icon rect { stroke-dasharray: 60; stroke-dashoffset: 60; }
.spine-node.in .spine-icon path,
.spine-node.in .spine-icon rect { animation: hiwIconDraw var(--spine-draw-dur) var(--ease-out-expo) 0.2s forwards; }
.spine-node.in .spine-icon path:nth-child(2) { animation-delay: 0.34s; }
.spine-node.in .spine-icon path:nth-child(3) { animation-delay: 0.46s; }
.spine-node.in .spine-icon path:nth-child(4) { animation-delay: 0.58s; }

.spine-body { padding-top: 0.35rem; }
.spine-phase {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.13em; color: var(--accent);
}
.spine-body h3 {
  text-wrap: balance;
  margin-top: 0.55rem; font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.6rem);
  font-weight: 600; letter-spacing: -0.02em; color: var(--text-primary); line-height: 1.2;
}
.spine-text { text-wrap: pretty; margin-top: 0.7rem; font-size: 0.98rem; line-height: 1.68; color: var(--text-secondary); max-width: 52ch; }

/* ==========================================================================
   FORM STATES (real POST, not a mailto)
   ========================================================================== */
.form-submit { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; }
.form-submit[disabled] { opacity: 0.62; cursor: progress; }
.form-spinner {
  width: 15px; height: 15px; border-radius: 50%; display: none; flex: none;
  border: 2px solid rgba(255,255,255,0.35); border-top-color: #fff;
  animation: formSpin 0.7s linear infinite;
}
@keyframes formSpin { to { transform: rotate(360deg); } }
#screeningForm[data-state="sending"] .form-spinner { display: block; }
#screeningForm[data-state="sending"] .form-submit-label::after { content: "\2026"; }
#screeningForm[data-state="sent"] .form-submit-label::before { content: "\2713\00a0"; }

.form-status {
  grid-column: 1 / -1; margin-top: 0.6rem; text-align: center;
  font-size: 0.85rem; line-height: 1.5; min-height: 1.2em;
}
#screeningForm[data-state="sent"] .form-status { color: var(--auto-ink); }
#screeningForm[data-state="error"] .form-status { color: #b3261e; }
#screeningForm[data-state="sending"] .form-status { color: var(--text-muted); }
#screeningForm[data-state="error"] .form-input:invalid,
#screeningForm[data-state="error"] .form-input:placeholder-shown:required { border-color: rgba(179,38,30,0.45); }

/* ==========================================================================
   RESPONSIVE (new sections)
   ========================================================================== */
@media (max-width: 980px) {
  .split-grid { grid-template-columns: 1fr; }
  .calc { grid-template-columns: 1fr; }
  /* One column: the receipt returns to natural flow (no stretch, no split). */
  .calc-receipt { align-self: auto; justify-content: flex-start; }
  /* The label rail is desktop-only; each column carries its own labels below. */
  .cmp { grid-template-columns: 1fr; gap: clamp(1rem, 3vw, 1.5rem); }
  .cmp-rail { display: none; }
  .cmp-col {
    grid-template-rows: none; border: 1px solid var(--border-light);
    padding: 0 clamp(1rem, 3vw, 1.4rem) 1rem;
  }
  .cmp-col--win { margin-top: 0; border-color: var(--cmp-win-ring); }
  .cmp-col--win::after { opacity: 1; }
  .cmp-head { height: auto; padding: 1.3rem 0 0.9rem; }
  .cmp-cell { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.9rem; align-items: baseline; }
  .cmp-k {
    position: static; width: auto; height: auto; overflow: visible;
    clip: auto; clip-path: none; white-space: normal;
  }
}
@media (max-width: 720px) {
  .ledger-row, .ledger-sum { grid-template-columns: 1fr auto; }
  .ledger-d { grid-column: 1 / -1; order: 3; }
  .ledger-sum-d { grid-column: 1 / -1; order: 3; }
  .spine-node { grid-template-columns: 48px 1fr; gap: 1rem; }
  .spine-disc { width: 48px; height: 48px; }
  .spine-icon { width: 22px; height: 22px; }
  .spine-rail { left: 23px; top: 48px; }
  .cmp-cell { grid-template-columns: 1fr; gap: 0.25rem; }
  .calc { padding: clamp(1.1rem, 4vw, 1.6rem); }
  .calc-scale span:nth-child(2) { display: none; }
  /* Gauge padding and readout tighten; the model toggle drops below the caption
     label when the two cannot share a line. */
  .gauge { padding: clamp(1.1rem, 4vw, 1.6rem); }
  .gauge-cap { align-items: flex-start; }
  .gauge-notch:not(:first-child):not(:last-child) { font-size: 0.55rem; }
}

/* ==========================================================================
   REDUCED MOTION (new sections). Everything resolves to its finished state.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .batch-item { opacity: 1 !important; transform: none !important; }
  .proof-stat::after,
  .cap-card::before,
  .ledger.in .ledger-v::after,
  .spine-node.in .spine-rail-fill { transform: scaleX(1) scaleY(1) !important; }
  .spine-rail-fill { transform: scaleY(1) !important; }
  .cmp-col--win::after { opacity: 1 !important; }
  .sw-receipts .receipt-strip .rtick { opacity: 1 !important; transform: none !important; }
  .sw-receipts .receipt-strip .rtick svg,
  .spine-icon path, .spine-icon rect {
    animation: none !important; stroke-dasharray: none !important; stroke-dashoffset: 0 !important;
  }
  .split-badge--auto .split-dot,
  .ind-status--live::before,
  .ind-status--live::after { animation: none !important; }
  .ind-status--live::after { display: none; }
  .form-spinner { animation: none !important; }
  /* The two sliders resolve to their finished state with no roll and no blur. */
  .odo-strip { transition: none !important; filter: none !important; }
  .gauge-fill, .tslider-fill, .gauge-fig { transition: none !important; }
}

/* --------------------------------------------------------------------------
   Off-screen animation parking (set by initLoopParking in hub.js).
   Infinite loops keep the compositor working even for sections nobody is
   looking at, and this page is roughly 12,000px tall. The class is applied to
   the element itself and to its pseudo-elements, which is where several of the
   dots and rings actually live.
   -------------------------------------------------------------------------- */
.anim-parked,
.anim-parked::before,
.anim-parked::after { animation-play-state: paused !important; }

/* The receipt strip keeps its three-column grid down to 375px, where the label
   column squeezes the line into a four-word ribbon. Stack it below 560px. */
@media (max-width: 560px) {
  .receipt-strip { grid-template-columns: auto 1fr; row-gap: 0.5rem; }
  .receipt-strip .rline, .sw-receipts .receipt-strip .rline { grid-column: 1 / -1; }
  .sw-receipts .receipt-strip { grid-template-columns: auto 1fr; }
}

/* Combined model label (replaces the Sonnet / Opus toggle, 6 Nov 2026) */
.gauge-cap-model { font-size: 0.85rem; opacity: 0.75; letter-spacing: 0.01em; }

/* ---- MEET THE TEAM (6 Nov 2026) ---- */
.team { padding: clamp(64px, 10vw, 120px) 0; background: var(--surface-secondary); }
.team-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.team-card { display: grid; grid-template-columns: 36px 1fr; column-gap: 12px; row-gap: 2px; align-items: start;
  padding: 16px; background: var(--surface-primary); border-radius: var(--radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.06); }
.team-initial { grid-row: span 2; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 600; font-size: 0.95rem; color: var(--accent); background: var(--accent-subtle); }
.team-name { font-weight: 600; font-size: 0.98rem; color: var(--text-primary); line-height: 1.3; }
.team-role { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.4; }
.team-note { margin-top: 20px; font-size: 0.82rem; color: var(--text-muted); }
@media (max-width: 520px) {
  .team-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .team-card { grid-template-columns: 1fr; padding: 12px; }
  .team-initial { grid-row: auto; width: 30px; height: 30px; font-size: 0.85rem; margin-bottom: 6px; }
  .team-role { font-size: 0.82rem; }
}

/* 52b logo in the header and footer (6 Nov 2026) */
.brand-mark--img { display: block; border-radius: 22%; object-fit: cover; }

/* ---- STATIC PHONE DEMO (6 Nov 2026): flat frame like the e-commerce page, no tilt, flip, glare or drop shadow ---- */
.demo--static .demo-track { height: var(--demo-track-h, 330vh); }
.demo--static .phone-persp { perspective: none; }
.demo--static .phone-tilt { transform: none !important; will-change: auto; }
.demo--static .phone-frame { border-radius: 40px; box-shadow: 0 0 0 10px #0a0a0a, 0 0 0 12px #3a3a3c, var(--shadow-xl); }
.demo--static .phone-frame::after, .demo--static .phone-shadow, .demo--static .phone-still { display: none; }
.demo--static .phone-panel { transition: opacity 0.35s ease; }
/* Keep the whole phone in view under the sticky header on any screen height. */
.demo--static .phone-frame { max-width: min(360px, calc((100vh - 150px) * 390 / 800)); }

/* ---- HERO INTRO + LOGO HAND-OFF (6 Nov 2026, hero-intro.js) ---- */
.hero-lockup { display: inline-flex; align-items: center; justify-content: center; gap: 0.32em;
  font-size: clamp(2.9rem, 1.4rem + 7.4vw, 7rem); }
.hero-lockup .hero-wordmark { font-size: 1em; }
.hero-mark-slot { flex: none; display: block; height: 1.02em; width: calc(1.02em * 251 / 269); }
.cx-intro-stage { position: absolute; z-index: 2; pointer-events: none; transform-origin: 0 0; mix-blend-mode: screen; }
.hero.cx-intro { background: #01020a; }
.hero.cx-intro::before { opacity: 0; }
.hero.cx-intro.cx-intro-done::before { opacity: 1; transition: opacity 1.4s ease; }
.cx-intro-stage video { display: block; width: 100%; height: 100%; }
.cx-intro-stage.is-clipped { clip-path: var(--clip); -webkit-clip-path: var(--clip); }
.cx-mark-flier { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; opacity: 0; will-change: transform, opacity; }
/* Intro states */
.cx-intro .cx-hero-canvas { opacity: 0; transition: none; }
.cx-intro .hero-inner > *:not(.hero-wordmark) { animation: none; opacity: 0; transform: translateY(10px);
  transition: opacity 0.9s ease, transform 0.9s ease; }
.cx-intro .hero-wordmark { animation: none; opacity: 0; transition: opacity 1.1s ease; }
.cx-intro .hero-wordmark .hero-mark-slot { visibility: visible; }
.cx-intro.cx-intro-word .hero-wordmark { opacity: 1; }
.cx-intro.cx-intro-done .cx-hero-canvas { opacity: 1; transition: opacity 2.6s ease 0.3s; }
.cx-intro.cx-intro-done .hero-inner > *:not(.hero-wordmark) { opacity: 1; transform: none; }
.cx-intro.cx-intro-done .hero-inner > .hero-lead { transition-delay: 0.25s; }
.cx-intro.cx-intro-done .hero-inner > .hero-blurb { transition-delay: 0.4s; }
.cx-intro.cx-intro-done .hero-inner > .hero-cta { transition-delay: 0.55s; }
.cx-intro.cx-intro-done .hero-inner > .hero-chips { transition-delay: 0.7s; }
.cx-intro.cx-intro-instant *, .cx-intro.cx-intro-instant .hero-inner > * { transition: none !important; }
.cx-intro.cx-flying .cx-intro-stage, .cx-intro.cx-flying .hero-mark-slot.is-still { opacity: 0; }
.hero-mark-slot.is-still { background: url("assets/brand/mark_52b_core.png") center / calc(100% * 276 / 251) auto no-repeat; }
@media (max-width: 720px) {
  .hero-lockup { font-size: clamp(2rem, 8.6vw, 3.4rem); gap: 0.28em; }
  .hero-lockup .hero-wordmark { letter-spacing: 0.16em; text-indent: 0.16em; }
}

/* Logo C as the first letter of the wordmark (6 Nov 2026): letter-sized, sitting a touch low. */
.hero-wordmark.has-mark { white-space: nowrap; }
.hero-wordmark.has-mark .hero-mark-slot { display: inline-block; height: 0.8em; width: calc(0.8em * 251 / 269);
  vertical-align: -0.09em; margin-right: 0.27em; }
@media (max-width: 460px) { .hero-wordmark.has-mark .hero-mark-slot { margin-right: 0.2em; } }

/* Hero copy sits ~15% lower; the particle wave stays where it is (owner, 6 Nov 2026). */
.hero { padding-top: calc(clamp(6rem, 16vh, 11.5rem) + (100svh - 88px) * 0.15); }

/* ---- DEMO: no scroll lock, day buttons (6 Nov 2026) ---- */
.demo--static .demo-track { height: auto; }
.demo--static .demo-viewport { position: static; height: auto; overflow: visible; display: block; }
.demo--static .phone-frame { max-width: 320px; }
.demo--static .caption-col { min-height: 420px; }
.day-tabs { display: flex; justify-content: center; gap: 6px; margin: 0 auto 2rem; padding: 4px; width: max-content;
  border-radius: var(--radius-pill); background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.10); }
.day-tab { appearance: none; border: 0; cursor: pointer; padding: 0.55rem 1.15rem; border-radius: var(--radius-pill);
  background: transparent; color: rgba(245,245,247,0.72); font: inherit; font-size: 0.92rem; font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease; }
.day-tab:hover { color: #f5f5f7; }
.day-tab.is-on { background: var(--accent); color: #fff; }
.day-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 760px) {
  .demo--static .phone-frame { max-width: 260px; }
  .demo--static .caption-col { min-height: 0; }
  .demo--static .day-block { position: relative; inset: auto; display: none; }
  .demo--static .day-block.is-active { display: flex; }
  .demo--static .day-block .beat { display: flex; }
}

/* Team icons from the Cortexia app on the app's dark tile (6 Nov 2026) */
.team-card .team-ico { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #2a2f3d, #12141b 70%); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.team-card .team-ico img { width: 28px; height: 28px; display: block; }
.team-card .team-ico--line { color: #e6ecff; }
.team-card .team-ico--line .team-line { width: 22px; height: 22px; display: block; }
.team-card .team-ico--init { color: #cfd8ff; font-weight: 600; font-size: 0.95rem; }
@media (max-width: 520px) { .team-card .team-ico { grid-row: auto; width: 34px; height: 34px; margin-bottom: 6px; }
  .team-card .team-ico img { width: 24px; height: 24px; } }

/* Less vertical dead space between sections (owner, 6 Nov 2026): was clamp(80px, 12vw, 160px). */
:root { --section-pad: clamp(52px, 7.5vw, 104px); }
.team { padding: var(--section-pad) 0; }
.section-head { margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }

/* Footer statement (6 Nov 2026) */
.foot-built { margin: 0.4rem 0 0.2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  font-size: clamp(1.35rem, 1rem + 1.6vw, 2.1rem); color: var(--text-primary); }
.foot-built .foot-brand { background: linear-gradient(90deg, #22d3ee, #8b5cf6); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: 0.04em; }
.footer-in { flex-wrap: wrap; row-gap: 1.2rem; }
.footer-in .foot-built { order: -1; flex-basis: 100%; text-align: center; margin: 0 0 0.6rem; }
