/* ============================================================
   Adgent marketing site — layout layer (warm light · coral)
   Built on the real product language: Plus Jakarta Sans,
   soft-shadowed white cards on a warm canvas, coral accent,
   Fraunces italic for one editorial word.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-app);
  color: var(--text);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: var(--accent-soft); color: var(--text); }

/* very faint warm atmosphere — keeps the canvas from going flat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(820px 480px at 78% -6%, rgba(255,90,44,0.06), transparent 60%),
    radial-gradient(680px 460px at 8% 2%, rgba(255,160,90,0.05), transparent 58%);
  z-index: 0;
}

/* ---------- layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.lane { max-width: 760px; }
section { position: relative; z-index: 1; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.eyebrow .tick { width: 16px; height: 1px; background: var(--accent); opacity: 0.8; }

.sec-head { max-width: 700px; }
.sec-title {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.035em;
  margin: 16px 0 0;
  text-wrap: balance;
}
.sec-title em { font-family: var(--font-editorial); font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: -0.015em; }
.sec-sub {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 16px 0 0;
  max-width: 560px;
  text-wrap: pretty;
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-app) 78%, transparent);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border);
}
.nav-in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; flex: none; }
.brand .mark { width: 26px; height: 26px; }
.brand .name { font-weight: 700; font-size: 16.5px; letter-spacing: -0.02em; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 10px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-2);
  padding: 7px 12px; border-radius: var(--r-sm); transition: color 120ms, background 120ms;
}
.nav-links a:hover { color: var(--text); background: var(--bg-hover); }
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-login { font-size: 14px; font-weight: 500; color: var(--text-2); padding: 7px 12px; border-radius: var(--r-sm); transition: color 120ms; }
.nav-login:hover { color: var(--text); }
.nav-burger { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 19px; border-radius: var(--r-sm);
  font-family: var(--font-ui); font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background 140ms var(--ease), border-color 140ms, color 140ms, box-shadow 140ms;
}
.btn svg { width: 16px; height: 16px; stroke-width: 2; }
.btn-primary { background: var(--accent); color: var(--accent-on); box-shadow: 0 1px 2px rgba(110,38,8,0.12), 0 8px 20px -10px rgba(255,90,44,0.5); }
.btn-primary:hover { background: var(--accent-press); }
.btn-ghost { background: var(--bg-card); color: var(--text); border-color: var(--border-2); box-shadow: var(--shadow-soft); }
.btn-ghost:hover { background: var(--bg-sub); border-color: var(--text-4); }
.btn-sm { height: 36px; padding: 0 15px; font-size: 13.5px; }
.btn-lg { height: 48px; padding: 0 24px; font-size: 15px; }

/* ---------- hero ---------- */
.hero { padding: 88px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 9px;
  height: 30px; padding: 0 14px 0 11px; border-radius: var(--r-pill);
  background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-soft);
  font-size: 12.5px; font-weight: 500; color: var(--text-2);
}
.hero-tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-soft); }
.hero-slogan {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
}
.hero-slogan .w { transition: color 200ms; }
.hero-slogan .w1 { color: var(--text-3); }
.hero-slogan .w2 { color: var(--text-2); }
.hero-slogan .w3 { color: var(--accent); }
.hero-slogan .arw { width: 18px; height: 8px; flex: none; color: var(--border-2); }
.hero-slogan .arw svg { width: 100%; height: 100%; stroke-width: 1.5; }
.hero-slogan:hover .w1 { color: var(--text-2); }
.hero-slogan:hover .w2 { color: var(--text); }
.hero h1 {
  font-weight: 800;
  font-size: clamp(42px, 5.6vw, 68px);
  line-height: 1.01;
  letter-spacing: -0.04em;
  margin: 22px 0 0;
  text-wrap: balance;
}
.hero h1 em { font-family: var(--font-editorial); font-style: italic; font-weight: 500; color: var(--accent); letter-spacing: -0.02em; }
.hero-lede { font-size: 18.5px; line-height: 1.6; color: var(--text-2); margin: 24px 0 0; max-width: 480px; text-wrap: pretty; }
.hero-cta { display: flex; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { font-size: 12.5px; color: var(--text-3); margin-top: 16px; font-family: var(--font-mono); letter-spacing: 0.02em; }

/* ---------- product cutout (faithful dashboard fragment) ---------- */
.cutout {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-card);
  padding: 22px;
  position: relative;
  overflow: hidden;
}
.cutout::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,90,44,0.04), transparent 48%);
}
.cutout > * { position: relative; }
.co-kicker { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); }
.co-h1 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 8px 0 0; line-height: 1.25; }
.co-h1 .day { font-family: var(--font-editorial); font-style: italic; font-weight: 500; color: var(--accent); }
.co-narr { font-size: 13.5px; line-height: 1.6; color: var(--text-2); margin: 12px 0 0; text-wrap: pretty; }
.co-narr b { color: var(--text); font-weight: 600; }

