/* ============================================================
   KeenFranchise marketing site — Editorial Operations
   Tokens derived from KeenFranchise Design System v1
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Bone (warm neutral) */
  --bone-0: #FBFAF7;
  --bone-1: #F5F3EE;
  --bone-2: #EEEAE2;
  --bone-3: #E2DDD2;
  --bone-4: #C8C2B5;
  --bone-5: #A29C8E;
  --bone-6: #7C7669;
  --bone-7: #524E45;
  --bone-8: #2E2C26;
  --bone-9: #1A1916;

  /* Ink */
  --ink-9: #131210;
  --ink-7: #2A2823;

  /* Semantic */
  --surface: var(--bone-0);
  --surface-raised: #FFFFFF;
  --surface-sunken: var(--bone-1);
  --text: var(--bone-9);
  --text-muted: var(--bone-6);
  --text-subtle: var(--bone-5);
  --border: var(--bone-3);
  --border-strong: var(--bone-4);

  /* Brand (overridden via JS by tweaks) */
  --brand: #2A3FA0;
  --brand-soft: #2A3FA022;
  --brand-line: #2A3FA055;
  --brand-contrast: #FFFFFF;

  --success: #1F6F4A;
  --warning: #B47E15;
  --danger: #B23A3A;
  --info: #3957D9;

  /* Type */
  --f-display: 'Calistoga', Georgia, serif;
  --f-body: 'Inter', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px;
  --s6: 24px; --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px;
  --s20: 80px; --s24: 96px;

  --r-sm: 4px; --r-md: 6px; --r-lg: 10px; --r-xl: 16px;

  --shadow-1: 0 1px 2px rgba(20,18,12,0.04), 0 1px 4px rgba(20,18,12,0.04);
  --shadow-2: 0 4px 12px rgba(20,18,12,0.06), 0 1px 3px rgba(20,18,12,0.04);
  --shadow-3: 0 16px 48px rgba(20,18,12,0.10), 0 4px 12px rgba(20,18,12,0.06);

  --container: 1200px;
  --container-lg: 1320px;
}

[data-theme="dark"] {
  --surface: #0F0E0C;
  --surface-raised: #1A1916;
  --surface-sunken: #07060500;
  --text: #F5F3EE;
  --text-muted: #B5AFA1;
  --text-subtle: #8A8579;
  --border: #2A2823;
  --border-strong: #3D3A33;
  --brand-contrast: #131210;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-2: 0 4px 16px rgba(0,0,0,0.55);
  --shadow-3: 0 24px 64px rgba(0,0,0,0.7);
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  transition: background 0.4s ease, color 0.4s ease;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
code { font-family: var(--f-mono); font-size: 0.92em; }
em { font-style: normal; font-family: var(--f-display); font-weight: 400; }

/* ---------- TYPE PRIMITIVES ---------- */
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.15; letter-spacing: -0.01em; }
.section__title {
  font-family: var(--f-display);
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 400;
  color: var(--text);
  max-width: 22ch;
  margin: 0;
}
.section__lede {
  margin: var(--s5) 0 0;
  font-size: 18px;
  color: var(--text-muted);
  max-width: 62ch;
  text-wrap: pretty;
  line-height: 1.55;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}
.eyebrow__dot {
  width: 6px; height: 6px; border-radius: 999px; background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.dateline {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-subtle);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ---------- LAYOUT ---------- */
main > section,
.topbar__inner,
.footer__inner,
.footer__bar {
  max-width: var(--container);
  margin-left: auto; margin-right: auto;
  padding-left: var(--s6); padding-right: var(--s6);
}
section { padding-top: var(--s24); padding-bottom: var(--s24); }
.section__head { max-width: 720px; margin-bottom: var(--s12); }
.section__head--center { text-align: center; margin-left: auto; margin-right: auto; }
.section__head--center .section__title { margin-left: auto; margin-right: auto; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--r-md);
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s, border-color 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn--lg { padding: 14px 22px; font-size: 15px; }
.btn--primary {
  background: var(--brand); color: var(--brand-contrast);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 4px 14px var(--brand-soft);
}
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 6px 20px var(--brand-soft), 0 2px 0 rgba(0,0,0,0.08); }
.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: var(--surface-sunken); border-color: var(--text); }

