/* ================================================================
   PAIR Systems × Slalom — Enablement Microsite
   Visual register: Slalom 3/6 deck. Clean white, dark navy headers,
   Slalom blue accents. Inter for body, Poppins for display.
   Glass-card surfaces. Generous whitespace.
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@600;700;800;900&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700;8..60,800&display=swap');

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

:root {
  /* --- Surfaces --- */
  --bg: #FFFFFF;
  --bg-soft: #F8FAFC;
  --bg-tint: #EFF4FA;
  --surface: #FFFFFF;

  /* --- Glass --- */
  --glass-l1-bg: rgba(255, 255, 255, 0.78);
  --glass-l1-blur: blur(40px) saturate(1.8);
  --glass-l2-bg: #FFFFFF;
  --glass-l2-border: rgba(11, 31, 58, 0.08);

  /* --- Ink (dark navy hierarchy) --- */
  --ink: #0B1F3A;
  --ink-soft: #1E293B;
  --ink-muted: #475569;
  --ink-mute2: #64748B;
  --ink-light: #94A3B8;

  /* --- Lines --- */
  --line: #E2E8F0;
  --line-soft: #EDF2F7;
  --line-strong: #CBD5E1;

  /* --- Brand: Slalom blue + dark navy --- */
  --accent: #1F7AC4;
  --accent-strong: #155A92;
  --accent-deep: #0E3F6A;
  --accent-soft: #DBEAFB;
  --accent-tint: #EAF3FB;
  --accent-rgb: 31, 122, 196;

  /* --- Status colors (used sparingly) --- */
  --good: #15803D;
  --good-soft: #DCFCE7;
  --warn: #B45309;
  --warn-soft: #FEF3C7;
  --bad: #B91C1C;
  --bad-soft: #FEE2E2;

  /* --- Typography --- */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Poppins', var(--font);
  --font-serif: 'Source Serif 4', 'Source Serif Pro', Georgia, 'Times New Roman', serif;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;

  /* --- Shadows --- */
  --shadow-xs: 0 1px 2px rgba(11, 31, 58, 0.04);
  --shadow-sm: 0 1px 3px rgba(11, 31, 58, 0.05), 0 1px 2px rgba(11, 31, 58, 0.04);
  --shadow-md: 0 4px 16px rgba(11, 31, 58, 0.06), 0 2px 6px rgba(11, 31, 58, 0.04);
  --shadow-lg: 0 16px 40px rgba(11, 31, 58, 0.08), 0 6px 12px rgba(11, 31, 58, 0.05);
  --shadow-glow: 0 0 0 4px var(--accent-soft);

  /* --- Radii --- */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  /* --- Layout --- */
  --container: 1340px;
  --gutter: 1.75rem;
}

/* ----------- Base ----------- */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}
h1 {
  font-size: clamp(2.25rem, 3vw + 1rem, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
h2 {
  font-size: clamp(1.625rem, 1.75vw + 0.9rem, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
}
h3 { font-size: 1.3rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; font-family: var(--font); letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--accent-soft); color: var(--accent-deep); }

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

/* ----------- Ambient background ----------- */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.ambient-bg::before,
.ambient-bg::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
}
.ambient-bg::before {
  top: -10%;
  left: -5%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
}
.ambient-bg::after {
  top: 30%;
  right: -10%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, var(--accent-tint) 0%, transparent 70%);
}

/* ----------- Site header ----------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--glass-l1-bg);
  backdrop-filter: var(--glass-l1-blur);
  -webkit-backdrop-filter: var(--glass-l1-blur);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.brand:hover { text-decoration: none; color: var(--ink); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: -0.04em;
  box-shadow: 0 2px 6px rgba(var(--accent-rgb), 0.35);
}
.brand-pair { color: var(--ink); font-weight: 800; }
.brand-x { color: var(--ink-light); font-weight: 400; font-size: 0.85em; margin: 0 0.15rem; }
.brand-slalom { color: var(--ink); font-weight: 700; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}
.primary-nav a {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.primary-nav a:hover {
  color: var(--accent);
  background: var(--accent-tint);
  text-decoration: none;
}
.primary-nav a.active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.55rem;
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 0.55rem 0.95rem 0.55rem 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(var(--accent-rgb), 0.35);
  margin-left: auto;
  transition: background 0.15s, box-shadow 0.15s;
}
.nav-toggle:hover {
  background: var(--accent-strong);
  box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.45);
}
.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}
.nav-toggle-bars span {
  display: block;
  width: 18px;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  transition: all 0.2s;
}
.nav-toggle-label {
  display: inline-block;
}

@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: white;
    padding: 0.5rem 1.5rem 1rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    gap: 0;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a {
    padding: 0.85rem 0.85rem;
    border-radius: 0;
    border-bottom: 1px solid var(--line-soft);
  }
  .primary-nav a:last-child { border-bottom: 0; }
}

/* ----------- Footer ----------- */
.site-footer {
  margin-top: 5rem;
  padding: 2.5rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: var(--ink-muted);
}
.footer-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.footer-sep { color: var(--line-strong); }
.footer-brand { font-weight: 700; color: var(--ink); display: inline-flex; align-items: center; gap: 0.5rem; }