/* ============ BUILT FROM CHAT — product screenshots ============ */
/* slider shell */
.builds-slider { margin-top: 44px; position: relative; }
.builds {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(50% - 9px);
  gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; scroll-padding: 0;
  padding-bottom: 4px; margin: 0 -4px; padding-left: 4px; padding-right: 4px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.builds::-webkit-scrollbar { display: none; }
.builds > .build { scroll-snap-align: start; }
/* nav row: dots + arrows */
.builds-nav { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 24px; }
.builds-dots { display: flex; align-items: center; gap: 8px; }
.builds-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border-2); border: none; padding: 0; cursor: pointer; transition: background 200ms var(--ease), width 200ms var(--ease); }
.builds-dot.on { background: var(--accent); width: 22px; border-radius: 4px; }
.builds-arrows { display: flex; gap: 8px; }
.builds-arrow {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--bg-card); border: 1px solid var(--border-2); color: var(--text-2);
  cursor: pointer; transition: color 160ms, border-color 160ms, background 160ms, opacity 160ms;
}
.builds-arrow svg { width: 17px; height: 17px; stroke-width: 2; }
.builds-arrow:hover { color: var(--text); border-color: var(--text-3); background: var(--bg-hover); }
.builds-arrow:disabled { opacity: 0.35; cursor: default; }
@media (max-width: 640px) { .builds { grid-auto-columns: 88%; } .builds-arrows { display: none; } }
.build {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-xl); box-shadow: var(--shadow-card);
  overflow: hidden; display: flex; flex-direction: column;
  position: relative; isolation: isolate;
  transition: transform 260ms var(--ease), box-shadow 260ms var(--ease), border-color 260ms var(--ease);
}
/* accent hairline that "draws" across the top on hover — the generate moment */
.build::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0); transform-origin: left; opacity: 0;
  transition: transform 420ms var(--ease), opacity 200ms;
}
.build:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-pop, 0 30px 60px -24px rgba(28,25,20,0.28), 0 4px 12px -6px rgba(28,25,20,0.14));
  border-color: var(--border-2);
}
.build:hover::after { transform: scaleX(1); opacity: 1; }
.build:hover .build-canvas { border-color: rgba(255,90,44,0.28); }
.build-canvas { transition: border-color 260ms var(--ease); }
.build-head { padding: 18px 20px 0; }
.build-prompt {
  display: inline-flex; align-items: center; gap: 8px; max-width: 100%;
  background: var(--user-bubble, #1c1a17); color: #faf9f6;
  border-radius: var(--r-pill); padding: 7px 14px 7px 12px;
  font-size: 12.5px; font-weight: 500; line-height: 1.3;
}
.build-prompt svg { width: 13px; height: 13px; flex: none; opacity: 0.7; stroke-width: 2; }
.build-reply { font-size: 12px; color: var(--text-3); font-family: var(--font-mono); letter-spacing: 0.02em; margin: 12px 0 0; display: flex; align-items: center; gap: 7px; }
.build-reply .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); flex: none; }
.build-canvas { margin: 14px 16px 16px; background: var(--bg-sub); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 14px; flex: 1; }
.build-cap { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding: 0 20px 18px; }
.build-cap .name { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.build-cap .tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }

/* mini KPI tiles (dashboard) */
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mkt { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px 11px; }
.mkt-l { font-size: 10px; font-weight: 600; color: var(--text-3); }
.mkt-v { font-size: 17px; font-weight: 700; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.mkt-d { font-size: 9.5px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.mkt-d.up { color: var(--ok); } .mkt-d.down { color: var(--crit); } .mkt-d.flat { color: var(--text-3); }
.mini-chart { margin-top: 10px; }
.mini-chart svg { width: 100%; height: 46px; display: block; }

/* mini agent rows */
.mini-agent { display: flex; flex-direction: column; gap: 8px; }
.mag-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-md); padding: 9px 11px; }
.mag-sev { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700; }
.mag-sev .d { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.mag-sev.crit { color: var(--crit); } .mag-sev.crit .d { background: var(--crit); }
.mag-sev.warn { color: var(--warn); } .mag-sev.warn .d { background: var(--warn); }
.mag-ent { font-size: 12px; font-weight: 600; }
.mag-rec { font-size: 10.5px; color: var(--text-2); margin-top: 1px; }
.mag-imp { text-align: right; }
.mag-imp .v { font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mag-imp .l { font-size: 8.5px; color: var(--text-3); }

/* mini plan steps */
.mini-plan { display: flex; flex-direction: column; }
.mpl-row { display: flex; align-items: center; gap: 11px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mpl-row:last-child { border-bottom: none; }
.mpl-n { width: 20px; height: 20px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: 10px; font-weight: 600; display: grid; place-items: center; flex: none; }
.mpl-t { font-size: 12px; font-weight: 500; flex: 1; }
.mpl-s { font-size: 10px; font-family: var(--font-mono); color: var(--text-3); }

/* mini campaign rows */
.mini-camp { display: flex; flex-direction: column; gap: 7px; }
.mcp-row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; }
.mcp-flag { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.mcp-n { font-size: 11.5px; font-weight: 500; }
.mcp-sub { font-size: 9.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.msb { display: inline-flex; align-items: center; height: 19px; padding: 0 8px; border-radius: var(--r-pill); font-size: 10px; font-weight: 600; }
.msb.ok { color: var(--ok); background: var(--ok-soft); }
.msb.warn { color: var(--warn); background: rgba(207,138,38,0.13); }

/* ============ GOLDEN RULES / MEMORY (the moat) ============ */
.moat { background: #141210; color: #f4f2ee; position: relative; overflow: hidden; }
.moat::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70% 60% at 84% -8%, rgba(255,90,44,0.20), transparent 56%),
    radial-gradient(60% 80% at 6% 108%, rgba(255,120,60,0.08), transparent 55%);
}
/* ambient particles — faint drifting motes, accent-tinted */
.moat-particles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.moat-particles i {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,120,70,0.9), rgba(255,90,44,0));
  opacity: 0; will-change: transform, opacity;
}
@media (prefers-reduced-motion: no-preference) {
  .moat-particles i { animation: mote linear infinite; }
}
@keyframes mote {
  0% { transform: translateY(30px) scale(0.6); opacity: 0; }
  14% { opacity: 0.8; }
  86% { opacity: 0.5; }
  100% { transform: translateY(-70px) scale(1.1); opacity: 0; }
}
/* faint hairline grid to read as "structured memory" */
.moat-grid-lines { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(80% 70% at 70% 20%, #000, transparent 75%);
}
.moat .wrap { position: relative; }
.moat-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 60px; align-items: center; }
.moat-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.moat-eyebrow .tick { width: 16px; height: 1px; background: var(--accent); }
.moat h2 { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.04; margin: 20px 0 0; text-wrap: balance; }
.moat h2 em { font-family: var(--font-editorial); font-style: italic; font-weight: 500; color: var(--accent); }
.moat-sub { font-size: 16px; line-height: 1.62; color: rgba(244,242,238,0.62); margin: 20px 0 0; max-width: 46ch; text-wrap: pretty; }
.moat-points { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.moat-points li { display: flex; gap: 12px; font-size: 14px; line-height: 1.5; color: rgba(244,242,238,0.82); }
.moat-points li svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--accent); stroke-width: 2; }
.moat-points li b { color: #f4f2ee; font-weight: 600; }

/* the memory card — accumulated golden rules */
.memcard { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.10); border-radius: var(--r-xl); padding: 8px; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6); }
.memcard-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px 12px; }
.memcard-ic { width: 30px; height: 30px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex: none; }
.memcard-ic svg { width: 16px; height: 16px; stroke-width: 2; }
.memcard-h { font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; }
.memcard-sub { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244,242,238,0.4); margin-top: 2px; }
/* learning moments — Adgent quietly internalizing what you say/do (not a rules list) */
.learns { display: flex; flex-direction: column; gap: 12px; padding: 4px; }
.learn { position: relative; padding-left: 20px; }
.learn::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: -12px; width: 1px; background: linear-gradient(var(--accent), transparent); }
.learn:last-child::before { display: none; }
.learn::after { content: ""; position: absolute; left: 1px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,90,44,0.14); }
.learn-said { font-size: 13px; line-height: 1.5; color: rgba(244,242,238,0.92); }
.learn-said b { color: #fff; font-weight: 700; }
.learn-who { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(244,242,238,0.4); margin-bottom: 4px; }
.learn-said.act { font-style: normal; color: rgba(244,242,238,0.78); }
.learn-got { display: inline-flex; align-items: center; gap: 7px; margin-top: 7px; font-size: 11.5px; font-weight: 500; color: var(--accent); }
.learn-got svg { width: 13px; height: 13px; flex: none; stroke-width: 2.5; }
.memcard-foot { display: flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 11.5px; color: rgba(244,242,238,0.5); }
.memcard-foot .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; box-shadow: 0 0 0 3px rgba(52,205,131,0.18); }
@media (max-width: 860px) { .moat-grid { grid-template-columns: 1fr; gap: 40px; } }

/* health hero row */
.co-health { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding: 16px; background: var(--bg-sub); border: 1px solid var(--border); border-radius: var(--r-lg); }
.ring { width: 64px; height: 64px; flex: none; position: relative; }
.ring .score { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-editorial); font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.co-health-main .ht { font-size: 13px; font-weight: 700; }
.co-health-main .hs { font-size: 12px; color: var(--text-2); margin-top: 3px; }

