/* ══════════════════════════════════════════════════════════════════════════
   InventDB — website-v42 design system  ·  "The Business Engine for AI-built apps"
   Modern, minimal, confident. Light (default) + dark via html[data-theme].
   Brand carried from v39: InventDB indigo, rocket mark, Inter Tight + Inter.
   New in v42: frosted nav, aura gradients, gradient display type, bento tiles,
   layered stack visual, terminal code panels. Tokens only — no raw hex in markup.
   Used by the v42 shell pages (index.html, build.html). Inner pages keep site.css.
   ══════════════════════════════════════════════════════════════════════════ */

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

/* ── tokens · light (DEFAULT) ───────────────────────────────────────────── */
:root,
html[data-theme="light"] {
  --canvas:   #f7f5f1;
  --surface:  #ffffff;
  --raised:   #ffffff;
  --inset:    #efece6;
  --ink:      #16131d;            /* dark band (CTA / footer) in light mode */

  --line:        rgba(30, 26, 40, .09);
  --line-strong: rgba(30, 26, 40, .16);

  --fg:       #201c28;
  --fg-2:     #5d5768;
  --fg-3:     #8f899b;
  --fg-3:     #8f899b;
  --fg-on-ink:   #f3f0f8;
  --fg-on-ink-2: rgba(243, 240, 248, .66);
  --fg-on-ink-3: rgba(243, 240, 248, .40);

  --accent:      #48176a;         /* InventDB indigo (brand, from v39) */
  --accent-hi:   #7a3fb8;
  --accent-2:    #8b4fd8;
  --on-accent:   #ffffff;
  --accent-tint:   rgba(72, 23, 106, .06);
  --accent-tint-2: rgba(72, 23, 106, .12);
  --accent-line:   rgba(72, 23, 106, .28);
  --accent-on-ink: #c6a4ec;

  --grad-display: linear-gradient(92deg, #48176a 10%, #8b4fd8 60%, #b06ae8 95%);
  --grad-rule:    linear-gradient(90deg, #48176a, #8b4fd8);
  --aura-a: rgba(122, 63, 184, .13);
  --aura-b: rgba(72, 23, 106, .08);

  --green:    #187a4a;  --green-bg: #e5f3ea;
  --amber:    #8a6200;  --amber-bg: #f8f1dd;

  --nav-bg:   rgba(247, 245, 241, .78);
  --code-bg:  #171422;            /* terminal panels stay dark in both themes */
  --code-fg:  #e8e3f2;
  --code-dim: rgba(232, 227, 242, .55);
  --code-key: #c6a4ec;
  --code-str: #9fd8b4;

  --shadow-card:  0 1px 2px rgba(17, 14, 26, .05), 0 8px 28px -18px rgba(17, 14, 26, .18);
  --shadow-pop:   0 24px 70px -28px rgba(24, 18, 40, .35), 0 6px 18px -10px rgba(24, 18, 40, .16);
  --shadow-nav:   0 1px 0 var(--line);

  /* shape · type · shell (theme-independent) */
  --r-sm: 9px;  --r-md: 14px;  --r-lg: 20px;  --r-xl: 28px;  --r-pill: 999px;
  --font-display: 'Inter Tight', system-ui, -apple-system, sans-serif;
  --font-ui:      'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    ui-monospace, 'Cascadia Code', 'SF Mono', Menlo, Consolas, monospace;
  --nav-h: 64px;
  --shell: 1160px;
  --ease: cubic-bezier(.22, .61, .36, 1);

  --fs-meta: 12.5px;
  --fs-ui:   15.5px;
  --fs-lead: clamp(1.06rem, .96rem + .55vw, 1.3rem);
  --fs-h3:   clamp(1.06rem, 1rem + .4vw, 1.22rem);
  --fs-h2:   clamp(1.8rem, 1.35rem + 2.2vw, 2.9rem);
  --fs-h1:   clamp(2.7rem, 1.7rem + 5vw, 5.4rem);
}

/* ── tokens · dark (warm near-black — never pure black, never neon) ─────── */
html[data-theme="dark"] {
  --canvas:   #131117;
  --surface:  #1b1821;
  --raised:   #241f2d;
  --inset:    #1e1a26;
  --ink:      #0e0c12;

  --line:        rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .15);

  --fg:       #edeaf1;
  --fg-2:     #a8a1b3;
  --fg-3:     #746d81;
  --fg-on-ink:   #edeaf1;
  --fg-on-ink-2: rgba(237, 234, 241, .64);
  --fg-on-ink-3: rgba(237, 234, 241, .38);

  --accent:      #b793e6;
  --accent-hi:   #cbadf0;
  --accent-2:    #a678e0;
  --on-accent:   #241640;
  --accent-tint:   rgba(183, 147, 230, .10);
  --accent-tint-2: rgba(183, 147, 230, .17);
  --accent-line:   rgba(183, 147, 230, .34);
  --accent-on-ink: #c6a4ec;

  --grad-display: linear-gradient(92deg, #c9a9ef 5%, #b793e6 55%, #8f6ad2 95%);
  --grad-rule:    linear-gradient(90deg, #b793e6, #8f6ad2);
  --aura-a: rgba(183, 147, 230, .10);
  --aura-b: rgba(122, 63, 184, .12);

  --green:    #57bd88;  --green-bg: #19291f;
  --amber:    #e3b75e;  --amber-bg: #2c2517;

  --nav-bg:   rgba(19, 17, 23, .74);
  --code-bg:  #171422;
  --code-fg:  #e8e3f2;
  --code-dim: rgba(232, 227, 242, .55);
  --code-key: #c6a4ec;
  --code-str: #9fd8b4;

  --shadow-card:  none;
  --shadow-pop:   0 26px 80px -30px rgba(0, 0, 0, .8);
  --shadow-nav:   0 1px 0 var(--line);
}

/* ── reset & base ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font-family: var(--font-ui); font-size: var(--fs-ui); line-height: 1.65;
  color: var(--fg-2); background: var(--canvas);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .25s var(--ease), color .25s var(--ease);
}

h1, h2, h3, h4 {
  font-family: var(--font-display); color: var(--fg);
  margin: 0 0 .4em; letter-spacing: -.028em; line-height: 1.04; font-weight: 700;
}
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p  { margin: 0 0 1em; }
a  { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--fg); font-weight: 600; }
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
code, pre { font-family: var(--font-mono); }
::selection { background: var(--accent-tint-2); color: var(--fg); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: var(--r-pill); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.skip-link { position: absolute; left: -9999px; z-index: 300; }
.skip-link:focus {
  left: 14px; top: 14px; background: var(--accent); color: var(--on-accent);
  padding: 9px 16px; border-radius: var(--r-sm); font-weight: 600;
}

/* ── layout scaffolding ─────────────────────────────────────────────────── */
.shell { max-width: var(--shell); margin: 0 auto; padding: 0 22px; }
.sec { padding: clamp(64px, 6vw + 30px, 120px) 0; position: relative; }
.sec-tight { padding-top: clamp(30px, 3vw, 56px); }
.sec-head { max-width: 720px; margin-bottom: clamp(30px, 4vw, 54px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head p { font-size: var(--fs-lead); }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-meta); font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 14px;
}
.kicker::before {
  content: ""; width: 22px; height: 2px; border-radius: 2px;
  background: var(--grad-rule); display: inline-block;
}
.sec-head.center .kicker::before { display: none; }
.sec-head.center .kicker {
  border: 1px solid var(--accent-line); background: var(--accent-tint);
  border-radius: var(--r-pill); padding: 6px 14px;
}

.grad {
  background: var(--grad-display);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ── reveal on scroll ───────────────────────────────────────────────────── */
.rv { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.rv.in { opacity: 1; transform: none; }
html.no-js .rv { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ── promo bar ──────────────────────────────────────────────────────────── */
.promo {
  display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap;
  padding: 9px 18px; font-size: 13.5px; text-align: center;
  background: var(--ink); color: var(--fg-on-ink-2); text-decoration: none;
}
.promo strong { color: var(--fg-on-ink); }
.promo:hover { text-decoration: none; }
.promo .oc {
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .08em;
  color: var(--accent-on-ink); border: 1px solid rgba(198, 164, 236, .4);
  border-radius: var(--r-pill); padding: 2px 10px;
}

/* ── nav (frosted, sticky) ──────────────────────────────────────────────── */
.nv {
  position: sticky; top: 0; z-index: 100;
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px);
  box-shadow: var(--shadow-nav);
}
.nv-inner {
  max-width: var(--shell); margin: 0 auto; padding: 0 22px;
  height: var(--nav-h); display: flex; align-items: center; gap: 26px;
  justify-content: space-between;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand-mark { width: 40px; height: 40px; }
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  letter-spacing: -.025em; color: var(--fg);
}
.nv-links { display: none; align-items: center; gap: 4px; margin-left: 6px; }
.nv-links a {
  color: var(--fg-2); font-size: 14.5px; font-weight: 500;
  padding: 8px 12px; border-radius: var(--r-pill); text-decoration: none !important;
  transition: color .18s var(--ease), background .18s var(--ease);
}
.nv-links a:hover, .nv-links a[aria-current="page"] { color: var(--fg); background: var(--accent-tint); }
.nv-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* Products dropdown: CSS-only, hover + keyboard focus */
.nv-drop { position: relative; }
.nv-drop > a { display: inline-flex; align-items: center; gap: 6px; }
.nv-drop .caret { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.nv-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 240px; z-index: 110;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  padding: 8px; display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease), visibility .16s;
}
.nv-drop:hover .nv-menu, .nv-drop:focus-within .nv-menu { opacity: 1; visibility: visible; transform: none; }
.nv-menu a {
  display: block; padding: 11px 13px; border-radius: 9px;
  font-size: 14.5px; font-weight: 500; color: var(--fg-2) !important;
  background: none !important; text-decoration: none !important;
}
.nv-menu a:hover { background: var(--accent-tint) !important; color: var(--fg) !important; }
.nv-menu a small { display: block; font-size: 12px; color: var(--fg-3); font-weight: 400; }

.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill);
  color: var(--fg-2); transition: border-color .18s var(--ease), color .18s var(--ease);
}
.theme-toggle:hover { border-color: var(--line-strong); color: var(--fg); }
.theme-toggle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
html[data-theme="light"] .theme-toggle .sun  { display: none; }
html[data-theme="dark"]  .theme-toggle .moon { display: none; }

.nv-cta {
  display: none; align-items: center; gap: 7px;
  background: var(--accent); color: var(--on-accent) !important;
  font-weight: 600; font-size: 14.5px; padding: 9px 18px;
  border-radius: var(--r-pill); text-decoration: none !important;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease);
}
.nv-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px var(--accent-line); }