/* ---------- TOPBAR ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar__inner {
  display: flex; align-items: center; gap: var(--s8);
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; }
.brand__mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
}
.brand__mark img {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
}
.brand__name { font-family: var(--f-body); font-size: 16px; letter-spacing: -0.01em; font-weight: 700; color: #0a0a0a; }
[data-theme="dark"] .brand__name { color: #fafafa; }
.brand__name-accent { color: var(--brand); font-weight: 700; }
.topnav { display: flex; gap: var(--s6); margin-left: var(--s8); flex: 1; }
.topnav a {
  font-size: 14px; color: var(--text-muted); transition: color 0.15s;
  position: relative; padding: 4px 0;
}
.topnav a:hover { color: var(--text); }
.topbar__cta { display: flex; gap: var(--s2); align-items: center; }
@media (max-width: 880px) {
  .topnav { display: none; }
}

/* ---------- HERO — EDITORIAL ---------- */
.hero { padding-top: var(--s16); padding-bottom: var(--s16); }
.hero__meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s12); }
.hero__title {
  font-family: var(--f-display);
  font-size: clamp(40px, 6.4vw, 88px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 400;
  margin-bottom: var(--s8);
  text-wrap: balance;
  max-width: 22ch;
}
.hero__title em {
  color: var(--brand);
  font-family: var(--f-display);
  font-style: normal;
}
.hero__accent {
  border-bottom: 2px solid var(--brand-line);
  padding-bottom: 2px;
}
.hero__lede {
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-muted);
  max-width: 64ch;
  text-wrap: pretty;
  margin: 0 0 var(--s10);
}
.hero__actions { display: flex; gap: var(--s3); margin-bottom: var(--s16); flex-wrap: wrap; }

.hero__trust {
  margin-top: var(--s12);
  padding-top: var(--s8);
  border-top: 1px solid var(--border);
  display: flex; align-items: center; gap: var(--s6); flex-wrap: wrap;
}
.trust__label {
  font-family: var(--f-mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--text-subtle);
}
.trust__list {
  display: flex; gap: var(--s6); list-style: none; margin: 0; padding: 0;
  flex-wrap: wrap;
}
.trust__list li {
  font-size: 13px; color: var(--text-muted);
  position: relative; padding-left: var(--s4);
}
.trust__list li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--border-strong); transform: translateY(-50%);
}

/* ---------- HERO — SPLIT ---------- */
.hero--split {
  display: grid; grid-template-columns: 1.1fr 1fr;
  gap: var(--s16); align-items: center;
}
.hero--split .hero__title {
  font-size: clamp(36px, 5vw, 76px);
}
.hero--split .hero__lede { margin-bottom: var(--s8); font-size: 18px; }
@media (max-width: 960px) { .hero--split { grid-template-columns: 1fr; } }

/* ---------- DIAGRAM (HERO ART) ---------- */
.diagram {
  margin: var(--s12) 0 0;
  padding: var(--s8);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  position: relative;
  overflow: hidden;
}
.diagram::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 0%, var(--brand-soft), transparent 50%),
    radial-gradient(circle at 80% 100%, var(--brand-soft), transparent 60%);
  pointer-events: none; opacity: 0.6;
}
.diagram__frame {
  position: relative;
  height: 480px;
  background:
    linear-gradient(transparent 31px, color-mix(in oklab, var(--border) 50%, transparent) 32px),
    linear-gradient(90deg, transparent 31px, color-mix(in oklab, var(--border) 50%, transparent) 32px);
  background-size: 32px 32px;
  border-radius: var(--r-lg);
  border: 1px dashed var(--border);
}
@media (max-width: 720px) { .diagram__frame { height: 380px; } }

.diagram__brand { position: absolute; top: 18px; left: 18px; right: 18px; display: flex; justify-content: center; }
.diagram__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-muted);
  box-shadow: var(--shadow-1);
}
.chip__bullet { width: 8px; height: 8px; border-radius: 999px; background: var(--success); animation: pulse 2.4s ease-in-out infinite; }
.chip__pill { background: var(--brand-soft); color: var(--brand); padding: 2px 8px; border-radius: 999px; font-size: 10.5px; }