/* action item rows */
.co-list { margin-top: 14px; display: flex; flex-direction: column; }
.co-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border-radius: var(--r-lg); transition: background 120ms; }
.co-item + .co-item { box-shadow: 0 -1px 0 var(--border); }
.co-item:hover { background: var(--bg-hover); }
.co-item:hover + .co-item { box-shadow: none; }
.co-ic { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; }
.co-ic svg { width: 15px; height: 15px; stroke-width: 2; }
.co-ic.crit { background: var(--crit-soft); color: var(--crit); }
.co-ic.warn { background: var(--warn-soft); color: var(--warn); }
.co-ic.ok { background: var(--ok-soft); color: var(--ok); }
.co-item-main { min-width: 0; flex: 1; }
.co-item-t { font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.co-item-w { font-size: 12px; color: var(--text-2); margin-top: 3px; line-height: 1.5; }
.co-item-w b { color: var(--text); font-weight: 600; }

.sbadge { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; border-radius: var(--radius-xs); font-family: var(--font-mono); font-size: 9.5px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; flex: none; }
.sbadge.crit { color: var(--crit); background: var(--crit-soft); }
.sbadge.warn { color: var(--warn); background: var(--warn-soft); }
.sbadge.ok { color: var(--ok); background: var(--ok-soft); }

/* kpi tiles strip */
.co-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.kpi { background: var(--bg-sub); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 12px; }
.kpi-l { font-size: 11px; color: var(--text-3); font-weight: 500; }
.kpi-v { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.kpi-d { font-size: 11px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-d.up { color: var(--ok); } .kpi-d.down { color: var(--crit); }

/* ---------- problem → solution ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 44px; }
.panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 28px; }
.panel-label { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.panel.before { background: var(--bg-sub); box-shadow: none; }
.panel.before .panel-label { color: var(--crit); }
.panel.after .panel-label { color: var(--ok); }
.panel h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 12px 0 0; }
.panel p { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 10px 0 0; }
.panel-list { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.panel-list li { display: flex; gap: 11px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.panel-list li svg { width: 17px; height: 17px; flex: none; margin-top: 1px; stroke-width: 2; }
.panel.before li svg { color: var(--text-4); }
.panel.after li svg { color: var(--ok); }
.panel.after li b { color: var(--text); font-weight: 600; }

/* ---------- section spacing ---------- */
.band { padding: 84px 0; }
.band-sub { background: var(--bg-band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.step { position: relative; }
.step-n { font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; color: var(--accent); }
.step-ic { width: 46px; height: 46px; border-radius: var(--r-lg); background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-soft); display: grid; place-items: center; margin: 16px 0 0; color: var(--text); }
.step-ic svg { width: 21px; height: 21px; stroke-width: 2; }
.step h3 { font-size: 17px; font-weight: 700; letter-spacing: -0.02em; margin: 18px 0 0; }
.step p { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 9px 0 0; text-wrap: pretty; }

/* ---------- features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.feat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 24px; }
.feat-ic { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--accent-soft); display: grid; place-items: center; color: var(--accent); }
.feat-ic svg { width: 20px; height: 20px; stroke-width: 2; }
.feat h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; margin: 18px 0 0; }
.feat p { font-size: 13.5px; line-height: 1.6; color: var(--text-2); margin: 9px 0 0; text-wrap: pretty; }
.feat-wide { grid-column: span 2; }

/* ---------- integrations ---------- */
.integ { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.integ-logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.ilogo { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px; border-radius: var(--r-pill); background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-soft); font-size: 13px; font-weight: 600; color: var(--text-2); }
.ilogo svg { width: 16px; height: 16px; stroke-width: 2; color: var(--text-3); }
.ilogo.live svg { color: var(--ok); }
.ilogo .soon { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--border-2); padding: 1px 5px; border-radius: var(--radius-xs); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat { padding: 4px 0; }
.stat-v { font-family: var(--font-editorial); font-weight: 500; font-size: 46px; line-height: 1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; color: var(--text); }
.stat-l { font-size: 13px; color: var(--text-2); margin-top: 12px; line-height: 1.5; }

/* ---------- quote ---------- */
.quote { max-width: 860px; margin: 0 auto; text-align: center; }
.quote p { font-family: var(--font-editorial); font-weight: 400; font-size: clamp(22px, 3vw, 31px); line-height: 1.4; letter-spacing: -0.015em; margin: 0; text-wrap: balance; color: var(--text); }
.quote .by { font-family: var(--font-ui); font-size: 13px; color: var(--text-3); margin-top: 24px; letter-spacing: 0.01em; }

/* ---------- FAQ ---------- */
.faq { margin-top: 44px; border-top: 1px solid var(--border-2); }
.faq details { border-bottom: 1px solid var(--border-2); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 4px; cursor: pointer; list-style: none; font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev { width: 18px; height: 18px; flex: none; color: var(--text-3); transition: transform 200ms var(--ease); }
.faq details[open] summary .chev { transform: rotate(180deg); }
.faq-a { padding: 0 4px 24px; font-size: 14.5px; line-height: 1.65; color: var(--text-2); max-width: 720px; text-wrap: pretty; }

/* ---------- CTA + lead form ---------- */
.cta { background: var(--bg-card); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow-card); padding: 56px; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(620px 320px at 88% -20%, rgba(255,90,44,0.08), transparent 60%); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; position: relative; }
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.06; margin: 14px 0 0; text-wrap: balance; }
.cta h2 em { font-family: var(--font-editorial); font-style: italic; font-weight: 500; color: var(--accent); }
.cta p { font-size: 15px; line-height: 1.6; color: var(--text-2); margin: 16px 0 0; max-width: 420px; }
.cta-points { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cta-points li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); }
.cta-points li svg { width: 16px; height: 16px; color: var(--ok); stroke-width: 2; flex: none; }

.lead { background: var(--bg-sub); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 26px; }
.lead h3 { font-size: 16px; font-weight: 700; letter-spacing: -0.015em; margin: 0; }
.lead .field { margin-top: 16px; }
.lead label { display: block; font-size: 12px; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.lead input, .lead select {
  width: 100%; height: 44px; padding: 0 13px; border-radius: var(--r-sm);
  background: var(--bg-card); border: 1px solid var(--border-2);
  color: var(--text); font-family: var(--font-ui); font-size: 14px;
  transition: border-color 140ms, box-shadow 140ms;
}
.lead input::placeholder { color: var(--text-4); }
.lead input:focus, .lead select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lead select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%239a958a' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.lead .btn { width: 100%; margin-top: 20px; }
.lead-fine { font-size: 11.5px; color: var(--text-3); margin: 14px 0 0; line-height: 1.5; text-align: center; }
.lead-demo-sub { font-size: 14px; line-height: 1.6; color: var(--text-2); margin: 12px 0 0; }
.lead-done { display: none; text-align: center; padding: 18px 4px; }
.lead-done svg { width: 42px; height: 42px; color: var(--ok); margin: 0 auto 14px; stroke-width: 2; }
.lead-done h3 { font-size: 17px; }
.lead-done p { font-size: 13.5px; color: var(--text-2); margin: 8px 0 0; line-height: 1.55; }
.lead.sent form { display: none; }
.lead.sent .lead-done { display: block; }

/* ---------- footer ---------- */
.footer { background: var(--bg-band); border-top: 1px solid var(--border); padding: 56px 0 36px; margin-top: 8px; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { font-size: 13px; line-height: 1.6; color: var(--text-3); max-width: 280px; }
.foot-col h4 { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 16px; }
.foot-col a { display: block; font-size: 13.5px; color: var(--text-2); padding: 6px 0; transition: color 120ms; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border); }
.foot-bottom span { font-size: 12.5px; color: var(--text-3); }
.foot-social { display: flex; gap: 8px; }
.foot-social a { width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--border-2); background: var(--bg-card); display: grid; place-items: center; color: var(--text-2); transition: color 120ms, border-color 120ms; }
.foot-social a:hover { color: var(--text); border-color: var(--text-4); }
.foot-social svg { width: 16px; height: 16px; stroke-width: 2; }

/* ---------- page header (interior pages) ---------- */
.phead { padding: 76px 0 12px; }
.phead h1 { font-weight: 800; font-size: clamp(34px, 4.6vw, 54px); line-height: 1.04; letter-spacing: -0.04em; margin: 18px 0 0; text-wrap: balance; }
.phead h1 em { font-family: var(--font-editorial); font-style: italic; font-weight: 500; color: var(--accent); }
.phead p { font-size: 17px; line-height: 1.6; color: var(--text-2); margin: 20px 0 0; max-width: 600px; }

/* ---------- legal / policy pages ---------- */
.legal { max-width: 768px; margin: 0 auto; }
.legal-updated { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-top: 16px; }
.legal-intro { font-size: 17px; line-height: 1.66; color: var(--text-2); margin: 22px 0 0; max-width: 100%; text-wrap: pretty; }
.legal-intro b { color: var(--text); font-weight: 600; }
.legal-toc { margin: 34px 0 0; padding: 20px 22px; background: var(--bg-sub); border: 1px solid var(--border); border-radius: var(--r-lg); }
.legal-toc h4 { font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-3); margin: 0 0 14px; }
.legal-toc ol { margin: 0; padding: 0; list-style: none; counter-reset: toc; columns: 2; column-gap: 28px; }
.legal-toc li { counter-increment: toc; break-inside: avoid; margin-bottom: 9px; }
.legal-toc a { font-size: 13.5px; line-height: 1.4; color: var(--text-2); display: inline-flex; gap: 9px; }
.legal-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-mono); font-size: 11px; color: var(--text-4); flex: none; }
.legal-toc a:hover { color: var(--accent); }
.legal-body { margin-top: 8px; }
.legal-body section { margin-top: 40px; scroll-margin-top: 84px; }
.legal-body h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.022em; color: var(--text); margin: 0 0 14px; display: flex; gap: 12px; align-items: baseline; text-wrap: balance; }
.legal-body h2 .secnum { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--accent); flex: none; }
.legal-body h3 { font-size: 15.5px; font-weight: 600; color: var(--text); margin: 26px 0 8px; }
.legal-body p { font-size: 15px; line-height: 1.72; color: var(--text-2); margin: 0 0 15px; text-wrap: pretty; }
.legal-body p b, .legal-body li b { color: var(--text); font-weight: 600; }
.legal-body ul { margin: 0 0 15px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 9px; }
.legal-body ul li { position: relative; padding-left: 19px; font-size: 14.5px; line-height: 1.62; color: var(--text-2); }
.legal-body ul li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.legal-callout { margin: 18px 0; padding: 16px 20px; border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: var(--r-md); background: var(--bg-sub); }
.legal-callout p { margin: 0; font-size: 14px; line-height: 1.62; color: var(--text); }
.legal-callout p + p { margin-top: 10px; }
.legal-contact { margin-top: 44px; padding: 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--shadow-soft); }
.legal-contact h3 { font-size: 15px; font-weight: 700; margin: 0 0 6px; color: var(--text); }
.legal-contact p { font-size: 14px; line-height: 1.7; color: var(--text-2); margin: 0; }
.legal-contact a { color: var(--accent); text-decoration: none; font-weight: 600; }
@media (max-width: 640px) { .legal-toc ol { columns: 1; } }