/* ----------- Hero ----------- */
.hero {
  padding: 3.25rem 0 1.25rem;
  position: relative;
}
.hero + .section-tight,
.hero + .section { padding-top: 1.25rem; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 600px 400px at 80% 0%, var(--accent-tint) 0%, transparent 60%),
    radial-gradient(ellipse 400px 300px at 0% 100%, var(--accent-soft) 0%, transparent 50%);
  z-index: -1;
}
.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
  padding: 0.4rem 0.85rem;
  background: var(--accent-soft);
  border-radius: 999px;
  border: 1px solid rgba(var(--accent-rgb), 0.18);
}
.hero .eyebrow .pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(var(--accent-rgb), 0); }
}
.hero h1 {
  color: var(--ink);
  margin-bottom: 0.75rem;
  max-width: 1000px;
}
.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .lede {
  font-size: 1.2rem;
  color: var(--ink-muted);
  max-width: 900px;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}
.hero .cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

/* ----------- Sections ----------- */
.section { padding: 2.25rem 0; }
.section-tight { padding: 1.25rem 0 1.75rem; }
.section-tagline {
  display: block;
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.section-tagline + h2 { margin-top: 0; }
.section-lede {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 900px;
  margin-bottom: 1rem;
  line-height: 1.65;
}

/* ----------- Buttons ----------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
  font-family: var(--font);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
  color: white;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}
.btn-secondary {
  background: white;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  text-decoration: none;
}
.btn-ghost {
  background: transparent;
  color: var(--accent-strong);
  border-color: transparent;
  padding: 0.5rem 0.85rem;
}
.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
  text-decoration: none;
}

/* ----------- Status widget ----------- */
.status-widget {
  margin-top: 2rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.status-widget::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.status-widget .status-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute2);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.status-widget .status-label::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 3px var(--good-soft);
}
.status-widget h3 {
  margin: 0.6rem 0 1.2rem;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -0.015em;
  font-family: var(--font-display);
}
.status-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}
@media (min-width: 720px) { .status-list { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.status-list .label {
  display: block;
  font-size: 0.72rem;
  color: var(--ink-mute2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 0.35rem;
}
.status-list .value {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}
.status-meta {
  font-size: 0.8rem;
  color: var(--ink-mute2);
  border-top: 1px solid var(--line-soft);
  padding-top: 0.85rem;
  margin: 0;
}

/* ----------- Card / glass surfaces ----------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
  position: relative;
}
.card-glass {
  background: linear-gradient(180deg, white 0%, var(--bg-soft) 100%);
}
.card-hover { cursor: pointer; }
.card-hover:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-tint) 0%, var(--accent-soft) 100%);
  color: var(--accent-strong);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(var(--accent-rgb), 0.15);
}
.card .num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.6rem;
  display: inline-block;
}
.card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.card .pick-this {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.5;
}
.card .pick-this strong { color: var(--ink); }

/* ----------- Reading layouts (avoid dense grids per brief) ----------- */
.prose {
  max-width: 900px;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--ink-soft);
}
.prose h2 {
  margin-top: 2rem;
  margin-bottom: 0.65rem;
  font-size: clamp(1.5rem, 1vw + 1.1rem, 1.85rem);
}
.prose h2:first-child,
.prose .section-tagline + h2 { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; margin-bottom: 0.45rem; font-family: var(--font); font-size: 1.1rem; }
.prose .section-tagline { margin-bottom: 0.45rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: 0 0 1em; }
.prose li { margin-bottom: 0.4em; }
.prose blockquote {
  margin: 1.75rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  font-style: italic;
  color: var(--ink);
}
.prose strong { color: var(--ink); font-weight: 600; }
.prose em { color: var(--ink-soft); }

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 980px;
}
@media (min-width: 880px) { .two-col { grid-template-columns: 1fr 1fr; gap: 3rem; } }

/* ----------- Numbered cards ----------- */
.numbered-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1080px;
}
@media (min-width: 720px) { .numbered-cards { grid-template-columns: repeat(3, 1fr); } }
.numbered-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  position: relative;
  overflow: hidden;
  transition: all 0.18s;
}
.numbered-card:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: var(--shadow-md);
}
.numbered-card .num-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  font-weight: 800;
  font-size: 0.95rem;
  font-family: var(--font-display);
  box-shadow: 0 2px 6px rgba(var(--accent-rgb), 0.3);
}
.numbered-card h4 { font-size: 1.05rem; color: var(--ink); margin: 0; font-family: var(--font-display); font-weight: 700; }
.numbered-card p { margin: 0; font-size: 0.95rem; color: var(--ink-muted); line-height: 1.55; }