.nv-burger {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-pill); color: var(--fg);
}
.nv-burger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.nv-burger .x { display: none; }
body.drawer-open .nv-burger .menu { display: none; }
body.drawer-open .nv-burger .x { display: block; }

/* mobile drawer, the website-v39 design */
.drawer {
  position: fixed; inset: var(--nav-h) 0 0; z-index: 95;
  background: var(--canvas);
  padding: 18px 22px 40px; overflow-y: auto;
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
body.drawer-open .drawer { opacity: 1; transform: none; visibility: visible; pointer-events: auto; }
.drawer a {
  display: flex; align-items: center; gap: 12px; padding: 16px 8px; min-height: 44px;
  border-bottom: 1px solid var(--line); color: var(--fg);
  font-family: var(--font-display); font-size: 21px; font-weight: 600; letter-spacing: -.02em;
  text-decoration: none !important;
}
.drawer a:hover { color: var(--accent); }
.drawer .drawer-cta {
  margin-top: 22px; justify-content: center; border-bottom: 0;
  background: var(--accent); color: var(--on-accent);
  border-radius: var(--r-pill); font-size: 17px; padding: 14px 24px;
}
.drawer .drawer-cta:hover { color: var(--on-accent); }

@media (min-width: 960px) {
  .nv-links { display: flex; }
  .nv-cta { display: inline-flex; }
  .nv-burger, .drawer { display: none !important; }
}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-ui); font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--r-pill); border: 1px solid transparent;
  text-decoration: none !important; transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 30px -12px var(--accent-line); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--accent-line); background: var(--accent-tint); transform: translateY(-1px); }
