/* ==========================================================================
   Time Machine — Enablement Agents
   Design System + Homepage
   ========================================================================== */

/* ---------- 1. Tokens ---------- */

:root {
  /* Color — refined blues + cool silver neutrals (brand-aligned) */
  --ink-900: #0A1B2A;          /* deepest text */
  --ink-700: #18293B;          /* body strong */
  --ink-500: #4A5A6E;          /* body */
  --ink-400: #7A8694;          /* muted */
  --ink-300: #B5BDC6;          /* hairlines on dark */
  --ink-200: #DCE0E5;          /* dividers */
  --ink-100: #ECEEF1;          /* subtle bg */

  /* Cooler off-white aligned with brand silver family */
  --paper:  #FAFBFC;
  --paper-2: #F1F3F5;
  --paper-3: #E7EAEE;

  /* Brand blues from official palette */
  --brand-900: #003B62;
  --brand-700: #005391;
  --brand-500: #006AB0;        /* official brand blue */
  --brand-300: #4D9BD0;
  --brand-100: #DCEAF4;

  /* Brand silver from official palette */
  --silver-500: #9FB0BB;
  --silver-300: #BFCAD2;
  --silver-100: #DFE5E9;

  --success: #198754;
  --signal: #C2410C;

  /* Type — Inter throughout. Display sizes use heavy weight + tight tracking. */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-display: var(--font-sans);

  /* Type scale — clamped fluid */
  --fs-display-xl: clamp(40px, 6.5vw, 88px);
  --fs-display-lg: clamp(34px, 5vw, 64px);
  --fs-display-md: clamp(28px, 3.6vw, 48px);
  --fs-display-sm: clamp(24px, 2.8vw, 36px);
  --fs-h2: clamp(26px, 3vw, 40px);
  --fs-h3: clamp(20px, 2.2vw, 26px);
  --fs-h4: clamp(18px, 1.6vw, 22px);
  --fs-lead: clamp(18px, 1.5vw, 21px);
  --fs-body: 17px;
  --fs-small: 15px;
  --fs-micro: 13px;

  /* Spacing — 8pt scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows — restrained */
  --shadow-1: 0 1px 2px rgba(10, 27, 42, 0.04);
  --shadow-2: 0 6px 18px rgba(10, 27, 42, 0.06);
  --shadow-3: 0 18px 48px rgba(10, 27, 42, 0.08);

  /* Motion */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur-fast: 200ms;
  --dur-base: 400ms;
  --dur-slow: 600ms;

  /* Layout */
  --container: 1200px;
  --container-wide: 1320px;
  --container-narrow: 880px;

  /* Z */
  --z-nav: 100;
  --z-overlay: 200;
}

/* ---------- 2. Reset & Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'kern', 'liga', 'cv11', 'ss01';
}

img, svg, video { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--brand-100); color: var(--ink-900); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- 3. Typography ---------- */

h1, h2, h3, h4 { color: var(--ink-900); margin: 0; }

.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

/* Italic emphasis throughout — Inter italic, brand color */
em.accent,
.display em,
.hero__title em {
  font-style: italic;
  color: var(--brand-700);
  font-weight: 700;
}

.eyebrow {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-500);
}

.muted { color: var(--ink-500); }

/* ---------- 4. Layout helpers ---------- */

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 24px; }

section { padding: var(--s-9) 0; }

@media (max-width: 768px) {
  section { padding: var(--s-8) 0; }
  .container, .container--narrow, .container--wide { padding: 0 20px; }
}

/* ---------- 5. Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  height: 52px;
  padding: 0 28px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform var(--dur-fast) var(--ease),
              background var(--dur-fast) var(--ease),
              box-shadow var(--dur-fast) var(--ease),
              color var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  white-space: nowrap;
  user-select: none;
}

.btn--primary {
  background: var(--ink-900);
  color: var(--paper);
  box-shadow: var(--shadow-2);
}

.btn--primary:hover {
  background: var(--brand-900);
  transform: translateY(-1px);
  box-shadow: var(--shadow-3);
}

.btn--secondary {
  background: transparent;
  color: var(--ink-900);
  border: 1px solid var(--ink-300);
}

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

.btn--ghost {
  background: transparent;
  color: var(--ink-900);
  padding: 0 4px;
  height: auto;
}

.btn--ghost .arrow {
  transition: transform var(--dur-fast) var(--ease);
}

.btn--ghost:hover .arrow {
  transform: translateX(4px);
}

.btn--lg { height: 60px; padding: 0 36px; font-size: 17px; }

@media (max-width: 540px) {
  .btn { height: 48px; padding: 0 22px; font-size: 15px; }
  .btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
}

/* ---------- 6. Navigation ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: 18px 0;
  background: rgba(250, 251, 252, 0);
  backdrop-filter: blur(0px);
  transition: background var(--dur-base) var(--ease),
              backdrop-filter var(--dur-base) var(--ease),
              padding var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
  border-bottom: 1px solid transparent;
}

.nav--scrolled {
  background: rgba(250, 251, 252, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  padding: 12px 0;
  border-bottom: 1px solid var(--ink-200);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--ink-900);
}

.nav__brand img { height: 28px; width: auto; }

.nav__menu {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__menu a {
  font-size: 15px;
  color: var(--ink-700);
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease);
}

.nav__menu a:hover { color: var(--ink-900); }

.nav__actions { display: flex; align-items: center; gap: 12px; }

.nav__actions .btn--login {
  height: 40px;
  padding: 0 16px;
  background: transparent;
  color: var(--ink-700);
  font-size: 15px;
}
.nav__actions .btn--login:hover { color: var(--ink-900); }

.nav__actions .btn--start {
  height: 40px;
  padding: 0 18px;
  font-size: 14px;
  background: var(--ink-900);
  color: var(--paper);
}
.nav__actions .btn--start:hover {
  background: var(--brand-900);
}

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
}

.nav__toggle span {
  display: block;
  width: 22px; height: 1.5px;
  background: var(--ink-900);
  position: relative;
  transition: transform var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease);
}

.nav__toggle span::before,
.nav__toggle span::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: var(--ink-900);
  transition: transform var(--dur-fast) var(--ease);
}

.nav__toggle span::before { top: -7px; }
.nav__toggle span::after  { top: 7px; }

.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

.nav__panel {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: var(--paper);
  padding: 96px 24px 32px;
  transform: translateY(-100%);
  transition: transform var(--dur-base) var(--ease);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-3);
  z-index: calc(var(--z-nav) - 1);
}

.nav__panel.is-open { transform: translateY(0); }

.nav__panel a {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink-900);
  padding: 14px 8px;
  border-bottom: 1px solid var(--ink-100);
}

.nav__panel a:last-of-type { border-bottom: 0; }

.nav__panel-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 24px;
}
.nav__panel-actions .btn { width: 100%; }

@media (max-width: 960px) {
  .nav__menu, .nav__actions .btn--login { display: none; }
  .nav__toggle { display: flex; }
  .nav__actions .btn--start { display: inline-flex; }
}

@media (max-width: 540px) {
  .nav__actions .btn--start { display: none; }
}

/* ---------- 7. Hero ---------- */