/* ---------- chat cutout (hero + why-chat) ---------- */
.chat-thread { display: flex; flex-direction: column; gap: 11px; margin-top: 6px; }
.cmsg-user { align-self: flex-end; max-width: 86%; background: var(--accent); color: var(--accent-on); border-radius: 14px 14px 4px 14px; padding: 10px 13px; font-size: 13px; font-weight: 500; line-height: 1.45; }
.cmsg-bot { align-self: flex-start; max-width: 94%; background: var(--bg-sub); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; padding: 13px; }
.cmsg-bot .ct { font-size: 13px; line-height: 1.58; color: var(--text); }
.cmsg-bot .ct b { font-weight: 600; }
.cmsg-bot .ct .num { font-variant-numeric: tabular-nums; }
.chat-fix { display: flex; align-items: center; gap: 11px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.fixbtn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: var(--r-sm); background: var(--accent); color: var(--accent-on); font-size: 12px; font-weight: 600; }
.fixbtn svg { width: 13px; height: 13px; stroke-width: 2.5; }
.fixnote { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.02em; color: var(--text-3); }
.fixnote svg { width: 12px; height: 12px; stroke-width: 2; }
.chat-input { display: flex; align-items: center; gap: 9px; margin-top: 14px; height: 42px; padding: 0 6px 0 15px; background: var(--bg-card); border: 1px solid var(--border-2); border-radius: var(--r-pill); }
.chat-input span { font-size: 12.5px; color: var(--text-4); flex: 1; }
.chat-input .send { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent); display: grid; place-items: center; color: var(--accent-on); }
.chat-input .send svg { width: 14px; height: 14px; stroke-width: 2; }

