/*
 * nBrain document theme — the one stylesheet every Documents-module template
 * and every document built from one links to.
 *
 * Live at https://clients.nbrain.ai/doc-theme/nbrain-doc-theme.css. Documents
 * link it rather than inlining a copy, so changing this file and deploying
 * restyles every document already sent as well as every new one.
 *
 * To restyle: change the tokens in :root. Colors, fonts, radii, and surfaces
 * all flow from them. Change a component rule only when its shape should
 * change, and never rename a class: built documents depend on these names.
 *
 * Look: the light version of the Sales Process v0.2 standard
 * (sm-docs/nbrain-sales-process-v2.html): navy masthead, light page, flat
 * bordered boxes, Jost headings, Public Sans body, mono uppercase labels,
 * coral accents.
 */

@import url("https://fonts.googleapis.com/css2?family=Jost:wght@500;600;700&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Mono:wght@500&display=swap");

:root {
  color-scheme: light;

  /* Page and surfaces */
  --bg: #F2F5F6;
  --surface: #FFFFFF;
  --surface-2: #E8EEF0;
  --line: #D2DDE0;
  --line-soft: #E4EBED;

  /* Text */
  --ink: #0D2430;
  --body: #2E4A55;
  --muted: #53707B;
  --faint: #7D949C;

  /* Brand */
  --brand: #002A3A;
  --on-brand: #FFFFFF;
  --brand-tint: #DCE8EC;
  --brand-mid: #3E7C91;
  --red: #CD545B;
  --red-text: #AE3D45;
  --red-soft: #F9E5E6;
  --go: #1C7354;
  --go-soft: #DFF0E8;
  --warn: #8A5F00;
  --warn-soft: #F5ECD3;

  /* Dark panels (masthead, price card, footer, diagrams' core) */
  --hero-bg: #002A3A;
  --hero-ink: #FFFFFF;
  --hero-muted: #A7C0C9;
  --hero-line: #1B4657;
  --hero-panel: rgba(255, 255, 255, 0.06);
  --hero-panel-line: rgba(255, 255, 255, 0.12);
  --hero-accent: #E7868B;

  /* Four-way categorical series (phases, chart bars, rules) */
  --series-1: var(--brand);       --series-1-soft: var(--brand-tint);
  --series-2: var(--go);          --series-2-soft: var(--go-soft);
  --series-3: var(--red);         --series-3-soft: var(--red-soft);
  --series-4: var(--brand-mid);   --series-4-soft: #D3E5EB;

  /* Type */
  --f-display: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --f-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Shape */
  --r-lg: 6px;
  --r-md: 4px;
  --r-sm: 3px;
  --r-pill: 20px;
  --page-width: 1160px;
}

/* ---------- Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { font-family: var(--f-body); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.container { max-width: var(--page-width); margin: 0 auto; padding: 0 32px; }
svg.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* Mono label: the uppercase, tracked label used across components */
.eyebrow, .section-label, .meta-item .label, .bd-col-title, .core-title .k, .models .k, .vs h4,
.explainer-link .k, .future .tag, .badge, .foundation-bar .k, .stack-caption, .champion-step .pl,
.win-chan, .mini-table th, .kpi .l, .ring-outer > .tag, .boundary-tag, .providers .k, .walkaway .r .k,
.price-card .k, .included h4, .tw-k, .tq-k, .tax-table th, .cpa-k, .bc-head, .ph-wk, .ph-k, .cap-label,
.rule .rk, .ft-h {
  font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase;
}

/* ---------- Masthead ---------- */
header { position: relative; color: var(--hero-ink); background: var(--hero-bg); padding: 44px 0 40px; }
header .edge { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); }
header .container { position: relative; z-index: 1; }
.header-logos { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.header-logos .client-logo { height: 38px; width: auto; display: block; }
.header-logos .brand-logo { height: 28px; width: auto; display: block; }
.eyebrow { display: inline-block; font-size: 0.72rem; color: var(--hero-accent); margin-bottom: 14px; }
header h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 14px; color: var(--hero-ink); }
header .subtitle { font-size: 1.12rem; color: var(--hero-muted); max-width: 720px; }
.header-meta-bar { display: flex; gap: 10px 32px; flex-wrap: wrap; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--hero-line); }
.meta-item { display: flex; flex-direction: column; gap: 2px; }
.meta-item .label { font-size: 0.68rem; color: var(--hero-muted); }
.meta-item .value { font-size: 0.95rem; color: var(--hero-ink); font-weight: 600; }