.hero {
  padding-top: 168px;
  padding-bottom: var(--s-9);
  position: relative;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  padding: 8px 14px;
  border: 1px solid var(--ink-200);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.6);
}

.hero__dot {
  width: 6px; height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.12);
}

.hero__title {
  font-family: var(--font-display);
  font-size: var(--fs-display-xl);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--ink-900);
  margin: 0 0 32px;
  /* No max-width — morph words vary in length, let each title line size naturally. */
}

/* The morph line scales slightly smaller on narrow screens so longer
   audience phrases (e.g. "Customer Success Organization") fit. */
@media (max-width: 640px) {
  .hero__title-line--swap {
    font-size: clamp(26px, 6.5vw, 44px);
  }
}

.hero__title-line {
  display: block;
}

.hero__title-line--swap {
  /* The morphing word gets its own visual line */
  min-height: 1.1em; /* Reserve consistent height */
}

.hero__title em {
  font-style: italic;
  color: var(--brand-700);
  font-weight: 700;
}

/* The swap container */
.swap {
  display: inline-block;
  position: relative;
  vertical-align: baseline;
  white-space: nowrap;
  font-style: italic;
  color: var(--brand-700);
  font-weight: 700;
}

.swap__word {
  display: inline-block;
  transition: opacity var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
  will-change: opacity, transform;
}

/* Out: old word slides up + fades */
.swap__word.is-out {
  opacity: 0;
  transform: translateY(-14px);
}

/* Pre-in: new word starts below, then animates up to baseline */
.swap__word.is-pre-in {
  opacity: 0;
  transform: translateY(14px);
  transition: none; /* snap to start position */
}

.hero__sub {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--ink-500);
  max-width: 56ch;
  margin: 0 0 40px;
}

.hero__ctas {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__trust {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  padding-top: 32px;
  border-top: 1px solid var(--ink-200);
}

.hero__trust-line {
  font-size: var(--fs-micro);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-400);
  white-space: nowrap;
}

.hero__trust-logos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  align-items: center;
  justify-items: center;
  gap: 20px 28px;
  flex: 1;
  width: 100%;
}

.hero__trust-logos .logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
}

.hero__trust-logos img {
  max-height: 32px;
  max-width: 130px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.7;
  transition: opacity var(--dur-fast) var(--ease), filter var(--dur-fast) var(--ease);
}

.hero__trust-logos img:hover {
  opacity: 1;
  filter: grayscale(0);
}

@media (max-width: 768px) {
  .hero { padding-top: 136px; }
  .hero__title { max-width: 100%; }
  .hero__trust { gap: 20px; padding-top: 24px; }
  .hero__trust-logos { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 16px 20px; }
  .hero__trust-logos .logo-cell { height: 40px; }
  .hero__trust-logos img { max-height: 26px; max-width: 100px; }
}

/* ---------- 8. Section: The Problem ---------- */

.problem {
  background: var(--paper-2);
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}

.problem__lead {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  max-width: 24ch;
  margin: 0 0 var(--s-8);
  color: var(--ink-900);
}

.problem__lead em {
  font-style: italic;
  color: var(--brand-700);
  font-weight: 700;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--ink-200);
  padding-top: 40px;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat__num {
  font-family: var(--font-display);
  font-size: clamp(44px, 5.5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink-900);
}

.stat__num .unit {
  font-size: 0.55em;
  color: var(--ink-400);
  margin-left: 4px;
  font-weight: 700;
}

.stat__label {
  font-size: var(--fs-body);
  color: var(--ink-500);
  max-width: 28ch;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .stat-row { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- 9. Section: The Plan (3 steps) ---------- */

.plan__heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: var(--s-8);
}

.plan__heading h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
}