.btn-on-ink { background: var(--accent-on-ink); color: #241640; }
.btn-on-ink:hover { transform: translateY(-1px); }
.btn-ghost-ink { background: transparent; color: var(--fg-on-ink); border-color: rgba(243, 240, 248, .28); }
.btn-ghost-ink:hover { border-color: rgba(243, 240, 248, .55); transform: translateY(-1px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; }

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(66px, 8vw, 130px) 0 clamp(40px, 5vw, 80px); overflow: hidden; }
.hero-aura {
  position: absolute; inset: -20% -10% auto; height: 130%; pointer-events: none; z-index: -1;
  background:
    radial-gradient(46% 44% at 22% 18%, var(--aura-a), transparent 70%),
    radial-gradient(40% 42% at 80% 8%,  var(--aura-b), transparent 70%);
}
.hero-grid-dots {
  position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(60% 55% at 50% 12%, #000 0%, transparent 78%);
  mask-image: radial-gradient(60% 55% at 50% 12%, #000 0%, transparent 78%);
}
.hero-inner { max-width: 860px; margin: 0 auto; text-align: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  border: 1px solid var(--accent-line); background: var(--accent-tint);
  color: var(--accent); border-radius: var(--r-pill); padding: 7px 15px;
  font-size: 13px; font-weight: 600; letter-spacing: .02em;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-hi); }
.hero-sub { font-size: var(--fs-lead); max-width: 660px; margin: 18px auto 30px; }
.hero-note { margin-top: 16px; font-size: 13.5px; color: var(--fg-3); }
.hero-note strong { color: var(--fg-2); font-weight: 600; }

/* tool strip under hero */
.tools { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.tools .t-label { flex-basis: 100%; text-align: center; font-size: var(--fs-meta); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 4px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--r-pill); padding: 7px 15px;
  font-size: 13.5px; font-weight: 500; color: var(--fg-2);
}
.chip b { color: var(--fg); font-weight: 600; }

/* ── layered stack visual (app on top · engine underneath) ─────────────── */
.stack { max-width: 780px; margin: clamp(44px, 5vw, 70px) auto 0; position: relative; }
.stack-card {
  border-radius: var(--r-xl); padding: clamp(20px, 3vw, 30px) clamp(20px, 3.4vw, 34px);
  text-align: left; position: relative;
}
.stack-app {
  background: var(--surface); border: 1.5px dashed var(--line-strong);
  box-shadow: var(--shadow-card); z-index: 2;
}
.stack-tag {
  position: absolute; top: -11px; right: 22px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 3px 11px; border-radius: var(--r-pill);
}
.stack-app .stack-tag { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--line); }
.stack-engine .stack-tag { background: var(--green-bg); color: var(--green); border: 1px solid transparent; }
.stack-title { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.stack-title h3 { margin: 0; font-size: 17px; }
.stack-title span { font-size: 13px; color: var(--fg-3); }
.stack-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.stack-chips .chip { padding: 5px 12px; font-size: 12.5px; background: var(--inset); border-color: transparent; }
.stack-join {
  display: flex; justify-content: center; gap: 34px; padding: 8px 0; position: relative; z-index: 1;
}
.stack-join i {
  width: 2px; height: 26px; border-radius: 2px; background: var(--accent-line); position: relative;
}
.stack-join i::after {
  content: ""; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%) rotate(45deg);
  width: 7px; height: 7px; border-right: 2px solid var(--accent-line); border-bottom: 2px solid var(--accent-line);
}
.stack-engine {
  background: linear-gradient(180deg, var(--surface), var(--canvas));
  border: 1px solid var(--accent-line);
  box-shadow: var(--shadow-pop); z-index: 2;
}
html[data-theme="dark"] .stack-engine { background: linear-gradient(180deg, var(--raised), var(--surface)); }
.stack-engine .stack-chips .chip { background: var(--accent-tint); border-color: transparent; color: var(--fg); }
.stack-engine .stack-chips .chip svg { width: 13px; height: 13px; stroke: var(--accent); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ── pain cards ─────────────────────────────────────────────────────────── */
.pains { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .pains { grid-template-columns: repeat(3, 1fr); } }
.pain {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  padding: 24px 24px 18px; box-shadow: var(--shadow-card);
}
.pain .n {
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; color: var(--fg-3);
  display: block; margin-bottom: 12px;
}
.pain h3 { font-size: 16.5px; margin-bottom: 8px; }
.pain p { font-size: 14.5px; margin: 0; }

/* ── bento (the engine pillars) ─────────────────────────────────────────── */
.bento { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 700px)  { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .bento { grid-template-columns: repeat(6, 1fr); } }
.tile {
  grid-column: span 1; position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  padding: 26px 26px 22px; box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.tile:hover { transform: translateY(-3px); border-color: var(--accent-line); }
@media (min-width: 1020px) {
  .tile-3 { grid-column: span 3; }
  .tile-2 { grid-column: span 2; }
  .tile-6 { grid-column: span 6; }
}
@media (min-width: 700px) and (max-width: 1019.9px) {
  .tile-6 { grid-column: span 2; }
}
.tile-ico {
  width: 40px; height: 40px; display: grid; place-items: center; margin-bottom: 16px;
  border-radius: 12px; background: var(--accent-tint-2); color: var(--accent);
}
.tile-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tile h3 { font-size: 17.5px; margin-bottom: 8px; }
.tile p { font-size: 14.5px; margin: 0 0 6px; }
.tile .micro { font-size: 13px; color: var(--fg-3); margin: 8px 0 0; }
.tile .micro code { font-size: 12px; background: var(--inset); border-radius: 6px; padding: 2px 7px; color: var(--fg-2); }
.tile-foundation {
  background: var(--ink); border-color: transparent; color: var(--fg-on-ink-2);
}
.tile-foundation h3 { color: var(--fg-on-ink); }
.tile-foundation p { color: var(--fg-on-ink-2); }
.tile-foundation .tile-ico { background: rgba(198, 164, 236, .14); color: var(--accent-on-ink); }
.tile-foundation .fnd-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tile-foundation .fnd-chips span {
  font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: var(--r-pill);
  border: 1px solid rgba(243, 240, 248, .16); color: var(--fg-on-ink-2);
}

/* ── connect lanes + code panels ────────────────────────────────────────── */
.lanes { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.lane {
  display: flex; flex-direction: column; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  padding: 24px; box-shadow: var(--shadow-card);
}
.lane .lane-k {
  font-size: var(--fs-meta); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}
.lane h3 { font-size: 17px; margin-bottom: 8px; }
.lane p { font-size: 14.5px; }
.lane .code { margin-top: auto; }

.code {
  border-radius: var(--r-md); background: var(--code-bg); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .06);
}
.code-head {
  display: flex; align-items: center; gap: 10px; padding: 9px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.code-dots { display: inline-flex; gap: 5px; }
.code-dots i { width: 9px; height: 9px; border-radius: 50%; background: rgba(232, 227, 242, .18); }
.code-name { font-family: var(--font-mono); font-size: 12px; color: var(--code-dim); }
.code-copy {
  margin-left: auto; background: transparent; border: 1px solid rgba(232, 227, 242, .2);
  color: var(--code-dim); font-size: 11.5px; font-family: var(--font-mono);
  border-radius: 7px; padding: 3px 10px; transition: color .18s var(--ease), border-color .18s var(--ease);
}
.code-copy:hover { color: var(--code-fg); border-color: rgba(232, 227, 242, .45); }
.code pre {
  margin: 0; padding: 14px 16px; overflow-x: auto;
  font-size: 12.8px; line-height: 1.6; color: var(--code-fg);
}
.code .k { color: var(--code-key); }
.code .s { color: var(--code-str); }
.code .d { color: var(--code-dim); }

/* ── variants duo (Serverless / SOAR) ───────────────────────────────────── */
.duo { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
@media (min-width: 880px) { .duo { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.var-card {
  display: flex; flex-direction: column; position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface);
  padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-card);
}
.var-card.featured { border-color: var(--accent-line); box-shadow: var(--shadow-pop); }
.var-card.featured::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad-rule);
}
.var-k {
  font-size: var(--fs-meta); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 12px;
}
.var-card h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); margin-bottom: 4px; }
.var-tag { font-size: 14px; color: var(--fg-2); margin-bottom: 18px; }
.var-list { display: grid; gap: 10px; margin: 0 0 22px; }
.var-list li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: var(--fg-2); }
.var-list li strong { font-weight: 600; }
.var-list svg { flex: none; width: 17px; height: 17px; margin-top: 2px; stroke: var(--accent); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.var-list li.plus svg { stroke: var(--green); }
.var-foot { margin-top: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 26px; color: var(--fg); letter-spacing: -.02em; }
.price small { font-size: 13px; font-weight: 500; color: var(--fg-3); letter-spacing: 0; }
.var-note { flex-basis: 100%; font-size: 12.5px; color: var(--fg-3); margin: 0; }
.duo-bridge {
  text-align: center; font-size: 14px; color: var(--fg-3); margin-top: 18px;
}
.duo-bridge strong { color: var(--fg-2); }

/* ── free tier band ─────────────────────────────────────────────────────── */
.free-band {
  border: 1px solid var(--accent-line); border-radius: var(--r-xl);
  background: linear-gradient(120deg, var(--accent-tint), transparent 55%), var(--surface);
  padding: clamp(24px, 3.4vw, 40px); box-shadow: var(--shadow-card);
  display: grid; gap: 22px; grid-template-columns: 1fr;
}
@media (min-width: 900px) { .free-band { grid-template-columns: 1.1fr 1fr; align-items: center; } }
.free-band h2 { margin-bottom: 8px; }
.free-band .free-p { font-size: var(--fs-lead); margin-bottom: 18px; }
.free-limits { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px) { .free-limits { grid-template-columns: repeat(3, 1fr); } }
.fl {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  padding: 13px 15px;
}
.fl b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--fg); letter-spacing: -.02em; }
.fl span { font-size: 12.5px; color: var(--fg-3); }
.free-fine { font-size: 12.5px; color: var(--fg-3); margin: 14px 0 0; }

