/* =========================================================
   TRAKKER — shared stylesheet
   Design system v2: lighter dark teal, turquoise/cyan accent,
   Poppins, chunk-based sections, more motion.
   ========================================================= */

:root{
  --bg: #0A1416;
  --bg-raised: #0F1B1D;
  --bg-card: #111F22;
  --bg-card-hi: #14252A;
  --border: rgba(var(--line-rgb),0.12);
  --border-strong: rgba(var(--line-rgb),0.24);
  --text: #F2FAFA;
  --text-dim: #A9C1C0;
  --text-faint: #6C8886;

  --teal: #2DD4BF;
  --teal-bright: #5EEAD4;
  --teal-deep: #0E7490;
  --teal-dim: rgba(var(--accent-rgb),0.14);
  --mint: #34D399;
  --sky: #38BDF8;
  --amber: #F5A524;
  --violet: #A78BFA;

  --gutter: clamp(1.375rem, 3.4vw, 2.75rem);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 73.75rem;     /* 1180px at the 16px base */


  /* raw channels so one rule set serves both themes */
  --accent-rgb: 45,212,191;
  --accent2-rgb: 94,234,212;
  --line-rgb: 148,216,209;
  --bg-rgb: 10,20,22;
  --shadow-rgb: 0,0,0;
  --mint-rgb: 52,211,153;
  --sky-rgb: 56,189,248;
  --amber-rgb: 245,165,36;
  --violet-rgb: 167,139,250;
  --deep-rgb: 14,116,144;
  --grain-opacity: 0.025;
  --canvas-ink-rgb: 150,180,180;
  --canvas-ink2-rgb: 170,200,200;
  --canvas-chip-rgb: 10,20,22;
  --hero-ink-rgb: 255,255,255;
  --device-screen: #05100F;
  --device-bezel: #16262A;
  --on-teal: #052421;
  --btn-primary-bg: var(--teal);
  --btn-primary-fg: #04201D;

  --font: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}


/* =========================================================
   Palette C — ink on off-white, colour reserved for data.
   Chrome goes quiet so the dashboards are the only vivid thing.
   ========================================================= */
:root[data-theme="light"]{
  --bg: #FAF9F6;
  --bg-raised: #F2F1EC;
  --bg-card: #FFFFFF;
  --bg-card-hi: #F7F6F2;
  --border: rgba(20,38,40,0.11);
  --border-strong: rgba(20,38,40,0.20);
  --text: #0D1B1D;
  --text-dim: #4C5F61;
  --text-faint: #78898A;

  /* accent darkened for contrast on white; data colours stay saturated */
  --teal: #0D9488;
  --teal-bright: #0F766E;
  --teal-deep: #115E59;
  --teal-dim: rgba(13,148,136,0.10);
  --mint: #059669;
  --sky: #0284C7;
  --amber: #B45309;
  --violet: #6D28D9;

  --accent-rgb: 13,148,136;
  --accent2-rgb: 15,118,110;
  --line-rgb: 20,38,40;
  --bg-rgb: 250,249,246;
  --shadow-rgb: 20,38,40;
  --mint-rgb: 5,150,105;
  --sky-rgb: 2,132,199;
  --amber-rgb: 180,83,9;
  --violet-rgb: 109,40,217;
  --deep-rgb: 17,94,89;
  --grain-opacity: 0;
  --canvas-ink-rgb: 92,116,118;
  --canvas-ink2-rgb: 62,86,88;
  --canvas-chip-rgb: 255,255,255;
  --hero-ink-rgb: 20,38,40;
  --device-screen: #FFFFFF;
  --device-bezel: #1A2A2C;
  --on-teal: #FFFFFF;

  /* the primary button goes ink, not teal — the quiet-chrome idea */
  --btn-primary-bg: #0D1B1D;
  --btn-primary-fg: #FAF9F6;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }

/* ---------- large-display scale ----------
   Every font size in this sheet is rem, so lifting the root lifts the whole
   type system at once. A 32" 4K panel at 100% zoom is ~137 PPI against ~109
   on a 27" 1440p, so text there is physically ~25% smaller for the same CSS
   px. These steps hand that size back, and --maxw widens with it so the
   column uses the extra width instead of stranding it in the margins. */
html{ font-size: 16px; }
@media (min-width: 1700px){ html{ font-size: 17px; }   :root{ --maxw: 76rem; --maxw-wide: 86rem; } }
@media (min-width: 2200px){ html{ font-size: 18px; }   :root{ --maxw: 78rem; --maxw-wide: 88rem; } }
@media (min-width: 2800px){ html{ font-size: 19.5px; } :root{ --maxw: 80rem; --maxw-wide: 90rem; } }
@media (min-width: 3400px){ html{ font-size: 20.5px; } :root{ --maxw: 82rem; --maxw-wide: 92rem; } }

body{
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* subtle film-grain texture — the kind of quiet polish that separates a
   flat dark background from a premium one, without being visible as "an effect" */
body::after{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: var(--grain-opacity);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }

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

h1,h2,h3,h4{
  font-weight: 600;
  margin: 0 0 .5em;
  letter-spacing: -0.02em;
}

p{ margin: 0 0 1em; color: var(--text-dim); }

.eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.eyebrow::before{
  content:"";
  width: 20px; height: 1px;
  background: var(--teal);
}

/* ---------- nav ---------- */
header.site-nav{
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(var(--bg-rgb),0.72);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--border);
}
.nav-inner{
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand{
  display: inline-flex;
  align-items: center;
  color: var(--text);
}
/* the real lockup: ink on light, near-white on dark */
.brand img, .dm-brand img{ display: block; width: 142px; height: auto; }
.dm-brand img.mk{ width: 19px; height: 17px; }
.brand img.lg-white, .dm-brand img.lg-white{ display: none; }
.brand img.lg-ink, .dm-brand img.lg-ink{ display: block; }
:root:not([data-theme="light"]) .brand img.lg-ink,
:root:not([data-theme="light"]) .dm-brand img.lg-ink{ display: none; }
:root:not([data-theme="light"]) .brand img.lg-white,
:root:not([data-theme="light"]) .dm-brand img.lg-white{ display: block; }
.footer-brand .brand img{ width: 152px; }
@media (max-width: 480px){ .brand img{ width: 124px; } }
.dm-brand{ display: inline-flex; align-items: center; gap: 8px; }

.nav-links{
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.90625rem;
  font-weight: 500;
  color: var(--text-dim);
}
.nav-links a{ transition: color .15s ease; position: relative; }
.nav-links a:hover, .nav-links a.active{ color: var(--text); }
.nav-links a.active::after{
  content:"";
  position: absolute;
  left: 0; right: 0; bottom: -20px;
  height: 2px;
  background: var(--teal);
  box-shadow: 0 0 8px var(--teal);
}
.nav-cta{
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg) !important;
  padding: 9px 18px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.84375rem;
  transition: transform .15s ease, box-shadow .15s ease;
}
.nav-cta:hover{ transform: translateY(-1px); box-shadow: 0 6px 22px rgba(var(--accent-rgb),0.35); }

.nav-toggle{
  display:none;
  background:none;border:none;color:var(--text);
  width:34px;height:34px;cursor:pointer;
}
.nav-toggle svg{width:22px;height:22px;}

@media (max-width: 860px){
  .nav-links{
    position: fixed;
    top: 64px; left: 0; right: 0;
    height: calc(100vh - 64px);
    height: calc(100dvh - 64px);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    gap: 22px;
    font-size: 1.0625rem;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
    overflow-y: auto;
  }
  .nav-links.open{
    opacity: 1; transform: translateY(0); pointer-events: auto;
  }
  .nav-links a.active::after{ display:none; }
  .nav-toggle{ display:block; }
  .nav-cta{ order: -1; }
}

/* ---------- hero ---------- */
.hero{
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  /* the hero is a <section>, so it was inheriting 88px of section padding
     on top of its own — that alone pushed the demo below the fold */
  padding: 0;
}
.hero-canvas-wrap{
  position: absolute;
  inset: 0;
  z-index: 0;
}
#hero-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-orb{
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  opacity: 0.55;
  animation: orbfloat 18s ease-in-out infinite;
}
.hero-orb.o1{
  width: 520px; height: 520px;
  top: -180px; left: -120px;
  background: radial-gradient(circle, rgba(var(--accent-rgb),0.55), transparent 70%);
  animation-delay: 0s;
}
.hero-orb.o2{
  width: 420px; height: 420px;
  bottom: -160px; right: -80px;
  background: radial-gradient(circle, rgba(var(--deep-rgb),0.5), transparent 70%);
  animation-delay: -6s;
}
.hero-orb.o3{
  width: 300px; height: 300px;
  top: 30%; right: 18%;
  background: radial-gradient(circle, rgba(var(--accent2-rgb),0.35), transparent 70%);
  animation-delay: -11s;
}
@keyframes orbfloat{
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.08); }
  66% { transform: translate(-20px, 24px) scale(0.94); }
}
@media (prefers-reduced-motion: reduce){
  .hero-orb{ animation: none; }
}
.hero-fade{
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(var(--bg-rgb),0.15) 0%, rgba(var(--bg-rgb),0.55) 55%, rgba(var(--bg-rgb),0.98) 100%);
  pointer-events:none;
}
.hero-inner{
  position: relative;
  z-index: 1;
  /* kept tight on purpose: the product demo has to break the fold,
     the way Linear and Retool show their interface immediately */
  padding: 56px var(--gutter) 44px;
}
@media (max-width: 860px){ .hero-inner{ padding: 48px var(--gutter) 36px; } }
.hero-inner.small{ padding: 76px var(--gutter) 60px; }
.hero h1{
  font-size: clamp(2.375rem, 5.6vw, 4.375rem);
  line-height: 1.03;
  letter-spacing: -0.03em;
  max-width: 56.25rem;
  margin-bottom: 22px;
}

