/* ============================================================
   VibeCheck — shared design system
   Used by: index.html and each /solutions/<slug>/index.html
   ============================================================ */

:root {
  --bg-primary: #0A0A0B;
  --bg-elevated: #111113;
  --bg-card: #18181B;
  --bg-hover: #1F1F23;
  --text-primary: #FAFAFA;
  --text-secondary: #A1A1AA;
  --text-tertiary: #71717A;
  --border-subtle: rgba(255, 255, 255, 0.06);
  --border-default: rgba(255, 255, 255, 0.1);
  --accent-cyan: #22D3EE;
  --accent-emerald: #34D399;
  --accent-amber: #FBBF24;
  --accent-red: #F87171;
  --accent-indigo: #6366F1;
  /* Per-page accent. Solution pages override via body[data-theme]. */
  --accent-theme: var(--accent-cyan);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body[data-theme="product"]    { --accent-theme: var(--accent-cyan); }
body[data-theme="support"]    { --accent-theme: var(--accent-amber); }
body[data-theme="compliance"] { --accent-theme: var(--accent-red); }

.font-display { font-family: 'Fraunces', serif; font-weight: 400; }
.font-mono    { font-family: 'JetBrains Mono', monospace; }

/* ─── Lattice Background System ─── */
.lattice-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.lattice-bg svg { width: 100%; height: 100%; }

.lattice-lines   { stroke: rgba(255, 255, 255, 0.04); stroke-width: 0.5; fill: none; }
.lattice-contour { stroke: rgba(255, 255, 255, 0.03); stroke-width: 0.4; fill: none; }

.lattice-pulse {
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1;
  fill: none;
  stroke-dasharray: 40 800;
  stroke-linecap: round;
}
.lattice-pulse-1 { animation: pulseDrift1 18s linear infinite; }
.lattice-pulse-2 { animation: pulseDrift2 24s linear infinite; animation-delay: -8s; }
.lattice-pulse-3 { animation: pulseDrift3 20s linear infinite; animation-delay: -14s; }
.lattice-pulse-4 { animation: pulseDrift4 22s linear infinite; animation-delay: -4s; }
.lattice-pulse-5 { animation: pulseDrift5 26s linear infinite; animation-delay: -12s; }

@keyframes pulseDrift1 { 0% { stroke-dashoffset: 0; opacity: 0; } 5%  { opacity: 0.6; } 45% { opacity: 0.3; }  50% { opacity: 0; } 100% { stroke-dashoffset: -840; opacity: 0; } }
@keyframes pulseDrift2 { 0% { stroke-dashoffset: 0; opacity: 0; } 8%  { opacity: 0.5; } 40% { opacity: 0.25; } 48% { opacity: 0; } 100% { stroke-dashoffset: -840; opacity: 0; } }
@keyframes pulseDrift3 { 0% { stroke-dashoffset: 0; opacity: 0; } 6%  { opacity: 0.4; } 35% { opacity: 0.2; }  42% { opacity: 0; } 100% { stroke-dashoffset: -840; opacity: 0; } }
@keyframes pulseDrift4 { 0% { stroke-dashoffset: 0; opacity: 0; } 4%  { opacity: 0.5; } 30% { opacity: 0.15; } 36% { opacity: 0; } 100% { stroke-dashoffset: -840; opacity: 0; } }
@keyframes pulseDrift5 { 0% { stroke-dashoffset: 0; opacity: 0; } 7%  { opacity: 0.35; } 38% { opacity: 0.2; } 45% { opacity: 0; } 100% { stroke-dashoffset: -840; opacity: 0; } }

.lattice-node       { fill: rgba(255, 255, 255, 0.06); r: 1.5; }
.lattice-node-pulse { fill: rgba(200, 210, 230, 0.15); r: 2; }
.lattice-node-pulse-1 { animation: nodePulse 12s ease-in-out infinite; }
.lattice-node-pulse-2 { animation: nodePulse 16s ease-in-out infinite; animation-delay: -6s; }
.lattice-node-pulse-3 { animation: nodePulse 14s ease-in-out infinite; animation-delay: -10s; }

@keyframes nodePulse {
  0%, 100% { opacity: 0; r: 1; }
  15% { opacity: 0.4; r: 2.5; }
  30% { opacity: 0; r: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .lattice-pulse,
  .lattice-node-pulse-1,
  .lattice-node-pulse-2,
  .lattice-node-pulse-3 {
    animation: none;
    opacity: 0;
  }
}

/* Content sits above lattice */
header, section, footer, .product-mock-wrapper {
  position: relative;
  z-index: 1;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 120px 0; }

/* ─── Header ─── */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text-primary);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  animation: spin-once 5s ease-out forwards;
}
.logo-mark svg { width: 44px; height: 44px; }

