/* ============================================================
   Scaffold - structural data quality for RevOps
   Aesthetic: engineered blueprint. Bone paper, ink, signal lime.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --paper:      #F1EEE4;
  --paper-2:    #E9E5D8;
  --paper-3:    #FBFAF4;
  --ink:        #14140E;
  --ink-soft:   #46453B;
  --ink-faint:  #76746A;
  --line:       rgba(20, 20, 14, 0.13);
  --line-soft:  rgba(20, 20, 14, 0.07);
  --lime:       #C8F03C;
  --lime-deep:  #9FCB1F;
  --alert:      #E5533A;
  --alert-soft: #F7E2DB;
  --amber:      #E8A33D;
  --ok:         #2C9A63;

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--lime); color: var(--ink); }

/* blueprint grain / grid atmosphere over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, transparent 90%);
}

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow::before {
  content: "";
  width: 18px; height: 1px; background: var(--ink); display: inline-block;
}
.eyebrow.lime::after {
  content: "";
  width: 7px; height: 7px; background: var(--lime); border: 1px solid var(--ink); display: inline-block;
}

/* registration cross marker */
.tick { position: absolute; width: 11px; height: 11px; opacity: 0.5; }
.tick::before, .tick::after { content: ""; position: absolute; background: var(--ink); }
.tick::before { left: 5px; top: 0; width: 1px; height: 11px; }
.tick::after { top: 5px; left: 0; height: 1px; width: 11px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  padding: 13px 20px;
  border-radius: var(--r-sm);
  transition: transform .18s cubic-bezier(.2,.7,.3,1), box-shadow .18s, background .18s, color .18s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--lime); color: var(--ink);
  box-shadow: 0 0 0 1px var(--ink), 4px 4px 0 0 var(--ink);
}
.btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 0 0 0 1px var(--ink), 6px 6px 0 0 var(--ink); }
.btn-primary:active { transform: translate(2px,2px); box-shadow: 0 0 0 1px var(--ink), 1px 1px 0 0 var(--ink); }
.btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,20,14,.22); }
.btn .arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-lg { padding: 16px 26px; font-size: 14px; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.02em; }
.brand-mark { width: 26px; height: 26px; flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-by { font-family: var(--font-mono); font-weight: 400; font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); display: block; transition: .2s; }
/* audit nav: full-bleed so the logo sits flush-left with the panel */
.nav-audit .wrap { max-width: none; }

/* ---------- compliance badges ---------- */
.compliance { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cbadge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .03em; color: var(--ink-soft); padding: 8px 13px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper-3); }
.cbadge svg { flex: none; }
.cbadge b { color: var(--ink); font-weight: 600; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(40px, 6vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-kicker { margin-bottom: 26px; }
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.hero h1 .mark { position: relative; white-space: nowrap; }
.hero h1 em { font-style: normal; position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: 0.08em; height: 0.32em;
  background: var(--lime); z-index: -1;
  transform: skewX(-9deg);
}
.hero p.lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--ink-soft);
  max-width: 46ch;
  margin-top: 26px;
}
.hero-actions { display: flex; align-items: center; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { margin-top: 30px; display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-soft); flex-wrap: wrap; }
.hero-meta .crm-pill { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper-3); }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot.green { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }

/* hero animated reveal */
.reveal-up { opacity: 0; transform: translateY(18px); animation: revealUp .8s cubic-bezier(.2,.7,.3,1) forwards; }
.d1 { animation-delay: .05s; } .d2 { animation-delay: .14s; } .d3 { animation-delay: .23s; }
.d4 { animation-delay: .32s; } .d5 { animation-delay: .42s; }
@keyframes revealUp { to { opacity: 1; transform: none; } }

/* ---------- hero product panel (audit mock) ---------- */
.panel {
  background: var(--paper-3);
  border: 1px solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: 10px 12px 0 0 rgba(20,20,14,.10);
  overflow: hidden;
  position: relative;
}
.panel-top { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.panel-top .title { font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em; display: flex; align-items: center; gap: 8px; }
.panel-top .lights { display: flex; gap: 6px; }
.panel-top .lights i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--ink); display: block; }
.panel-body { padding: 18px; }

