/* =====================================================
   FrontFoot — Web v2 (rebrand on FF design system)
   Cream/Ink/Signal · Geist single-typeface system
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Geist:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Geist+Mono:wght@400;500&display=swap');

:root {
  /* Ink */
  --ink:        #14110F;
  --ink-2:      #2A2522;
  --ink-3:      #4A423D;
  --ink-4:      #6F6862;
  --ink-5:      #A39B91;

  /* Paper */
  --paper:      #FBF8F2;
  --cream:      #F5F0E8;
  --cream-2:    #EBE4D6;
  --white:      #FFFFFF;

  /* Signal */
  --signal:      #1A3A6B;
  --signal-deep: #0F2547;
  --signal-soft: #DCE3EE;

  /* Functional */
  --good:       #2D7A4A;
  --good-soft:  #E0EFE3;
  --warn:       #B5811A;
  --bad:        #A8331F;
  --bad-soft:   #F2DAD2;

  /* Rules */
  --rule:       rgba(20, 17, 15, 0.10);
  --rule-2:     rgba(20, 17, 15, 0.05);
  --rule-ink:   rgba(251, 248, 242, 0.10);
  --rule-ink-2: rgba(251, 248, 242, 0.18);

  /* Type — single-typeface system. --serif is kept as a token name
     so existing rules don't break, but resolves to Geist. Use
     italic + tighter letter-spacing for editorial headlines instead
     of a separate serif face. */
  --serif: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --sans:  'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:  'Geist Mono', ui-monospace, monospace;

  --max-w:     1240px;
  --pad:       32px;
  --section-y: 112px;

  --ease:      cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-fast:    180ms var(--ease);
  --t-med:     300ms var(--ease);
  --t-slow:    520ms var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