.plan__heading h2 em {
  font-style: italic;
  color: var(--brand-700);
  font-weight: 700;
}

.plan__heading p {
  font-size: var(--fs-lead);
  color: var(--ink-500);
  margin: 0;
  max-width: 44ch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}

.step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--brand-300);
}

.step__num {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.step h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink-900);
}

.step p {
  margin: 0;
  color: var(--ink-500);
  line-height: 1.55;
}

@media (max-width: 880px) {
  .plan__heading { grid-template-columns: 1fr; gap: 24px; }
  .steps { grid-template-columns: 1fr; }
}

/* ---------- 10. Section: The Agents (bento) ---------- */

.agents {
  background: var(--ink-900);
  color: var(--paper);
}

.agents__heading {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: end;
  margin-bottom: var(--s-8);
}

.agents__heading .eyebrow { color: var(--brand-300); }

.agents__heading h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0;
  color: var(--paper);
}

.agents__heading h2 em {
  font-style: italic;
  color: var(--brand-300);
  font-weight: 700;
}

.agents__heading p {
  font-size: var(--fs-lead);
  color: rgba(250, 251, 252, 0.7);
  margin: 0;
  max-width: 44ch;
}

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
}

.tile {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  transition: background var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease),
              transform var(--dur-base) var(--ease);
  overflow: hidden;
}

.tile:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

.tile--lg { grid-column: span 4; grid-row: span 2; padding: 40px; }
.tile--md { grid-column: span 2; }
.tile--sm { grid-column: span 2; }

.tile__category {
  font-size: var(--fs-micro);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-300);
  font-weight: 600;
}

.tile__title {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--paper);
  margin: 0;
}

.tile--lg .tile__title { font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.03em; }
.tile--md .tile__title,
.tile--sm .tile__title { font-size: clamp(20px, 2vw, 24px); }

.tile__desc {
  font-size: var(--fs-small);
  color: rgba(250, 251, 252, 0.7);
  line-height: 1.55;
  margin: 0;
}

.tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--paper);
  margin-top: 8px;
}

.tile__cta .arrow {
  transition: transform var(--dur-fast) var(--ease);
}

.tile:hover .tile__cta .arrow { transform: translateX(4px); }

.tile--lg::after {
  content: '';
  position: absolute;
  inset: auto -40% -40% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(0, 106, 176, 0.32) 0%, transparent 60%);
  border-radius: 50%;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(4, 1fr); }
  .tile--lg { grid-column: span 4; grid-row: auto; }
  .tile--md { grid-column: span 2; }
  .tile--sm { grid-column: span 2; }
}

@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .tile--lg, .tile--md, .tile--sm { grid-column: span 1; }
  .agents__heading { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- 11. Section: Outcome Pricing teaser ---------- */

.outcome { background: var(--paper); }

.outcome__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.outcome h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 24px;
}

.outcome h2 em { font-style: italic; color: var(--brand-700); font-weight: 700; }

.outcome p { color: var(--ink-500); margin: 0 0 32px; max-width: 50ch; }

.price-card {
  background: var(--paper-2);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-xl);
  padding: 40px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--ink-200);
  gap: 24px;
}

.price-row:last-child { border-bottom: 0; }

.price-row__label {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-row__name {
  font-size: 19px;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

.price-row__sub {
  font-size: var(--fs-small);
  color: var(--ink-500);
}

.price-row__price {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  white-space: nowrap;
}

.outcome__note {
  margin-top: 48px;
  font-size: var(--fs-small);
  color: var(--ink-500);
  text-align: center;
}

@media (max-width: 880px) {
  .outcome__inner { grid-template-columns: 1fr; gap: 32px; }
  .price-card { padding: 28px; }
  .price-row__price { font-size: 22px; }
}

/* ---------- 12. Section: Customer proof ---------- */

.proof {
  background: var(--paper-2);
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}

.proof__quote {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.proof__quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink-900);
  margin: 0 0 32px;
}

.proof__quote em { font-style: italic; color: var(--brand-700); font-weight: 700; }

.proof__attribution {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: var(--fs-small);
  color: var(--ink-500);
}

.proof__attribution img {
  width: 44px; height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.proof__attribution strong {
  color: var(--ink-900);
  font-weight: 600;
}

/* ---------- 13. Section: Stakes + Form ---------- */

.stakes {
  background: var(--ink-900);
  color: var(--paper);
}

.stakes__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.stakes h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-lg);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  color: var(--paper);
  margin: 0 0 24px;
}

.stakes h2 em { font-style: italic; color: var(--brand-300); font-weight: 700; }

.stakes p {
  font-size: var(--fs-lead);
  color: rgba(250, 251, 252, 0.7);
  margin: 0 0 48px;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
}

.stakes__fineprint {
  font-size: var(--fs-small);
  color: rgba(250, 251, 252, 0.5);
  margin-top: 20px;
}

/* Form */
.form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--r-xl);
  padding: 40px;
  text-align: left;
  backdrop-filter: blur(8px);
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form__field { display: block; margin-bottom: 16px; }

.form__field-label {
  display: block;
  font-size: var(--fs-micro);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(250, 251, 252, 0.7);
  margin-bottom: 8px;
}