.section[id] { scroll-margin-top: 16px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chapter { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.chapter .num { width: 34px; height: 34px; border-radius: var(--r-md); background: var(--brand); color: var(--on-brand); font-family: var(--f-mono); font-weight: 500; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.section-label { font-size: 0.72rem; color: var(--red-text); }
.section h2 { font-size: clamp(1.6rem, 3.2vw, 2.15rem); font-weight: 600; color: var(--ink); line-height: 1.2; letter-spacing: -0.01em; margin-bottom: 14px; }
.section h3.sub { font-size: 1.3rem; font-weight: 600; color: var(--ink); margin: 44px 0 8px; }
.section p { font-size: 1rem; color: var(--body); max-width: 68ch; margin-bottom: 14px; }
.section p.lead { font-size: 1.1rem; color: var(--ink); max-width: 62ch; }
.small { font-size: 0.85rem !important; color: var(--muted) !important; }

/* Cards */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.section.alt .card { background: var(--bg); }
.card .ico { width: 40px; height: 40px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.card h4 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; line-height: 1.3; }
.card p { font-size: 0.92rem; color: var(--muted); margin: 0; line-height: 1.55; }
.t-blue { background: var(--brand-tint); color: var(--brand); }
.t-green { background: var(--go-soft); color: var(--go); }
.t-purple { background: var(--red-soft); color: var(--red-text); }
.t-amber { background: var(--warn-soft); color: var(--warn); }
.t-slate { background: var(--surface-2); color: var(--body); }

.quote-block { border-left: 3px solid var(--red); padding: 6px 0 6px 20px; margin: 28px 0; background: none; }
.quote-block p { font-family: var(--f-display); font-size: 1.25rem; line-height: 1.45; font-weight: 500; color: var(--ink); max-width: 60ch; margin-bottom: 6px; }
.quote-block .attribution { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

.highlight-box { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r-md); padding: 20px 24px; margin: 28px 0; }
.section.alt .highlight-box { background: var(--bg); }
.highlight-box h3 { font-size: 1.15rem; font-weight: 600; color: var(--brand); margin-bottom: 8px; }
.highlight-box p { color: var(--body); margin-bottom: 0; }

/* Questions list */
.asked { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.asked div { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); padding: 14px 16px; font-size: 0.93rem; color: var(--body); }
.asked div b { font-family: var(--f-mono); font-weight: 500; font-size: 0.8rem; color: var(--red-text); padding-top: 2px; }

/* ---------- Brain diagram ---------- */
.brain-diagram { margin: 32px 0 10px; border: 1.5px dashed var(--brand-mid); border-radius: var(--r-lg); padding: 40px 24px 24px; position: relative; background: var(--surface); }
.section.alt .brain-diagram { background: var(--bg); }
.boundary-tag { position: absolute; top: -12px; left: 24px; background: var(--go); color: #fff; font-size: 0.68rem; padding: 4px 12px; border-radius: var(--r-sm); display: flex; align-items: center; gap: 6px; }
.boundary-tag svg.ic { width: 14px; height: 14px; }
.bd-grid { display: grid; grid-template-columns: 1fr 1.45fr 1fr; gap: 34px; align-items: stretch; }
.bd-col-title { font-size: 0.68rem; color: var(--muted); margin-bottom: 12px; text-align: center; }
.chip-list { display: flex; flex-direction: column; gap: 8px; position: relative; }
.chip { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 12px; font-size: 0.84rem; font-weight: 500; color: var(--body); }
.chip svg.ic { width: 17px; height: 17px; color: var(--brand); }
.chip-list.out .chip svg.ic { color: var(--red-text); }
.bd-src, .bd-out { position: relative; }
.bd-src::after, .bd-out::before { content: ''; position: absolute; top: 50%; width: 34px; height: 2px; background: var(--brand-mid); }
.bd-src::after { right: -34px; }
.bd-out::before { left: -34px; background: var(--red); }
.bd-src::before, .bd-out::after { content: ''; position: absolute; top: calc(50% - 5px); width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.bd-src::before { right: -36px; border-left: 8px solid var(--brand-mid); z-index: 2; }
.bd-out::after { left: -6px; border-left: 8px solid var(--red); z-index: 2; }
.brain-core { background: var(--hero-bg); border-radius: var(--r-lg); padding: 20px; color: var(--hero-ink); position: relative; }
.brain-core > * { position: relative; }
.core-title { text-align: center; margin-bottom: 14px; }
.core-title .k { font-size: 0.66rem; color: var(--hero-accent); }
.core-title h4 { font-size: 1.2rem; font-weight: 600; }
.core-layer { display: flex; gap: 12px; align-items: flex-start; background: var(--hero-panel); border: 1px solid var(--hero-panel-line); border-radius: var(--r-md); padding: 10px 12px; margin-bottom: 8px; }
.core-layer .li { width: 30px; height: 30px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.core-layer .li svg.ic { width: 16px; height: 16px; }
.core-layer b { display: block; font-size: 0.86rem; font-weight: 600; }
.core-layer span { display: block; font-size: 0.76rem; color: var(--hero-muted); line-height: 1.45; }
.l1 { background: rgba(167, 192, 201, 0.18); color: #CFE0E6; }
.l2 { background: rgba(98, 196, 158, 0.18); color: #8FD8BB; }
.l3 { background: rgba(231, 134, 139, 0.18); color: #F0A7AB; }
.l4 { background: rgba(255, 255, 255, 0.1); color: #FFFFFF; }
.models { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--hero-line); text-align: center; }
.models .k { font-size: 0.64rem; color: var(--hero-muted); margin-bottom: 8px; }
.model-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.model-pills span { font-size: 0.74rem; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); background: var(--hero-panel); border: 1px solid var(--hero-panel-line); }
.guard-band { margin-top: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; padding: 10px 16px; background: var(--go-soft); border-radius: var(--r-md); }
.guard-band span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--go); }
.guard-band svg.ic { width: 15px; height: 15px; }

/* Multimodal strip */
.mm-strip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 24px; }
.mm-strip.mm-7 { grid-template-columns: repeat(7, 1fr); }
.mm { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 10px 14px; }
.section.alt .mm { background: var(--bg); }
.mm .ico { width: 40px; height: 40px; border-radius: var(--r-md); margin: 0 auto 10px; display: flex; align-items: center; justify-content: center; }
.mm b { display: block; font-size: 0.88rem; color: var(--ink); }
.mm span { display: block; font-size: 0.74rem; color: var(--muted); line-height: 1.45; margin-top: 3px; }

/* Rent vs own */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 24px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.vs > div { padding: 22px 24px; }
.vs .rent { background: var(--surface-2); }
.vs .own { background: var(--surface); border-left: 1px solid var(--line); }
.vs h4 { font-size: 0.72rem; margin-bottom: 12px; }
.vs .rent h4 { color: var(--muted); } .vs .own h4 { color: var(--go); }
.vs ul { list-style: none; }
.vs li { font-size: 0.93rem; color: var(--body); padding: 6px 0 6px 26px; position: relative; border-bottom: 1px solid var(--line-soft); }
.vs li:last-child { border-bottom: none; }
.vs .rent li::before { content: '–'; position: absolute; left: 6px; color: var(--faint); font-weight: 700; }
.vs .own li::before { content: '✓'; position: absolute; left: 4px; color: var(--go); font-weight: 700; }

.explainer-link { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--r-md); padding: 16px 20px; margin: 24px 0 0; text-decoration: none; }
.section.alt .explainer-link { background: var(--bg); }
.explainer-link:hover { border-color: var(--brand); }
.explainer-link .ico { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--brand-tint); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.explainer-link .tx { flex: 1; }
.explainer-link .k { display: block; font-size: 0.68rem; color: var(--red-text); }
.explainer-link .t { display: block; font-family: var(--f-display); font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.explainer-link .u { display: block; font-size: 0.78rem; color: var(--muted); }
.explainer-link .arr { color: var(--brand); font-size: 1.3rem; font-weight: 700; }

/* ---------- Module stack ---------- */
.stack { margin-top: 28px; display: flex; flex-direction: column; gap: 10px; }
.stack-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.future { border: 1.5px dashed var(--line); border-radius: var(--r-md); padding: 14px 16px; background: var(--surface); }
.future .tag { font-size: 0.64rem; color: var(--faint); }
.future b { display: block; font-size: 0.92rem; color: var(--ink); margin: 2px 0 4px; }
.future span { font-size: 0.78rem; color: var(--muted); line-height: 1.45; display: block; }
.module-one { border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--r-lg); background: var(--surface); padding: 22px 24px; position: relative; }
.module-one .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.badge { display: inline-block; font-size: 0.66rem; padding: 3px 9px; border-radius: var(--r-sm); }
.badge.blue { background: var(--brand-tint); color: var(--brand); }
.badge.green { background: var(--go-soft); color: var(--go); }
.badge.slate { background: var(--surface-2); color: var(--muted); }
.module-one h4 { font-size: 1.3rem; font-weight: 600; color: var(--ink); margin-top: 6px; }
.m1-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.m1-item { background: var(--surface); padding: 14px 16px; }
.m1-item .top { display: flex; align-items: center; gap: 8px; color: var(--brand); margin-bottom: 4px; }
.m1-item .top svg.ic { width: 17px; height: 17px; }
.m1-item b { font-size: 0.9rem; color: var(--ink); }
.m1-item p { font-size: 0.8rem; color: var(--muted); margin: 0; line-height: 1.5; }
.module-one.m2 { border-top-color: var(--red); }
.module-one.m2 .m1-item .top { color: var(--red-text); }
.foundation-bar { border-radius: var(--r-lg); background: var(--hero-bg); color: var(--hero-ink); padding: 20px 24px; display: grid; grid-template-columns: 1.1fr 2fr; gap: 24px; align-items: center; }
.foundation-bar > * { position: relative; }
.foundation-bar .k { font-size: 0.66rem; color: var(--hero-accent); }
.foundation-bar h4 { font-size: 1.2rem; font-weight: 600; }
.foundation-bar p { font-size: 0.82rem; color: var(--hero-muted); margin: 4px 0 0; }
.f-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.f-pills span { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 500; padding: 5px 10px; border-radius: var(--r-md); background: var(--hero-panel); border: 1px solid var(--hero-panel-line); }
.f-pills svg.ic { width: 14px; height: 14px; color: var(--hero-muted); }
.stack-caption { display: flex; justify-content: space-between; font-size: 0.68rem; color: var(--faint); margin-top: 4px; }

.champion-flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 0; }
.champion-step { text-align: left; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--series-1); border-radius: var(--r-md); position: relative; }
.c2 { border-top-color: var(--series-2); } .c3 { border-top-color: var(--series-3); }
.champion-step .pl { font-size: 0.64rem; }
.c1 .pl { color: var(--series-1); } .c2 .pl { color: var(--series-2); } .c3 .pl { color: var(--red-text); }
.champion-step h5 { font-size: 0.98rem; color: var(--ink); font-weight: 600; margin: 2px 0 4px; }
.champion-step p { font-size: 0.8rem; color: var(--muted); margin: 0; }

/* ---------- Chat mockups ---------- */
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.demo-grid .wide { grid-column: 1 / -1; }
.window { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.win-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; } .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); display: block; }
.win-title { font-size: 0.8rem; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 7px; }
.win-title svg.ic { width: 15px; height: 15px; color: var(--brand); }
.win-chan { margin-left: auto; font-size: 0.64rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 2px 8px; border-radius: var(--r-sm); }
.win-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.msg-user { align-self: flex-end; max-width: 86%; background: var(--brand); color: var(--on-brand); font-size: 0.88rem; padding: 10px 14px; border-radius: var(--r-lg) var(--r-lg) 2px var(--r-lg); line-height: 1.5; }
.msg-user .who { display: block; font-size: 0.72rem; color: var(--hero-muted); font-weight: 600; margin-bottom: 2px; }
.msg-ai { align-self: flex-start; max-width: 100%; width: 100%; background: var(--bg); border: 1px solid var(--line); font-size: 0.86rem; padding: 12px 14px; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) 2px; color: var(--body); line-height: 1.55; }
.msg-ai .who { display: flex; align-items: center; gap: 6px; font-size: 0.74rem; color: var(--brand); font-weight: 700; margin-bottom: 6px; }
.msg-ai .who i { width: 7px; height: 7px; border-radius: 50%; background: var(--go); display: inline-block; }
.mini-table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 0.92em; }
.mini-table th { text-align: left; font-size: 0.68rem; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
.mini-table td { padding: 7px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.mini-table tr:last-child td { border-bottom: none; }
.risk { display: inline-block; font-family: var(--f-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.05em; text-transform: uppercase; padding: 2px 7px; border-radius: var(--r-sm); }
.risk.h { background: var(--red-soft); color: var(--red-text); }
.risk.m { background: var(--warn-soft); color: var(--warn); }
.risk.l { background: var(--go-soft); color: var(--go); }
.bar-cell { display: flex; align-items: center; gap: 8px; }
.bar { height: 7px; border-radius: 2px; background: var(--surface-2); flex: 1; min-width: 60px; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 2px; background: var(--brand); }
.cites { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cites span { font-family: var(--f-mono); font-size: 0.68rem; color: var(--brand); background: var(--brand-tint); padding: 2px 7px; border-radius: var(--r-sm); }
.next-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.next-actions span { font-size: 0.74rem; font-weight: 600; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 3px 10px; border-radius: var(--r-pill); }
.email-head { font-size: 0.8rem; color: var(--muted); border-bottom: 1px solid var(--line-soft); padding-bottom: 10px; line-height: 1.6; }
.email-head b { color: var(--ink); font-weight: 600; }
.section p.demo-note { font-size: 0.8rem; color: var(--faint); margin: 14px auto 0; text-align: center; max-width: none; }
.slack-alert { border-left: 3px solid var(--red); background: var(--red-soft); border-radius: 0 var(--r-md) var(--r-md) 0; padding: 12px 14px; font-size: 0.86rem; color: var(--body); }
.slack-alert b { color: var(--ink); }

/* ---------- Dashboard mockup ---------- */
.dash { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); display: grid; grid-template-columns: 200px 1fr; }
.dash-side { background: var(--hero-bg); color: var(--hero-ink); padding: 20px 14px; }
.dash-side .brand { font-family: var(--f-display); font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.dash-side .brand-sub { font-size: 0.66rem; color: var(--hero-muted); margin-bottom: 20px; }
.dash-side a { display: flex; align-items: center; gap: 9px; font-size: 0.78rem; color: var(--hero-muted); padding: 8px 10px; border-radius: var(--r-md); text-decoration: none; margin-bottom: 2px; border-left: 2px solid transparent; }
.dash-side a.on { background: var(--hero-panel); color: var(--hero-ink); border-left-color: var(--red); }
.dash-side svg.ic { width: 15px; height: 15px; }
.dash-main { padding: 20px 22px; background: var(--bg); }
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.dash-top h4 { font-size: 1.08rem; font-weight: 600; color: var(--ink); }
.dash-top .live { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--go); display: inline-flex; align-items: center; gap: 6px; background: var(--go-soft); padding: 3px 9px; border-radius: var(--r-sm); }
.dash-top .live i { width: 7px; height: 7px; border-radius: 50%; background: var(--go); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.kpi .l { font-size: 0.64rem; color: var(--muted); }
.kpi .v { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--ink); line-height: 1.15; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 0.74rem; font-weight: 600; color: var(--go); }
.kpi .d.warn { color: var(--warn); }
.dash-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.panel h5 { font-size: 0.85rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; display: flex; justify-content: space-between; }
.panel h5 span { font-family: var(--f-body); font-weight: 400; color: var(--faint); }
.feed-item { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.8rem; color: var(--body); line-height: 1.45; }
.feed-item:last-child { border-bottom: none; }
.feed-item .dot { width: 26px; height: 26px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feed-item .dot svg.ic { width: 14px; height: 14px; }
.feed-item b { color: var(--ink); font-weight: 600; }
.feed-item time { display: block; font-family: var(--f-mono); font-size: 0.66rem; color: var(--faint); }
.seg-row { display: grid; grid-template-columns: 1.3fr 2fr 34px; gap: 10px; align-items: center; font-size: 0.8rem; color: var(--body); padding: 5px 0; }
.seg-row .bar { height: 9px; }
.seg-row em { font-style: normal; font-weight: 700; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.approve { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.8rem; color: var(--body); }
.approve:last-child { border-bottom: none; }
.approve .btns { display: flex; gap: 6px; flex-shrink: 0; }
.approve .btns span { font-size: 0.78rem; font-weight: 600; padding: 3px 9px; border-radius: var(--r-sm); }
.approve .ok { background: var(--brand); color: var(--on-brand); } .approve .edit { background: var(--surface-2); color: var(--ink); }

/* ---------- Security diagram ---------- */
.sec-diagram { margin-top: 26px; display: grid; grid-template-columns: 1.7fr auto 1fr; gap: 0; align-items: center; }
.ring-outer { border: 1.5px solid var(--go); border-radius: var(--r-lg); padding: 32px 20px 18px; position: relative; background: var(--go-soft); }
.ring-outer > .tag { position: absolute; top: -12px; left: 20px; background: var(--go); color: #fff; font-size: 0.66rem; padding: 4px 12px; border-radius: var(--r-sm); }
.ring-inner { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.owned { display: flex; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md); padding: 9px 12px; font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.owned svg.ic { width: 17px; height: 17px; color: var(--go); }
.ring-controls { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; justify-content: center; }
.ring-controls span { font-size: 0.76rem; font-weight: 600; color: var(--go); display: inline-flex; align-items: center; gap: 5px; }
.ring-controls svg.ic { width: 13px; height: 13px; }
.sec-link { padding: 0 14px; text-align: center; min-width: 150px; }
.sec-link .line { height: 2px; background: repeating-linear-gradient(90deg, var(--muted) 0 6px, transparent 6px 11px); margin: 8px 0; }
.sec-link span { font-size: 0.72rem; font-weight: 600; color: var(--body); line-height: 1.4; display: block; }
.sec-link svg.ic { width: 18px; height: 18px; color: var(--muted); }
.providers { border: 1.5px dashed var(--line); border-radius: var(--r-lg); padding: 16px; background: var(--surface); text-align: center; }
.providers .k { font-size: 0.66rem; color: var(--muted); margin-bottom: 8px; }
.providers .p { font-size: 0.86rem; font-weight: 600; color: var(--ink); padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.providers .p:last-of-type { border-bottom: none; }
.providers .note { font-size: 0.74rem; color: var(--muted); margin-top: 8px; line-height: 1.45; }

.walkaway { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.walkaway > div { padding: 22px 24px; }
.walkaway .l { background: var(--hero-bg); color: var(--hero-ink); }
.walkaway .l h4 { font-size: 1.2rem; font-weight: 600; margin-bottom: 8px; }
.walkaway .l p { color: var(--hero-muted); font-size: 0.92rem; margin: 0; }
.walkaway .r { background: var(--surface); }
.walkaway .r ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; }
.walkaway .r li { font-size: 0.88rem; color: var(--body); padding-left: 22px; position: relative; }
.walkaway .r li::before { content: '✓'; position: absolute; left: 2px; color: var(--go); font-weight: 700; }
.walkaway .r .k { font-size: 0.66rem; color: var(--go); margin-bottom: 10px; }

.sec-card { border: 1px solid var(--line); border-left: 4px solid var(--go); border-radius: var(--r-md); padding: 16px 20px; background: var(--surface); }
.section.alt .sec-card { background: var(--bg); }
.sec-card h5 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.sec-card p { font-size: 0.86rem; color: var(--muted); margin: 0; }

/* ---------- Proposal ---------- */
.price-wrap { display: grid; grid-template-columns: 1fr 1.25fr; gap: 18px; margin-top: 24px; }
.price-card { background: var(--hero-bg); color: var(--hero-ink); border-radius: var(--r-lg); padding: 26px 28px; position: relative; }
.price-card > * { position: relative; }
.price-card .k { font-size: 0.68rem; color: var(--hero-accent); }
.price-card .total { font-family: var(--f-display); font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 6px 0 4px; font-variant-numeric: tabular-nums; }
.price-card .total span { font-family: var(--f-body); font-size: 0.35em; font-weight: 500; color: var(--hero-muted); letter-spacing: 0; }
.price-card .sub { font-size: 0.9rem; color: var(--hero-muted); margin-bottom: 18px; }
.price-split { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-split div { background: var(--hero-panel); border: 1px solid var(--hero-panel-line); border-radius: var(--r-md); padding: 12px 14px; }
.price-split b { display: block; font-family: var(--f-display); font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.price-split span { font-size: 0.76rem; color: var(--hero-muted); }
.price-card .run { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--hero-line); font-size: 0.84rem; color: var(--hero-muted); }
.price-card .run b { color: var(--hero-ink); }
.included { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 26px; }
.section.alt .included { background: var(--bg); }
.included h4 { font-size: 0.7rem; color: var(--red-text); margin-bottom: 12px; }
.included ul { list-style: none; }
.included li { font-size: 0.93rem; color: var(--body); padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid var(--line-soft); }
.included li:last-child { border-bottom: none; }
.included li::before { content: ''; position: absolute; left: 4px; top: 14px; width: 9px; height: 5px; border-left: 2px solid var(--go); border-bottom: 2px solid var(--go); transform: rotate(-45deg); }

.tax-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 16px; margin-top: 20px; }
.tax-water { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; }
.tw-k { font-size: 0.68rem; color: var(--go); margin-bottom: 10px; }
.tw-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 0.88rem; color: var(--body); }
.tw-row span { font-weight: 600; }
.tw-row em { display: block; font-style: normal; font-weight: 400; font-size: 0.86em; color: var(--faint); margin-top: 1px; }
.tw-row b { white-space: nowrap; color: var(--ink); font-variant-numeric: tabular-nums; }
.tw-row.minus b { color: var(--go); }
.tw-total { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 14px; background: var(--go-soft); border-radius: var(--r-md); font-weight: 700; color: var(--ink); font-size: 0.95rem; }
.tw-total b { color: var(--go); font-size: 1.15em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tw-note { font-size: 0.74rem; color: var(--faint); margin-top: 10px; line-height: 1.5; }
.tax-qual { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tq-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.tq-col.yes { border-top: 4px solid var(--go); } .tq-col.no { border-top: 4px solid var(--line); }
.tq-k { display: flex; align-items: center; gap: 7px; font-size: 0.66rem; margin-bottom: 10px; }
.tq-k svg.ic { width: 15px; height: 15px; }
.yes .tq-k { color: var(--go); } .no .tq-k { color: var(--muted); }
.tq-col ul { list-style: none; }
.tq-col li { font-size: 0.82rem; color: var(--body); line-height: 1.45; padding: 5px 0 5px 16px; position: relative; border-bottom: 1px solid var(--line-soft); }
.yes li::before { content: '✓'; position: absolute; left: 0; color: var(--go); font-weight: 700; }
.no li::before { content: '–'; position: absolute; left: 2px; color: var(--faint); font-weight: 700; }
.tax-table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.tax-table { width: 100%; border-collapse: collapse; background: var(--surface); min-width: 720px; }
.tax-table th { background: var(--surface-2); color: var(--muted); text-align: left; font-size: 0.68rem; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tax-table td { padding: 10px 14px; font-size: 0.84rem; color: var(--body); border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.5; }
.tax-table tr:last-child td { border-bottom: none; }
.tax-table td.code { font-family: var(--f-mono); font-weight: 500; color: var(--brand); white-space: nowrap; }
.tax-table td:last-child { white-space: nowrap; font-weight: 600; color: var(--ink); }
.cpa-box { margin-top: 16px; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }
.cpa-box > div { padding: 20px 22px; }
.cpa-l { background: var(--hero-bg); color: var(--hero-ink); }
.cpa-r { background: var(--surface); }
.cpa-k { display: flex; align-items: center; gap: 8px; font-size: 0.66rem; margin-bottom: 12px; }
.cpa-l .cpa-k { color: var(--hero-accent); } .cpa-r .cpa-k { color: var(--brand); }
.cpa-k svg.ic { width: 15px; height: 15px; }
.cpa-box ul { list-style: none; }
.cpa-box li { font-size: 0.84rem; line-height: 1.5; padding: 4px 0; }
.cpa-l li { color: var(--hero-muted); } .cpa-l li b { color: var(--hero-ink); }
.cpa-r li { color: var(--body); padding-left: 16px; position: relative; }
.cpa-r li::before { content: ''; position: absolute; left: 0; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.section .cpa-r p { font-size: 0.78rem; color: var(--muted); margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.section p.tax-disclaimer { font-size: 0.76rem; color: var(--faint); margin: 12px 0 0; max-width: none; font-style: italic; }

.build-chart { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px 18px; }
.bc-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 0.68rem; color: var(--muted); margin-bottom: 16px; }
.bc-total { color: var(--red-text); }
.bc-plot { position: relative; padding-left: 28px; }
.bc-grid { position: absolute; left: 28px; right: 0; top: 0; height: 190px; display: flex; flex-direction: column; justify-content: space-between; pointer-events: none; }
.bc-grid i { display: block; border-top: 1px dashed var(--line); position: relative; }
.bc-grid i::before { content: attr(data-v); position: absolute; left: -28px; top: -8px; font-family: var(--f-mono); font-size: 0.64rem; font-style: normal; color: var(--faint); width: 20px; text-align: right; }
.bc-bars { position: relative; height: 190px; display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; align-items: end; }
.bc-bar { height: 100%; border-radius: 2px 2px 0 0; --c: var(--series-1); --cl: var(--series-1-soft); background: linear-gradient(to top, var(--c) 0, var(--c) var(--lo), var(--cl) var(--lo), var(--cl) var(--hi), transparent var(--hi)); }
.b1 { --c: var(--series-1); --cl: var(--series-1-soft); }
.b2 { --c: var(--series-2); --cl: var(--series-2-soft); }
.b3 { --c: var(--series-3); --cl: var(--series-3-soft); }
.b4 { --c: var(--series-4); --cl: var(--series-4-soft); }
.bc-callouts { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; margin-top: 10px; }
.bc-callouts div { text-align: center; font-size: 0.72rem; color: var(--muted); border-top: 2px solid var(--line); padding-top: 8px; line-height: 1.35; }
.bc-callouts b { display: block; font-family: var(--f-display); font-size: 1.25em; color: var(--ink); font-weight: 600; }
.bc-callouts .peak { border-top-color: var(--red); } .bc-callouts .peak b { color: var(--red-text); }
.bc-weeks { display: grid; grid-template-columns: repeat(24, 1fr); gap: 4px; margin-top: 6px; }
.bc-weeks span { text-align: center; font-family: var(--f-mono); font-size: 0.6rem; color: var(--faint); }
.bc-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.bc-legend span { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 600; color: var(--body); }
.bc-legend i { width: 12px; height: 12px; border-radius: 2px; background: var(--c); display: inline-block; }

.phase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.phase { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--r-md); padding: 16px 16px 14px; display: flex; flex-direction: column; }
.ph1 { --c: var(--series-1); } .ph2 { --c: var(--series-2); } .ph3 { --c: var(--series-3); } .ph4 { --c: var(--series-4); }
.ph-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 6px; }
.ph-wk { font-size: 0.66rem; color: var(--c); }
.ph3 .ph-wk { color: var(--red-text); }
.ph-hrs { font-family: var(--f-mono); font-size: 0.64rem; font-weight: 500; color: var(--warn); background: var(--warn-soft); padding: 2px 7px; border-radius: var(--r-sm); white-space: nowrap; }
.ph4 .ph-hrs { background: var(--brand); color: var(--on-brand); }
.phase h4 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.ph-k { font-size: 0.6rem; color: var(--faint); margin: 4px 0; }
.phase ul { list-style: none; margin-bottom: 8px; }
.phase li { font-size: 0.82rem; color: var(--body); line-height: 1.45; padding: 2px 0 2px 13px; position: relative; }
.phase li::before { content: ''; position: absolute; left: 0; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--c); }
.ph-ms { margin-top: auto; font-size: 0.8rem; font-weight: 600; color: var(--go); background: var(--go-soft); border-radius: var(--r-md); padding: 8px 10px; line-height: 1.4; }
.ph-ms::before { content: '✓ '; font-weight: 700; }

.cap-team { margin-top: 22px; background: var(--hero-bg); border-radius: var(--r-lg); padding: 22px 26px; color: var(--hero-ink); display: flex; flex-direction: column; gap: 14px; }
.cap-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.cap-label { width: 220px; font-size: 0.68rem; color: var(--hero-muted); }
.people { display: flex; gap: 6px; }
.people svg.ic { width: 34px; height: 34px; stroke-width: 1.5; color: var(--hero-ink); }
.people svg.ic.add { color: var(--hero-accent); stroke-dasharray: 3 2.5; }
.people svg.ic.half { clip-path: inset(0 50% 0 0); }
.cap-plus { font-family: var(--f-display); font-size: 1.1rem; font-weight: 600; color: var(--hero-accent); line-height: 1.3; }
.cap-plus span { display: block; font-family: var(--f-body); font-size: 0.72em; font-weight: 500; color: var(--hero-muted); }
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 16px; }
.cap-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; }
.cap-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 10px; }
.cap-top .ico { width: 38px; height: 38px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; }
.cap-hrs { text-align: right; font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; color: var(--brand); line-height: 1.1; font-variant-numeric: tabular-nums; }
.cap-hrs span { display: block; font-family: var(--f-mono); font-size: 0.42em; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.cap-card h4 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.section .cap-card p { font-size: 0.82rem; line-height: 1.5; margin: 0; padding-left: 14px; position: relative; }
.section .cap-card p.from { color: var(--faint); margin-bottom: 6px; }
.section .cap-card p.to { color: var(--ink); font-weight: 500; }
.cap-card p.from::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.cap-card p.to::before { content: ''; position: absolute; left: 0; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--go); }

.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 20px; }
.rule { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--c); border-radius: var(--r-md); padding: 16px 16px 14px; }
.section.alt .rule { background: var(--bg); }
.r1 { --c: var(--series-1); } .r2 { --c: var(--series-2); } .r3 { --c: var(--series-3); } .r4 { --c: var(--series-4); }
.rule .rk { font-size: 0.62rem; color: var(--c); }
.r3 .rk { color: var(--red-text); }
.rule h5 { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 2px 0 6px; }
.section .rule p { font-size: 0.84rem; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- Footer ---------- */
footer.site-footer { position: relative; color: var(--hero-muted); background: var(--hero-bg); padding: 52px 0 26px; border-top: 3px solid var(--red); }
footer.site-footer .container { position: relative; z-index: 1; }
.ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid var(--hero-line); }
.ft-logos { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.ft-logos img { height: 24px; width: auto; display: block; }
.ft-logos .x { width: 1px; height: 22px; background: var(--hero-line); }
.ft-logos .client-panel { display: inline-flex; align-items: center; background: #fff; border-radius: var(--r-md); padding: 6px 10px; }
.ft-logos .client-panel img { height: 22px; }
.ft-tag { font-size: 0.9rem; line-height: 1.6; color: var(--hero-muted); max-width: 320px; }
.ft-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.ft-pills span { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.05em; text-transform: uppercase; color: #8FD8BB; background: rgba(98, 196, 158, 0.12); padding: 3px 8px; border-radius: var(--r-sm); }
.ft-pills svg.ic { width: 12px; height: 12px; }
.ft-h { font-size: 0.64rem; color: var(--hero-accent); margin-bottom: 14px; }
.ft-list { list-style: none; }
.ft-list li { margin-bottom: 8px; font-size: 0.88rem; }
.ft-list a { color: var(--hero-muted); text-decoration: none; }
.ft-list a:hover { color: var(--hero-ink); }
.ft-list a span { font-family: var(--f-mono); color: var(--hero-accent); margin-right: 6px; font-size: 0.8em; }
.ft-person { margin-bottom: 14px; }
.ft-person b { display: block; color: var(--hero-ink); font-size: 0.92rem; font-weight: 600; }
.ft-person em { display: block; font-style: normal; font-size: 0.78rem; color: var(--hero-muted); }
.ft-person a { font-size: 0.86rem; color: var(--hero-ink); text-decoration: underline; text-decoration-color: var(--hero-line); text-underline-offset: 3px; }
.ft-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 20px; font-size: 0.8rem; color: var(--hero-muted); }
.ft-bottom a { color: var(--hero-ink); text-decoration: none; }
.ft-top { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border: 1px solid var(--hero-line); border-radius: var(--r-md); color: var(--hero-ink) !important; font-weight: 600; }
.ft-top:hover { background: var(--hero-panel); }

/* ---------- Ask nBrain ----------
 * The widget ships its own stylesheet (ask-nbrain/ask-nbrain.css), loaded after
 * this one, and is shared with pages that do not use the theme. These rules
 * restyle it only inside themed documents; `html` gives them the specificity to
 * win without editing the widget. */
html .anb-root { --anb-navy: var(--brand); --anb-slate: var(--brand); --anb-text: var(--ink); --anb-body: var(--body); --anb-muted: var(--muted); --anb-border: var(--line); --anb-surface: var(--bg); --anb-blue: var(--brand); --anb-blue-d: var(--brand); --anb-green: var(--go); --anb-purple: var(--red); font-family: var(--f-body); }
html .anb-ask { border-radius: var(--r-lg); border-color: var(--line); }
html .anb-ask::before { background: none; }
html .anb-ask:hover, html .anb-ask:focus-within { box-shadow: 0 0 0 3px var(--brand-tint); }
html .anb-ask .anb-spark, html .anb-avatar { background: var(--red); box-shadow: none; border-radius: var(--r-md); }
html .anb-ask-go, html .anb-vorb, html .anb-nav .anb-sched, html .anb-mic.anb-mic-on { background: var(--brand); border-color: var(--brand); box-shadow: none; border-radius: var(--r-md); }
html .anb-nav .anb-sched:hover { background: var(--brand-mid); }
html .anb-mic { background: var(--bg); border-color: var(--line); color: var(--brand); border-radius: var(--r-md); }
html .anb-mic:hover, html .anb-sched:hover { background: var(--brand-tint); border-color: var(--brand-mid); }
html .anb-vbar { background: var(--surface-2); }
html .anb-vtext b { color: var(--brand); font-family: var(--f-mono); font-weight: 500; }
html .anb-progress { background: var(--red); }
html .anb-dock, html .anb-head { background: var(--hero-bg); background-image: none; }
html .anb-dock::before, html .anb-dock::after, html .anb-head::before { display: none; }
html .anb-head::after { background: var(--red); }
html .anb-dock .anb-ask { border-radius: var(--r-lg); }
html .anb-dock .anb-ask:hover, html .anb-dock .anb-ask:focus-within { box-shadow: 0 0 0 3px var(--hero-line); }
html .anb-dock-hint { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.07em; color: var(--hero-muted); }
html .anb-dock-chip { background: var(--hero-panel); border-color: var(--hero-panel-line); }
html .anb-dock-chip:hover, html .anb-dock-toggle:hover { background: var(--hero-line); border-color: var(--hero-muted); }
html .anb-share-cta { color: var(--hero-accent); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .bd-grid { grid-template-columns: 1fr; gap: 22px; }
  .bd-src::after, .bd-src::before, .bd-out::before, .bd-out::after { display: none; }
  .mm-strip, .mm-strip.mm-7 { grid-template-columns: repeat(3, 1fr); }
  .dash { grid-template-columns: 1fr; } .dash-side { display: none; }
  .sec-diagram { grid-template-columns: 1fr; gap: 14px; } .sec-link .line { display: none; }
  .phase-grid, .cap-grid, .rules { grid-template-columns: 1fr 1fr; }
  .tax-wrap, .cpa-box { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .container { padding: 0 18px; }
  header { padding: 36px 0 32px; }
  .header-logos .client-logo { height: 30px; } .header-logos .brand-logo { height: 22px; }
  .section { padding: 48px 0; }
  .grid-2, .grid-3, .asked, .demo-grid, .vs, .m1-grid, .stack-row, .kpis, .dash-cols, .walkaway, .walkaway .r ul, .price-wrap, .cap-grid, .phase-grid, .tax-qual, .ring-inner, .foundation-bar, .champion-flow, .rules { grid-template-columns: 1fr; }
  .vs .own { border-left: none; border-top: 1px solid var(--line); }
  .bc-bars, .bc-callouts, .bc-weeks { gap: 3px; } .bc-callouts div { font-size: 0.62rem; }
  .bc-weeks span:nth-child(even) { visibility: hidden; }
  .mm-strip, .mm-strip.mm-7 { grid-template-columns: repeat(2, 1fr); }
  .boundary-tag, .ring-outer > .tag { right: 16px; left: 16px; justify-content: center; text-align: center; line-height: 1.4; }
  .brain-diagram, .ring-outer { padding-top: 48px; }
  .ft-grid { grid-template-columns: 1fr 1fr; gap: 28px; } .ft-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .anb-nav .anb-brand img:first-child { max-width: 96px; height: auto; } }
@media print {
  html, body { background: #fff; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ===== kit: brain ===== */
/*
 * Brain kit: components for the Centralized AI Brain - Base template.
 * Every class starts with nbk- so nothing here touches a document that does
 * not use them. Adds a sticky chapter nav (nav.nbk-chapters), the large
 * diagram variant (.brain-diagram.nbk-xl), the Decision Engine flow, trust
 * meter, goal-first method, ownership doors, framework grid, credentials row,
 * dependency strip, and month roadmap.
 */
:root {
  --nbk-nav-h: 56px;
  --nbk-layer-5-bg: rgba(231, 206, 134, 0.18); --nbk-layer-5-ink: #EBD9A6;
  --nbk-layer-6-bg: rgba(98, 196, 158, 0.12);  --nbk-layer-6-ink: #B5E6D2;
  --nbk-engine-bg: rgba(98, 196, 158, 0.14);   --nbk-engine-line: rgba(98, 196, 158, 0.4);
}
:where(body:has(.nbk-chapters)) .section[id] { scroll-margin-top: var(--nbk-nav-h); }
.header-logos .nbk-client-panel { display: inline-flex; align-items: center; background: var(--surface); border-radius: var(--r-md); padding: 6px 12px; min-height: 38px; }
.header-logos .nbk-client-panel .client-logo { height: 26px; }
.nbk-logo-slot, .nbk-src-group .gh, .nbk-rail-cap, .nbk-de-card .k, .nbk-trust .k, .nbk-method h4, .nbk-door-core .k, .nbk-reg .k, .nbk-when .k, .nbk-month .mn { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; }
.nbk-logo-slot { font-size: 0.66rem; color: var(--muted); }

nav.nbk-chapters { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.nbk-nav-inner { display: flex; align-items: center; gap: 14px; height: var(--nbk-nav-h); }
.nbk-nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.nbk-nav-brand img { height: 17px; width: auto; display: block; }
.nbk-nav-brand .x { width: 1px; height: 20px; background: var(--line); }
.nbk-nav-links { display: flex; gap: 2px; flex: 1; overflow-x: auto; scrollbar-width: none; justify-content: center; }
.nbk-nav-links::-webkit-scrollbar { display: none; }
.nbk-nav-links a { white-space: nowrap; font-size: 0.8rem; font-weight: 600; color: var(--body); padding: 6px 9px; border-radius: var(--r-md); text-decoration: none; }
.nbk-nav-links a span { font-family: var(--f-mono); font-weight: 500; color: var(--red-text); margin-right: 5px; }
.nbk-nav-links a:hover { background: var(--bg); }
.nbk-nav-links a.active { background: var(--brand-tint); color: var(--brand); }
.nbk-nav-cta { white-space: nowrap; background: var(--brand); color: var(--on-brand); font-size: 0.8rem; font-weight: 600; padding: 7px 14px; border-radius: var(--r-md); text-decoration: none; flex-shrink: 0; }
.nbk-progress { position: absolute; left: 0; bottom: -1px; height: 2px; width: 0; background: var(--red); }

.brain-diagram.nbk-xl .bd-grid { grid-template-columns: 1fr 1.6fr 1fr; }
.nbk-src-group { margin-bottom: 12px; } .nbk-src-group:last-child { margin-bottom: 0; }
.nbk-src-group .gh { font-size: 0.6rem; color: var(--red-text); margin: 0 0 6px 2px; }
.nbk-src-group .chip { padding: 7px 10px; font-size: 0.8rem; margin-bottom: 6px; }
.nbk-core-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nbk-core-grid .core-layer { margin-bottom: 0; }
.nbk-l5 { background: var(--nbk-layer-5-bg); color: var(--nbk-layer-5-ink); } .nbk-l6 { background: var(--nbk-layer-6-bg); color: var(--nbk-layer-6-ink); }
.nbk-de-bar { margin-top: 10px; display: flex; align-items: center; gap: 12px; background: var(--nbk-engine-bg); border: 1px solid var(--nbk-engine-line); border-radius: var(--r-md); padding: 10px 12px; }
.nbk-de-bar .li { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--go); color: var(--on-brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nbk-de-bar .li svg.ic { width: 16px; height: 16px; }
.nbk-de-bar b { display: block; font-size: 0.86rem; color: var(--hero-ink); }
.nbk-de-bar span { display: block; font-size: 0.76rem; color: var(--hero-muted); line-height: 1.45; }
.nbk-rail { margin-top: 22px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.nbk-rail div { position: relative; text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--brand); background: var(--brand-tint); padding: 8px 4px; border-radius: var(--r-md); }
.nbk-rail div:not(:last-child)::after { content: ''; position: absolute; right: -6px; top: 50%; transform: translateY(-50%); border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 6px solid var(--brand-mid); z-index: 1; }
.nbk-rail-cap { text-align: center; font-size: 0.66rem; color: var(--muted); margin-top: 8px; }

.nbk-method { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.nbk-method > div { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 24px; background: var(--surface); }
.section.alt .nbk-method .old { background: var(--bg); }
.nbk-method .new { border-top: 4px solid var(--brand); }
.nbk-method h4 { font-size: 0.7rem; margin-bottom: 14px; }
.nbk-method .old h4 { color: var(--muted); } .nbk-method .new h4 { color: var(--brand); }
.nbk-mflow { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.nbk-mstep { display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--body); background: var(--surface-2); border-radius: var(--r-md); padding: 8px 12px; }
.nbk-method .new .nbk-mstep { background: var(--brand-tint); color: var(--ink); }
.nbk-mstep .n { width: 22px; height: 22px; border-radius: var(--r-sm); background: var(--surface); color: var(--muted); font-family: var(--f-mono); font-size: 0.72rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nbk-method .new .nbk-mstep .n { background: var(--brand); color: var(--on-brand); }
.nbk-method .new .nbk-mstep.de { background: var(--go-soft); } .nbk-method .new .nbk-mstep.de .n { background: var(--go); }
.nbk-method ul { list-style: none; }
.nbk-method li { font-size: 0.88rem; color: var(--body); padding: 4px 0 4px 22px; position: relative; }
.nbk-method .old li::before { content: '–'; position: absolute; left: 5px; color: var(--faint); font-weight: 700; }
.nbk-method .new li::before { content: '✓'; position: absolute; left: 3px; color: var(--go); font-weight: 700; }

.nbk-de-flow { margin-top: 26px; display: grid; grid-template-columns: 0.9fr auto 1fr auto 1.5fr; align-items: stretch; }
.nbk-de-arrow { display: flex; align-items: center; justify-content: center; width: 32px; color: var(--brand-mid); font-size: 1.3rem; font-weight: 700; }
.nbk-de-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.nbk-de-card.dark { background: var(--hero-bg); color: var(--hero-ink); border-color: var(--hero-bg); }
.nbk-de-card .k { font-size: 0.62rem; color: var(--red-text); margin-bottom: 6px; }
.nbk-de-card.dark .k { color: var(--hero-accent); }
.nbk-de-card h5 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
.nbk-de-card.dark h5 { color: var(--hero-ink); }
.section .nbk-de-card p { font-size: 0.84rem; line-height: 1.5; margin: 0; color: var(--muted); }
.section .nbk-de-card.dark p { color: var(--hero-muted); }
.nbk-de-card .docs { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.nbk-de-card .docs span { font-size: 0.72rem; font-weight: 600; color: var(--body); background: var(--surface-2); border-radius: var(--r-sm); padding: 3px 8px; }
.nbk-de-card.de-eng { border-top: 4px solid var(--go); }
.nbk-de-card.de-eng .k { color: var(--go); }
.nbk-check { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; font-size: 0.82rem; color: var(--body); padding: 6px 0; border-bottom: 1px solid var(--line-soft); }
.nbk-check:last-of-type { border-bottom: none; }
.nbk-check i { width: 20px; height: 20px; border-radius: var(--r-sm); display: flex; align-items: center; justify-content: center; font-style: normal; font-weight: 700; font-size: 0.78rem; }
.nbk-check i.y { background: var(--go-soft); color: var(--go); } .nbk-check i.n { background: var(--red-soft); color: var(--red-text); }
.nbk-check em { font-style: normal; font-family: var(--f-mono); font-size: 0.74rem; color: var(--muted); }
.nbk-check.fail { color: var(--red-text); } .nbk-check.fail em { color: var(--red-text); }
.nbk-de-out { margin-top: 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nbk-de-out div { border-radius: var(--r-md); padding: 14px 16px; font-size: 0.84rem; line-height: 1.45; border-left: 4px solid; }
.nbk-de-out b { display: block; margin-bottom: 3px; }
.nbk-o-pass { background: var(--go-soft); border-color: var(--go) !important; color: var(--go); }
.nbk-o-rerun { background: var(--brand-tint); border-color: var(--brand) !important; color: var(--brand); }
.nbk-o-human { background: var(--warn-soft); border-color: var(--warn) !important; color: var(--warn); }
.nbk-trust { margin-top: 20px; background: var(--hero-bg); border-radius: var(--r-lg); padding: 22px 24px; color: var(--hero-ink); }
.nbk-trust .k { font-size: 0.64rem; color: var(--hero-accent); margin-bottom: 14px; }
.nbk-trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.nbk-trust-row > div { background: var(--hero-panel); border: 1px solid var(--hero-panel-line); border-radius: var(--r-md); padding: 14px 16px; }
.nbk-trust-row b { display: block; font-size: 0.92rem; margin-bottom: 4px; }
.nbk-trust-row span { font-size: 0.78rem; color: var(--hero-muted); line-height: 1.45; display: block; }
.nbk-meter { height: 6px; border-radius: 2px; background: var(--hero-panel-line); margin: 10px 0 6px; overflow: hidden; }
.nbk-meter i { display: block; height: 100%; background: var(--hero-accent); }

.nbk-doors { margin-top: 24px; display: grid; grid-template-columns: 1fr auto 1.6fr; align-items: center; }
.nbk-door-core { background: var(--hero-bg); color: var(--hero-ink); border-radius: var(--r-lg); padding: 22px; text-align: center; }
.nbk-door-core .k { font-size: 0.62rem; color: var(--hero-accent); }
.nbk-door-core h4 { font-size: 1.15rem; font-weight: 600; margin: 4px 0 6px; }
.section .nbk-door-core p { font-size: 0.82rem; color: var(--hero-muted); margin: 0; }
.nbk-door-fan { width: 44px; position: relative; align-self: stretch; }
.nbk-door-fan::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 2px; background: var(--brand-mid); }
.nbk-door-list { display: flex; flex-direction: column; gap: 10px; border-left: 2px solid var(--brand-mid); padding-left: 18px; }
.nbk-door { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 16px; position: relative; }
.nbk-door::before { content: ''; position: absolute; left: -20px; top: 50%; width: 18px; height: 2px; background: var(--brand-mid); }
.nbk-door b { font-size: 0.92rem; color: var(--ink); display: block; }
.nbk-door span { font-size: 0.82rem; color: var(--muted); line-height: 1.45; display: block; }

.nbk-reg-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.nbk-reg { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--go); border-radius: var(--r-md); padding: 16px 18px; }
.nbk-reg .k { font-size: 0.62rem; color: var(--go); margin-bottom: 4px; }
.nbk-reg h5 { font-size: 0.95rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; line-height: 1.35; }
.section .nbk-reg p { font-size: 0.84rem; color: var(--muted); margin: 0; line-height: 1.5; }
.nbk-exp-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 18px; }
.nbk-exp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.nbk-exp b { display: block; font-size: 0.9rem; color: var(--ink); margin-bottom: 3px; }
.nbk-exp span { font-size: 0.8rem; color: var(--muted); line-height: 1.45; display: block; }
.nbk-when { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.nbk-when > div { padding: 16px 18px; background: var(--surface); border-right: 1px solid var(--line); }
.nbk-when > div:last-child { border-right: none; }
.nbk-when .on { background: var(--brand-tint); }
.nbk-when .k { font-size: 0.62rem; color: var(--red-text); }
.nbk-when b { display: block; font-size: 0.92rem; color: var(--ink); margin: 3px 0; }
.nbk-when span { font-size: 0.8rem; color: var(--muted); line-height: 1.45; display: block; }

.nbk-roadmap { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 20px; }
.nbk-month { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--series-1); border-radius: var(--r-md); padding: 14px 14px 16px; display: flex; flex-direction: column; }
.nbk-month.m-green { border-top-color: var(--series-2); }
.nbk-month .mn { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 0.62rem; color: var(--muted); }
.nbk-month .mn em { font-style: normal; letter-spacing: 0; text-transform: none; color: var(--brand); background: var(--brand-tint); border-radius: var(--r-sm); padding: 2px 6px; }
.nbk-month.m-green .mn em { color: var(--go); background: var(--go-soft); }
.nbk-month h4 { font-size: 0.95rem; font-weight: 600; color: var(--ink); margin: 6px 0 8px; line-height: 1.3; }
.nbk-month ul { list-style: none; display: grid; gap: 5px; margin-bottom: 10px; }
.nbk-month li { font-size: 0.78rem; color: var(--body); line-height: 1.45; padding-left: 11px; position: relative; }
.nbk-month li::before { content: ''; position: absolute; left: 0; top: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--series-1); }
.nbk-month.m-green li::before { background: var(--series-2); }
.nbk-month .ms { margin-top: auto; font-size: 0.76rem; color: var(--ink); background: var(--brand-tint); border-radius: var(--r-sm); padding: 7px 9px; line-height: 1.4; }
.nbk-month.m-green .ms { background: var(--go-soft); }
.bc-bars.nbk-w6, .bc-callouts.nbk-w6 { grid-template-columns: repeat(6, 1fr); gap: 14px; }
.bc-bar.nbk-tn { --c: var(--series-2); --cl: var(--series-2-soft); }

@media (max-width: 900px) {
  .brain-diagram.nbk-xl .bd-grid { grid-template-columns: 1fr; }
  .nbk-de-flow { grid-template-columns: 1fr; gap: 10px; } .nbk-de-arrow { width: auto; transform: rotate(90deg); height: 20px; }
  .nbk-doors { grid-template-columns: 1fr; gap: 14px; } .nbk-door-fan { display: none; }
  .nbk-roadmap { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nbk-nav-brand, .nbk-nav-cta { display: none; } .nbk-nav-links { justify-content: flex-start; }
  .nbk-core-grid, .nbk-method, .nbk-de-out, .nbk-trust-row, .nbk-reg-grid, .nbk-exp-row, .nbk-when { grid-template-columns: 1fr; }
  .nbk-rail { grid-template-columns: repeat(4, 1fr); } .nbk-rail div::after { display: none; }
  .nbk-when > div { border-right: none; border-bottom: 1px solid var(--line); }
  .nbk-roadmap { grid-template-columns: 1fr 1fr; }
  :where(body:has(.nbk-chapters)) .people { flex-wrap: wrap; }
}
@media print { nav.nbk-chapters, :where(body:has(.nbk-chapters)) .ask-mount { display: none; } }
/* ===== end kit: brain ===== */

/* ===== kit: engagement ===== */
/*
 * Engagement kit: components for the Revised 1015 Agreement template (the
 * seven-section proposed engagement). Every class starts with nbk-pe-. Adds the
 * header stack line, a four-up grid, paired quotes, the trained-on list, tick
 * lists, use-case cards, the compounding-hours panel, the monthly payment
 * strip, month lines in phase cards, the needs list, and the case-study card.
 */
.nbk-pe-k, .nbk-pe-usecase .who, .nbk-pe-needs .why, .nbk-pe-pay b, .nbk-pe-compound .cap, .nbk-pe-bar-labels, .nbk-pe-case .l { font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.07em; text-transform: uppercase; }
.nbk-pe-k { display: block; font-size: 0.64rem; color: var(--red-text); margin-bottom: 6px; }
header .nbk-pe-stack { font-size: 0.92rem; color: var(--hero-muted); max-width: 780px; margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--hero-accent); }
header .nbk-pe-stack strong { color: var(--hero-ink); font-weight: 600; }

.nbk-pe-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.nbk-pe-quotes { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.nbk-pe-quotes .quote-block p { font-size: 1.1rem; }

.nbk-pe-know { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 18px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.nbk-pe-know > div { background: var(--surface); padding: 12px 16px; font-size: 0.9rem; color: var(--body); line-height: 1.5; }
.section.alt .nbk-pe-know > div { background: var(--bg); }
.nbk-pe-know b { color: var(--ink); font-weight: 600; }
.chip .nbk-pe-sub { display: block; font-size: 0.72rem; font-weight: 400; color: var(--muted); line-height: 1.35; }

.nbk-pe-ticks { list-style: none; margin-top: 4px; }
.nbk-pe-ticks li { font-size: 0.84rem; color: var(--body); line-height: 1.45; padding: 5px 0 5px 20px; position: relative; border-bottom: 1px solid var(--line-soft); }
.nbk-pe-ticks li:last-child { border-bottom: none; }
.nbk-pe-ticks li::before { content: '✓'; position: absolute; left: 2px; color: var(--c, var(--go)); font-weight: 700; }

.nbk-pe-usecase { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--brand); border-radius: var(--r-md); padding: 18px 20px; }
.section.alt .nbk-pe-usecase { background: var(--bg); }
.nbk-pe-usecase .who { font-size: 0.62rem; color: var(--red-text); }
.nbk-pe-usecase h4 { font-size: 1rem; font-weight: 600; color: var(--ink); margin: 4px 0 10px; line-height: 1.3; }
.nbk-pe-usecase .ask { font-family: var(--f-display); font-size: 0.92rem; font-weight: 500; color: var(--brand); background: var(--brand-tint); border-radius: var(--r-md); padding: 10px 12px; margin-bottom: 10px; line-height: 1.45; }
.section .nbk-pe-usecase p { font-size: 0.84rem; color: var(--muted); margin: 0; line-height: 1.5; }

.nbk-pe-compound { margin-top: 28px; display: grid; grid-template-columns: 1fr 1.1fr; gap: 32px; align-items: center; background: var(--hero-bg); color: var(--hero-ink); border-radius: var(--r-lg); padding: 26px 28px; }
.nbk-pe-compound h3 { font-size: 1.3rem; font-weight: 600; margin-bottom: 8px; }
.section .nbk-pe-compound p { font-size: 0.9rem; color: var(--hero-muted); margin: 0; }
.nbk-pe-bars { height: 150px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; align-items: end; padding-top: 22px; border-bottom: 1px solid var(--hero-line); }
.nbk-pe-bars i { display: block; position: relative; background: var(--hero-accent); border-radius: var(--r-sm) var(--r-sm) 0 0; }
.nbk-pe-bars i span { position: absolute; left: 0; right: 0; top: -20px; text-align: center; font-family: var(--f-mono); font-style: normal; font-size: 0.68rem; color: var(--hero-ink); }
.nbk-pe-bar-labels { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 6px; font-size: 0.6rem; color: var(--hero-muted); text-align: center; }
.nbk-pe-compound .cap { font-size: 0.6rem; color: var(--hero-muted); margin-top: 12px; }

.card.nbk-pe-lead { border-top: 4px solid var(--brand); }
.badge.nbk-pe-badge { margin-bottom: 10px; }
.module-one .nbk-pe-not { font-size: 0.9rem; color: var(--body); margin: 0; }

.nbk-pe-pay { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; margin-bottom: 4px; }
.nbk-pe-pay div { background: var(--hero-panel); border: 1px solid var(--hero-panel-line); border-radius: var(--r-md); padding: 8px 6px; text-align: center; }
.nbk-pe-pay div.on { border-color: var(--hero-accent); }
.nbk-pe-pay b { display: block; font-size: 0.58rem; color: var(--hero-muted); margin-bottom: 2px; }
.nbk-pe-pay span { font-family: var(--f-display); font-size: 0.95rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.included .nbk-pe-not { font-size: 0.84rem; color: var(--muted); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line-soft); }

.phase-grid.nbk-pe-two { grid-template-columns: 1fr 1fr; }
.nbk-pe-mo { padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 0.84rem; color: var(--body); line-height: 1.5; }
.nbk-pe-mo b { display: block; font-size: 0.9rem; color: var(--ink); font-weight: 600; }

.nbk-pe-needs { list-style: none; margin-top: 18px; border-top: 1px solid var(--line); }
.nbk-pe-needs li { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.nbk-pe-needs h4 { font-size: 1rem; font-weight: 600; color: var(--ink); margin-bottom: 3px; }
.section .nbk-pe-needs p { font-size: 0.88rem; color: var(--muted); margin: 0; }
.nbk-pe-needs .why { font-size: 0.62rem; color: var(--brand); background: var(--brand-tint); border-radius: var(--r-sm); padding: 3px 8px; white-space: nowrap; }

.nbk-pe-case { margin-top: 18px; display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.nbk-pe-case .stat { background: var(--hero-bg); color: var(--hero-ink); padding: 24px 22px; display: flex; flex-direction: column; justify-content: center; }
.nbk-pe-case .n { font-family: var(--f-display); font-size: 2.4rem; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.nbk-pe-case .l { font-size: 0.62rem; color: var(--hero-muted); margin-top: 6px; line-height: 1.5; }
.nbk-pe-case .body { padding: 22px 24px; }
.nbk-pe-case h4 { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.section .nbk-pe-case p { font-size: 0.9rem; color: var(--muted); margin: 0; }

@media (max-width: 900px) {
  .nbk-pe-grid-4 { grid-template-columns: 1fr 1fr; }
  .nbk-pe-compound { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nbk-pe-grid-4, .nbk-pe-quotes, .nbk-pe-know, .phase-grid.nbk-pe-two, .nbk-pe-case { grid-template-columns: 1fr; }
  .nbk-pe-pay { grid-template-columns: repeat(3, 1fr); }
  .nbk-pe-needs li { grid-template-columns: 1fr; gap: 6px; }
}
/* ===== end kit: engagement ===== */