.diagram__core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  z-index: 3;
}
.core__label { font-family: var(--f-mono); font-size: 10.5px; color: var(--text-subtle); letter-spacing: 0.14em; text-transform: uppercase; }
.core__ring {
  width: 144px; height: 144px;
  border-radius: 999px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  box-shadow: 0 0 0 8px var(--brand-soft), var(--shadow-3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.core__ring::after {
  content: ''; position: absolute; inset: -16px;
  border-radius: 999px;
  border: 1px dashed var(--brand-line);
  animation: rotate 30s linear infinite;
}
.core__inner { text-align: center; }
.core__title { font-family: var(--f-display); font-size: 18px; }
.core__sub { font-family: var(--f-mono); font-size: 10px; color: var(--text-muted); letter-spacing: 0.06em; margin-top: 2px; }

.node {
  position: absolute;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  z-index: 2;
  box-shadow: var(--shadow-1);
  opacity: 0; transform: translate(-50%, -50%) scale(0.92);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
.diagram--in .node { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.node__label { line-height: 1.1; }
.node__sub { font-family: var(--f-mono); font-size: 10px; color: var(--text-muted); margin-top: 2px; letter-spacing: 0.04em; }

/* Node positions — relative to 800x480 viewBox */
.node.n1 { left: 15%; top: 17%; transition-delay: 0.45s; }
.node.n2 { left: 50%; top: 17%; transition-delay: 0.55s; }
.node.n3 { left: 85%; top: 17%; transition-delay: 0.65s; }
.node.n4 { left: 7%;  top: 50%; transition-delay: 0.5s; }
.node.n5 { left: 93%; top: 50%; transition-delay: 0.6s; }
.node.n6 { left: 15%; top: 83%; transition-delay: 0.7s; }
.node.n7 { left: 50%; top: 83%; transition-delay: 0.8s; }
.node.n8 { left: 85%; top: 83%; transition-delay: 0.9s; }

.diagram__lines { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.diagram__line {
  fill: none;
  stroke: var(--brand-line);
  stroke-width: 1;
  stroke-dasharray: 4 6;
  opacity: 0;
  animation: lineDraw 0.8s ease-out forwards;
}
.diagram--in .diagram__line { opacity: 0.55; }

.diagram__ticker {
  position: absolute;
  bottom: 14px; left: 50%; transform: translateX(-50%);
  display: flex; gap: var(--s3);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: var(--shadow-1);
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-muted);
  z-index: 4;
  flex-wrap: wrap;
  justify-content: center;
}
.diagram__ticker .tick { white-space: nowrap; }
.diagram__ticker b { color: var(--text); }

@media (max-width: 640px) {
  .node.n1 { left: 18%; top: 18%; }
  .node.n3 { left: 82%; top: 18%; }
  .node.n6 { left: 18%; top: 82%; }
  .node.n8 { left: 82%; top: 82%; }
  .node__sub { display: none; }
  .diagram__ticker { font-size: 10px; }
}

/* ---------- PILLARS ---------- */
.pillars { padding-top: var(--s16); }
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s8);
  margin-top: var(--s12);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.pillar {
  padding: var(--s8) var(--s6);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface-raised);
  display: flex; flex-direction: column; gap: var(--s4);
  transition: background 0.2s;
}
.pillar:hover { background: var(--surface-sunken); }
.pillar__num {
  font-family: var(--f-mono); font-size: 11px;
  color: var(--text-subtle); letter-spacing: 0.12em;
  display: flex; align-items: center; gap: 8px;
}
.pillar__num::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.pillar__kw {
  font-family: var(--f-display);
  font-size: 28px; font-weight: 400;
  letter-spacing: -0.015em;
  color: var(--text);
}
.pillar__body { font-size: 14.5px; color: var(--text-muted); margin: 0; line-height: 1.55; }
@media (max-width: 980px) { .pillars__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .pillars__grid { grid-template-columns: 1fr; } }

/* ---------- THEATER (shared) ---------- */
.theater { padding-top: var(--s20); padding-bottom: var(--s20); }
.theater--alt { background: var(--surface-sunken); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.theater__head { max-width: 760px; margin: 0 auto var(--s12); }
.theater__art {
  margin: 0 auto;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.theater__benefits {
  margin-top: var(--s10);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--s6);
}
@media (max-width: 880px) { .theater__benefits { grid-template-columns: repeat(2, 1fr); } }
.benefit { padding: var(--s5) 0; border-top: 2px solid var(--brand); }
.benefit__kw { font-weight: 600; font-size: 14px; margin-bottom: var(--s2); color: var(--text); }
.benefit p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ---------- ORDERING ART ---------- */
.ordering__art {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 1fr;
  gap: 0;
  padding: var(--s8);
  background:
    radial-gradient(circle at 50% 50%, var(--brand-soft), transparent 60%),
    var(--surface-raised);
  min-height: 360px;
  align-items: stretch;
}
@media (max-width: 980px) { .ordering__art { grid-template-columns: 1fr; gap: var(--s5); } }

.oa__card {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  padding: var(--s5);
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column;
  align-self: center;
}
.oa__card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s4); padding-bottom: var(--s3); border-bottom: 1px solid var(--border); }
.oa__title { font-weight: 600; font-size: 14px; }
.oa__badge { padding: 3px 8px; border-radius: 999px; font-size: 11px; font-family: var(--f-mono); }
.oa__badge--brand { background: var(--brand-soft); color: var(--brand); }
.oa__lines { list-style: none; margin: 0; padding: 0; }
.oa__lines li {
  display: grid; grid-template-columns: 100px 1fr 36px 84px;
  gap: var(--s2); padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 13px; align-items: center;
}
.oa__sku { font-family: var(--f-mono); font-size: 11px; color: var(--text-subtle); }
.oa__name { color: var(--text); }
.oa__qty { font-family: var(--f-mono); text-align: right; color: var(--text-muted); }
.oa__price { font-family: var(--f-mono); text-align: right; font-feature-settings: "tnum"; }
.oa__lines--proprietary .oa__name::before {
  content: 'YOUR'; display: inline-block;
  font-family: var(--f-mono); font-size: 9px;
  background: var(--brand); color: var(--brand-contrast);
  padding: 1px 5px; border-radius: 3px; margin-right: 6px;
  letter-spacing: 0.06em; vertical-align: 1px;
}
.oa__total {
  margin-top: var(--s3); padding-top: var(--s3);
  border-top: 1px solid var(--border-strong);
  display: flex; justify-content: space-between; align-items: baseline;
}
.oa__total span { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; font-family: var(--f-mono); }
.oa__total b { font-family: var(--f-mono); font-size: 18px; }

/* Bus/connector layer */
.oa__bus {
  position: relative;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--s4);
}
.bus__rail {
  position: absolute; left: 50%; top: 10%; bottom: 10%;
  width: 2px;
  background: linear-gradient(to bottom, transparent, var(--brand), transparent);
  transform: translateX(-50%);
}
.bus__label {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-subtle);
  background: var(--surface-raised); padding: 2px 8px; border: 1px solid var(--border); border-radius: 999px;
}
.bus__chip {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  padding: 6px 12px;
  border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 11px; font-weight: 600;
  margin: 4px 0;
  z-index: 1;
}
.bus__chip--api { color: var(--info); }
.bus__chip--edi { color: var(--warning); }
.bus__chip--internal { color: var(--brand); }
.ordering__art.in .bus__chip {
  animation: pulseChip 4s ease-in-out infinite;
}
.ordering__art.in .bus__chip--edi { animation-delay: 1.3s; }
.ordering__art.in .bus__chip--internal { animation-delay: 2.6s; }