.form input[type="text"],
.form input[type="email"],
.form select,
.form textarea {
  width: 100%;
  height: 52px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-md);
  color: var(--paper);
  font-family: inherit;
  font-size: 16px;
  transition: background var(--dur-fast) var(--ease),
              border-color var(--dur-fast) var(--ease);
  appearance: none;
  -webkit-appearance: none;
}

.form textarea {
  height: auto;
  min-height: 100px;
  padding: 14px 18px;
  resize: vertical;
}

.form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23BFCAD2' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  padding-right: 44px;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand-300);
  box-shadow: 0 0 0 3px rgba(77, 155, 208, 0.18);
}

.form input::placeholder,
.form textarea::placeholder {
  color: rgba(250, 251, 252, 0.4);
}

.form__submit {
  margin-top: 8px;
  width: 100%;
}

.form__submit.btn--primary {
  background: var(--paper);
  color: var(--ink-900);
}

.form__submit.btn--primary:hover {
  background: var(--brand-300);
  color: var(--ink-900);
}

.form__honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

@media (max-width: 640px) {
  .form { padding: 28px 22px; }
  .form__row { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .form__row .form__field { margin-bottom: 16px; }
}

/* ---------- 14. Footer ---------- */

.footer {
  padding: var(--s-8) 0 var(--s-6);
  background: var(--paper);
  color: var(--ink-500);
  border-top: 1px solid var(--ink-200);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: var(--s-7);
}

.footer__brand .nav__brand { margin-bottom: 16px; }

.footer__tag {
  font-size: var(--fs-small);
  max-width: 36ch;
  line-height: 1.55;
}

.footer__col h4 {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin: 0 0 16px;
}

.footer__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }

.footer__col a {
  font-size: var(--fs-small);
  color: var(--ink-500);
  transition: color var(--dur-fast) var(--ease);
}

.footer__col a:hover { color: var(--ink-900); }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--ink-200);
  font-size: var(--fs-micro);
  color: var(--ink-400);
}

.footer__bottom-links {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 880px) {
  .footer__top { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 540px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ---------- 15. Scroll-reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 { transition-delay: 80ms; }
.reveal--delay-2 { transition-delay: 160ms; }
.reveal--delay-3 { transition-delay: 240ms; }
.reveal--delay-4 { transition-delay: 320ms; }

/* ---------- 16. Utility ---------- */

.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;
}

/* ==========================================================================
   PRICING PAGE
   ========================================================================== */

/* Pricing hero — lighter / shorter than homepage hero */
.page-hero {
  padding-top: 168px;
  padding-bottom: var(--s-7);
  text-align: center;
}

.page-hero .container { max-width: 880px; }

.page-hero__eyebrow {
  display: inline-block;
  margin-bottom: 24px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--fs-display-lg);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin: 0 0 24px;
  color: var(--ink-900);
}

.page-hero h1 em { font-style: italic; color: var(--brand-700); font-weight: 700; }

.page-hero p {
  font-size: var(--fs-lead);
  color: var(--ink-500);
  margin: 0 auto;
  max-width: 56ch;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .page-hero { padding-top: 128px; padding-bottom: var(--s-6); }
}

/* Section heading shared style on subpages */
.section-heading { margin-bottom: var(--s-7); max-width: 720px; }

.section-heading h2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 12px 0 12px;
}

.section-heading h2 em { font-style: italic; color: var(--brand-700); font-weight: 700; }

.section-heading p {
  font-size: var(--fs-lead);
  color: var(--ink-500);
  margin: 0;
  max-width: 56ch;
}

/* Pricing tier grid (Outcome cards) */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tier {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}

.tier:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--brand-300);
}

.tier--featured {
  background: var(--ink-900);
  color: var(--paper);
  border-color: var(--ink-900);
}

.tier--featured .tier__name { color: var(--paper); }
.tier--featured .tier__price { color: var(--paper); }
.tier--featured .tier__sub { color: rgba(250, 251, 252, 0.7); }
.tier--featured .tier__list li { color: rgba(250, 251, 252, 0.85); }
.tier--featured .tier__list li::before { background: var(--brand-300); }
.tier--featured .tier__badge { background: var(--brand-300); color: var(--ink-900); }

.tier__badge {
  display: inline-block;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  background: var(--brand-100);
  color: var(--brand-700);
  border-radius: var(--r-pill);
  align-self: flex-start;
}

.tier__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink-900);
}

.tier__price {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--ink-900);
}

.tier__price .unit {
  font-size: 0.4em;
  font-weight: 600;
  color: var(--ink-400);
  margin-left: 8px;
  letter-spacing: -0.01em;
}

.tier__sub {
  font-size: var(--fs-small);
  color: var(--ink-500);
  margin: 0;
}

.tier__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tier__list li {
  position: relative;
  padding-left: 22px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-500);
}

.tier__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1.5px;
  background: var(--brand-500);
}

@media (max-width: 880px) {
  .tier-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* Activation Packs — discount badge style */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.pack {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}

.pack:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--brand-300);
}

.pack__count {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink-900);
  margin: 0;
}

.pack__count .unit {
  font-size: 0.4em;
  font-weight: 600;
  color: var(--ink-500);
  margin-left: 6px;
}

.pack__list-price {
  font-size: var(--fs-small);
  color: var(--ink-400);
  text-decoration: line-through;
}

.pack__price {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin: 0;
}

.pack__discount {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--brand-700);
  background: var(--brand-100);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