/* cursor-reactive spotlight — subtle, Linear-style hero glow that tracks the pointer */
.hero::before{
  content:"";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: none;          /* the pointer glow is replaced by .cursor-trail */
  display: none;
}
.hero h1 .accent{ color: var(--teal); }
.hero p.lead{
  font-size: clamp(1rem, 1.5vw, 1.15625rem);
  max-width: 35rem;
  color: var(--text-dim);
  margin-bottom: 32px;
}
.hero-actions{
  display:flex; gap: 14px; flex-wrap: wrap;
  align-items: center;
}

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.90625rem;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  border: 1px solid transparent;
}
.btn-primary{
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}
.btn-primary:hover{ transform: translateY(-1px); box-shadow: 0 8px 26px rgba(var(--accent-rgb),0.35); }
.btn-primary::after{
  content: "→";
  display: inline-block;
  transition: transform .18s ease;
}
.btn-primary:hover::after{ transform: translateX(3px); }
.btn-secondary{
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover{ border-color: var(--teal); color: var(--teal); }

/* floating live chip in hero */
.hero-chip{
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 100px;
  padding: 10px 16px 10px 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(var(--shadow-rgb),0.35);
  animation: chipfloat 6s ease-in-out infinite;
}
.hero-chip .dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse{ 0%,100%{ opacity:1; } 50%{ opacity:.35; } }
@keyframes chipfloat{ 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-8px); } }
@media (max-width: 760px){ .hero-chip{ display:none; } }

/* ---------- marquee ---------- */
.marquee{
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  padding: 22px 0;
  background: var(--bg-raised);
  /* Fade both ends so the strip reads as continuing past the screen rather
     than being cut off by it. The fade is a share of the viewport, so on a
     wide display it grows with the empty space either side of the column. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 clamp(40px, 9vw, 260px),
                                              #000 calc(100% - clamp(40px, 9vw, 260px)), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 clamp(40px, 9vw, 260px),
                                              #000 calc(100% - clamp(40px, 9vw, 260px)), transparent 100%);
}
/* One group is ~883px. The track holds --marquee-copies identical groups and
   slides by exactly one of them, so the loop point is invisible. Enough copies
   that the strip still fills the screen mid-slide on a 4K panel: the widest
   viewport this covers is (copies - 1) x 883px. */
.marquee-track{
  --marquee-copies: 8;
  display: flex;
  width: max-content;
  animation: marquee 33s linear infinite;
}
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation: none; } }
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(calc(-100% / var(--marquee-copies))); }
}
.marquee-group{ display: flex; }
.marquee-item{
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 56px;          /* spacing lives inside the item, so groups tile
                                   exactly; a flex `gap` would drop one gap per
                                   copy and desync the loop by half a gap */
  font-size: 0.84375rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}
.marquee-item .sep{ color: var(--teal); opacity: .6; }

.gap-costs{ margin-top: 40px; }
.quote-row{ margin-top: 44px; }
/* audience cards: the for-whom / what-value block a sales site needs up front */
.card.audience{ display:block; text-decoration:none; color:inherit; }
.card.audience h3{ margin-bottom: 8px; }
.card.audience p{ margin-bottom: 14px; }
.card-link{
  font-size: 0.84375rem; font-weight: 600; color: var(--teal);
  display:inline-block;
}
.card.audience:hover .card-link{ text-decoration: underline; }

.form-error{
  display: none;
  margin-top: 14px;
  padding: 13px 16px;
  border: 1px solid rgba(245,165,36,0.45);
  background: rgba(245,165,36,0.09);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  color: var(--text);
}
.form-error strong{ color: var(--amber); }
.form-error a{ color: var(--teal); text-decoration: underline; }

.quote-row .pull-quote{ max-width: none; }

/* ---------- sections ---------- */
section{ padding: 88px 0; }
section.tight{ padding: 56px 0; }
.section-head{ max-width: 40rem; margin-bottom: 44px; }
.section-head h2{ font-size: clamp(1.625rem, 3.4vw, 2.375rem); line-height: 1.14; }
.section-head p{ font-size: 1.0625rem; max-width: 62ch; }

.border-top{ border-top: 1px solid var(--border); }

