/* Pulse: black + go-green, Inter / Inter Tight, light and dark. */
:root {
  --bg: #FAFAF7; --bg-2: #F2F2EC; --surface: #FFFFFF; --ink: #0E100D; --ink-2: #2A2D27; --muted: #62665D; --faint: #9A9E94;
  --line: #E4E4DC; --line-2: #D6D6CC;
  --accent: #17C964; --accent-ink: #04210F; --accent-soft: #E3F8EC; --accent-text: #0B7A3B;
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --neg: #e34948;
  --good: #0ca30c; --warning: #fab219; --serious: #ec835a; --critical: #d03b3b;
  --good-text: #0B6B32; --bad-text: #B42318;
  --shadow: 0 1px 2px rgba(14,16,13,.06), 0 8px 24px rgba(14,16,13,.06);
  --r: 14px; --r-lg: 20px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Inter Tight", "Inter", -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0E0C; --bg-2: #141512; --surface: #171815; --ink: #F3F4EF; --ink-2: #D9DBD3; --muted: #A2A69B; --faint: #6E7268;
    --line: #262823; --line-2: #33362F; --accent-soft: #0F2A1A; --accent-text: #5BE08F;
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --neg: #e66767; --good-text: #6FD49A; --bad-text: #FF8A80;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0E0C; --bg-2: #141512; --surface: #171815; --ink: #F3F4EF; --ink-2: #D9DBD3; --muted: #A2A69B; --faint: #6E7268;
  --line: #262823; --line-2: #33362F; --accent-soft: #0F2A1A; --accent-text: #5BE08F;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --neg: #e66767; --good-text: #6FD49A; --bad-text: #FF8A80;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.025em; line-height: 1.12; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--accent-ink); }
code, kbd, pre { font-family: var(--mono); font-size: .9em; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: 14px; white-space: nowrap; text-decoration: none; transition: transform .12s, background .15s, box-shadow .15s, border-color .15s; background: none; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 13px; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--ink-2); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 6px 20px rgba(23,201,100,.35); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-danger { background: var(--critical); color: #fff; }
.btn-text { padding: 0 6px; min-height: 30px; color: var(--muted); font-weight: 600; }
.btn-text:hover { color: var(--ink); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 800 21px/1 var(--display); letter-spacing: -.04em; color: var(--ink); }
.logo svg { width: 28px; height: 28px; }
.logo em { font-style: normal; color: var(--accent); }
.logo .pulse { font-weight: 700; color: var(--muted); letter-spacing: -.02em; margin-left: 2px; }

/* ---------- Chips, badges ---------- */
.pill { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--muted); white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pill.warn .dot { background: var(--critical); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.badge svg { width: 13px; height: 13px; }
.badge.good { background: var(--accent-soft); color: var(--accent-text); }
.badge.bad { background: color-mix(in srgb, var(--critical) 14%, transparent); color: var(--bad-text); }
.badge.warn { background: color-mix(in srgb, var(--warning) 22%, transparent); color: var(--ink-2); }
.badge.info { background: color-mix(in srgb, var(--s1) 14%, transparent); color: var(--ink-2); }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: 11.5px; font-weight: 700; }
.delta { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.delta.up { color: var(--good-text); }
.delta.down { color: var(--bad-text); }
.delta.flat { color: var(--muted); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card + .card { margin-top: 16px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-h h2, .card-h h3 { font-size: 17px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid2 > *, .grid3 > *, .kpis > *, .am-grid > * { min-width: 0; }
.split-a { grid-template-columns: 1.1fr .9fr; }
.split-b { grid-template-columns: 1.2fr .8fr; }
.split-c { grid-template-columns: 320px 1fr; }
.kpis.k4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .split-a, .split-b, .split-c { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .kpis.k4 { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.util { display: inline-block; width: 64px; height: 6px; border-radius: 99px; background: var(--bg-2); vertical-align: middle; margin-right: 6px; overflow: hidden; }
.util i { display: block; height: 100%; background: var(--ink-2); border-radius: 99px; }
.util.full i { background: var(--accent); }

/* ---------- Forms ---------- */
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
label.field small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], select, textarea { width: 100%; min-height: 40px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; transition: background .15s; flex: none; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(18px); }
.switch input:focus-visible + .track { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.switch.danger input:checked + .track { background: var(--critical); }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 100; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ================= Landing ================= */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.top nav { display: flex; gap: 22px; margin-left: 8px; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.top nav a:hover { color: var(--ink); }
.top .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.hero { padding: 72px 0 56px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 6px 13px 6px 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(38px, 5.4vw, 64px); font-weight: 800; letter-spacing: -.045em; line-height: 1; margin: 20px 0 20px; }
.hero h1 .soft { color: var(--muted); }
.hero p.lead { font-size: 18.5px; color: var(--ink-2); max-width: 560px; }
.hero .ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero .fine { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 18px; font-size: 14px; }
.mock .q { background: var(--bg-2); border-radius: 14px 14px 4px 14px; padding: 10px 14px; margin-left: 40px; font-weight: 500; }
.mock .a { padding: 14px 4px 4px; color: var(--ink-2); }
.mock .proposal { margin-top: 12px; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.mock .proposal .row { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13.5px; }
.mock .proposal .row b { font-variant-numeric: tabular-nums; }
.mock .gate { display: flex; gap: 8px; margin-top: 12px; }
section.block { padding: 64px 0; border-top: 1px solid var(--line); }
section.block h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.035em; max-width: 760px; }
section.block p.intro { color: var(--ink-2); font-size: 17px; max-width: 680px; margin-top: 14px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.feature .num-tag { font: 700 12px var(--mono); color: var(--accent-text); background: var(--accent-soft); border-radius: 6px; padding: 2px 7px; }
.feature h3 { font-size: 17.5px; margin: 12px 0 6px; }
.feature p { color: var(--ink-2); font-size: 14.5px; }
.flow { margin-top: 32px; display: grid; gap: 12px; }
.flow-row { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; }
.flow-row .lane { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.flow-steps { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.flow-step { flex: 1 1 140px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; position: relative; margin-right: 26px; min-height: 76px; }
.flow-step:last-child { margin-right: 0; }
.flow-step::after { content: "→"; position: absolute; right: -21px; top: 50%; transform: translateY(-50%); color: var(--faint); font-weight: 700; }
.flow-step:last-child::after { content: none; }
.flow-step b { display: block; font-size: 14px; }
.flow-step span { font-size: 12.5px; color: var(--muted); }
.flow-step.gate { border-color: var(--accent); background: var(--accent-soft); }
.flow-step.gate b { color: var(--accent-text); }
.who { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
.src-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.faq { margin-top: 24px; display: grid; gap: 10px; max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--ink-2); }
footer.site { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ================= App shell ================= */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; border-right: 1px solid var(--line); background: var(--surface); padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; }
.side .ws label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; display: block; margin: 0 0 6px 4px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 14.5px; }
.side nav a:hover { background: var(--bg-2); }
.side nav a[aria-current="page"] { background: var(--bg-2); color: var(--ink); font-weight: 600; }
.side nav a .count { margin-left: auto; }
.side nav .sep { height: 1px; background: var(--line); margin: 8px 6px; }
.side .foot { margin-top: auto; font-size: 12.5px; color: var(--muted); display: grid; gap: 8px; }
.main { min-width: 0; }
.bar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 14px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); min-height: 64px; }
.bar h1 { font-size: 21px; }
.bar .right { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.menu-btn { display: none; }
.page { padding: 24px 28px 64px; max-width: 1240px; }
.page-intro { color: var(--ink-2); max-width: 760px; margin-bottom: 20px; }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 99px; padding: 3px; background: var(--surface); }
.seg button { border: 0; background: none; padding: 4px 11px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; min-width: 0; }
.kpi .k { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; justify-content: space-between; gap: 6px; }
.kpi .v { font: 800 25px/1.15 var(--display); letter-spacing: -.02em; margin: 6px 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .h { font-size: 11.5px; color: var(--faint); margin-top: 3px; }

/* Chart */
.chart { position: relative; }
.chart svg { display: block; width: 100%; overflow: visible; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font-size: 11px; }
.chart .dlabel { fill: var(--ink); font-size: 11.5px; font-weight: 600; }
.chart .cross { stroke: var(--line-2); stroke-width: 1; }
.chart .tip { position: absolute; pointer-events: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; box-shadow: var(--shadow); min-width: 150px; transform: translate(-50%, 0); white-space: nowrap; z-index: 2; }
.chart .tip b { display: block; margin-bottom: 4px; }
.chart .tip .r { display: flex; justify-content: space-between; gap: 14px; }
.chart .tip i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* Findings */
.finding { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.finding:first-of-type { border-top: 0; padding-top: 4px; }
.finding .sev { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.finding .sev svg { width: 17px; height: 17px; }
.sev.high { background: color-mix(in srgb, var(--critical) 14%, transparent); color: var(--critical); }
.sev.medium { background: color-mix(in srgb, var(--serious) 18%, transparent); color: var(--serious); }
.sev.low { background: color-mix(in srgb, var(--warning) 22%, transparent); color: #9a6a00; }
.sev.info { background: color-mix(in srgb, var(--s1) 14%, transparent); color: var(--s1); }
.finding h4 { font-size: 15px; letter-spacing: -.01em; }
.finding p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.finding .sugg { color: var(--muted); }
.finding .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.finding > div:last-child { min-width: 0; }
.finding h4, .finding p { overflow-wrap: anywhere; }

/* Proposals / diffs */
.proposal { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); padding: 18px 20px; }
.proposal + .proposal { margin-top: 14px; }
.proposal .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
.proposal h3 { font-size: 17px; margin: 8px 0 6px; }
.proposal .reason { color: var(--ink-2); font-size: 14px; }
.diff { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.diff .d-h { background: var(--bg-2); padding: 7px 12px; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; display: flex; justify-content: space-between; gap: 8px; }
.diff .d-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 10px 12px; border-top: 1px solid var(--line); align-items: center; }
.diff .d-row .what { font-size: 14px; min-width: 0; }
.diff .d-row .what small { display: block; color: var(--muted); font-size: 12.5px; }
.diff .ba { font: 600 14px var(--mono); white-space: nowrap; }
.diff .ba del { color: var(--bad-text); text-decoration: line-through; text-decoration-thickness: 1.5px; margin-right: 6px; }
.diff .ba ins { color: var(--good-text); text-decoration: none; background: var(--accent-soft); padding: 1px 5px; border-radius: 5px; }
.impact { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; font-size: 13.5px; }
.impact b { font-variant-numeric: tabular-nums; }
.checks { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 13px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-2); }
.checks li svg { width: 15px; height: 15px; margin-top: 2px; flex: none; }
.checks .pass svg { color: var(--good); }
.checks .adjusted svg, .checks .warn svg { color: #c98500; }
.checks .blocked svg { color: var(--critical); }
.proposal .acts { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; align-items: center; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); font-size: 18px; margin-bottom: 6px; }

/* Log */
.log-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.log-item:first-child { border-top: 0; }
.log-item .id { font: 600 12.5px var(--mono); color: var(--muted); }
.log-item .t { font-weight: 600; font-size: 14.5px; }
.log-item .sub { font-size: 13px; color: var(--muted); margin-top: 3px; }
.log-item .ba-list { font: 13px var(--mono); margin-top: 6px; color: var(--ink-2); display: grid; gap: 2px; }

/* Ask */
.chat { display: flex; flex-direction: column; gap: 16px; max-width: 860px; }
#msgs { display: flex; flex-direction: column; gap: 16px; }
#msgs:empty { display: none; }
.msg { max-width: 100%; }
.msg.user { align-self: flex-end; background: var(--ink); color: var(--bg); padding: 10px 15px; border-radius: 16px 16px 4px 16px; max-width: 80%; font-weight: 500; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.msg.bot .who { font-size: 12px; color: var(--muted); font-weight: 600; margin-bottom: 8px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.msg.bot .body p + p, .msg.bot .body p + ol, .msg.bot .body ol + p, .msg.bot .body ul + p, .msg.bot .body p + ul { margin-top: 10px; }
.msg.bot .body ol, .msg.bot .body ul { padding-left: 20px; margin: 8px 0 0; }
.msg.bot .body li { margin-bottom: 6px; }
.msg .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.msg .tools-used { margin-top: 12px; font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.msg .tools-used code { background: var(--bg-2); border-radius: 5px; padding: 1px 6px; }
.composer { position: sticky; bottom: 0; padding: 14px 0 6px; background: linear-gradient(to top, var(--bg) 70%, transparent); max-width: 860px; }
.composer form { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 6px 6px 6px 14px; box-shadow: var(--shadow); }
.composer input { border: 0; min-height: 40px; padding: 0; background: none; box-shadow: none !important; }
.suggest { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.suggest button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 6px 12px; font-size: 13.5px; font-weight: 500; }
.suggest button:hover { border-color: var(--ink); }
.effects { margin-top: 12px; display: grid; gap: 6px; }
.effect { display: grid; grid-template-columns: 170px 1fr 64px; gap: 10px; align-items: center; font-size: 13px; }
.effect .trackbar { position: relative; height: 12px; }
.effect .trackbar::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--line-2); }
.effect .trackbar i { position: absolute; top: 0; height: 100%; border-radius: 4px; }
.effect .v { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.typing { display: inline-flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; } }

.note-card { margin-top: 22px; max-width: 760px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--r-lg); padding: 22px 24px; font-size: 16.5px; color: var(--ink-2); display: grid; gap: 12px; }
.note-card .sig { font-weight: 700; color: var(--ink); font-family: var(--display); }

/* Sign-in, account, admin */
.auth { max-width: 420px; margin: 0 auto; padding: 48px 16px; }
.auth .logo { margin-bottom: 20px; }
.auth-card h1 { font-size: 26px; margin-bottom: 6px; }
.auth-card .callout { margin: 14px 0 0; }
.auth-card form { margin-top: 18px; }
.acct { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 4px 10px; padding: 10px 4px 4px; border-top: 1px solid var(--line); }
.acct .avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; font-weight: 700; flex: none; }
.acct .acct-who { display: grid; min-width: 0; font-size: 13px; line-height: 1.3; }
.acct .acct-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .acct-who span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .btn { grid-column: 2; justify-self: start; padding: 0; min-height: 24px; }
.spark { display: flex; align-items: flex-end; justify-content: flex-end; gap: 3px; height: 90px; }
.spark i { flex: 1; max-width: 22px; background: var(--s1); border-radius: 3px 3px 0 0; min-width: 3px; }
.row-acts { display: grid; gap: 2px; justify-items: start; }
.row-acts .btn { min-height: 24px; padding: 0 4px; }
.prose { max-width: 720px; }
.prose h1 { font-size: 34px; margin: 18px 0 10px; }
.prose h2 { font-size: 19px; margin: 28px 0 8px; }
.prose ul { padding-left: 20px; color: var(--ink-2); }
.prose li { margin-bottom: 8px; }
.prose p { color: var(--ink-2); }

/* Channel mix */
.sharebars { display: grid; gap: 12px; }
.sb-row { display: grid; grid-template-columns: 210px 1fr; gap: 14px; align-items: center; }
.sb-name { font-size: 13.5px; font-weight: 600; min-width: 0; }
.sb-flag { display: inline-block; font-size: 11px; font-weight: 600; color: var(--muted); background: var(--bg-2); border-radius: 5px; padding: 0 6px; margin-left: 4px; }
.sb-bars { display: grid; gap: 4px; }
.sb-bar { display: flex; align-items: center; gap: 8px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.sb-bar i { display: block; height: 9px; border-radius: 0 4px 4px 0; min-width: 2px; }
.notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.notes li { display: grid; grid-template-columns: 22px 1fr; gap: 8px; font-size: 14px; color: var(--ink-2); }
.notes li svg { width: 16px; height: 16px; margin-top: 3px; color: var(--muted); }
@media (max-width: 640px) { .sb-row { grid-template-columns: 1fr; gap: 6px; } }

/* Access map */
.am-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.am-filters button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.am-filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.am { display: grid; gap: 14px; }
.am-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; }
.am-card .top-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.am-card h3 { font-size: 18px; }
.am-card .api { font-size: 12.5px; color: var(--muted); }
.am-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.am-cell .lbl { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 5px; display: flex; gap: 6px; align-items: center; }
.am-cell p { font-size: 13.5px; color: var(--ink-2); }
.am-card p, .am-card li, .am-card summary { overflow-wrap: anywhere; }
.am-card details { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.am-card summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.am-card ol { margin: 10px 0 0; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); }
.am-card ol li { margin-bottom: 5px; }
.am-src { margin-top: 12px; font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.am-src a { color: var(--ink-2); text-underline-offset: 2px; }
.lvl { white-space: nowrap; display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 5px; text-transform: none; letter-spacing: 0; }
.lvl.open { background: var(--accent-soft); color: var(--accent-text); }
.lvl.approval { background: color-mix(in srgb, var(--s1) 14%, transparent); color: var(--ink-2); }
.lvl.gated { background: color-mix(in srgb, var(--warning) 25%, transparent); color: var(--ink-2); }
.lvl.none { background: var(--bg-2); color: var(--muted); }

/* Connect / code */
.code { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; font: 13px/1.55 var(--mono); overflow-x: auto; white-space: pre; margin: 8px 0 0; }
.code .copy { position: absolute; top: 8px; right: 8px; }
.steps { padding-left: 20px; margin: 10px 0 0; color: var(--ink-2); font-size: 14px; }
.steps li { margin-bottom: 6px; }
.src-card .st { font-size: 12.5px; }
.callout { border: 1px solid var(--line); background: var(--bg-2); border-radius: 14px; padding: 14px 16px; font-size: 14px; color: var(--ink-2); }
.callout.accent { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.callout.warn { background: color-mix(in srgb, var(--critical) 9%, var(--surface)); border-color: color-mix(in srgb, var(--critical) 35%, transparent); }
.kill { display: flex; justify-content: space-between; gap: 16px; align-items: center; flex-wrap: wrap; }
.report-frame { width: 100%; height: 720px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }

/* Pulse Connect */
.cx-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 16px; align-items: start; }
.cx-grid fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.cx-grid legend { font-size: 13px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.cx-grid label.field select:disabled { opacity: .55; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 99px; padding: 4px 11px; font-size: 13px; font-weight: 600; background: var(--surface); cursor: pointer; }
.chip:has(input:checked) { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent-text); }
.chip input { accent-color: var(--accent); margin: 0; }
.seams { display: grid; }
.seam { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.seam:first-child { border-top: 0; padding-top: 4px; }
.seam > div, .cx-stack, .cx-phases, #cx-check { min-width: 0; }
.seam .sev { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.seam .sev svg { width: 16px; height: 16px; }
.seam h3 { font-size: 15.5px; }
.seam .decision { margin-top: 4px; font-weight: 600; color: var(--ink-2); font-size: 14.5px; }
.seam details { margin-top: 10px; }
.seam summary, .cx-phase summary { cursor: pointer; font-weight: 600; font-size: 13.5px; }
.cx-table { font-size: 13px; }
.cx-table th { white-space: nowrap; }
.cx-table code { font-size: 12px; background: var(--bg-2); border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
.cx-log tr.flag td { background: color-mix(in srgb, var(--warning) 9%, transparent); }
.cite { color: var(--ink-2); text-underline-offset: 2px; overflow-wrap: anywhere; }
.cx-finding, .cx-finding p, .cx-ev li, .steps li, .cx-table td { overflow-wrap: anywhere; }
.cx-upload { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; font-size: 14px; }
.cx-phases { display: grid; }
.cx-phase { border-top: 1px solid var(--line); padding: 12px 0; }
.cx-phase:first-child { border-top: 0; padding-top: 2px; }
.cx-phase summary { display: flex; align-items: baseline; gap: 10px; font-size: 15px; }
.cx-phase summary .small { margin-left: auto; font-weight: 500; }
.cx-phase .num-tag { font: 700 12px/1 var(--mono); color: var(--accent-text); }
.cx-phase .steps li { margin-bottom: 9px; }
.cx-head { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin: -4px 0 4px; padding-bottom: 10px; }
.cx-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.cx-tabs a { text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--muted); padding: 6px 11px; border-radius: 99px; }
.cx-tabs a:hover { color: var(--ink); background: var(--bg-2); }
.cx-tabs a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.cx-who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cx-hero { margin-top: 14px; display: grid; grid-template-columns: 1fr auto; gap: 16px 24px; align-items: center; background: linear-gradient(135deg, var(--accent-soft), var(--surface) 70%); }
.cx-hero h2 { font-size: 22px; margin-bottom: 6px; }
.cx-hero-acts { display: grid; gap: 6px; justify-items: start; max-width: 240px; }
.cx-sub { font-size: 15px; margin: 6px 0 10px; }
.cx-q { border-top: 1px solid var(--line); padding: 12px 0 2px; }
.cx-q > summary { cursor: pointer; font-weight: 600; font-size: 14.5px; margin-bottom: 10px; }
.cx-ev { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; font-size: 13.5px; color: var(--ink-2); }
.cx-imp { margin-top: 8px; font-size: 13.5px; background: var(--bg-2); border-radius: 10px; padding: 8px 10px; color: var(--ink-2); }
.cx-finding h4 .badge { margin-left: 6px; vertical-align: 1px; }
.cx-finding > div:last-child { min-width: 0; }
.cx-num { font: 700 13px/1 var(--mono); color: var(--accent-text); margin-right: 4px; }
.cx-kv th { width: 1%; vertical-align: top; padding-top: 11px; }
.cx-mcp code { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) { .cx-kv th, .cx-kv td { display: block; width: auto; } .cx-kv th { border-bottom: 0; padding-bottom: 0; } }
@media (max-width: 860px) { .cx-hero { grid-template-columns: 1fr; } }
@media (max-width: 1180px) { .cx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cx-grid { grid-template-columns: 1fr; } .seam { grid-template-columns: 1fr; } .seam .sev { display: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) { .kpis { grid-template-columns: repeat(3, 1fr); } .am-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .features, .who { grid-template-columns: 1fr 1fr; }
  .grid2 { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .flow-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 40; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow); }
  body.nav-open .side { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 30; }
  .menu-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
  .bar { padding: 10px 16px; }
  .bar h1 { font-size: 18px; }
  .page { padding: 18px 16px 56px; }
  .top nav { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .kpi .v { font-size: 21px; }
  .features, .who { grid-template-columns: 1fr; }
  .am-grid { grid-template-columns: 1fr; }
  .flow-step { flex-basis: 100%; margin-right: 0; margin-bottom: 22px; }
  .flow-step::after { content: "↓"; right: auto; left: 50%; top: auto; bottom: -21px; transform: translateX(-50%); }
  .flow-step:last-child { margin-bottom: 0; }
  .log-item { grid-template-columns: 1fr; gap: 6px; }
  .effect { grid-template-columns: 110px 1fr 54px; }
  .msg.user { max-width: 92%; }
  .diff .d-row { grid-template-columns: 1fr; gap: 4px; }
  .card { padding: 16px; }
  .hero h1 { font-size: 38px; }
  .top .right .btn-ghost { display: none; }
  .report-frame { height: 560px; }
}

/* Pulse Connect cards in the chat: fixes, how the tools fit, test-event results */
.fxcard { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; }
.fx-target { font-size: 14px; margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.fx-found { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; font-size: 13px; }
.fx-group { display: inline-flex; gap: 5px; align-items: center; flex-wrap: wrap; }
.chip { display: inline-block; padding: 2px 8px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; background: var(--bg); }
.fx-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fx details, .fx-seam { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--bg); }
.fx summary, .fx-seam summary { cursor: pointer; line-height: 1.45; }
.fx summary .badge { margin-right: 4px; vertical-align: 1px; }
.fx-why { margin: 8px 0 0; color: var(--ink-2); }
.fx-steps { margin: 8px 0 0; padding-left: 20px; }
.fx-steps li { margin-bottom: 8px; }
.fx-snip { margin-top: 10px; border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; background: var(--surface); }
.fx-snip-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.fx-snip pre { margin: 0; padding: 10px 12px; overflow-x: auto; font-size: 12.5px; line-height: 1.5; max-width: 100%; }
.fx-snip code { white-space: pre; }
.fx-ev { margin: 8px 0 0; overflow-wrap: anywhere; }
/* Fix it for me / Send to your developer */
.fx-acts { margin-top: 12px; display: grid; gap: 8px; min-width: 0; }
.fx-act { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fx-act .small { flex: 1 1 220px; min-width: 0; }
.fx-prop { min-width: 0; }
.fx-prop .proposal { margin: 4px 0 0; }
.fx-ticket > summary { list-style: none; display: inline-flex; cursor: pointer; }
.fx-ticket > summary::-webkit-details-marker { display: none; }
.fx-ticket[open] > summary { margin-bottom: 6px; }
.fx-ticket-body { margin: 6px 0 0; padding: 10px 12px; max-height: 320px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.5; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); }
.fx-ticket-acts { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.fx-hint { margin: 0; overflow-wrap: anywhere; }
.fx-fixable { margin: 10px 0 4px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); min-width: 0; }
.fx-fixable p { margin: 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.fx-qs { margin-top: 14px; display: grid; gap: 10px; }
.fx-q p { margin: 0 0 6px; }
.fx-opts { display: flex; gap: 6px; flex-wrap: wrap; }
/* Answers read from the person's connected accounts (read-only setup checks). */
.fx-accts { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: var(--surface); display: grid; gap: 8px; }
.fx-answered, .fx-acct-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.fx-answered li { line-height: 1.5; }
.fx-acct-list li { border-top: 1px solid var(--line); padding-top: 6px; }
.fx-acct-list details { margin-top: 4px; }
.fx-acct-list ul { margin: 4px 0 0; padding-left: 18px; }
.fx-acct { margin: 8px 0 0; line-height: 1.5; }
.fx-accts code, .fx-acct code { font-size: 11.5px; overflow-wrap: anywhere; }
/* Long API paths and IDs wrap instead of widening the card (grid children default to min-width: auto). */
.fx-accts { grid-template-columns: minmax(0, 1fr); }
.fx-accts *, .fx-acct { min-width: 0; overflow-wrap: anywhere; }
.fx-accts .btn { white-space: normal; text-align: left; max-width: 100%; }
.fx-ok { margin-top: 12px; }
.fx-ok ul { margin: 6px 0 0; padding-left: 18px; }
.fx-seam { margin-top: 8px; }
.fx-tax { margin-top: 10px; font-size: 12.5px; }
.fx-tax code { font-size: 12px; overflow-wrap: anywhere; }
.msg.bot { min-width: 0; max-width: 100%; }
.msg.bot .body, .fxcard { overflow-wrap: anywhere; }
@media (max-width: 640px) { .fx details, .fx-seam { padding: 9px 10px; } .fx-found { gap: 6px 10px; } }
.cx-fix-form { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.cx-fix-form input { flex: 1 1 260px; min-width: 0; font-size: 16px; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); color: var(--ink); }
.cx-fix-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-top: 16px; }
.cx-fix-steps h3 { font-size: 15px; margin: 0 0 6px; }
.cx-fix-steps p { margin: 0; }
/* On phones the suggestions are one swipeable row, so they don't cover the conversation. */
@media (max-width: 640px) {
  .suggest { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .suggest::-webkit-scrollbar { display: none; }
  .suggest button { flex: 0 0 auto; }
}
.fxcard .fx-tax th, .fxcard .fx-tax td { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.fx-routes { list-style: none; padding-left: 0; }
.fx-routes li { border-top: 1px solid var(--line); padding-top: 8px; }
.fx-routes li:first-child { border-top: 0; padding-top: 0; }
/* A setup setting read only on Read setup: its label wraps in narrow cards, so a soft rectangle instead of a pill. */
.chip.chip-deep { border-radius: 8px; }
/* What Pulse recommends: settings, projections, count-once, consent order. */
.rec-card .rec-h { font-size: 13.5px; margin: 14px 0 6px; }
.rec-card details.rec summary .small { margin-top: 3px; font-weight: 400; }
.rec-card .rec-proj td:first-child { white-space: normal; min-width: 160px; }
.rec-card .rec-fix { margin: 8px 0; padding: 8px 10px; border-radius: 8px; background: var(--accent-soft, rgba(0,0,0,.04)); }
.rec-card .rec-caveats { margin: 4px 0 8px; padding-left: 18px; }
.rec-card .rec-why { margin-top: 8px; }

/* =====================================================================================================================
   Premium layer (23 Oct 2026). Quiet luxury: warm ivory paper and deep ink, a light geometric display face (Jost) over
   Inter, hairline rules instead of heavy boxes, generous air, one living accent (Pulse green into deep teal) used
   sparingly. Dark mode is deep midnight-green. Everything above still works; this block only refines it.
   ===================================================================================================================== */
:root {
  --bg: #F6F4EE; --bg-2: #EEEBE2; --surface: #FFFFFF; --ink: #0B0F0D; --ink-2: #26302B; --muted: #5E665F; --faint: #959B92;
  --line: #E4E0D5; --line-2: #D3CEC1;
  --accent: #14B866; --accent-ink: #03170C; --accent-soft: #E4F4EA; --accent-text: #0A6E3A;
  --gold: #B08A3E;
  --pulse: linear-gradient(100deg, #17C964 0%, #0EA58C 55%, #0B7F8C 100%);
  --shadow: 0 1px 1px rgba(11,15,13,.03), 0 12px 32px -12px rgba(11,15,13,.10);
  --shadow-lift: 0 1px 1px rgba(11,15,13,.04), 0 24px 48px -20px rgba(11,15,13,.18);
  --r: 14px; --r-lg: 22px;
  --display: "Jost", "Futura", "Avenir Next", "Inter", sans-serif;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070B0A; --bg-2: #0E1513; --surface: #111A17; --ink: #F3F1EA; --ink-2: #D8DBD2; --muted: #9AA39B; --faint: #6C756D;
    --line: #1C2622; --line-2: #26332E; --accent-soft: rgba(23,201,100,.12); --accent-text: #5BE08F; --gold: #D6B46A;
    --shadow: 0 1px 1px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
    --shadow-lift: 0 1px 1px rgba(0,0,0,.35), 0 28px 56px -22px rgba(0,0,0,.7);
  }
}
:root[data-theme="dark"] {
  --bg: #070B0A; --bg-2: #0E1513; --surface: #111A17; --ink: #F3F1EA; --ink-2: #D8DBD2; --muted: #9AA39B; --faint: #6C756D;
  --line: #1C2622; --line-2: #26332E; --accent-soft: rgba(23,201,100,.12); --accent-text: #5BE08F; --gold: #D6B46A;
  --shadow: 0 1px 1px rgba(0,0,0,.3), 0 16px 40px -16px rgba(0,0,0,.6);
  --shadow-lift: 0 1px 1px rgba(0,0,0,.35), 0 28px 56px -22px rgba(0,0,0,.7);
}
body { font-size: 15px; letter-spacing: -.003em; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { background: radial-gradient(900px 420px at 85% -10%, rgba(23,201,100,.10), transparent 70%), var(--bg); } }
:root[data-theme="dark"] body { background: radial-gradient(900px 420px at 85% -10%, rgba(23,201,100,.10), transparent 70%), var(--bg); }

/* Type: light, large, editorial. */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; }
h4 { font-weight: 500; }
.bar h1 { font: 500 22px/1.1 var(--display); letter-spacing: -.015em; }
.page-intro { font-size: 15.5px; line-height: 1.65; color: var(--muted); }
.page-intro b { color: var(--ink); font-weight: 600; }
.eyebrow, .kicker { font: 500 11.5px/1 var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-text); }

/* Buttons: pill, display face, calm motion. */
.btn { font-family: var(--display); font-weight: 500; letter-spacing: .01em; transition: transform .18s cubic-bezier(.2,.8,.2,1), background .2s, box-shadow .2s, border-color .2s, color .2s; }
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn-accent { background: var(--pulse); color: #fff; box-shadow: 0 8px 22px -10px rgba(14,165,140,.65); }
.btn-accent:hover { box-shadow: 0 14px 30px -12px rgba(14,165,140,.75); }
.btn-ghost { background: transparent; border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--surface); }
.btn-ink:hover { background: color-mix(in srgb, var(--ink) 86%, var(--accent)); }

/* Surfaces: white paper on ivory, hairlines, soft depth. */
.card, .proposal, .kpi, .fxcard { border-color: var(--line); box-shadow: var(--shadow); }
.card { border-radius: var(--r-lg); padding: 24px; }
.card-h h2 { font-size: 21px; }
.kpi { border-radius: 18px; padding: 18px 20px; }
.kpi .k { font: 500 11.5px/1.2 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.kpi .v { font: 400 32px/1.1 var(--display); letter-spacing: -.02em; }
.badge { font-weight: 500; border-radius: 999px; padding: 3px 10px; }
.callout { border-radius: 16px; }

/* Sidebar and top bar: quieter, airier. */
.side { background: color-mix(in srgb, var(--surface) 72%, var(--bg)); border-right-color: var(--line); padding: 22px 16px; }
.side nav a { font-size: 14.5px; padding: 9px 12px; border-radius: 12px; color: var(--muted); transition: background .15s, color .15s; }
.side nav a:hover { background: var(--bg-2); color: var(--ink); }
.side nav a[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 500; box-shadow: var(--shadow); }
.side nav a[aria-current="page"] .ico { color: var(--accent-text); }
.side .ws label { font: 500 10.5px/1 var(--display); letter-spacing: .18em; }
.bar { background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom-color: var(--line); padding: 16px 32px; }
.page { padding: 32px 32px 80px; }
@media (max-width: 760px) { .page { padding: 20px 16px 64px; } .bar { padding: 12px 16px; } }

/* Chat: an editorial conversation. */
.msg.user { background: var(--ink); color: var(--bg); border-radius: 20px 20px 6px 20px; padding: 12px 18px; box-shadow: var(--shadow); }
.msg.bot .who { font: 500 11px/1 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.composer form { border-radius: 999px; box-shadow: var(--shadow-lift); }

/* Fix my setup card: the headline, the fixes, the two doors. */
.fxcard { border-radius: var(--r-lg); padding: 22px 24px; background: var(--surface); }
.fx-fixable { border: 0; background: linear-gradient(135deg, color-mix(in srgb, var(--accent-soft) 70%, transparent), transparent 70%), var(--surface); border-radius: 16px; padding: 16px 18px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 22%, var(--line)); }
.fx-fixable p b { font: 500 19px/1.3 var(--display); letter-spacing: -.01em; }
.fx-list > li.fx { border-top: 1px solid var(--line); padding: 14px 0 12px; }
.fx-list > li.fx:first-child { border-top: 0; }
.fx summary b { font: 500 16.5px/1.35 var(--display); letter-spacing: -.005em; }
.fx-acts { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.fx-ticket > summary.btn { border-color: var(--line-2); }
.fx-ticket-body { background: var(--bg); border-color: var(--line); font-family: var(--mono); }
[data-fixit] { min-height: 36px; padding: 0 18px; }

/* Proposals and checks. */
.proposal { border-radius: var(--r-lg); padding: 22px 24px; }
.proposal h3 { font: 500 18px/1.3 var(--display); }
.diff { border-radius: 14px; }

/* Pulse Connect hero and the one link box. */
.cx-hero { border-radius: 26px; padding: 34px 34px; background: radial-gradient(700px 260px at 100% 0%, color-mix(in srgb, var(--accent-soft) 85%, transparent), transparent 70%), var(--surface); }
.cx-hero h2 { font: 400 clamp(28px, 3.4vw, 40px)/1.08 var(--display); letter-spacing: -.025em; max-width: 20ch; }
.cx-hero p.muted { font-size: 16px; line-height: 1.65; max-width: 62ch; margin-top: 10px; }
.cx-fix-form { margin-top: 22px; display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); max-width: 640px; }
.cx-fix-form input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 16px; font-size: 16px; outline: none; }
.cx-fix-form .btn { min-height: 46px; padding: 0 24px; }
.cx-manual > summary { cursor: pointer; list-style: none; }
.cx-manual > summary::-webkit-details-marker { display: none; }
.cx-tabs a, .cx-tabs button { font-family: var(--display); font-weight: 500; letter-spacing: .01em; }
@media (max-width: 560px) { .cx-hero { padding: 24px 18px; border-radius: 20px; } .cx-fix-form { border-radius: 18px; flex-direction: column; padding: 8px; } .cx-fix-form input { padding: 10px 12px; } }

/* Landing page: cinematic, quiet. */
.hero h1 { font: 400 clamp(42px, 6vw, 76px)/1.02 var(--display); letter-spacing: -.035em; }
.hero h1 .soft { color: var(--faint); }
.hero p.lead { font-size: 19px; line-height: 1.6; color: var(--muted); }
.top { background: color-mix(in srgb, var(--bg) 80%, transparent); }
.top nav a { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
.logo { font-family: var(--display); font-weight: 500; letter-spacing: -.02em; }
.mock { border-radius: 24px; box-shadow: var(--shadow-lift); }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .btn, .side nav a { transition: none; } .btn:hover:not(:disabled) { transform: none; } }
.wrap.hero { padding-left: 24px; padding-right: 24px; }
@media (max-width: 600px) { .wrap.hero { padding-left: 16px; padding-right: 16px; } }
/* One column on the link-first heroes: the link box is the single obvious action. */
.cx-hero.cx-fix { display: block; }
.cx-hero.cx-fix .cx-hero-acts { margin-top: 18px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.cx-hero.cx-fix .cx-hero-acts .btn-accent { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.cx-hero.cx-fix .cx-hero-acts .btn-accent:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.cx-hero.cx-fix .cx-fix-form { max-width: 720px; }
/* Chat: the bot speaks on paper, the composer sits on a solid band so nothing reads through it. */
.msg.bot { border-radius: 22px; padding: 20px 24px; box-shadow: var(--shadow); }
.msg.bot .body { font-size: 15px; line-height: 1.65; }
.composer { background: linear-gradient(to top, var(--bg) 82%, color-mix(in srgb, var(--bg) 0%, transparent)); padding-top: 28px; }
.composer form { border-radius: 999px; padding: 6px 6px 6px 20px; }
.suggest button { font-family: var(--display); font-weight: 400; letter-spacing: .01em; border-radius: 999px; background: var(--surface); }
/* A fix reads as: what, why, the money, the action. The steps live one tap away. */
.fx-why { color: var(--ink-2); line-height: 1.6; margin-top: 6px; }
.fx-stake { margin-top: 6px; font-size: 14px; }
.fx-stake b { font-family: var(--display); font-weight: 500; color: var(--gold); }
.fx-more { margin-top: 10px; }
.fx-more > summary { cursor: pointer; font: 400 13.5px/1.4 var(--display); letter-spacing: .01em; color: var(--muted); list-style: none; }
.fx-more > summary::-webkit-details-marker { display: none; }
.fx-more > summary::before { content: '+'; display: inline-block; width: 1em; color: var(--faint); }
.fx-more[open] > summary::before { content: '–'; }
.fx-more > summary:hover { color: var(--ink); }
.fx-acts { border-top: 0; padding-top: 4px; margin-top: 12px; }
/* No boxes inside the card: each fix is a row on the same paper, separated by a hairline. */
.fx-list { gap: 0; }
.fx-list > li.fx > details { border: 0; border-radius: 0; background: transparent; padding: 6px 2px; }
.fx-list > li.fx > details > summary { list-style: none; }
.fx-list > li.fx > details > summary::-webkit-details-marker { display: none; }
.fx .fx-more, .fx .fx-ticket { border: 0; padding: 0; background: transparent; border-radius: 0; }
.fx-more .fx-steps { margin-top: 10px; }

/* ---------- Landing: editorial, not a card grid ---------- */
.block { padding: clamp(72px, 10vw, 128px) 0; border-top: 1px solid var(--line); }
.block h2 { font: 400 clamp(34px, 4.4vw, 56px)/1.04 var(--display); letter-spacing: -.03em; max-width: 18ch; }
.block h2 + p, .block .wrap > p { font-size: 17.5px; line-height: 1.7; color: var(--muted); max-width: 62ch; margin-top: 18px; }
.features { gap: 0 48px; margin-top: 56px; }
.feature { background: transparent; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; padding: 26px 0 30px; box-shadow: none; }
.feature .num-tag { display: block; background: none; padding: 0; border-radius: 0; font: 300 40px/1 var(--display); letter-spacing: -.02em; color: var(--gold); }
.feature h3 { font: 500 20px/1.3 var(--display); letter-spacing: -.01em; margin: 18px 0 8px; }
.feature p { color: var(--muted); font-size: 15px; line-height: 1.65; }
@media (max-width: 860px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.flow { margin-top: 48px; gap: 18px; }
.flow-row .lane { font: 500 11px/1.3 var(--display); letter-spacing: .18em; color: var(--faint); }
.flow-step { background: transparent; border-color: var(--line-2); border-radius: 16px; padding: 16px 16px; box-shadow: none; }
.flow-step b { font: 500 15px/1.3 var(--display); }
.flow-step.gate { background: linear-gradient(135deg, var(--accent-soft), transparent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.note-card { background: transparent; border: 0; border-left: 1px solid var(--gold); border-radius: 0; padding: 4px 0 4px 28px; box-shadow: none; font: 300 clamp(20px, 2.2vw, 26px)/1.5 var(--display); letter-spacing: -.01em; color: var(--ink-2); }
.note-card .sig { font: 500 14px/1.4 var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.faq { gap: 0; }
.faq details { background: transparent; border: 0; border-top: 1px solid var(--line-2); border-radius: 0; padding: 20px 2px; }
.faq details:last-child { border-bottom: 1px solid var(--line-2); }
.faq summary { font: 500 17px/1.4 var(--display); letter-spacing: -.005em; }
.faq summary::after { font-weight: 300; font-size: 22px; line-height: 1; color: var(--faint); }
.faq details p { color: var(--muted); line-height: 1.7; }
.src-list .chip, .src-list span { border-radius: 999px; font-family: var(--display); font-weight: 400; }
footer.site { padding: 48px 0 64px; font-family: var(--display); letter-spacing: .01em; }
.mock { border: 1px solid var(--line); }
.mock .proposal { box-shadow: none; }
section.block h2 { font: 400 clamp(34px, 4.4vw, 56px)/1.04 var(--display); letter-spacing: -.03em; max-width: 18ch; }
/* Before → after in the display face: quiet strike for what was, the accent for what will be. */
.diff { border-color: var(--line); box-shadow: none; }
.diff .d-h { background: transparent; font: 500 10.5px/1 var(--display); letter-spacing: .18em; color: var(--faint); padding: 12px 16px 8px; }
.diff .d-row { grid-template-columns: minmax(0, 1fr) minmax(0, auto); padding: 12px 16px; gap: 16px; }
.diff .d-row .what { font: 500 14.5px/1.4 var(--display); }
.diff .ba { font: 400 14px/1.4 var(--display); white-space: normal; text-align: right; max-width: 34ch; }
.diff .ba del { color: var(--faint); text-decoration-thickness: 1px; margin-right: 8px; }
.diff .ba ins { color: var(--accent-text); background: transparent; padding: 0; font-weight: 500; }
.proposal .reason { color: var(--muted); line-height: 1.65; max-width: 80ch; }
.proposal .meta code { font-family: var(--display); letter-spacing: .04em; }
.checks li { line-height: 1.55; }