/* ----------- Software/Services split ----------- */
.split-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
  max-width: 1080px;
}
@media (min-width: 720px) { .split-panel { grid-template-columns: 1fr 1fr; } }
.split-side {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.split-side::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.split-side.services::before {
  background: linear-gradient(90deg, var(--ink-muted) 0%, var(--ink) 100%);
}
.split-side .who {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 0.5rem;
}
.split-side.services .who { color: var(--ink); }
.split-side h3 { color: var(--ink); margin: 0 0 0.85rem; font-size: 1.35rem; font-family: var(--font-display); }
.split-side p { color: var(--ink-muted); margin: 0; line-height: 1.6; }

/* ----------- Use-case selector ----------- */
.use-case-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 2rem 0;
}
@media (min-width: 880px) { .use-case-grid { grid-template-columns: repeat(3, 1fr); } }
.use-case-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.use-case-card:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.use-case-card .icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  background: none;
  border: none;
  margin-bottom: 0.5rem;
  font-size: inherit;
}
.use-case-card .icon svg { width: 100%; height: 100%; display: block; }
.use-case-card .category {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute2);
  margin-bottom: 0.15rem;
}
.use-case-card .num {
  margin-bottom: 0.3rem;
}
.use-case-card h3 { font-size: 1.2rem; color: var(--ink); }
.use-case-card .one-liner { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.55; margin-bottom: 0.5rem; }
.use-case-card .proof {
  font-size: 0.85rem;
  color: var(--ink-muted);
  background: var(--bg-soft);
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  margin: 0.5rem 0;
}
.use-case-card .proof strong { color: var(--ink); }
.use-case-card .pick-this {
  font-size: 0.85rem;
  color: var(--ink-muted);
  border-top: 1px solid var(--line-soft);
  padding-top: 0.85rem;
  margin-top: auto;
}
.use-case-card .pick-this strong { color: var(--ink); }
.use-case-card .card-cta {
  margin-top: 1rem;
}

/* ----------- Analogy picker ----------- */
.analogy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
@media (min-width: 880px) { .analogy-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
.analogy-tab {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.6rem;
  cursor: pointer;
  text-align: left;
  font-family: var(--font);
  transition: all 0.18s;
  position: relative;
}
.analogy-tab .icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-strong);
  margin-bottom: 0.15rem;
}
.analogy-tab .icon svg { width: 100%; height: 100%; display: block; }
.analogy-tab .category {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute2);
}
.analogy-tab .title {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.018em;
}
.analogy-tab .when { color: var(--ink-muted); font-size: 0.88rem; line-height: 1.5; }
.analogy-tab:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.analogy-tab.active {
  border-color: var(--accent);
  background: linear-gradient(180deg, white 0%, var(--accent-soft) 100%);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(var(--accent-rgb), 0.1);
}

.analogy-detail {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
  max-width: 1080px;
}
.analogy-detail.hidden { display: none; }
.analogy-detail .detail-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
.analogy-detail .detail-head .icon {
  width: 32px;
  height: 32px;
  color: var(--accent-strong);
  flex-shrink: 0;
}
.analogy-detail .detail-head .icon svg { width: 100%; height: 100%; }
.analogy-detail .detail-head h3 {
  font-size: 1.55rem;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.analogy-detail .script {
  font-family: var(--font);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--ink);
  border-left: 3px solid var(--accent);
  padding: 0.4rem 0 0.4rem 1.25rem;
  margin: 0 0 1.5rem;
}
.analogy-detail .script::before {
  content: none;
}
.analogy-detail .why-when {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 720px) { .analogy-detail .why-when { grid-template-columns: 1fr 1fr; } }
.analogy-detail .why-when > div {
  padding: 0.85rem 1rem;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  border-top: 2px solid var(--line-strong);
}
.analogy-detail .why-when .label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute2);
  margin-bottom: 0.3rem;
}
.analogy-detail .why-when p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink-soft);
}
.analogy-detail .mapping-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
}
@media (min-width: 720px) { .analogy-detail .mapping-grid { grid-template-columns: 1fr 1fr; } }
.analogy-detail .mapping-grid .row {
  display: flex;
  gap: 0.6rem;
  font-size: 1rem;
  line-height: 1.45;
  padding: 0.4rem 0;
  border-top: 1px solid var(--line-soft);
}
.analogy-detail .mapping-grid .row:first-child { border-top: 0; padding-top: 0; }
.analogy-detail .mapping-grid .row:nth-child(2) { border-top: 0; padding-top: 0; }
@media (max-width: 720px) {
  .analogy-detail .mapping-grid .row:nth-child(2) { border-top: 1px solid var(--line-soft); padding-top: 0.4rem; }
}
.analogy-detail .mapping-grid .from {
  font-weight: 700;
  color: var(--ink);
  flex-shrink: 0;
  min-width: 110px;
}
.analogy-detail .mapping-grid .to {
  color: var(--ink-muted);
}
.analogy-detail .mapping-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute2);
  margin-bottom: 0.5rem;
  display: block;
}

