/* SBC Capital page CSS: tokens only (palette lives in theme.css). */

body { font-feature-settings: "kern", "liga"; }
.display { font-size: clamp(2.6rem, 1.3rem + 5vw, 5.6rem); }
.h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.6rem); }
.fig { font-family: var(--font-figure); font-weight: 500; letter-spacing: 0.01em; line-height: 0.9; font-variant-numeric: tabular-nums; }

/* ── Header ── */
.site-header { background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.site-header.is-scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); }
.header-inner { gap: 20px; }
.brand { display: inline-flex; align-items: center; margin-right: auto; }
.brand img { height: 38px; width: auto; }
.nav-links a { font-weight: 700; }
.nav-links a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .button { min-height: 44px; padding: 10px 18px; font-size: var(--fs-small); }
.icon-button { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-button); background: transparent; color: var(--ink); cursor: pointer; }
.icon-button svg { width: 20px; height: 20px; }
.icon-button:hover { border-color: var(--ink); }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
.mobile-nav { position: relative; }
.mobile-nav summary { list-style: none; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav[open] .mobile-panel { display: grid; }
.mobile-panel { display: none; position: fixed; left: 0; right: 0; top: var(--header-height); max-height: calc(100dvh - var(--header-height)); overflow-y: auto; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 12px 24px -16px color-mix(in srgb, var(--ink) 40%, transparent); padding: 8px 20px 24px; }
.mobile-panel a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 700; text-decoration: none; }
@media (min-width: 900px) { .mobile-nav { display: none; } }
@media (max-width: 479px) { .header-actions .button-label-long { display: none; } .brand img { height: 32px; } }
@media (min-width: 480px) { .button-label-short { display: none; } }

/* ── Hero with the horizon ruler ── */
.hero-home { min-height: auto; padding-block: clamp(40px, 6vw, 88px) clamp(40px, 5vw, 72px); }
.hero-home .hero-inner { gap: 28px; }
.hero-home .display { max-width: 16ch; font-size: clamp(2.7rem, 1.2rem + 5.6vw, 6.6rem); }
.hero-home .lead { max-width: 52ch; }
.hero-row { display: grid; gap: 28px; }
@media (min-width: 1000px) { .hero-row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: 64px; } }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: var(--fs-small); color: var(--muted); font-weight: 700; letter-spacing: 0.02em; }
.ruler { margin-top: clamp(32px, 5vw, 64px); display: grid; gap: 14px; }
.ruler-caption { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: var(--fs-small); color: var(--muted); }
.ruler-track { position: relative; height: 128px; }
.ruler-axis { position: absolute; left: 0; right: 0; top: 96px; height: 1px; background: var(--ink); }
.ruler-axis::after { content: ""; position: absolute; right: 0; top: -1px; width: 22%; height: 3px; background: linear-gradient(90deg, transparent, var(--bg)); }
.tick { position: absolute; top: 90px; width: 1px; height: 13px; background: var(--ink); }
.tick.major { top: 84px; height: 25px; }
.tick-label { position: absolute; top: 108px; transform: translateX(-50%); font-family: var(--font-figure); font-size: 1.15rem; color: var(--muted); white-space: nowrap; }
.span-bar { position: absolute; height: 10px; border-radius: 2px; }
.span-bar .span-label { position: absolute; bottom: 16px; left: 0; font-size: var(--fs-small); font-weight: 800; white-space: nowrap; }
.span-fund { top: 22px; left: 0; width: 45%; background: var(--line-strong); }
.span-fund::after { content: ""; position: absolute; right: -1px; top: -8px; width: 3px; height: 26px; background: var(--muted); }
.span-fund .span-label { color: var(--muted); }
.span-sbc { top: 62px; left: 0; right: 0; background: linear-gradient(90deg, var(--accent) 70%, transparent); }
.span-sbc .span-label { color: var(--accent-text); }
.span-sbc .span-label, .span-fund .span-label { bottom: 14px; }
@media (max-width: 599px) { .tick-label.minor { display: none; } .ruler-track { height: 132px; } }

/* ── Facts with Teko figures ── */
.facts strong { font-family: var(--font-figure); font-weight: 500; font-size: clamp(2.8rem, 2rem + 3vw, 5rem); letter-spacing: 0; line-height: 0.85; }
.facts span { color: var(--muted-strong); font-size: var(--fs-small); }
.facts .src { display: block; color: var(--muted); font-size: var(--fs-micro); margin-top: 2px; }