/* Featured pack — dark inverted treatment to draw the eye */
.pack--featured {
  background: var(--ink-900);
  color: var(--paper);
  border-color: var(--ink-900);
  /* Slight lift so it sits visually above neighbours */
  transform: translateY(-8px);
  box-shadow: var(--shadow-3);
}

.pack--featured:hover {
  transform: translateY(-10px);
  border-color: var(--ink-900);
}

.pack--featured .pack__count,
.pack--featured .pack__price {
  color: var(--paper);
}

.pack--featured .pack__count .unit {
  color: rgba(250, 251, 252, 0.55);
}

.pack--featured .pack__list-price {
  color: rgba(250, 251, 252, 0.45);
}

.pack--featured .pack__discount {
  background: var(--brand-300);
  color: var(--ink-900);
}

.pack--featured .tier__sub {
  color: rgba(250, 251, 252, 0.75) !important;
}

.pack--featured .tier__sub strong {
  color: var(--brand-300) !important;
}

/* "Most popular" ribbon sitting above the card */
.pack__featured-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-700);
  color: var(--paper);
  padding: 6px 16px;
  border-radius: var(--r-pill);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 59, 98, 0.25);
}

@media (max-width: 880px) {
  .pack-grid { grid-template-columns: 1fr; }
  .pack--featured { transform: none; }
  .pack--featured:hover { transform: translateY(-2px); }
}

/* Hours fallback — single inline card */
.hours-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 28px 32px;
}

.hours-card__price {
  font-family: var(--font-display);
  font-size: clamp(32px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink-900);
}

.hours-card__price .unit {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--ink-500);
  margin-left: 6px;
}

.hours-card__title {
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--ink-900);
}

.hours-card__sub {
  font-size: var(--fs-small);
  color: var(--ink-500);
  margin: 0;
}

@media (max-width: 720px) {
  .hours-card {
    grid-template-columns: 1fr;
    gap: 12px;
    text-align: left;
    padding: 24px;
  }
}

/* Platform floor tiers */
.floor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.floor {
  background: var(--paper-2);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.floor__tier {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.floor__price {
  font-family: var(--font-display);
  font-size: clamp(26px, 2.6vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink-900);
  margin: 0 0 8px;
}

.floor__price .unit {
  font-size: 0.5em;
  font-weight: 500;
  color: var(--ink-400);
  margin-left: 4px;
}

.floor__sub {
  font-size: var(--fs-small);
  color: var(--ink-500);
  margin: 0;
}

@media (max-width: 880px) {
  .floor-grid { grid-template-columns: 1fr; }
}

/* Compare — per-seat vs outcome */
.compare {
  background: var(--paper-2);
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.compare-card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 32px;
}

.compare-card--bad { border-color: var(--ink-200); }

.compare-card--good {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 1px var(--brand-500);
}

.compare-card__label {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.compare-card--bad .compare-card__label { color: var(--ink-400); }
.compare-card--good .compare-card__label { color: var(--brand-700); }

.compare-card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--ink-900);
}

.compare-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compare-card li {
  position: relative;
  padding-left: 28px;
  font-size: var(--fs-small);
  line-height: 1.5;
  color: var(--ink-500);
}

.compare-card--bad li::before {
  content: '×';
  position: absolute;
  left: 0;
  top: -2px;
  color: var(--ink-300);
  font-size: 22px;
  font-weight: 600;
  line-height: 1;
}

.compare-card--good li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--brand-500);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

@media (max-width: 720px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* FAQ — accessible details/summary */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.faq__item {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  overflow: hidden;
}

.faq__item[open] {
  border-color: var(--brand-300);
}

.faq__summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-display);
  font-size: var(--fs-h4);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink-900);
}

.faq__summary::-webkit-details-marker { display: none; }

.faq__summary::after {
  content: '';
  width: 12px;
  height: 12px;
  border-right: 2px solid var(--ink-500);
  border-bottom: 2px solid var(--ink-500);
  transform: rotate(45deg);
  transition: transform var(--dur-fast) var(--ease);
  flex-shrink: 0;
  margin-bottom: 4px;
}

.faq__item[open] .faq__summary::after {
  transform: rotate(-135deg);
  margin-bottom: -4px;
}

.faq__body {
  padding: 0 28px 24px;
  color: var(--ink-500);
  line-height: 1.6;
  font-size: var(--fs-body);
}

.faq__body p { margin: 0 0 12px; }
.faq__body p:last-child { margin-bottom: 0; }

@media (max-width: 540px) {
  .faq__summary { padding: 18px 22px; font-size: 17px; }
  .faq__body { padding: 0 22px 22px; }
}

/* ==========================================================================
   AGENT DETAIL PAGES — shared pattern (Sales, CS, Partner, Marketing, etc.)
   ========================================================================== */

/* Feature row — alternating two-column for capabilities */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: var(--s-9) 0;
}

.feature-row + .feature-row {
  border-top: 1px solid var(--ink-200);
}

.feature-row--reverse .feature-row__visual {
  order: 2;
}

.feature-row__content .eyebrow {
  display: block;
  margin-bottom: 12px;
}

.feature-row__content h3 {
  font-family: var(--font-display);
  font-size: var(--fs-display-sm);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 0 0 20px;
  color: var(--ink-900);
  max-width: 18ch;
}

.feature-row__content h3 em { font-style: italic; color: var(--brand-700); font-weight: 700; }

