/* =========================================================
   Proper Co. — v2 draft
   Design language: light canvas, serif/sans mixed display,
   mono uppercase UI, notched buttons, halftone pixel art.
   Swap the accent by changing --accent (+ its rgb triplet).
   ========================================================= */

:root {
  --white: #fff;
  --ink: #1c1c1c;
  --ink-80: rgba(28, 28, 28, .8);
  --ink-60: rgba(28, 28, 28, .6);
  --ink-40: rgba(28, 28, 28, .4);
  --line: rgba(28, 28, 28, .1);
  --line-strong: rgba(28, 28, 28, .2);
  --neutral: #f4f4f4;
  --chalk: #f8f8f8;
  --charcoal: #1c1c1c;

  --accent: #4a38f5;
  --accent-rgb: 74, 56, 245;
  --accent-10: rgba(var(--accent-rgb), .1);
  --good: #19a463;
  --bad: #d9534f;

  --serif: "Aleo", Georgia, serif;
  --sans: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Azeret Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --wrap: 1360px;
  --gutter: clamp(16px, 3vw, 40px);
  --section: clamp(96px, 12vw, 168px);
  --notch: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; font-family: var(--mono); font-size: 12px; }
.skip-link:focus { left: 8px; }

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

/* ---------- Type ---------- */
.display {
  margin: 0;
  font-weight: 300;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-align: center;
}
.display .serif { font-family: var(--serif); font-weight: 300; }
.display .sans { font-family: var(--sans); font-weight: 500; letter-spacing: -.045em; }
.display.left { text-align: left; }
.display.small { font-size: clamp(32px, 4vw, 52px); }