/* ── Route rows (who we work with) ── */
.route-list > li { display: grid; gap: 8px 32px; padding-block: 26px; border-top: 1px solid var(--line-strong); }
.route-list > li:last-child { border-bottom: 1px solid var(--line-strong); }
.route-list h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; }
.route-list p { color: var(--muted-strong); max-width: 52ch; }
.route-list a { font-weight: 800; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; min-height: 44px; }
.route-list a:hover { color: var(--accent-text); }
@media (min-width: 760px) { .route-list > li { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr) auto; align-items: baseline; } }
.arrow { width: 18px; height: 18px; flex: none; }

/* ── Fields: Acquire / Own / Grow ── */
.field .h3 { font-family: var(--font-display); font-size: clamp(1.9rem, 1.4rem + 1.6vw, 3rem); font-weight: 500; }
.field ul { display: grid; gap: 8px; font-size: var(--fs-small); }
.field li { padding-left: 18px; position: relative; }
.field li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 8px; height: 2px; background: currentColor; opacity: 0.7; }
.field .fig-num { font-family: var(--font-figure); font-size: 2.4rem; line-height: 1; opacity: 0.8; }
.field p { max-width: 46ch; }

/* ── Leadership split ── */
.portrait { display: grid; gap: 28px; align-items: start; }
.portrait img { width: 100%; max-width: 420px; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
@media (min-width: 900px) { .portrait { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; } }
.portrait .quote { max-width: 22ch; }
.mini-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin-top: 28px; }
.mini-facts div { border-top: 1px solid var(--line-strong); padding-top: 10px; }
.mini-facts strong { display: block; font-family: var(--font-figure); font-weight: 500; font-size: 2.4rem; line-height: 1; }
.mini-facts span { font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 700px) { .mini-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ── Insight list ── */
.insight-list > li { border-top: 1px solid var(--line-strong); }
.insight-list > li:last-child { border-bottom: 1px solid var(--line-strong); }
.insight-list a { display: grid; gap: 6px 32px; padding-block: 22px; text-decoration: none; }
.insight-list time { font-family: var(--font-figure); font-size: 1.35rem; line-height: 1; color: var(--accent-text); }
.insight-list h3 { font-family: var(--font-display); font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.55rem); font-weight: 600; line-height: 1.25; }
.insight-list p { color: var(--muted-strong); font-size: var(--fs-small); max-width: 70ch; }
.insight-list a:hover h3 { color: var(--accent-text); }
@media (min-width: 900px) { .insight-list a { grid-template-columns: 9rem minmax(0, 1fr); } .insight-list a > div { display: grid; gap: 6px; } }

/* ── Lists from the source site ── */
.check-list { display: grid; gap: 0; }
.check-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding-block: 12px; border-top: 1px solid var(--line); }
.check-list li:last-child { border-bottom: 1px solid var(--line); }
.check-list svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent-text); }
.check-list.is-no svg { color: var(--muted); }

.stage-strip { display: grid; gap: 0; counter-reset: stage; }
.stage-strip li { counter-increment: stage; padding: 18px 0; border-top: 2px solid var(--on-ink); display: grid; gap: 6px; }
.stage-strip li::before { content: counter(stage, decimal-leading-zero); font-family: var(--font-figure); font-size: 1.6rem; line-height: 1; color: var(--on-ink-muted); }
.stage-strip h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.stage-strip p { font-size: var(--fs-small); color: var(--on-ink-muted); }
@media (min-width: 900px) { .stage-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 28px; } }

.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 2px; font-size: var(--fs-micro); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: var(--surface-2); color: var(--muted-strong); }
.tag-demo { background: var(--accent-soft); color: var(--accent-text); }
.tag-blue { color: var(--signal-blue); }

.callout .label { color: var(--accent-text); }
.brief .actions { justify-content: flex-start; }
@media (min-width: 900px) { .brief .actions { justify-content: flex-end; } }

/* ── Footer ── */
.site-footer .footer-top { display: grid; gap: 28px; margin-bottom: 40px; }
.site-footer .footer-top img { height: 44px; width: auto; }
.site-footer .footer-top p { max-width: 46ch; color: var(--muted-strong); }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-strong); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; color: var(--muted); }
.preview-note { color: var(--muted); }

