/* =========================================================================
   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; }
/* the headline names the offer in full (Finanzplanung, Liquiditätsplanung, Dashboards),
   so it runs a step smaller and wider than a short slogan would */
.home-hero h1 { font-size: var(--fs-xl); font-weight: 600; letter-spacing: -0.03em; line-height: 1.06; max-width: 24ch; hyphens: manual; }
.home-hero__price { font-size: var(--fs-sm); color: var(--muted); margin-top: calc(-1 * var(--s-2)); }
.home-hero__price strong { color: var(--ink); font-weight: 600; }
.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: Vscore Planning as the app draws it (Nov 2026) ---------- */
.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 { display: flex; background: var(--bg); border-radius: var(--r) var(--r) 0 0; box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: 13px; color: var(--ink); }
.app-ico { width: 12px; height: 12px; flex: none; }

/* sidebar */
.app-side { flex: 0 0 172px; background: var(--brand); color: oklch(0.93 0.02 190); padding: 14px 10px; font-size: 12.5px; }
.app-side__logo { display: block; font-family: var(--font-display); font-weight: 700; letter-spacing: .04em; color: #fff;
  border: 1.5px solid oklch(1 0 0 / .55); border-radius: 6px; padding: 3px 8px; width: max-content; margin: 0 0 18px 4px; }