.closing-callout {
  margin-top: 1.5rem;
  background: linear-gradient(135deg, var(--accent-tint) 0%, var(--bg-soft) 100%);
  border: 1px solid rgba(var(--accent-rgb), 0.18);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  font-style: normal;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 900px;
}
.closing-callout strong { color: var(--ink); font-style: normal; }

/* ----------- Sandbox demo ----------- */
.sandbox {
  background: linear-gradient(180deg, var(--bg-soft) 0%, white 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.sandbox::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 50%, var(--accent) 100%);
}
.sandbox-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.sandbox-header .demo-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
}
.sandbox h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  font-family: var(--font-display);
  color: var(--ink);
}
.sandbox .sub {
  color: var(--ink-muted);
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.schema-preview {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1rem 0 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: grid;
  gap: 0.5rem;
  box-shadow: var(--shadow-xs);
}
.schema-preview-header {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute2);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 0.25rem;
}
.schema-preview .table {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: baseline;
}
.schema-preview .table-name {
  color: var(--accent-deep);
  font-weight: 700;
  min-width: 130px;
}
.schema-preview .cols { color: var(--ink-mute2); font-size: 0.8rem; }

.question-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.75rem;
}
.question-btn {
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: white;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: all 0.15s;
  text-align: left;
  font-weight: 500;
}
.question-btn:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-tint);
}
.question-btn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
  box-shadow: var(--shadow-md);
}

.sandbox-results {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 920px) { .sandbox-results { grid-template-columns: 1fr 1fr; } }

.result-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  position: relative;
  overflow: hidden;
}
.result-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}
.result-panel.bad::before { background: linear-gradient(90deg, var(--bad) 0%, #DC2626 100%); }
.result-panel.good::before { background: linear-gradient(90deg, var(--good) 0%, #16A34A 100%); }
.result-panel .label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute2);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.result-panel.bad .label { color: var(--bad); }
.result-panel.good .label { color: var(--good); }
.result-panel h4 {
  margin: 0;
  font-size: 1.1rem;
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 700;
}

.metric-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
}
.metric-row .pill {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.8rem;
}
.metric-row .pill.danger { color: var(--bad); border-color: rgba(185, 28, 28, 0.2); background: var(--bad-soft); }
.metric-row .pill.success { color: var(--good); border-color: rgba(21, 128, 61, 0.2); background: var(--good-soft); }

.code-block {
  background: #0F172A;
  color: #E2E8F0;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  overflow-x: auto;
  white-space: pre;
  line-height: 1.65;
  border: 1px solid #1E293B;
}
.code-block .kw { color: #93C5FD; font-weight: 600; }
.code-block .err { color: #FCA5A5; }
.code-block .ok { color: #86EFAC; }

.callout {
  font-size: 0.88rem;
  background: var(--warn-soft);
  border-left: 3px solid var(--warn);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--warn);
  line-height: 1.5;
}
.callout.success { background: var(--good-soft); color: var(--good); border-left-color: var(--good); }

.result-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.result-table th, .result-table td {
  padding: 0.6rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}
.result-table th {
  background: var(--bg-soft);
  font-weight: 700;
  color: var(--ink);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.result-table tr:last-child td { border-bottom: 0; }
.result-table tr:nth-child(even) td { background: rgba(248, 250, 252, 0.5); }

.how-pair {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.how-pair .check {
  color: var(--good);
  margin-right: 0.5rem;
  font-weight: 800;
}

.sandbox-empty {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--ink-mute2);
  font-size: 0.95rem;
  background: white;
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
}

.loading-shimmer {
  background: linear-gradient(90deg, var(--bg-soft) 0%, var(--line-soft) 50%, var(--bg-soft) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
  border-radius: var(--radius-sm);
  height: 14px;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.sandbox-cta {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.sandbox-cta h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--ink);
  font-family: var(--font-display);
}
.sandbox-disclaimer {
  font-size: 0.82rem;
  color: var(--ink-mute2);
  text-align: center;
  margin-top: 1.5rem;
  font-style: italic;
}

/* ----------- Logo cards (Pursuits) ----------- */
.logo-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
  max-width: 980px;
}
@media (min-width: 720px) { .logo-stack { grid-template-columns: repeat(2, 1fr); } }
.logo-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: all 0.18s;
}
.logo-card:hover {
  border-color: rgba(var(--accent-rgb), 0.3);
  box-shadow: var(--shadow-md);
}
.logo-card .logo-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink);
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}
.logo-card .logo-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--good);
  background: var(--good-soft);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  width: fit-content;
}
.logo-card .logo-badge.muted { color: var(--ink-mute2); background: var(--bg-soft); border: 1px solid var(--line); }
.logo-card p { margin: 0; font-size: 0.92rem; color: var(--ink-muted); line-height: 1.55; }
.logo-card p strong { color: var(--ink); font-weight: 600; }