/* ── Track record ── */
.tr-controls { display: grid; gap: 16px; margin-bottom: 28px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button { min-height: 44px; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-button); background: transparent; color: var(--ink); font-weight: 700; font-size: var(--fs-small); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.seg .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.lane-press { --lane: var(--accent); }
.lane-engagement { --lane: var(--ink); }
.lane-career { --lane: var(--signal-blue); }
.lane-acq { --lane: var(--muted); }
.seg .dot { background: var(--lane, currentColor); }
.search { display: grid; gap: 6px; max-width: 420px; }
.search input, .field-input, .intake select, .intake textarea, .intake input[type="text"], .intake input[type="email"] { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); }
.search label { font-size: var(--fs-small); font-weight: 700; }

.chart-wrap { overflow-x: auto; overscroll-behavior-x: contain; border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line-strong); padding-block: 12px 8px; }
.chart { position: relative; min-width: 880px; }
.chart-lane { position: relative; height: 64px; border-bottom: 1px dashed var(--line); }
.chart-lane-label { position: absolute; left: 0; top: 6px; font-size: var(--fs-micro); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.chart-plot { position: absolute; left: 150px; right: 12px; top: 0; bottom: 0; }
.chart-axis { position: relative; height: 34px; margin-left: 150px; margin-right: 12px; }
.chart-axis span { position: absolute; top: 8px; transform: translateX(-50%); font-family: var(--font-figure); font-size: 1.1rem; color: var(--muted); }
.chart-axis span::before { content: ""; position: absolute; left: 50%; top: -8px; width: 1px; height: 6px; background: var(--line-strong); }
.mark { position: absolute; top: 30px; transform: translate(-50%, -50%); width: 22px; height: 22px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.mark::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--lane); box-shadow: 0 0 0 2px var(--bg); transition: transform 200ms var(--ease-out); }
.lane-engagement .mark::before { border-radius: 1px; transform: rotate(45deg); }
.mark:hover::before, .mark[aria-pressed="true"]::before { transform: scale(1.5); }
.lane-engagement .mark:hover::before, .lane-engagement .mark[aria-pressed="true"]::before { transform: rotate(45deg) scale(1.5); }
.mark[aria-pressed="true"]::after { content: ""; position: absolute; inset: -3px; border: 2px solid var(--lane); border-radius: 50%; }
.bar { position: absolute; top: 22px; height: 16px; padding: 0; border: 0; border-radius: 2px; background: var(--lane); cursor: pointer; opacity: 0.85; }
.bar:hover, .bar[aria-pressed="true"] { opacity: 1; outline: 2px solid var(--ink); outline-offset: 2px; }
.bar.is-open { background: linear-gradient(90deg, var(--lane) 60%, transparent); }
.today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--accent); }
.today span { position: absolute; top: -2px; left: 6px; font-size: var(--fs-micro); font-weight: 800; color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.1em; white-space: nowrap; }
.is-dim { opacity: 0.18; }
.chart-note { margin-top: 10px; font-size: var(--fs-small); color: var(--muted); }
.acq-empty { position: absolute; left: 0; top: 18px; font-size: var(--fs-small); color: var(--muted); font-style: italic; }

.tr-body { display: grid; gap: 40px; margin-top: 40px; }
@media (min-width: 1000px) { .tr-body { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } .detail { position: sticky; top: calc(var(--header-height) + 24px); } }
.ledger > li { border-top: 1px solid var(--line-strong); }
.ledger > li:last-child { border-bottom: 1px solid var(--line-strong); }
.ledger button { width: 100%; text-align: left; background: transparent; border: 0; padding: 16px 0; cursor: pointer; display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 4px 20px; color: var(--ink); }
.ledger button:hover .lt { color: var(--accent-text); }
.ledger button[aria-pressed="true"] { box-shadow: inset 3px 0 0 var(--lane); padding-left: 12px; }
.ledger .ld { font-family: var(--font-figure); font-size: 1.3rem; line-height: 1.1; color: var(--muted); }
.ledger .lt { font-weight: 800; line-height: 1.35; }
.ledger .ls { grid-column: 2; font-size: var(--fs-small); color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ledger .ls .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lane); }
.ledger-empty { padding: 24px 0; color: var(--muted); }
.count { font-size: var(--fs-small); color: var(--muted); margin-bottom: 8px; }

