/* AI Bot Studio partner site — shared chrome */
:root {
  --bg: #0B1220;
  --bg-elev: #0E1828;
  --bg-card: #162236;
  --bg-hub: #1A2840;
  --bg-hdr: #0B1C2C;
  --line: #24344A;
  --line-soft: #2A3A50;
  --text: #E8EEF6;
  --muted: #A8B6C8;
  --dim: #7A8B9E;
  --gold: #E0B04A;
  --purple: #9B7BFF;
  --green: #4CB87A;
  --blue: #5B8FD4;
  --cyan: #2EC4C4;
  --sky: #4AA8E0;
  --nav-w: 248px;
  --max: 1320px;
  --pad: 28px;
  --font: "Liberation Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--sky); text-decoration: none; }
a:hover { color: var(--gold); }
.layout { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); min-height: 100vh; }

.nav {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--bg-hdr); border-right: 1px solid var(--line-soft);
  padding: 22px 14px 28px; z-index: 40;
}
.nav-brand { padding: 4px 10px 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 14px; }
.nav-brand .kicker { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.nav-brand .title { font-size: 15px; font-weight: 700; color: #fff; margin-top: 4px; line-height: 1.25; }
.nav-brand .sub { font-size: 12px; color: var(--dim); margin-top: 4px; }
.nav ol { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: block; padding: 7px 10px; border-radius: 6px; color: var(--muted);
  font-size: 12.5px; line-height: 1.3; border-left: 2px solid transparent;
}
.nav a:hover { background: #121C2E; color: var(--text); }
.nav a.active { background: #162236; color: #fff; border-left-color: var(--gold); }
.nav a .n { color: var(--dim); font-weight: 700; margin-right: 6px; font-variant-numeric: tabular-nums; }
.nav a.active .n { color: var(--gold); }

.main { min-width: 0; padding: 0 0 80px; }
.hero {
  background: linear-gradient(180deg, #0E1A2C 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line-soft); padding: 36px var(--pad) 28px;
}
.hero-inner { max-width: var(--max); margin: 0 auto; }
.hero h1 { font-size: 32px; font-weight: 700; color: #fff; letter-spacing: -0.02em; line-height: 1.15; }
.hero .lede { margin-top: 10px; font-size: 17px; color: var(--muted); max-width: 820px; line-height: 1.45; }
.hero .meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; background: var(--bg-card);
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px;
  font-size: 12.5px; color: var(--muted);
}
.chip strong { color: var(--gold); font-weight: 700; }

.section { max-width: var(--max); margin: 0 auto; padding: 48px var(--pad) 16px; }
.section + .section { border-top: 1px solid #162236; }
.section-head { margin-bottom: 18px; }
.section-head .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.section-head h2 { font-size: 26px; font-weight: 700; color: #fff; margin-top: 4px; line-height: 1.2; }
.section-head .sub { margin-top: 8px; font-size: 15.5px; color: var(--muted); max-width: 900px; line-height: 1.45; }

.banner {
  background: #121C2E; border: 1px solid var(--line-soft); border-radius: 8px;
  padding: 14px 16px; font-size: 15px; color: var(--muted); line-height: 1.45; margin-bottom: 18px;
}
.banner strong { color: var(--text); font-weight: 700; }
.banner.gold { border-color: var(--gold); background: #1A1830; }
.banner.gold strong { color: var(--gold); }
.note {
  background: #121C2E; border: 1px solid var(--line-soft); border-left: 3px solid var(--gold);
  border-radius: 8px; padding: 12px 14px; font-size: 14.5px; color: var(--muted); line-height: 1.45; margin-top: 16px;
}
.note strong { color: var(--text); }
.panel { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.panel.dashed { border-style: dashed; opacity: 0.95; }
.col-head {
  font-size: 12px; font-weight: 700; color: var(--acc, var(--blue));
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 10px;
}

.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px;
  position: relative; padding: 12px 14px 12px 16px; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  border-radius: 0 2px 2px 0; background: var(--acc, var(--blue));
}
.card.hub { background: var(--bg-hub); border-color: var(--acc, var(--blue)); }
.card.dashed { border-style: dashed; }
.card .id { font-size: 12px; color: var(--acc, var(--blue)); font-weight: 700; }
.card .name { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.25; margin-top: 3px; }
.card .desc, .card p.desc { font-size: 14.5px; color: var(--muted); line-height: 1.4; margin-top: 6px; }

.skill-grid { display: grid; grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr)); gap: 8px; }
.skill-card {
  background: #121C2E; border: 1px solid var(--line); border-radius: 7px;
  padding: 9px 11px; border-left: 3px solid var(--acc, var(--blue));
}
.skill-card .sh { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.25; }
.skill-card .sid { color: var(--acc, var(--blue)); }
.skill-card .sd { font-size: 13px; color: var(--muted); line-height: 1.35; margin-top: 3px; }
.skill-group { margin-bottom: 10px; }
.skill-group-body { margin-top: 8px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 10px; }

.org-map { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: start; }
.org-col { display: flex; flex-direction: column; gap: 10px; }
.org-center { display: flex; flex-direction: column; gap: 10px; padding: 0 4px; }
.org-box {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px 12px 15px; position: relative; overflow: hidden;
}
.org-box::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  border-radius: 0 2px 2px 0; background: var(--acc, var(--blue));
}
.org-box.top {
  background: linear-gradient(180deg, #1E2A40, #162236); border: 1.5px solid var(--purple);
  text-align: center; padding: 14px 16px;
}
.org-box.top::before { display: none; }
.org-box.hub { background: var(--bg-hub); border-color: var(--acc, var(--blue)); }
.org-box.results { background: #132418; border: 1.5px solid var(--green); text-align: center; }
.org-box.results::before { display: none; }
.org-box.dashed { border-style: dashed; opacity: 0.92; }
.org-box .id { font-size: 11px; color: var(--acc, var(--blue)); font-weight: 700; letter-spacing: 0.03em; }
.org-box .title { font-size: 15.5px; font-weight: 700; color: var(--text); margin-top: 2px; line-height: 1.25; }
.org-box.top .title { font-size: 18px; color: #fff; }
.org-box.results .title { color: var(--green); }
.org-box .desc { font-size: 13.5px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.org-box .kicker { font-size: 11px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--purple); font-weight: 700; }
.org-flow { text-align: center; color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: 0.08em; opacity: 0.85; }
.org-side-label { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #6A7888; margin-bottom: 2px; }

.bridge-band {
  background: #121C2E; border: 1.5px solid var(--gold); border-radius: 10px;
  padding: 16px 18px; margin-bottom: 16px;
}
.bridge-band .btitle { font-size: 20px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.bridge-band .bbody { font-size: 15.5px; color: var(--muted); line-height: 1.5; }
.bridge-band .bbody strong { color: var(--text); }
.bridge-nowlater { display: grid; grid-template-columns: 1.35fr auto 1fr; gap: 14px; align-items: stretch; margin-bottom: 16px; }
.bridge-phase { background: var(--bg-elev); border: 1px solid var(--line); border-radius: 10px; padding: 14px 15px; }
.bridge-phase.now { border-color: #4AA8E066; }
.bridge-phase.later { border-color: #E0B04A99; }
.bridge-phase .ph { font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 10px; }
.bridge-phase.now .ph { color: var(--sky); }
.bridge-phase.later .ph { color: var(--gold); }
.bridge-agency { background: var(--bg-card); border: 1px solid var(--line); border-radius: 7px; padding: 10px 12px; margin-bottom: 8px; }
.bridge-agency:last-child { margin-bottom: 0; }
.bridge-agency .an { font-size: 14.5px; font-weight: 700; color: var(--text); }
.bridge-agency .ad { font-size: 13.5px; color: var(--muted); margin-top: 3px; line-height: 1.35; }
.bridge-mid { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-width: 88px; text-align: center; }
.bridge-mid .arr { font-size: 28px; font-weight: 700; color: var(--gold); line-height: 1; }
.bridge-mid .lbl { font-size: 12px; font-weight: 700; color: var(--gold); line-height: 1.3; }
.bridge-value { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.bridge-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr auto 1fr; gap: 6px; align-items: stretch; margin-top: 12px; }
.bridge-arrow { display: flex; align-items: center; justify-content: center; color: var(--gold); font-weight: 700; font-size: 20px; }
.bridge-step { background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px; padding: 12px; position: relative; }
.bridge-step::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  border-radius: 0 2px 2px 0; background: var(--acc, var(--blue));
}
.bridge-step .n { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--acc, var(--blue)); }
.bridge-step .t { font-size: 14.5px; font-weight: 700; color: var(--text); margin-top: 3px; line-height: 1.25; }
.bridge-step .d { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.35; }

.level-stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.level-box {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 14px 12px 15px; position: relative; overflow: hidden;
}
.level-box::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px;
  border-radius: 0 2px 2px 0; background: var(--acc, var(--blue));
}
.level-box .num { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; color: var(--acc, var(--blue)); }
.level-box .t { font-size: 15px; font-weight: 700; color: var(--text); margin-top: 3px; }
.level-box .d { font-size: 13.5px; color: var(--muted); margin-top: 5px; line-height: 1.35; }

.cost-kpi { background: var(--bg-card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 12px; text-align: center; }
.cost-kpi .k { font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--dim); font-weight: 700; }
.cost-kpi .v { font-size: 22px; font-weight: 700; color: var(--gold); margin-top: 4px; line-height: 1.1; }
.cost-kpi .s { font-size: 12.5px; color: var(--muted); margin-top: 5px; line-height: 1.3; }
.cost-table { width: 100%; border-collapse: collapse; font-size: 13.5px; line-height: 1.35; margin-top: 8px; }
.cost-table th {
  text-align: left; color: var(--gold); font-weight: 700; padding: 6px 8px;
  border-bottom: 1px solid var(--line-soft); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase;
}
.cost-table td { padding: 7px 8px; color: var(--muted); border-bottom: 1px solid #1A2838; vertical-align: top; }
.cost-table td.num, .cost-table th.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost-table tr.total td { color: var(--text); font-weight: 700; border-top: 1px solid #E0B04A55; border-bottom: none; padding-top: 10px; }

.site-footer {
  max-width: var(--max); margin: 40px auto 0; padding: 20px var(--pad);
  border-top: 1px solid var(--line-soft); color: var(--dim); font-size: 12.5px; text-align: center;
}
.top-nav {
  display: none; position: sticky; top: 0; z-index: 50;
  background: rgba(11, 28, 44, 0.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft); padding: 10px 14px;
  overflow-x: auto; white-space: nowrap; gap: 6px;
}
.top-nav a {
  display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 12px;
  color: var(--muted); border: 1px solid transparent;
}
.top-nav a:hover, .top-nav a.active { color: #fff; border-color: var(--line-soft); background: #162236; }

.md-body > *:first-child { margin-top: 0; }
.md-body p { margin: 0.6em 0; color: var(--muted); }
.md-body ul, .md-body ol { margin: 0.6em 0 0.6em 1.2em; color: var(--muted); }
.md-body li { margin: 0.25em 0; }
.md-body strong { color: var(--text); }

@media (max-width: 1100px) {
  .layout { grid-template-columns: 1fr; }
  .nav { display: none; }
  .top-nav { display: flex; }
  .org-map { grid-template-columns: 1fr; }
  .bridge-nowlater { grid-template-columns: 1fr; }
  .bridge-mid { flex-direction: row; min-width: 0; padding: 4px 0; }
  .bridge-mid .arr { transform: rotate(90deg); }
  .bridge-flow { grid-template-columns: 1fr; }
  .bridge-arrow { transform: rotate(90deg); padding: 2px 0; }
  .bridge-value, .grid-2, .grid-3, .grid-4, .level-stack { grid-template-columns: 1fr 1fr; }
  .skill-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 720px) {
  .hero h1 { font-size: 24px; }
  .section-head h2 { font-size: 22px; }
  .bridge-value, .grid-2, .grid-3, .grid-4, .level-stack { grid-template-columns: 1fr; }
  body { font-size: 15px; }
}

/* Review polish */
.stack > .card, .stack > article.card { margin: 0; }
.org-map { margin-top: 4px; }
.skill-card:hover { border-color: var(--acc, var(--blue)); background: #162236; }
.nav::-webkit-scrollbar { width: 6px; }
.nav::-webkit-scrollbar-thumb { background: #2A3A50; border-radius: 3px; }
.banner + .org-map, .banner + .grid-2, .banner + .grid-3, .banner + .level-stack { margin-top: 0; }
.md-body .banner:first-child { margin-top: 0; }
.bridge-value .card { min-height: 100%; }