/* ----------- Sales Tools (blurbs) ----------- */
.blurb-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0 2rem;
}
@media (min-width: 1024px) { .blurb-grid { grid-template-columns: repeat(3, 1fr); } }
.blurb-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s;
}
.blurb-card:hover { box-shadow: var(--shadow-md); }
.blurb-card .badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--accent-soft);
  color: var(--accent-strong);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.blurb-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-family: var(--font-display);
  color: var(--ink);
}
.blurb-card .blurb-content {
  font-size: 0.85rem;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  white-space: pre-wrap;
  line-height: 1.65;
  flex: 1;
  margin-bottom: 1rem;
  font-family: var(--font);
  max-height: 360px;
  overflow-y: auto;
}
.blurb-card .blurb-content strong { color: var(--ink); font-weight: 700; }
.copy-btn {
  align-self: flex-start;
  padding: 0.6rem 1.1rem;
  background: var(--ink);
  color: white;
  border: 0;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: var(--font);
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.copy-btn:hover { background: var(--accent-deep); }
.copy-btn.copied { background: var(--good); }

.internal-banner {
  background: linear-gradient(135deg, var(--warn-soft) 0%, #FEF9C3 100%);
  border: 1px solid #FCD34D;
  border-left: 4px solid var(--warn);
  border-radius: var(--radius);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.92rem;
  color: var(--warn);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}
.internal-banner strong { color: var(--warn); font-weight: 700; }
.internal-banner-icon { font-size: 1.2rem; flex-shrink: 0; }

/* ----------- Team / contact panels ----------- */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin: 1.5rem 0;
  max-width: 1080px;
}
@media (min-width: 880px) { .team-grid { grid-template-columns: repeat(3, 1fr); } }
.team-col {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}
.team-col h3 {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  margin-bottom: 1rem;
  font-family: var(--font);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}
.team-col .person { margin-bottom: 1rem; }
.team-col .person:last-child { margin-bottom: 0; }
.team-col .person-name { font-weight: 700; color: var(--ink); display: block; font-family: var(--font-display); }
.team-col .person-role { font-size: 0.88rem; color: var(--ink-muted); line-height: 1.5; }

/* ----------- Misc ----------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--line) 30%, var(--line) 70%, transparent 100%);
  margin: 1.5rem auto;
  border: 0;
  max-width: 1080px;
}
.muted { color: var(--ink-muted); }
.ink { color: var(--ink); }
.text-center { text-align: center; }
.cta-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}
.cta-row.center { justify-content: center; }

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast::before {
  content: '✓';
  color: var(--good);
  font-weight: 800;
}

/* Reveal animation on scroll */
[data-reveal] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].visible {
  opacity: 1;
  transform: translateY(0);
}

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

/* ================================================================
   ARTICLE LAYOUT — for /use-cases/* deep-dive briefs.
   Editorial register: Source Serif 4 body, generous reading column,
   refined section hierarchy. McKinsey-grade finish.
   ================================================================ */

.article {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-muted);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 2rem 0 1.5rem;
  transition: color 0.15s;
}
.article-back:hover { color: var(--accent-strong); text-decoration: none; }
.article-back::before { content: '←'; font-size: 1rem; line-height: 1; }