@media (max-width: 980px) {
  .oa__bus { padding: var(--s3) 0; flex-direction: row; gap: var(--s4); }
  .bus__rail { display: none; }
  .bus__label { position: static; transform: none; }
}

.oa__connectors {
  display: flex; flex-direction: column; gap: var(--s3);
  align-self: center;
}
.conn {
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--text);
  background: var(--surface);
  padding: var(--s4) var(--s5);
  border-radius: var(--r-sm);
  box-shadow: var(--shadow-1);
}
.conn--api { border-left-color: var(--info); }
.conn--edi { border-left-color: var(--warning); }
.conn--internal { border-left-color: var(--brand); }
.conn__type { font-family: var(--f-mono); font-size: 10px; color: var(--text-subtle); letter-spacing: 0.1em; text-transform: uppercase; }
.conn__name { font-weight: 600; font-size: 15px; margin: 2px 0; }
.conn__meta { font-family: var(--f-mono); font-size: 11px; color: var(--text-muted); }

/* ---------- AI THEATER ---------- */
.ai__art {
  display: grid; grid-template-columns: 1.2fr 1fr;
  background: var(--surface-raised);
  min-height: 380px;
}
@media (max-width: 980px) { .ai__art { grid-template-columns: 1fr; } }

.ai__chat {
  padding: var(--s5);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
}
.ai__chat-head {
  display: flex; align-items: center; gap: 6px;
  padding-bottom: var(--s3);
  border-bottom: 1px solid var(--border);
}
.ai__dot { width: 9px; height: 9px; border-radius: 999px; background: var(--border-strong); }
.ai__dot:nth-child(1) { background: #E15B5B; }
.ai__dot:nth-child(2) { background: #E0B033; }
.ai__dot:nth-child(3) { background: #4FAE6F; }
.ai__cmd {
  margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--text-muted);
  border: 1px solid var(--border); padding: 3px 10px; border-radius: 999px;
}
.ai__messages { padding: var(--s5) 0; display: flex; flex-direction: column; gap: var(--s4); }
.ai__msg {
  padding: var(--s4) var(--s5);
  border-radius: var(--r-md);
  max-width: 90%;
  font-size: 14px; line-height: 1.5;
  animation: msgIn 0.5s ease-out;
}
.ai__msg--user {
  background: var(--surface-sunken);
  align-self: flex-end;
  border: 1px solid var(--border);
}
.ai__msg--ai {
  background: var(--brand-soft);
  border: 1px solid var(--brand-line);
  align-self: flex-start;
}
.ai__cites {
  margin-top: var(--s3); display: flex; flex-wrap: wrap; gap: var(--s2);
}
.ai__cite {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: var(--r-sm);
  font-size: 11.5px;
}
.ai__cite-doc { color: var(--text); font-weight: 500; }
.ai__cite-page { font-family: var(--f-mono); color: var(--text-muted); }
.ai__typing {
  display: inline-flex; gap: 4px; padding: var(--s4); background: var(--brand-soft); border-radius: var(--r-md);
  align-self: flex-start;
}
.ai__typing span { width: 6px; height: 6px; border-radius: 999px; background: var(--brand); animation: typing 1.2s ease-in-out infinite; }
.ai__typing span:nth-child(2) { animation-delay: 0.15s; }
.ai__typing span:nth-child(3) { animation-delay: 0.3s; }

.ai__pipeline {
  padding: var(--s5);
  display: flex; flex-direction: column; gap: var(--s2);
  background: var(--surface-sunken);
}
.pipe__step {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  padding: var(--s4) var(--s5);
  border-radius: var(--r-sm);
}
.pipe__step b { font-family: var(--f-mono); color: var(--brand); margin-right: 8px; font-size: 12px; }
.pipe__step span { display: block; font-family: var(--f-mono); font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.pipe__arrow {
  align-self: center; width: 1px; height: 16px;
  background: var(--border-strong); position: relative;
}
.pipe__arrow::after {
  content: ''; position: absolute; bottom: -2px; left: 50%; transform: translateX(-50%);
  width: 0; height: 0; border: 3px solid transparent; border-top-color: var(--border-strong);
}

/* ---------- LAUNCHER ---------- */
.launcher__art {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.launcher__row {
  display: grid; grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--border);
}
.phase {
  padding: var(--s5);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: var(--s2);
  position: relative;
  animation: fadeUp 0.6s both;
  animation-delay: calc(var(--i) * 0.08s);
}
.phase:last-child { border-right: 0; }
.phase__name { font-weight: 600; font-size: 14px; }
.phase__bar { height: 4px; background: var(--surface-sunken); border-radius: 999px; overflow: hidden; }
.phase__fill { height: 100%; background: var(--brand); transition: width 1s ease; }
.phase__meta { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 11px; color: var(--text-muted); align-items: center; }
.phase__dot { width: 7px; height: 7px; border-radius: 999px; background: var(--border-strong); }
.phase--done .phase__dot { background: var(--success); }
.phase--active .phase__dot { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); animation: pulse 2s infinite; }
.phase--pending .phase__fill { background: var(--border-strong); }
.phase--pending .phase__name { color: var(--text-muted); }

@media (max-width: 880px) { .launcher__row { grid-template-columns: repeat(2, 1fr); }
  .phase { border-bottom: 1px solid var(--border); }
}

.launcher__portfolio { padding: var(--s5); }
.portfolio__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--s4);
  font-family: var(--f-mono); font-size: 11px;
  color: var(--text-muted); letter-spacing: 0.08em; text-transform: uppercase;
}
.portfolio__legend { display: flex; gap: var(--s4); align-items: center; }
.lg { display: inline-block; width: 8px; height: 8px; border-radius: 999px; margin-right: 6px; vertical-align: middle; }
.lg--ok { background: var(--success); }
.lg--risk { background: var(--warning); }
.lg--late { background: var(--danger); }