.feature-row__content p {
  font-size: var(--fs-body);
  color: var(--ink-500);
  line-height: 1.6;
  margin: 0 0 24px;
  max-width: 50ch;
}

.feature-row__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-row__list li {
  position: relative;
  padding-left: 24px;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--ink-500);
}

.feature-row__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 14px;
  height: 1.5px;
  background: var(--brand-500);
}

@media (max-width: 880px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: var(--s-7) 0;
  }
  .feature-row--reverse .feature-row__visual { order: 0; }
  .feature-row__content h3 { max-width: 100%; }
}

/* Visual side — demo card */
.feature-row__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-card {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  overflow: hidden;
  position: relative;
}

.demo-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--ink-200);
  background: var(--paper-2);
}

.demo-card__dots {
  display: inline-flex;
  gap: 6px;
}

.demo-card__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-200);
}

.demo-card__title {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--ink-700);
  letter-spacing: -0.005em;
}

.demo-card__status {
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--brand-700);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo-card__body { padding: 28px; }

.demo-card__row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--ink-100);
}

.demo-card__row:last-child { border-bottom: 0; padding-bottom: 0; }
.demo-card__row:first-child { padding-top: 0; }

.demo-card__label {
  font-size: var(--fs-small);
  color: var(--ink-500);
  flex-shrink: 0;
}

.demo-card__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.02em;
}

.demo-card__bar {
  flex: 1;
  height: 8px;
  background: var(--ink-100);
  border-radius: var(--r-pill);
  overflow: hidden;
  align-self: center;
  max-width: 60%;
}

.demo-card__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-500), var(--brand-300));
  border-radius: var(--r-pill);
}

.demo-card__check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: var(--fs-small);
  font-weight: 600;
}

.demo-card__check::before {
  content: '✓';
  font-weight: 700;
}

.demo-card__section-label {
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--brand-700);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-bottom: 4px;
}

.demo-card__section-label + .demo-card__row { padding-top: 8px; }

.demo-card__section-label--spaced { margin-top: 14px; }

/* Chat-style demo card body */
.demo-card__messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.demo-card__msg {
  padding: 10px 14px;
  border-radius: 14px;
  font-size: var(--fs-small);
  line-height: 1.45;
  max-width: 85%;
}

.demo-card__msg--prospect {
  align-self: flex-start;
  background: var(--paper-2);
  color: var(--ink-700);
  border-bottom-left-radius: 4px;
}

.demo-card__msg--rep {
  align-self: flex-end;
  background: var(--ink-900);
  color: var(--paper);
  border-bottom-right-radius: 4px;
}

.demo-card__msg--coach {
  align-self: flex-start;
  background: var(--brand-100);
  color: var(--brand-900);
  font-style: italic;
  border-left: 3px solid var(--brand-500);
  border-radius: 8px;
}

.demo-card__msg-meta {
  display: block;
  margin-top: 4px;
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* Outcomes stat row (used inside agent pages and elsewhere) */
.outcomes {
  background: var(--ink-900);
  color: var(--paper);
}

.outcomes .section-heading h2 { color: var(--paper); }
.outcomes .section-heading h2 em { color: var(--brand-300); }
.outcomes .section-heading p { color: rgba(250, 251, 252, 0.7); }
.outcomes .section-heading .eyebrow { color: var(--brand-300); }

.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.outcome-stat {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 24px;
}

.outcome-stat__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 4.5vw, 60px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--paper);
}

.outcome-stat__num .unit {
  font-size: 0.55em;
  color: rgba(250, 251, 252, 0.5);
  margin-left: 4px;
  font-weight: 700;
}

.outcome-stat__label {
  font-size: var(--fs-small);
  color: rgba(250, 251, 252, 0.7);
  line-height: 1.5;
  max-width: 24ch;
}

@media (max-width: 880px) {
  .outcomes-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 540px) {
  .outcomes-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   ROI CALCULATOR
   ========================================================================== */

.roi-tool {
  background: var(--paper-2);
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
}

.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

.roi-form {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-xl);
  padding: 36px;
}

.roi-form__title {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--ink-900);
}

.roi-form__sub {
  font-size: var(--fs-small);
  color: var(--ink-500);
  margin: 0 0 24px;
}

.roi-form__field {
  display: block;
  margin-bottom: 18px;
}

.roi-form__label {
  display: block;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--ink-700);
  margin-bottom: 8px;
}

.roi-form__hint {
  display: inline;
  font-size: var(--fs-micro);
  color: var(--ink-400);
  font-weight: 400;
  margin-left: 6px;
}

.roi-form input,
.roi-form select {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 16px;
  color: var(--ink-900);
  appearance: none;
  -webkit-appearance: none;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.roi-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237A8694' d='M10.293 3.293L6 7.586 1.707 3.293A1 1 0 00.293 4.707l5 5a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.roi-form input:focus,
.roi-form select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(0, 106, 176, 0.15);
}

.roi-form__prefix {
  position: relative;
}

.roi-form__prefix::before {
  content: attr(data-prefix);
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  font-size: 16px;
  pointer-events: none;
}

.roi-form__prefix input { padding-left: 32px; }

/* Result panel */
.roi-result {
  background: var(--ink-900);
  color: var(--paper);
  border-radius: var(--r-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 96px;
}

.roi-result__eyebrow {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin-bottom: 8px;
}

.roi-result__big-label {
  font-size: var(--fs-small);
  color: rgba(250, 251, 252, 0.7);
  margin-bottom: 8px;
}

.roi-result__big {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--paper);
  margin-bottom: 20px;
}