section[id] { scroll-margin-top: 80px; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.section { padding: var(--section-y) 0; }
.bg-paper { background: var(--paper); }
.bg-cream { background: var(--cream); }
.bg-ink   { background: var(--ink); color: var(--paper); }


/* =====================================================
   Type primitives
   ===================================================== */
.serif       { font-family: var(--serif); }
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.eyebrow.signal { color: var(--signal); }
.eyebrow.on-ink { color: var(--ink-5); }
.num {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.num.on-ink { color: var(--ink-5); }
.num.signal { color: var(--signal); }


/* =====================================================
   Buttons
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1;
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  text-decoration: none;
  transition: background var(--t-fast), color var(--t-fast),
              border-color var(--t-fast), transform var(--t-fast);
}
.btn-arrow { display: inline-block; transition: transform var(--t-fast); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-signal {
  background: var(--signal);
  color: var(--paper);
  border-color: var(--signal);
}
.btn-signal:hover {
  background: var(--signal-deep);
  border-color: var(--signal-deep);
}

.btn-ink {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.btn-ink:hover {
  background: var(--ink-2);
  border-color: var(--ink-2);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--rule);
}
.btn-ghost:hover {
  border-color: var(--ink);
}

.btn-ghost-on-ink {
  background: transparent;
  color: var(--paper);
  border-color: var(--rule-ink-2);
}
.btn-ghost-on-ink:hover {
  border-color: var(--paper);
  background: rgba(251, 248, 242, 0.04);
}

.btn-sm { padding: 10px 16px; font-size: 13px; }


/* =====================================================
   Logo mark — chevron-bracket
   The mark uses a viewBox tightly cropped to the geometry.
   Two strokes form a [ shape; together with the F-wordmark
   they read as a bracket-and-letter.
   ===================================================== */
/* =====================================================
   Logo mark · Bracket Alt
   The <symbol> paths use var(--mark-left), var(--mark-dot),
   var(--mark-right) so we can re-color them via the parent
   <svg>'s custom properties. CSS class selectors do NOT cross
   into the shadow DOM that <use> creates — but custom-property
   inheritance does.
   ===================================================== */
.mark-svg {
  display: block;
  --mark-left:  var(--ink-3);
  --mark-right: var(--ink);
  --mark-dot:   var(--signal);
}

/* On dark backgrounds — paper brackets, signal dot.
   The "white version" of the mark. */
.mark-svg.on-ink {
  --mark-left:  rgba(251, 248, 242, 0.55);
  --mark-right: var(--paper);
  --mark-dot:   var(--signal);
}

/* Single-color override (e.g. forced monochrome). */
.mark-svg.mono {
  --mark-left:  currentColor;
  --mark-right: currentColor;
  --mark-dot:   var(--signal);
  opacity: 1;
}


/* =====================================================
   Navigation
   ===================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 18px 0;
  transition: background var(--t-fast), border-color var(--t-fast), padding var(--t-fast);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  padding: 10px 0;
  background: rgba(251, 248, 242, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
/* Wordmark · Geist 500/600 split — emphasises "Foot" to mirror the heavy
   right-bracket dot in the mark. See BRAND_GUIDELINES.md §2.3. */
.nav-logo-text {
  font-family: var(--sans);
  font-size: 17px;
  letter-spacing: -0.025em;
  color: var(--paper);
  transition: color var(--t-fast);
}
.nav-logo-text .ff-front { font-weight: 500; }
.nav-logo-text .ff-foot  { font-weight: 600; }
.nav.scrolled .nav-logo-text { color: var(--ink); }

.nav-links {
  display: flex; align-items: center; gap: 32px;
}
.nav-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.005em;
  color: rgba(251, 248, 242, 0.65);
  transition: color var(--t-fast);
}
.nav-link:hover { color: var(--paper); }
.nav.scrolled .nav-link { color: var(--ink-3); }
.nav.scrolled .nav-link:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-login {
  font-size: 14px;
  font-weight: 400;
  color: rgba(251, 248, 242, 0.65);
  transition: color var(--t-fast);
}
.nav-login:hover { color: var(--paper); }
.nav.scrolled .nav-login { color: var(--ink-3); }
.nav.scrolled .nav-login:hover { color: var(--ink); }

/* The CTA flips: ghost-on-ink in hero, signal when scrolled */
.nav .btn-nav {
  background: transparent;
  color: var(--paper);
  border-color: var(--rule-ink-2);
  padding: 10px 18px;
  font-size: 13px;
}
.nav .btn-nav:hover {
  border-color: var(--paper);
  background: rgba(251, 248, 242, 0.05);
}
.nav.scrolled .btn-nav {
  background: var(--signal);
  color: var(--paper);
  border-color: var(--signal);
}
.nav.scrolled .btn-nav:hover {
  background: var(--signal-deep);
  border-color: var(--signal-deep);
}

/* Mark color shift on scrolled nav */
.nav .mark-svg {
  --mark-left:  rgba(245, 240, 232, 0.5);
  --mark-right: var(--paper);
  --mark-dot:   var(--signal);
}
.nav.scrolled .mark-svg {
  --mark-left:  var(--ink-3);
  --mark-right: var(--ink);
  --mark-dot:   var(--signal);
}

.nav-hamburger {
  display: none; flex-direction: column; justify-content: center;
  align-items: center; gap: 5px; width: 40px; height: 40px;
  background: none; border: none; cursor: pointer;
  color: var(--paper); flex-shrink: 0;
}
.nav.scrolled .nav-hamburger { color: var(--ink); }
.nav-hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: currentColor;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-open {
  background: rgba(251, 248, 242, 0.98);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--rule);
}
.nav-open .nav-logo-text { color: var(--ink); }
.nav-open .nav-hamburger { color: var(--ink); }
.nav-open .mark-svg {
  --mark-left:  var(--ink-3);
  --mark-right: var(--ink);
  --mark-dot:   var(--signal);
}

