/* =========================================================================
   Home page, layout A (2026-10-31): the Vscore app platform first.
   Only the home page loads this file; tokens come from styles.css.
   The product pictures borrow the app's own look (app.vscore.at): pill
   controls, a petrol table head, Ist months on bg-2, hairline rules.
   ========================================================================= */

/* ---------- hero ---------- */
.home-hero { text-align: center; padding-bottom: 0; }
.home-hero__copy { display: flex; flex-direction: column; align-items: center; gap: var(--s-5); max-width: 940px; }
.home-hero h1 { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; max-width: 18ch; }
.home-hero .lede { max-width: 50ch; margin-inline: auto; }
.home-hero__cta { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; justify-content: center; margin-top: var(--s-2); }
.home-hero__shot { margin-top: clamp(3rem, 6vw, 4.5rem); }

/* ---------- product shot ---------- */
.app-shot { margin: 0; background: var(--bg-3); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: clamp(.75rem, 2vw, 1.5rem) clamp(.75rem, 2vw, 1.5rem) 0; text-align: left; }
.app-shot__frame { background: var(--bg); border-radius: var(--r) var(--r) 0 0; box-shadow: var(--shadow-lg); overflow: hidden; }
.app-shot__bar { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s-3) var(--s-4);
  padding: .7rem 1rem; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.app-shot__name { font-family: var(--font-display); font-weight: 600; color: var(--brand); font-size: 17px; }
.app-pill { border: 1px solid var(--line); border-radius: var(--r-pill); padding: .35rem .9rem; }
.app-seg { margin-left: auto; display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.app-seg > span { padding: .35rem .85rem; }
.app-seg > .is-on { background: var(--brand); color: var(--on-brand); }
.app-shot__body { display: flex; flex-wrap: wrap; }
.app-chat { flex: 1 1 300px; display: flex; flex-direction: column; gap: .85rem; padding: 1.25rem;
  border-right: 1px solid var(--line-soft); font-size: 14.5px; line-height: 1.5; }
.app-chat__head { display: flex; align-items: center; gap: .5rem; font-weight: 600; }
.app-chat__q { align-self: flex-end; max-width: 92%; background: var(--bg-2); border-radius: 14px 14px 4px 14px; padding: .65rem .85rem; }
.app-chat__a { color: var(--ink-2); }
.app-chat__btn { align-self: flex-start; background: var(--accent); color: var(--on-accent, oklch(0.24 0.04 120)); border-radius: var(--r-pill);
  padding: .35rem .9rem; font-weight: 560; font-size: 13px; }
.app-grid { flex: 999 1 560px; min-width: 0; overflow-x: auto; }
.app-grid table { border-collapse: collapse; width: 100%; font-size: 13px; }
.app-grid th, .app-grid td { padding: 9px 14px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line-soft); font-weight: 400; }
.app-grid thead th { background: var(--brand); color: var(--on-brand); font-weight: 600; }
.app-grid th:first-child { text-align: left; }
.app-grid .is-ist { background: var(--bg-2); }
.app-grid .is-neg { color: oklch(0.55 0.15 30); }
.app-grid .is-marked { background: var(--accent-soft); box-shadow: inset 0 -2px 0 var(--accent); }
.app-grid .is-sum th, .app-grid .is-sum td { font-weight: 650; background: var(--bg-2); border-bottom-color: var(--line); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; flex: none; }

/* ---------- sources strip ---------- */
.src-strip { border-block: 1px solid var(--line); }
.src-strip__inner { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: center; align-items: center; padding-block: var(--s-5); }
.src-strip__label { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.src-strip ul { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); justify-content: center; }
.src-strip li { display: inline-flex; align-items: center; gap: .5rem; }

/* ---------- section heads + module grid ---------- */
.mod-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: var(--s-5); }
.mod-head > div { max-width: 640px; }
.mod-head__body { color: var(--ink-2); max-width: 40ch; }
.mod-grid { margin-top: clamp(2.5rem, 5vw, 4rem); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 480px), 1fr)); gap: 1.25rem; }
.mod { background: var(--bg-2); border-radius: var(--r-lg); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: .5rem; }
.mod h3 { font-size: clamp(1.35rem, 1.2rem + .5vw, 1.65rem); font-weight: 520; }
.mod > p { color: var(--ink-2); max-width: 46ch; }
.mod__viz { margin-top: auto; padding-top: var(--s-5); }
.mod__card > :first-child { margin-top: 0; }
.mod__card { background: var(--bg); border-radius: var(--r); padding: 1rem; margin-top: auto; }
.mod > .mod__card { margin-top: var(--s-5); }

/* module 1: sources -> app */
.hub { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.hub__src { flex: 1 1 150px; display: flex; flex-direction: column; gap: .4rem; }
.hub__src li { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r-pill); padding: .35rem .85rem; font-size: 13.5px; }
.hub__arrow { color: var(--brand); flex: none; }
.hub__app { flex: 1 1 170px; background: var(--brand); color: var(--on-brand); border-radius: var(--r); padding: 1rem 1.1rem;
  display: flex; flex-direction: column; gap: .35rem; font-size: 14px; }
.hub__app b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.hub__app span { color: var(--on-brand-muted); }