@keyframes spin-once {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(720deg); }
}

nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  transition: color 0.15s;
}
nav a:hover { color: var(--text-primary); }
nav a[aria-current="page"],
.nav-dropdown a[aria-current="page"] .nav-dropdown-title { color: var(--text-primary); }

.nav-group { position: relative; }
.nav-group-trigger {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}
.nav-group-trigger::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid var(--text-tertiary);
  transition: transform 0.15s;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 6px;
  min-width: 360px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}
/* Invisible bridge so the hover doesn't break when the cursor crosses
   the gap between the Solutions trigger and the dropdown panel. */
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-group:hover .nav-dropdown,
.nav-dropdown:hover { display: block; }
.nav-dropdown a {
  display: block;
  padding: 14px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.15s ease;
}
.nav-dropdown a:hover { background: var(--bg-hover); }
.nav-dropdown-title {
  display: block;
  font-size: 0.85rem;
  color: var(--text-primary);
  font-weight: 500;
  margin-bottom: 3px;
}
.nav-dropdown a:hover .nav-dropdown-title { color: var(--text-primary); }
.nav-dropdown-desc {
  display: block;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  border: none;
}
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: var(--bg-hover);
}
.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ─── Section Label ─── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.section-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  color: var(--text-tertiary);
}
.section-name {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ─── Figures / Illustration Grid ─── */
.figures-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  margin-top: 80px;
}
.figure-item {
  background: var(--bg-primary);
  padding: 24px 24px 32px;
  text-align: center;
}
.figure-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.figure-illustration {
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 8px;
  overflow: hidden;
}
.figure-illustration img,
.figure-illustration object { width: 100%; height: 100%; object-fit: contain; }
.figure-caption {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ─── CTA Section ─── */
.cta-section {
  text-align: center;
  border-top: 1px solid var(--border-subtle);
}
.cta-headline {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.cta-subtitle {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Footer ─── */
footer {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; gap: 24px; }
.footer-links a {
  color: var(--text-tertiary);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--text-secondary); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

/* ─── Mobile nav ─── */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}
.mobile-menu-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  margin: 4px 0;
}

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   Solution page components
   Used by: /solutions/*/index.html
   ============================================================ */

/* ─── Solution hero ─── */
.sol-hero {
  padding: 160px 0 96px;
  border-bottom: 1px solid var(--border-subtle);
}
.sol-hero-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.sol-hero-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-theme);
  box-shadow: 0 0 10px var(--accent-theme);
}
.sol-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 4.5vw, 3.8rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  max-width: 940px;
}
.sol-hero-subhead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 14px;
}
.sol-hero-subhead:last-of-type { margin-bottom: 36px; }
.sol-hero-subhead em {
  font-style: normal;
  color: var(--accent-theme);
}
.sol-hero-cta {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* ─── Solution section generic ─── */
.sol-section { border-top: 1px solid var(--border-subtle); }
.sol-section:first-of-type { border-top: none; }
.sol-section-head {
  margin-bottom: 60px;
  max-width: 860px;
}
.sol-section-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.sol-section-head .sol-lede {
  margin-top: 24px;
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.75;
}
.sol-section-head .sol-lede + .sol-lede { margin-top: 16px; }

/* ─── Duty stack (compliance page problem section) ─── */
.duty-stack {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
.duty-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 32px 28px;
  border-top: 2px solid var(--accent-theme);
}
.duty-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.68rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  display: block;
}
.duty-title {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 14px;
  color: var(--text-primary);
}
.duty-body {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Signal grid (6 cards) ─── */
.signals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.signal-item {
  background: var(--bg-primary);
  padding: 36px 36px 38px;
  position: relative;
  transition: background 0.15s;
}
.signal-item:hover { background: var(--bg-elevated); }
.signal-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 32px;
  background: var(--accent-theme);
  opacity: 0;
  transition: opacity 0.15s;
}
.signal-item:hover::before { opacity: 1; }
.signal-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--accent-theme);
  letter-spacing: 0.14em;
  display: block;
  margin-bottom: 16px;
}
.signal-item h3 {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 14px;
  color: var(--text-primary);
  line-height: 1.35;
}
.signal-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.signal-prev {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--text-tertiary);
  letter-spacing: 0.08em;
  display: flex;
  gap: 14px;
}
.signal-prev .trend-up { color: var(--accent-amber); }

