@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600&family=Barlow+Semi+Condensed:wght@400;500;600&display=swap");

:root {
  --bg: #000;
  --panel: #0b0b0c;
  --panel-2: #141416;
  --line: #26262a;
  --line-2: #3a3a40;
  --text: #f2f2f2;
  --muted: #8d8d95;
  --dim: #5e5e66;
  --hi: #fff;
  --good: #d9d9d9;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.55 "Barlow", -apple-system, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

.caps { font-family: "Barlow Semi Condensed", "Barlow", sans-serif; text-transform: uppercase; letter-spacing: 0.14em; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 1000; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 28px; background: rgba(0,0,0,0.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.brand { display: flex; align-items: baseline; gap: 14px; text-decoration: none; }
.wordmark { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 600; font-size: 20px; letter-spacing: 0.42em; }
.brand .sub { font-size: 12px; color: var(--muted); letter-spacing: 0.18em; }
.nav { display: flex; gap: 26px; font-size: 12px; }
.nav a { text-decoration: none; color: var(--muted); padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a.on { color: var(--hi); border-bottom-color: var(--hi); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 26px; border: 1px solid var(--hi); background: transparent; color: var(--hi); text-decoration: none; cursor: pointer; font-family: "Barlow Semi Condensed", sans-serif; text-transform: uppercase; letter-spacing: 0.16em; font-size: 13px; font-weight: 500; transition: background .15s, color .15s; }
.btn:hover { background: var(--hi); color: #000; }
.btn.solid { background: var(--hi); color: #000; }
.btn.solid:hover { background: #cfcfcf; border-color: #cfcfcf; }
.btn.sm { height: 34px; padding: 0 16px; font-size: 11px; }
.btn:disabled { opacity: .35; cursor: default; }
.btn:disabled:hover { background: transparent; color: var(--hi); }

.disclaimer { padding: 28px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; text-align: center; }

/* ---------- landing ---------- */
.landing-hero { position: relative; min-height: min(calc(100vh - 64px), 900px); display: flex; align-items: flex-end; padding: 0 6vw 9vh; overflow: hidden; }
.landing-hero #heroMap { position: absolute; inset: 0; z-index: 0; }
.landing-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.35) 45%, #000 100%); pointer-events: none; }
.landing-hero .inner { position: relative; z-index: 2; max-width: 980px; }
.eyebrow { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.landing-hero h1 { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 500; font-size: clamp(40px, 6vw, 76px); line-height: 1.02; margin: 0 0 22px; text-transform: uppercase; letter-spacing: 0.02em; }
.landing-hero p.lede { font-size: 19px; color: #cfcfd4; max-width: 640px; margin: 0 0 34px; font-weight: 300; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats > div { padding: 34px 28px; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats .n { font-family: "Barlow Semi Condensed", sans-serif; font-size: 44px; font-weight: 500; line-height: 1; }
.stats .l { margin-top: 10px; color: var(--muted); font-size: 13px; }
.section { padding: 96px 6vw; border-bottom: 1px solid var(--line); }
.section h2 { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; font-size: 34px; margin: 0 0 14px; }
.section .intro { color: #bdbdc3; font-size: 18px; max-width: 720px; font-weight: 300; margin: 0 0 48px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.door { background: #000; padding: 44px 40px 40px; text-decoration: none; display: flex; flex-direction: column; min-height: 320px; transition: background .2s; }
.door:hover { background: var(--panel); }
.door .k { font-size: 12px; color: var(--muted); }
.door h3 { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 500; font-size: 30px; text-transform: uppercase; letter-spacing: 0.04em; margin: 14px 0 12px; }
.door p { color: #b3b3ba; margin: 0 0 28px; max-width: 460px; }
.door .go { margin-top: auto; font-size: 12px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.steps > div { padding: 22px 22px 0 0; }
.steps .num { font-size: 12px; color: var(--muted); }
.steps h4 { margin: 10px 0 6px; font-weight: 500; font-size: 17px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- console ---------- */
body.console { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.kpis { display: flex; border-bottom: 1px solid var(--line); background: var(--panel); }
.kpi { padding: 14px 24px; border-right: 1px solid var(--line); min-width: 150px; }
.kpi .n { font-family: "Barlow Semi Condensed", sans-serif; font-size: 26px; font-weight: 500; line-height: 1.1; }
.kpi .l { font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.kpis .spacer { flex: 1; }
.kpis .viewtoggle { display: flex; align-items: center; gap: 0; padding: 0 20px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); }
.seg button { background: transparent; border: 0; padding: 7px 14px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); cursor: pointer; font-family: "Barlow Semi Condensed", sans-serif; }
.seg button.on { background: var(--hi); color: #000; }

.workspace { flex: 1; display: grid; grid-template-columns: 360px 1fr 440px; min-height: 0; }
.list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: #000; }
.filters { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.filters input, .filters select { width: 100%; background: var(--panel-2); border: 1px solid var(--line); padding: 9px 11px; outline: none; }
.filters input:focus, .filters select:focus { border-color: var(--line-2); }
.filters .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rows { overflow-y: auto; flex: 1; }
.isp-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); cursor: pointer; }
.isp-row:hover { background: var(--panel); }
.isp-row.on { background: var(--panel-2); box-shadow: inset 2px 0 0 var(--hi); }
.isp-row .nm { font-weight: 500; }
.isp-row .meta { grid-column: 1 / 2; color: var(--muted); font-size: 12.5px; }
.isp-row .sc { grid-row: 1 / 3; grid-column: 2; align-self: center; text-align: right; }
.score { font-family: "Barlow Semi Condensed", sans-serif; font-size: 24px; font-weight: 500; line-height: 1; }
.score small { display: block; font-size: 10px; color: var(--muted); letter-spacing: .12em; }
.stage-pill { display: inline-block; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 2px 7px; border: 1px solid var(--line-2); color: var(--muted); margin-left: 6px; }
.stage-pill.live { border-color: var(--hi); color: var(--hi); }

.center { position: relative; min-height: 0; }
#map { position: absolute; inset: 0; background: #050505; }
.board { position: absolute; inset: 0; display: none; grid-template-columns: repeat(6, minmax(170px, 1fr)); gap: 1px; background: var(--line); overflow-x: auto; }
.board.show { display: grid; }
.col { background: #000; display: flex; flex-direction: column; min-height: 0; }
.col h5 { margin: 0; padding: 14px 14px 10px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: "Barlow Semi Condensed", sans-serif; font-weight: 500; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); }
.col .cards { overflow-y: auto; padding: 10px; display: grid; gap: 8px; align-content: start; }
.card { border: 1px solid var(--line); background: var(--panel); padding: 10px 12px; cursor: pointer; font-size: 13px; }
.card:hover { border-color: var(--line-2); }
.card .nm { font-weight: 500; font-size: 13.5px; }
.card .meta { color: var(--muted); font-size: 12px; }

.detail { border-left: 1px solid var(--line); overflow-y: auto; background: #000; }
.detail .empty { padding: 40px 28px; color: var(--muted); }
.d-head { padding: 24px 26px 20px; border-bottom: 1px solid var(--line); }
.d-head .k { font-size: 11px; color: var(--muted); }
.d-head h2 { margin: 8px 0 4px; font-family: "Barlow Semi Condensed", sans-serif; font-weight: 500; font-size: 28px; line-height: 1.1; }
.d-head .site { color: var(--muted); font-size: 13px; }
.d-sec { padding: 20px 26px; border-bottom: 1px solid var(--line); }
.d-sec h4 { margin: 0 0 12px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-family: "Barlow Semi Condensed", sans-serif; font-weight: 500; display: flex; justify-content: space-between; align-items: center; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; font-size: 13.5px; }
.facts .l { color: var(--muted); font-size: 11.5px; }
.bar { height: 3px; background: var(--line); margin-top: 6px; }
.bar > i { display: block; height: 100%; background: var(--hi); }
.why { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 13.5px; }
.why li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; }
.why .pts { color: var(--muted); font-family: "Barlow Semi Condensed", sans-serif; }
.signals { margin: 0; padding-left: 18px; color: #cfcfd4; font-size: 13.5px; display: grid; gap: 6px; }
.draft { background: var(--panel); border: 1px solid var(--line); padding: 16px 18px; font-size: 13.5px; white-space: pre-wrap; outline: none; line-height: 1.6; }
.draft:focus { border-color: var(--line-2); }
.draft-sub { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.stagebar { display: flex; gap: 0; margin-bottom: 14px; }
.stagebar span { flex: 1; height: 3px; background: var(--line); margin-right: 3px; }
.stagebar span.done { background: var(--hi); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.srcs { font-size: 12px; color: var(--dim); word-break: break-all; display: grid; gap: 4px; }
.srcs a { color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--hi); color: #000; padding: 12px 20px; font-size: 13px; opacity: 0; transition: all .25s; z-index: 2000; pointer-events: none; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* leaflet tweaks */
.leaflet-container { background: #050505 !important; font-family: "Barlow", sans-serif; }
.leaflet-control-attribution { background: rgba(0,0,0,.6) !important; color: #666 !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: #888 !important; }
.leaflet-bar a { background: #111 !important; color: #ddd !important; border-color: #222 !important; }
.leaflet-tooltip.isp-tip { background: #000; color: #fff; border: 1px solid #333; border-radius: 0; box-shadow: none; font-size: 12px; padding: 5px 9px; }
.leaflet-tooltip.isp-tip::before { display: none; }

/* ---------- partner page ---------- */
.p-hero { position: relative; min-height: min(88vh, 860px); display: flex; align-items: flex-end; padding: 0 6vw 10vh; overflow: hidden; }
.p-hero #pmap { position: absolute; inset: 0; z-index: 0; }
.p-hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,.2) 100%), linear-gradient(180deg, transparent 60%, #000 100%); pointer-events: none; }
.p-hero .inner { position: relative; z-index: 2; max-width: 720px; }
.p-hero h1 { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 500; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.04; margin: 0 0 22px; text-transform: uppercase; letter-spacing: 0.02em; }
.p-hero p { font-size: 19px; color: #cfcfd4; font-weight: 300; margin: 0 0 32px; max-width: 580px; }
.p-hero .for { font-size: 12px; color: var(--muted); margin-bottom: 18px; }
.p-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.three > div { padding: 28px 32px 0 0; }
.three .num { font-size: 12px; color: var(--muted); }
.three h3 { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: 22px; margin: 12px 0 10px; }
.three p { color: #b3b3ba; margin: 0; }
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.calc > div { background: #000; padding: 40px; }
.slider { margin-bottom: 30px; }
.slider .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.slider .top span:first-child { color: #cfcfd4; }
.slider .top b { font-family: "Barlow Semi Condensed", sans-serif; font-size: 22px; font-weight: 500; }
.slider .hint { color: var(--dim); font-size: 12.5px; margin-top: 6px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: var(--line-2); outline: none; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; border-radius: 50%; background: #fff; cursor: pointer; }
.out .big { font-family: "Barlow Semi Condensed", sans-serif; font-size: 64px; font-weight: 500; line-height: 1; margin: 10px 0 6px; }
.out .k { font-size: 12px; color: var(--muted); }
.out .line { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.out .line:first-of-type { border-top: 1px solid var(--line); margin-top: 28px; }
.out .note { color: var(--dim); font-size: 12.5px; margin-top: 18px; }
.faq { border-top: 1px solid var(--line-2); max-width: 900px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-size: 18px; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 300; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: #b3b3ba; margin: 14px 0 0; max-width: 760px; }
.apply { display: grid; grid-template-columns: 300px 1fr; gap: 64px; }
.progress { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-2); }
.progress li { padding: 12px 0 12px 20px; color: var(--dim); position: relative; font-size: 15px; }
.progress li.on { color: var(--hi); }
.progress li.on::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 2px; background: var(--hi); }
.progress li.done { color: var(--muted); }
.form-step { display: none; max-width: 620px; }
.form-step.on { display: block; }
.field { margin-bottom: 20px; }
.field label { display: block; font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; font-family: "Barlow Semi Condensed", sans-serif; }
.field input, .field select, .field textarea { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 0; outline: none; font-size: 17px; }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--hi); }
.field select option { background: #111; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.checks { display: grid; gap: 12px; margin: 6px 0 24px; }
.checks label { display: flex; gap: 12px; align-items: flex-start; color: #cfcfd4; cursor: pointer; }
.checks input { margin-top: 4px; accent-color: #fff; }
.terms { border: 1px solid var(--line); padding: 20px 22px; color: #b3b3ba; font-size: 14px; margin-bottom: 22px; }
.terms ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; }
.form-nav { display: flex; gap: 12px; margin-top: 10px; }
.done-box h3 { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: 30px; margin: 0 0 12px; }
.done-box ol { color: #cfcfd4; padding-left: 20px; display: grid; gap: 10px; }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: 300px 1fr; }
  .detail { position: fixed; right: 0; top: 64px; bottom: 0; width: 420px; z-index: 1500; display: none; }
  .detail.open { display: block; }
}
@media (max-width: 800px) {
  .stats, .steps, .three, .two, .calc, .apply, .grid2 { grid-template-columns: 1fr; }
  .nav { display: none; }
}

/* live research modal */
.modal { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.75); display: none; align-items: center; justify-content: center; }
.modal.show { display: flex; }
.modal-box { width: min(520px, 92vw); background: #000; border: 1px solid var(--line-2); padding: 32px 34px 28px; }
.modal-box .k { font-size: 11px; color: var(--muted); }
.modal-box h3 { font-family: "Barlow Semi Condensed", sans-serif; font-weight: 500; text-transform: uppercase; letter-spacing: .05em; font-size: 26px; margin: 10px 0 10px; }
.modal-box p { color: #b3b3ba; margin: 0 0 24px; font-size: 14.5px; }
.modal-box .status { min-height: 22px; color: var(--muted); font-size: 13.5px; margin: -4px 0 14px; }

/* terrain + type refinements */
.terrain .leaflet-tile, .leaflet-tile.terrain { filter: brightness(.62) contrast(1.35) grayscale(1); }
.section h2, .landing-hero h1, .p-hero h1, .three h3, .door h3, .done-box h3 { text-transform: none; letter-spacing: -0.01em; }
.landing-hero h1, .p-hero h1 { font-family: "Barlow", sans-serif; font-weight: 500; letter-spacing: -0.025em; line-height: 1.02; }
.section h2 { font-family: "Barlow", sans-serif; font-size: 40px; font-weight: 500; letter-spacing: -0.02em; }
.three h3 { font-family: "Barlow", sans-serif; font-size: 22px; letter-spacing: -0.01em; }

/* overview: case study, index list, note */
.case { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.case .eyebrow { margin-bottom: 14px; }
.case p { color: #c9c9cf; font-size: 18px; font-weight: 300; max-width: 560px; }
.case .said { color: #fff; font-weight: 400; }
.textlink { display: inline-block; margin-top: 10px; color: #fff; text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 3px; }
.textlink:hover { border-color: #fff; }
.case-map { position: relative; aspect-ratio: 1 / 1; border: 1px solid var(--line); }
.case-map #caseMap { position: absolute; inset: 0; }
.maplabel { position: absolute; left: 14px; bottom: 12px; z-index: 500; font-size: 12px; color: #cfcfd4; background: rgba(0,0,0,.6); padding: 4px 8px; }
.index { border-top: 1px solid var(--line-2); }
.index a { display: grid; grid-template-columns: 260px 1fr 40px; gap: 24px; align-items: baseline; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.index a:hover .t, .index a:hover .g { color: #fff; }
.index .t { font-size: 24px; font-weight: 500; color: #e6e6ea; letter-spacing: -0.01em; }
.index .d { color: var(--muted); font-size: 16px; max-width: 620px; }
.index .g { color: var(--dim); font-size: 22px; text-align: right; }
.note-from p { max-width: 760px; font-size: 20px; line-height: 1.6; font-weight: 300; color: #d4d4d9; margin: 0; }
.stats .n { font-family: "Barlow", sans-serif; letter-spacing: -0.03em; }
.stats .l { max-width: 230px; }
@media (max-width: 800px) { .case { grid-template-columns: 1fr; } .index a { grid-template-columns: 1fr; gap: 6px; } }

/* discovery + reply agents */
.modal-box.wide { width: min(760px, 94vw); max-height: 88vh; overflow-y: auto; }
.dlist { display: grid; gap: 0; margin: 4px 0 16px; border-top: 1px solid var(--line); }
.drow { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 14px; }
.drow input { accent-color: #fff; margin-top: 3px; }
.drow .meta { color: var(--muted); font-size: 12.5px; }
.drow .why { color: #b3b3ba; font-size: 13px; }
.drow a { color: var(--muted); font-size: 12px; }
.dstate { color: var(--muted); font-size: 12px; white-space: nowrap; }
.replybox { width: 100%; min-height: 90px; background: var(--panel); border: 1px solid var(--line); padding: 12px 14px; font-size: 13.5px; resize: vertical; outline: none; }
.replybox:focus { border-color: var(--line-2); }
.d-sec .status { color: var(--muted); font-size: 12.5px; align-self: center; }
.rcard { margin-top: 14px; border: 1px solid var(--line-2); padding: 14px 16px; font-size: 13.5px; }
.rcard .rtop { display: flex; gap: 10px; align-items: baseline; margin-bottom: 10px; }
.rcard .rcat { flex: none; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid #fff; padding: 2px 7px; }
.rcard .l { color: var(--muted); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; margin: 12px 0 6px; }
.rcard p { margin: 0; color: #cfcfd4; }

/* partner portal */
.p-head { padding: 56px 6vw 34px; border-bottom: 1px solid var(--line); }
.p-head h1 { font-family: "Barlow", sans-serif; font-weight: 500; letter-spacing: -0.02em; font-size: 44px; margin: 12px 0 22px; }
.p-head .sub { color: var(--muted); margin: 12px 0 0; }
.progressbar { height: 3px; background: var(--line); max-width: 560px; }
.progressbar i { display: block; height: 100%; background: #fff; transition: width .3s; }
.p-grid { display: grid; grid-template-columns: 280px 1fr; gap: 0; }
.p-col { padding: 34px 28px 34px 6vw; border-right: 1px solid var(--line); }
.p-col h4 { font-size: 11px; color: var(--muted); margin: 0 0 16px; font-weight: 500; }
.checklist { list-style: none; padding: 0; margin: 0; counter-reset: c; }
.checklist li { counter-increment: c; position: relative; padding: 10px 0 10px 34px; font-size: 14.5px; }
.checklist li::before { content: counter(c); position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border: 1px solid var(--line-2); border-radius: 50%; font-size: 11px; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.checklist li.done::before { content: "✓"; background: #fff; color: #000; border-color: #fff; }
.checklist li a { text-decoration: none; color: #cfcfd4; }
.checklist li.done a { color: var(--muted); text-decoration: line-through; }
.p-note { margin-top: 28px; color: var(--dim); font-size: 12px; }
.p-main { padding: 34px 6vw 60px 40px; display: grid; gap: 22px; max-width: 980px; }
.p-card { border: 1px solid var(--line); padding: 24px 26px; }
.p-card-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.p-card h3 { margin: 0; font-weight: 500; font-size: 21px; letter-spacing: -0.01em; }
.pill { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line-2); padding: 3px 8px; color: var(--muted); }
.pill.on { border-color: #fff; color: #fff; }
.muted { color: var(--muted); }
.ag-doc { background: var(--panel); border: 1px solid var(--line); padding: 18px 22px; font-size: 14px; color: #cfcfd4; max-height: 300px; overflow-y: auto; margin-bottom: 18px; }
.ag-doc ol { padding-left: 18px; display: grid; gap: 8px; }
.ag-signed { padding: 12px 0 0; color: #cfcfd4; }
.ag-signed a { color: #fff; margin-left: 8px; }
.slots { display: flex; gap: 8px; flex-wrap: wrap; }
.slot { background: transparent; border: 1px solid var(--line-2); padding: 9px 14px; cursor: pointer; font-size: 13px; color: #cfcfd4; }
.slot.on, .slot:hover { border-color: #fff; color: #fff; }
.quote { display: grid; grid-template-columns: 1fr 180px auto; gap: 8px; margin: 6px 0 16px; }
.quote input, .quote select { background: var(--panel-2); border: 1px solid var(--line); padding: 9px 11px; outline: none; }
.ctable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ctable th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.ctable td { padding: 10px 0; border-bottom: 1px solid var(--line); }
.pcode { margin-top: 14px; color: var(--muted); font-size: 13px; }
.pcode b { color: #fff; letter-spacing: .08em; }
.e-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.e-grid > div { padding: 18px 16px 18px 0; }
.e-grid .n { font-size: 30px; font-weight: 500; letter-spacing: -0.02em; }
.e-grid .l { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.e-set { display: flex; gap: 24px; margin-top: 14px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.e-set input { width: 80px; margin-left: 8px; background: var(--panel-2); border: 1px solid var(--line); padding: 6px 8px; }
@media print { .topbar, .p-col, #training, #customers, #earnings, .disclaimer, .p-head .progressbar, .ag-signed a { display: none !important; } body { background: #fff; color: #000; } .ag-doc { max-height: none; background: #fff; color: #000; } }
@media (max-width: 900px) { .p-grid { grid-template-columns: 1fr; } .p-col { border-right: 0; border-bottom: 1px solid var(--line); } .e-grid { grid-template-columns: 1fr 1fr; } }

/* pipeline dashboard */
.dash .eyebrow { margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.tile { padding: 22px 18px 22px 0; }
.tile .n { font-size: 40px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.tile .l { color: var(--muted); font-size: 13px; margin-top: 8px; }
.funnel { display: grid; gap: 2px; }
.frow { display: grid; grid-template-columns: 170px 1fr 170px; gap: 16px; align-items: center; padding: 6px 0; cursor: default; }
.frow:hover .fbar { background: #fff; }
.flabel { color: #cfcfd4; font-size: 14px; }
.ftrack { height: 22px; border-left: 1px solid var(--line-2); }
.fbar { height: 100%; background: #d9d9de; border-radius: 0 4px 4px 0; transition: width .25s; }
.fval { font-size: 15px; font-variant-numeric: tabular-nums; }
.fval span { color: var(--muted); font-size: 12px; margin-left: 8px; }
.replies { margin-top: 34px; max-width: 640px; }
.replies h4 { font-size: 11px; color: var(--muted); font-weight: 500; margin: 0 0 10px; }
.rtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.rtable th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.rtable td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.model { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; }
.note-sm { color: var(--dim); font-size: 12.5px; margin-top: 16px; }
.tip { position: fixed; z-index: 3000; background: #fff; color: #000; font-size: 12.5px; padding: 6px 10px; pointer-events: none; opacity: 0; transition: opacity .1s; }
.tip.show { opacity: 1; }
@media (max-width: 900px) { .model { grid-template-columns: 1fr; } .tiles { grid-template-columns: 1fr 1fr; } .frow { grid-template-columns: 110px 1fr 120px; } }

/* concept label, always visible in the top bar */
.concept-tag { margin-left: auto; margin-right: 28px; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: #cfcfd4; border: 1px solid var(--line-2); padding: 4px 9px; white-space: nowrap; }
@media (max-width: 1100px) { .concept-tag { margin-right: 12px; } }
@media (max-width: 800px) { .concept-tag { font-size: 9px; letter-spacing: .06em; padding: 3px 6px; margin-right: 0; white-space: normal; max-width: 150px; text-align: right; } .brand .sub { display: none; } .topbar { padding: 0 16px; } }

/* sample-data banner */
.samplebar { display: flex; align-items: center; justify-content: space-between; gap: 16px; border: 1px dashed var(--line-2); padding: 12px 16px; margin: 0 0 26px; color: #cfcfd4; font-size: 13.5px; }
.samplebar.slim { margin: 0; border-left: 0; border-right: 0; border-top: 0; padding: 8px 24px; background: var(--panel); }
.samplebar b { color: #fff; font-weight: 500; }

/* guided tour */
.tour-hl { outline: 2px solid #fff !important; outline-offset: 6px; position: relative; z-index: 900; }
.tour-card { position: fixed; right: 24px; bottom: 24px; z-index: 4000; width: min(380px, calc(100vw - 32px)); background: #000; border: 1px solid #fff; padding: 18px 20px 16px; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.tour-card .tour-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tour-x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 0; }
.tour-x:hover { color: #fff; }
.tour-card h4 { margin: 10px 0 6px; font-size: 19px; font-weight: 500; }
.tour-card p { margin: 0 0 14px; color: #cfcfd4; font-size: 14px; line-height: 1.55; }
.tour-nav { display: flex; gap: 8px; justify-content: flex-end; }

/* phones: keep the menu (second row, swipeable) and stack the console */
@media (max-width: 800px) {
  .topbar { flex-wrap: wrap; height: auto; padding: 10px 16px 0; row-gap: 6px; }
  .nav { display: flex !important; order: 3; width: 100%; overflow-x: auto; gap: 18px; padding-bottom: 8px; scrollbar-width: none; }
  .nav a { white-space: nowrap; }
  body.console { height: auto; overflow: auto; }
  .kpis { flex-wrap: wrap; } .kpi { min-width: 33%; padding: 10px 14px; } .kpis .spacer { display: none; }
  .workspace { grid-template-columns: 1fr; }
  .list { max-height: 60vh; }
  .center { height: 380px; }
  .detail, .detail.open { position: static; width: auto; display: block; border-left: 0; border-top: 1px solid var(--line); }
  .samplebar { flex-direction: column; align-items: flex-start; }
  .p-head h1 { font-size: 32px; }
  .quote { grid-template-columns: 1fr; }
  .index a { padding: 18px 0; }
  .tour-card { right: 16px; bottom: 16px; }
}

/* console: FCC list */
.seg.full { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.fcc-head { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13px; color: #cfcfd4; line-height: 1.5; }
.fcc-head b { color: #fff; font-weight: 500; }
.fcc-head .src { color: var(--dim); font-size: 11px; margin-top: 6px; }
.fcc-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.fcc-row .nm { font-weight: 500; font-size: 14px; }
.fcc-row .meta { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: 2px; }
.fcc-row.done { opacity: .55; }
.fcc-act .ok { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