.score-row { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-bottom: 16px; }
.score-ring {
  width: 86px; height: 86px; border-radius: 50%; flex: none;
  display: grid; place-items: center; position: relative;
  background: conic-gradient(var(--alert) 0 70%, var(--line) 70% 100%);
}
.score-ring::before { content: ""; position: absolute; inset: 7px; background: var(--paper-3); border-radius: 50%; }
.score-ring b { position: relative; font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--alert); }
.score-meta .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.score-meta h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-top: 2px; }
.score-meta p { font-size: 13px; color: var(--ink-soft); margin-top: 3px; }

.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 16px; }
.stat { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 10px; background: var(--paper); }
.stat .n { font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.stat .k { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); margin-top: 1px; }
.stat.alert .n { color: var(--alert); }

.finding { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 11px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--paper-3); margin-bottom: 8px; }
.finding:last-child { margin-bottom: 0; }
.finding .ftext { font-size: 13.5px; font-weight: 500; }
.finding .ftext small { display: block; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); margin-top: 2px; font-weight: 400; }
.tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: .04em; padding: 4px 8px; border-radius: 100px; white-space: nowrap; }
.tag.high { background: var(--alert-soft); color: #B43521; }
.tag.med { background: #FBEFD8; color: #9A6B16; }
.tag.fix { background: var(--ink); color: var(--lime); }

/* floating chips on hero panel */
.float-chip {
  position: absolute; z-index: 2; font-family: var(--font-mono); font-size: 11px;
  background: var(--ink); color: var(--paper); padding: 8px 11px; border-radius: var(--r-sm);
  box-shadow: 0 8px 20px rgba(20,20,14,.25); display: flex; align-items: center; gap: 7px;
}
.float-chip .dot.green { box-shadow: 0 0 0 3px rgba(44,154,99,.3); }
.float-a { top: -16px; right: 24px; animation: floaty 5s ease-in-out infinite; }
.float-b { bottom: -16px; left: -18px; animation: floaty 6s ease-in-out infinite .6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ============================================================
   MARQUEE / TRUST BAR
   ============================================================ */
.trustbar { border-block: 1px solid var(--line); background: var(--paper-2); padding: 18px 0; margin-top: 8px; }
.trustbar-inner { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); flex-wrap: wrap; justify-content: center; }
.trustbar .lbl { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.crm-logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 16px; opacity: .85; }
.crm-logo svg { flex: none; }
.crm-logo .ro { font-family: var(--font-mono); font-size: 10px; padding: 2px 6px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink-faint); font-weight: 400; }
.tb-divider { width: 1px; height: 34px; background: var(--line); display: inline-block; }
.soc-seal { width: 54px; height: 54px; display: block; flex: none; }

/* ============================================================
   SECTION SCAFFOLDING
   ============================================================ */
section { position: relative; padding-block: clamp(64px, 9vw, 128px); }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -0.025em; margin-top: 18px;
}
.sec-head p { font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-soft); margin-top: 18px; max-width: 62ch; }
.divider { border: 0; border-top: 1px solid var(--line); }

/* scroll reveal */
.io { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.3,1), transform .7s cubic-bezier(.2,.7,.3,1); }
.io.in { opacity: 1; transform: none; }
.io.s1 { transition-delay: .06s; } .io.s2 { transition-delay: .13s; } .io.s3 { transition-delay: .2s; } .io.s4 { transition-delay: .27s; }