/* ─── Surfaces grid (how it shows up: Brief / Assistant / Evidence) ─── */
.surfaces-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.surface-card {
  --surface-accent: var(--accent-cyan);
  background: transparent;
  border: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.surface-card:hover { background: transparent; }
.surface--brief     { --surface-accent: var(--accent-cyan); }
.surface--assistant { --surface-accent: var(--accent-amber); }
.surface--evidence  { --surface-accent: var(--accent-red); }

.surface-head {
  position: static;
  display: flex;
  gap: 14px;
  align-items: stretch;
  width: auto;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  border: none;
  z-index: auto;
}
.surface-bar {
  width: 2px;
  background: var(--surface-accent);
  flex-shrink: 0;
  border-radius: 1px;
}
.surface-head-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.surface-eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  font-weight: 500;
}
.surface-title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--surface-accent);
  line-height: 1.2;
}

.surface-mock {
  background: #0E0E10;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 18px 18px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 360px;
}
.surface-chrome {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-tertiary);
}
.chrome-dots {
  display: inline-flex;
  gap: 4px;
}
.chrome-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  display: block;
}
.chrome-title {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}
.surface-mock-body {
  padding-top: 16px;
  font-size: 0.78rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Brief — numbered list */
.brief-date {
  font-size: 0.62rem;
  color: var(--text-tertiary);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.brief-headline {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 16px;
}
.brief-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}
.brief-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--border-subtle);
}
.brief-item:first-child { border-top: none; padding-top: 4px; }
.brief-num {
  display: grid;
  place-items: center;
  width: 24px;
  height: 22px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.brief-num--red   { background: rgba(248, 113, 113, 0.14); color: var(--accent-red); }
.brief-num--amber { background: rgba(251, 191, 36, 0.14);  color: var(--accent-amber); }
.brief-num--cyan  { background: rgba(34, 211, 238, 0.14);  color: var(--accent-cyan); }
.brief-item-title {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.4;
}
.brief-item-desc {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-top: 4px;
}

/* Assistant — chat thread + stat tiles */
.chat-thread {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1;
}
.chat-msg {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.chat-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 600;
  flex-shrink: 0;
}
.chat-avatar--user {
  background: rgba(248, 113, 113, 0.16);
  color: var(--accent-red);
  letter-spacing: 0.02em;
}
.chat-avatar--vc {
  background: rgba(34, 211, 238, 0.14);
  color: var(--accent-cyan);
  font-size: 0.95rem;
  font-weight: 400;
}
.chat-body { flex: 1; min-width: 0; }
.chat-meta {
  display: flex;
  gap: 8px;
  align-items: baseline;
  margin-bottom: 4px;
}
.chat-name {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
}
.chat-time {
  font-size: 0.65rem;
  color: var(--text-tertiary);
}
.chat-text {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.55;
}
.chat-text strong {
  color: var(--text-primary);
  font-weight: 500;
}

.stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 18px;
}
.stat-tile {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
}
.stat-label {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 6px;
}
.stat-value {
  font-size: 1rem;
  font-weight: 500;
  color: var(--accent-cyan);
}

/* Evidence — key/value sheet + quote */
.evidence-rows {
  display: flex;
  flex-direction: column;
}
.evidence-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 14px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-subtle);
}
.evidence-row:first-child { padding-top: 4px; }
.evidence-row dt {
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}
.evidence-row dd {
  font-size: 0.8rem;
  color: var(--text-secondary);
}
.evidence-row dd.evidence-num { color: var(--accent-cyan); }
.evidence-quote {
  margin-top: 18px;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.45;
  color: var(--text-primary);
}

/* Caption below the mock */
.surface-caption {
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--text-secondary);
}
.surface-caption strong {
  color: var(--text-primary);
  font-weight: 500;
}