.lede {
  max-width: 600px;
  margin: 24px auto 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -.02em;
  color: var(--ink-60);
  text-align: center;
}
.lede.left { margin-left: 0; text-align: left; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 24px;
  font-size: 18px; font-weight: 500; letter-spacing: -.03em;
  color: var(--ink-60);
}
.eyebrow::before { content: ""; width: 14px; height: 6px; background: var(--accent); }
.eyebrow.on-dark { color: rgba(255, 255, 255, .6); }
/* CTA subline: a soft violet light passes across it, left to right, then rests */
.cta-sub { margin: 20px 0 0; font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.035em; line-height: 1.2; }
.shine { color: rgba(255, 255, 255, .62);
  background: linear-gradient(100deg, rgba(255, 255, 255, .62) 38%, #fff 45%, rgb(176, 166, 255) 50%, #fff 55%, rgba(255, 255, 255, .62) 62%) 100% 0 / 250% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  animation: ctaShine 6s cubic-bezier(.45, 0, .2, 1) 1.2s infinite; }
@keyframes ctaShine { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0 0; } }

.mono-label, .tag, .count {
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .06em;
}
.center-head { text-align: center; }

/* ---------- Buttons (notched corner) ---------- */
.btn {
  --bg: var(--ink); --fg: #fff; --bd: var(--ink);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  height: 44px; padding: 0 22px;
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .04em;
  color: var(--fg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch)), calc(100% - var(--notch)) 100%, 0 100%);
  transition: color .2s var(--ease), transform .3s var(--ease);
}
.btn::before, .btn::after {
  content: ""; position: absolute; z-index: -1;
  clip-path: inherit; transition: background .2s var(--ease);
}
.btn::before { inset: 0; background: var(--bd); }
.btn::after {
  inset: 1px; background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--notch) + .5px), calc(100% - var(--notch) + .5px) 100%, 0 100%);
}
.btn:hover { transform: translateY(-1px); }
.btn-dark:hover { --bg: #333; --bd: #333; }
.btn-outline { --bg: #fff; --fg: var(--ink); }
.btn-outline:hover { --bg: var(--neutral); }
.btn-light { --bg: #fff; --fg: var(--ink); --bd: #fff; }
.btn-light:hover { --bg: #e8e8e8; --bd: #e8e8e8; }
.btn-ghost { --bg: var(--charcoal); --fg: #fff; --bd: #fff; }
.btn-ghost:hover { --bg: #2a2a2a; }
.btn-sm { height: 34px; padding: 0 16px; font-size: 12px; --notch: 8px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 40px; }
.btn-row.left { justify-content: flex-start; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; padding: 4px 0; }
.logo img { display: block; height: auto; transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
.logo-mark { width: 27px; transform-origin: 30% 80%; }
.logo-word { width: 113px; }
.logo:hover .logo-mark { transform: rotate(-7deg) translateY(-1px) scale(1.06); }
.logo:hover .logo-word { transform: translateX(3px); }
.logo:active .logo-mark { transform: scale(.92); transition-duration: .15s; }
.nav { display: flex; align-items: center; margin-left: 40px; }
.nav > * { position: relative; }
.nav > * + *::before { content: ""; position: absolute; left: -1px; top: 50%; width: 1px; height: 8px; margin-top: -4px; background: var(--ink-40); }
.nav-link {
  position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 16px; white-space: nowrap;
  font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase;
  transition: color .2s var(--ease);
}
.nav-link::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 12px; height: 2px; margin-left: -6px; background: var(--accent); transform: scaleX(0); transition: transform .3s var(--ease); }
.nav-link:hover, .nav-link.is-active { color: var(--accent); }
.nav-link.is-active::after { transform: scaleX(1); }
.chev { width: 9px; height: 6px; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .3s var(--ease); }

/* Services dropdown */
.drop {
  position: absolute; top: 100%; left: 0; z-index: 10; width: 300px; padding-top: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.drop::before { content: ""; position: absolute; inset: 14px 0 0; background: #fff; border: 1px solid var(--line-strong); box-shadow: 0 16px 40px -12px rgba(28, 28, 28, .18); }
.drop a { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 13px 16px; transition: background .2s var(--ease); }
.drop a + a { border-top: 1px solid var(--line); }
.drop a:hover, .drop a:focus-visible { background: var(--chalk); }
.drop-n { font-family: var(--mono); font-size: 11px; color: var(--ink-40); padding-top: 2px; }
.drop b { display: block; font-size: 14.5px; font-weight: 500; transition: color .2s var(--ease); }
.drop small { display: block; font-size: 13px; color: var(--ink-60); }
.drop a:hover b { color: var(--accent); }
.has-drop:hover .drop, .has-drop:focus-within .drop, .has-drop.is-open .drop { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.has-drop:hover .chev, .has-drop:focus-within .chev, .has-drop.is-open .chev { transform: rotate(180deg); }
.has-drop.is-closed .drop { opacity: 0; visibility: hidden; }

/* Landing on a service card from the dropdown */
.card { scroll-margin-top: 96px; }
.card:target { animation: cardFlash 1.8s var(--ease) .35s; }
@keyframes cardFlash { 0%, 100% { box-shadow: inset 0 0 0 0 var(--accent); background: transparent; } 20% { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-10); } }
.header-meta { margin-left: auto; }
.status { display: inline-flex; white-space: nowrap; transition: color .2s var(--ease); align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; color: var(--ink-60); }
/* Status light: a hard on/off blink like a recording LED, not a soft glow */
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #e5372b; border: 1.5px solid var(--ink); flex-shrink: 0; animation: rec-blink 1.4s steps(1, end) infinite; }
@keyframes rec-blink { 0% { background: #e5372b; } 62% { background: transparent; } }
.status .arrow { display: inline-block; font-family: var(--sans); font-size: 14px; transition: transform .3s var(--ease); }
.status:hover { color: var(--ink); }
.status:hover .arrow { transform: translateX(4px); }
.header-cta { display: flex; gap: 8px; }
.menu-toggle { display: none; width: 40px; height: 40px; position: relative; }
.menu-toggle span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-toggle span:first-child { top: 16px; } .menu-toggle span:last-child { top: 23px; }
.menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(56px, 7vw, 96px); overflow: hidden; }
.hero-copy { text-align: center; position: relative; z-index: 2; }
.hero .display { font-size: clamp(44px, 6.4vw, 88px); }
.hero .lede { max-width: 700px; }
.hero-stage { position: relative; z-index: 1; margin-top: clamp(150px, 17vw, 260px); padding: 0 var(--gutter); }
/* ASCII mountain: drawn by script.js from assets/mountain-map.js */
.hero > .mountain { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.hero > .mountain.is-ready { opacity: 1; }
.hero .app-window { box-shadow: 0 -24px 80px -10px rgba(255, 255, 255, .95), 0 30px 80px -30px rgba(0, 0, 0, .25); }

/* App window mock */
.app-window {
  position: relative; z-index: 2;
  max-width: 1040px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line-strong); border-bottom: 0;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .25);
  overflow: hidden;
  font-size: 13.5px;
}
.win-bar { position: relative; display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; background: var(--chalk); border-bottom: 1px solid var(--line); }
.win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.win-bar i:nth-child(2) { background: #febc2e; } .win-bar i:nth-child(3) { background: #28c840; }
.win-bar span { position: absolute; left: 0; right: 0; text-align: center; font-size: 13px; color: var(--ink-60); pointer-events: none; }
.mono { font-family: var(--mono); font-size: 12px; }

/* Hero dashboard (Summit Roofing example). Real HTML so text stays sharp at any size. */
.app-window.db { max-width: 1200px; font-size: 14px; color: var(--ink); text-align: left; }
/* Hero crop: show the top ~2/3 and fade the cut so it reads as a window running off the fold */
.hero .app-window.db { max-height: 672px; }
.hero .app-window.db::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; pointer-events: none; background: linear-gradient(rgba(255, 255, 255, 0), var(--white)); }
.db svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.db h4 { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: -.02em; }
.db small { display: block; font-size: 12.5px; color: var(--ink-60); }
.db-body { display: flex; background: #fafafa; }

.db-side { width: 212px; flex-shrink: 0; display: flex; flex-direction: column; padding: 20px 12px 16px; background: #fff; border-right: 1px solid var(--line); }
.db-brand { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-bottom: 20px; }
.db-brand svg { width: 52px; height: 32px; stroke: none; }
.db-brand b { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.db-nav { display: grid; gap: 2px; }
.db-nav span { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 7px; color: var(--ink-80); }
.db-nav span svg { color: var(--ink-60); }
.db-nav span.on { background: var(--neutral); color: var(--ink); font-weight: 600; }
.db-nav span.on svg { color: var(--ink); }
.db-nav em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; min-width: 20px; padding: 1px 6px; text-align: center; border-radius: 5px; background: var(--neutral); border: 1px solid var(--line); }
.db-nav hr { width: 100%; border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.db-me { display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 16px 8px 0; }
.db-me > b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: #fff; font-size: 12px; }
.db-me span { font-weight: 600; font-size: 14px; }

.db-main { flex: 1; min-width: 0; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; }
.db-top { display: flex; gap: 12px; justify-content: space-between; }
.db-search, .db-range, .db-select { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--ink-60); }
.db-search { flex: 1; max-width: 460px; }
.db-search kbd { margin-left: auto; font-family: var(--mono); font-size: 11px; padding: 2px 6px; border: 1px solid var(--line-strong); border-radius: 4px; }
.db-range { color: var(--ink); }
.db-select { height: 32px; font-size: 13px; color: var(--ink-80); }
.db-select svg, .db-range svg:last-child { width: 15px; height: 15px; }

.db-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.db-kpi, .db-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.db-kpi { display: flex; gap: 12px; padding: 16px; }
.db-kpi > svg { width: 22px; height: 22px; margin-top: 1px; color: var(--ink-80); }
.db-kpi span { display: block; font-size: 13.5px; color: var(--ink-80); }
.db-kpi b { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 2px; font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.db-kpi em { display: inline-flex; align-items: center; gap: 2px; font-style: normal; font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--good); }
.db-kpi em svg { width: 14px; height: 14px; stroke-width: 2.4; }

.db-row { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.db-card { padding: 16px; }
.db-card header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.db-link { white-space: nowrap; flex-shrink: 0; display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--accent); }
.db-link svg { width: 15px; height: 15px; }

.db-chevrons { display: flex; gap: 3px; height: 26px; }
.db-chevrons i { flex: 1; background: var(--c); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%, 12px 50%); transform-origin: left; transform: scaleX(0); transition: transform .7s var(--ease); }
.db-chevrons i:first-child { clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); border-radius: 4px 0 0 4px; }
.in .db-chevrons i { transform: none; }
.in .db-chevrons i:nth-child(2) { transition-delay: .1s; } .in .db-chevrons i:nth-child(3) { transition-delay: .2s; }
.in .db-chevrons i:nth-child(4) { transition-delay: .3s; } .in .db-chevrons i:nth-child(5) { transition-delay: .4s; }
.db-stages { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 16px; }
.db-stages div { padding: 0 12px; }
.db-stages div:first-child { padding-left: 4px; }
.db-stages div + div { border-left: 1px solid var(--line); }
.db-stages span { font-size: 13.5px; font-weight: 600; }
.db-stages b { display: block; margin: 6px 0 2px; font-size: 26px; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.db-stages small { font-size: 13px; }

.db-conv-body { display: flex; align-items: center; gap: 20px; }
.db-ring { position: relative; width: 132px; height: 132px; flex-shrink: 0; }
.db-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.db-ring circle { fill: none; stroke: var(--neutral); stroke-width: 4.5; }
.db-ring .arc { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 1.2s var(--ease) .3s; }
.in .db-ring .arc { stroke-dasharray: var(--p) 100; }
.db-ring div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.db-ring div b { font-size: 26px; font-weight: 600; letter-spacing: -.03em; }
.db-ring div span { font-size: 12.5px; color: var(--ink-60); }
.db-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13.5px; color: var(--ink-80); }
.db-legend li { display: flex; align-items: center; gap: 8px; }
.db-legend li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.db-legend b { min-width: 46px; color: var(--ink); font-variant-numeric: tabular-nums; }

.db-tabs { display: flex; gap: 22px; margin: -2px -16px 0; padding: 0 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink-60); white-space: nowrap; overflow: hidden; }
.db-tabs span { padding: 0 0 10px; }
.db-tabs .on { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--ink); }
.db-tr { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1.1fr); align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.db-tr:last-child { border-bottom: 0; padding-bottom: 0; }
.db-th { padding: 10px 0 8px; font-size: 12.5px; color: var(--ink-60); }
.db-tr > span { display: flex; align-items: center; gap: 8px; min-width: 0; white-space: nowrap; }
.db-tr > span:first-child > span { font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.db-tr > span:last-child svg { width: 16px; height: 16px; color: var(--ink-60); }
.db-av { width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: hsl(var(--h) 55% 38%); background: hsl(var(--h) 80% 94%); }
.db-st { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 6px; font-style: normal; font-size: 12.5px; font-weight: 500; color: hsl(var(--h) 60% 34%); background: hsl(var(--h) 85% 95%); }
.db-st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: hsl(var(--h) 75% 55%); }
.db-tr:not(.db-th) { opacity: 0; transform: translateY(6px); }
.in .db-tr:not(.db-th) { animation: rowIn .6s var(--ease) forwards; }
.in .db-tr:nth-child(3) { animation-delay: .1s; } .in .db-tr:nth-child(4) { animation-delay: .2s; } .in .db-tr:nth-child(5) { animation-delay: .3s; }
.in .db-tr:nth-child(6) { animation-delay: .4s; } .in .db-tr:nth-child(7) { animation-delay: .5s; }

.db-row > *, .db-stack > * { min-width: 0; }
.db-stack { display: grid; gap: 14px; }
.db-live { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--good); }
.db-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--good); }
.db-feed, .db-auto ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.db-feed li, .db-auto li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.db-feed li:first-child, .db-auto li:first-child { border-top: 0; padding-top: 0; }
.db-feed li:last-child, .db-auto li:last-child { padding-bottom: 0; }
.db-feed li > svg, .db-auto li > svg { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--neutral); color: var(--ink-80); }
.db-feed li:nth-child(2) > svg { background: var(--accent-10); color: var(--accent); }
.db-feed li:nth-child(3) > svg { background: #e3f6ec; color: var(--good); }
.db-feed div, .db-auto div { flex: 1; min-width: 0; }
.db-feed b, .db-auto b { display: block; font-size: 13.5px; font-weight: 600; }
.db-feed li span, .db-auto li span { display: block; font-size: 12.5px; color: var(--ink-60); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-feed time { align-self: flex-start; font-size: 12px; color: var(--ink-40); }
.db-toggle { position: relative; width: 36px; height: 20px; flex-shrink: 0; border-radius: 10px; background: var(--good); }
.db-toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); }

@media (max-width: 1180px) {
  .db-side { display: none; }
}
@media (max-width: 960px) {
  .db-row { grid-template-columns: minmax(0, 1fr); }
  .db-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .app-window.db { max-height: 1230px; }
}
@media (max-width: 640px) {
  .app-window.db { font-size: 13px; }
  .db-main { padding: 10px; gap: 10px; }
  .db-range, .db-search kbd { display: none; }
  .db-kpis { gap: 10px; }
  .db-kpi { padding: 12px; } .db-kpi > svg { display: none; }
  .db-kpi b { font-size: 22px; flex-wrap: wrap; gap: 4px 8px; }
  .db-stages { grid-template-columns: repeat(3, 1fr); row-gap: 14px; }
  .db-stages div:nth-child(4) { border-left: 0; padding-left: 4px; }
  .db-chevrons { height: 18px; }
  .db-conv-body { gap: 14px; } .db-ring { width: 108px; height: 108px; }
  .db-tr { grid-template-columns: minmax(0, 1fr) auto; }
  .db-tr > span:nth-child(3), .db-conv, .db-stack, .db-tr:nth-child(n+6) { display: none; }
  .db-kpi small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .db-select { display: none; }
  .db-tabs { gap: 16px; }
  .hero .app-window.db { max-height: 675px; }
  .hero .app-window.db::after { height: 110px; }
}
@keyframes rowIn { to { opacity: 1; transform: none; } }

/* Hero dashboard reveal, played once on load (the hero's .reveal gets .in on first frame).
   The window resolves from blur as it rises, just after the headline; then its parts arrive
   in reading order (sidebar, search, KPIs, cards), each lifting slightly out of a softer blur,
   and the in-card details (pipeline chevrons, close-rate arc, lead rows) play once their card
   has landed. Only opacity, transform and filter animate. */
.hero .db.reveal { transform: translateY(48px) scale(.975); filter: blur(16px);
  transition: opacity 1.1s var(--ease) .35s, transform 1.7s var(--ease) .35s, filter 1.4s var(--ease) .35s; }
.hero .db.reveal.in { transform: none; filter: none; }
.db-side { --i: 0; } .db-top { --i: 1; }
.db-kpi:nth-child(1) { --i: 2; } .db-kpi:nth-child(2) { --i: 3; } .db-kpi:nth-child(3) { --i: 4; } .db-kpi:nth-child(4) { --i: 5; }
.db-pipe { --i: 6; } .db-conv { --i: 7; } .db-leads { --i: 8; } .db-ai { --i: 9; } .db-auto { --i: 10; }
.hero .db.in :is(.db-side, .db-top, .db-kpi, .db-card) { animation: dbIn 1.1s var(--ease) calc(.75s + var(--i) * 75ms) backwards; }
@keyframes dbIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.hero .db.in .db-chevrons i:nth-child(n) { transition-delay: calc(1.35s + (var(--k) * .1s)); }
.db-chevrons i:nth-child(1) { --k: 0; } .db-chevrons i:nth-child(2) { --k: 1; } .db-chevrons i:nth-child(3) { --k: 2; } .db-chevrons i:nth-child(4) { --k: 3; } .db-chevrons i:nth-child(5) { --k: 4; }
.hero .db.in .db-ring .arc { transition-delay: 1.55s; }
.hero .db.in .db-tr:nth-child(n) { animation-delay: calc(1.5s + (var(--r, 0) * 90ms)); }
.db-tr:nth-child(3) { --r: 1; } .db-tr:nth-child(4) { --r: 2; } .db-tr:nth-child(5) { --r: 3; } .db-tr:nth-child(6) { --r: 4; } .db-tr:nth-child(7) { --r: 5; }

.process .display, .problem .display, .demo .display, .founders .display { font-size: clamp(40px, 4.6vw, 64px); }

/* ---------- Problem: the process layout, mirrored (stage on the left, notch facing the copy) ---------- */
.problem-grid { grid-template-columns: 1.1fr 1fr; }
.problem-grid .problem-stage { order: -1; clip-path: polygon(0 0, 100% 0, 100% 10%, calc(100% - 28px) 14%, calc(100% - 28px) 40%, 100% 46%, 100% 100%, 0 100%); }
.problem .panel-h { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.leak-viz { padding-top: 14px; }
.tag { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-80); }
.tag::before { content: ""; width: 7px; height: 7px; background: var(--accent); }
.count { color: var(--ink-40); letter-spacing: .1em; }
.card h3 { margin: 18px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.04em; line-height: 1.2; }
.leak-viz > div { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px; font-size: 14px; }
.call-missed { display: flex; align-items: center; gap: 10px; }
.call-missed b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #fde8e7; color: var(--bad); font-size: 11px; }
.call-missed em { margin-left: auto; font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--ink-40); }
.timer { display: flex; justify-content: space-between; align-items: baseline; }
.timer span { color: var(--ink-60); }
.timer b { font-size: 28px; font-weight: 500; letter-spacing: -.04em; color: var(--bad); }
.quote-cold { display: grid; gap: 4px; }
.quote-cold em { font-style: normal; color: var(--ink-40); font-size: 13px; }
.temp { height: 4px; border-radius: 2px; background: var(--neutral); margin-top: 8px; overflow: hidden; }
.temp i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #f2994a, #8fb8ff); transform-origin: left; transform: scaleX(1); transition: transform 2.4s var(--ease) .4s; }
.panel.is-active .temp i { transform: scaleX(.15); }

/* ---------- Services (feature shell) ---------- */

.feature-shell { margin-top: 72px; border: 1px solid var(--line-strong); background: var(--neutral); padding: 20px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); margin: -20px; }
.card { padding: 20px; display: flex; flex-direction: column; }
.card + .card { border-left: 1px solid var(--line-strong); }
.card-viz { height: 170px; border: 1px solid var(--line-strong); border-radius: 6px; background: #fff; margin-bottom: 20px; overflow: hidden; position: relative; }
.card-meta { display: flex; justify-content: space-between; }
.card h3 { margin-top: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.checks { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 11px 0 11px 28px; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink-80); }
.checks li:last-child { border-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  border: 1.5px solid var(--accent); border-radius: 50%;
  background: linear-gradient(var(--accent), var(--accent)) center / 0 0 no-repeat;
}
.checks li::after { content: ""; position: absolute; left: 7px; top: 50%; width: 3px; height: 6px; margin-top: -5px; border: solid var(--accent); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.checks.tight li { font-size: 14px; padding: 9px 0 9px 26px; }

/* card mini visuals */
.viz-crm { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; }
.lane { background: var(--chalk); border-radius: 4px; padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.lane b { font-size: 11px; font-weight: 500; color: var(--ink-60); }
.lane i { height: 22px; border-radius: 3px; background: #fff; border: 1px solid var(--line); opacity: 0; transform: translateY(8px); }
.in .lane i { animation: rowIn .5s var(--ease) forwards; }
.in .lane:nth-child(2) i { animation-delay: .2s; } .in .lane:nth-child(3) i { animation-delay: .4s; }
.lane:nth-child(3) i { border-left: 2px solid var(--good); }
.viz-web .browser { display: flex; gap: 5px; padding: 9px 10px; border-bottom: 1px solid var(--line); }
.viz-web .browser i { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
.site-lines { padding: 18px; display: grid; gap: 9px; }
.site-lines b { width: 70%; height: 14px; background: var(--ink); border-radius: 2px; }
.site-lines span { width: 90%; height: 7px; background: var(--neutral); border-radius: 2px; }
.site-lines span.s { width: 60%; }
.site-lines em { justify-self: start; margin-top: 6px; font-style: normal; font-family: var(--mono); font-size: 10px; text-transform: uppercase; background: var(--accent); color: #fff; padding: 6px 10px; animation: nudge 2.4s var(--ease) infinite; }
@keyframes nudge { 0%, 70%, 100% { transform: none; } 80% { transform: translateX(4px); } 90% { transform: translateX(-2px); } }
.viz-ai { display: grid; place-items: center; background: radial-gradient(circle at 1px 1px, var(--line-strong) 1px, transparent 0) 0 0 / 12px 12px, #fff; }
.flow { display: flex; flex-direction: column; align-items: center; gap: 0; }
.flow span { font-size: 12px; padding: 6px 12px; background: #fff; border: 1px solid var(--line-strong); border-radius: 4px; }
.flow span.hl { border-color: var(--accent); color: var(--accent); background: var(--accent-10); }
.flow i { width: 1px; height: 14px; background: var(--accent); transform-origin: top; transform: scaleY(0); transition: transform .5s var(--ease); }
.in .flow i { transform: scaleY(1); } .in .flow i:nth-of-type(2) { transition-delay: .4s; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 72px; }
/* Each pillar is a two-faced card. JS arms it turned away (branded back toward the viewer),
   flips it into place once it's well in view, and turns it away again as it leaves.
   While facing forward it tilts gently with the cursor. */
.pillar { position: relative; display: flex; perspective: 1600px; transition: transform .9s var(--ease); }
.pillar.is-tilting { transform: perspective(1400px) rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg)); transition-duration: .25s; }
.pillar:nth-child(2) { margin-top: 110px; } .pillar:nth-child(3) { margin-top: 220px; }
.pillar-card { position: relative; flex: 1; display: flex; transform-style: preserve-3d; }
.pillar-face { -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.pillar-front {
  position: relative; flex: 1; padding: 24px; min-height: 360px; overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line-strong);
}
.pillar h3 { margin: 0; padding-bottom: 18px; border-bottom: 1px dashed var(--line-strong); font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.pillar-viz { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 32px 0; }
.pillar-viz .big { font-family: var(--serif); font-weight: 300; font-size: 96px; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.pillar-viz small { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--ink-40); margin-top: 8px; }
.pillar p { margin: 0; color: var(--ink-60); }

.pillar-back {
  position: absolute; inset: 0; transform: rotateY(180deg); padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  color: rgba(255, 255, 255, .6); font-family: var(--mono); font-size: 12px; text-transform: uppercase;
  background:
    radial-gradient(circle at 50% 46%, rgba(var(--accent-rgb), .42), transparent 58%),
    radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1.4px) 0 0 / 14px 14px,
    var(--charcoal);
  border: 1px solid #000;
}
.pillar-back::before { /* fine accent frame, inset like a printed card */
  content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255, 255, 255, .08); pointer-events: none;
}
.pb-top, .pb-foot { position: relative; display: flex; justify-content: space-between; align-items: baseline; }
.pb-foot b { font-family: var(--serif); font-weight: 300; font-size: 28px; letter-spacing: -.03em; text-transform: none; color: #fff; }
.pb-mark { position: absolute; left: 50%; top: 46%; width: 68px; height: auto; transform: translate(-50%, -50%); filter: invert(1) drop-shadow(0 0 24px rgba(var(--accent-rgb), .9)); }

/* Light falls across the front as it turns toward the viewer */
.pillar-front::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .85) 47%, rgba(var(--accent-rgb), .07) 53%, transparent 64%) no-repeat;
  background-size: 260% 100%; background-position: 130% 0;
}
.pillar::after { /* soft contact shadow while the card is in the air */
  content: ""; position: absolute; left: 8%; right: 8%; bottom: -26px; height: 40px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(28, 28, 28, .22), transparent); filter: blur(6px);
  opacity: 0; pointer-events: none;
}

.is-armed .pillar-card { transform: translate3d(0, 64px, -160px) rotateX(16deg) rotateY(-180deg); }
.is-flipping .pillar-card { animation: pillarFlip 1.9s both; }
.is-flipping .pillar-front::after { animation: pillarSheen 1.9s both; }
.is-flipping::after { animation: pillarShadow 1.9s both; }
@keyframes pillarFlip {
  0%   { transform: translate3d(0, 64px, -160px) rotateX(16deg) rotateY(-180deg); animation-timing-function: cubic-bezier(.55, 0, .25, 1); }
  58%  { transform: translate3d(0, -8px, 40px) rotateX(-3deg) rotateY(7deg); animation-timing-function: cubic-bezier(.35, 0, .3, 1); }
  80%  { transform: translate3d(0, 2px, 0) rotateX(.6deg) rotateY(-1.6deg); animation-timing-function: cubic-bezier(.4, 0, .4, 1); }
  100% { transform: none; }
}
@keyframes pillarSheen {
  0%, 38% { opacity: 0; background-position: 130% 0; }
  50%     { opacity: 1; }
  92%     { opacity: 0; background-position: -30% 0; }
  100%    { opacity: 0; background-position: -30% 0; }
}
@keyframes pillarShadow {
  0%   { opacity: 0; transform: scale(.7); }
  55%  { opacity: 1; transform: scale(1.06); }
  100% { opacity: 0; transform: scale(1); }
}

/* ---------- Process (sticky steps) ---------- */
.process-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.steps { position: relative; margin-top: 48px; display: grid; gap: 8px; padding-left: 64px; }
.step-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--line); }
.step-rail i { display: block; width: 100%; height: calc(100% / var(--n, 4)); background: var(--accent); transition: transform .6s var(--ease); }
.step { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; text-align: left; padding: 12px 0; opacity: .45; transition: opacity .3s var(--ease); position: relative; }
.step.is-active { opacity: 1; }
.step-n { position: absolute; left: -48px; top: 14px; font-family: var(--mono); font-size: 12px; color: var(--accent); }
.step b { grid-column: 1 / -1; font-size: 18px; font-weight: 500; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.step b::before { content: ""; width: 22px; height: 22px; border-radius: 4px; background: var(--accent); box-shadow: inset 0 0 0 6px var(--accent), inset 0 0 0 8px #fff; }
.step > span:last-child { grid-column: 1 / -1; padding-left: 34px; color: var(--ink-60); font-size: 15.5px; }
.process-stage { position: relative; aspect-ratio: 1 / 1.02; background: var(--charcoal); overflow: hidden; display: grid; place-items: center;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 0 46%, 28px 40%, 28px 14%, 0 10%); }
.process-stage .halftone { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel { position: absolute; width: min(78%, 440px); background: #fff; border: 1px solid #fff; border-radius: 6px; padding: 18px; box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .35), 0 30px 60px -20px rgba(0, 0, 0, .6);
  opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.panel.is-active { opacity: 1; transform: none; pointer-events: auto; }
.panel-h { font-size: 13px; font-weight: 600; padding-bottom: 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }
.audit-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-80); }
.audit-row:last-child { border-bottom: 0; }
.audit-row b { font-weight: 600; } .bad { color: var(--bad); } .good { color: var(--good); }
.wf { display: flex; flex-direction: column; align-items: center; padding-top: 10px; }
.wf .node { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 5px; font-size: 13.5px; }
.wf .node.hl { border-color: var(--accent); background: var(--accent-10); color: var(--accent); }
.wf i { width: 1px; height: 16px; background: var(--accent); }

/* ---------- Demo ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
/* Demo line widget: a slow light travels the purple hairline border (a rotating conic layer
   under a 1px-inset white face, so it's transform-only), with a soft violet halo around it */
.demo-number {
  position: relative; isolation: isolate; overflow: hidden; max-width: 540px; margin-top: 36px;
  padding: 20px 24px 18px; border-radius: 8px; display: grid; gap: 6px;
  background: rgba(var(--accent-rgb), .3);
  box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .035), 0 0 28px rgba(var(--accent-rgb), .14), 0 22px 48px -24px rgba(var(--accent-rgb), .45);
  transition: box-shadow .5s var(--ease);
}
.demo-number::before {
  content: ""; position: absolute; z-index: -2; left: 50%; top: 50%; width: 200%; aspect-ratio: 1;
  translate: -50% -50%;
  background: conic-gradient(from 0deg, transparent 0 62%, rgba(var(--accent-rgb), .5) 74%, rgb(176, 166, 255) 80%, #fff 82%, rgba(var(--accent-rgb), .5) 86%, transparent 94%);
  animation: dnOrbit 7s linear infinite;
}
.demo-number::after {
  content: ""; position: absolute; z-index: -1; inset: 1px; border-radius: 7px;
  background: radial-gradient(120% 90% at 0% 0%, rgba(var(--accent-rgb), .07), transparent 55%), #fff;
}
@keyframes dnOrbit { to { rotate: 1turn; } }
.demo-number:hover { box-shadow: 0 0 0 5px rgba(var(--accent-rgb), .06), 0 0 36px rgba(var(--accent-rgb), .22), 0 26px 56px -24px rgba(var(--accent-rgb), .55); }
.dn-head, .dn-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dn-live.mono-label { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 99px; background: rgba(25, 164, 99, .08); color: var(--good); }
.dn-live i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--good); }
.dn-live i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--good); animation: dnPing 2s var(--ease) infinite; }
@keyframes dnPing { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
.dn-num { justify-self: start; margin: 4px 0 2px; font-family: var(--serif); font-weight: 300; font-size: clamp(32px, 3.6vw, 48px); letter-spacing: -.03em; white-space: nowrap; transition: color .2s var(--ease); }
.dn-num::before { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole widget dials */
.demo-number:hover .dn-num { color: var(--accent); }
.dn-foot { padding-top: 12px; border-top: 1px solid var(--line); }
.dn-foot small { color: var(--ink-40); font-size: 13px; }
.dn-cta.mono-label { flex: none; color: var(--accent); transition: transform .3s var(--ease); }
.demo-number:hover .dn-cta { transform: translateX(3px); }
.dn-num:focus-visible { outline: none; }
.demo-number:has(.dn-num:focus-visible) { outline: 2px solid var(--accent); outline-offset: 4px; }
.mono-label { color: var(--ink-60); }
.call { border: 1px solid var(--line-strong); background: var(--neutral); padding: 16px; }
.call-head { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; font-size: 14px; font-weight: 500; }
.call-head em { margin-left: auto; font-style: normal; color: var(--ink-40); }
.rec { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.wave { display: flex; align-items: center; justify-content: space-between; gap: 3px; height: 48px; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.wave i { flex: 1; max-width: 6px; height: 20%; background: var(--accent); border-radius: 2px; animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.6s; } .wave i:nth-child(4n) { animation-delay: -.9s; } .wave i:nth-child(5n) { animation-delay: -.45s; }
@keyframes wave { 50% { height: 80%; } }
.msgs { display: grid; gap: 8px; margin-top: 12px; }
.msg { margin: 0; padding: 10px 14px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 15px; max-width: 88%; opacity: 0; transform: translateY(8px); }
.msg b { display: block; font-family: var(--mono); font-size: 10px; font-weight: 500; text-transform: uppercase; color: var(--ink-40); margin-bottom: 2px; }
.msg.ai { justify-self: start; } .msg:not(.ai):not(.sys) { justify-self: end; background: var(--ink); color: #fff; border-color: var(--ink); }
.msg:not(.ai):not(.sys) b { color: rgba(255, 255, 255, .5); }
.msg.sys { justify-self: center; max-width: none; background: var(--accent-10); border-color: transparent; color: var(--accent); font-family: var(--mono); font-size: 11px; text-transform: uppercase; }
.in .msg { animation: rowIn .5s var(--ease) forwards; }
.in .msg:nth-child(2) { animation-delay: .7s; } .in .msg:nth-child(3) { animation-delay: 1.4s; } .in .msg:nth-child(4) { animation-delay: 2.1s; } .in .msg:nth-child(5) { animation-delay: 2.6s; } .in .msg:nth-child(6) { animation-delay: 3.3s; }

/* ---------- Serve ---------- */
/* Accordion: one row open at a time; rows expand via grid-template-rows 0fr -> 1fr */
.serve-acc { max-width: 1120px; margin: 72px auto 0; border-top: 1px solid var(--line-strong); }
.acc-item { position: relative; border-bottom: 1px solid var(--line-strong); transition: background .3s ease-in-out; }
.acc-item:hover { background: rgba(var(--accent-rgb), .025); }
.acc-item::before { content: ""; position: absolute; left: 0; top: -1px; bottom: -1px; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .3s ease-in-out; }
.acc-item.is-open::before { transform: scaleY(1); }
.acc-h { margin: 0; font: inherit; }
.acc-btn {
  width: 100%; display: grid; grid-template-columns: 72px 1fr auto 36px; align-items: center; gap: 24px;
  padding: 30px 24px; margin: 0; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.acc-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.acc-n { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; color: var(--ink-40); transition: color .3s ease-in-out; }
.acc-t { font-size: clamp(22px, 2.6vw, 34px); font-weight: 500; letter-spacing: -.04em; line-height: 1.15; color: var(--ink-80); transition: color .3s ease-in-out; }
.acc-c { font-family: var(--mono); font-size: 12px; text-transform: uppercase; color: var(--ink-40); }
.acc-i { position: relative; width: 36px; height: 36px; border: 1px solid var(--line-strong); transition: border-color .3s ease-in-out; }
.acc-i::before, .acc-i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; margin: -.5px 0 0 -6px; background: var(--ink); transition: transform .3s ease-in-out, background .3s ease-in-out; }
.acc-i::after { transform: rotate(90deg); }
.acc-btn:hover .acc-n, .is-open .acc-n { color: var(--accent); }
.acc-btn:hover .acc-t, .is-open .acc-t { color: var(--ink); }
.acc-btn:hover .acc-i, .is-open .acc-i { border-color: rgba(var(--accent-rgb), .45); }
.is-open .acc-i::before, .is-open .acc-i::after { background: var(--accent); }
.is-open .acc-i::after { transform: rotate(0); }
.acc-p { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease-in-out; }
.is-open .acc-p { grid-template-rows: 1fr; }
.acc-inner { min-height: 0; overflow: hidden; }
.acc-list { display: flex; flex-wrap: wrap; row-gap: 12px; margin: 0; padding: 0 24px 34px 120px; list-style: none; }
.acc-list li { display: flex; align-items: center; font-size: 17px; color: var(--ink-80); opacity: 0; transition: opacity .3s ease-in-out; }
.acc-list li + li::before { content: ""; width: 1px; height: 14px; margin: 0 20px; background: var(--line-strong); }
.is-open .acc-list li { opacity: 1; transition-delay: calc(.08s + var(--i) * 30ms); }
.serve-note { max-width: 520px; margin: 40px auto 0; text-align: center; font-size: 15px; line-height: 1.5; color: var(--ink-60); }

/* ---------- Founders ---------- */
.founders { padding-bottom: var(--section); }
.founders-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 8vw, 140px); align-items: start; }
.founders-copy .lede { max-width: 500px; margin-bottom: 40px; }
/* The offer: an editorial figure, not a promo banner. Purple is held to the % sign and the numerals. */
.offer { padding-top: 8px; }
.offer-figure { display: flex; align-items: baseline; gap: 18px; margin: 0; line-height: .82; }
.offer-num { font-family: var(--serif); font-weight: 300; font-size: clamp(120px, 15vw, 216px); letter-spacing: -.06em; }
.offer-pct { color: var(--accent); font-size: .62em; margin-left: .04em; letter-spacing: 0; }
.offer-off { font-weight: 600; font-size: clamp(28px, 3.2vw, 44px); letter-spacing: -.04em; text-transform: uppercase; }
.offer-label { margin: 28px 0 0; font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; letter-spacing: -.03em; }
.offer-note { margin: 8px 0 0; font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .02em; color: var(--ink-40); max-width: 420px; line-height: 1.6; }
.offer-list { margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.offer-list li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.offer-list li:nth-child(2) { transition-delay: .08s; } .offer-list li:nth-child(3) { transition-delay: .16s; }
.offer-n { font-family: var(--mono); font-size: 12px; color: var(--accent); padding-top: 5px; }
.offer-list b { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.offer-list p { margin: 6px 0 0; color: var(--ink-60); font-size: 15.5px; max-width: 460px; }

/* ---------- Dark section ---------- */
.dark { position: relative; background: var(--charcoal); color: #fff; padding: var(--section) 0 clamp(96px, 13vw, 200px); overflow: hidden; }
.dark > .halftone { position: absolute; top: 0; right: 0; width: 100%; height: 1260px; opacity: .9; }
.dark-inner { position: relative; z-index: 1; }
.faq { max-width: 900px; margin: 96px auto 0; }
.faq details { border-top: 1px solid rgba(255, 255, 255, .2); }
.faq details:last-child { border-bottom: 1px solid rgba(255, 255, 255, .2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 56px; padding: 32px 0; font-size: clamp(20px, 2.4vw, 32px); font-weight: 500; letter-spacing: -.04em; color: rgba(255, 255, 255, .6); transition: color .3s var(--ease); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover, .faq details[open] summary { color: #fff; }
.faq-mark { width: 14px; height: 9px; border: 1px solid currentColor; flex-shrink: 0; transition: background .3s var(--ease); }
.faq details[open] .faq-mark { background: var(--accent); border-color: var(--accent); }
.faq summary i { position: relative; margin-left: auto; width: 36px; height: 36px; border: 1px solid rgba(255, 255, 255, .5); flex-shrink: 0; transition: transform .4s var(--ease), border-color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; margin: -.5px 0 0 -6px; background: #fff; }
.faq summary i::after { transform: rotate(90deg); transition: transform .4s var(--ease); }
.faq details[open] summary i::after { transform: rotate(0); }
.faq-a { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 52px 32px 70px; color: rgba(255, 255, 255, .6); font-size: 18px; line-height: 1.5; max-width: 760px; }

/* contact */
.contact { position: relative; z-index: 1; margin-top: var(--section); }
.contact-card { position: relative; padding: clamp(10px, 1.4vw, 20px); background: #fff; color: var(--ink); }
/* corner ticks, the same "+" detailing as the footer columns */
.contact-card::before, .contact-card::after { content: "+"; position: absolute; z-index: 1; color: var(--accent); font-size: 14px; line-height: 1; pointer-events: none; }
.contact-card::before { top: -7px; left: -4px; } .contact-card::after { right: -4px; bottom: -7px; }
/* Cal.com inline embed: a skeleton holds the space while it loads, then the scheduler rises in */
.cal-embed { position: relative; width: 100%; min-height: 600px; transition: min-height .5s var(--ease); }
.cal-embed.is-ready { min-height: 0; }
.cal-embed iframe { display: block; width: 100% !important; opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.cal-embed.is-ready iframe { opacity: 1; transform: none; }
.cal-skel { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1.6fr 1fr; transition: opacity .5s var(--ease); }
.cal-skel i { position: relative; overflow: hidden; border-left: 1px solid var(--line); background:
  linear-gradient(var(--chalk), var(--chalk)) 28px 32px / 40% 14px no-repeat,
  linear-gradient(var(--chalk), var(--chalk)) 28px 60px / 64% 22px no-repeat,
  repeating-linear-gradient(transparent 0 104px, var(--chalk) 104px 148px) 28px 0 / calc(100% - 56px) 100% no-repeat; }
.cal-skel i:first-child { border-left: 0; }
.cal-skel i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .8) 50%, transparent 70%); transform: translateX(-100%); animation: calShimmer 1.6s var(--ease) infinite; }
@keyframes calShimmer { to { transform: translateX(100%); } }
.cal-fallback { position: absolute; left: 0; right: 0; bottom: 24px; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 14px; margin: 0; transition: opacity .4s var(--ease); }
.cal-fallback a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.cal-embed.is-ready .cal-skel, .cal-embed.is-ready .cal-fallback { opacity: 0; pointer-events: none; }

/* footer */
.footer { position: relative; z-index: 1; margin-top: 16px; padding: 0 var(--gutter); }
.footer-card { position: relative; z-index: 1; max-width: calc(var(--wrap) - var(--gutter) * 2); margin: 0 auto; background: #fff; color: var(--ink); padding: clamp(32px, 5vw, 64px) clamp(24px, 6vw, 80px) 32px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 40px; }
.foot-col { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 0 24px 40px 0; }
.foot-col + .foot-col { padding-left: 32px; border-left: 1px solid var(--line); }
.foot-col + .foot-col::before, .foot-col + .foot-col::after { content: "+"; position: absolute; left: -5px; color: var(--accent); font-size: 14px; line-height: 1; }
.foot-col + .foot-col::before { top: -8px; } .foot-col + .foot-col::after { bottom: -6px; }
.foot-col b { font-weight: 500; margin-bottom: 6px; }
.foot-col a:not(.btn) { color: var(--ink-80); transition: color .2s var(--ease); }
.foot-col a:not(.btn):hover { color: var(--accent); }
.foot-col .btn { margin-top: 12px; }
.foot-col .btn:first-child { margin-top: 0; }
.foot-col .btn + .btn { margin-top: 2px; }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
/* ASCII wordmark: spans the full width behind the contact and footer cards, rising from the
   page bottom to two-thirds up the contact card; script.js sets its height */
.footer-word { position: absolute; left: 0; bottom: 0; width: 100%; height: 0; pointer-events: none; opacity: 0; transition: opacity 1.6s var(--ease); }
.footer-word.is-ready { opacity: 1; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1340px) {
  .nav { margin-left: 32px; }
  .header-meta { display: none; }
  .header-cta { margin-left: auto; }
}
@media (max-width: 900px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .menu-open .nav { display: flex; flex-direction: column; align-items: flex-start; position: absolute; top: 64px; left: 0; right: 0; margin: 0; padding: 16px var(--gutter) 24px; background: #fff; border-bottom: 1px solid var(--line); }
  .menu-open .nav-link { padding: 12px 0; font-size: 14px; }
  .menu-open .nav > *::before, .menu-open .nav-link::after { display: none; }
  .chev { display: none; }
  .drop { position: static; width: auto; padding: 0 0 8px; opacity: 1; visibility: visible; transform: none; transition: none; }
  .drop::before { display: none; }
  .drop a { padding: 8px 0 8px 2px; }
  .drop a + a { border-top: 0; }
  .drop small { display: none; }
  .cards, .pillars, .process-grid, .demo-grid, .founders-grid { grid-template-columns: 1fr; }
  .problem-grid .problem-stage { order: 0; }
  .cal-skel { grid-template-columns: 1fr; } .cal-skel i + i { display: none; }
  .offer { padding-top: 32px; }
  .card + .card { border-left: 0; border-top: 1px solid var(--line-strong); }
  .pillar:nth-child(n) { margin-top: 0; }
  .pillar-front { min-height: 0; }
  .acc-btn { grid-template-columns: 40px 1fr 32px; gap: 16px; padding: 24px 16px; }
  .acc-c { display: none; }
  .acc-i { width: 32px; height: 32px; }
  .acc-list { padding: 0 16px 28px 72px; }
  .foot-cols { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .foot-col + .foot-col { padding-left: 0; border-left: 0; }
  .foot-col::before, .foot-col::after { display: none; }
  .dark > .halftone { width: 100%; opacity: .4; }
  .faq summary { gap: 20px; }
  .faq-a p { padding: 0 0 28px 34px; }
}
@media (max-width: 560px) {
  .offer-list li { grid-template-columns: 48px 1fr; }
  .cal-embed { min-height: 560px; }
  .demo-number { padding: 18px 18px 16px; }
  .dn-num { font-size: clamp(26px, 8vw, 32px); }
  .dn-foot { flex-wrap: wrap; gap: 6px 16px; }
  .acc-btn { grid-template-columns: 28px 1fr 32px; gap: 12px; }
  .acc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; padding: 0 16px 26px 56px; }
  .acc-list li { font-size: 15.5px; }
  .acc-list li + li::before { display: none; }
  .btn-row .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .tr:not(.th), .msg, .lane i { opacity: 1 !important; transform: none !important; }
  .pillar-card { transform: none !important; }
  .hero .db.reveal { filter: none !important; }
  html { scroll-behavior: auto; }
}