.nav-mobile-menu {
  display: none; flex-direction: column;
  border-top: 1px solid var(--rule); padding-bottom: 16px;
}
.nav-open .nav-mobile-menu { display: flex; }
.nav-mobile-link {
  display: flex; align-items: center; min-height: 52px;
  padding: 0 var(--pad); font-size: 16px; font-weight: 500;
  color: var(--ink-2); border-bottom: 1px solid var(--rule);
  transition: background var(--t-fast);
}
.nav-mobile-link:hover { background: var(--cream); }
.nav-mobile-actions {
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px var(--pad) 0;
}
.nav-mobile-login {
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; font-size: 15px; font-weight: 500;
  color: var(--ink-3);
}
.nav-mobile-actions .btn { justify-content: center; width: 100%; min-height: 48px; }


/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: center;
  background: var(--ink);
  color: var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 12% 70%, rgba(26, 58, 107, 0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 88% 12%, rgba(251, 248, 242, 0.04) 0%, transparent 55%);
  pointer-events: none;
}

.hero-left {
  position: relative;
  padding: 160px var(--pad) 100px calc(max((100vw - var(--max-w)) / 2, var(--pad)));
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 32px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.hero-headline {
  font-family: var(--serif);
  font-size: clamp(48px, 6.5vw, 96px);
  font-weight: 400;
  line-height: 1.0;
  letter-spacing: -0.025em;
  color: var(--paper);
  margin-bottom: 16px;
}
.hero-headline em {
  font-style: italic;
  color: var(--signal);
}
.hero-sub {
  font-family: var(--sans);
  font-size: clamp(19px, 1.95vw, 24px);
  line-height: 1.5;
  color: rgba(251, 248, 242, 0.92);
  margin-bottom: 24px;
  max-width: 520px;
  letter-spacing: -0.005em;
}
.hero-supporting {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(251, 248, 242, 0.55);
  max-width: 480px;
  margin-bottom: 44px;
  letter-spacing: -0.005em;
}
.hero-ctas {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.hero-demo-note {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  margin-top: 16px;
}

.hero-right {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
  padding: 160px var(--pad) 100px 32px;
  min-height: 100vh;
}


/* =====================================================
   Hero animation — convergence visual
   ===================================================== */
.conv-stage {
  width: 100%; max-width: min(500px, 100%);
  position: relative;
}

.conv-card {
  background: rgba(251, 248, 242, 0.04);
  border: 1px solid var(--rule-ink-2);
  overflow: hidden;
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.conv-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: rgba(251, 248, 242, 0.03);
  border-bottom: 1px solid var(--rule-ink);
}
.cb-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rule-ink-2); }
.cb-label {
  flex: 1; text-align: left; font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-5); padding-left: 12px;
}

.conv-body { padding: 32px; min-height: 360px; }

.c-frame {
  display: none; flex-direction: column; gap: 16px;
  animation: cFadeIn 0.40s ease-out forwards;
}
.c-frame.active { display: flex; }
@keyframes cFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* Frame 1 — incoming */
.cf-msg-label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--signal);
}
.cf-msg-from {
  font-size: 13px; font-weight: 500;
  color: rgba(251, 248, 242, 0.55);
  font-variant-numeric: tabular-nums;
}
.cf-msg-bubble {
  font-family: var(--sans);
  font-size: 16px; line-height: 1.55;
  color: rgba(251, 248, 242, 0.92);
  padding: 4px 0 8px;
  border-left: 2px solid var(--signal);
  padding-left: 18px;
  letter-spacing: -0.005em;
}

/* Frame 2 — context (what the CRM knows) */
.cf-context {
  display: flex; flex-direction: column; gap: 14px;
}
.cf-crm-card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px 18px;
  background: rgba(26, 58, 107, 0.08);
  border-left: 2px solid var(--signal);
}
.cf-crm-source {
  font-family: var(--sans);
  font-size: 10px; font-weight: 600;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 2px;
}
.cf-crm-fact {
  font-family: var(--sans);
  font-size: 14px; line-height: 1.5;
  color: var(--paper);
  letter-spacing: -0.005em;
  font-variant-numeric: tabular-nums;
}
.cf-context-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px;
  color: var(--ink-5);
  font-variant-numeric: tabular-nums;
}
.cf-context-meta-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--signal);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