/* ── audiences ──────────────────────────────────────────────────────────── */
.who { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .who { grid-template-columns: repeat(3, 1fr); } }
.who-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  padding: 26px; box-shadow: var(--shadow-card);
  transition: transform .22s var(--ease), border-color .22s var(--ease);
}
.who-card:hover { transform: translateY(-3px); border-color: var(--accent-line); }
.who-card .who-k {
  font-size: var(--fs-meta); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); display: block; margin-bottom: 12px;
}
.who-card h3 { font-size: 17.5px; margin-bottom: 8px; }
.who-card p { font-size: 14.5px; margin-bottom: 12px; }
.who-card .who-line { font-size: 13.5px; color: var(--fg-3); border-top: 1px solid var(--line); padding-top: 12px; margin: 0; }

/* ── stats strip ────────────────────────────────────────────────────────── */
.stats {
  display: grid; gap: 0; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  overflow: hidden; box-shadow: var(--shadow-card);
}
@media (min-width: 880px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 26px 24px; border-top: 1px solid var(--line); }
.stat:nth-child(-n+2) { border-top: 0; }
@media (min-width: 880px) {
  .stat { border-top: 0; border-left: 1px solid var(--line); }
  .stat:first-child { border-left: 0; }
}
.stat b {
  display: block; font-family: var(--font-display); font-weight: 800; letter-spacing: -.03em;
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem); color: var(--fg); line-height: 1.05;
}
.stat b em { font-style: normal; background: var(--grad-display); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 13px; color: var(--fg-3); display: block; margin-top: 6px; }
.stats-fine { font-size: 12.5px; color: var(--fg-3); margin: 12px 4px 0; }

