/* ============================================================
   LUMVER — Design System
   Direction: "Quiet precision" — near-white canvas, ink Geist
   typography, hairline borders, single blue accent, engineered
   diagrams, dark glass dashboard centerpiece.
   ============================================================ */

:root {
  --bg: #FAFAFA;
  --surface: #F5F5F7;
  --card: #FFFFFF;
  --text: #0A0A0A;
  --text-2: #666666;
  --text-3: #8A8A8E;
  --border: #E8E8E8;
  --accent: #0071E3;
  --accent-hover: #0062C4;
  --dark: #0A0A0A;
  --dark-surface: #141416;
  --dark-border: #26262A;
  --dark-text-2: #A0A0A8;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-s: 0 1px 2px rgba(10,10,10,.04);
  --shadow-m: 0 8px 30px rgba(10,10,10,.06);
  --shadow-l: 0 24px 70px rgba(10,10,10,.10);
  --ease: cubic-bezier(.25,.46,.2,1);
  --nav-h: 64px;
}

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

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

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(0,113,227,.15); }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- Layout ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
section.tight { padding: clamp(3rem, 6vw, 5rem) 0; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }

.display {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  font-weight: 600;
}

.h-section {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.h-card { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.02em; }

.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-2);
  line-height: 1.55;
  font-weight: 400;
}

.muted { color: var(--text-2); }
.small { font-size: .875rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--text-2);
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.section-head { max-width: 640px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .lead { margin-top: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 100px;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all .25s var(--ease);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: #fff;
}
.btn-primary:hover { background: #2A2A2E; transform: translateY(-1px); box-shadow: var(--shadow-m); }

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0,113,227,.25); }