/* Frame 3 — three inputs */
.cf-inputs {
  display: flex; flex-direction: column; gap: 8px;
}
.cf-input-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  background: rgba(251, 248, 242, 0.03);
  border-left: 1px solid var(--rule-ink-2);
  font-size: 12px; color: rgba(251, 248, 242, 0.65);
  letter-spacing: -0.005em;
}
.cf-input-num {
  font-family: var(--sans);
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-5);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  width: 24px;
}
.cf-input-text { flex: 1; }
.cf-input-text strong {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--paper);
  margin-bottom: 3px;
  letter-spacing: -0.005em;
}

/* Frame 4 — output */
.cf-output {
  background: rgba(251, 248, 242, 0.04);
  border: 1px solid var(--rule-ink-2);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 10px;
}
.cf-output-label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--good);
}
.cf-output-to {
  font-size: 13px;
  color: rgba(251, 248, 242, 0.55);
  font-variant-numeric: tabular-nums;
}
.cf-output-line {
  height: 7px;
  background: rgba(251, 248, 242, 0.08);
}
.cf-output-line.lg { width: 92%; }
.cf-output-line.md { width: 78%; }
.cf-output-line.sm { width: 60%; }
.cf-output-line.xs { width: 44%; }

.cf-output-annotation {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  background: rgba(45, 122, 74, 0.10);
  border-left: 2px solid var(--good);
  font-size: 11px; color: var(--good);
  font-style: italic;
  margin-top: 4px;
}
.cf-output-annotation::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--good);
  flex-shrink: 0;
}

/* Progress dots */
.conv-progress {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; padding: 16px 0 22px;
}
.cp-dot {
  width: 6px; height: 6px;
  background: rgba(251, 248, 242, 0.18);
  transition: background 0.3s ease, width 0.3s ease;
  cursor: pointer;
}
.cp-dot.active { background: var(--signal); width: 24px; }

.conv-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  background: rgba(251, 248, 242, 0.08);
  border: 1px solid var(--rule-ink-2);
  color: var(--ink-4);
  font-size: 18px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  backdrop-filter: blur(4px);
}
.conv-arrow:hover { background: rgba(251, 248, 242, 0.15); color: var(--ink-2); }
.conv-arrow-prev { left: -18px; }
.conv-arrow-next { right: -18px; }


/* =====================================================
   Section headers
   ===================================================== */
.section-header {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: end;
  margin-bottom: 80px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}
.section-header.on-ink {
  border-bottom-color: var(--rule-ink-2);
}
.section-header h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}
.section-header.on-ink h2 { color: var(--paper); }
.section-header h2 em {
  font-style: italic;
  color: var(--signal);
}
.section-header .meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.section-header .lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-3);
  margin-top: 16px;
  max-width: 60ch;
  letter-spacing: -0.005em;
}
.section-header.on-ink .lede {
  color: rgba(251, 248, 242, 0.65);
}


/* =====================================================
   HOW IT WORKS — three steps, editorial layout
   ===================================================== */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.step {
  background: var(--paper);
  padding: 48px 40px 56px;
  display: flex; flex-direction: column;
  gap: 28px;
}

.step-num {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.step-visual {
  width: 100%;
  height: 140px;
  background: var(--cream);
  border: 1px solid var(--rule);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}

/* Step 1 — threaded message */
.sv-thread {
  width: 100%; height: 100%;
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 8px;
}
.sv-thread-msg {
  display: flex; gap: 10px; align-items: flex-start;
}
.sv-thread-avatar {
  width: 14px; height: 14px;
  background: var(--ink-5); flex-shrink: 0;
  margin-top: 2px;
}
.sv-thread-avatar.customer { background: var(--ink-4); }
.sv-thread-bubble {
  flex: 1; height: 8px;
  background: var(--ink-5);
  opacity: 0.4;
}
.sv-thread-bubble.short { width: 60%; flex: none; opacity: 0.5; }
.sv-thread-bubble.signal { background: var(--signal); opacity: 0.5; }

/* Step 2 — convergence */
.sv-converge {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}

/* Step 3 — composed email */
.sv-email {
  width: 100%; height: 100%;
  padding: 14px 18px;
  display: flex; flex-direction: column; gap: 6px;
}
.sv-email-to {
  font-family: var(--sans);
  font-size: 9px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 4px;
}
.sv-email-line {
  height: 6px;
  background: var(--ink-5); opacity: 0.4;
}
.sv-email-line.full { width: 100%; }
.sv-email-line.lg   { width: 82%; }
.sv-email-line.md   { width: 65%; }
.sv-email-line.signal { background: var(--signal); opacity: 0.6; width: 55%; }
.sv-email-gap { height: 4px; }

.step h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.step p {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-3);
  letter-spacing: -0.005em;
}