.app-side__grp { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; opacity: .6; margin: 14px 6px 6px; }
.app-side ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.app-side li { padding: 6px 8px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-side li.is-on { background: oklch(1 0 0 / .14); color: #fff; font-weight: 600; }

.app-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.app-shot__bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 12px 16px 8px; }
.app-shot__name { font-family: var(--font-display); font-weight: 600; color: var(--brand); font-size: 17px; }
.app-field { display: inline-flex; align-items: center; gap: 6px; }
.app-field__k { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3, #6c757d); }
.app-select { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 6px; padding: 4px 8px 4px 10px; background: var(--bg); }
.app-badge { background: oklch(0.95 0.03 190); color: var(--brand); border-radius: 6px; padding: 4px 8px; font-weight: 600; font-size: 12px; white-space: nowrap; }
.app-shot__acts { margin-left: auto; display: inline-flex; gap: 6px; }
.app-btn { border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; white-space: nowrap; background: var(--bg); }
.app-btn--on { background: var(--brand-900); border-color: var(--brand-900); color: #fff; font-weight: 600; }
.app-btn--sm { padding: 2px 8px; font-size: 11.5px; font-weight: 400; }

.app-tools { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 16px 12px; }
.app-seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.app-seg > span { padding: 4px 10px; }
.app-seg > span + span { border-left: 1px solid var(--line-soft); }
.app-seg > .is-on { background: var(--brand); color: var(--on-brand); font-weight: 600; }

.app-shot__body { display: flex; flex: 1; min-height: 0; border-top: 1px solid var(--line-soft); }
.app-grid { flex: 1 1 auto; min-width: 0; overflow-x: auto; padding: 10px 0 14px 12px; }
.app-grid table { border-collapse: collapse; width: 100%; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.app-grid th, .app-grid td { padding: 8px 9px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--line-soft); font-weight: 500; }
.app-grid thead th { background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 12px; }
.app-grid th:first-child { text-align: left; font-weight: 600; }
.app-grid tbody th { min-width: 11rem; white-space: normal; }
.app-tri { color: var(--brand); font-size: 10px; margin-right: 6px; }
.app-grid .is-neg { color: inherit; }
.app-grid .is-total { border-left: 2px solid var(--brand); color: var(--brand); font-weight: 650; }
.app-grid thead .is-total { background: oklch(0.95 0.03 190); color: var(--brand); }
.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: #eef0e4; border-bottom-color: #cfd6c2; border-top: 1px solid #cfd6c2; }
.app-grid .is-sum .is-total { background: oklch(0.95 0.03 190); }

.app-chat { flex: 0 0 268px; display: flex; flex-direction: column; gap: .75rem; padding: 12px 14px 14px;
  border-left: 1px solid var(--line-soft); font-size: 13px; line-height: 1.5; }
.app-chat__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; font-weight: 600; }
.app-chat__q { align-self: flex-end; max-width: 92%; background: var(--bg-2); border-radius: 12px 12px 4px 12px; padding: .55rem .75rem; }
.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: .3rem .85rem; font-weight: 560; font-size: 12.5px; }
.app-chat__input { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--line); border-radius: 8px; padding: 6px 6px 6px 10px; color: var(--ink-3, #6c757d); }
.app-chat__send { width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; }

@media (max-width: 1180px) { .app-side { display: none; } }
@media (max-width: 900px) {
  .app-shot__body { flex-direction: column; }
  .app-chat { flex: none; border-left: 0; border-top: 1px solid var(--line-soft); }
  .app-chat__input { margin-top: .25rem; }
}
/* phones: the plan months with the chat's change (Apr–Jun), not the actuals */
@media (max-width: 600px) {
  .app-shot .app-grid tr > :nth-child(2), .app-shot .app-grid tr > :nth-child(3), .app-shot .app-grid tr > :nth-child(4), .app-shot .app-grid .is-total { display: none; }
  .app-shot .app-grid { padding: 8px 10px 12px; }
  .app-shot .app-grid table { font-size: 12px; }
  .app-shot .app-grid th, .app-shot .app-grid td { padding: 7px 5px; }
  .app-tri { display: none; }
  .app-grid tbody th, .app-grid thead th:first-child { min-width: 0; white-space: normal; }
  /* Cash Forecast: the current week and the next */
  .cf-grid tr > :nth-child(2), .cf-grid tr > :nth-child(5) { display: none; }
  .cf-grid th, .cf-grid td { padding: 5px 4px; }
  .cf-grid th.is-child { padding-left: 8px; }
}
.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 */

/* module 3: weekly liquidity (bars from zero; Ist solid, Plan dashed) */
/* standard Finanz-Dashboard view (module "Dashboards nach Maß") */
.db { display: flex; flex-direction: column; font-size: 12px; color: var(--ink); text-align: left; border-radius: 8px; overflow: hidden; border: 1px solid var(--line-soft); }
.db-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; background: var(--brand); color: #fff; padding: 9px 12px; }
.db-head b { font-family: var(--font-display); font-size: 14.5px; font-weight: 600; }
.db-logo { width: 20px; height: 20px; border-radius: 5px; background: var(--brand-900); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 12px; }
.db-head__co { color: oklch(1 0 0 / .78); }
.db-head__asof { margin-left: auto; color: oklch(1 0 0 / .78); font-size: 11px; }
.db-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 12px 6px; background: var(--bg); }
.db-tools .app-seg { font-size: 11px; }
.db-tools .app-seg > span { padding: 3px 9px; }
.db-chip { background: var(--accent-soft); border-radius: 999px; padding: 2px 9px; font-size: 11px; color: oklch(0.42 0.08 115); }
.db-tabs { display: flex; gap: 14px; padding: 0 12px; border-bottom: 1px solid var(--line-soft); background: var(--bg); color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.db-tabs > span { padding: 6px 0 5px; border-bottom: 2px solid transparent; }
.db-tabs > .is-on { color: var(--brand); font-weight: 600; border-bottom-color: var(--accent); }
.db-body { background: color-mix(in oklch, var(--bg-2) 70%, var(--bg-3)); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.db-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.db-kpi { background: var(--bg); border-radius: 8px; padding: 7px 10px 6px; display: flex; flex-direction: column; box-shadow: 0 1px 2px oklch(0.4 0.05 200 / .08); min-width: 0; }
.db-kpi__k { font-size: 10.5px; color: var(--ink-2); }
.db-kpi b { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--brand); font-variant-numeric: tabular-nums; }
.db-kpi__d { font-size: 10.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-spark { width: 100%; height: 22px; margin-top: 3px; }
.db-spark polyline { fill: none; stroke: #0b7d85; stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.db-chart { background: var(--bg); border-radius: 8px; padding: 8px 10px 4px; box-shadow: 0 1px 2px oklch(0.4 0.05 200 / .08); }
.db-chart__head { margin: 0 0 2px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; font-size: 11.5px; }
.db-leg { display: inline-flex; align-items: center; gap: 5px; color: var(--ink-2); font-size: 10.5px; }
.db-sw { width: 9px; height: 9px; border-radius: 2px; background: #0b7d85; display: inline-block; }
.db-sw--plan { width: 12px; height: 0; border-radius: 0; border-top: 2px dashed #8f9a1f; background: none; margin-left: 6px; }
.db-chart svg { width: 100%; height: auto; display: block; font-size: 10px; }
.db-grid { stroke: var(--line-soft); }
.db-ax { fill: var(--muted); }
.db-bar { fill: #0b7d85; }
.db-bar.is-fct { fill: #9fc9cb; }
.db-plan { fill: none; stroke: #8f9a1f; stroke-width: 1.8; stroke-dasharray: 5 4; stroke-linejoin: round; }
.db-fline { stroke: #5fb3bd; stroke-dasharray: 2 3; }
@media (max-width: 440px) { .db-tabs__opt { display: none; } }

/* Vscore Cash Forecast view (module "Liquidität Woche für Woche", Planning LP) */
.cf { display: flex; flex-direction: column; gap: 10px; font-size: 12px; color: var(--ink); text-align: left; }
.cf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.cf-bar .app-shot__name { font-size: 15px; }
.cf-seg { margin-left: auto; font-size: 11.5px; }
.cf-seg > span { padding: 3px 9px; }
.cf-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.cf-card { border: 1px solid var(--line); border-radius: 8px; padding: 6px 9px; display: flex; flex-direction: column; min-width: 0; }
.cf-card__k { font-size: 10.5px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cf-card b { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; }
.cf-card small { font-size: 10px; color: oklch(0.6 0.12 60); }
.cf-card--sum { background: var(--brand); border-color: var(--brand); color: #fff; }
.cf-card--sum .cf-card__k, .cf-card--sum small { color: oklch(1 0 0 / .78); }
.cf-grid { padding: 0; }
.cf-grid table { font-size: 11.5px; }
.cf-grid th, .cf-grid td { padding: 5px 6px; }
.cf-grid thead th { line-height: 1.15; }
.cf-grid thead th small { display: block; font-weight: 500; font-size: 9.5px; opacity: .85; }
.cf-grid thead th.is-ist { background: color-mix(in oklch, var(--brand) 78%, white); }
.cf-grid tbody th { min-width: 0; font-weight: 500; }
.cf-grid .is-grp th, .cf-grid .is-grp td { font-weight: 650; }
.cf-grid th.is-child { padding-left: 14px; }
.cf-branch { color: var(--ink-3, #8a9a9a); margin-right: 5px; }
.cf-grid .is-now { box-shadow: inset 2px 0 0 oklch(0.72 0.15 60); }
.cf-chart { border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 10px 4px; }
.cf-chart__head { margin: 0; font-size: 11.5px; color: var(--ink-2); }
.cf-chart__head b { color: var(--ink); margin-right: 6px; }
.cf-chart svg { width: 100%; height: auto; display: block; font-size: 10.5px; }
.cf-area { fill: color-mix(in oklch, var(--brand) 9%, transparent); }
.cf-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.cf-dot { fill: var(--brand); stroke: var(--bg); stroke-width: 1.5; }
.cf-dot.is-low { fill: oklch(0.62 0.15 40); }
.cf-x { fill: var(--muted); font-family: var(--font-mono); }
.cf-min { stroke: oklch(0.62 0.15 40); stroke-dasharray: 3 4; }
.cf-min__t { fill: oklch(0.55 0.14 40); }
.cf-low { fill: oklch(0.55 0.14 40); font-weight: 650; }

/* 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; }
  .hub { flex-direction: column; align-items: stretch; }
  .hub__arrow { align-self: center; transform: rotate(90deg); }
  .hub__src, .hub__app { flex: none; }
}