/* ---------- stat strip ---------- */
.stat-strip{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat-cell{
  background: var(--bg-card);
  padding: 28px 24px;
  position: relative;
  transition: background .2s ease, box-shadow .2s ease;
}
.stat-cell:hover{ background: var(--bg-card-hi); box-shadow: inset 0 0 0 1px rgba(var(--accent-rgb),0.22); }
.stat-cell .num{
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.stat-cell .label{ font-size: 0.84375rem; color: var(--text-dim); }
@media (max-width: 760px){
  .stat-strip{ grid-template-columns: 1fr; }
}
.stat-strip-4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .stat-strip-4{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px){ .stat-strip-4{ grid-template-columns: 1fr; } }
.stat-strip-4 .num{ font-size: clamp(1.375rem, 2.4vw, 1.875rem); }

/* ---------- trust chips ---------- */
.trust-row{ display:flex; flex-wrap:wrap; gap:10px; }
.trust-chip{
  display:inline-flex; align-items:center; gap:8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 9px 16px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-dim);
}
.trust-chip svg{ width:14px; height:14px; color: var(--teal); flex-shrink:0; }

.callout-punch{
  text-align:center;
  font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  font-weight: 600;
  color: var(--text);
  max-width: 40rem;
  margin: 0 auto;
  line-height: 1.4;
}
.callout-punch .accent{ color: var(--teal); }

/* ---------- chunk grids ---------- */
.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.grid-4{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 860px){
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .grid-4{ grid-template-columns: repeat(2, 1fr); }
}

.card{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .18s ease, transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.card:hover{ border-color: var(--border-strong); transform: translateY(-3px); background: var(--bg-card-hi); box-shadow: 0 24px 48px -28px rgba(var(--accent-rgb),0.35); }
.card .icon-dot{
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  font-size: 1rem;
}
.card h3{ font-size: 1.0625rem; margin-bottom: 6px; }
.card p{ font-size: 0.9375rem; margin-bottom: 0; }

/* compact chunk card — icon + one line, no paragraph */
.chunk{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.chunk:hover{ border-color: var(--border-strong); transform: translateY(-2px); box-shadow: 0 18px 36px -24px rgba(var(--accent-rgb),0.32); }
.chunk .icon-dot{ width: 34px; height: 34px; border-radius: 9px; flex-shrink:0; display:flex; align-items:center; justify-content:center; }
.chunk .chunk-text{ font-size: 0.875rem; font-weight: 500; color: var(--text); }

.dot-teal{ background: rgba(var(--accent-rgb),0.16); color: var(--teal); }
.dot-sky{ background: rgba(var(--sky-rgb),0.16); color: var(--sky); }
.dot-mint{ background: rgba(var(--mint-rgb),0.16); color: var(--mint); }
.dot-amber{ background: rgba(var(--amber-rgb),0.16); color: var(--amber); }
.dot-violet{ background: rgba(var(--violet-rgb),0.16); color: var(--violet); }
.dot-deep{ background: rgba(var(--deep-rgb),0.24); color: var(--teal-bright); }

/* ---------- split compare (online vs physical) ---------- */
.split-compare{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 760px){ .split-compare{ grid-template-columns: 1fr; } }
.split-cell{
  background: var(--bg-card);
  padding: 34px 30px;
}
.split-cell.hot{
  background: linear-gradient(160deg, rgba(var(--accent-rgb),0.10), var(--bg-card) 60%);
}
.split-cell .split-label{
  font-size: 0.75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 14px;
}
.split-cell .split-num{
  /* sized against the cell, not the viewport: the cell is roughly a quarter of
     the page here, so a vw-based clamp overflowed "Guesswork" out of its half. */
  font-size: clamp(1.5rem, 2.1vw, 2.25rem);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
.split-cell.hot .split-num{ color: var(--teal); }
.split-cell .split-desc{ font-size: 0.875rem; color: var(--text-dim); margin-bottom: 0; }

/* ---------- steps (horizontal scroll on mobile) ---------- */
.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.step{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.step:hover{ transform: translateY(-3px); border-color: var(--border-strong); box-shadow: 0 24px 48px -28px rgba(var(--accent-rgb),0.32); }
.step-num{
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--teal-dim);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.84375rem;
  margin-bottom: 16px;
}
.step h3{ font-size: 1rem; margin-bottom: 6px; }
.step p{ font-size: 0.9375rem; margin-bottom: 0; }
@media (max-width: 860px){
  .steps{
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    overflow-x: auto;
    /* overflow-x:auto makes overflow-y compute to auto as well, so the rail
       picks up a few px of vertical scroll and drifts up and down before the
       browser direction-locks. Pinning overflow-y kills that wobble. */
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin: 0 -28px;
    padding-left: 28px;
    padding-right: 28px;
  }
  .step{ scroll-snap-align: start; }
}

/* ---------- feature rows (before/during/after) — condensed chunk style ---------- */
.phase-block{ margin-bottom: 48px; }
.phase-block:last-child{ margin-bottom: 0; }
.phase-label{
  display: inline-flex;
  align-items:center;
  gap: 10px;
  font-size: 0.78125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.feature-list{ display: grid; gap: 12px; }
.feature-item{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 14px;
  align-items: start;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.feature-item:hover{ border-color: var(--border-strong); transform: translateX(2px); box-shadow: 0 16px 32px -22px rgba(var(--accent-rgb),0.3); }
.feature-item .fi-icon{
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--teal-dim);
  color: var(--teal);
  display:flex; align-items:center; justify-content:center;
}
.feature-item h4{ font-size: 0.9375rem; margin-bottom: 4px; }
.feature-item p{ font-size: 0.9375rem; margin-bottom: 0; }
.tag-wip{
  display:inline-block;
  font-size: 0.65625rem;
  font-weight: 600;
  color: var(--amber);
  background: rgba(var(--amber-rgb),0.14);
  padding: 2px 9px;
  border-radius: 100px;
  margin-left: 8px;
  vertical-align: middle;
}

.callout{
  border: 1px solid var(--border-strong);
  background: linear-gradient(180deg, rgba(var(--accent-rgb),0.10), rgba(var(--accent-rgb),0.02));
  border-radius: var(--radius);
  padding: 24px 28px;
  font-size: 0.96875rem;
  color: var(--text);
}
.callout strong{ color: var(--teal); }

/* ---------- comparison quadrant ---------- */
.quad-wrap{
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: center;
}
@media (max-width: 900px){ .quad-wrap{ grid-template-columns: 1fr; } }
.quadrant{
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1.15/1;
}
.qcell{
  padding: 18px 20px;
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-dim);
  display:flex; flex-direction:column; justify-content:flex-start; gap:6px;
}
.qcell.trakker{
  background: radial-gradient(circle at 70% 30%, rgba(var(--accent-rgb),0.30), rgba(var(--accent-rgb),0.05));
  color: var(--text);
  align-items: flex-start;
  justify-content: center;
  gap: 10px;
}
.q-logo img{ display: block; width: 118px; height: auto; }
.q-logo img.lg-white{ display: none; }
:root:not([data-theme="light"]) .q-logo img.lg-ink{ display: none; }
:root:not([data-theme="light"]) .q-logo img.lg-white{ display: block; }
.q-claim{ font-size: 0.8125rem; font-weight: 600; color: var(--text); line-height: 1.4; }
@media (max-width: 560px){ .q-logo img{ width: 92px; } .q-claim{ font-size: 0.75rem; } }
.q-axis-label{ font-size: 0.71875rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- wide container (visual-heavy sections get more room) ---------- */
.wrap-wide{ max-width: var(--maxw-wide, 82.5rem); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- split row — alternating text/visual composition ---------- */
.split-row{
  display: grid;
  /* minmax(0, …) matters: a bare `fr` floors at min-content, so a wide visual
     on the right was squeezing the text column from its 46% share down to
     ~330px and forcing five-word headlines onto four lines. */
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
.split-row .split-text{ order: 1; }
.split-row .split-visual{ order: 2; }
.split-row.reverse{ grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
.split-row.reverse .split-text{ order: 2; }
.split-row.reverse .split-visual{ order: 1; }
@media (max-width: 900px){
  .split-row, .split-row.reverse{ grid-template-columns: 1fr; gap: 32px; }
  .split-row .split-text, .split-row.reverse .split-text{ order: 1; }
  .split-row .split-visual, .split-row.reverse .split-visual{ order: 2; }
}
.split-text .section-head{ margin-bottom: 24px; }
/* 26.25rem was set when headings were smaller; at the current scale it forced
   even five-word headlines onto three lines. Wide enough for two lines now. */
.split-text .col-narrow{ max-width: 34rem; }

/* a visual gets a soft glow behind it and a slight tilt — breaks strict grid rigidity */
.visual-frame{ position: relative; }
.visual-frame::before{
  content: "";
  position: absolute;
  inset: -14%;
  background: radial-gradient(circle at 32% 26%, rgba(var(--accent-rgb),0.20), transparent 62%);
  filter: blur(42px);
  z-index: -1;
  pointer-events: none;
}
.visual-frame .tilt{
  transform: none;
  transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.visual-frame:hover .tilt{ transform: scale(1.025); }
@media (prefers-reduced-motion: reduce){
  .visual-frame .tilt{ transform: none !important; transition: none; }
}

/* ---------- asymmetric section head offsets — breaks the "everything starts at the same margin" rhythm ---------- */
.section-head.offset-right{ margin-left: auto; text-align: right; }
.indent, .section-head.indent{ margin-left: 8%; }
@media (max-width: 760px){
  .section-head.offset-right{ margin-left: 0; text-align: left; }
  .indent, .section-head.indent{ margin-left: 0; }
}

/* ---------- pull quote — oversized, left-aligned, asymmetric attribution ---------- */
/* ---------- testimonial ----------
   Logo beside the quote, quote at reading size. A 60-word testimonial set at
   28px competes with the section headline; at reading size it supports it. */
.pull-quote{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  max-width: 44rem;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 2px solid var(--teal);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}
.pull-quote .pq-logo{
  display: flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-raised);
  overflow: hidden;
}
.pull-quote .pq-logo img{ width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.pull-quote .pq-text{
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-dim);
  letter-spacing: 0;
  margin: 0 0 12px;
}
.pull-quote .pq-who{
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
}
.pull-quote .pq-who .pq-role{ font-weight: 400; color: var(--text-faint); }
@media (max-width: 560px){
  .pull-quote{ grid-template-columns: 1fr; gap: 14px; }
  .pull-quote .pq-logo{ width: 52px; height: 52px; }
}

/* ---------- mini panel visuals (per-phase abstract UI, for split-row layouts) ---------- */
.mini-panel{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: 0 30px 70px -30px rgba(var(--shadow-rgb),0.5);
}
.mini-panel-bar{ display:flex; align-items:center; gap:6px; padding:10px 12px; }
.mini-panel-bar span{ width:9px; height:9px; border-radius:50%; background: var(--border-strong); }
.mini-panel-body{ padding: 4px 14px 18px; display:grid; gap:10px; }
.mp-row{
  display:flex; align-items:center; gap:12px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 13px;
}
.mp-avatar{
  width:28px; height:28px; border-radius:50%;
  background: var(--teal-dim); color: var(--teal);
  display:flex; align-items:center; justify-content:center;
  font-size:0.6875rem; font-weight:700; flex-shrink:0;
}
.mp-row .mp-lines{ flex:1; display:grid; gap:6px; }
.mp-line{ height:7px; border-radius:4px; background: rgba(var(--line-rgb),0.14); }
.mp-line.short{ width:55%; }
.mp-badge{
  font-size:0.625rem; font-weight:700; padding:4px 9px; border-radius:100px;
  background: var(--teal-dim); color: var(--teal); white-space:nowrap;
}
.mp-alert{
  display:flex; align-items:center; gap:12px;
  background: linear-gradient(160deg, rgba(var(--accent-rgb),0.14), var(--bg-raised) 70%);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 15px;
}
.mp-alert .dot-live{
  width:9px; height:9px; border-radius:50%;
  background: var(--mint); box-shadow: 0 0 10px var(--mint);
  animation: pulse 1.6s ease-in-out infinite;
  flex-shrink:0;
}
@media (prefers-reduced-motion: reduce){ .mp-alert .dot-live{ animation:none; } }
.mp-score-row{ display:flex; align-items:center; gap:11px; }
.mp-rank{
  width:22px; height:22px; border-radius:6px;
  background: var(--teal-dim); color: var(--teal);
  font-size:0.6875rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
  flex-shrink:0;
}
.mp-score-track{ flex:1; height:6px; border-radius:4px; background: rgba(var(--line-rgb),0.12); overflow:hidden; }
.mp-score-fill{ height:100%; border-radius:4px; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }
.mp-name{ font-size:0.78125rem; color: var(--text); font-weight:600; width:78px; flex-shrink:0; }

/* ---------- hero product shot (Linear-style: big screenshot under the headline) ---------- */
.hero-shot-wrap{
  position: relative;
  margin-top: 14px;
  z-index: 2;
}
.hero-inner.with-shot{ padding-bottom: 52px; }
.hero-shot{
  position: relative;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow:
    0 50px 110px -30px rgba(var(--shadow-rgb),0.75),
    0 0 90px -20px rgba(var(--accent-rgb),0.28);
}
.hero-shot img{ width: 100%; display: block; }
/* crop the bottom so the product bleeds into the next section, like Linear */
.hero-shot.crop{ max-height: 520px; }
.hero-shot.crop img{ object-fit: cover; object-position: top center; }
/* No bottom fade over the live demo — it is interactive to its last row,
   and a gradient made the chat input look disabled. */
/* on phones the full-width dashboard is illegible — crop into its top-left instead */
@media (max-width: 760px){
  .hero-shot img{ width: 210%; max-width: none; }
  .hero-shot-wrap{ margin-top: 28px; }
}
.shot-caption{
  display: flex; align-items: center; gap: 10px;
  margin-top: 18px;
  font-size: 0.78125rem;
  color: var(--text-faint);
  justify-content: center;
}
.shot-caption .dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 8px var(--mint);
}

/* generic framed screenshot, for in-page product shots */
.shot-frame{
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: var(--bg-card);
  box-shadow: 0 40px 80px -34px rgba(var(--shadow-rgb),0.7), 0 0 60px -22px rgba(var(--accent-rgb),0.22);
}
.shot-frame img{ width: 100%; display: block; }

/* ==========================================================
   INTERACTIVE FLOOR DEMO
   ========================================================== */
.demo-shell{
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 50px 110px -30px rgba(var(--shadow-rgb),0.75), 0 0 90px -20px rgba(var(--accent-rgb),0.22);
}
.demo-bar{
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.demo-bar .dm-brand{ display:flex; align-items:center; gap:7px; font-weight:700; font-size:0.78125rem; }
.demo-bar .dm-brand svg{ width:16px; height:16px; }
.tg-row{ display:flex; gap:6px; flex-wrap:wrap; margin-left:auto; }
.tg{
  display:inline-flex; align-items:center; gap:7px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-faint);
  font-family: var(--font);
  font-size: 0.71875rem; font-weight: 600;
  padding: 6px 12px; border-radius: 100px;
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
@media (max-width: 900px){ .tg{ padding: 11px 14px; } }
.tg:hover{ color: var(--text); border-color: var(--border-strong); }
.tg .sw{
  width: 22px; height: 12px; border-radius: 100px;
  background: rgba(var(--line-rgb),0.18);
  position: relative; flex-shrink: 0;
  transition: background .18s ease;
}
.tg .sw::after{
  content:""; position:absolute; top:2px; left:2px;
  width:8px; height:8px; border-radius:50%;
  background: var(--text-faint);
  transition: transform .18s ease, background .18s ease;
}
.tg[aria-pressed="true"]{ color: var(--teal); border-color: rgba(var(--accent-rgb),0.45); background: rgba(var(--accent-rgb),0.08); }
.tg[aria-pressed="true"] .sw{ background: rgba(var(--accent-rgb),0.45); }
.tg[aria-pressed="true"] .sw::after{ transform: translateX(10px); background: var(--teal); }

.demo-body{ display: grid; grid-template-columns: 1fr 268px; }
@media (max-width: 900px){ .demo-body{ grid-template-columns: 1fr; } }
.demo-canvas-wrap{ position: relative; background: var(--bg-raised); }
#floor-canvas{ display: block; width: 100%; }
.demo-hint{
  position: absolute; left: 12px; bottom: 10px;
  font-size: 0.6875rem; color: var(--text-faint);
  background: rgba(var(--bg-rgb),0.72);
  padding: 5px 10px; border-radius: 100px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
@media (max-width: 900px){
  .demo-hint{
    position: static; display: block; text-align: center;
    background: none; backdrop-filter: none;
    padding: 8px 12px 10px; border-radius: 0;
  }
}
.demo-side{ border-left: 1px solid var(--border); display: flex; flex-direction: column; }
@media (max-width: 900px){ .demo-side{ border-left: none; border-top: 1px solid var(--border); } }

.legend{ display:flex; flex-wrap:wrap; gap:6px; padding: 12px 13px; border-bottom: 1px solid var(--border); }
.lg{
  display:inline-flex; align-items:center; gap:6px;
  font-size: 0.6875rem; font-weight: 600; color: var(--text-dim);
  background: var(--bg-raised); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 100px; cursor: pointer;
  transition: opacity .15s ease, border-color .15s ease;
}
.lg:hover{ border-color: var(--border-strong); }
.lg.off{ opacity: .35; }
.lg i{ width: 7px; height: 7px; border-radius: 50%; display: block; }

#zone-panel{ padding: 14px 13px; flex: 1; min-height: 190px; }
.zp-empty{ color: var(--text-faint); font-size: 0.78125rem; text-align:center; padding: 26px 8px; }
.zp-empty p{ font-size: 0.78125rem; color: var(--text-faint); margin: 0; }
.zp-empty strong{ color: var(--text-dim); }
.zp-empty-icon{
  width: 38px; height: 38px; border-radius: 11px; margin: 0 auto 12px;
  background: var(--teal-dim); color: var(--teal);
  display:flex; align-items:center; justify-content:center;
}
.zp-head{ display:flex; align-items:center; justify-content:space-between; margin-bottom: 12px; }
.zp-head h4{ font-size: 0.90625rem; margin: 0; display:flex; align-items:center; gap:8px; }
.zp-dot{ width:9px; height:9px; border-radius:50%; display:block; flex-shrink:0; }
.zp-close{
  background:none; border:none; color: var(--text-faint);
  font-size: 1.1875rem; line-height:1; cursor:pointer; padding:0 2px;
}
.zp-close:hover{ color: var(--text); }
.zp-grid{ display:grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zp-stat{
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: 9px; padding: 9px 10px;
}
.zp-stat .k{ display:block; font-size: 0.59375rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-faint); margin-bottom: 4px; }
.zp-stat .v{ display:block; font-size: 0.9375rem; font-weight: 700; color: var(--text); }
.zp-flag{
  display:flex; align-items:flex-start; gap:8px;
  margin-top: 10px; padding: 10px 11px;
  background: rgba(var(--amber-rgb),0.10);
  border: 1px solid rgba(var(--amber-rgb),0.28);
  border-radius: 9px;
  font-size: 0.71875rem; color: var(--text-dim); line-height:1.45;
}
.zp-flag .dot-live{ background: var(--amber); box-shadow: 0 0 8px var(--amber); margin-top:4px; }
.zp-chart{ margin-top: 12px; }
.zp-chart .k{ display:block; font-size: 0.59375rem; text-transform: uppercase; letter-spacing:.09em; color: var(--text-faint); margin-bottom: 8px; }

/* chat */
.demo-chat{ border-top: 1px solid var(--border); padding: 12px 13px; }
.chat-head{
  display:flex; align-items:center; gap:8px;
  font-size: 0.6875rem; font-weight: 700; letter-spacing:.08em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 10px;
}
.chat-head .badge{
  font-size: 0.5625rem; letter-spacing:.06em; color: var(--text-faint);
  border: 1px solid var(--border); border-radius: 100px; padding: 2px 7px;
  margin-left:auto; text-transform: none; font-weight: 600;
}
#chat-log{ display:grid; gap:8px; max-height: 172px; overflow-y:auto; margin-bottom: 10px; scrollbar-width: thin; }
.msg{ font-size: 0.75rem; line-height:1.5; padding: 9px 11px; border-radius: 10px; }
.msg.bot{ background: var(--bg-raised); border:1px solid var(--border); color: var(--text-dim); }
.msg.user{ background: var(--teal-dim); border:1px solid rgba(var(--accent-rgb),0.3); color: var(--text); justify-self:end; max-width:88%; }
.typing{ display:inline-flex; gap:4px; align-items:center; }
.typing i{ width:5px; height:5px; border-radius:50%; background: var(--teal); opacity:.4; animation: blink 1.1s infinite; }
.typing i:nth-child(2){ animation-delay:.18s; }
.typing i:nth-child(3){ animation-delay:.36s; }
@keyframes blink{ 0%,100%{opacity:.25;} 50%{opacity:1;} }
@media (prefers-reduced-motion: reduce){ .typing i{ animation:none; } }
.chat-chips{ display:flex; flex-wrap:wrap; gap:5px; margin-bottom:9px; }
.chip{
  font-size: 0.65625rem; font-weight:600; color: var(--text-dim);
  background: var(--bg-raised); border:1px solid var(--border);
  border-radius: 100px; padding: 5px 10px; cursor:pointer;
  transition: border-color .15s ease, color .15s ease;
}
.chip:hover{ border-color: var(--teal); color: var(--teal); }
@media (max-width: 900px){ .chip{ padding: 9px 12px; } }
#chat-form{ display:flex; gap:6px; }
#chat-input{
  flex:1; min-width:0;
  background: var(--bg-raised); border:1px solid var(--border);
  border-radius: 9px; padding: 9px 11px;
  color: var(--text); font-family: var(--font); font-size:0.75rem; outline:none;
}
#chat-input:focus{ border-color: var(--teal); box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.13); }
#chat-send{
  background: var(--teal); color: var(--on-teal); border:none;
  border-radius: 9px; padding: 0 13px; cursor:pointer;
  font-family: var(--font); font-weight:700; font-size:0.75rem;
}

/* ==========================================================
   BIDIRECTIONAL VALUE DIAGRAM
   ========================================================== */
.bidir{ display:grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items:center; }
@media (max-width: 820px){ .bidir{ grid-template-columns: 1fr; } }
.bd-card{
  background: var(--bg-card); border:1px solid var(--border);
  border-radius: var(--radius); padding: 22px 20px;
  transition: border-color .18s ease;
}
.bd-card:hover{ border-color: var(--border-strong); }
.bd-card .bd-role{
  font-size: 0.65625rem; font-weight:700; letter-spacing:.11em; text-transform:uppercase;
  color: var(--teal); margin-bottom: 10px;
}
.bd-card h4{ font-size: 1rem; margin-bottom: 8px; }
.bd-card p{ font-size: 0.9375rem; margin-bottom: 0; }
.bd-mid{ display:flex; flex-direction:column; align-items:center; gap:8px; min-width: 92px; }
@media (max-width: 820px){ .bd-mid{ flex-direction:row; justify-content:center; } }
.bd-arrow{
  font-size: 0.6875rem; font-weight:700; letter-spacing:.06em;
  color: var(--text-faint); text-transform:uppercase;
}
.bd-line{
  width: 100%; height: 2px; border-radius:2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.5), transparent);
  background-size: 200% 100%;
  animation: streamright 2.6s linear infinite;
}
.bd-line.rev{ animation: streamleft 3s linear infinite; }
@media (max-width: 820px){ .bd-line{ width: 60px; } }
@media (prefers-reduced-motion: reduce){ .bd-line{ animation:none; } }

/* ==========================================================
   PHONE MOCKUPS (visitor co-pilot)
   ========================================================== */
.phones{ display:flex; gap: 20px; justify-content:center; flex-wrap:wrap; }
.phone{
  width: 250px; flex-shrink:0;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  padding: 9px;
  box-shadow: 0 40px 80px -30px rgba(var(--shadow-rgb),0.75), 0 0 70px -26px rgba(var(--accent-rgb),0.25);
}
.phone-screen{
  background: var(--bg);
  border-radius: 19px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.ph-status{
  display:flex; align-items:center; justify-content:space-between;
  padding: 8px 13px 5px; font-size: 0.59375rem; color: var(--text-faint); font-weight:600;
}
.ph-top{
  display:flex; align-items:center; justify-content:center; gap:6px;
  padding: 4px 12px 11px; border-bottom:1px solid var(--border);
  font-size: 0.71875rem; font-weight:600; color: var(--text);
}
.ph-body{ padding: 12px; display:grid; gap:9px; }
.ph-h{ font-size: 0.8125rem; font-weight:600; color: var(--text); margin:0; }
.ph-sub{ font-size: 0.625rem; color: var(--text-faint); margin:0 0 2px; }
.ph-hero{
  border-radius: 12px; padding: 13px;
  background: linear-gradient(140deg, rgba(var(--accent-rgb),0.22), rgba(var(--sky-rgb),0.14) 60%, var(--bg-card));
  border: 1px solid rgba(var(--accent-rgb),0.28);
}
.ph-tag{
  display:inline-block; font-size:0.53125rem; font-weight:700; letter-spacing:.07em; text-transform:uppercase;
  background: rgba(var(--accent-rgb),0.22); color: var(--teal);
  padding: 3px 8px; border-radius:100px; margin-bottom:8px;
}
.ph-hero h5{ font-size:0.875rem; margin:0 0 3px; color: var(--text); }
.ph-hero .cat{ font-size:0.59375rem; color: var(--teal); font-weight:600; margin-bottom:6px; }
.ph-hero p{ font-size:0.65625rem; color: var(--text-dim); margin:0 0 10px; line-height:1.45; }
.ph-actions{ display:flex; gap:6px; }
.ph-btn{
  font-size:0.59375rem; font-weight:600; padding:5px 10px; border-radius:100px;
  background: var(--teal); color: var(--on-teal);
}
.ph-btn.ghost{ background: transparent; border:1px solid var(--border-strong); color: var(--text-dim); }
.ph-row{
  display:flex; align-items:center; gap:9px;
  background: var(--bg-card); border:1px solid var(--border);
  border-radius: 10px; padding: 9px 10px;
}
.ph-ico{
  width:26px; height:26px; border-radius:8px; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:0.6875rem; font-weight:700;
}
.ph-row .t{ flex:1; min-width:0; }
.ph-row .t b{ display:block; font-size:0.65625rem; color:var(--text); font-weight:600; }
.ph-row .t span{ display:block; font-size:0.5625rem; color:var(--text-faint); }
.ph-match{ font-size:0.625rem; font-weight:700; color: var(--mint); flex-shrink:0; }
.ph-sec{ font-size:0.5625rem; font-weight:700; letter-spacing:.09em; text-transform:uppercase; color:var(--text-faint); margin-top:3px; }
.ph-stats{ display:grid; grid-template-columns:1fr 1fr; gap:7px; }
.ph-stat{ background:var(--bg-card); border:1px solid var(--border); border-radius:10px; padding:9px 10px; }
.ph-stat .k{ font-size:0.53125rem; text-transform:uppercase; letter-spacing:.08em; color:var(--text-faint); display:block; margin-bottom:3px; }
.ph-stat .v{ font-size:1rem; font-weight:700; color:var(--text); display:block; }
.ph-stat .d{ font-size:0.53125rem; color:var(--mint); }
.ph-nav{
  display:flex; justify-content:space-around; padding:9px 6px;
  border-top:1px solid var(--border); background: var(--bg-raised);
}
.ph-nav span{ font-size:0.53125rem; color:var(--text-faint); font-weight:600; }
.ph-nav span.on{ color: var(--teal); }
.ph-bars{ display:flex; align-items:flex-end; gap:3px; height:38px; margin-top:6px; }
.ph-bars i{ flex:1; background: linear-gradient(180deg, var(--teal), rgba(var(--accent-rgb),0.25)); border-radius:2px 2px 0 0; }
.phone-label{ text-align:center; font-size:0.75rem; font-weight:600; color:var(--text-dim); margin-top:14px; }

/* ==========================================================
   STANDALONE CHARTS (tile map + radar)
   ========================================================== */
.chart-card{
  background: var(--bg-card); border:1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.chart-card:hover{ border-color: var(--border-strong); box-shadow: 0 24px 48px -30px rgba(var(--accent-rgb),0.3); }
.chart-card h4{ font-size:0.96875rem; margin-bottom:4px; }
.chart-card .sub{ font-size:0.75rem; color:var(--text-faint); margin-bottom:18px; }

.tilemap{ display:grid; grid-template-columns: repeat(5, 1fr); gap:6px; max-width: 20.625rem; margin: 0 auto; }
.tile{
  aspect-ratio: 1/1;
  border-radius: 7px;
  display:flex; align-items:center; justify-content:center;
  font-size: 0.65625rem; font-weight:700; letter-spacing:.02em;
  border: 1px solid rgba(var(--line-rgb),0.12);
  color: var(--text);
  transition: transform .15s ease;
  cursor: default;
}
.tile:hover{ transform: scale(1.07); }
.tile.empty{ background:none; border:none; }
.tm-scale{ display:flex; align-items:center; gap:8px; justify-content:center; margin-top:16px; font-size:0.65625rem; color:var(--text-faint); }
.tm-grad{ width:110px; height:7px; border-radius:100px; background: linear-gradient(90deg, rgb(20,52,58), rgb(18,85,90) 22%, rgb(23,143,135) 48%, rgb(45,212,191) 74%, rgb(126,240,219)); }

.radar-wrap{ display:flex; justify-content:center; }
.radar-wrap svg{ width:100%; max-width: 25rem; height:auto; }
.radar-key{ display:flex; gap:16px; justify-content:center; margin-top:14px; font-size:0.71875rem; color:var(--text-dim); }
.radar-key span{ display:inline-flex; align-items:center; gap:6px; }
.radar-key i{ width:9px; height:9px; border-radius:2px; display:block; }

/* ---------- demo side panel tabs ---------- */
.side-tabs{
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4px; padding: 10px 11px 0;
}
.side-tab{
  appearance:none; border:1px solid var(--border); background: var(--bg-raised);
  color: var(--text-faint); font-family: var(--font);
  font-size: 0.71875rem; font-weight: 700; letter-spacing:.02em;
  padding: 8px 6px; border-radius: 8px; cursor: pointer;
  display:flex; align-items:center; justify-content:center; gap:6px;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.side-tab:hover{ color: var(--text); }
.side-tab.on{ color: var(--teal); border-color: rgba(var(--accent-rgb),0.45); background: rgba(var(--accent-rgb),0.10); }
/* The AI tab is the thing people miss, so while it is NOT the open pane it
   carries the accent and a slow halo: an invitation, not a klaxon. Once it is
   open it drops back to the ordinary active state. */
.side-tab[data-side="chat"]:not(.on){
  color: var(--teal);
  border-color: rgba(var(--accent-rgb),0.40);
  background: rgba(var(--accent-rgb),0.07);
  animation: aiHalo 3.2s ease-in-out infinite;
}
@keyframes aiHalo{
  0%, 100%{ box-shadow: 0 0 0 0 rgba(var(--accent-rgb),0.30); }
  50%     { box-shadow: 0 0 0 4px rgba(var(--accent-rgb),0); }
}
@media (prefers-reduced-motion: reduce){ .side-tab[data-side="chat"]:not(.on){ animation:none; } }
.side-tab .pulse{
  width:6px; height:6px; border-radius:50%; background: var(--teal);
  box-shadow:0 0 7px var(--teal); animation: pulse 1.8s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce){ .side-tab .pulse{ animation:none; } }
[data-pane]{ display: none; }
[data-pane].show{ display: block; }
.demo-chat{ border-top: none; }
/* chat fills the panel so the composer sits at the bottom, like a real chat */
@media (min-width: 901px){
  .demo-side{ min-height: 0; }
  [data-pane="chat"].show{ display:flex; flex-direction:column; flex:1; min-height:0; }
  .demo-chat{ display:flex; flex-direction:column; flex:1; min-height:0; }
  #chat-log{ flex:1; max-height:none; align-content:start; }
}

/* ---------- globe / origin map ---------- */
.wmap-wrap{
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  background: radial-gradient(120% 140% at 50% 10%, rgba(var(--accent-rgb),0.05), transparent 62%);
}
.wmap-wrap img{ display:block; width:100%; height:auto; }
.trait-note{
  margin-top: 16px;
  font-size: 0.78125rem;
  line-height: 1.6;
  color: var(--text-dim);
  border-left: 2px solid rgba(var(--accent-rgb),0.4);
  padding-left: 12px;
}
.trait-note strong{ color: var(--teal); font-weight: 600; }
.origin-list{ display:grid; gap:7px; margin-top:18px; }
.origin-row{ display:flex; align-items:center; gap:10px; font-size:0.75rem; }
.origin-row .nm{ width: 104px; color: var(--text-dim); flex-shrink:0; white-space:nowrap; }
@media (max-width:520px){ .origin-row .nm{ width: 94px; font-size: 0.6875rem; } }
.origin-row .tr{ display:block; flex:1; height:6px; border-radius:100px; background: rgba(var(--line-rgb),0.10); overflow:hidden; }
.origin-row .fl{ display:block; height:100%; border-radius:100px; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); }
.origin-row .vl{ width:36px; text-align:right; color: var(--text-faint); font-size:0.6875rem; flex-shrink:0; }

/* ---------- co-pilot phone (real device proportions, interactive) ---------- */
.copilot-grid{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 1000px){
  .copilot-grid{ grid-template-columns: 1fr; gap: 30px; justify-items:center; }
  .copilot-grid .cp-col{ max-width: 28.75rem; }
}
.cp-col .cp-item{ margin-bottom: 26px; }
.cp-col .cp-item:last-child{ margin-bottom: 0; }
.cp-col h4{ font-size: 0.96875rem; margin-bottom: 6px; display:flex; align-items:center; gap:9px; }
.cp-col h4 .n{
  width: 22px; height:22px; border-radius:6px; flex-shrink:0;
  background: var(--teal-dim); color: var(--teal);
  font-size:0.6875rem; font-weight:700;
  display:flex; align-items:center; justify-content:center;
}
.cp-col p{ font-size: 0.9375rem; margin-bottom: 0; }
.cp-col.right{ text-align: left; }

.device{
  /* rem, not px: the screen contents are rem-sized, so a px frame stayed put
     while the content inside grew on large displays and spilled into a
     scrollbar. Sized to a modern phone's aspect ratio. */
  width: 18.75rem;
  height: 42.5rem;
  background: var(--device-screen);
  border: 9px solid var(--device-bezel);
  border-radius: 40px;
  box-shadow: 0 50px 90px -30px rgba(var(--shadow-rgb),0.8), 0 0 80px -28px rgba(var(--accent-rgb),0.3);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  display: flex; flex-direction: column;
}
.device::before{
  content:""; position:absolute; top:0; left:50%; transform:translateX(-50%);
  width: 104px; height: 22px; background:var(--device-bezel);
  border-radius: 0 0 13px 13px; z-index: 5;
}
.dv-status{
  display:flex; align-items:center; justify-content:space-between;
  padding: 11px 18px 6px; font-size: 0.625rem; color: var(--text-dim); font-weight:600; flex-shrink:0;
}
.dv-head{
  display:flex; align-items:center; justify-content:center; gap:6px;
  padding: 4px 14px 11px; border-bottom:1px solid var(--border);
  font-size: 0.75rem; font-weight:600; color: var(--text); flex-shrink:0;
}
.dv-body{ flex:1; overflow:hidden; position:relative; }
[data-view]{ display:none; padding: 13px; gap: 9px; height:100%; overflow-y:auto;
             scrollbar-width: none; -ms-overflow-style: none; }
[data-view]::-webkit-scrollbar{ width:0; height:0; }   /* a phone has no scrollbar */
[data-view].show{ display:grid; align-content:start; }
.dv-nav{
  display:flex; justify-content:space-around; padding: 9px 4px 11px;
  border-top:1px solid var(--border); background: var(--bg-raised); flex-shrink:0;
}
.dv-nav button{
  appearance:none; background:none; border:none; cursor:pointer;
  font-family: var(--font); font-size: 0.5625rem; font-weight:600;
  color: var(--text-faint); display:flex; flex-direction:column; align-items:center; gap:3px;
  padding: 2px 6px; border-radius:7px;
  transition: color .15s ease;
}
.dv-nav button svg{ width:15px; height:15px; }
.dv-nav button:hover{ color: var(--text-dim); }
.dv-nav button.on{ color: var(--teal); }

.ctx-switch{ display:inline-flex; gap:4px; padding:4px; background:var(--bg-card); border:1px solid var(--border); border-radius:100px; margin-bottom:26px; }
.ctx-switch button{
  appearance:none; border:none; background:transparent; cursor:pointer;
  font-family:var(--font); font-size:0.78125rem; font-weight:600; color:var(--text-dim);
  padding:8px 18px; border-radius:100px; transition: background .16s ease, color .16s ease;
}
.ctx-switch button.on{ background: var(--teal); color:#052421; }
[data-ctxpane]{ display:none; }
[data-ctxpane].show{ display:block; }

/* ---------- dashboard placeholder (illustrative, not a real screenshot) ---------- */
.dash-mock{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.dash-top{
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-raised);
}
.dash-top .dm-brand{ display:flex; align-items:center; gap:7px; font-weight:700; font-size:0.78125rem; letter-spacing:.02em; }
.dash-top .dm-brand svg{ width:16px; height:16px; }
.dm-tabs{ display:flex; gap:5px; flex-wrap:wrap; }
.dm-tab{
  font-size: 0.6875rem; font-weight: 600;
  color: var(--text-faint);
  padding: 5px 11px; border-radius: 7px;
  white-space: nowrap;
}
.dm-tab.on{ background: var(--teal-dim); color: var(--teal); }
.dash-body{ padding: 16px; display: grid; gap: 12px; }
.dm-stats{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (max-width: 620px){ .dm-stats{ grid-template-columns: repeat(2, 1fr); } }
.dm-stat{
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 13px;
}
.dm-stat .k{ font-size: 0.59375rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-faint); margin-bottom: 6px; }
.dm-stat .v{ font-size: 1.25rem; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.dm-charts{ display: grid; grid-template-columns: 1.4fr 1fr; gap: 10px; }
@media (max-width: 620px){ .dm-charts{ grid-template-columns: 1fr; } }
.dm-panel{
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 12px 13px;
}
.dm-panel .t{ font-size: 0.65625rem; font-weight: 600; color: var(--text-dim); margin-bottom: 10px; }
.dm-panel svg{ display: block; width: 100%; height: 86px; }
.dm-bars{ display:flex; align-items:flex-end; gap: 6px; height: 74px; }
.dm-bars i{
  flex: 1;
  background: linear-gradient(180deg, var(--teal), rgba(var(--accent-rgb),0.25));
  border-radius: 3px 3px 0 0;
  display: block;
}
.illus-note{
  font-size: 0.71875rem;
  color: var(--text-faint);
  font-style: italic;
  margin-top: 12px;
}

/* ---------- consent tier ladder ---------- */
.tiers{ display: grid; gap: 10px; }
.tier{
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  align-items: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  transition: border-color .18s ease, transform .18s ease;
}
.tier:hover{ border-left-color: var(--teal); transform: translateX(2px); }
.tier.base{ border-left-color: var(--teal); background: linear-gradient(100deg, rgba(var(--accent-rgb),0.07), var(--bg-card) 55%); }
.tier .tno{
  font-size: 0.625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-dim);
  padding: 5px 9px; border-radius: 6px; text-align: center;
}
.tier h4{ font-size: 0.9375rem; margin-bottom: 4px; }
.tier p{ font-size: 0.90625rem; margin-bottom: 0; }
.tier .tflag{
  display:inline-block; font-size:0.65625rem; font-weight:700;
  color: var(--text-faint); border:1px solid var(--border);
  padding: 2px 8px; border-radius: 100px; margin-top: 8px;
}

/* ---------- FAQ (native details/summary — works without JS) ---------- */
.faq{ display: grid; gap: 10px; max-width: 51.25rem; }
.faq details{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color .18s ease;
}
.faq details[open]{ border-color: var(--border-strong); }
.faq summary{
  cursor: pointer;
  list-style: none;
  padding: 17px 20px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker{ display: none; }
.faq summary::after{
  content: "+";
  color: var(--teal);
  font-size: 1.1875rem;
  font-weight: 400;
  line-height: 1;
  flex-shrink: 0;
  transition: transform .2s ease;
}
.faq details[open] summary::after{ transform: rotate(45deg); }
.faq .faq-a{ padding: 0 20px 18px; }
.faq .faq-a p{ font-size: 0.96875rem; margin-bottom: .7em; }
.faq .faq-a p:last-child{ margin-bottom: 0; }

/* ---------- blog ---------- */
.post-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px){ .post-grid{ grid-template-columns: 1fr; } }
.post-card{
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.post-card:hover{ border-color: var(--border-strong); transform: translateY(-3px); box-shadow: 0 24px 48px -28px rgba(var(--accent-rgb),0.32); }
.post-card .pmeta{ font-size: 0.71875rem; color: var(--text-faint); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; }
.post-card h3{ font-size: 1.125rem; line-height: 1.3; margin-bottom: 10px; }
.post-card p{ font-size: 0.9375rem; margin-bottom: 16px; }
.post-card .plink{ font-size: 0.84375rem; font-weight: 600; color: var(--teal); margin-top: auto; }

/* ---------- article prose ---------- */
.prose{ max-width: 45rem; }
.prose h2{ font-size: 1.5625rem; margin-top: 44px; margin-bottom: 14px; }
.prose h3{ font-size: 1.125rem; margin-top: 30px; margin-bottom: 8px; }
.prose p{ font-size: 1rem; line-height: 1.7; margin-bottom: 1.1em; }
.prose ul, .prose ol{ padding-left: 22px; margin-bottom: 1.2em; }
.prose li{ font-size: 1rem; line-height: 1.7; color: var(--text-dim); margin-bottom: .5em; }
.prose strong{ color: var(--text); }
.prose a{ color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose .lede{ font-size: 1.15625rem; line-height: 1.6; color: var(--text); margin-bottom: 1.4em; }
.article-meta{
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 0.78125rem; color: var(--text-faint);
  padding-bottom: 22px; margin-bottom: 30px;
  border-bottom: 1px solid var(--border);
}

/* ---------- comparison table ---------- */
.cmp-wrap{
  overflow-x: auto;
  overflow-y: hidden;              /* see .steps: stops the vertical wobble */
  overscroll-behavior-x: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 26px 0 30px;
  -webkit-overflow-scrolling: touch;
}
table.cmp{ width: 100%; border-collapse: collapse; min-width: 660px; font-size: 0.84375rem; }
.cmp th{
  background: var(--bg-raised);
  text-align: left;
  padding: 13px 16px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  color: var(--text-faint);
  font-weight: 700;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}
.cmp td{
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--text-dim);
  vertical-align: top;
  line-height: 1.5;
}
.cmp tr:last-child td{ border-bottom: none; }
.cmp td:first-child{ color: var(--text); font-weight: 600; white-space: nowrap; }
.cmp tr.hot td{ background: rgba(var(--accent-rgb),0.07); }
.cmp tr.hot td:first-child{ color: var(--teal); }
.cmp .yes{ color: var(--mint); font-weight: 600; }
.cmp .mid{ color: var(--amber); font-weight: 600; }
.cmp .no{ color: var(--text-faint); }
.scroll-hint{ font-size: 0.71875rem; color: var(--text-faint); margin: -18px 0 26px; }
@media (min-width: 760px){ .scroll-hint{ display: none; } }

/* ---------- case study before/after ---------- */
.ba-table{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 720px){ .ba-table{ grid-template-columns: 1fr; } }
.ba-head{
  background: var(--bg-raised);
  padding: 13px 18px;
  font-size: 0.71875rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint);
}
.ba-head.after{ color: var(--teal); }
.ba-cell{ background: var(--bg-card); padding: 15px 18px; font-size: 0.875rem; color: var(--text-dim); }
.ba-cell.after{ color: var(--text); }

/* ---------- tabs (audience switcher) ---------- */
.tabs{
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  margin-bottom: 38px;
  flex-wrap: nowrap;        /* wrapping splits the pill and orphans the last tab */
  max-width: 100%;
}
@media (max-width: 560px){
  .tabs{ gap: 2px; padding: 4px; }
  .tab-btn{ padding: 9px 13px; font-size: 0.8125rem; }
}
.tab-btn{
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 100px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
  white-space: nowrap;
}
.tab-btn:hover{ color: var(--text); }
.tab-btn[aria-selected="true"]{
  background: var(--teal);
  color: #052421;
}
.tab-panel{ display: none; }
.tab-panel.active{ display: block; animation: fadein .35s ease; }
@keyframes fadein{ from{ opacity:0; transform: translateY(8px); } to{ opacity:1; transform:none; } }
@media (prefers-reduced-motion: reduce){ .tab-panel.active{ animation: none; } }

/* ---------- data flow diagram (data in / data out) ---------- */
.flow{
  display: grid;
  grid-template-columns: 1fr 62px 1.05fr 62px 1fr;
  gap: 14px;
  align-items: center;
}
@media (max-width: 980px){
  .flow{ grid-template-columns: 1fr; gap: 16px; }
}
.flow-col{ display: grid; gap: 10px; }
.flow-node{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  font-size: 0.84375rem;
  font-weight: 500;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 10px;
}
.flow-node .nd{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal); flex-shrink: 0;
  box-shadow: 0 0 8px var(--teal);
}
.flow-core{
  background: linear-gradient(160deg, rgba(var(--accent-rgb),0.16), var(--bg-card) 72%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.flow-core h4{ font-size: 1.03125rem; margin-bottom: 6px; }
.flow-core p{ font-size: 0.8125rem; margin-bottom: 0; }
.flow-core .core-badge{
  display: inline-block;
  font-size: 0.65625rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-dim);
  padding: 4px 11px; border-radius: 100px; margin-bottom: 14px;
}
/* animated bidirectional stream between the columns */
.flow-arrows{
  display: flex; flex-direction: column; gap: 6px;
  padding: 6px 0;
}
.flow-line{
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb),0.45), transparent);
  background-size: 200% 100%;
  animation: streamright 2.6s linear infinite;
  border-radius: 2px;
}
.flow-line.rev{ animation: streamleft 3.1s linear infinite; }
@keyframes streamright{ from{ background-position: 200% 0; } to{ background-position: -200% 0; } }
@keyframes streamleft{ from{ background-position: -200% 0; } to{ background-position: 200% 0; } }
@media (prefers-reduced-motion: reduce){ .flow-line{ animation: none; } }

.io-head{
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-top: 4px;
}

/* ---------- sensor / integration pills ---------- */
.pill-row{ display:flex; flex-wrap: wrap; gap: 9px; }
.pill{
  border: 1px solid var(--border);
  background: var(--bg-raised);
  border-radius: 100px;
  padding: 8px 15px;
  font-size: 0.78125rem;
  color: var(--text-dim);
  font-weight: 500;
  transition: border-color .15s ease, color .15s ease;
}
.pill:hover{ border-color: var(--teal); color: var(--teal); }

/* ---------- pipeline / anonymised logo rows ---------- */
.pipeline-row{
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 980px){ .pipeline-row{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px){ .pipeline-row{ grid-template-columns: 1fr; } }
.pipeline-cell{
  background: var(--bg-card);
  padding: 22px 20px;
  transition: background .2s ease;
}
.pipeline-cell:hover{ background: var(--bg-card-hi); }
.pipeline-cell .pc-name{ font-size: 0.84375rem; font-weight: 600; color: var(--text); margin-bottom: 6px; line-height:1.35; }
.pipeline-cell .pc-meta{ font-size: 0.75rem; color: var(--text-faint); margin-bottom: 10px; }
.pipeline-cell .pc-status{
  font-size: 0.65625rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--teal); background: var(--teal-dim);
  padding: 3px 9px; border-radius: 100px; display:inline-block;
}

/* ---------- team trio card ---------- */
.trio{
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.trio .t-av{
  width: 62px; height: 62px;
  border-radius: 50%;
  background: var(--teal-dim);
  color: var(--teal);
  border: 2px solid var(--bg-card);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.0625rem;
  margin-left: -12px;
}
.trio .t-av:first-child{ margin-left: 0; }

/* ---------- founder card (abstract, no-photo visual for split-row) ---------- */
.founder-card{
  background: linear-gradient(160deg, var(--bg-card-hi), var(--bg-card) 70%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 46px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.founder-card .founder-glyph{
  position: absolute;
  top: -22px; right: 14px;
  font-size: 8.75rem;
  font-weight: 700;
  color: rgba(var(--accent-rgb),0.08);
  line-height: 1;
  font-family: Georgia, serif;
  pointer-events: none;
}
.founder-avatar{
  width: 76px; height: 76px;
  border-radius: 50%;
  background: var(--teal-dim);
  color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5625rem; font-weight: 700;
  margin: 0 auto 18px;
  position: relative;
}
.founder-name{ font-size: 1.09375rem; font-weight: 600; color: var(--text); margin-bottom: 4px; position: relative; }
.founder-role{ font-size: 0.78125rem; color: var(--teal); font-weight: 600; position: relative; }

/* ---------- mockup panel (abstract "live map" visual) ---------- */
.mockup{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px;
  box-shadow: 0 30px 70px -20px rgba(var(--shadow-rgb),0.5);
}
.mockup-bar{
  display:flex; align-items:center; gap:6px;
  padding: 10px 12px;
}
.mockup-bar span{ width:9px; height:9px; border-radius:50%; background: var(--border-strong); }
.mockup-canvas{
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 16/10;
  background:
    linear-gradient(rgba(var(--line-rgb),0.06) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, rgba(var(--line-rgb),0.06) 1px, transparent 1px) 0 0/28px 28px,
    var(--bg-raised);
}
.mockup-zone{
  position: absolute;
  border-radius: 10px;
  opacity: 0.5;
}
.mockup-dot{
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--teal-bright);
  box-shadow: 0 0 8px var(--teal-bright);
  animation: dotdrift 8s ease-in-out infinite;
}
@keyframes dotdrift{
  0%,100%{ transform: translate(0,0); }
  50%{ transform: translate(14px, -10px); }
}
@media (prefers-reduced-motion: reduce){ .mockup-dot{ animation: none; } }

/* ---------- testimonials / quotes ---------- */
.quote-card{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.quote-card:hover{ border-color: var(--border-strong); box-shadow: 0 24px 48px -28px rgba(var(--accent-rgb),0.3); }
.quote-card p.quote-text{
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 12px;
}
.quote-card .who{ font-size: 0.78125rem; color: var(--text-faint); }

/* ---------- team ---------- */
.team-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px){ .team-grid{ grid-template-columns: 1fr; } }
.team-card{
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.team-card:hover{ border-color: var(--border-strong); transform: translateY(-3px); box-shadow: 0 28px 52px -28px rgba(var(--accent-rgb),0.32); }
.team-photo{
  aspect-ratio: 1/1;
  background: linear-gradient(150deg, #14262A, #0B1416);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.team-photo img{ width:100%; height:100%; object-fit: cover; }
.team-photo .initials{
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}
.team-photo .placeholder-tag{
  position:absolute; bottom:10px; left:10px;
  font-size:0.625rem; letter-spacing:.08em; text-transform:uppercase;
  background: rgba(var(--shadow-rgb),0.55); padding:3px 8px; border-radius: 100px;
  color: var(--text-faint);
}
.team-body{ padding: 20px 22px 24px; }
.team-body h3{ font-size: 1.03125rem; margin-bottom: 2px; }
.team-body .role{ font-size: 0.8125rem; color: var(--teal); font-weight: 600; margin-bottom: 10px; }
.team-body p{ font-size: 0.84375rem; margin-bottom: 12px; }
.team-links{ display:flex; gap: 10px; }
.team-links a{
  width: 30px; height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display:flex; align-items:center; justify-content:center;
  color: var(--text-dim);
  transition: border-color .15s ease, color .15s ease;
}
.team-links a:hover{ border-color: var(--teal); color: var(--teal); }
.team-links svg{ width: 15px; height: 15px; }

/* ---------- contact ---------- */
.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 900px){ .contact-grid{ grid-template-columns: 1fr; gap: 36px; } }

.contact-info-item{
  display: flex; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:first-child{ padding-top: 0; }
.contact-info-item .ci-icon{
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--teal-dim);
  color: var(--teal);
  display:flex; align-items:center; justify-content:center;
  flex-shrink: 0;
}
.contact-info-item h4{ font-size: 0.90625rem; margin-bottom: 3px; }
.contact-info-item p{ margin-bottom: 0; font-size: 0.875rem; }
.contact-info-item a{ color: var(--text); display:inline-block; padding: 5px 0; }
@media (max-width: 900px){ .contact-info-item a{ padding: 9px 0; } }
.contact-info-item a:hover{ color: var(--teal); }

form.contact-form{
  display: grid;
  gap: 14px;
}
.field{ display: grid; gap: 6px; }
.field label{
  font-size: 0.75rem; font-weight: 600; color: var(--text-dim);
  text-transform: uppercase; letter-spacing: .06em;
}
.field input, .field select, .field textarea{
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 0.875rem;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb),0.15);
}
.field textarea{ resize: vertical; min-height: 100px; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px){ .form-row{ grid-template-columns: 1fr; } }
.form-note{ font-size: 0.75rem; color: var(--text-faint); margin-top: 2px; }
.form-success{
  display:none;
  padding: 15px 17px;
  border-radius: var(--radius-sm);
  background: rgba(var(--mint-rgb),0.12);
  border: 1px solid rgba(var(--mint-rgb),0.3);
  color: var(--mint);
  font-size: 0.84375rem;
}

/* ---------- footer ---------- */
footer.site-footer{
  border-top: 1px solid var(--border);
  padding: 52px 0 28px;
}
.footer-top{
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 42px;
}
@media (max-width: 760px){
  .footer-top{ grid-template-columns: 1fr 1fr; }
}
.footer-brand .brand{ margin-bottom: 12px; }
.footer-brand p{ font-size: 0.84375rem; max-width: 16.875rem; }
.footer-col h5{
  font-size: 0.71875rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--text-faint); margin-bottom: 14px; font-weight: 600;
}
.footer-col a{
  display:block;
  font-size: 0.84375rem;
  color: var(--text-dim);
  padding: 4px 0;
  margin-bottom: 4px;
  transition: color .15s ease;
}
@media (max-width: 900px){
  .footer-col a{ padding: 7px 0; margin-bottom: 0; }
}
.footer-col a:hover{ color: var(--teal); }
.footer-bottom{
  display:flex; align-items:center; justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 14px;
}
.footer-bottom p{ font-size: 0.78125rem; margin: 0; color: var(--text-faint); }
.footer-legal{ display:flex; gap: 18px; font-size: 0.78125rem; color: var(--text-faint); }
.footer-legal a{ display:inline-block; padding: 6px 0; }
@media (max-width: 900px){ .footer-legal a{ padding: 10px 0; } }
.footer-legal a:hover{ color: var(--text-dim); }
.footer-social{ display:flex; gap: 12px; }
.footer-social a{
  width: 32px; height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  display:flex; align-items:center; justify-content:center;
  color: var(--text-dim);
}
.footer-social a:hover{ color: var(--teal); border-color: var(--border-strong); }
.footer-social svg{ width: 15px; height: 15px; }

/* ---------- legal pages ---------- */
.legal-body h2{ font-size: 1.1875rem; margin-top: 36px; }
.legal-body h2:first-child{ margin-top: 0; }
.legal-body p, .legal-body li{ font-size: 0.90625rem; color: var(--text-dim); }
.legal-body ul{ padding-left: 20px; }
.legal-body a{ color: var(--teal); }
.legal-body h3{ font-size: 1.0625rem; margin-top: 26px; margin-bottom: 6px; }
.legal-body h4{ font-size: 0.9375rem; margin-top: 20px; margin-bottom: 6px; color: var(--text); }
.legal-body li{ margin-bottom: 7px; }
.legal-body ul{ margin-bottom: 16px; }
.legal-updated{
  font-size: 0.8125rem; color: var(--text-faint);
  margin: -6px 0 26px;
}

/* consent checkbox on the contact form */
.consent{
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-dim);
  cursor: pointer;
  margin-bottom: 4px;
}
.consent input[type="checkbox"]{
  width: 21px; height: 21px;
  margin: 0;
  accent-color: var(--teal);
  cursor: pointer;
  flex-shrink: 0;
}
.consent a{ color: var(--teal); text-decoration: underline; padding: 3px 0; display:inline-block; }
@media (max-width: 900px){ .consent input[type="checkbox"]{ width: 24px; height: 24px; } .consent{ gap: 12px; } }
.consent input:focus-visible{ outline: 2px solid var(--teal); outline-offset: 2px; }
.legal-note{
  font-size: 0.78125rem;
  color: var(--text-faint);
  border: 1px dashed var(--border-strong);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
}

/* ---------- reveal-on-scroll ---------- */
.reveal{ opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in{ opacity: 1; transform: translateY(0); }
.reveal-scale{ opacity: 0; transform: scale(0.96); transition: opacity .6s ease, transform .6s ease; }
.reveal-scale.in{ opacity: 1; transform: scale(1); }

/* ---------- misc ---------- */
.center{ text-align:center; }
.mt-0{ margin-top:0; }
::selection{ background: var(--teal); color: #052421; }


/* ---------- palette switch ---------- */
.theme-switch{
  display: inline-flex; align-items: center; gap: 2px;
  background: var(--bg-raised);
  border: 1px solid var(--border-strong);
  border-radius: 100px; padding: 3px; flex-shrink: 0;
}
.ts-opt{
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font); font-size: 0.75rem; font-weight: 600;
  color: var(--text-faint); background: transparent;
  border: none; border-radius: 100px; padding: 6px 12px; cursor: pointer;
  transition: color .15s ease, background .15s ease;
  white-space: nowrap;
}
.ts-opt svg{ width: 14px; height: 14px; flex-shrink: 0; }
.ts-opt:hover{ color: var(--text-dim); }
.ts-opt[aria-pressed="true"]{
  background: var(--bg-card);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(var(--shadow-rgb),0.18);
}
.theme-switch.compact .ts-opt{ padding: 6px 9px; }
.sr{
  position:absolute; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0;
}
@media (max-width: 860px){
  .theme-switch{ margin-left: auto; margin-right: 8px; }
  .theme-switch .ts-opt span:not(.sr){ display: none; }
  .theme-switch .ts-opt{ padding: 6px 9px; }
}
@media (max-width: 560px){
  .demo-bar .theme-switch{ display: none; }
}
:root[data-theme="light"] .brand svg path:last-child{ stroke: #0D9488; }
/* the hero's ambient orbs are tuned for a dark canvas */
:root[data-theme="light"] .hero-orb{ opacity: 0.30; filter: blur(90px); }
:root[data-theme="light"] .demo-shell,
:root[data-theme="light"] .visual-frame > .tilt > *,
:root[data-theme="light"] .device{
  box-shadow: 0 24px 60px -28px rgba(20,38,40,0.28), 0 2px 8px rgba(20,38,40,0.05);
}
/* both rules must outrank `.wmap-wrap img { display:block }` */
.wmap-wrap img.wm-light{ display: none; }
.wmap-wrap img.wm-dark{ display: block; }
:root[data-theme="light"] .wmap-wrap img.wm-dark{ display: none; }
:root[data-theme="light"] .wmap-wrap img.wm-light{ display: block; }

/* palette C: the choropleth ramp runs pale-to-deep, so the legend must too */
:root[data-theme="light"] .tm-grad{
  background: linear-gradient(90deg, rgb(214,232,229), rgb(160,209,202) 22%, rgb(95,181,170) 48%, rgb(23,143,135) 74%, rgb(10,82,77));
}
/* one primary treatment across nav and page */
:root[data-theme="light"] .nav-cta:hover{ background: #16302F; }
:root[data-theme="light"] .hero-orb{ opacity: 0.18; }

/* in palette C the phone shows a light app UI; only the bezel stays dark */
:root[data-theme="light"] .dv-nav{ background: #F4F3EF; }
:root[data-theme="light"] .ph-row,
:root[data-theme="light"] .ph-stat{ background: #FBFAF7; }

.lead-sm{
  font-size: 0.9375rem; line-height: 1.6; color: var(--text-dim);
  margin: 14px 0 0; max-width: 46ch;
}

/* ---------- typography: no orphans, comfortable measure ----------
   text-wrap:balance evens out heading lines so a single word never
   lands alone; pretty stops widows in body copy. */
h1, h2, h3, h4,
.section-head h2, .callout-punch, .phone-label{
  text-wrap: balance;
}
p, li, .lead, .split-desc, .chunk-text{
  text-wrap: pretty;
}
.lead{ max-width: 58ch; }
.split-text p, .prose p, .prose li{ max-width: 68ch; }
.faq .faq-a p{ max-width: 72ch; }

.ci-who{ font-size: 0.8125rem; color: var(--text-faint); margin-top: 2px; }

/* years sit directly under the photo so the eye does not jump */
.team-years{
  display: flex; align-items: baseline; gap: 8px;
  padding: 12px 22px 0;
}
.team-years .ty-num{ font-size: 1.25rem; font-weight: 700; color: var(--teal); letter-spacing: -0.01em; }
.team-years .ty-label{ font-size: 0.78125rem; color: var(--text-faint); }
.team-card .team-body{ padding-top: 10px; }

.who-row{ display:flex; gap:12px; align-items:baseline; padding:7px 0; }
.who-name{ width:64px; flex-shrink:0; font-size:0.8125rem; font-weight:700; color:var(--teal); }
.who-what{ font-size:0.84375rem; color:var(--text-dim); }
.who-line{ height:1px; background:var(--border); margin:10px 0; }

.lead-outcome{
  list-style: none;
  margin: 20px 0 0; padding: 0;
  display: grid; gap: 7px;
}
.lead-outcome li{
  position: relative;
  padding-left: 20px;
  font-size: 0.96875rem; font-weight: 600; line-height: 1.5;
  color: var(--text);
}
.lead-outcome li::before{
  content: ""; position: absolute; left: 0; top: 0.55em;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--teal);
}
/* the triad was crowding the buttons */
.hero-inner .hero-actions{ margin-top: 28px; }

/* ---------- mobile ergonomics ----------
   Menu rows need a real tap target (>=44px) and the small print
   must not drop below 12.5px on a phone. */
@media (max-width: 860px){
  .nav-links a{
    display: block;
    width: 100%;
    padding: 11px 0;
    min-height: 44px;
  }
  .nav-links{ gap: 6px; }
  .nav-links .nav-cta{
    padding: 13px 20px;
    text-align: center;
    min-height: 48px;
  }
  .theme-switch .ts-opt{ min-height: 44px; }
  .illus-note,
  .shot-caption,
  .footer-bottom p,
  .form-note,
  .ci-who{ font-size: 0.78125rem; }
  .demo-hint{ font-size: 0.78125rem; }
  .chart-card .sub{ font-size: 0.84375rem; }
}

.footer-berlin{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; color: var(--text-faint); margin-top: 10px;
}
.dot-berlin{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--mint); box-shadow: 0 0 8px var(--mint);
  flex-shrink: 0;
}

.sourced-stat{
  margin-top: 22px; padding-left: 14px;
  border-left: 2px solid rgba(var(--accent-rgb),0.4);
  font-size: 0.875rem; line-height: 1.65; color: var(--text-faint); max-width: 56ch;
}
.sourced-stat strong{ color: var(--teal); font-size: 1.0625rem; }
.sourced-stat a{ color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.sourced-stat a:hover{ color: var(--teal); }

/* the brand link needs a real tap target on touch screens */
@media (max-width: 860px){
  .brand{ padding: 9px 0; }
}
/* clip, not hidden: overflow-x:clip does not break position:sticky,
   so the decorative hero blurs stop widening the scroll box */
html, body{ overflow-x: clip; }

/* ---------- cursor trajectory ----------
   Drawn by js/main.js on one fixed canvas. It sits above the page but under
   the grain overlay, and never takes a pointer event. */
.cursor-trail{
  position: fixed;
  inset: 0;
  z-index: 998;
  pointer-events: none;
}
@media (hover: none){ .cursor-trail{ display: none; } }
@media (prefers-reduced-motion: reduce){ .cursor-trail{ display: none; } }

/* role reads as two lines for everyone, so the cards stay level */
.team-body .role{ display: flex; flex-direction: column; gap: 1px; margin-bottom: 10px; }
.team-body .role .r-title{ color: var(--teal); font-weight: 600; }
.team-body .role .r-func{ color: var(--text-faint); font-weight: 500; font-size: 0.78125rem; }
/* the years sit close under the photos rather than a section away */
.team-section{ padding-bottom: 0; }
.years-strip{ padding-top: 22px; padding-bottom: 0; }

/* the winning cell should read as the winner in light mode too */
:root[data-theme="light"] .qcell.trakker{
  background:
    radial-gradient(circle at 72% 28%, rgba(13,148,136,0.22), rgba(13,148,136,0.07) 70%),
    #FFFFFF;
  box-shadow: inset 0 0 0 1.5px rgba(13,148,136,0.45);
}