/* =====================================================
   PROBLEM — escalation chain on cream
   ===================================================== */
.spiral-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.spiral-text { padding-top: 16px; }
.spiral-text h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 16px 0 28px;
}
.spiral-text h2 em { font-style: italic; color: var(--signal); }
.spiral-text p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.spiral-text p:last-child { margin-bottom: 0; }
.spiral-text strong {
  color: var(--ink);
  font-weight: 600;
}

.escalation-chain {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ec-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  position: relative;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.ec-item[data-ec-index="0"] { margin-left: 0;    transition-delay: 0ms; }
.ec-item[data-ec-index="1"] { margin-left: 20px; transition-delay: 60ms; }
.ec-item[data-ec-index="2"] { margin-left: 40px; transition-delay: 120ms; }
.ec-item[data-ec-index="3"] { margin-left: 60px; transition-delay: 180ms; }
.ec-item[data-ec-index="4"] { margin-left: 80px; transition-delay: 240ms; }
.ec-item[data-ec-index="5"] { margin-left: 100px; transition-delay: 300ms; }
.ec-item.ec-visible {
  opacity: 1;
  transform: translateY(0);
}
.ec-item.ec-final { background: var(--bad-soft); }

.ec-num {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.ec-item.ec-final .ec-num { color: var(--bad); }

.ec-label { display: flex; flex-direction: column; gap: 3px; }
.ec-role {
  font-family: var(--sans);
  font-size: 15px; font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.ec-item.ec-final .ec-role { color: var(--bad); }
.ec-delay {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-4);
}
.ec-time {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}
.ec-item.ec-final .ec-time { color: var(--bad); }


/* =====================================================
   PRODUCT — same request, two replies
   ===================================================== */
.product-layout {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: 80px; align-items: center;
}
.product-intro h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 16px 0 28px;
}
.product-intro h2 em { font-style: italic; color: var(--signal); }
.product-intro p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.product-intro p:last-child { margin-bottom: 0; }
.product-aside {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-3);
}
.product-aside em { color: var(--signal); }

.response-compare {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  background: transparent;
  border: none;
  position: relative;
}
.rc-col {
  background: var(--paper);
  display: flex; flex-direction: column;
  padding: 32px 28px 28px;
  gap: 18px;
  border: 1px solid var(--rule);
  position: relative;
}
/* Generic AI card sits up; pulled slightly inward — cream-2 bg de-emphasises it vs white FF card */
.response-compare .rc-col:first-child {
  background: var(--cream-2);
  margin-top: 0;
  margin-right: -8px;
}
/* FrontFoot card drops down + outward; white bg + navy edge makes it read as the answer */
.rc-col.ff {
  background: #ffffff;
  margin-top: 64px;
  margin-left: -8px;
  border-left: 3px solid var(--signal);
  box-shadow: 0 1px 0 rgba(20, 17, 15, 0.04), 0 8px 24px -12px rgba(20, 17, 15, 0.08);
}
.rc-label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.rc-label.ff { color: var(--signal); }

.rc-response-text {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-2);
  display: flex; flex-direction: column; gap: 10px;
  letter-spacing: -0.005em;
}
.rc-response-text p { margin: 0; }
.rc-col.ff .rc-response-text { color: var(--ink); }
.rc-col.ff .rc-response-text p:nth-child(2) {
  font-style: italic;
  color: var(--signal);
}