.detail { display: grid; gap: 14px; padding: clamp(22px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.detail h3 { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: 600; line-height: 1.2; }
.detail .d-date { font-family: var(--font-figure); font-size: 1.6rem; line-height: 1; color: var(--accent-text); }
.detail .d-text { color: var(--muted-strong); }
.detail .d-related { display: grid; gap: 6px; font-size: var(--fs-small); }
.detail .d-related button { background: none; border: 0; padding: 4px 0; text-align: left; color: var(--ink); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; min-height: 32px; }
.detail .d-src { font-size: var(--fs-small); }
.detail .d-src a { font-weight: 800; word-break: break-word; }

.ghost { border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); display: grid; gap: 16px; }
.ghost dl { display: grid; gap: 0; }
.ghost dl div { display: grid; grid-template-columns: minmax(8rem, 0.45fr) 1fr; gap: 12px; padding-block: 10px; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.ghost dt { color: var(--muted); font-weight: 700; }
.ghost dd { color: var(--muted); font-style: italic; }

/* ── Deal intake ── */
.demo-bar { position: sticky; top: var(--header-height); z-index: 40; background: var(--accent-soft); color: var(--ink); border-bottom: 1px solid var(--line); }
.demo-bar .shell { display: flex; gap: 10px 16px; align-items: center; flex-wrap: wrap; padding-block: 10px; font-size: var(--fs-small); }
.demo-bar strong { color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.1em; font-size: var(--fs-micro); }
.intake-wrap { display: grid; gap: 40px; }
@media (min-width: 1000px) { .intake-wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; gap: 72px; } .fit-panel { position: sticky; top: calc(var(--header-height) + 72px); } }
.progress { display: grid; gap: 10px; margin-bottom: 32px; }
.progress-line { position: relative; height: 3px; background: var(--line-strong); }
.progress-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 20%; background: var(--accent); transition: width 400ms var(--ease-out); }
.progress-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; font-size: var(--fs-micro); font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.progress-steps li { display: grid; gap: 2px; }
.progress-steps .fig { font-size: 1.4rem; }
.progress-steps li[aria-current="step"] { color: var(--accent-text); }
.progress-steps li.is-done { color: var(--ink); }
@media (max-width: 599px) { .progress-steps .step-name { display: none; } }
.intake fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 22px; }
.intake legend { padding: 0; margin-bottom: 6px; }
.js .intake fieldset[hidden] { display: none; }
.step-head { display: grid; gap: 8px; margin-bottom: 8px; }
.step-head .h3 { font-family: var(--font-display); font-weight: 600; }
.q { display: grid; gap: 8px; }
.q > label, .q > .q-label { font-weight: 800; }
.q .hint { font-size: var(--fs-small); color: var(--muted); }
.choices { display: grid; gap: 10px; }
@media (min-width: 640px) { .choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); cursor: pointer; min-height: 52px; }
.choice input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--accent-fill); }
.choice strong { display: block; }
.choice span span { display: block; font-size: var(--fs-small); color: var(--muted); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.row-2 { display: grid; gap: 22px; }
@media (min-width: 640px) { .row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.intake textarea { min-height: 120px; resize: vertical; }
.step-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.step-nav .button { min-width: 140px; }
.error { color: var(--accent-text); font-size: var(--fs-small); font-weight: 700; }
.fit-panel { display: grid; gap: 16px; }
.fit-panel h2 { font-size: var(--fs-micro); text-transform: uppercase; letter-spacing: var(--tr-eyebrow); color: var(--muted); }
.fit-rows > div { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding-block: 12px; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.fit-rows > div:last-child { border-bottom: 1px solid var(--line); }
.fit-rows svg { width: 20px; height: 20px; }
.fit-rows .ok { color: var(--signal-blue); }
.fit-rows .no { color: var(--accent-text); }
.fit-rows .wait { color: var(--muted); }
.fit-rows b { display: block; }
.review dl > div { display: grid; gap: 2px 20px; padding-block: 12px; border-top: 1px solid var(--line); }
.review dl > div:last-child { border-bottom: 1px solid var(--line); }
.review dt { font-size: var(--fs-small); color: var(--muted); font-weight: 700; }
@media (min-width: 640px) { .review dl > div { grid-template-columns: 12rem 1fr; } }
.done-panel { display: grid; gap: 20px; }
.done-panel:focus { outline: none; }
.js .ledger .lx { display: none; }
.lx { padding: 0 0 16px 0; display: grid; gap: 6px; }
@media (min-width: 1000px) { .tr-body > div { order: 1; } .tr-body > .detail { order: 2; } }
@media screen and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
}
.field { align-content: start; }
@media (min-width: 900px) { .field { gap: 48px; } }
.footer-legal p { margin: 0; }
.detail > * { justify-self: start; }
.detail > h3, .detail > .d-text, .detail > .d-related { justify-self: stretch; }
.today span { left: auto; right: 6px; }
.intake, #done { scroll-margin-top: calc(var(--header-height) + 110px); }