/* ── use-case grid ──────────────────────────────────────────────────────── */
.ucs { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
@media (min-width: 880px) { .ucs { grid-template-columns: repeat(4, 1fr); } }
.uc {
  display: flex; flex-direction: column; gap: 4px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  padding: 17px 18px; text-decoration: none !important;
  transition: transform .2s var(--ease), border-color .2s var(--ease);
}
.uc:hover { transform: translateY(-2px); border-color: var(--accent-line); }
.uc b { color: var(--fg); font-weight: 600; font-size: 14.5px; }
.uc span { color: var(--fg-3); font-size: 12.5px; }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  padding: 0 20px; box-shadow: var(--shadow-card);
}
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 12px;
  padding: 17px 0; font-weight: 600; color: var(--fg); font-size: 15px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; margin-left: auto; font-family: var(--font-display); font-size: 20px;
  color: var(--fg-3); transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq details p { font-size: 14.5px; margin: 0 0 18px; }

/* ── ink CTA band ───────────────────────────────────────────────────────── */
.cta-ink {
  position: relative; overflow: hidden; text-align: center;
  background: var(--ink); border-radius: var(--r-xl);
  padding: clamp(46px, 6vw, 84px) clamp(22px, 4vw, 60px);
}
.cta-ink::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(50% 60% at 50% 0%, rgba(139, 79, 216, .22), transparent 70%),
    radial-gradient(34% 44% at 12% 100%, rgba(72, 23, 106, .3), transparent 70%);
}
.cta-ink > * { position: relative; }
.cta-ink h2 { color: var(--fg-on-ink); }
.cta-ink p { color: var(--fg-on-ink-2); font-size: var(--fs-lead); max-width: 620px; margin: 0 auto 28px; }
.cta-ink .fine { font-size: 13px; color: var(--fg-on-ink-3); margin: 18px 0 0; }