/* module 2: KPI tiles */
.kpi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.kpi { background: var(--bg); border: 1px solid var(--line-soft); border-radius: var(--r); padding: .9rem 1rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.kpi__l { font-size: 12.5px; font-weight: 560; color: var(--muted); }
.kpi__v { font-family: var(--font-display); font-size: clamp(1.3rem, 1.1rem + .6vw, 1.7rem); font-weight: 600; letter-spacing: -0.02em; color: var(--brand); }
.kpi__d { font-size: 12.5px; color: var(--muted); }
.kpi__d--up { color: var(--accent-ink); }
.kpi__d--down { color: oklch(0.55 0.15 30); }

/* module 3: weekly liquidity (bars from zero; Ist solid, Plan dashed) */
.wk-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: 12.5px; color: var(--ink-2); margin-bottom: .5rem; }
.wk-legend > span { display: inline-flex; align-items: center; gap: .4rem; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw--ist { background: var(--brand); }
.sw--plan { background: color-mix(in oklch, oklch(0.66 0.045 200) 55%, var(--bg)); outline: 1.5px dashed var(--brand); outline-offset: -1.5px; }
.sw--now { background: var(--accent); }
.sw--min { width: 16px; height: 0; border-radius: 0; border-top: 1.5px dashed oklch(0.62 0.15 40); }
.sw--low { width: 8px; height: 8px; border-radius: 50%; background: oklch(0.62 0.15 40); }
.wk-chart { width: 100%; height: auto; display: block; font-size: 13px; }
.wk { transition: opacity var(--t-fast); }
.wk--ist { fill: var(--brand); }
.wk--now { fill: var(--accent); }
.wk--plan { fill: oklch(0.66 0.045 200); fill-opacity: .55; stroke: var(--brand); stroke-width: 1.5; stroke-dasharray: 3 3; }
.wk:hover { opacity: .8; }
.wk-x { fill: var(--muted); font-family: var(--font-mono); }
.wk-cap { fill: var(--muted); }
.wk-val { fill: var(--ink); font-weight: 600; }
.wk-base { stroke: var(--line); }
.wk-min { stroke: oklch(0.62 0.15 40); stroke-dasharray: 3 4; }
.wk-warn { fill: oklch(0.62 0.15 40); stroke: var(--bg); stroke-width: 2; }

/* module 4: scenarios */
.scen { width: 100%; border-collapse: collapse; }
.scen th, .scen td { padding: .8rem 0; border-bottom: 1px solid var(--line-soft); text-align: left; font-weight: 400; }
.scen th { padding-right: 1rem; }
.scen td { text-align: right; white-space: nowrap; }
.scen thead th { font-size: 13px; color: var(--muted); }
.scen thead th:last-child { text-align: right; }
.scen tbody tr:last-child > * { border-bottom: 0; }
.scen b { font-weight: 600; }
.scen small { margin-left: .4rem; font-size: 13px; }
.scen .is-neg { color: oklch(0.55 0.15 30); }
.scen .is-pos { color: var(--accent-ink); }

/* ---------- behind the app (dark video band) ---------- */
#team .video-aside { margin-top: clamp(2.5rem, 5vw, 4rem); }
.cfo-aside { display: flex; flex-wrap: wrap; gap: var(--s-6) clamp(2rem, 6vw, 5rem); align-items: flex-end; justify-content: space-between; }
#team .video-aside { max-width: none; border-top-color: var(--on-brand-line); }
.cfo-quote { margin: 0; flex: 1 1 420px; }
.cfo-quote p { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.25rem, 1.05rem + .7vw, 1.65rem); line-height: 1.3;
  letter-spacing: -0.015em; color: var(--on-brand); max-width: 34ch; }
.cfo-quote footer { margin-top: var(--s-3); font-size: var(--fs-sm); color: var(--on-brand-muted); }
.cfo-quote footer b { color: var(--on-brand); font-weight: 600; }
.cfo-team { flex: 0 1 auto; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-4); }
.cfo-team__faces { display: flex; }
.cfo-team__faces img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--brand-800); }
.cfo-team__faces img + img { margin-left: -10px; }
.cfo-team__facts { color: var(--on-brand-muted); font-size: var(--fs-sm); }

/* ---------- prices: one ledger ---------- */
.plan-ledger { margin-top: clamp(2rem, 4vw, 2.5rem); border-top: 1px solid var(--line); }
.plan-ledger__row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem var(--s-6); padding: var(--s-5) 0;
  border-bottom: 1px solid var(--line); color: var(--ink); transition: background var(--t-fast); }
.plan-ledger__row:hover { background: var(--bg-2); }
.plan-ledger__row.is-featured { background: var(--accent-soft); padding-inline: 1rem; margin-inline: -1rem; border-radius: var(--r-sm); }
.plan-ledger__name { flex: 1 1 260px; font-family: var(--font-display); font-size: clamp(1.15rem, 1.05rem + .4vw, 1.4rem); font-weight: 520; }
.plan-ledger__rec { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-left: .5rem; }
.plan-ledger__claim { flex: 2 1 320px; color: var(--ink-2); }
.plan-ledger__price { font-family: var(--font-mono); font-size: 20px; white-space: nowrap; }
.plan-ledger__price small { color: var(--muted); font-size: 13px; }

/* ---------- demo panel ---------- */
.home-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-4); }
.home-cta h2 { position: relative; margin-inline: auto; }
.home-cta .lede { position: relative; color: var(--on-brand-muted); }
.home-cta .btn { position: relative; margin-top: var(--s-3); }

@media (max-width: 760px) {
  .app-shot__opt { display: none; }
  .app-chat { border-right: 0; border-bottom: 1px solid var(--line-soft); }
  .kpi-grid { grid-template-columns: minmax(0, 1fr); }
  .hub { flex-direction: column; align-items: stretch; }
  .hub__arrow { align-self: center; transform: rotate(90deg); }
  .hub__src, .hub__app { flex: none; }
}