.article-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.article-eyebrow {
  display: inline-block;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

.read-time {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute2);
  padding: 0.3rem 0.7rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.read-time::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.article-title {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.8vw + 1.6rem, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 0.85rem;
}
.article-title em {
  font-style: italic;
  color: var(--accent-deep);
}

.article-subtitle {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.15rem, 0.5vw + 1rem, 1.4rem);
  line-height: 1.5;
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
  font-style: italic;
}

.article-byline {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font);
  font-size: 0.86rem;
  color: var(--ink-mute2);
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2.25rem;
}
.article-byline .author-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: -0.02em;
}
.article-byline strong { color: var(--ink-soft); font-weight: 600; }
.article-byline .dot { color: var(--line-strong); }

/* ---- Article body ---- */

.article-body {
  font-family: var(--font-serif);
  font-size: 1.18rem;
  line-height: 1.78;
  color: #2A3849;
  letter-spacing: -0.005em;
}

.article-body p {
  margin: 0 0 1.4em;
}
.article-body p:last-child { margin-bottom: 0; }

.article-body p:first-of-type::first-letter {
  /* Drop cap on lead paragraph (subtle, optional via class) */
}
.article-body .lede-para {
  font-size: 1.3rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 1.6em;
  font-weight: 400;
}

.article-body h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1.25;
  letter-spacing: -0.018em;
  color: var(--ink);
  margin: 2.5rem 0 0.75rem;
}

.article-body h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 2rem 0 0.5rem;
}

.article-body strong { color: var(--ink); font-weight: 700; }
.article-body em { font-style: italic; color: #2A3849; }

.article-body a {
  color: var(--accent-strong);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(var(--accent-rgb), 0.4);
  transition: text-decoration-color 0.15s;
}
.article-body a:hover {
  text-decoration-color: var(--accent-strong);
  color: var(--accent-deep);
}

.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin: 0 0 1.4em;
}
.article-body li { margin-bottom: 0.5em; }
.article-body li::marker { color: var(--accent); }

.article-body blockquote {
  margin: 2rem -0.5rem;
  padding: 0 1.5rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.22rem;
  line-height: 1.65;
  color: var(--ink);
  position: relative;
}
.article-body blockquote::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: -1.5rem;
  font-family: var(--font-serif);
  font-size: 4rem;
  font-style: normal;
  color: rgba(var(--accent-rgb), 0.18);
  line-height: 1;
  font-weight: 700;
}

.article-body .pull {
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.018em;
  margin: 2.25rem 0;
  padding: 1.5rem 0;
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.article-body hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 2.5rem auto;
  max-width: 60%;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--bg-soft);
  padding: 0.1em 0.4em;
  border-radius: 4px;
  color: var(--accent-deep);
}

/* ---- Article footer CTA ---- */

.article-footer {
  margin-top: 3rem;
  padding: 2rem;
  background: linear-gradient(180deg, var(--bg-soft) 0%, white 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.article-footer h4 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 0.4rem;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.article-footer p {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink-muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.article-footer .cta-row {
  justify-content: center;
}

/* ---- Article hero spacing override ---- */
.article-hero {
  padding: 0;
  background: none;
}
.article-hero::before { display: none; }

/* ----------- Proof strip (Overview success-stories callout) ----------- */
.proof-strip {
  margin: 2rem 0 0;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, white 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  max-width: 740px;
  box-shadow: var(--shadow-xs);
}
.proof-strip-label {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  flex-shrink: 0;
  padding-right: 1rem;
  border-right: 1px solid var(--line);
}
.proof-strip p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1;
  min-width: 240px;
}
.proof-strip-link {
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-strong);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.005em;
}
.proof-strip-link:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 600px) {
  .proof-strip-label { border-right: 0; padding-right: 0; padding-bottom: 0.4rem; border-bottom: 1px solid var(--line); width: 100%; }
}

/* ----------- Integration ecosystem (Partnership page) ----------- */
.eco-block {
  margin: 2rem 0 1.5rem;
  max-width: 1080px;
  background: linear-gradient(180deg, white 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.eco-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-deep) 50%, var(--accent) 100%);
}
.eco-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.75rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
}
.eco-row:first-child { border-top: 0; padding-top: 0.25rem; }
.eco-row .eco-label {
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  padding-top: 0.5rem;
}
.eco-row .eco-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.eco-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.05rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.eco-pill:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.eco-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}
.eco-note {
  margin: 1.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.eco-note::before {
  content: '+';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-right: 0.6rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 0.95rem;
  vertical-align: -0.2em;
}
@media (max-width: 720px) {
  .eco-block { padding: 1.5rem 1.25rem; }
  .eco-row { grid-template-columns: 1fr; gap: 0.6rem; }
  .eco-row .eco-label { padding-top: 0; }
}

/* ----------- Talk-track quick reference (Story page, legacy) ----------- */
.talktrack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  margin: 1.5rem 0;
  max-width: 900px;
}
@media (min-width: 720px) { .talktrack { grid-template-columns: repeat(2, 1fr); } }
.talktrack-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
  line-height: 1.5;
}
.talktrack-item .icon {
  font-size: 1.1rem;
  width: auto;
  height: auto;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  flex-shrink: 0;
}
.talktrack-item strong {
  color: var(--ink);
  font-weight: 700;
}
.talktrack-item span {
  color: var(--ink-muted);
}