.roi-result__rows {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.roi-result__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-small);
  gap: 16px;
}

.roi-result__row-label {
  color: rgba(250, 251, 252, 0.7);
}

.roi-result__row-value {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--paper);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.roi-result__cta {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roi-result__cta .btn--primary {
  background: var(--paper);
  color: var(--ink-900);
  width: 100%;
}

.roi-result__cta .btn--primary:hover {
  background: var(--brand-300);
}

.roi-result__fineprint {
  font-size: var(--fs-micro);
  color: rgba(250, 251, 252, 0.5);
  text-align: center;
  margin-top: 8px;
}

@media (max-width: 880px) {
  .roi-grid { grid-template-columns: 1fr; }
  .roi-result { position: static; }
  .roi-form, .roi-result { padding: 28px; }
}

/* ==========================================================================
   OLI-SPECIFIC PATTERNS
   ========================================================================== */

/* At a Glance — quick-scan fact block (great for SEO + AEO citations) */
.at-a-glance {
  background: var(--paper-2);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-xl);
  padding: 32px 36px;
  margin-top: 56px;
  max-width: 880px;
}

.at-a-glance__title {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
  margin: 0 0 16px;
}

.at-a-glance__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.at-a-glance__list li {
  padding: 14px 0;
  border-top: 1px solid var(--ink-200);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--ink-700);
}

.at-a-glance__list li:first-child { border-top: 0; padding-top: 4px; }
.at-a-glance__list li:last-child { padding-bottom: 4px; }

.at-a-glance__list strong { color: var(--ink-900); font-weight: 600; }

@media (max-width: 540px) {
  .at-a-glance { padding: 24px 22px; }
}

/* Science section — dark, prestigious treatment for DARPA story */
.science {
  background: var(--ink-900);
  color: var(--paper);
}

.science .section-heading h2 { color: var(--paper); }
.science .section-heading h2 em { color: var(--brand-300); }
.science .section-heading p { color: rgba(250, 251, 252, 0.75); }
.science .section-heading .eyebrow { color: var(--brand-300); }

.science__body {
  max-width: 760px;
  margin: 0 auto var(--s-7);
}

.science__body p {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(250, 251, 252, 0.85);
  margin: 0 0 24px;
}

.science__body p strong {
  color: var(--paper);
  font-weight: 600;
}

.science__pullquote {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--paper);
  border-left: 3px solid var(--brand-300);
  padding: 8px 0 8px 24px;
  margin: 32px 0;
  font-style: italic;
  max-width: 720px;
}

.science__pullquote em {
  font-style: italic;
  color: var(--brand-300);
  font-weight: 700;
}

.science__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 760px;
  margin: 0 auto var(--s-8);
}

.science__stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.science__stat-num {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--paper);
}

.science__stat-num .unit {
  font-size: 0.55em;
  color: rgba(250, 251, 252, 0.5);
  margin-left: 4px;
}

.science__stat-label {
  font-size: var(--fs-small);
  color: rgba(250, 251, 252, 0.65);
  line-height: 1.45;
}

@media (max-width: 720px) {
  .science__stats { grid-template-columns: 1fr; gap: 12px; }
  .science__pullquote { font-size: 20px; padding-left: 18px; }
}

/* Comparison table — What DARPA proved / What we added */
.compare-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  max-width: 880px;
  margin: 0 auto;
}

.compare-table__head {
  padding: 20px 24px;
  background: rgba(255, 255, 255, 0.06);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-300);
}

.compare-table__head + .compare-table__head {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.compare-table__cell {
  padding: 18px 24px;
  font-size: var(--fs-small);
  line-height: 1.55;
  color: rgba(250, 251, 252, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.compare-table__cell:nth-child(odd) {
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.compare-table__cell strong { color: var(--paper); }

@media (max-width: 720px) {
  .compare-table { grid-template-columns: 1fr; }
  .compare-table__head + .compare-table__head { border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.15); }
  .compare-table__cell:nth-child(odd) { border-right: 0; }
  .compare-table__cell { padding: 16px 22px; }
}

/* Founder card — used on About page */
.founder {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 28px;
  align-items: start;
}

.founder__photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  /* Anchor crop near the top of the image so headshots don't lose the
     top of the head when the square photo is masked to a circle. */
  object-position: center 18%;
  background: var(--paper-2);
}

/* Bold emphasis in hero subhead — marks the dual nature of the offering
   ("adaptive learning systems" + "hands-on enablement services"). Slightly
   darker than the body color so it stands out without screaming. */
.hero__sub strong {
  color: var(--ink-900);
  font-weight: 700;
}

.founder__name {
  font-family: var(--font-display);
  font-size: var(--fs-h3);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
  color: var(--ink-900);
}

.founder__role {
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--brand-700);
  margin: 0 0 16px;
  letter-spacing: 0.01em;
}

.founder__bio {
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-500);
  margin: 0 0 16px;
}

.founder__quote {
  font-style: italic;
  color: var(--ink-700);
  border-left: 3px solid var(--brand-500);
  padding-left: 16px;
  font-size: var(--fs-small);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 640px) {
  .founder { grid-template-columns: 1fr; gap: 16px; }
  .founder__photo { width: 96px; height: 96px; }
}