/* ─── Timeline (A day in the life) ─── */
.timeline {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.timeline-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--border-subtle);
  align-items: start;
}
.timeline-row:first-child { border-top: none; }
.timeline-meta {
  display: flex;
  flex-direction: column;
}
.timeline-time {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--accent-theme);
  letter-spacing: 0.02em;
}
.timeline-label {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
  margin-top: 8px;
}
.timeline-body {
  font-size: 0.98rem;
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 720px;
}

/* ─── Compare table ─── */
.compare-wrap {
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table thead th {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
  font-weight: 400;
  text-align: left;
  padding: 18px 24px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}
.compare-table thead th:first-child { width: 24%; }
.compare-table thead th.col-vibe { color: var(--accent-theme); }

.compare-table tbody th {
  text-align: left;
  padding: 22px 24px;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-subtle);
  vertical-align: top;
  width: 24%;
}
.compare-table tbody td {
  padding: 22px 24px;
  color: var(--text-secondary);
  line-height: 1.65;
  border-top: 1px solid var(--border-subtle);
  vertical-align: top;
  font-size: 0.88rem;
}
.compare-table tbody td.col-vibe {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.015);
}

/* ─── Regulatory grid (compliance page) ─── */
.regulatory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.regulatory-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px;
}
.regulatory-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  color: var(--accent-theme);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 12px;
}
.regulatory-item h3 {
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.35;
  margin-bottom: 10px;
}
.regulatory-item p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ─── Related solutions (footer-of-page cross-links) ─── */
.related-solutions {
  border-top: 1px solid var(--border-subtle);
  padding: 96px 0;
}
.related-solutions-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
}
.related-solutions-heading {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
  max-width: 640px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.related-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 28px 28px 24px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.related-card:hover {
  border-color: var(--border-default);
  background: var(--bg-hover);
  transform: translateY(-1px);
}
.related-card-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--card-accent, var(--accent-theme));
}
.related-card[data-theme="product"]    { --card-accent: var(--accent-cyan); }
.related-card[data-theme="support"]    { --card-accent: var(--accent-amber); }
.related-card[data-theme="compliance"] { --card-accent: var(--accent-red); }
.related-card h3 {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.35;
  color: var(--text-primary);
}
.related-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.related-card-cta {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--card-accent, var(--accent-theme));
  margin-top: 8px;
}

/* ─── Demo form (Formspree, in #cta section) ─── */
.demo-form-wrap {
  max-width: 640px;
  margin: 40px auto 0;
  text-align: left;
}
.demo-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.demo-form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.demo-form-field.full { grid-column: 1 / -1; }
.demo-form label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-tertiary);
}
.demo-form input,
.demo-form textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 12px 14px;
  transition: border-color 0.15s, background 0.15s;
  width: 100%;
  resize: vertical;
}
.demo-form textarea { min-height: 96px; line-height: 1.5; }
.demo-form input::placeholder,
.demo-form textarea::placeholder { color: var(--text-tertiary); }
.demo-form input:focus,
.demo-form textarea:focus {
  outline: none;
  border-color: var(--accent-theme);
  background: var(--bg-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent-theme) 18%, transparent);
}
.demo-form input[aria-invalid="true"],
.demo-form textarea[aria-invalid="true"] {
  border-color: var(--accent-danger);
}
.demo-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.demo-form-actions .btn {
  min-width: 180px;
}
.demo-form-actions .demo-form-note {
  font-size: 0.78rem;
  color: var(--text-tertiary);
}
.demo-form-field-error {
  font-size: 0.78rem;
  color: var(--accent-danger);
  min-height: 1em;
}
.demo-form-success {
  display: none;
  max-width: 640px;
  margin: 40px auto 0;
  padding: 28px 28px;
  border: 1px solid color-mix(in srgb, var(--accent-emerald) 40%, var(--border-subtle));
  background: color-mix(in srgb, var(--accent-emerald) 8%, var(--bg-card));
  border-radius: 12px;
  color: var(--text-primary);
  line-height: 1.6;
  text-align: left;
}
.demo-form-success.is-visible { display: block; }
.demo-form-success strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--accent-emerald);
}
.demo-form-error-global {
  grid-column: 1 / -1;
  font-size: 0.85rem;
  color: var(--accent-danger);
  min-height: 1em;
}
/* Honeypot — hidden from users, visible to bots. */
.demo-form [name="_gotcha"] {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  pointer-events: none !important;
}