/* ---- Card "read time" inline pill on selector cards ---- */
.use-case-card .card-cta {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
}
.use-case-card .card-cta .read-time-mini {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute2);
}

/* ----------- Table of contents (home page) ----------- */
.toc-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 1080px;
  margin-top: 1.25rem;
}
@media (min-width: 720px) {
  .toc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .toc-grid { grid-template-columns: repeat(3, 1fr); }
}
.toc-card {
  display: block;
  padding: 1.4rem 1.5rem;
  background: white;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s, background 0.15s;
}
.toc-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  background: var(--accent-tint);
  border-color: var(--accent);
  border-left-color: var(--accent-deep);
}
.toc-card h4 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 0.45rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.toc-card h4::after {
  content: '→';
  font-weight: 600;
  color: var(--accent);
  margin-left: auto;
  font-size: 1.15rem;
  transition: transform 0.15s, color 0.15s;
}
.toc-card:hover h4::after {
  transform: translateX(4px);
  color: var(--accent-strong);
}
.toc-card p {
  font-size: 0.97rem;
  color: var(--ink-muted);
  margin: 0;
  line-height: 1.55;
}

/* ----------- GoodMem before/after diagram ----------- */
.gm-section { padding-top: 1.5rem; padding-bottom: 3rem; }
.gm-header { max-width: 900px; }
.gm-header h2 { margin-bottom: 0.65rem; }
.gm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.85rem;
  margin: 1.4rem 0 1.6rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.gm-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}
.gm-swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}
.gm-swatch-today {
  background: #F1EFE9;
  border: 1.5px solid #C2BEB2;
}
.gm-swatch-memory {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
}
.gm-swatch-loop {
  background: white;
  border: 2px solid var(--accent);
  position: relative;
}
.gm-swatch-loop::after {
  content: '';
  position: absolute;
  top: 1.5px;
  left: 1.5px;
  right: 1.5px;
  bottom: 1.5px;
  border: 1.5px solid var(--accent);
  border-top-color: transparent;
  border-radius: 50%;
}
.gm-stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  aspect-ratio: 1120 / 720;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #FAFAF7;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
  box-shadow: var(--shadow-lg);
}
.gm-layer {
  position: absolute;
  inset: 0;
}
.gm-layer svg {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}
.gm-after {
  clip-path: inset(0 0 0 var(--gm-pos, 50%));
  background: #FAFAF7;
}
.gm-tag {
  position: absolute;
  top: 16px;
  font-size: 12px;
  line-height: 1.5;
  max-width: 32%;
  z-index: 4;
  pointer-events: none;
  font-family: var(--font);
}
.gm-tag b {
  font-family: var(--font-display);
  font-weight: 800;
  display: block;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 4px;
}
.gm-tag-left {
  left: 20px;
  color: #B45309;
}
.gm-tag-right {
  right: 20px;
  text-align: right;
  color: var(--accent-strong);
}
.gm-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--gm-pos, 50%);
  width: 2px;
  background: var(--ink);
  transform: translateX(-1px);
  pointer-events: none;
  z-index: 5;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.6);
}
.gm-knob {
  position: absolute;
  top: 50%;
  left: var(--gm-pos, 50%);
  transform: translate(-50%, -50%);
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.65rem 0.85rem;
  background: white;
  border: 2px solid var(--ink);
  border-radius: 999px;
  cursor: ew-resize;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--ink);
  line-height: 1;
  box-shadow: 0 10px 24px -10px rgba(11, 31, 58, 0.55);
  transition: transform 0.15s, box-shadow 0.15s;
}
.gm-knob:hover {
  box-shadow: 0 12px 28px -10px rgba(11, 31, 58, 0.7);
  transform: translate(-50%, -50%) scale(1.04);
}
.gm-knob:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 2px;
}
.gm-knob-arrow {
  display: inline-block;
  font-size: 22px;
  line-height: 0.7;
  color: var(--ink-light);
}
.gm-knob-grip {
  display: inline-flex;
  gap: 2px;
  margin: 0 0.35rem;
}
.gm-knob-grip span {
  display: block;
  width: 2px;
  height: 14px;
  background: var(--ink-light);
  border-radius: 1px;
}
.gm-hint {
  margin-top: 0.95rem;
  font-size: 11.5px;
  color: var(--ink-mute2);
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
}
@keyframes gm-flow {
  to { stroke-dashoffset: -20; }
}
.gm-loop-path {
  animation: gm-flow 2.4s linear infinite;
}
.gm-stage.gm-animating .gm-after { transition: clip-path 0.55s cubic-bezier(0.4, 0, 0.2, 1); }
.gm-stage.gm-animating .gm-divider { transition: left 0.55s cubic-bezier(0.4, 0, 0.2, 1); }
.gm-stage.gm-animating .gm-knob { transition: left 0.55s cubic-bezier(0.4, 0, 0.2, 1), transform 0.15s, box-shadow 0.15s; }

