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

/* LEO Soul — design system.
   Kadropic Labs brand: Space Grotesk, orange (#ff6600) + cyan (#00e6bb), space-dark.
   Light and dark, theme-aware. */

:root {
  --ink: #17150F;
  --ink-2: #3A362D;
  --muted: #6E695C;
  --faint: #9A9484;
  --bg: #FAF9F5;
  --surface: #FFFFFF;
  --surface-2: #F4F2EC;
  --border: #E7E3D8;
  --border-strong: #D8D3C4;
  --accent: #0E7C66;        /* deep teal — trust/verified */
  --accent-ink: #0A5A4A;
  --accent-soft: #E4F1EC;
  --danger: #B4453A;
  --danger-soft: #F6E7E4;
  --warn: #B87A24;
  --warn-soft: #F7EFD9;
  --ok: #0E7C66;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(23, 21, 15, .05), 0 1px 3px rgba(23, 21, 15, .04);
  --shadow: 0 4px 14px rgba(23, 21, 15, .07);
  --shadow-lg: 0 18px 50px rgba(23, 21, 15, .12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F3F1EA;
    --ink-2: #C9C4B7;
    --muted: #98928380;
    --muted: #9A9384;
    --faint: #6C6659;
    --bg: #0E0F0C;
    --surface: #17180F;
    --surface-2: #1E1F16;
    --border: #2A2B20;
    --border-strong: #383A2C;
    --accent: #35B79A;
    --accent-ink: #6FD3BC;
    --accent-soft: #14251F;
    --danger: #E0776B;
    --danger-soft: #2A1A17;
    --warn: #D9A64A;
    --warn-soft: #2A2211;
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 6px 20px rgba(0,0,0,.45);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.6);
  }
}
:root[data-theme="dark"] {
  --ink: #F3F1EA; --ink-2: #C9C4B7; --muted: #9A9384; --faint: #6C6659;
  --bg: #0E0F0C; --surface: #17180F; --surface-2: #1E1F16; --border: #2A2B20;
  --border-strong: #383A2C; --accent: #35B79A; --accent-ink: #6FD3BC; --accent-soft: #14251F;
  --danger: #E0776B; --danger-soft: #2A1A17; --warn: #D9A64A; --warn-soft: #2A2211;
}
:root[data-theme="light"] {
  --ink: #17150F; --ink-2: #3A362D; --muted: #6E695C; --faint: #9A9484;
  --bg: #FAF9F5; --surface: #FFFFFF; --surface-2: #F4F2EC; --border: #E7E3D8;
  --border-strong: #D8D3C4; --accent: #0E7C66; --accent-ink: #0A5A4A; --accent-soft: #E4F1EC;
  --danger: #B4453A; --danger-soft: #F6E7E4; --warn: #B87A24; --warn-soft: #F7EFD9;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .4em; }
h1 { font-size: 2rem; font-weight: 680; letter-spacing: -.02em; }
h2 { font-size: 1.4rem; font-weight: 640; }
h3 { font-size: 1.08rem; font-weight: 620; }
p { margin: 0 0 1em; color: var(--ink-2); }
small { color: var(--muted); }
code, .mono { font-family: var(--mono); font-size: .86em; }

/* ---------- layout ---------- */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; }
.center { align-items: center; justify-content: center; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.hidden { display: none !important; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }

/* ---------- top nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar .inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 640; color: var(--ink); letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 15px;
}
.brand .sub { color: var(--muted); font-weight: 500; font-size: .82rem; padding-left: 8px; border-left: 1px solid var(--border); margin-left: 4px; }
.nav-links { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.nav-links a { color: var(--ink-2); padding: 7px 12px; border-radius: 8px; font-size: .92rem; font-weight: 520; }
.nav-links a:hover { background: var(--surface-2); text-decoration: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: .92rem; font-weight: 560; line-height: 1;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s;
  white-space: nowrap; text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }
.btn-danger { background: transparent; color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.btn-danger:hover { background: var(--danger-soft); text-decoration: none; }
.btn-sm { padding: 7px 12px; font-size: .85rem; border-radius: 8px; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- cards / surfaces ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.card.pad-lg { padding: 30px; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.divider { height: 1px; background: var(--border); border: 0; margin: 18px 0; }

/* ---------- forms ---------- */
label { display: block; font-size: .86rem; font-weight: 560; color: var(--ink-2); margin-bottom: 6px; }
input, select, textarea {
  width: 100%; font-family: inherit; font-size: .95rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px;
  padding: 11px 13px; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.field { margin-bottom: 16px; }
.help { font-size: .82rem; color: var(--muted); margin-top: 6px; }

/* ---------- badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 620;
  padding: 3px 9px; border-radius: 999px; letter-spacing: .02em; text-transform: uppercase;
}
.badge-accent { background: var(--accent-soft); color: var(--accent-ink); }
.badge-muted { background: var(--surface-2); color: var(--muted); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; }

/* ---------- stat tiles ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.stat .k { font-size: .8rem; color: var(--muted); font-weight: 560; text-transform: uppercase; letter-spacing: .03em; }
.stat .v { font-size: 1.9rem; font-weight: 700; letter-spacing: -.02em; margin-top: 6px; color: var(--ink); }
.stat .m { font-size: .82rem; color: var(--muted); margin-top: 2px; }

/* ---------- table ---------- */
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; padding: 10px 12px; border-bottom: 1px solid var(--border); }
td { padding: 12px; border-bottom: 1px solid var(--border); color: var(--ink-2); }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }

/* ---------- progress / meter ---------- */
.meter { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 999px; transition: width .4s; }
.meter.warn > span { background: var(--warn); }
.meter.danger > span { background: var(--danger); }

/* ---------- toast ---------- */
#toast { position: fixed; bottom: 22px; right: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 10px;
  box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 500; max-width: 340px;
  animation: toast-in .2s ease;
}
.toast.err { background: var(--danger); color: #fff; }
.toast.ok { background: var(--accent-ink); color: #fff; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- auth pages ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .card { padding: 34px 32px; }
.auth-head { text-align: center; margin-bottom: 26px; }
.auth-head .mark { width: 42px; height: 42px; border-radius: 11px; margin: 0 auto 14px; display: grid; place-items: center; background: var(--accent); color: #fff; font-weight: 800; font-size: 22px; }
.auth-alt { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--muted); }

/* ---------- dashboard shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--border); background: var(--surface); padding: 18px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; }
.side .brand { padding: 6px 8px 18px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--ink-2); font-size: .92rem; font-weight: 520; }
.side nav a:hover { background: var(--surface-2); text-decoration: none; }
.side nav a.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
.side .side-foot { margin-top: auto; padding: 10px 8px; border-top: 1px solid var(--border); }
.main { padding: 30px 34px; max-width: 980px; }
.page-head { margin-bottom: 24px; }
.section { margin-bottom: 30px; }

/* ---------- pricing ---------- */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; align-items: start; }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); position: relative; }
.plan .price { font-size: 2.3rem; font-weight: 740; letter-spacing: -.03em; margin: 6px 0; }
.plan .price small { font-size: .95rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: .9rem; color: var(--ink-2); align-items: flex-start; }
.plan li svg { flex: none; margin-top: 3px; color: var(--accent); }
.ribbon { position: absolute; top: 14px; right: 14px; }