/* ─── Cookie consent banner (injected by /cookies.js) ─── */
.cookie-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
  max-width: 420px;
  padding: 20px 22px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
  color: var(--text-secondary);
  font-family: 'DM Sans', sans-serif;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.cookie-banner-body p {
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0 0 16px;
  color: var(--text-secondary);
}
.cookie-banner-body a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-body a:hover { color: var(--accent-theme, var(--accent-cyan)); }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.cookie-banner-actions .btn {
  padding: 8px 14px;
  font-size: 0.82rem;
  flex: 1 1 auto;
  min-width: 140px;
}
/* Tiny "Cookie preferences" link in the footer */
.footer-links [data-cookie-open] { cursor: pointer; }


/* ============================================================
   Shared responsive
   ============================================================ */

@media (max-width: 1024px) {
  .surfaces-grid    { grid-template-columns: 1fr; }
  .duty-stack       { grid-template-columns: 1fr; }
  .regulatory-grid  { grid-template-columns: 1fr; }
  .related-grid     { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  section { padding: 80px 0; }
  .sol-hero { padding: 140px 0 60px; }

  .figures-grid { grid-template-columns: 1fr; }

  .footer-inner {
    flex-direction: column;
    gap: 24px;
  }
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .signals-grid { grid-template-columns: 1fr; }

  .timeline-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }
  .timeline-label { margin-top: 0; }
  .timeline-meta {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
  }

  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr { display: block; width: 100%; }
  .compare-table tbody tr {
    padding: 16px 20px;
    border-top: 1px solid var(--border-subtle);
  }
  .compare-table tbody tr:first-child { border-top: none; }
  .compare-table tbody th,
  .compare-table tbody td {
    display: block;
    width: 100%;
    padding: 6px 0;
    border: none;
    background: transparent !important;
  }
  .compare-table tbody th {
    padding: 0 0 10px;
    font-size: 0.95rem;
  }
  .compare-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--text-tertiary);
    margin-bottom: 4px;
  }
}

@media (max-width: 640px) {
  nav a:not(.btn) { display: none; }
  .nav-group      { display: none; }
  .mobile-menu-btn { display: block; }
  .lattice-bg     { opacity: 0.4; }
  .demo-form      { grid-template-columns: 1fr; }
  .related-solutions { padding: 72px 0; }
  .lattice-pulse  { animation-duration: 30s; }
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 18px 18px 16px;
  }
  .cookie-banner-actions .btn { min-width: 0; }

  /* ─── Mobile menu panel (open state) ─── */
  header.mobile-nav-open nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border-default);
    padding: 8px 24px 24px;
    z-index: 50;
  }
  header.mobile-nav-open nav a:not(.btn) {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 1rem;
    color: var(--text-primary);
  }
  header.mobile-nav-open nav .nav-group {
    display: block;
    border-bottom: 1px solid var(--border-subtle);
  }
  header.mobile-nav-open nav .nav-group-trigger {
    padding: 14px 0;
    font-size: 0.72rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-family: 'JetBrains Mono', monospace;
    cursor: default;
    pointer-events: none;
    border-bottom: none;
  }
  header.mobile-nav-open nav .nav-group-trigger::after { display: none; }
  header.mobile-nav-open nav .nav-dropdown {
    display: block;
    position: static;
    transform: none;
    background: transparent;
    border: none;
    padding: 0 0 14px;
    width: auto;
    min-width: 0;
    box-shadow: none;
  }
  header.mobile-nav-open nav .nav-dropdown a {
    padding: 12px 12px;
    border-bottom: none;
  }
  header.mobile-nav-open nav .nav-dropdown-title {
    font-size: 0.95rem;
    margin-bottom: 2px;
  }
  header.mobile-nav-open nav .btn {
    margin-top: 16px;
    text-align: center;
  }
  header.mobile-nav-open .mobile-menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  header.mobile-nav-open .mobile-menu-btn span:nth-child(2) { opacity: 0; }
  header.mobile-nav-open .mobile-menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .mobile-menu-btn span { transition: transform 0.15s, opacity 0.15s; }

  header { position: relative; }
}

@media (max-width: 900px) and (min-width: 641px) {
  .lattice-bg { opacity: 0.7; }
}