.portfolio__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2);
}
.pcell {
  display: grid; grid-template-columns: 1fr 80px 36px;
  align-items: center; gap: var(--s3);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
}
.pcell__name { font-size: 13px; font-weight: 500; }
.pcell__bar { height: 6px; background: var(--surface-sunken); border-radius: 999px; overflow: hidden; }
.pcell__bar i { display: block; height: 100%; }
.pcell--ok .pcell__bar i { background: var(--success); }
.pcell--risk .pcell__bar i { background: var(--warning); }
.pcell--late .pcell__bar i { background: var(--danger); }
.pcell__pct { font-family: var(--f-mono); font-size: 11px; text-align: right; color: var(--text-muted); }
@media (max-width: 880px) { .portfolio__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .portfolio__grid { grid-template-columns: 1fr; } }

/* ---------- OPS GRID ---------- */
.ops__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s8);
}
.opsgroup {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--s8);
  display: flex; flex-direction: column; gap: var(--s5);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.opsgroup:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--border-strong); }
.opsgroup__eyebrow {
  font-family: var(--f-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--brand);
}
.opsgroup__title {
  font-family: var(--f-display);
  font-size: 26px; font-weight: 400;
  letter-spacing: -0.015em;
  margin: var(--s2) 0 0;
}
.opsgroup__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.opsgroup__list li {
  display: grid; grid-template-columns: 200px 1fr;
  gap: var(--s4);
  padding: var(--s4) 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
}
.opsgroup__k { font-weight: 600; }
.opsgroup__v { color: var(--text-muted); }