/* ── footer ─────────────────────────────────────────────────────────────── */
.ft { border-top: 1px solid var(--line); padding: clamp(44px, 5vw, 70px) 0 34px; }
.ft-grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 880px) { .ft-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; } }
.ft-brand p { font-size: 13.5px; margin: 14px 0 0; max-width: 300px; }
.ft h4 {
  font-size: var(--fs-meta); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--fg-3); margin-bottom: 14px;
}
.ft-col a { display: block; color: var(--fg-2); font-size: 14px; padding: 4px 0; text-decoration: none !important; }
.ft-col a:hover { color: var(--accent); }
.ft-bottom {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px;
  font-size: 12.5px; color: var(--fg-3);
}
.ft-legal { display: flex; gap: 16px; }
.ft-legal a { color: var(--fg-3); }
.ft-legal a:hover { color: var(--accent); }
.ft-tm { font-size: 12px; color: var(--fg-3); margin: 22px 0 0; max-width: 86ch; line-height: 1.55; }

/* ── page steps (build.html) ────────────────────────────────────────────── */
.steps { display: grid; gap: 18px; counter-reset: step; }
.step {
  display: grid; gap: 18px; grid-template-columns: 1fr;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-card);
}
.step > * { min-width: 0; }
@media (min-width: 940px) { .step { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }
.step-n {
  counter-increment: step; display: inline-grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px; margin-bottom: 14px;
  background: var(--accent-tint-2); color: var(--accent);
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
}
.step-n::before { content: counter(step); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14.5px; }
.step .never { font-size: 13.5px; color: var(--fg-3); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 4px; }
.step-body .code + .code { margin-top: 12px; }

.never-list { display: grid; gap: 10px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 700px) { .never-list { grid-template-columns: repeat(2, 1fr); } }
.never-list li {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 13px 15px;
}
.never-list svg { flex: none; width: 16px; height: 16px; margin-top: 3px; stroke: var(--green); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* v45 footer parity: same column footer as the v45 shell */
.ft-grid { grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 36px 44px; }
.ft-brand p { font-size: 14px; color: var(--fg-2); max-width: 30ch; margin: 14px 0 0; }
.ft-col { display: flex; flex-direction: column; gap: 9px; }
.ft-col b { font-size: 12px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 4px; }
.ft-col a { color: var(--fg-2); font-size: 14px; padding: 0; width: fit-content; }
@media (max-width: 819px) {
  .ft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 24px; }
  .ft-brand { grid-column: 1 / -1; }
}

/* ── Early access: the join-the-waitlist modal (waitlist.js injects it) ── */
.wl-overlay {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(24, 21, 32, .52);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .18s var(--ease);
  overflow-y: auto;
}
.wl-overlay[hidden] { display: none; }
.wl-overlay.wl-open { opacity: 1; }
.wl-modal {
  position: relative; width: 100%; max-width: 460px; margin: auto;
  background: var(--surface); color: var(--fg);
  border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 24px 70px -28px rgba(24, 18, 40, .45);
  padding: 34px 34px 30px;
  transform: translateY(8px) scale(.985); transition: transform .18s var(--ease);
}
.wl-open .wl-modal { transform: none; }
.wl-close {
  position: absolute; top: 14px; right: 14px; width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 999px; background: transparent; color: var(--fg-3);
  cursor: pointer; transition: background .15s var(--ease), color .15s var(--ease);
}
.wl-close:hover { background: var(--inset); color: var(--fg); }
.wl-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.wl-eyebrow {
  display: block; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.wl-title { font-family: var(--font-display); font-size: 27px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 10px 0 8px; color: var(--fg); }
.wl-sub { font-size: 14.5px; color: var(--fg-2); line-height: 1.55; margin: 0 0 20px; }
.wl-sub strong { color: var(--fg); font-weight: 600; }
.wl-plan {
  display: inline-block; margin: 0 0 18px; padding: 5px 12px;
  font-size: 12.5px; color: var(--accent); background: rgba(124, 58, 237, .07);
  border: 1px solid rgba(124, 58, 237, .28); border-radius: 999px;
}
.wl-plan strong { font-weight: 600; }
.wl-plan[hidden] { display: none; }
#wl-form { display: block; }
.wl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wl-field { margin-bottom: 13px; text-align: left; }
.wl-field label { display: block; font-size: 12.5px; font-weight: 500; color: var(--fg-2); margin-bottom: 6px; }
.wl-field input, .wl-field select {
  width: 100%; height: 46px; padding: 0 13px;
  font-family: var(--font-ui); font-size: 14.5px; color: var(--fg);
  background: var(--canvas); border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease); appearance: none;
}
.wl-field select { 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='%23908a9b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.wl-field input:focus, .wl-field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 58, 237, .16); }
.wl-field input::placeholder { color: var(--fg-3); }
.wl-submit { width: 100%; justify-content: center; margin-top: 8px; }
.wl-terms { font-size: 11.5px; color: var(--fg-3); text-align: center; margin: 14px 0 0; line-height: 1.5; }
.wl-terms a { color: var(--fg-2); text-decoration: underline; }
.wl-msg { font-size: 13px; text-align: center; margin-top: 12px; min-height: 0; }
.wl-msg.error { color: #b42318; }
.wl-msg.success { color: #187a4a; }
.wl-digits { display: flex; gap: 9px; justify-content: center; margin: 8px 0 20px; }
.wl-digit {
  width: 46px; height: 56px; text-align: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 600; color: var(--fg);
  background: var(--canvas); border: 1px solid var(--line-strong); border-radius: 12px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.wl-digit:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 58, 237, .16); }
.wl-resend { display: block; margin: 14px auto 0; background: none; border: 0; cursor: pointer; font-family: var(--font-ui); font-size: 13px; color: var(--accent); }
.wl-resend:disabled { color: var(--fg-3); cursor: default; }
.wl-resend:not(:disabled):hover { text-decoration: underline; }
.wl-check {
  width: 56px; height: 56px; margin: 4px auto 18px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: #e5f3ea; color: #187a4a;
}
.wl-check svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.wl-step[data-step="verify"], .wl-step[data-step="success"] { text-align: center; }
html[data-theme="dark"] .wl-msg.error { color: #ff9b8f; }
html[data-theme="dark"] .wl-check { background: #19291f; color: #57bd88; }
@media (max-width: 520px) {
  .wl-modal { padding: 30px 20px 24px; border-radius: 18px; }
  .wl-row { grid-template-columns: 1fr; gap: 0; }
  .wl-title { font-size: 24px; }
  .wl-digit { width: 42px; height: 52px; font-size: 20px; }
}

.ft-social { display: flex; gap: 10px; margin-top: 18px; }
.ft-social a {
  width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); border-radius: 999px; color: var(--fg-2);
}
.ft-social a:hover { color: var(--accent); border-color: var(--accent); }
.ft-social svg { width: 16px; height: 16px; }