/* ---------- problem stats ---------- */
.problem { background: var(--ink); color: var(--paper); }
.problem::before, .problem::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px; background: rgba(241,238,228,.14);
}
.problem .eyebrow { color: rgba(241,238,228,.7); }
.problem .eyebrow::before { background: var(--lime); }
.problem .sec-head h2 { color: var(--paper); }
.problem .sec-head p { color: rgba(241,238,228,.72); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(241,238,228,.16); border: 1px solid rgba(241,238,228,.16); border-radius: var(--r-md); overflow: hidden; }
.stat-card { background: var(--ink); padding: 28px 24px; }
.stat-card .big { font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 56px); letter-spacing: -0.03em; color: var(--lime); line-height: 1; }
.stat-card .desc { font-size: 14px; color: rgba(241,238,228,.74); margin-top: 12px; }
.stat-card .desc b { color: var(--paper); font-weight: 600; }

/* ============================================================
   AGENTS (feature blocks)
   ============================================================ */
.agents { }
.agent {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: center;
  padding-block: clamp(40px, 6vw, 76px); border-top: 1px solid var(--line);
}
.agent.flip .agent-copy { order: 2; }
.agent.flip .agent-visual { order: 1; }
.agent-no { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); letter-spacing: .14em; }
.agent h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3.2vw, 40px); letter-spacing: -0.025em; line-height: 1.04; margin-top: 16px; }
.agent .pitch { font-size: 16.5px; color: var(--ink-soft); margin-top: 16px; max-width: 48ch; }
.feat-list { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.feat-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.feat-list .ck { flex: none; width: 20px; height: 20px; border-radius: var(--r-sm); background: var(--lime); display: grid; place-items: center; margin-top: 1px; box-shadow: 0 0 0 1px var(--ink); }
.feat-list .ck svg { width: 12px; height: 12px; }
.feat-list b { font-weight: 600; }
.feat-list span { color: var(--ink-soft); }

/* card corner brackets */
.bracketed { position: relative; }
.bracketed > .cb { position: absolute; width: 14px; height: 14px; border: 1.5px solid var(--ink); }
.cb.tl { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.cb.tr { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.cb.bl { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.cb.br { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

/* dedupe visual */
.dedupe-card { background: var(--paper-3); border: 1px solid var(--ink); border-radius: var(--r-lg); box-shadow: 8px 10px 0 0 rgba(20,20,14,.09); overflow: hidden; }
.dedupe-row { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: center; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--line); }
.dedupe-row:last-child { border-bottom: 0; }
.dedupe-group { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-faint); padding: 11px 16px; background: var(--paper-2); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; }
.rec { }
.rec .nm { font-weight: 600; font-size: 14px; }
.rec .id { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); }
.merge-ico { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-faint); }
.likelihood { font-family: var(--font-mono); font-size: 10px; padding: 4px 8px; border-radius: 100px; white-space: nowrap; }
.likelihood.mid { background: #FBEFD8; color: #9A6B16; }
.likelihood.low { background: var(--alert-soft); color: #B43521; }
.likelihood.high { background: #DDF3C8; color: #4B7314; }

/* data quality chat visual */
.chat-card { background: var(--paper-3); border: 1px solid var(--ink); border-radius: var(--r-lg); box-shadow: 8px 10px 0 0 rgba(20,20,14,.09); overflow: hidden; }
.chat-head { padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); font-family: var(--font-mono); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.chat-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.bubble { max-width: 86%; padding: 11px 14px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
.bubble.user { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 3px; }
.bubble.bot { align-self: flex-start; background: var(--paper-2); border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.bubble.bot code { font-family: var(--font-mono); font-size: 12px; background: var(--paper); padding: 1px 5px; border-radius: 4px; border: 1px solid var(--line); }
.result-line { display: flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 12px; padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper-3); }
.result-line .cnt { margin-left: auto; font-weight: 700; color: var(--lime-deep); }

/* ---------- dedupe comparison detail (Canopy-style) ---------- */
.cmp-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.cmp-head .title { font-family: var(--font-mono); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.cmp-actions { display: flex; gap: 6px; }
.ar { font-family: var(--font-mono); font-size: 11px; padding: 5px 11px; border-radius: 100px; box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; gap: 5px; transition: background .15s, box-shadow .15s, transform .15s; }
.ar.approve { color: #2C7A4E; }
.ar.approve:hover { background: #DDF3C8; box-shadow: inset 0 0 0 1px #4B7314; transform: translateY(-1px); }
.ar.reject { color: #B43521; }
.ar.reject:hover { background: var(--alert-soft); box-shadow: inset 0 0 0 1px #B43521; transform: translateY(-1px); }
.cmp-reason { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmp-reason .likelihood { margin-bottom: 10px; display: inline-block; }
.cmp-reason p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.cmp-reason b { color: var(--ink); font-weight: 600; }
.cmp-table { padding: 4px 0 6px; }
.cmp-row { display: grid; grid-template-columns: 0.8fr 1fr 1fr; gap: 10px; padding: 8px 16px; font-size: 12.5px; align-items: start; }
.cmp-row.head { font-family: var(--font-mono); font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }
.cmp-row .lbl { color: var(--ink-soft); }
.cmp-row.diff { background: color-mix(in srgb, var(--lime) 12%, transparent); }
.cmp-row em { font-style: normal; font-family: var(--font-mono); font-size: 10px; color: var(--lime-deep); display: block; margin-top: 2px; }

/* ---------- data quality approval plan ---------- */
.plan-card { border: 1px solid var(--ink); border-radius: var(--r-md); overflow: hidden; background: var(--paper); }
.plan-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; background: var(--ink); color: var(--paper); font-family: var(--font-mono); font-size: 11.5px; }
.plan-head .src { opacity: .65; }
.plan-row { padding: 11px 13px; border-bottom: 1px solid var(--line); }
.plan-row .pr-rec { font-size: 12.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.plan-row .pr-rec .obj { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-faint); font-weight: 400; padding: 2px 6px; border: 1px solid var(--line); border-radius: 100px; }
.plan-row .from { color: var(--ink-faint); font-size: 11px; line-height: 1.4; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.plan-row .to { color: var(--ink); font-size: 12px; line-height: 1.4; margin-top: 4px; }
.plan-row .to::before { content: "\2192  "; color: var(--lime-deep); font-family: var(--font-mono); font-weight: 700; }
.plan-foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; padding: 11px 13px; }
.btn-mini { background: var(--lime); color: var(--ink); box-shadow: 0 0 0 1px var(--ink); font-family: var(--font-mono); font-size: 11px; padding: 7px 13px; border-radius: var(--r-sm); transition: transform .15s; }
.btn-mini:hover { transform: translateY(-1px); }

/* ============================================================
   CAPABILITIES GRID
   ============================================================ */
.caps { background: var(--paper-2); border-block: 1px solid var(--line); }
.caps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cap { background: var(--paper-3); padding: 30px 26px; transition: background .25s; position: relative; }
.cap:hover { background: var(--paper); }
.cap .ci { width: 40px; height: 40px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--ink); color: var(--lime); margin-bottom: 18px; }
.cap .ci svg { width: 20px; height: 20px; }
.cap h4 { font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -0.01em; }
.cap p { font-size: 14.5px; color: var(--ink-soft); margin-top: 9px; }
.cap .nx { position: absolute; top: 24px; right: 24px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
.cap-magic { background: var(--lime); }
.cap-magic:hover { background: var(--lime); }
.cap-magic .ci { background: var(--ink); color: var(--lime); }
.cap-magic .nx { color: var(--ink); font-size: 15px; opacity: .6; }
.cap-magic p { color: #3c4a14; }

/* NL list-building showcase */
.nlb { margin-top: clamp(36px, 5vw, 56px); }
.nlb-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.nlb-head h3 { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px); letter-spacing: -0.02em; }
.nlb-head span { font-size: 15px; color: var(--ink-soft); }
.query-list { display: grid; gap: 12px; }
.query {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px 20px; transition: border-color .2s, transform .2s, box-shadow .2s;
}
.query:hover { border-color: var(--ink); transform: translateX(4px); box-shadow: -4px 4px 0 0 var(--lime); }
.query .q-ico { font-family: var(--font-mono); color: var(--ink-faint); font-size: 13px; }
.query .q-text { font-size: 15.5px; }
.query .q-text b { font-weight: 600; }
.query .q-out { font-family: var(--font-mono); font-size: 12px; color: var(--ink); background: var(--lime); padding: 5px 10px; border-radius: 100px; box-shadow: 0 0 0 1px var(--ink); white-space: nowrap; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 28px); }
.step { position: relative; padding-top: 28px; }
.step .num { font-family: var(--font-mono); font-size: 13px; color: var(--ink); background: var(--lime); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 0 1px var(--ink); position: absolute; top: -16px; left: 0; font-weight: 700; }
.step h4 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin-top: 14px; letter-spacing: -0.01em; }
.step p { font-size: 15px; color: var(--ink-soft); margin-top: 10px; }
.step .line { position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--line); }
.step .line::after { content: ""; position: absolute; left: 0; top: -1px; width: 30px; height: 3px; background: var(--lime); }

/* ============================================================
   SECURITY
   ============================================================ */
.security { padding-block: clamp(46px, 6vw, 84px); background: var(--paper-2); border-top: 1px solid var(--line); }
.security-grid { display: grid; grid-template-columns: 1.32fr 0.68fr; gap: clamp(28px, 5vw, 56px); align-items: center; }
.sec-points { display: grid; gap: 9px; }
.sec-point { display: flex; gap: 12px; align-items: flex-start; padding: 12px 15px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-3); }
.sec-point .si { flex: none; width: 31px; height: 31px; border-radius: var(--r-sm); display: grid; place-items: center; border: 1px solid var(--ink); background: var(--paper); }
.sec-point .si svg { width: 15px; height: 15px; }
.sec-point h5 { font-weight: 600; font-size: 14px; }
.sec-point p { font-size: 12.5px; color: var(--ink-soft); margin-top: 2px; line-height: 1.45; }
.shield-visual { aspect-ratio: 1; border: 1px solid var(--ink); border-radius: var(--r-lg); background:
  radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--lime) 30%, transparent), transparent 60%), var(--paper-3);
  display: grid; place-items: center; position: relative; overflow: hidden; box-shadow: 8px 10px 0 0 rgba(20,20,14,.09); max-width: 320px; width: 100%; justify-self: center; }
.shield-visual .ro-badge { text-align: center; position: relative; z-index: 2; }
.shield-visual .ro-badge .big { font-family: var(--font-mono); font-weight: 700; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.shield-visual .ro-badge .sub { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin-top: 8px; }
.shield-visual::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 28px 28px; }

/* animated lock emblem */
.ro-emblem { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 15px; background: var(--ink); color: var(--lime); display: grid; place-items: center; position: relative; box-shadow: 0 12px 30px rgba(20,20,14,.2); }
.ro-emblem svg { width: 30px; height: 30px; position: relative; z-index: 2; }
.ro-emblem::before, .ro-emblem::after { content: ""; position: absolute; inset: 0; border-radius: 17px; border: 1.5px solid var(--lime-deep); opacity: 0; animation: roPulse 3.2s ease-out infinite; }
.ro-emblem::after { animation-delay: 1.6s; }
@keyframes roPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.9); opacity: 0; } }