/* ---------- misc ---------- */
.kbd { font-family: var(--mono); font-size: .8rem; background: var(--surface-2); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; }
.codebox { background: var(--ink); color: #EDEAE0; border-radius: 10px; padding: 16px; font-family: var(--mono); font-size: .82rem; overflow-x: auto; line-height: 1.6; }
.codebox .tok { color: #7FD6C0; }
.secret-box { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: 10px; padding: 12px 14px; font-family: var(--mono); font-size: .85rem; word-break: break-all; }
.theme-toggle { background: transparent; border: 1px solid var(--border); border-radius: 8px; width: 34px; height: 34px; cursor: pointer; color: var(--ink-2); display: grid; place-items: center; }
.theme-toggle:hover { background: var(--surface-2); }

@media (max-width: 780px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; overflow-x: auto; }
  .side .side-foot { display: none; }
  .main { padding: 22px 18px; }
  .nav-links { display: none; }
}

/* ============================================================= *
 *  MARKETING LAYER v2 — premium. Additive; app classes untouched.
 * ============================================================= */

:root {
  --accent-2: #6366f1;              /* indigo */
  --accent-2-ink: #4f46e5;
  --accent-3: #22d3ee;              /* cyan soul-glow highlight */
  --grad: linear-gradient(110deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 120%);
  --grad-soft: linear-gradient(110deg, color-mix(in srgb,var(--accent) 16%,transparent), color-mix(in srgb,var(--accent-2) 16%,transparent));
  --glow-1: rgba(14,124,102,.28);
  --glow-2: rgba(99,102,241,.26);
  --glow-3: rgba(34,211,238,.18);
  --hairline: color-mix(in srgb, var(--ink) 8%, transparent);
  --glass: color-mix(in srgb, var(--surface) 78%, transparent);
  --card-grad: linear-gradient(180deg, color-mix(in srgb,var(--surface) 100%,transparent), color-mix(in srgb,var(--surface-2) 60%,transparent));
  --ease: cubic-bezier(.22,.61,.36,1);
}
@media (prefers-color-scheme: dark) {
  :root { --accent-2:#818cf8; --accent-2-ink:#a5b4fc; --accent-3:#38e0f5;
    --glow-1:rgba(53,183,154,.26); --glow-2:rgba(129,140,248,.28); --glow-3:rgba(56,224,245,.16);
    --glass: color-mix(in srgb, var(--surface) 66%, transparent); }
}
:root[data-theme="dark"] { --accent-2:#818cf8; --accent-2-ink:#a5b4fc; --accent-3:#38e0f5;
  --glow-1:rgba(53,183,154,.26); --glow-2:rgba(129,140,248,.28); --glow-3:rgba(56,224,245,.16);
  --glass: color-mix(in srgb, var(--surface) 66%, transparent); }
:root[data-theme="light"] { --accent-2:#6366f1; --accent-2-ink:#4f46e5; --accent-3:#22d3ee;
  --glow-1:rgba(14,124,102,.28); --glow-2:rgba(99,102,241,.26); --glow-3:rgba(34,211,238,.18);
  --glass: color-mix(in srgb, var(--surface) 78%, transparent); }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
html, body { overflow-x: clip; max-width: 100%; }
::selection { background: color-mix(in srgb, var(--accent-2) 30%, transparent); }

/* ---- header (server-rendered, inline in each page) ---- */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--hairline); }
.topbar .inner { display: flex; align-items: center; gap: 20px; height: 66px; }
.brand .mark { background: var(--grad); box-shadow: 0 4px 14px var(--glow-1); }
.nav-links { display: flex; gap: 2px; align-items: center; margin-left: 12px; }
.nav-links a { color: var(--ink-2); padding: 8px 13px; border-radius: 9px; font-size: .93rem; font-weight: 520; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--surface-2); text-decoration: none; color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.mkt-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--border-strong); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--ink); place-items: center; margin-left: auto; }
.nav-toggle svg { width: 20px; height: 20px; }
.mobile-menu { display: none; flex-direction: column; gap: 2px; padding: 12px 24px 20px; border-bottom: 1px solid var(--border); background: var(--surface); }
.mobile-menu.open { display: flex; }
.mobile-menu a { color: var(--ink-2); padding: 13px 8px; border-radius: 9px; font-weight: 560; border-bottom: 1px solid var(--hairline); }
.mobile-menu a:last-of-type { border-bottom: 0; }
.mobile-menu .row { margin-top: 12px; }

/* ---- buttons (premium) ---- */
.btn-xl { padding: 16px 30px; font-size: 1.02rem; border-radius: 13px; }
.btn-grad { background: var(--grad); color: #fff; border: 0; background-size: 140% 140%; transition: filter .2s, box-shadow .2s, transform .06s; }
.btn-grad:hover { filter: brightness(1.06) saturate(1.05); box-shadow: 0 12px 34px var(--glow-1), 0 4px 14px var(--glow-2); text-decoration: none; }
.btn-glass { background: var(--glass); color: var(--ink); border: 1px solid var(--border-strong); backdrop-filter: blur(8px); }
.btn-glass:hover { background: var(--surface-2); text-decoration: none; }

/* ---- generic marketing section ---- */
.section-mkt { padding: 100px 0; }
.section-mkt.tight { padding: 64px 0; }
.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); background: var(--accent-soft); padding: 7px 14px; border-radius: 999px; margin-bottom: 20px; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); }
.eyebrow .dot { background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb,var(--accent) 22%,transparent); }
.h-display { font-size: clamp(2.4rem, 6vw, 4.1rem); font-weight: 760; letter-spacing: -.035em; line-height: 1.02; }
.h-section { font-size: clamp(1.8rem, 3.8vw, 2.7rem); font-weight: 740; letter-spacing: -.03em; line-height: 1.08; }
.lead { font-size: clamp(1.06rem, 2vw, 1.28rem); color: var(--muted); line-height: 1.62; }
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- scroll reveal ----
   Gated on the .js class so content is ALWAYS visible without/before JS — the
   fade only applies once site.js has run and can guarantee it reveals again. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 92px 0 44px; text-align: center; }
.hero .container { position: relative; z-index: 2; }
.hero-glow { position: absolute; inset: -30% 0 auto 0; height: 780px; z-index: 0; pointer-events: none;
  background: radial-gradient(560px 380px at 26% 12%, var(--glow-1), transparent 68%),
              radial-gradient(620px 420px at 74% 4%, var(--glow-2), transparent 70%),
              radial-gradient(500px 360px at 52% 30%, var(--glow-3), transparent 72%); }