/* ---------- three-layer loop (read / ask / apply) ---------- */
.layers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.layer { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 26px; display: flex; flex-direction: column; position: relative; }
.layer-phase { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.layer-phase .n { width: 22px; height: 22px; border-radius: 7px; background: var(--accent-soft); display: grid; place-items: center; }
.layer-phase .n svg { width: 13px; height: 13px; stroke-width: 2.2; }
.layer h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin: 16px 0 0; }
.layer > p { font-size: 13.5px; line-height: 1.6; color: var(--text-2); margin: 9px 0 0; text-wrap: pretty; }
.layer-ex { list-style: none; margin: 18px 0 0; padding: 17px 0 0; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.layer-ex li { display: flex; gap: 9px; font-size: 12.5px; line-height: 1.45; color: var(--text-2); }
.layer-ex li svg { width: 15px; height: 15px; flex: none; margin-top: 1px; color: var(--accent); stroke-width: 2; }
.layer-ex li b { color: var(--text); font-weight: 600; }

/* ---------- real report block ---------- */
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.report-pot { display: inline-flex; align-items: baseline; gap: 7px; }
.report-pot .v { font-family: var(--font-editorial); font-weight: 500; font-size: 26px; letter-spacing: -0.02em; color: var(--ok); font-variant-numeric: tabular-nums; }
.report-pot .l { font-size: 11.5px; color: var(--text-2); }
.report-flags { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.rflag { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: var(--r-lg); background: var(--bg-sub); border: 1px solid var(--border); }
.rflag-ic { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; }
.rflag-ic svg { width: 16px; height: 16px; stroke-width: 2; }
.rflag-ic.crit { background: var(--crit-soft); color: var(--crit); }
.rflag-ic.warn { background: var(--warn-soft); color: var(--warn); }
.rflag-ic.ok { background: var(--ok-soft); color: var(--ok); }
.rflag-main { min-width: 0; flex: 1; }
.rflag-t { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.rflag-w { font-size: 12.5px; color: var(--text-2); margin-top: 4px; line-height: 1.55; text-wrap: pretty; }
.rflag-w b { color: var(--text); font-weight: 600; }
.rflag-est { font-family: var(--font-mono); font-size: 11px; color: var(--ok); margin-top: 6px; letter-spacing: 0.01em; }
.report-foot { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }
.report-foot svg { width: 14px; height: 14px; flex: none; stroke-width: 2; color: var(--text-3); }

/* ---------- ROI math ---------- */
.roi { display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: stretch; margin-top: 48px; }
.roi-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 34px; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.roi-card.pay { background: var(--bg-sub); box-shadow: none; }
.roi-l { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-3); }
.roi-v { font-family: var(--font-editorial); font-weight: 500; font-size: clamp(38px, 5vw, 58px); line-height: 1; letter-spacing: -0.025em; margin-top: 16px; font-variant-numeric: tabular-nums; }
.roi-v small { font-size: 0.42em; color: var(--text-3); font-family: var(--font-ui); font-weight: 500; letter-spacing: 0; }
.roi-card.found .roi-v { color: var(--accent); }
.roi-sub { font-size: 13px; color: var(--text-2); margin-top: 14px; line-height: 1.55; }
.roi-arrow { display: grid; place-items: center; color: var(--text-4); }
.roi-arrow svg { width: 34px; height: 34px; stroke-width: 1.5; }

/* ---------- pricing teaser (landing) ---------- */
.ptiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 48px; }
.ptier { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--r-xl); box-shadow: var(--shadow-card); padding: 24px; display: flex; flex-direction: column; }
.ptier.on { border-color: var(--accent); }
.ptier .pflag { font-family: var(--font-mono); font-size: 9px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); height: 14px; }
.ptier .pn { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.ptier .pp { display: flex; align-items: baseline; gap: 4px; margin-top: 14px; }
.ptier .pp .amt { font-family: var(--font-editorial); font-weight: 500; font-size: 30px; line-height: 1; letter-spacing: -0.02em; }
.ptier .pp .per { font-size: 11.5px; color: var(--text-3); }
.ptier .pc { font-size: 12.5px; line-height: 1.5; color: var(--text-2); margin-top: 14px; flex: 1; text-wrap: pretty; }
.ptier .pc b { color: var(--text); font-weight: 600; }

/* ---------- responsive: new components ---------- */
@media (max-width: 920px) {
  .layers { grid-template-columns: 1fr; }
  .ptiers { grid-template-columns: 1fr 1fr; }
  .roi { grid-template-columns: 1fr; gap: 14px; }
  .roi-arrow { transform: rotate(90deg); }
}
@media (max-width: 640px) {
  .ptiers { grid-template-columns: 1fr; }
}

/* ---------- soft shadow for per-page inline card classes ---------- */
.tier, .principle, .who-card, .pcard, .blog-feature, .ptable { box-shadow: var(--shadow-card); }
.panel.before, .tier-feats, .ptable thead th { box-shadow: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid, .integ, .cta-grid { grid-template-columns: 1fr; gap: 40px; }
  .split, .steps, .feat-grid, .stats, .foot-grid { grid-template-columns: 1fr 1fr; }
  .feat-wide { grid-column: span 2; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .nav-links, .nav-login { display: none; }
  .nav-burger { display: inline-flex; }
  .hero { padding: 56px 0 48px; }
  .band { padding: 56px 0; }
  .split, .steps, .feat-grid, .stats, .foot-grid, .co-kpis { grid-template-columns: 1fr; }
  .feat-wide { grid-column: span 1; }
  .cta { padding: 32px 24px; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   MOTION + RICHNESS LAYER (marketing only)
   Ambient motion gated on no-preference + html.js fallback.
   ============================================================ */

/* aurora drift on the warm background */
@media (prefers-reduced-motion: no-preference) {
  body::before { animation: aurora-drift 26s ease-in-out infinite alternate; }
  @keyframes aurora-drift {
    0%   { transform: translate3d(-1.5%, -1%, 0) scale(1); }
    100% { transform: translate3d(2%, 1.5%, 0) scale(1.1); }
  }
}

/* scroll reveal — only hides when JS is live AND motion is allowed */
@media (prefers-reduced-motion: no-preference) {
  html.js [data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
    transition-delay: var(--rd, 0ms);
    will-change: opacity, transform;
  }
  html.js [data-reveal="left"]  { transform: translateX(-28px); }
  html.js [data-reveal="right"] { transform: translateX(28px); }
  html.js [data-reveal="scale"] { transform: translateY(22px) scale(0.97); }
  html.js [data-reveal].in { opacity: 1; transform: none; }
}

/* card hover lift + coral edge */
.feat, .layer, .ptier, .tier, .principle, .who-card, .pcard, .rflag {
  transition: transform 0.26s var(--ease), border-color 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.feat:hover, .layer:hover, .ptier:hover, .principle:hover, .who-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 36%, var(--border));
  box-shadow: 0 1px 2px rgba(28,25,20,0.05), 0 22px 46px -22px rgba(255,90,44,0.30);
}
.tier:hover, .pcard:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); }

/* primary button sheen */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; left: -130%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-18deg); pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover::after { animation: btn-sheen 0.85s var(--ease); }
  @keyframes btn-sheen { to { left: 150%; } }
}