.rc-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--rule);
  width: 100%;
}
.rc-badge.generic { color: var(--bad); }
.rc-badge.ff { color: var(--good); }
.rc-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: currentColor;
}


/* =====================================================
   DIFFERENTIATION — table format
   ===================================================== */
.diff-scroll-wrap {
  position: relative;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.diff-scroll-wrap::-webkit-scrollbar { display: none; }
.diff-scroll-wrap::after {
  content: '';
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 56px;
  background: linear-gradient(to right, transparent, #EBE4D6);
  pointer-events: none;
  transition: opacity 300ms;
}
.diff-scroll-wrap.scrolled-end::after { opacity: 0; }

.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}

.diff-col-header {
  background: var(--paper);
  padding: 32px 28px 28px;
  display: flex; flex-direction: column; gap: 8px;
}
.diff-col-header.ff {
  background: var(--ink);
  color: var(--paper);
}
.diff-col-tag {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4);
}
.diff-col-header.ff .diff-col-tag { color: var(--signal); }
.diff-col-name {
  font-family: var(--serif);
  font-size: 28px; font-weight: 400;
  line-height: 1; letter-spacing: -0.015em;
  color: var(--ink);
}
.diff-col-header.ff .diff-col-name { color: var(--paper); }

.diff-trait {
  background: var(--paper);
  display: flex; align-items: flex-start; gap: 12px;
  padding: 18px 28px;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-3);
  letter-spacing: -0.005em;
  min-height: 72px;
}
.diff-trait--ff {
  background: var(--cream);
  color: var(--ink);
}
.diff-trait-mark {
  flex-shrink: 0;
  width: 14px; height: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 3px;
}
.diff-trait-mark.bad::before {
  content: ''; width: 10px; height: 1.5px;
  background: var(--ink-5);
}
.diff-trait-mark.good::before {
  content: ''; width: 8px; height: 8px;
  background: var(--signal);
}
.diff-trait--empty { background: var(--paper); min-height: 72px; }


/* =====================================================
   CAPABILITY — annotated draft on ink
   ===================================================== */
.lift-layout {
  display: grid; grid-template-columns: 1fr 1.05fr;
  gap: 80px; align-items: center;
}
.lift-text h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  margin: 16px 0 28px;
}
.lift-text h2 em { font-style: italic; color: var(--signal); }
.lift-text p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(251, 248, 242, 0.70);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.lift-text p:last-child { margin-bottom: 0; }

.annotated-draft {
  background: rgba(251, 248, 242, 0.04);
  border: 1px solid var(--rule-ink-2);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.ad-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  background: rgba(251, 248, 242, 0.03);
  border-bottom: 1px solid var(--rule-ink);
}
.ad-dot { width: 8px; height: 8px; background: var(--rule-ink-2); }
.ad-title {
  flex: 1; text-align: left; font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-5); padding-left: 12px;
}

.ad-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }

.ad-draft {
  background: rgba(251, 248, 242, 0.03);
  border-left: 2px solid var(--ink-5);
  padding: 16px 18px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.ad-draft-label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-5);
  margin-bottom: 4px;
}
.ad-line {
  height: 7px;
  background: rgba(251, 248, 242, 0.10);
}
.ad-line.lg { width: 90%; }
.ad-line.md { width: 74%; }
.ad-line.sm { width: 58%; }
.ad-line.xs { width: 42%; }

.ad-annotations { display: flex; flex-direction: column; gap: 10px; }
.ad-annotation {
  display: grid; grid-template-columns: 96px 1fr; align-items: flex-start;
  gap: 20px;
  padding: 16px 18px;
  border-left: 2px solid var(--signal);
  background: rgba(251, 248, 242, 0.04);
}
.ad-ann-label {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--signal);
  white-space: nowrap;
  margin-top: 3px;
}
.ad-ann-text {
  font-family: var(--sans);
  font-size: 15px;
  color: rgba(251, 248, 242, 0.85);
  line-height: 1.55;
  letter-spacing: -0.005em;
}