@media (max-width: 720px) {
  .gm-tag { font-size: 11px; max-width: 38%; top: 12px; }
  .gm-tag-left { left: 12px; }
  .gm-tag-right { right: 12px; }
  .gm-tag b { font-size: 9.5px; }
  .gm-knob { padding: 0.5rem 0.65rem; font-size: 16px; }
  .gm-knob-grip span { height: 12px; }
}

/* ----------- By the numbers: money story + pillars ----------- */
.money-section {
  background: linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.money-header { max-width: 780px; }
.money-header h2 { margin-bottom: 0.6rem; }

.money-compare {
  max-width: 980px;
  margin: 1.75rem 0 1.6rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 1.75rem 1.9rem 1.5rem;
}
.money-compare-head h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.money-compare-head p {
  color: var(--ink-muted);
  font-size: 0.97rem;
  margin: 0 0 1.4rem;
}
.money-bars { margin-bottom: 1.4rem; }
.money-bar-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.money-bar-label {
  flex: 0 0 130px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.money-bar-track {
  flex: 1;
  background: var(--bg-tint);
  border-radius: var(--radius-sm);
  height: 42px;
  overflow: hidden;
}
.money-bar-fill {
  width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 0.85rem;
  border-radius: var(--radius-sm);
  transition: width 1.15s cubic-bezier(0.22, 1, 0.36, 1);
  white-space: nowrap;
}
.money-compare.visible .money-bar-fill { width: var(--w); }
.money-bar-before { background: #E2E1DA; color: var(--ink-soft); }
.money-bar-after {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: white;
}
.money-bar-val { font-size: 0.92rem; font-weight: 700; }
.money-delta {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--accent-strong);
  margin-top: 0.9rem;
  padding-left: calc(130px + 1rem);
}
.money-delta span {
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-muted);
  margin-left: 0.55rem;
}
.money-takeaway {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: var(--accent-tint);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.money-takeaway-stat {
  flex-shrink: 0;
  text-align: center;
  border-right: 1px solid var(--accent-soft);
  padding-right: 1.5rem;
}
.money-big {
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.1rem;
  color: var(--accent-deep);
  line-height: 1;
}
.money-sub {
  display: block;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin-top: 0.25rem;
}
.money-takeaway p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
  line-height: 1.55;
}
.money-source {
  margin: 1.1rem 0 0;
  font-size: 0.78rem;
  color: var(--ink-mute2);
  line-height: 1.5;
}
.pillar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 980px;
}
@media (min-width: 760px) { .pillar-grid { grid-template-columns: repeat(3, 1fr); } }
.pillar-card {
  background: white;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
}
.pillar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--accent-tint);
  color: var(--accent-strong);
  margin-bottom: 0.85rem;
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar-stat {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2rem;
  color: var(--ink);
  line-height: 1;
  letter-spacing: -0.02em;
}
.pillar-stat-text { font-size: 1.5rem; }
.pillar-stat-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-strong);
  margin: 0.4rem 0 0.7rem;
}
.pillar-card p {
  font-size: 0.92rem;
  color: var(--ink-muted);
  line-height: 1.55;
  margin: 0 0 0.9rem;
  flex-grow: 1;
}
.pillar-source {
  font-size: 0.74rem;
  color: var(--ink-mute2);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-weight: 600;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.7rem;
}
@media (max-width: 620px) {
  .money-takeaway { flex-direction: column; align-items: flex-start; gap: 0.9rem; }
  .money-takeaway-stat {
    border-right: 0;
    border-bottom: 1px solid var(--accent-soft);
    padding-right: 0;
    padding-bottom: 0.8rem;
    text-align: left;
  }
  .money-delta { padding-left: 0; }
  .money-bar-label { flex-basis: 92px; }
  .money-compare { padding: 1.4rem 1.25rem; }
}