/* scanner sweep */
.scanline { position: absolute; left: 0; right: 0; top: 0; height: 26%; z-index: 1; pointer-events: none;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--lime) 42%, transparent), transparent);
  transform: translateY(-130%); animation: roScan 4s cubic-bezier(.45,0,.55,1) infinite; }
.scanline::after { content: ""; position: absolute; bottom: 0; left: 10%; right: 10%; height: 2px; background: var(--lime); box-shadow: 0 0 14px 2px color-mix(in srgb, var(--lime) 70%, transparent); }
@keyframes roScan { 0% { transform: translateY(-130%); } 55% { transform: translateY(420%); } 100% { transform: translateY(420%); } }

/* live stat + status chip */
.shield-visual .ro-stat { margin-top: 20px; font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border: 1px solid var(--line); border-radius: 100px; background: color-mix(in srgb, var(--paper-3) 85%, transparent); }
.shield-visual .ro-stat b { color: var(--ok); font-weight: 700; }
.shield-visual .ro-chip { position: absolute; top: 20px; right: 20px; z-index: 3; }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta-final { background: var(--ink); color: var(--paper); text-align: center; }
.cta-final::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(200,240,60,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(200,240,60,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000, transparent 75%); }
.cta-final h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 6vw, 68px); line-height: 1.0; letter-spacing: -0.03em; color: var(--paper); }
.cta-final h2 em { font-style: normal; color: var(--lime); }
.cta-final p { font-size: clamp(16px, 1.5vw, 19px); color: rgba(241,238,228,.72); margin: 22px auto 0; max-width: 52ch; }
.cta-final .hero-actions { justify-content: center; }
.cta-final .crm-line { margin-top: 26px; font-family: var(--font-mono); font-size: 12.5px; color: rgba(241,238,228,.6); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding-block: 48px 36px; }
.footer-grid { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand { margin-bottom: 12px; }
.footer .tag-line { font-size: 14px; color: var(--ink-soft); max-width: 30ch; }
.footer-cols { display: flex; gap: clamp(36px, 6vw, 80px); flex-wrap: wrap; }
.footer-col h6 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14.5px; color: var(--ink-soft); margin-bottom: 9px; transition: color .15s; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }

/* ============================================================
   AUDIT PAGE
   ============================================================ */
.audit-main { min-height: calc(100vh - 66px); display: grid; grid-template-columns: 0.92fr 1.08fr; }
.audit-aside { background: var(--ink); color: var(--paper); padding: clamp(40px, 5vw, 72px) clamp(28px, 4vw, 60px); position: relative; overflow: hidden; }
.audit-aside::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(241,238,228,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(241,238,228,.06) 1px, transparent 1px); background-size: 40px 40px; pointer-events: none; }
.audit-aside .eyebrow { color: rgba(241,238,228,.7); }
.audit-aside .eyebrow::before { background: var(--lime); }
.audit-aside h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.04; letter-spacing: -0.025em; margin-top: 22px; color: var(--paper); }
.audit-aside h1 em { font-style: normal; color: var(--lime); }
.audit-aside .sub { color: rgba(241,238,228,.74); font-size: 16px; margin-top: 18px; max-width: 42ch; }
.audit-checklist { margin-top: 36px; display: grid; gap: 14px; position: relative; }
.audit-checklist li { list-style: none; display: flex; gap: 12px; align-items: center; font-size: 14.5px; color: rgba(241,238,228,.9); }
.audit-checklist .ck { width: 20px; height: 20px; border-radius: 50%; background: rgba(200,240,60,.15); border: 1px solid var(--lime); display: grid; place-items: center; flex: none; }
.audit-checklist .ck svg { width: 11px; height: 11px; }
.audit-testimonial { margin-top: 44px; padding: 22px; border: 1px solid rgba(241,238,228,.18); border-radius: var(--r-md); position: relative; }
.audit-testimonial p { font-size: 15px; line-height: 1.55; color: var(--paper); }
.audit-testimonial .who { margin-top: 12px; font-family: var(--font-mono); font-size: 12px; color: rgba(241,238,228,.6); }
.audit-compliance { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 8px; position: relative; }
.audit-compliance span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 11px; color: rgba(241,238,228,.82); padding: 7px 12px; border: 1px solid rgba(241,238,228,.2); border-radius: 100px; }
.audit-compliance svg { flex: none; }
.form-compliance { text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .03em; color: var(--ink-faint); margin-top: 26px; }