.hero-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 72%);
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px), linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 46px 46px; }
.hero h1 { margin: 0 auto 24px; max-width: 15ch; }
.hero .lead { max-width: 640px; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-sub { margin-top: 20px; font-size: .86rem; color: var(--faint); }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: center; align-items: center; margin-top: 48px; }
.trust-row .item { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); font-weight: 560; }
.trust-row .item svg { width: 16px; height: 16px; color: var(--accent); }

/* ---- code window ---- */
.window { position: relative; border: 1px solid var(--border-strong); border-radius: 16px; overflow: hidden; background: #0b0d12; text-align: left; max-width: 780px; margin: 52px auto 0;
  box-shadow: 0 40px 80px -30px var(--glow-2), 0 30px 60px -40px rgba(0,0,0,.6); }
.window::before { content: ""; position: absolute; inset: 0; border-radius: 16px; padding: 1px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .5; pointer-events: none; }
.window-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; background: #12151d; border-bottom: 1px solid #222634; }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; background: #3a3f4d; }
.window-bar i.r { background: #ec6a5e; } .window-bar i.y { background: #f4bf50; } .window-bar i.g { background: #61c454; }
.window-bar span { margin-left: 8px; font-family: var(--mono); font-size: .78rem; color: #7d8595; }
.window pre { margin: 0; padding: 22px; overflow-x: auto; font-family: var(--mono); font-size: .84rem; line-height: 1.75; color: #d5dae6; }
.window pre .c { color: #6b7280; } .window pre .k { color: #7fd6c0; } .window pre .s { color: #c3a6ff; } .window pre .n { color: #f0a868; }

/* ---- logo cloud ---- */
.logo-cloud { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; justify-content: center; opacity: .72; }
.logo-cloud .lg { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.cloud-cap { text-align: center; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 22px; font-weight: 600; }

/* ---- bento / features ---- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { position: relative; background: var(--card-grad); border: 1px solid var(--border); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-sm); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .2s; overflow: hidden; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent-2) 40%, var(--border)); }
.feature::after { content: ""; position: absolute; width: 220px; height: 220px; top: -120px; right: -80px; background: radial-gradient(circle, var(--glow-2), transparent 66%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.feature:hover::after { opacity: .8; }
.ficon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-soft); color: var(--accent-ink); margin-bottom: 18px; border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent); }
.ficon svg { width: 22px; height: 22px; stroke-width: 1.8; }
.feature h3 { font-size: 1.1rem; margin-bottom: 9px; }
.feature p { font-size: .93rem; margin: 0; color: var(--muted); line-height: 1.6; }
.feature.wide { grid-column: span 2; }

/* ---- steps ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; padding: 30px 28px; background: var(--card-grad); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); }
.step .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 760; font-size: 1.05rem; background: var(--grad); color: #fff; margin-bottom: 16px; box-shadow: 0 6px 16px var(--glow-1); }
.step h3 { font-size: 1.08rem; }
.step p { font-size: .93rem; color: var(--muted); margin: 0; }

/* ---- comparison ---- */
.compare { max-width: 880px; margin: 0 auto; border: 1px solid var(--border); border-radius: 18px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.compare .crow { display: grid; grid-template-columns: 1.5fr 1fr 1fr; }
.compare .crow > div { padding: 16px 22px; border-bottom: 1px solid var(--border); font-size: .93rem; }
.compare .crow:last-child > div { border-bottom: 0; }
.compare .chead > div { font-weight: 700; background: var(--surface-2); }
.compare .chead .us { color: var(--accent-ink); }
.compare .crow > div:not(:first-child) { border-left: 1px solid var(--border); text-align: center; }
.compare .crow > div:last-child { background: color-mix(in srgb, var(--accent) 5%, transparent); font-weight: 560; }
.compare .muted-cell { color: var(--faint); }
.compare .yes { color: var(--accent); } .compare .no { color: var(--faint); }

/* ---- metrics band ---- */
.band { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; text-align: center; }
.metric .big { font-size: clamp(2rem, 4.4vw, 2.9rem); font-weight: 780; letter-spacing: -.035em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metric .lbl { font-size: .88rem; color: var(--muted); margin-top: 6px; }

/* ---- pricing ---- */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; background: var(--card-grad); border: 1px solid var(--border); border-radius: 20px; padding: 30px 26px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s; }
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.plan.featured { border-color: transparent; box-shadow: var(--shadow-lg); }
.plan.featured::before { content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1.5px; background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan h3 { font-size: 1.15rem; }
.plan .price { font-size: 2.5rem; font-weight: 780; letter-spacing: -.04em; margin: 8px 0 2px; }
.plan .price small { font-size: .95rem; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .price .yr { font-size: .8rem; color: var(--muted); font-weight: 500; display: block; letter-spacing: 0; margin-top: 4px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: .9rem; color: var(--ink-2); align-items: flex-start; }
.plan li svg { flex: none; margin-top: 3px; color: var(--accent); }
.ribbon { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--grad); color: #fff; font-size: .66rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 5px 13px; border-radius: 999px; box-shadow: 0 6px 16px var(--glow-2); }
.bill-toggle { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 5px; margin: 22px auto 0; }
.bill-toggle button { border: 0; background: transparent; padding: 9px 20px; border-radius: 999px; font: inherit; font-size: .9rem; font-weight: 620; color: var(--muted); cursor: pointer; transition: all .15s; }
.bill-toggle button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.bill-toggle .save { font-size: .74rem; color: var(--accent-ink); font-weight: 700; }

/* ---- big CTA ---- */
.cta-band { position: relative; overflow: hidden; border-radius: 26px; padding: 72px 44px; text-align: center; background: #0b0d12; color: #fff; box-shadow: var(--shadow-lg); border: 1px solid #1c2130; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 300px at 30% 0%, var(--glow-1), transparent 62%), radial-gradient(600px 320px at 78% 120%, var(--glow-2), transparent 60%); pointer-events: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; } .cta-band p { color: rgba(255,255,255,.82); max-width: 540px; margin: 0 auto 28px; }
.cta-band .btn-secondary { background: #fff; color: #0b0d12; border: 0; } .cta-band .btn-secondary:hover { background: #eee; }
.cta-band .btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.45); } .cta-band .btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---- faq ---- */
.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); overflow: hidden; transition: border-color .2s; }
.faq-item.open { border-color: color-mix(in srgb, var(--accent-2) 40%, var(--border)); }
.faq-q { width: 100%; text-align: left; background: transparent; border: 0; padding: 21px 24px; font: inherit; font-size: 1.02rem; font-weight: 620; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq-q .chev { transition: transform .25s var(--ease); color: var(--muted); flex: none; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); color: var(--accent); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.faq-item.open .faq-a { max-height: 460px; }
.faq-a p { padding: 0 24px 22px; margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.6; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 40px; }
.site-footer .cols { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 30px; padding: 64px 0 38px; }
.site-footer h4 { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 16px; font-weight: 700; }
.site-footer a { display: block; color: var(--muted); font-size: .92rem; padding: 6px 0; }
.site-footer a:hover { color: var(--ink); text-decoration: none; }
.site-footer .foot-brand p { font-size: .9rem; color: var(--muted); max-width: 32ch; margin-top: 14px; }
.site-footer .foot-brand .backlink { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: .86rem; font-weight: 560; color: var(--accent-ink); }
.site-footer .foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 24px 0; border-top: 1px solid var(--border); font-size: .84rem; color: var(--faint); }
.site-footer .foot-bottom a { display: inline; color: var(--faint); }
.site-footer .foot-bottom a:hover { color: var(--ink); }

/* ---- docs ---- */
.docs-shell { display: grid; grid-template-columns: 244px 1fr; gap: 40px; max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 80px; }
.docs-nav { position: sticky; top: 84px; align-self: start; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 8px; }
.docs-nav h5 { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin: 20px 0 8px; font-weight: 700; }
.docs-nav h5:first-child { margin-top: 0; }
.docs-nav a { display: block; color: var(--ink-2); font-size: .9rem; padding: 6px 12px; border-radius: 8px; border-left: 2px solid transparent; }
.docs-nav a:hover { background: var(--surface-2); text-decoration: none; }
.docs-nav a.active { color: var(--accent-ink); border-left-color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.docs-content { min-width: 0; max-width: 760px; }
.docs-content h2 { font-size: 1.7rem; letter-spacing: -.02em; margin: 46px 0 14px; padding-top: 20px; scroll-margin-top: 84px; }
.docs-content h2:first-child { margin-top: 0; padding-top: 0; }
.docs-content h3 { font-size: 1.16rem; margin: 30px 0 10px; scroll-margin-top: 84px; }
.docs-content p, .docs-content li { color: var(--ink-2); line-height: 1.7; font-size: .98rem; }
.docs-content ul, .docs-content ol { padding-left: 22px; margin: 0 0 18px; }
.docs-content li { margin-bottom: 6px; }
.docs-content pre { background: #0b0d12; color: #d5dae6; border: 1px solid #1c2130; border-radius: 12px; padding: 18px; overflow-x: auto; font-family: var(--mono); font-size: .84rem; line-height: 1.7; margin: 0 0 20px; }
.docs-content pre .c { color: #6b7280; } .docs-content pre .k { color: #7fd6c0; } .docs-content pre .s { color: #c3a6ff; }
.docs-content :not(pre) > code { background: var(--surface-2); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-family: var(--mono); font-size: .86em; color: var(--accent-ink); }
.docs-content table { margin: 0 0 20px; }
.callout { border: 1px solid color-mix(in srgb,var(--accent) 30%,transparent); background: var(--accent-soft); border-radius: 12px; padding: 16px 18px; margin: 0 0 20px; font-size: .93rem; color: var(--ink-2); }
.callout strong { color: var(--accent-ink); }
.anchor-h { display:inline-flex; align-items:center; gap:8px; }

/* ---- legal prose ---- */
.legal { max-width: 760px; margin: 0 auto; padding: 20px 0 40px; }
.legal h2 { font-size: 1.35rem; margin: 34px 0 10px; letter-spacing: -.02em; }
.legal p, .legal li { color: var(--ink-2); line-height: 1.75; }
.legal ul { padding-left: 22px; }
.legal .updated { color: var(--faint); font-size: .88rem; }

.prose { max-width: 720px; margin: 0 auto; }

@media (max-width: 980px) {
  .bento, .steps, .metrics { grid-template-columns: 1fr 1fr; }
  .feature.wide { grid-column: span 2; }
  .plans-grid { grid-template-columns: 1fr 1fr; }
  .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-nav { position: static; max-height: none; display: none; }
}
@media (max-width: 700px) {
  .section-mkt { padding: 70px 0; }
  .bento, .steps, .metrics, .plans-grid, .site-footer .cols { grid-template-columns: 1fr; }
  .feature.wide { grid-column: span 1; }
  .nav-links, .mkt-actions { display: none; }
  .nav-toggle { display: grid; }
  .topbar .inner { gap: 12px; }
  .compare .crow { grid-template-columns: 1.3fr .8fr .8fr; }
  .compare .crow > div { padding: 13px 12px; font-size: .84rem; }
  .cta-band { padding: 50px 24px; }
  .hero { padding: 60px 0 30px; }
}

/* ============================================================= *
 *  KADROPIC LABS BRAND IDENTITY — Space Grotesk · electric blue → cyan → teal.
 *  Deep-tech / deep-space palette. Appended last so it wins the cascade:
 *  retargets accent + surface tokens for a cohesive light & dark look.
 * ============================================================= */
:root {
  --font-display: 'Space Grotesk', var(--font);
  /* light — cool neutrals + electric blue */
  --ink: #0e1626; --ink-2: #38445a; --muted: #64708a; --faint: #9aa4b8;
  --bg: #f6f8fc; --surface: #ffffff; --surface-2: #eef2f9;
  --border: #e4e9f2; --border-strong: #d2dae8;
  --accent: #0a6cf5; --accent-ink: #0a52c8; --accent-soft: #e9f1ff;
  --accent-2: #0891b2; --accent-2-ink: #0e7490; --accent-3: #06d6bd;
  --ok: #0e9f6e;
  --grad: linear-gradient(110deg, #0a6cf5 0%, #11a6d9 50%, #06d6bd 120%);
  --grad-soft: linear-gradient(110deg, color-mix(in srgb,#0a6cf5 15%,transparent), color-mix(in srgb,#06d6bd 15%,transparent));
  --glow-1: rgba(10,108,245,.26); --glow-2: rgba(8,145,178,.24); --glow-3: rgba(6,214,189,.16);
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef2f8; --ink-2: #c2cad8; --muted: #8b96a9; --faint: #5f6b80;
    --bg: #080b12; --surface: #0e1420; --surface-2: #141c2b;
    --border: #1e2738; --border-strong: #2c3850;
    --accent: #4d9bff; --accent-ink: #82b6ff; --accent-soft: #0e1c33;
    --accent-2: #22d3ee; --accent-2-ink: #67e8f9; --accent-3: #2ee6cf;
    --grad: linear-gradient(110deg, #4d9bff 0%, #2fc8e6 45%, #2ee6cf 120%);
    --grad-soft: linear-gradient(110deg, color-mix(in srgb,#4d9bff 18%,transparent), color-mix(in srgb,#2ee6cf 18%,transparent));
    --glow-1: rgba(77,155,255,.30); --glow-2: rgba(34,211,238,.26); --glow-3: rgba(46,230,207,.18);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
    --shadow: 0 6px 20px rgba(0,0,0,.5); --shadow-lg: 0 24px 64px rgba(0,0,0,.62);
  }
}
:root[data-theme="dark"] {
  --ink: #eef2f8; --ink-2: #c2cad8; --muted: #8b96a9; --faint: #5f6b80;
  --bg: #080b12; --surface: #0e1420; --surface-2: #141c2b;
  --border: #1e2738; --border-strong: #2c3850;
  --accent: #4d9bff; --accent-ink: #82b6ff; --accent-soft: #0e1c33;
  --accent-2: #22d3ee; --accent-2-ink: #67e8f9; --accent-3: #2ee6cf;
  --grad: linear-gradient(110deg, #4d9bff 0%, #2fc8e6 45%, #2ee6cf 120%);
  --grad-soft: linear-gradient(110deg, color-mix(in srgb,#4d9bff 18%,transparent), color-mix(in srgb,#2ee6cf 18%,transparent));
  --glow-1: rgba(77,155,255,.30); --glow-2: rgba(34,211,238,.26); --glow-3: rgba(46,230,207,.18);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5);
  --shadow: 0 6px 20px rgba(0,0,0,.5); --shadow-lg: 0 24px 64px rgba(0,0,0,.62);
}
:root[data-theme="light"] {
  --ink: #0e1626; --ink-2: #38445a; --muted: #64708a; --faint: #9aa4b8;
  --bg: #f6f8fc; --surface: #ffffff; --surface-2: #eef2f9;
  --border: #e4e9f2; --border-strong: #d2dae8;
  --accent: #0a6cf5; --accent-ink: #0a52c8; --accent-soft: #e9f1ff;
  --accent-2: #0891b2; --accent-2-ink: #0e7490; --accent-3: #06d6bd;
  --grad: linear-gradient(110deg, #0a6cf5 0%, #11a6d9 50%, #06d6bd 120%);
  --grad-soft: linear-gradient(110deg, color-mix(in srgb,#0a6cf5 15%,transparent), color-mix(in srgb,#06d6bd 15%,transparent));
  --glow-1: rgba(10,108,245,.26); --glow-2: rgba(8,145,178,.24); --glow-3: rgba(6,214,189,.16);
}
body { font-family: var(--font); }
h1, h2, h3, h4, .brand, .h-display, .h-section, .eyebrow,
.metric .big, .plan .price, .stat .v, .num, .step h3, .feature h3, .cta-band h2 {
  font-family: var(--font-display); letter-spacing: -.02em;
}
.brand .mark, .step .num { font-family: var(--font-display); }
/* keep success meters green, not orange */
.meter > span { background: var(--ok); }
.meter.warn > span { background: var(--warn); }
.meter.danger > span { background: var(--danger); }

/* ============================================================= *
 *  POLISH LAYER v3 — smooth theming, layout fixes, dashboard depth.
 *  Appended last: wins the cascade. Fixes real bugs (mobile grids,
 *  docs nav) and adds the deep-tech light/dark finish.
 * ============================================================= */

/* Smooth, synchronized light/dark transition on every themed surface. */
body, .card, .panel, .plan, .feature, .step, .topbar, .side, .stat,
.table-wrap, input, select, textarea, .btn-secondary, .btn-glass,
.faq-item, .compare, .docs-content pre, .site-footer, .bill-toggle,
.bill-toggle button, .meter, .badge {
  transition: background-color .35s var(--ease), border-color .35s var(--ease),
    color .35s var(--ease), box-shadow .35s var(--ease);
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Richer hero aura — a slow drifting glow that reads in both themes. */
.hero-glow { animation: aura 18s var(--ease) infinite alternate; }
@keyframes aura { from { transform: translate3d(-1.5%, 0, 0) scale(1); }
                  to   { transform: translate3d(1.5%, 1.5%, 0) scale(1.06); } }

/* The "soul" — a soft breathing orb centered behind the hero. Subtle, tidy. */
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: min(560px, 82vw); aspect-ratio: 1; left: 50%; top: 40px; transform: translateX(-50%);
  border-radius: 50%; filter: blur(34px);
  background: radial-gradient(circle at 50% 45%,
    color-mix(in srgb, var(--accent-3) 30%, transparent) 0%,
    color-mix(in srgb, var(--accent) 18%, transparent) 42%, transparent 66%);
  animation: soul-breathe 7s var(--ease) infinite alternate;
}
@keyframes soul-breathe {
  from { opacity: .55; transform: translateX(-50%) scale(.94); }
  to   { opacity: .95; transform: translateX(-50%) scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-glow, .hero::before { animation: none; }
}

/* A responsive 2-up split that ALWAYS collapses on small screens — replaces the
   inline grid-template overrides that used to fight the media query. */
.split-2 { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; align-items: stretch; }
.split-2 > * { min-width: 0; }
@media (max-width: 820px) { .split-2 { grid-template-columns: 1fr; gap: 20px; } }

/* Include-list used on the enterprise page. */
.check-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-direction: column; gap: 13px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; color: var(--ink-2); font-size: .96rem; line-height: 1.5; }
.check-list li svg { flex: none; margin-top: 2px; color: var(--accent); width: 18px; height: 18px; }

/* CTA subline ("no card") — sits UNDER the button, never on it. */
.cta-note { margin-top: 14px; font-size: .85rem; color: var(--faint); display: inline-flex; align-items: center; gap: 7px; }
.cta-note svg { width: 14px; height: 14px; color: var(--accent-2-ink); }

/* Pricing: per-key clarity line + usage bar on cards. */
.plan .key-note { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.usage-strip { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.usage-strip .meter { height: 10px; margin-top: 12px; }

/* ---- dashboard: onboarding + feature gating ---- */
.onboard { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 820px) { .onboard { grid-template-columns: 1fr; } }
.onboard .ob { background: var(--card-grad); border: 1px solid var(--border); border-radius: 14px; padding: 18px; position: relative; }
.onboard .ob .n { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 700; background: var(--grad); color: #fff; font-size: .9rem; margin-bottom: 12px; font-family: var(--font-display); }
.onboard .ob.done { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.onboard .ob.done .n { background: var(--ok); }
.onboard .ob h4 { font-size: .98rem; margin: 0 0 4px; }
.onboard .ob p { font-size: .85rem; color: var(--muted); margin: 0; }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.cap { border: 1px solid var(--border); border-radius: 12px; padding: 15px 16px; background: var(--surface); display: flex; gap: 11px; align-items: flex-start; }
.cap .ci { flex: none; width: 20px; height: 20px; }
.cap.on .ci { color: var(--accent); }
.cap.off { opacity: .62; }
.cap.off .ci { color: var(--faint); }
.cap .ct { font-size: .9rem; font-weight: 560; color: var(--ink); }
.cap .cd { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.cap .lock { margin-left: auto; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--faint); }

/* Key rows: per-agent labelling. */
.agent-tag { font-size: .72rem; color: var(--muted); }

/* Copy/reveal secret box actions. */
.secret-box .btn { flex: none; }

/* ---- docs: a real mobile table of contents ---- */
.docs-toc-mobile { display: none; }
@media (max-width: 980px) {
  .docs-toc-mobile { display: block; position: sticky; top: 66px; z-index: 20; margin: 0 -24px 8px;
    padding: 10px 24px; background: color-mix(in srgb, var(--bg) 90%, transparent);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); overflow-x: auto; white-space: nowrap; }
  .docs-toc-mobile a { display: inline-block; font-size: .84rem; color: var(--ink-2); padding: 6px 12px;
    border: 1px solid var(--border); border-radius: 999px; margin-right: 7px; }
  .docs-toc-mobile a:hover { text-decoration: none; background: var(--surface-2); }
}

/* ---- admin: enterprise kit output ---- */
.kit-file { margin-top: 16px; }
.kit-file .kf-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.kit-file .kf-head .fn { font-family: var(--mono); font-size: .82rem; color: var(--ink-2); }
.kit-out { background: #0b0d12; color: #d5dae6; border: 1px solid #1c2130; border-radius: 12px; padding: 16px; font-family: var(--mono); font-size: .78rem; line-height: 1.6; overflow-x: auto; white-space: pre; max-height: 320px; overflow-y: auto; }

/* Feature lock overlay for whole panels. */
.locked-panel { position: relative; }
.locked-panel .lock-veil { position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  background: color-mix(in srgb, var(--surface) 72%, transparent); backdrop-filter: blur(3px); border-radius: var(--radius); padding: 20px; }

/* Give the mobile dashboard sidebar breathing room. */
@media (max-width: 780px) {
  .side nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .side nav a { font-size: .86rem; padding: 8px 11px; }
}

/* ---- brand logo ----
   The Kadropic mark is a white "K" on black — so we show it as a clean, self-
   contained tile (no blue box, no glow) across header, footer, dashboard, admin,
   and auth. `cover` fills the square edge-to-edge so it never looks squashed, and
   the letter placeholder inside is hidden via transparent text. */
.brand .mark, .auth-head .mark, .side .brand .mark {
  background: #000 url('/static/assets/logo.png') center / cover no-repeat !important;
  color: transparent !important;
  overflow: hidden;
  box-shadow: none !important;
  border: 1px solid var(--hairline);
}
:root[data-theme="dark"] .brand .mark,
:root[data-theme="dark"] .auth-head .mark,
:root[data-theme="dark"] .side .brand .mark { border-color: rgba(255,255,255,.14); }