/* floating chips around hero cutout */
.hero-cutout { position: relative; }
.float-chip {
  position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-pop);
  font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums;
}
.float-chip .lbl { color: var(--text-3); font-weight: 600; }
.float-chip .fdot { width: 7px; height: 7px; border-radius: 50%; }
.float-chip .up { color: var(--ok); } .float-chip .down { color: var(--crit); }
.chip-a { top: -26px; left: 14px; }
.chip-b { bottom: -26px; right: -4px; }
.chip-c { bottom: -26px; left: 54px; }
@media (prefers-reduced-motion: no-preference) {
  .float-chip { animation: floaty 6.5s ease-in-out infinite; }
  .chip-b { animation-delay: -2.2s; } .chip-c { animation-delay: -4.4s; }
  @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
}
@media (max-width: 900px) { .float-chip { display: none; } }

/* hero chat build-in */
.chat-step { opacity: 0; transform: translateY(8px); }
.chat-step.show { opacity: 1; transform: none; transition: opacity 0.42s var(--ease), transform 0.42s var(--ease); }
html:not(.js) .chat-step { opacity: 1; transform: none; }
.typing { display: inline-flex; gap: 5px; align-items: center; padding: 13px 15px; background: var(--bg-sub); border: 1px solid var(--border); border-radius: 14px 14px 14px 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-4); display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
  .typing i { animation: blink 1.25s infinite; }
  .typing i:nth-child(2) { animation-delay: 0.18s; }
  .typing i:nth-child(3) { animation-delay: 0.36s; }
  @keyframes blink { 0%,60%,100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
}