/* Bloom 2-Sigma chart — sits inside .science section */
.bloom-chart {
  max-width: 760px;
  margin: 16px auto 32px;
  padding: 36px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-xl);
}

.bloom-chart__title {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-300);
  margin: 0 0 24px;
}

.bloom-chart__row {
  display: grid;
  grid-template-columns: 200px 1fr 120px;
  gap: 20px;
  align-items: center;
  padding: 14px 0;
}

.bloom-chart__label {
  font-size: var(--fs-small);
  color: rgba(250, 251, 252, 0.85);
  font-weight: 500;
}

.bloom-chart__bar-track {
  position: relative;
  height: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.bloom-chart__bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: var(--r-pill);
  transition: width 1200ms cubic-bezier(0.22, 0.61, 0.36, 1);
}

.bloom-chart__row--low .bloom-chart__bar-fill {
  background: rgba(159, 176, 187, 0.5);
}
.bloom-chart__row--mid .bloom-chart__bar-fill {
  background: rgba(77, 155, 208, 0.65);
}
.bloom-chart__row--high .bloom-chart__bar-fill {
  background: var(--brand-300);
  box-shadow: 0 0 24px rgba(77, 155, 208, 0.25);
}

/* Animate when chart scrolls into view */
.bloom-chart.is-visible .bloom-chart__row--low .bloom-chart__bar-fill { width: 50%; }
.bloom-chart.is-visible .bloom-chart__row--mid .bloom-chart__bar-fill { width: 84%; }
.bloom-chart.is-visible .bloom-chart__row--high .bloom-chart__bar-fill { width: 98%; }

.bloom-chart__value {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--paper);
  text-align: right;
  letter-spacing: -0.01em;
}

.bloom-chart__caption {
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-micro);
  color: rgba(250, 251, 252, 0.55);
  line-height: 1.55;
}

.bloom-chart__caption em { font-style: italic; }

@media (max-width: 640px) {
  .bloom-chart { padding: 24px; }
  .bloom-chart__row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 10px 0;
  }
  .bloom-chart__value { text-align: left; font-size: 15px; }
  .bloom-chart__bar-track { margin: 4px 0; }
}

/* Section-heading morph — smaller-context word morph for places other than hero */
.section-morph {
  font-family: var(--font-display);
  font-size: var(--fs-display-md);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin: 12px 0;
  color: var(--ink-900);
}

.section-morph__line {
  display: block;
}

.section-morph__line--swap .swap {
  white-space: nowrap;
}

@media (max-width: 640px) {
  .section-morph__line--swap {
    font-size: clamp(22px, 6.5vw, 36px);
  }
}

/* Proof — secondary testimonial cards (2-up under the big featured quote) */
.proof__secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 1000px;
  margin: 64px auto 0;
}

.proof__card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}

.proof__card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: var(--brand-300);
}

.proof__card blockquote {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--ink-900);
  margin: 0 0 20px;
}

.proof__card blockquote em {
  font-style: italic;
  color: var(--brand-700);
  font-weight: 700;
}

.proof__card-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-small);
  color: var(--ink-500);
}

.proof__card-attribution img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.proof__card-attribution strong {
  color: var(--ink-900);
  font-weight: 600;
}

@media (max-width: 640px) {
  .proof__secondary { grid-template-columns: 1fr; gap: 16px; margin-top: 40px; }
  .proof__card { padding: 24px; }
}

/* Why Time Machine — 5-card value-prop grid (3 cards top row, 2 bottom centered) */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: var(--s-7);
}

/* Last two cards center themselves on the second row */
.why-grid > .why-card:nth-child(4) {
  grid-column: 1 / span 1;
  grid-column-start: auto;
}

.why-card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--dur-base) var(--ease),
              box-shadow var(--dur-base) var(--ease),
              border-color var(--dur-base) var(--ease);
}

.why-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--brand-300);
}

.why-card--featured {
  background: var(--ink-900);
  color: var(--paper);
  border-color: var(--ink-900);
}

.why-card--featured .why-card__num { color: var(--brand-300); }
.why-card--featured .why-card__title { color: var(--paper); }
.why-card--featured .why-card__body { color: rgba(250, 251, 252, 0.75); }
.why-card--featured .why-card__proof { border-top-color: rgba(255, 255, 255, 0.15); }
.why-card--featured .why-card__stat { color: var(--brand-300); }
.why-card--featured .why-card__stat-label { color: rgba(250, 251, 252, 0.55); }

.why-card__num {
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-700);
}

.why-card__title {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink-900);
  margin: 0;
}

.why-card__title em {
  font-style: italic;
  color: var(--brand-700);
  font-weight: 700;
}

.why-card__body {
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--ink-500);
  margin: 0;
  flex-grow: 1;
}

.why-card__body strong {
  color: var(--ink-900);
  font-weight: 600;
}

.why-card__proof {
  padding-top: 16px;
  border-top: 1px solid var(--ink-200);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.why-card__stat {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--brand-700);
  line-height: 1.1;
}

.why-card__stat-label {
  font-size: var(--fs-micro);
  color: var(--ink-500);
  line-height: 1.35;
}

/* Tablet — 2-up */
@media (max-width: 960px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile — 1-up */
@media (max-width: 540px) {
  .why-grid { grid-template-columns: 1fr; gap: 16px; }
  .why-card { padding: 28px 24px; }
}