@media (max-width: 880px) {
  .ops__grid { grid-template-columns: 1fr; }
  .opsgroup__list li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------- WHY (white-label + security) ---------- */
.why {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s12);
  align-items: start;
}
@media (max-width: 980px) { .why { grid-template-columns: 1fr; } }

.why__list {
  list-style: none; padding: 0; margin: var(--s8) 0 0;
  display: flex; flex-direction: column; gap: var(--s4);
}
.why__list li {
  font-size: 15px; color: var(--text-muted);
  padding-left: var(--s5); position: relative;
}
.why__list li b { color: var(--text); }
.why__list li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 12px; height: 1px; background: var(--brand);
}

.brandcards {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}
.bcard {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s4);
  box-shadow: var(--shadow-1);
  display: flex; flex-direction: column; gap: var(--s2);
  font-size: 12px;
  animation: fadeUp 0.6s both;
  animation-delay: calc(var(--i) * 0.12s);
}
.bcard__bar { height: 4px; background: var(--bc); border-radius: 999px; }
.bcard__brand { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.bcard__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--bc); }
.bcard__url { font-family: var(--f-mono); font-size: 10px; color: var(--text-muted); }
.bcard__nav { display: flex; gap: 6px; flex-wrap: wrap; padding: 4px 0; border-bottom: 1px solid var(--border); }
.bcard__nav span { font-size: 9.5px; color: var(--text-subtle); padding: 2px 5px; background: var(--surface-sunken); border-radius: 3px; }
.bcard__panel { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.bcard__row { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-muted); }
.bcard__row b { color: var(--text); font-family: var(--f-mono); }