/* =====================================================
   ROI
   ===================================================== */
.roi-layout {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.roi-text h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 16px 0 28px;
}
.roi-text h2 em { font-style: italic; color: var(--signal); }
.roi-text p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: 16px;
  letter-spacing: -0.005em;
}
.roi-text p:last-child { margin-bottom: 0; }

.roi-blocks {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
}
.roi-block {
  background: var(--paper);
  padding: 28px 28px 32px;
  display: flex; flex-direction: column; gap: 8px;
}
.roi-block.highlight {
  grid-column: span 2;
  background: var(--ink);
  color: var(--paper);
  padding: 32px 32px;
}
.roi-block-label {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-4);
}
.roi-block.highlight .roi-block-label { color: var(--ink-5); }
.roi-block-val {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.roi-block.highlight .roi-block-val {
  color: var(--paper);
  font-size: 44px;
}
.roi-block-sub {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-3);
  line-height: 1.55;
}
.roi-block.highlight .roi-block-sub { color: rgba(251, 248, 242, 0.7); }


/* =====================================================
   PRICING — table on cream
   ===================================================== */

/* =====================================================
   FINAL CTA
   ===================================================== */
.final-cta {
  background: var(--ink);
  padding: var(--section-y) 0;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 50%, rgba(26, 58, 107, 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.final-cta-inner {
  position: relative; z-index: 1;
  text-align: center; max-width: 640px; margin: 0 auto;
}
.final-cta-eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 24px;
  display: inline-flex; align-items: center; gap: 12px;
}
.final-cta-eyebrow::before, .final-cta-eyebrow::after {
  content: '';
  width: 24px; height: 1px; background: var(--signal);
}
.final-cta-inner h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 400;
  color: var(--paper);
  margin-bottom: 32px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.final-cta-inner h2 em { font-style: italic; color: var(--signal); }
.cta-steps {
  list-style: none; padding: 0; margin: 0 auto 36px;
  display: flex; flex-direction: column; gap: 14px;
  text-align: left;
  max-width: 380px;
}
.cta-steps li {
  font-family: var(--sans);
  font-size: 16px;
  color: rgba(251, 248, 242, 0.78);
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  align-items: baseline;
  letter-spacing: -0.005em;
}
.cta-steps li::before {
  content: attr(data-num);
  font-family: var(--sans);
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--signal);
  font-variant-numeric: tabular-nums;
}
.cta-closing {
  font-family: var(--sans);
  font-size: 17px;
  color: rgba(251, 248, 242, 0.75);
  line-height: 1.55;
  margin-bottom: 36px;
  letter-spacing: -0.005em;
}
.final-cta-btns {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}

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


/* =====================================================
   INLINE WALKTHROUGH
   ===================================================== */
.walkthrough {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid var(--rule);
}
.walkthrough-copy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}
.walkthrough-copy .eyebrow { grid-column: 1 / -1; }
.walkthrough-copy h3 {
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.walkthrough-copy p {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 420px;
  justify-self: end;
  text-align: right;
}
.walkthrough-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--ink);
}
.walkthrough-poster,
.walkthrough-player,
.walkthrough-player video {
  width: 100%;
  height: 100%;
}
.walkthrough-player video {
  display: block;
  border: 0;
}
.walkthrough-poster[hidden],
.walkthrough-player[hidden] {
  display: none;
}
.walkthrough-poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
  color: var(--paper);
  background:
    radial-gradient(circle at 50% 35%, rgba(26, 58, 107, 0.75), transparent 42%),
    linear-gradient(135deg, #142648, var(--ink));
}
.walkthrough-play {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border: 1px solid rgba(251, 248, 242, 0.72);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  transition: transform var(--t-fast), background var(--t-fast), border-color var(--t-fast);
}
.walkthrough-play:hover {
  transform: translateY(-2px);
  border-color: var(--signal);
  background: var(--cream);
}
.walkthrough-play:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 4px;
}
.walkthrough-play-icon { font-size: 12px; }
.walkthrough-player iframe { display: block; border: 0; }