.audit-form-wrap { padding: clamp(40px, 5vw, 72px) clamp(28px, 5vw, 80px); display: flex; align-items: center; }
.audit-form { width: 100%; max-width: 480px; margin-inline: auto; }
.steps-prog { display: flex; align-items: center; gap: 8px; margin-bottom: 32px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); }
.steps-prog .seg { height: 3px; flex: 1; background: var(--line); border-radius: 2px; overflow: hidden; }
.steps-prog .seg b { display: block; height: 100%; width: 0; background: var(--lime); transition: width .4s; }
.steps-prog .seg.done b, .steps-prog .seg.active b { width: 100%; }

.fstep { display: none; }
.fstep.active { display: block; animation: revealUp .5s cubic-bezier(.2,.7,.3,1); }
.fstep h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.02em; }
.fstep .fsub { color: var(--ink-soft); font-size: 15px; margin-top: 10px; }

.crm-choice { display: grid; gap: 14px; margin-top: 28px; }
.crm-opt {
  display: flex; align-items: center; gap: 16px; text-align: left; width: 100%;
  padding: 20px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper-3);
  transition: border-color .2s, transform .15s, box-shadow .2s;
}
.crm-opt:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(20,20,14,.1); }
.crm-opt.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), -5px 5px 0 0 var(--lime); }
.crm-opt .logo-box { width: 46px; height: 46px; border-radius: var(--r-sm); display: grid; place-items: center; flex: none; border: 1px solid var(--line); background: var(--paper); }
.crm-opt .ct { flex: 1; }
.crm-opt .ct b { display: block; font-weight: 600; font-size: 16px; }
.crm-opt .ct span { font-size: 13px; color: var(--ink-soft); }
.crm-opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; }
.crm-opt.sel .radio { border-color: var(--ink); background: var(--lime); }
.crm-opt.sel .radio::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }

.field { margin-top: 18px; }
.field label { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 8px; }
.field input {
  width: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 15px; background: var(--paper-3); color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
.field input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 40%, transparent); }
.field .err { color: var(--alert); font-size: 12.5px; margin-top: 6px; display: none; }
.field.invalid input { border-color: var(--alert); }
.field.invalid .err { display: block; }

.readonly-note { margin-top: 20px; display: flex; gap: 11px; align-items: flex-start; padding: 14px 16px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; color: var(--ink-soft); }
.readonly-note svg { flex: none; margin-top: 1px; }
.fstep .row-btns { display: flex; gap: 12px; margin-top: 28px; }
.fstep .row-btns .btn { flex: 1; justify-content: center; }
.back-link { background: none; color: var(--ink-soft); font-family: var(--font-mono); font-size: 13px; padding: 13px 16px; }
.back-link:hover { color: var(--ink); }

/* success */
.success-state { text-align: center; padding: 20px 0; }
.success-state .check-big { width: 76px; height: 76px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; margin: 0 auto 24px; box-shadow: 0 0 0 1px var(--ink), 6px 6px 0 0 var(--ink); }
.success-state h2 { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; }
.success-state p { color: var(--ink-soft); margin-top: 12px; font-size: 15.5px; }
.success-state .scan-anim { margin-top: 28px; text-align: left; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--paper-3); }
.scan-line { display: flex; align-items: center; gap: 11px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12.5px; opacity: 0; animation: scanIn .5s forwards; }
.scan-line:last-child { border-bottom: 0; }
.scan-line .sp { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin 1s linear infinite; }
.scan-line .done-tick { color: var(--ok); }
.scan-line .cnt { margin-left: auto; color: var(--ink-faint); }
@keyframes scanIn { to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { margin-top: 12px; }
  .agent, .agent.flip { grid-template-columns: 1fr; }
  .agent.flip .agent-copy, .agent.flip .agent-visual { order: initial; }
  .security-grid { grid-template-columns: 1fr; }
  .caps-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .audit-main { grid-template-columns: 1fr; }
  .audit-aside { display: none; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav.open .nav-links { display: flex; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter); }
  .nav.open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line-soft); width: 100%; }
  .caps-grid, .stat-cards, .stat-strip { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .query { grid-template-columns: 1fr; gap: 10px; }
  .query .q-out { justify-self: start; }
  .float-chip { display: none; }
  .footer-grid { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; transition-duration: .001s !important; }
  .io { opacity: 1; transform: none; }
}