.security {
  margin-top: var(--s8);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--s6);
}
.security__title { font-weight: 600; margin-bottom: var(--s2); font-size: 15px; }
.security p { font-size: 14px; color: var(--text-muted); margin: 0 0 var(--s4); }
.security__row {
  background: var(--surface-sunken);
  padding: var(--s3);
  border-radius: var(--r-sm);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text);
  border: 1px dashed var(--border-strong);
}

/* ---------- MOBILE STRIP ---------- */
.mobile {
  background: var(--surface-sunken);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.mobile__head { max-width: 720px; margin: 0 auto var(--s10); text-align: center; }
.mobile__head .section__title { margin: var(--s3) auto 0; }
.mobile__head .eyebrow { justify-content: center; display: inline-flex; }
.mobile__art {
  display: flex; justify-content: center; gap: var(--s8);
  flex-wrap: wrap;
}
.phone {
  width: 240px; height: 480px;
  background: var(--ink-9);
  border-radius: 36px;
  padding: 14px;
  position: relative;
  box-shadow: var(--shadow-3), inset 0 0 0 2px #2A2823;
  flex-shrink: 0;
  transform: rotate(-2deg);
}
.phone--2 { transform: translateY(-12px) rotate(0deg); }
.phone--3 { transform: rotate(2deg); }
.phone__notch {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  width: 80px; height: 18px; background: #000; border-radius: 999px;
}
.phone__screen {
  width: 100%; height: 100%;
  background: var(--surface);
  border-radius: 24px;
  padding: 36px 16px 16px;
  display: flex; flex-direction: column;
  font-size: 12px; color: var(--text);
  overflow: hidden;
}
.ps__head { font-weight: 600; font-size: 13px; margin-bottom: var(--s3); padding-bottom: var(--s2); border-bottom: 1px solid var(--border); }
.ps__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); }
.ps__list li { display: flex; align-items: center; gap: 8px; font-size: 12px; padding: 6px 0; border-bottom: 1px dashed var(--border); }
.ps__chk { width: 14px; height: 14px; border: 1.5px solid var(--border-strong); border-radius: 4px; flex-shrink: 0; }
.ps__chk--done { background: var(--success); border-color: var(--success); position: relative; }
.ps__chk--done::after { content: '✓'; color: white; font-size: 10px; position: absolute; left: 2px; top: -2px; }
.ps__done { color: var(--text-muted); text-decoration: line-through; }
.ps__cta {
  margin-top: auto;
  background: var(--brand); color: var(--brand-contrast);
  padding: 10px; text-align: center;
  border-radius: var(--r-sm);
  font-family: var(--f-mono); font-size: 11px;
}
.ps__video {
  background: linear-gradient(135deg, var(--brand-soft), var(--surface-sunken));
  height: 100px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: var(--s3);
  border: 1px solid var(--border);
}
.ps__play { color: var(--brand); font-size: 24px; }
.ps__quiz { font-size: 11px; }
.ps__q { font-weight: 600; margin-bottom: var(--s2); }
.ps__steps { list-style: decimal; padding-left: 18px; margin: 0; color: var(--text-muted); font-size: 11px; line-height: 1.7; }
.ps__steps-vert { display: flex; flex-direction: column; gap: 4px; margin-top: var(--s2); }
.ps__step {
  font-size: 11px;
  padding: 7px 10px;
  border-left: 2px solid var(--border-strong);
  color: var(--text-muted);
}
.ps__step--done { border-left-color: var(--success); color: var(--text); }
.ps__step--active { border-left-color: var(--brand); color: var(--text); font-weight: 600; background: var(--brand-soft); }