/* capability marquee */
.marquee-band { padding: 38px 0; background: var(--bg-band); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); position: relative; z-index: 1; overflow: hidden; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee + .marquee { margin-top: 12px; }
.marquee-row { display: flex; gap: 12px; width: max-content; }
@media (prefers-reduced-motion: no-preference) {
  .marquee-row { animation: scroll-x 42s linear infinite; }
  .marquee-row.rev { animation-direction: reverse; }
  .marquee-band:hover .marquee-row { animation-play-state: paused; }
  @keyframes scroll-x { to { transform: translateX(-50%); } }
}
.qchip { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 17px; border-radius: var(--r-pill); background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow-soft); font-size: 13.5px; font-weight: 500; color: var(--text); white-space: nowrap; }
.qchip svg { width: 15px; height: 15px; color: var(--accent); stroke-width: 2; flex: none; }

/* report scan sweep on reveal */
.report-scan { position: relative; }
@media (prefers-reduced-motion: no-preference) {
  .report-scan.in::after {
    content: ""; position: absolute; left: 1px; right: 1px; top: 1px; height: 44%;
    border-radius: var(--r-xl) var(--r-xl) 0 0; pointer-events: none;
    background: linear-gradient(180deg, rgba(255,90,44,0.12), transparent);
    animation: scandown 1.7s var(--ease) 0.2s forwards; opacity: 0;
  }
  @keyframes scandown { 0% { transform: translateY(-25%); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(190%); opacity: 0; } }
}

/* nav shadow once scrolled */
.nav { transition: box-shadow 0.2s var(--ease), background 0.2s var(--ease); }
.nav.scrolled { box-shadow: 0 1px 0 var(--border), 0 12px 30px -20px rgba(28,25,20,0.22); }