@media (max-width: 767px) {
  [data-demo-cta-placement] { display: none; }
  a.btn.mobile-primary-cta {
    background: var(--signal) !important;
    color: var(--paper) !important;
    border-color: var(--signal) !important;
  }
  a.btn.mobile-primary-cta:hover {
    background: var(--signal-deep) !important;
    border-color: var(--signal-deep) !important;
  }
}

@media (max-width: 640px) {
  .walkthrough { margin-top: 56px; padding-top: 36px; }
  .walkthrough-copy { display: block; }
  .walkthrough-copy .eyebrow { display: inline-flex; margin-bottom: 16px; }
  .walkthrough-copy h3 { margin-bottom: 12px; }
  .walkthrough-copy p { margin-bottom: 24px; text-align: left; }
  .walkthrough-play { padding: 12px 16px; font-size: 13px; }
}


/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background: var(--ink);
  padding: 64px 0 36px;
  border-top: 1px solid var(--rule-ink-2);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--rule-ink);
  margin-bottom: 16px;
  gap: 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo-wrap { display: flex; align-items: center; gap: 10px; }
.footer-logo-text {
  font-family: var(--sans);
  font-size: 16px;
  letter-spacing: -0.025em;
  color: var(--paper);
}
.footer-logo-text .ff-front { font-weight: 500; }
.footer-logo-text .ff-foot  { font-weight: 600; }
.footer-tagline {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-5);
  letter-spacing: -0.005em;
  max-width: 32ch;
}
.footer-links { display: flex; gap: 32px; align-items: flex-start; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-5);
  transition: color var(--t-fast);
}
.footer-links a:hover { color: var(--paper); }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-bottom p {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-5);
  font-variant-numeric: tabular-nums;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-5);
  transition: color var(--t-fast);
}
.footer-legal a:hover { color: var(--paper); }


/* =====================================================
   Scroll-reveal
   ===================================================== */
.reveal {
  opacity: 0; transform: translateY(16px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: calc(var(--i, 0) * 75ms);
}
.reveal.visible { opacity: 1; transform: none; }


/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
  :root { --section-y: 80px; --pad: 24px; }
  .nav-links { display: none; }
  .nav-actions { display: none; }
  .nav-hamburger { display: flex; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-left { padding: 120px var(--pad) 64px; }
  .hero-right { display: flex; justify-content: center; padding: 0 var(--pad) 64px; min-height: auto; }
  .conv-stage { width: 100%; max-width: 480px; }

  .section-header { grid-template-columns: 1fr; gap: 16px; align-items: flex-start; }
  .steps-grid { grid-template-columns: 1fr; }
  .spiral-layout, .product-layout, .lift-layout, .roi-layout { grid-template-columns: 1fr; gap: 48px; }
  .response-compare { grid-template-columns: 1fr; gap: 24px; }
  .response-compare .rc-col:first-child,
  .rc-col.ff { margin: 0; }
  .diff-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --pad: 20px; --section-y: 64px; }
  .hero-left { padding: 100px var(--pad) 56px; }
  .hero-right { display: none; }
  .diff-grid { grid-template-columns: repeat(3, 180px); min-width: 540px; }
  .btn { min-height: 44px; }
  .roi-blocks { grid-template-columns: 1fr; }
  .roi-block.highlight { padding: 28px; }
  .ec-item { grid-template-columns: 32px 1fr; }
  .ec-item[data-ec-index="0"] { margin-left: 0; }
  .ec-item[data-ec-index="1"] { margin-left: 8px; }
  .ec-item[data-ec-index="2"] { margin-left: 16px; }
  .ec-item[data-ec-index="3"] { margin-left: 24px; }
  .ec-item[data-ec-index="4"] { margin-left: 32px; }
  .ec-item[data-ec-index="5"] { margin-left: 40px; }
  .ec-time { grid-column: 2; padding-top: 4px; }
  .footer-inner { flex-direction: column; gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .ec-item { opacity: 1; transform: none; transition: none; transition-delay: 0ms; }
}