/* ---------- COMPARISON ---------- */
.compare__table {
  max-width: 920px; margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface-raised);
}
.compare__row {
  display: grid; grid-template-columns: 1.6fr repeat(3, 1fr);
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.compare__row:last-child { border-bottom: 0; }
.compare__row--head {
  background: var(--surface-sunken);
  font-family: var(--f-mono); font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
}
.compare__row--head .compare__col { padding: var(--s4); text-align: center; }
.compare__row--head .compare__col--us { color: var(--brand); }
.compare__feat { padding: var(--s4) var(--s5); font-size: 14px; }
.compare__col { padding: var(--s4); text-align: center; font-size: 14px; }
.compare__col--us { background: var(--brand-soft); }
.cell { font-size: 18px; }
.cell--yes { color: var(--success); }
.cell--part { color: var(--warning); }
.cell--no { color: var(--text-subtle); }
.compare__note { max-width: 920px; margin: var(--s4) auto 0; text-align: center; font-size: 12px; color: var(--text-subtle); }

/* ---------- CTA ---------- */
.cta {
  background: var(--text);
  color: var(--surface);
  border-radius: var(--r-xl);
  margin-top: var(--s16) !important;
  margin-bottom: var(--s16) !important;
  padding: var(--s20) var(--s8) !important;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--brand-soft), transparent 60%);
  opacity: 0.6;
}
.cta__inner { max-width: 720px; margin: 0 auto; position: relative; }
.cta__title {
  font-family: var(--f-display);
  font-size: clamp(34px, 4.5vw, 60px);
  letter-spacing: -0.02em;
  font-weight: 400;
  margin: 0 0 var(--s5);
}
.cta__lede { font-size: 18px; color: color-mix(in oklab, var(--surface) 70%, var(--text)); margin: 0 0 var(--s8); }
.cta__form {
  display: flex; gap: var(--s2);
  background: var(--surface-raised);
  color: var(--text);
  padding: 6px;
  border-radius: var(--r-md);
  max-width: 640px; margin: 0 auto;
  flex-wrap: wrap;
}
.cta__input {
  flex: 1; min-width: 160px;
  padding: 10px 14px;
  background: transparent;
  border: 0;
  font: inherit; color: inherit;
}
.cta__input::placeholder { color: var(--text-muted); }
.cta__input:focus { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--r-sm); }
.cta__form .btn { flex-shrink: 0; }
.cta__meta {
  margin-top: var(--s5);
  display: flex; justify-content: center; gap: var(--s5);
  font-family: var(--f-mono); font-size: 12px;
  color: color-mix(in oklab, var(--surface) 60%, transparent);
  flex-wrap: wrap;
}

/* ---------- FOOTER ---------- */
.footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--s12) 0 var(--s5);
}
.footer__inner {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: var(--s10);
  padding-bottom: var(--s8);
  border-bottom: 1px solid var(--border);
}
.footer__tag { color: var(--text-muted); font-size: 14px; margin-top: var(--s3); max-width: 28ch; }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s6); }
.footer__cols h5 {
  font-family: var(--f-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-subtle); margin-bottom: var(--s4); font-weight: 500;
}
.footer__cols a {
  display: block; padding: 4px 0; font-size: 13.5px;
  color: var(--text-muted); transition: color 0.15s;
}
.footer__cols a:hover { color: var(--text); }
.footer__bar {
  margin-top: var(--s4);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--text-subtle);
  flex-wrap: wrap; gap: var(--s3);
}
.footer__keen { display: inline-flex; align-items: center; gap: 8px; }
.footer__keen a { color: var(--text); font-weight: 500; border-bottom: 1px dotted var(--text-muted); }
.footer__keen-dot { width: 6px; height: 6px; background: var(--brand); border-radius: 999px; box-shadow: 0 0 0 3px var(--brand-soft); }
@media (max-width: 880px) {
  .footer__inner { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- TWEAKS PANEL CUSTOM ---------- */
.tw-swatches { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.tw-swatch {
  width: 24px; height: 24px; border-radius: 999px; border: 1px solid var(--border-strong);
  cursor: pointer; padding: 0;
}

/* ---------- ANIMATIONS ---------- */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--brand-soft); }
  50% { box-shadow: 0 0 0 8px transparent; }
}
@keyframes pulseChip {
  0%, 100% { background: var(--surface); transform: scale(1); }
  10% { background: var(--brand-soft); transform: scale(1.05); }
}
@keyframes rotate {
  from { transform: rotate(0); }
  to { transform: rotate(360deg); }
}
@keyframes lineDraw {
  from { opacity: 0; }
  to { opacity: 0.55; }
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes typing {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition: none !important; }
}