.btn-ghost {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}
.btn-ghost:hover { border-color: #D0D0D4; transform: translateY(-1px); box-shadow: var(--shadow-s); }

.btn-link {
  color: var(--accent);
  font-weight: 500;
  font-size: .95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-link svg { transition: transform .25s var(--ease); }
.btn-link:hover svg { transform: translateX(3px); }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(250,250,250,.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
/* Wordmark: brand mark set beside the full "Lumver" wordmark. */
.nav-logo {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  color: var(--text);
}
/* Shown bare rather than in a filled tile — the crescent is fine enough
   that a small solid badge would swallow it. */
.nav-logo .mark {
  display: block;
  width: 26px;
  height: auto;
  flex-shrink: 0;
}
.nav-links {
  display: flex;
  gap: 4px;
  margin: 0 auto;
}
.nav-links a {
  padding: 7px 14px;
  border-radius: 100px;
  font-size: .92rem;
  font-weight: 450;
  color: var(--text-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); background: var(--surface); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-cta .btn { padding: 8px 18px; font-size: .9rem; }

.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  place-items: center;
}
.nav-burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  position: relative;
  transition: background .2s;
}
.nav-burger span::before, .nav-burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s var(--ease);
}
.nav-burger span::before { top: -6px; }
.nav-burger span::after { top: 6px; }
body.menu-open .nav-burger span { background: transparent; }
body.menu-open .nav-burger span::before { transform: translateY(6px) rotate(45deg); }
body.menu-open .nav-burger span::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: var(--nav-h) 0 auto 0;
  z-index: 99;
  background: rgba(250,250,250,.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 12px 24px 28px;
  display: none;
  flex-direction: column;
  gap: 2px;
}
body.menu-open .mobile-menu { display: flex; }
/* :not(.btn) matters — without it this rule out-specifies .btn-primary and
   paints the CTA's label black on a black button, making it invisible. */
.mobile-menu a:not(.btn) {
  padding: 14px 8px;
  font-size: 1.05rem;
  font-weight: 500;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.mobile-menu .btn {
  margin-top: 18px;
  justify-content: center;
  padding: 14px 22px;
  font-size: 1rem;
}

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: #DDDDE1; }

.icon-tile {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  margin-bottom: 18px;
}
.icon-tile svg { width: 20px; height: 20px; }

/* ---------- Grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ---------- Product card ---------- */
.product-card { display: flex; flex-direction: column; min-height: 230px; position: relative; }
.product-card p { color: var(--text-2); font-size: .95rem; margin-top: 8px; flex: 1; }
.product-card .arrow {
  margin-top: 20px;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text);
  transition: all .25s var(--ease);
}
.product-card:hover .arrow { background: var(--text); color: #fff; border-color: var(--text); transform: translateX(3px); }

/* ---------- Diagram / architecture ---------- */
.diagram-node {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  padding: 14px 22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .92rem;
  font-weight: 500;
  box-shadow: var(--shadow-s);
}
.diagram-node svg { width: 17px; height: 17px; color: var(--text-2); }
/* the Lumver node in a diagram — a blue hairline only, no colour bleed */
.diagram-node.accent { border-color: rgba(0,113,227,.35); }
.diagram-line {
  width: 1px; height: 34px;
  background: var(--border);
  margin: 0 auto;
  position: relative;
}
.diagram-line::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 50%;
  transform: translateX(-50%);
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #C9C9CE;
}
.diagram-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.diagram-col { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* ---------- Dashboard mockup (dark glass) ---------- */
.dash {
  background: var(--dark);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-l);
  color: #ECECF0;
  font-size: 13px;
  text-align: left;
}
.dash * { letter-spacing: 0; }
.dash-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--dark-border);
}
.dash-titlebar .dot { width: 10px; height: 10px; border-radius: 50%; background: #2E2E33; }
.dash-titlebar .label { margin-left: 10px; color: #6E6E76; font-size: 12px; }
.dash-body { display: grid; grid-template-columns: 168px minmax(0, 1fr); min-height: 380px; }
.dash-side {
  border-right: 1px solid var(--dark-border);
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-side .item {
  padding: 8px 12px;
  border-radius: 8px;
  color: #8E8E96;
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.dash-side .item svg { width: 14px; height: 14px; }
.dash-side .item.on { background: var(--dark-surface); color: #fff; }
.dash-main { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.dash-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dash-stat {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 14px;
}
.dash-stat .k { color: #7A7A82; font-size: 11.5px; margin-bottom: 6px; }
.dash-stat .v { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: #fff; }
.dash-stat .d { font-size: 11px; color: #4ADE80; margin-top: 3px; }
.dash-panel {
  background: var(--dark-surface);
  border: 1px solid var(--dark-border);
  border-radius: 12px;
  padding: 16px;
  flex: 1;
  min-width: 0;
  /* the nowrap tables scroll here rather than widening the page */
  overflow-x: auto;
}
.dash-panel .t { font-size: 12.5px; color: #fff; font-weight: 500; margin-bottom: 12px; display: flex; justify-content: space-between; }
.dash-panel .t span:last-child { color: #6E6E76; font-weight: 400; }
.dash-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid #1D1D21;
  font-size: 12px;
  color: #B8B8C0;
}
.dash-row:first-of-type { border-top: 0; }
.dash-row .avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #26262C;
  color: #9A9AA2;
  display: grid;
  place-items: center;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}
.dash-row .who { color: #ECECF0; font-weight: 500; }
.dash-row .meta { margin-left: auto; color: #6E6E76; font-size: 11px; white-space: nowrap; }
.badge {
  font-size: 10.5px;
  font-weight: 500;
  padding: 2px 9px;
  border-radius: 100px;
  white-space: nowrap;
}
.badge.blue { background: rgba(0,113,227,.16); color: #66AEF0; }
.badge.green { background: rgba(74,222,128,.12); color: #4ADE80; }
.badge.gray { background: #232328; color: #8E8E96; }
.badge.amber { background: rgba(250,200,80,.12); color: #E8C060; }

/* two panels side by side inside the console */
.dash-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 768px) { .dash-split { grid-template-columns: minmax(0, 1fr); } }

/* dashboard table */
.dash-table { width: 100%; border-collapse: collapse; }
.dash-table th {
  text-align: left;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6E6E76;
  padding: 0 10px 9px 0;
  border-bottom: 1px solid #1D1D21;
  white-space: nowrap;
}
.dash-table td {
  padding: 9px 10px 9px 0;
  border-bottom: 1px solid #1D1D21;
  font-size: 12px;
  color: #B8B8C0;
  white-space: nowrap;
}
.dash-table tr:last-child td { border-bottom: 0; }
.dash-table .who { color: #ECECF0; font-weight: 500; }
.dash-table .num { color: #ECECF0; font-variant-numeric: tabular-nums; }

/* status dot */
.sdot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}
.sdot.blue { background: var(--accent); }
.sdot.green { background: #4ADE80; }
.sdot.amber { background: #E8C060; }
.sdot.gray { background: #55555E; }

/* activity feed */
.dash-feed { display: flex; flex-direction: column; }
.dash-feed .ev {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  font-size: 12px;
  color: #9A9AA2;
  border-bottom: 1px solid #1D1D21;
}
.dash-feed .ev:last-child { border-bottom: 0; }
.dash-feed .ev strong { color: #ECECF0; font-weight: 500; }
.dash-feed .ev .ts { margin-left: auto; color: #5E5E66; font-size: 11px; white-space: nowrap; }

/* ---------- Split hero ---------- */
.hero {
  padding: calc(var(--nav-h) + clamp(3.5rem, 7vw, 6rem)) 0 clamp(4rem, 8vw, 6.5rem);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}
/* min-width:0 stops the dashboard's min-content width from widening the
   column — without it the nowrap tables push the grid past the viewport. */
.hero-copy { max-width: 520px; min-width: 0; }
/* dashboard extends past the right edge — Linear-style bleed */
.hero-visual { position: relative; min-width: 0; }
.hero-visual .dash { width: calc(100% + 12vw); max-width: none; }

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 3.5rem); }
  .hero-copy { max-width: 640px; }
  .hero-visual .dash { width: 100%; }
}

/* ---------- Timeline ---------- */
.timeline-row {
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
}
.timeline-row:last-child { border-bottom: 1px solid var(--border); }
.timeline-row .year { font-size: .875rem; font-weight: 550; color: var(--text-3); }
@media (max-width: 640px) {
  /* a 120px label column wastes a third of a phone screen — stack instead */
  .timeline-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
}

/* ---------- Alternating split row ---------- */
.split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@media (max-width: 860px) {
  .split-row { grid-template-columns: 1fr; gap: 1.75rem; }
  /* keep the narrative above its supporting card regardless of DOM order */
  .split-row > .card { order: 2; }
}

/* ---------- Reveal animations ----------
   Scoped to .js so content is visible by default. Without scripting the page
   renders fully rather than staying stuck at opacity 0. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js .reveal.visible { opacity: 1; transform: none; }

/* Escape hatch: shows content immediately without relying on a transition,
   for contexts where animation never runs (prerender, hidden tab, throttled
   renderer). Set by the reveal fallback in lumver.js. */
.js.reveal-off .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Signs of life ----------
   Everything here is progressive enhancement: scoped to .js and switched off
   under reduced-motion, so the page is complete and static without it. */

/* "Live" indicator in the console header */
.live-dot {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #4ADE80;
  margin-right: 6px;
  position: relative;
  vertical-align: middle;
}
.js .live-dot::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #4ADE80;
  animation: live-pulse 2.4s cubic-bezier(.25,.46,.2,1) infinite;
}
@keyframes live-pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(2.8); opacity: 0; }
  100% { transform: scale(2.8); opacity: 0; }
}

/* numerals hold their width while counting so nothing reflows */
.dash-stat .v { font-variant-numeric: tabular-nums; }

/* children revealed one after another — used for diagram nodes and table rows */
.js .stagger > * {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.js .stagger.visible > * { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js .live-dot::after { animation: none; }
  .js .stagger > * { opacity: 1; transform: none; transition: none; }
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 48px;
}
.footer h5 { font-size: .82rem; font-weight: 550; color: var(--text-3); margin-bottom: 14px; letter-spacing: .02em; }
.footer-links { display: flex; flex-direction: column; gap: 9px; }
.footer-links a { font-size: .92rem; color: var(--text-2); transition: color .2s; }
.footer-links a:hover { color: var(--text); }
.footer-brand p { color: var(--text-2); font-size: .9rem; margin-top: 12px; max-width: 260px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.footer-bottom .small { color: var(--text-3); }
.footer-social { display: flex; gap: 8px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: 9px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  color: var(--text-2);
  transition: all .2s;
}
.footer-social a:hover { color: var(--text); border-color: #D0D0D4; transform: translateY(-2px); }
.footer-social svg { width: 15px; height: 15px; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  text-align: left;
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-q .chev { transition: transform .3s var(--ease); flex-shrink: 0; color: var(--text-3); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease);
}
.faq-a p { padding: 0 4px 22px; color: var(--text-2); max-width: 640px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--dark);
  border-radius: var(--radius-l);
  padding: clamp(3rem, 7vw, 5.5rem) clamp(1.5rem, 5vw, 4rem);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta-band .grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #232328 1px, transparent 1px);
  background-size: 22px 22px;
  opacity: .5;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); letter-spacing: -0.04em; }
.cta-band p { color: var(--dark-text-2); margin: 14px auto 30px; max-width: 460px; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: calc(var(--nav-h) + clamp(3.5rem, 8vw, 6.5rem)) 0 clamp(3rem, 6vw, 5rem); }

/* ---------- Dot texture ---------- */
.dots-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, #E3E3E6 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 70%);
  pointer-events: none;
}

/* ---------- Inputs ---------- */
.input, textarea.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-s);
  background: var(--card);
  font: inherit;
  font-size: .95rem;
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,113,227,.12); }
.input::placeholder { color: var(--text-3); }
label.field { display: block; font-size: .85rem; font-weight: 500; margin-bottom: 7px; }
textarea.input { resize: vertical; min-height: 96px; }

select.input {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%23666' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
select.input:invalid { color: var(--text-3); }

/* ---------- Form states ---------- */
.input.invalid { border-color: #D94A4A; }
.input.invalid:focus { box-shadow: 0 0 0 3px rgba(217,74,74,.12); }

.field-error {
  display: none;
  font-size: .8rem;
  color: #C23B3B;
  margin-top: 6px;
}
.field-error.show { display: block; }

/* inline alert shown when the submission itself fails */
.form-alert {
  display: none;
  gap: 10px;
  align-items: flex-start;
  padding: 13px 15px;
  border: 1px solid rgba(217,74,74,.3);
  background: rgba(217,74,74,.05);
  border-radius: var(--radius-s);
  font-size: .88rem;
  line-height: 1.5;
  color: var(--text);
}
.form-alert.show { display: flex; }
.form-alert svg { flex-shrink: 0; width: 16px; height: 16px; color: #C23B3B; margin-top: 1px; }
.form-alert a { color: var(--accent); }

/* button busy state */
.btn[data-busy="true"] { pointer-events: none; opacity: .72; }
.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2s; }
}

/* ---------- Legal / prose ---------- */
.prose h2 {
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 40px 0 12px;
}
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-2); font-size: .97rem; line-height: 1.65; margin-bottom: 14px; }
/* long-form reading needs a little more size on small screens */
@media (max-width: 640px) {
  .prose p, .prose li { font-size: 1.02rem; line-height: 1.68; }
}
.prose ul { padding-left: 20px; list-style: disc; }
.prose ol { padding-left: 20px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); }
.prose h3 { font-size: 1.02rem; letter-spacing: -0.015em; margin: 26px 0 10px; }
.prose strong { color: var(--text); font-weight: 550; }
.prose > p:last-child, .prose > ul:last-child { margin-bottom: 0; }

/* pull-quote / key idea */
.prose .key {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  margin: 28px 0;
  font-size: 1.06rem;
  color: var(--text);
  letter-spacing: -0.015em;
  line-height: 1.5;
}

/* ---------- Article / doc page furniture ---------- */
.article-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: var(--text-3);
  margin-top: 18px;
}
.article-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: #C9C9CE; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .9rem;
  color: var(--text-2);
  transition: color .2s;
  margin-bottom: 26px;
}
.back-link:hover { color: var(--text); }
.back-link svg { transition: transform .25s var(--ease); }
.back-link:hover svg { transform: translateX(-3px); }

/* inline horizontal flow: Inquiry → Capture → … */
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-m);
  margin: 28px 0;
}
.flow span {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 7px 15px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
}
.flow span.on { border-color: rgba(0,113,227,.35); }
.flow i { color: var(--text-3); font-style: normal; font-size: .9rem; }

/* numbered step list */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 0 42px;
  margin-bottom: 20px;
  color: var(--text-2);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -1px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-size: .78rem;
  font-weight: 550;
  display: grid;
  place-items: center;
}
.steps li strong { display: block; color: var(--text); margin-bottom: 3px; font-weight: 550; }

/* checklist */
.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 13px 0;
  border-top: 1px solid var(--border);
  color: var(--text-2);
  font-size: .95rem;
  margin: 0;
}
.checklist li:last-child { border-bottom: 1px solid var(--border); }
.checklist li svg { flex-shrink: 0; margin-top: 3px; color: var(--text-3); width: 15px; height: 15px; }

/* status pill for integration availability */
.status {
  display: inline-block;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 3px 10px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
  white-space: nowrap;
}
.status.live { border-color: rgba(0,113,227,.3); color: var(--accent); }

.int-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.int-row:last-child { border-bottom: 1px solid var(--border); }
.int-row .name { font-size: .95rem; font-weight: 500; }
.int-row .status { margin-left: auto; }
@media (max-width: 560px) {
  .int-row { flex-wrap: wrap; gap: 8px; }
  .int-row .status { margin-left: 0; }
}

/* next/prev navigation between resources */
.resource-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: clamp(2.5rem, 5vw, 3.5rem);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-burger { display: grid; width: 44px; height: 44px; }
  .nav-cta { margin-left: auto; }
  /* 44px is the minimum comfortable touch target */
  .nav-cta .btn { min-height: 44px; padding: 10px 18px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  /* ---- Phone: shorten the scroll ----
     Most traffic is mobile, and length is what makes a page feel like a
     chore. Tighten the rhythm and drop supporting detail rather than
     shrinking type or crowding the layout. */

  section { padding: clamp(3.25rem, 8vw, 4.5rem) 0; }
  section.tight { padding: clamp(2.25rem, 5vw, 3rem) 0; }
  .section-head { margin-bottom: 1.75rem; }

  /* Industry cards are an icon and a word — two across reads better and
     halves the height of that section. */
  .grid-3.solutions-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .grid-3.solutions-grid .card { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px 14px; }
  .grid-3.solutions-grid .card span:last-child { font-size: .92rem; }

  /* The console's supporting panels are detail, not the point. The pipeline
     table carries the idea on its own. */
  .dash-split { display: none; }
  .dash-body { min-height: 0 !important; }
  /* keep the table to a readable sample instead of a full page of rows */
  .dash-table tbody tr:nth-child(n+5) { display: none; }

  /* Icon cards become compact rows — icon beside the text instead of above
     it. Identical content, close to half the height. :has() keeps this to
     cards that actually lead with an icon; anything else is left alone. */
  .grid-4 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .grid-2, .grid-3 { gap: 10px; }

  .card:has(> .icon-tile) {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "icon title" "icon desc";
    align-items: start;
    column-gap: 14px;
    padding: 16px 18px !important;
  }
  .card:has(> .icon-tile) > .icon-tile {
    grid-area: icon;
    margin: 0;
    width: 38px; height: 38px;
    align-self: center;
  }
  .card:has(> .icon-tile) > .icon-tile svg { width: 17px; height: 17px; }
  .card:has(> .icon-tile) > h3 { grid-area: title; align-self: center; }
  .card:has(> .icon-tile) > p {
    grid-area: desc;
    margin-top: 3px !important;
    font-size: .88rem !important;
    line-height: 1.45;
  }
  /* a card whose text is only a heading centres the icon against it */
  .card:has(> .icon-tile):not(:has(> p)) { grid-template-areas: "icon title"; }

  /* product cards additionally carry a trailing arrow */
  .product-card:has(> .icon-tile) {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "icon title arrow" "icon desc arrow";
    min-height: 0;
  }
  .product-card:has(> .icon-tile) > .arrow {
    grid-area: arrow;
    align-self: center;
    margin-top: 0;
    width: 30px; height: 30px;
  }

  /* Console: a second panel below the pipeline is supporting detail on a
     phone. (No effect on pages that only have the one panel.) */
  .dash-main > .dash-panel:nth-of-type(n+2) { display: none; }

  /* Industry rows — tighten the narrative and the example card. */
  .split-row { gap: 1.25rem; }
  .split-row .lead { font-size: .95rem !important; }
  .split-row > .card { padding: 16px 18px !important; }
  .split-row > .card > div { gap: 7px !important; }
  .split-row > .card .small { font-size: .85rem; }

  /* Team placeholders read fine two-up */
  .grid-4.team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4.team-grid .card { padding: 20px 12px !important; }

  /* Timeline entries */
  .timeline-row { padding: 20px 0; }
  .dash-body { grid-template-columns: 1fr; }
  .dash-side { display: none; }
  .dash-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dash-stat { padding: 11px 10px; }
  .dash-stat .k { font-size: 10.5px; margin-bottom: 4px; }
  .dash-stat .v { font-size: 16px; }
  .dash-stat .d { font-size: 10px; line-height: 1.35; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .btn-row { width: 100%; }
  .btn-row .btn { flex: 1; }
}
