/* ============================================================
   QINTA — Landing v3 · "Studio MD3" (.qmd)
   Paleta: bijela / zlatna / crna. Komponente po Material Design 3:
   pill gumbi sa state-layerima, tonal containeri, outlined kartice
   (radius 12–28), elevation 1–3, MD3 menu za jezik, segmented toggle.
   ============================================================ */
/* Public-page anchor scrolling: smooth scroll + offset the sticky nav so a
   targeted section starts BELOW the nav, not hidden behind it. */
html { scroll-padding-top: 104px; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ============================================================
   PUBLIC PAGES PALETTE — landing v4 tokens (owner decision 2026-09-12).
   The marketing pages (landing, news list, article, legal) read the same token contract
   as the app, but paint the landing-v4 handoff palette: warm paper ground (#F4EEE1, the
   app's own "tri plohe" ground), white cards, strong ink (#181510) and a readable muted
   ink (#6F6653) — the values that made the earlier Award look "washed out" (muted #95896F,
   #F2F0E9 cards) are exactly the ones this pin replaces. This stylesheet is loaded ONLY by
   the public pages and pins COLOUR, SHADOW and BRAND-MARK tokens on <body>; shape, type,
   motion and spacing still come from the theme.
   The hero device mocks are the one thing that must keep showing the LIVE app: their rules
   read the --qmp-* aliases declared on :root further down, which resolve on the root
   element BEFORE this pin and therefore still carry the theme's values.
   This is the one deliberate exception to docs/theming-specification.md §2.
   Never load this file on a secured (shell) page — the pin would reskin the app.
   ============================================================ */
body.pkt-root {
  /* gold ramp (v4: gold #F5B121, gold-deep #D89A05, gold-ink #453503, gold-pale #FBEDC9) */
  --p-10: #261C00; --p-20: #3F2E00; --p-30: #453503; --p-40: #9A7100; --p-50: #D89A05;
  --p-60: #D89A05; --p-70: #F5B121; --p-80: #F9C95E; --p-90: #FBEDC9; --p-95: #FDF6E8; --p-99: #FFFDF6;
  /* neutral ink-grey (--s-40 = nav links / secondary text) */
  --s-10: #16140F; --s-20: #2A2721; --s-30: #403C33; --s-40: #514B3E; --s-90: #E7E3D8; --s-95: #F4F1E8;
  /* positive / error */
  --t-30: #1F6B5C; --t-40: #2E8C77; --t-50: #3FAE93; --t-60: #5BC7AB; --t-80: #B0E5D6; --t-90: #DFF3ED; --t-95: #E3F5EF;
  --e-40: #BA2D3F; --e-60: #E0556A; --e-90: #FBE0E5;
  /* surfaces: paper ground, white raised plane, warm insets on white */
  --bg: #F4EEE1; --surface: #FFFFFF; --surface-1: #F7F3E9; --surface-2: #EFE9DA; --surface-3: #E6DFCC; --surface-dim: #DDD5BF;
  --on-surface: #181510; --on-surface-muted: #6F6653; --on-surface-subtle: #8F8670;
  --outline: #CFC6AE; --outline-variant: #E3DCC8;
  --dark-bg: #0F0E0B; --dark-surface: #16140F; --dark-surface-1: #1D1B16; --dark-surface-2: #2A2620;
  --on-dark: #F7F3E8; --on-dark-muted: #A89F87;
  /* on-colours + the primary split: the gold FILL takes dark ink (v4 onGold), gold-as-TEXT stays the readable deep gold */
  --on-primary: #241B03; --on-primary-muted: rgba(36, 27, 3, .72); --on-primary-container: #453503;
  --on-tertiary: #FFFFFF; --on-error: #FFFFFF; --white: #FFFFFF;
  --primary: #F5B121; --primary-hover: #D89A05; --primary-text: #9A7100; --primary-text-hover: #5C4400;
  --filled-bg: #181510; --filled-bg-hover: #000000; --on-filled: #F7F3E8;
  --inverse-surface: #181510; --on-inverse: #F7F3E8; --on-inverse-muted: #A89F87; --inverse-outline: rgba(247, 243, 232, .14);
  /* elevation: warm ink, soft (v4 card shadow 0 10px 26px .08); the landing root below restates its own set */
  --el-1: 0 1px 2px rgba(24, 21, 16, .06), 0 1px 3px rgba(24, 21, 16, .06);
  --el-2: 0 2px 6px rgba(24, 21, 16, .06), 0 8px 20px rgba(24, 21, 16, .08);
  --el-3: 0 4px 14px rgba(24, 21, 16, .08), 0 18px 44px rgba(24, 21, 16, .14);
  --el-glow-p: 0 12px 40px rgba(245, 177, 33, .28);
  --el-glow-t: 0 12px 40px rgba(63, 174, 147, .22);
  --focus-ring-color: #FBEDC9;
  /* brand mark (the inline Q-wallet SVG in the nav, footer and hero) = the v4 coin colours */
  --mark-strap: #0F0E0B; --mark-body-1: #332F26; --mark-body-2: #14120E;
  --mark-gold: #F3AE12; --mark-gold-soft: #FFC72E; --mark-q: #D18E06;
  --mark-coin: #CBD1D9; --mark-coin-line: #B7BEC9; --mark-dot: #FFC72E;
}
/* PrimeFaces command buttons on the public pages (the news "Load more"): theme.css paints
   .ui-button with COMPILED literals (Award bright gold + el-1), which the token pin above
   cannot reach — restate the old look on the pinned tokens (gold fill, white label). */
body.pkt-root .ui-button { background: var(--primary); color: var(--on-primary); }
body.pkt-root .ui-button.ui-state-hover, body.pkt-root .ui-button:enabled:hover,
body.pkt-root .ui-button:focus-visible { background: var(--primary-hover); color: var(--on-primary); }

.qmd {
  font-family: var(--font);
  background: var(--bg);
  color: var(--on-surface);
  position: relative;
  /* clip (not hidden): still cuts the decorative blobs/rings that bleed past
     the edges, but does NOT create a scroll container — so the sticky nav works */
  overflow: clip;
  -webkit-font-smoothing: antialiased;
  /* svaki .qmd je vlastiti container — responzivna pravila se pale po
     širini artboarda, ne hosta */
  container-type: inline-size;
  container-name: qmd;
  /* the old .qmd block carried its own, slightly stronger MD3 elevation set */
  --el-1: 0 1px 2px rgba(24,21,16,.08), 0 1px 3px 1px rgba(24,21,16,.05);
  --el-2: 0 2px 6px rgba(24,21,16,.06), 0 10px 26px rgba(24,21,16,.08);
  --el-3: 0 4px 14px rgba(24,21,16,.08), 0 18px 44px rgba(24,21,16,.16);
  /* landing-only colours that were literals in the old file and have no token twin */
  --ld-goldc-border: #EFD79A;
  --ld-icon-card-shadow: 0 12px 32px rgba(24,21,16,.28);
  --ld-popular-shadow: 0 24px 64px rgba(24,21,16,.25);
  --ld-cover-1: linear-gradient(140deg, #2A251C, #181510);
  --ld-cover-2: linear-gradient(140deg, #FBEDC9, #F9C95E);
  --ld-cover-3: linear-gradient(140deg, #F7F2E2, #EFE6CB);
  --ld-banner: linear-gradient(135deg, #181510 0%, #2A251C 70%, #3A3326 100%);
  --ld-avatar: linear-gradient(135deg, #181510, #6B5200);
}
.qmd *, .qmd *::before, .qmd *::after { box-sizing: border-box; }
.qmd h1, .qmd h2, .qmd h3, .qmd h4, .qmd p, .qmd ul { margin: 0; }
.qmd a { color: inherit; text-decoration: none; }
/* :not(.pkt-icon-btn) — this page-level reset is (0,1,1) and was silently
   out-ranking the shared icon button's own (0,1,0) colour, so the public nav's
   menu button drifted away from the app bar's while both claimed to be the same
   component. A page reset yields to a component, not the other way round. */
.qmd button:not(.pkt-icon-btn) { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.qmd img { display: block; }

/* ---------- MD3 gumbi ---------- */
.qmd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 28px; border-radius: var(--r-btn);
  font: 700 14.5px/1 var(--font); letter-spacing: .01em;
  position: relative; overflow: hidden; transition: box-shadow .2s, background .2s, transform .2s var(--ease-emph);
}
.qmd-btn::before { /* MD3 state layer */
  content: ''; position: absolute; inset: 0; background: currentColor; opacity: 0; transition: opacity .15s;
}
.qmd-btn:hover::before { opacity: .08; }
.qmd-btn:active::before { opacity: .12; }
/* .filled is the neutral high-emphasis button, so it takes the contract's
   --filled-bg / --on-filled pair. Painting it with --on-surface + --on-primary
   breaks under a light-primary theme: --on-primary is near-black there, so the
   label vanished on the near-black block. */
.qmd-btn.filled { background: var(--filled-bg); color: var(--on-filled); }
.qmd-btn.filled:hover { box-shadow: var(--el-2); }
.qmd-btn.gold { background: var(--primary); color: var(--on-primary); }
.qmd-btn.gold:hover { box-shadow: var(--el-2); }
.qmd-btn.tonal { background: var(--p-90); color: var(--on-primary-container); }
.qmd-btn.outlined { background: transparent; color: var(--on-surface); box-shadow: inset 0 0 0 1px var(--outline); }
.qmd-btn.text { background: transparent; color: var(--s-40); padding: 0 16px; }
.qmd-btn.lg { height: 56px; padding: 0 34px; font-size: 16px; }
.qmd-btn.sm { height: 40px; padding: 0 20px; font-size: 13.5px; }

/* ---------- MD3 kartice ---------- */
.qmd-card {
  background: var(--surface); border: 1px solid var(--outline-variant);
  border-radius: var(--r-card); padding: 28px; position: relative;
  transition: box-shadow .25s, transform .25s var(--ease-emph), border-color .25s;
}
.qmd-card.hoverable:hover { box-shadow: var(--el-2); transform: translateY(-3px); border-color: var(--outline); }
.qmd-card.elevated { background: var(--surface); box-shadow: var(--el-1); border: 0; }
/* .ink is the dark-block card: it is painted from --filled-bg, so it must be
   written in that container's ink (--on-filled), not --on-primary — which is
   near-black under a light-primary theme. */
.qmd-card.ink { background: var(--filled-bg); color: var(--on-filled); border-color: var(--filled-bg); }
.qmd-card.goldc { background: var(--p-90); border-color: var(--ld-goldc-border); color: var(--on-primary-container); }

/* ---------- nav (shared component — pages/elements/publicNav.xhtml) ---------- */
/* Sticky sits on the HOST wrapper, not the nav: on sub-pages the nav is not a
   direct child of a full-page .qmd, and a sticky element can only stick within
   its parent's box. The host is also the @container context + token scope. */
.qmd.qmd-navhost {
  position: sticky; top: 0; z-index: 50;
  overflow: visible;            /* the language menu must drop past the host box */
  background: transparent;
}
.qmd-nav {
  display: flex; align-items: center; gap: 28px; height: 88px; padding: 0 64px;
  position: relative;
  background: var(--bg);
  border-bottom: 1px solid var(--outline-variant);
}
.qmd-nav-links { display: flex; gap: 6px; margin-left: 14px; }
.qmd-nav-links a {
  font-size: 14.5px; font-weight: 600; color: var(--s-40);
  padding: 10px 16px; border-radius: var(--r-pill); position: relative; overflow: hidden;
  transition: color .2s, background .2s;
}
.qmd-nav-links a:hover { background: var(--surface-2); color: var(--on-surface); }
.qmd-nav-links a.on { background: var(--p-90); color: var(--on-primary-container); font-weight: 700; }
.qmd-nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
/* the menu button is the shared MD3 .pkt-icon-btn.outlined (brand.css); this
   page only decides WHEN it appears — see the burger breakpoint below */
.qmd-burger { display: none; }

/* ---------- MD3 language dropdown ---------- */
.qmd-lang { position: relative; }
.qmd-lang-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 14px 0 16px; border-radius: var(--r-pill);
  box-shadow: inset 0 0 0 1px var(--outline);
  font: 700 13px/1 var(--font); letter-spacing: .04em; color: var(--s-40);
  transition: background .15s;
}
.qmd-lang-btn:hover { background: var(--surface-2); }
.qmd-lang-btn .car { transition: transform .2s var(--ease-emph); display: inline-flex; }
.qmd-lang-btn .car.up { transform: rotate(180deg); }
.qmd-menu {
  position: absolute; top: calc(100% + 6px); right: 0; min-width: 168px;
  background: var(--surface); border-radius: var(--r-panel); box-shadow: var(--el-3);
  border: 1px solid var(--outline-variant); padding: 6px; z-index: 40;
  animation: qmdMenuIn .18s var(--ease-emph);
}
@keyframes qmdMenuIn { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
.qmd-menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 14px; border-radius: var(--r-chip-sm); font: 600 14px/1 var(--font); color: var(--on-surface);
  transition: background .12s; text-align: left;
}
.qmd-menu-item:hover { background: var(--surface-2); }
.qmd-menu-item.on { background: var(--p-90); color: var(--on-primary-container); font-weight: 700; }
.qmd-menu-item .ck { margin-left: auto; display: inline-flex; }
.qmd-scrim { position: fixed; inset: 0; z-index: 30; }

/* bijela kartica za logo ikonu na tamnim podlogama */
.qmd-icon-card {
  background: var(--white); border-radius: var(--r-card-md); padding: 13px;
  display: inline-grid; place-items: center;
  box-shadow: var(--ld-icon-card-shadow);
}

/* flex red u bento tx kartici (klasa radi responzivnog sloma) */
.qmd-tx-flex { display: flex; gap: 26px; margin-top: 16px; align-items: flex-start; }

/* bento tx list (.qmd-b-tx): the demo rows reuse the old phone-mock .qmp-tx classes; their
   rules went out with the old mock on 2026-08-21 and are restored here (outside the .qmp
   mock block on purpose — the bento is marketing chrome and takes the pinned palette) */
.qmp-tx { margin-top: 12px; flex: 1; }
.qmp-tx .row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--outline-variant); }
.qmp-tx .row:first-child { border-top: 0; }
.qmp-tx .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 10.5px; font-weight: 800; flex: 0 0 auto; }
.qmp-tx .who { flex: 1; min-width: 0; }
.qmp-tx .who .w { font-size: 12px; font-weight: 700; color: var(--on-surface); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qmp-tx .who .c { font-size: 9.5px; color: var(--on-surface-muted); }
.qmp-tx .amt { font-size: 12px; font-weight: 800; color: var(--on-surface); font-variant-numeric: tabular-nums; }
.qmp-tx .amt.plus { color: var(--primary-text); }
/* The phone mock is a picture of the LIVE app, so it must not inherit the public-page
   palette pin at the top of this file. These aliases are declared on :root, where var()
   resolves against the theme values — descendants inherit the COMPUTED colour, so the
   pin on body cannot reach them. Only the tokens the pin overrides need an alias. */
:root {
  --qmp-bg: var(--bg); --qmp-surface: var(--surface); --qmp-surface-1: var(--surface-1);
  --qmp-outline: var(--outline); --qmp-outline-variant: var(--outline-variant);
  --qmp-on-surface: var(--on-surface); --qmp-on-surface-muted: var(--on-surface-muted); --qmp-on-surface-subtle: var(--on-surface-subtle);
  --qmp-primary: var(--primary); --qmp-primary-text: var(--primary-text); --qmp-primary-text-hover: var(--primary-text-hover);
  --qmp-p-95: var(--p-95); --qmp-t-30: var(--t-30); --qmp-t-90: var(--t-90); --qmp-e-40: var(--e-40); --qmp-e-90: var(--e-90);
  --qmp-el-1: var(--el-1); --qmp-el-2: var(--el-2);
  --qmp-p-30: var(--p-30); --qmp-p-50: var(--p-50); --qmp-p-80: var(--p-80); --qmp-p-90: var(--p-90); --qmp-t-50: var(--t-50); --qmp-on-primary: var(--on-primary); --qmp-filled-bg: var(--filled-bg);
  --qmp-mark-strap: var(--mark-strap); --qmp-mark-body-1: var(--mark-body-1); --qmp-mark-body-2: var(--mark-body-2);
  --qmp-mark-gold: var(--mark-gold); --qmp-mark-gold-soft: var(--mark-gold-soft); --qmp-mark-q: var(--mark-q);
  --qmp-mark-coin: var(--mark-coin); --qmp-mark-coin-line: var(--mark-coin-line);
}

/* sadržaj ekrana = the app's own "Pregled računa" at mock scale (~x0.7 of the phone layout):
   phone A = the KPI half, phone B = the charts half. Colours are the theme tokens the dashboard
   itself uses (--hero-*, --chart-*, --bnav-*, --t-90, --e-90 ...), so the dark theme follows. */
.qmp { font-family: var(--font); display: flex; flex-direction: column; height: 100%; color: var(--qmp-on-surface); line-height: 1.3; text-align: left; }
.qmp > * { flex: 0 0 auto; }
.qmp .cap { text-transform: capitalize; }
.qmp .dec { font-size: .52em; opacity: .65; }   /* muted decimals, like the app's .pkt-dec */
/* app bar; the status area is part of the bar (the app pads it with safe-area-inset-top) */
.qmp-bar { height: 73px; display: flex; align-items: center; gap: 9px; padding: 38px 9px 0; background: var(--qmp-surface); border-bottom: 1px solid var(--nav-border); box-shadow: var(--qmp-el-1); position: relative; z-index: 2; }
.qmp-bar .burger { width: 24px; height: 24px; border-radius: var(--r-pill); border: 1px solid var(--qmp-outline); display: grid; place-items: center; color: var(--qmp-on-surface); }
.qmp-bar .burger svg { width: 13px; height: 13px; display: block; stroke: currentColor; }
.qmp-bar .mark { width: 19px; height: 19px; display: block; }
.qmp-bar .name { font-size: 11.5px; font-weight: 800; letter-spacing: -.02em; }
.qmp-bar .name b { color: var(--nav-logo-accent); font-weight: 800; }
/* page body: clipped by the screen, so the last card runs under the floating bar */
.qmp-body { flex: 1 1 auto; min-height: 0; overflow: hidden; padding: 11px 9px 0; display: flex; flex-direction: column; background: var(--qmp-bg); }
.qmp-body > * { flex: 0 0 auto; }
/* phone A: page header + tools */
.qmp-head .eyebrow { font-size: 7.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--qmp-primary-text); }
.qmp-head .h1 { font-size: 17px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 3px; }
.qmp-head .sub { font-size: 8.5px; color: var(--qmp-on-surface-muted); margin-top: 3px; }
.qmp-tools { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 9px; }
.qmp-month { display: inline-flex; align-items: center; gap: 5px; height: 27px; padding: 0 10px; background: var(--qmp-surface); border: 1px solid var(--qmp-outline); border-radius: var(--r-btn); font-size: 9px; font-weight: 600; white-space: nowrap; }
.qmp-month .cal { color: var(--qmp-primary-text); }
.qmp-month .chev { color: var(--qmp-on-surface-muted); }
.qmp-month svg { width: 11px; height: 11px; display: block; stroke: currentColor; }
.qmp-tools .tg { display: flex; gap: 5px; }
.qmp-tools .tg span { width: 25px; height: 25px; border-radius: var(--r-pill); background: var(--qmp-surface); border: 1px solid var(--qmp-outline); display: grid; place-items: center; color: var(--qmp-on-surface-muted); }
.qmp-tools .tg span.on { background: var(--qmp-p-95); border-color: var(--qmp-primary); color: var(--qmp-primary-text-hover); }
.qmp-tools .tg svg { width: 12px; height: 12px; display: block; stroke: currentColor; }
/* phone A: hero (.pkt-hero) */
.qmp-hero { position: relative; overflow: hidden; margin-top: 9px; padding: 12px 12px 11px; background: var(--hero-bg); border: 1px solid var(--hero-border); color: var(--hero-on); border-radius: 13px; box-shadow: var(--hero-shadow); }
.qmp-hero::before { content: ''; position: absolute; inset: 0; background-image: var(--hero-art), var(--hero-rings); background-repeat: no-repeat; background-position: right -28px top -24px, left -38px bottom -46px; background-size: 150px 130px, 124px 124px; pointer-events: none; }
.qmp-hero > * { position: relative; }
.qmp-hero .lbl { font-size: 7px; font-weight: 700; letter-spacing: .08em; color: var(--hero-on-muted); }
.qmp-hero .big { font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin-top: 5px; font-variant-numeric: tabular-nums; }
.qmp-hero .delta { display: inline-flex; align-items: center; gap: 3px; margin-top: 8px; padding: 4px 8px; background: var(--hero-neg-bg); color: var(--hero-neg); border-radius: var(--r-pill); font-size: 8px; font-weight: 700; }
.qmp-hero .delta svg { width: 9px; height: 9px; display: block; stroke: currentColor; }
.qmp-hero .se { display: flex; gap: 10px; margin-top: 14px; padding-top: 9px; border-top: 1px solid var(--hero-line); }
.qmp-hero .se > div { flex: 1 1 0; min-width: 0; }
.qmp-hero .se .l { font-size: 6.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hero-on-muted); display: flex; align-items: center; min-height: 10px; }
.qmp-hero .se .l svg { width: 9px; height: 9px; display: block; stroke: currentColor; }
.qmp-hero .se .v { font-size: 11.5px; font-weight: 700; margin-top: 3px; font-variant-numeric: tabular-nums; }
.qmp-hero .se .v.neg { color: var(--hero-neg); }
/* phone A: KPI cards (.kpi-mini) */
.qmp-kpi { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 11px 13px; background: var(--qmp-surface); border: 1px solid var(--qmp-outline-variant); border-radius: 9px; box-shadow: var(--el-card); }
.qmp-kpi .ico { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; }
.qmp-kpi .ico svg { width: 13px; height: 13px; display: block; stroke: currentColor; }
.qmp-kpi.income .ico { background: var(--qmp-t-90); color: var(--qmp-t-30); }
.qmp-kpi.expense .ico { background: var(--qmp-e-90); color: var(--qmp-e-40); }
.qmp-kpi.tx .ico { background: var(--qmp-p-95); color: var(--qmp-primary-text); }
.qmp-kpi .info { flex: 1; min-width: 0; }
.qmp-kpi .l { font-size: 7px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--qmp-on-surface-subtle); }
.qmp-kpi .v { font-size: 14px; font-weight: 700; margin-top: 1px; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.qmp-kpi .meta { font-size: 8px; color: var(--qmp-on-surface-muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* phone B: chart cards (.chart-card) */
.qmp-card { margin-top: 15px; padding: 10px 10px 13px; background: var(--qmp-surface); border: 1px solid var(--qmp-outline-variant); border-radius: 11px; box-shadow: var(--el-card); }
.qmp-body > .qmp-card:first-child { margin-top: 0; }
.qmp-card .ch-title { font-size: 10px; font-weight: 700; letter-spacing: -.01em; }
.qmp-card .ch-sub { font-size: 8px; color: var(--qmp-on-surface-muted); margin-top: 2px; }
.qmp-seg { display: inline-flex; gap: 2px; margin-top: 8px; padding: 2px; background: var(--qmp-surface-1); border-radius: var(--r-pill); }
.qmp-seg span { padding: 4px 9px; border-radius: var(--r-pill); font-size: 7.5px; font-weight: 700; color: var(--qmp-on-surface-muted); }
.qmp-seg span.on { background: var(--qmp-surface); color: var(--qmp-primary-text-hover); box-shadow: var(--qmp-el-1); }
.qmp-legend { display: flex; gap: 9px; margin-top: 10px; font-size: 7.5px; color: var(--qmp-on-surface-muted); }
.qmp-legend span { display: inline-flex; align-items: center; gap: 4px; }
.qmp-legend i { width: 7px; height: 7px; border-radius: var(--r-pill); }
.qmp-legend .in { background: var(--chart-income); }
.qmp-legend .out { background: var(--chart-expense); }
.qmp-svg { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; }
.qmp-svg .ax { font-size: 7.5px; fill: var(--chart-axis); font-family: var(--font); }
.qmp-svg .grid { stroke: var(--chart-grid); stroke-width: .5; stroke-dasharray: 1 2.2; opacity: .8; }
.qmp-svg .ln { fill: none; stroke: var(--chart-1); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.qmp-svg .ln.neg { stroke: var(--chart-neg); }
.qmp-svg .dot { fill: var(--chart-1); }
.qmp-svg .bar-in { fill: var(--chart-income); }
.qmp-svg .bar-out { fill: var(--chart-expense); }
.qmp-donut { position: relative; width: 150px; height: 150px; margin: 16px auto 0; }
.qmp-donut svg { display: block; width: 100%; height: 100%; }
.qmp-donut circle { fill: none; stroke-width: 20; }
.qmp-donut .dc { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.qmp-donut .dc .l { font-size: 7px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--qmp-on-surface-muted); }
.qmp-donut .dc .v { font-size: 16px; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; font-variant-numeric: tabular-nums; }
/* bottom navigation = the app's floating pill bar (core .pkt-bnav, design AwNav) at mock scale
   (280px screen vs the 390px design, x0.72): icon-only items, active = filled block, gold "+".
   Floats over the body like the real bar; colours are the theme --bnav-* tokens. */
.qmp-navbar { position: absolute; left: 17px; right: 17px; bottom: 6px; z-index: 4; height: 42px; display: flex; align-items: center; justify-content: space-around; padding: 0 6px; box-sizing: border-box; border-radius: var(--r-pill); background: var(--bnav-bg); border: 1px solid var(--bnav-border); box-shadow: var(--bnav-shadow); }
.qmp-navbar .it, .qmp-navbar .add { flex: 0 0 auto; display: grid; place-items: center; border-radius: var(--r-pill); }
.qmp-navbar .it { width: 29px; height: 29px; color: var(--bnav-on); }
.qmp-navbar svg { display: block; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.qmp-navbar .it svg { width: 13px; height: 13px; stroke-width: 1.9; }
.qmp-navbar .it.on { background: var(--bnav-active-bg); color: var(--bnav-active-on); }
.qmp-navbar .it.on svg { stroke-width: 2.1; }
.qmp-navbar .add { width: 33px; height: 33px; background: var(--bnav-fab-bg); color: var(--bnav-fab-on); box-shadow: var(--bnav-fab-shadow); }
.qmp-navbar .add svg { width: 14px; height: 14px; stroke-width: 2.4; }

/* ---------- stats ---------- */
.qmd-stats { display: grid; grid-template-columns: repeat(4, 1fr); padding: 16px 64px 0; position: relative; z-index: 2; }
.qmd-stat { padding: 36px 36px; border-left: 1px solid var(--outline-variant); }
.qmd-stat:first-child { border-left: 0; padding-left: 0; }
.qmd-stat .v { font-size: 48px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.qmd-stat .v .au { color: var(--p-70); }
.qmd-stat .l { margin-top: 12px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--on-surface-muted); }

/* ---------- section frame ---------- */
.qmd-sec { padding: 56px 64px 80px; position: relative; z-index: 2; }
.qmd-sec-head { display: flex; align-items: baseline; gap: 20px; }
.qmd-sec-num { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--primary-text); font-variant-numeric: tabular-nums; }
.qmd-sec-label { font-size: 13px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--on-surface-muted); }
.qmd-sec-head .rule { flex: 1; height: 1px; background: var(--outline-variant); align-self: center; }
.qmd-h2 { font-size: 52px; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-top: 28px; text-wrap: balance; }
.qmd-h2 .acc { color: var(--primary-text); }
.qmd-sec-sub { font-size: 16.5px; line-height: 1.6; color: var(--on-surface-muted); max-width: 520px; }

/* ---------- features ---------- */
.qmd-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; }
.qmd-feat .idx {
  width: 44px; height: 44px; border-radius: var(--r-card-sm); display: grid; place-items: center;
  background: var(--p-90); color: var(--on-primary-container); font-size: 14px; font-weight: 800;
  margin-bottom: 18px;
}
.qmd-feat h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.qmd-feat p { font-size: 14.5px; line-height: 1.6; color: var(--on-surface-muted); margin-top: 10px; }
.qmd-feat .vis { margin-top: 22px; }

/* ---------- capabilities lista ---------- */
.qmd-caps { margin-top: 52px; border-top: 1px solid var(--outline-variant); }
.qmd-cap-row {
  /* arrow column + row border removed — the rows are not links (user request) */
  display: grid; grid-template-columns: 64px 360px 1fr; gap: 28px; align-items: center;
  padding: 24px 12px; border-radius: 0;
  transition: background .2s, border-radius .2s, padding-left .25s var(--ease-emph);
}
.qmd-cap-row:hover { background: var(--surface-1); border-radius: var(--r-tile-lg); padding-left: 24px; }
.qmd-cap-row .n {
  width: 44px; height: 44px; border-radius: var(--r-pill); display: grid; place-items: center;
  font-size: 14px; font-weight: 800; color: var(--s-40);
  box-shadow: inset 0 0 0 1px var(--outline); font-variant-numeric: tabular-nums;
  transition: background .2s, color .2s, box-shadow .2s;
}
.qmd-cap-row:hover .n { background: var(--filled-bg); color: var(--p-80); box-shadow: none; }
.qmd-cap-row h4 { font-size: 20px; font-weight: 800; letter-spacing: -.015em; }
.qmd-cap-row p { font-size: 14px; line-height: 1.5; color: var(--on-surface-muted); }

/* ---------- bento (sadržaj iz B) ---------- */
.qmd-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; margin-top: 52px; }
.qmd-bento > * { min-width: 0; }
.qmd-b-tx { grid-column: span 3; }
.qmd-b-donut { grid-column: span 2; }
.qmd-b-ring { grid-column: span 1; }
.qmd-b-sim { grid-column: span 2; }
.qmd-b-quote { grid-column: span 4; }
.qmd-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; color: var(--on-surface-muted); display: flex; align-items: center; gap: 10px; }
.qmd-eyebrow .live { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-text); }
.qmd-eyebrow .live::before { content: ''; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--p-70); }

/* ---------- koraci (layout sa starog landinga) ---------- */
.qmd-rail { position: relative; margin-top: 8px; }
.qmd-rail::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(180deg, transparent, var(--p-90) 10%, var(--p-70) 50%, var(--p-90) 90%, transparent);
  transform: translateX(-1px);
}
.qmd-step-row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 60px 0; position: relative; }
.qmd-step-row.reverse > :first-child { order: 2; }
.qmd-step-row::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 14px; height: 14px; border-radius: var(--r-pill); transform: translate(-50%, -50%);
  background: var(--p-70); box-shadow: 0 0 0 6px var(--p-90);
}
.qmd-step-num {
  font: 800 26px/1 var(--font); letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--primary-text); margin-bottom: 10px;
}
.qmd-step-num::before { content: ''; width: 36px; height: 2px; background: currentColor; display: inline-block; }
.qmd-step-num .big {
  font: 800 92px/1 var(--font); letter-spacing: -.04em;
  background: linear-gradient(135deg, var(--on-surface), var(--primary-text));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-left: 8px;
}
.qmd-step-row h3 { font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.qmd-step-row .d { font-size: 16px; line-height: 1.65; color: var(--on-surface-muted); margin-top: 14px; max-width: 460px; }
.qmd-step-mock {
  background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--r-xl); padding: 28px;
  box-shadow: var(--el-2); position: relative;
}

/* ---------- pricing ---------- */
/* toggle po uzoru na varijantu B (02b): bijeli pill, aktivno = crno */
.qmd-seg {
  display: inline-flex; background: var(--surface); border: 1px solid var(--outline-variant);
  border-radius: var(--r-pill); padding: 4px; box-shadow: var(--el-1);
}
.qmd-seg button {
  height: 40px; padding: 0 22px; border-radius: var(--r-pill);
  font: 700 13.5px/1 var(--font); color: var(--on-surface-muted);
  display: inline-flex; align-items: center; gap: 8px; transition: background .2s, color .2s;
}
.qmd-seg button.on { background: var(--filled-bg); color: var(--on-filled); }
.qmd-seg .save { font-size: 11px; font-weight: 800; color: var(--primary-text); }
.qmd-seg button.on .save { color: var(--p-80); }
.qmd-price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 52px; align-items: stretch; }
.qmd-price { display: flex; flex-direction: column; padding: 36px 32px; }
.qmd-price.popular { position: relative; margin: -18px 0; padding-top: 52px; padding-bottom: 52px; box-shadow: var(--ld-popular-shadow); }
.qmd-price .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 10px; font-weight: 800; letter-spacing: .16em; white-space: nowrap;
  background: var(--p-80); color: var(--on-surface); padding: 7px 14px; border-radius: var(--r-pill);
  box-shadow: var(--el-1);
}
.qmd-price .pn { font-size: 12.5px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--primary-text); }
.qmd-price.popular .pn { color: var(--p-80); }
.qmd-price .amount { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; }
.qmd-price .amount .v { font-size: 50px; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.qmd-price .amount .per { font-size: 14px; color: var(--on-surface-muted); }
.qmd-price.popular .amount .per { color: rgba(255,255,255,.6); }
.qmd-price .pd { font-size: 14px; line-height: 1.5; color: var(--on-surface-muted); margin-top: 10px; }
.qmd-price.popular .pd { color: rgba(255,255,255,.7); }
.qmd-price ul { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 12px; }
.qmd-price li { display: flex; gap: 12px; font-size: 14px; line-height: 1.45; align-items: flex-start; }
.qmd-price li .ck { color: var(--primary-text); flex: 0 0 auto; margin-top: 2px; }
.qmd-price.popular li .ck { color: var(--p-80); }
.qmd-price .cta { margin-top: auto; }

/* ---------- news (s coverima iz B) ---------- */
.qmd-news { margin-top: 52px; display: grid; gap: 18px; }
.qmd-news-row {
  display: grid; grid-template-columns: 240px 1fr 48px; gap: 32px; align-items: center;
  padding: 20px; border-radius: var(--r-dialog);
}
.qmd-news-row .cover {
  height: 150px; border-radius: var(--r-field-lg); display: grid; place-items: center; overflow: hidden;
  border: 1px solid var(--outline-variant);
}
.qmd-news-row .cover.c1 { background: var(--ld-cover-1); }
.qmd-news-row .cover.c2 { background: var(--ld-cover-2); }
.qmd-news-row .cover.c3 { background: var(--ld-cover-3); }
.qmd-news-row .meta { display: flex; gap: 14px; align-items: center; font-size: 12px; color: var(--on-surface-muted); }
.qmd-news-row .meta .cat { font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--primary-text); }
.qmd-news-row h3 { font-size: 25px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; margin-top: 10px; text-wrap: balance; }
.qmd-news-row .ex { font-size: 14.5px; line-height: 1.55; color: var(--on-surface-muted); margin-top: 10px; max-width: 640px; }
.qmd-news-row .arr {
  width: 44px; height: 44px; border-radius: var(--r-pill); display: grid; place-items: center;
  color: var(--s-40); box-shadow: inset 0 0 0 1px var(--outline);
  transition: background .2s, color .2s, transform .25s var(--ease-emph), box-shadow .2s;
}
.qmd-news-row:hover .arr { background: var(--filled-bg); color: var(--p-80); box-shadow: none; transform: translateX(4px); }

/* ---------- CTA banner ---------- */
.qmd-banner {
  margin: 88px 64px 0; border-radius: var(--r-hero); position: relative; overflow: hidden;
  background: var(--ld-banner);
  color: var(--white); padding: 72px 64px; text-align: center; z-index: 2;
}
.qmd-banner h2 { font-size: 46px; font-weight: 800; letter-spacing: -.03em; position: relative; text-wrap: balance; }
.qmd-banner p { font-size: 16.5px; color: rgba(255,255,255,.7); margin: 14px auto 0; max-width: 480px; position: relative; }

/* ---------- footer ---------- */
.qmd-footer { border-top: 1px solid var(--outline-variant); background: transparent; position: relative; z-index: 2; margin-top: 88px; }
.qmd-foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 48px; padding: 60px 64px 44px; }
.qmd-foot-col .t { font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--on-surface-muted); margin-bottom: 18px; }
.qmd-foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.qmd-foot-col a { font-size: 14.5px; color: var(--s-40); transition: color .15s; }
.qmd-foot-col a:hover { color: var(--primary-text); }
.qmd-ct-row { display: flex; gap: 12px; align-items: flex-start; padding: 7px 0; }
.qmd-ct-row .ico { width: 34px; height: 34px; border-radius: var(--r-pill); background: var(--p-90); color: var(--on-primary-container); display: grid; place-items: center; flex: 0 0 auto; }
.qmd-ct-row .lbl { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--on-surface-muted); }
.qmd-ct-row .val { font-size: 14px; font-weight: 600; color: var(--s-40); margin-top: 2px; }
.qmd-foot-bottom { display: flex; justify-content: space-between; padding: 22px 64px 28px; border-top: 1px solid var(--outline-variant); font-size: 13px; color: var(--on-surface-muted); }

/* ============================================================
   RESPONZIVNO (container queries) — pragovi:
   1100 → uski desktop / tablet landscape
   860  → tablet portrait
   600  → veliki telefoni
   480  → telefoni
   ============================================================ */
@container qmd (max-width: 1100px) {
  .qmd-nav { padding: 0 40px; }
  .qmd-stats { grid-template-columns: repeat(2, 1fr); padding: 8px 40px 0; }
  .qmd-stat { padding: 30px 24px; }
  .qmd-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .qmd-sec { padding: 44px 40px 64px; }
  .qmd-h2 { font-size: 42px; }
  .qmd-banner { margin: 64px 40px 0; }
  .qmd-foot-grid { padding: 48px 40px 36px; gap: 36px; }
  .qmd-foot-bottom { padding: 20px 40px 26px; }
}
@container qmd (max-width: 860px) {
  .qmd-nav { height: 76px; }
  .qmd-nav-links { display: none; }
  .qmd-nav-right .qmd-btn.text { display: none; }
  /* the "get started" CTA moves into the mobile menu (user request) */
  .qmd-nav-right .qmd-btn.filled { display: none; }
  /* sub-pages have no burger/menu (no section links) — keep the CTA in the nav */
  .qmd-nav-sub .qmd-nav-right .qmd-btn.filled { display: inline-flex; height: 42px; padding: 0 20px; font-size: 13.5px; }
  .qmd-burger { display: inline-grid; }
  .qmd-stat .v { font-size: 42px; }
  .qmd-h2 { font-size: 34px; }
  .qmd-sec-sub { font-size: 15px; }
  .qmd-feat-grid { grid-template-columns: 1fr; }
  /* capabilities lista — opis pada ispod naslova (arrow column removed) */
  .qmd-cap-row { grid-template-columns: 48px 1fr; gap: 8px 18px; }
  .qmd-cap-row .n { grid-row: 1; }
  .qmd-cap-row h4 { grid-row: 1; grid-column: 2; }
  .qmd-cap-row p { grid-column: 2; grid-row: 2; }
  /* bento na 2 stupca */
  .qmd-bento { grid-template-columns: 1fr 1fr; }
  .qmd-b-tx { grid-column: span 2; }
  .qmd-b-donut { grid-column: span 1; }
  .qmd-b-ring { grid-column: span 1; }
  .qmd-b-sim { grid-column: span 1; }
  .qmd-b-quote { grid-column: span 2; }
  /* koraci — bez raila, jedan stupac */
  .qmd-rail::before { display: none; }
  .qmd-step-row::before { display: none; }
  .qmd-step-row { grid-template-columns: 1fr; gap: 24px; padding: 36px 0; }
  .qmd-step-row.reverse > :first-child { order: 0; }
  .qmd-step-num { font-size: 22px; }
  .qmd-step-num .big { font-size: 60px; }
  .qmd-step-row h3 { font-size: 25px; }
  /* pricing u stupac */
  .qmd-price-grid { grid-template-columns: 1fr; gap: 24px; }
  .qmd-price.popular { margin: 0; padding-top: 44px; padding-bottom: 44px; }
  /* news — cover preko cijele širine */
  .qmd-news-row { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
  .qmd-news-row .cover { height: 170px; }
  .qmd-news-row .arr { display: none; }
  .qmd-banner { padding: 52px 36px; }
  .qmd-banner h2 { font-size: 34px; }
  .qmd-foot-grid { grid-template-columns: 1fr 1fr; }
  .qmd-foot-grid > div:first-child { grid-column: span 2; }
}
@container qmd (max-width: 600px) {
  .qmd-nav { padding: 0 20px; gap: 12px; }
  .qmd-btn.lg { height: 52px; padding: 0 26px; font-size: 15px; }
  .qmd-stats { padding: 0 20px; }
  .qmd-stat { padding: 22px 14px; }
  .qmd-stat .v { font-size: 34px; }
  .qmd-stat .l { font-size: 10.5px; letter-spacing: .08em; }
  .qmd-sec { padding: 36px 20px 48px; }
  .qmd-h2 { font-size: 28px; }
  .qmd-sec-label { letter-spacing: .12em; }
  .qmd-card { padding: 22px; border-radius: var(--r-tile-lg); }
  .qmd-cap-row h4 { font-size: 17px; }
  .qmd-cap-row p { font-size: 13px; }
  /* bento u jedan stupac */
  .qmd-bento { grid-template-columns: 1fr; }
  .qmd-b-tx, .qmd-b-donut, .qmd-b-ring, .qmd-b-sim, .qmd-b-quote { grid-column: span 1; }
  .qmd-tx-flex { flex-direction: column; }
  .qmd-card.goldc { flex-wrap: wrap; }
  .qmd-step-mock { padding: 20px; border-radius: var(--r-card-md); }
  .qmd-seg button { padding: 0 16px; font-size: 12.5px; }
  .qmd-banner { margin: 40px 20px 0; padding: 40px 24px; border-radius: var(--r-dialog-lg); }
  .qmd-banner h2 { font-size: 27px; }
  .qmd-banner p { font-size: 14.5px; }
  .qmd-foot-grid { grid-template-columns: 1fr; gap: 28px; padding: 40px 20px 28px; }
  .qmd-foot-grid > div:first-child { grid-column: span 1; }
  .qmd-foot-bottom { padding: 18px 20px 24px; flex-wrap: wrap; gap: 8px; }
}
@container qmd (max-width: 480px) {
  .qmd-h2 { font-size: 25px; }
  .qmd-stat .v { font-size: 30px; }
  .qmd-price .amount .v { font-size: 42px; }
}

/* ============================================================
   APP ADDITIONS — not part of the design prototype CSS.
   Brand lockup (prototype used an <img>; we inline SVG + text),
   reveal animation, JSF link-button safety, language dropdown
   plumbing, mobile menu, scroll-top and the shared cookie bar.
   ============================================================ */

/* --- standalone page reset + ultra-wide centring --- */
/* The design artboard is 1440px; on very wide screens (34"+ monitors) the
   sections stretched edge-to-edge. The page itself stays full-bleed
   (nav/footer/backgrounds span the viewport); only the CONTENT column is
   capped and centred, like the old app's wrapped layout. */
html, body { margin: 0; padding: 0; }
body.pkt-root { background: var(--bg); }
.qmd main { max-width: 1600px; margin: 0 auto; }

/* --- brand lockup (nav + footer) --- */
.qmd-brand { display: inline-flex; align-items: center; gap: 10px; }
.qmd-brand svg { display: block; flex: 0 0 auto; }
.qmd-brand-text { font: 800 25px/1 var(--font); letter-spacing: -.03em; color: var(--on-surface); }
.qmd-brand-text b { color: var(--p-50); font-weight: 800; }

/* --- one-shot reveal (FadeIn) — gated behind .qmd-anim so no-JS = visible --- */
.qmd-anim .qmd-reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease-std), transform .6s var(--ease-emph); }
.qmd-anim .qmd-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .qmd-anim .qmd-reveal { opacity: 1; transform: none; transition: none; }
}

/* --- h:link / p:commandLink rendered as <a>: beat .pkt-root a + PF hover underline --- */
.qmd a, .qmd a:hover, .qmd a:focus { text-decoration: none; }
.qmd a.qmd-btn.filled, .qmd a.qmd-btn.filled:hover, .qmd a.qmd-btn.filled:focus { color: var(--on-filled); }
.qmd a.qmd-btn.gold, .qmd a.qmd-btn.gold:hover, .qmd a.qmd-btn.gold:focus { color: var(--on-primary); }
.qmd a.qmd-btn.outlined, .qmd a.qmd-btn.outlined:hover, .qmd a.qmd-btn.outlined:focus { color: var(--on-surface); }
.qmd a.qmd-btn.text, .qmd a.qmd-btn.text:hover, .qmd a.qmd-btn.text:focus { color: var(--s-40); }

/* --- language selector: EXACT copy of the old .ptr-lang component (as on
       terms-conditions), value-for-value from landing-md3.css — only the class
       names map to .qmd-lang/.qmd-menu. The brand tokens give it the new
       palette; nothing reinvented. NOTE: button rules need the `.qmd button.x`
       (0,2,1) prefix — the design's reset `.qmd button{border:0;background:none}`
       is (0,1,1) and beats a bare class. --- */
.qmd-lang form { display: contents; }
.qmd button.qmd-lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: auto; padding: 8px 12px; border-radius: var(--r-pill);
  border: 1px solid var(--outline);
  background: var(--surface); color: var(--on-surface);
  font: var(--label-l); font-size: 12px; letter-spacing: .04em;
  box-shadow: none;
}
.qmd button.qmd-lang-btn:hover { border-color:var(--primary); background: var(--surface); }
.qmd-lang-btn .car { transition: transform .2s var(--ease-emph); opacity: .7; }
.qmd-lang.open .qmd-lang-btn .car { transform: rotate(180deg); }
.qmd-lang .qmd-menu {
  position: absolute; right: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--outline-variant);
  border-radius: var(--r-menu); padding: 4px; min-width: 160px;
  box-shadow: var(--el-3); z-index: 60;
  display: none; animation: none;
}
.qmd-lang.open .qmd-menu { display: block; }
.qmd-lang .qmd-menu .flag-img { width: 18px; height: auto; border-radius: var(--r-hairline); flex: 0 0 auto; }
.qmd-lang-btn .flag-img { width: 20px; height: auto; border-radius: var(--r-hairline); }
.qmd-lang .qmd-menu a { text-transform: capitalize; }
.qmd-lang .qmd-menu a {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 8px 10px; border: 0; background: transparent;
  border-radius: var(--r-sm); color: var(--on-surface); font: var(--body-m);
  text-align: left;
}
.qmd-lang .qmd-menu a:hover { background: var(--surface-1); }
.qmd-lang .qmd-menu a.on { background: var(--p-95); color:var(--primary-text-hover); font-weight: 600; }

/* --- mobile nav menu (design shows the burger only; menu derived from the MD3 menu card) --- */
.qmd-mobile-menu { display: none; }
@container qmd (max-width: 860px) {
  .qmd-mobile-menu.open {
    display: flex; flex-direction: column; position: absolute; top: 80px; left: 16px; right: 16px;
    background: var(--surface); border: 1px solid var(--outline-variant); border-radius: var(--r-tile-lg);
    box-shadow: var(--el-3); padding: 10px; z-index: 50;
  }
  .qmd-mobile-menu a { padding: 13px 16px; border-radius: var(--r-menu-item); font: 600 15px/1 var(--font); color: var(--on-surface); }
  .qmd-mobile-menu a:hover { background: var(--surface-2); }
  /* "get started" CTA inside the mobile menu (moved out of the nav) */
  .qmd-mobile-menu a.qmd-mm-cta,
  .qmd-mobile-menu a.qmd-mm-cta:hover,
  .qmd-mobile-menu a.qmd-mm-cta:focus {
    margin: 8px 4px 2px; padding: 0 20px; height: 48px; border-radius: var(--r-pill);
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--filled-bg); color: var(--on-filled); font: 700 14.5px/1 var(--font);
  }
}
/* outside the burger breakpoint the menu (and its CTA) is hidden anyway */

/* --- scroll-to-top (lives OUTSIDE .qmd: container-type would trap position:fixed) --- */
.qmd-scroll-top {
  position: fixed; right: 22px; bottom: 22px; width: 48px; height: 48px; border-radius: var(--r-pill);
  background: var(--filled-bg); color: var(--on-filled); border: 0; display: grid; place-items: center;
  cursor: pointer; box-shadow: var(--el-2); opacity: 0; pointer-events: none;
  transform: translateY(8px); transition: opacity .25s, transform .25s; z-index: 80;
}
.qmd-scroll-top.show { opacity: 1; pointer-events: auto; transform: none; }

/* --- cookie consent bar (shared include pages/elements/cookieConsent.xhtml;
       same class names as landing-md3.css so the include works on every public page;
       also OUTSIDE .qmd for the position:fixed reason above) --- */
.ptr-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: var(--surface);
  border-top: 1px solid var(--outline-variant);
  box-shadow: 0 -10px 30px rgba(29, 27, 22, .08);
}
.ptr-cookie-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; gap: 28px;
  padding: 18px 24px;
}
.ptr-cookie .ttl {
  flex: 0 0 auto;
  font: var(--label-l); letter-spacing: .22em; text-transform: uppercase;
  color: var(--on-surface);
}
.ptr-cookie .txt {
  flex: 1; min-width: 0;
  font: var(--body-s); line-height: 1.6; color: var(--on-surface-muted);
  border-left: 1px solid var(--outline-variant); padding-left: 28px;
}
.ptr-cookie .txt a { color:var(--primary-text); font-weight: 700; text-decoration: underline; margin-left: 6px; }
.ptr-cookie .txt a:hover { color:var(--primary-text-hover); }
.ptr-cookie .act { flex: 0 0 auto; }
@media (max-width: 700px) {
  .ptr-cookie-inner { flex-direction: column; align-items: stretch; gap: 10px; padding: 16px; }
  .ptr-cookie .ttl { letter-spacing: .16em; }
  .ptr-cookie .txt { border-left: 0; padding-left: 0; }
  .ptr-cookie .act a.btn { display: inline-flex; width: 100%; justify-content: center; }
}

/* ============================================================
   LANDING v4 HERO — "Jedna aplikacija. Svaki uređaj." (design_handoff_landing_v4)
   Ported value-for-value from landing-v4-hero.css (.lv-* / .lvb-*). The design's
   --lv-* tokens are aliased to the page palette so the hero and the rest of the page
   read as one; the font is the brand Exo 2 (the handoff's Google-hosted Plus Jakarta
   Sans is deliberately not loaded: GDPR + one more font on first paint).
   Breakpoints 700 / 900 follow the artboard, as container queries like the rest of .qmd.
   ============================================================ */
.qmd {
  --lv-bg: var(--bg); --lv-surf: var(--surface); --lv-ink: var(--on-surface); --lv-sub: var(--on-surface-muted);
  --lv-line: var(--outline-variant); --lv-gold: var(--p-70); --lv-gold-deep: var(--p-60); --lv-gold-ink: var(--on-primary-container);
  --lv-gold-pale: var(--p-90); --lv-blk: var(--filled-bg); --lv-blk-ink: var(--on-filled); --lv-blk-sub: var(--on-inverse-muted);
  --lv-ease: cubic-bezier(.2, .7, .2, 1);
}
/* entrance: rise + fade, staggered by --dl (the hero is above the fold, so no observer) */
.lv-in { animation: lvRise .95s var(--lv-ease) both; animation-delay: var(--dl, 0s); }
@keyframes lvRise { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

/* ---------- hero stack ---------- */
.lvb-hero { position: relative; z-index: 2; max-width: 1360px; margin: 0 auto; padding: 30px 20px 0; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px; overflow: visible; }
.lvb-h1 { margin: 0; font: 800 clamp(44px, 12.2vw, 72px)/.96 var(--font); letter-spacing: -.045em; text-wrap: balance; color: var(--lv-ink); isolation: isolate; }
.lvb-h1 .hl { position: relative; display: inline-block; white-space: nowrap; }
.lvb-h1 .hl::after { content: ''; position: absolute; left: -.04em; right: -.04em; bottom: .04em; height: .22em; background: var(--lv-gold); z-index: -1; border-radius: .08em; transform: skewX(-6deg); }
.lv-lede { margin: 0; font: 500 17px/1.5 var(--font); color: var(--lv-sub); max-width: 40ch; text-wrap: pretty; text-align: center; }
.lvb-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ---------- buttons (design .lv-btn): stadium, ink / ghost; hover lifts 2px + deeper shadow ---------- */
.lv-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 52px; padding: 0 22px; border-radius: var(--r-pill); font: 700 15px/1 var(--font); white-space: nowrap; transition: transform .25s var(--lv-ease), background .25s, box-shadow .25s, border-color .25s; cursor: pointer; border: 1.5px solid transparent; box-sizing: border-box; }
.lv-btn svg { flex: 0 0 auto; }
.lv-btn.blk, .qmd a.lv-btn.blk, .qmd a.lv-btn.blk:hover, .qmd a.lv-btn.blk:focus { background: var(--lv-blk); border-color: var(--lv-blk); color: var(--lv-blk-ink); box-shadow: 0 12px 28px rgba(24, 21, 16, .18); }
.lv-btn.blk:hover, .qmd a.lv-btn.blk:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(24, 21, 16, .24); }
.lv-btn.ghost, .qmd a.lv-btn.ghost, .qmd a.lv-btn.ghost:hover, .qmd a.lv-btn.ghost:focus { background: transparent; border-color: rgba(24, 21, 16, .18); color: var(--lv-ink); }
.lv-btn.ghost:hover, .qmd a.lv-btn.ghost:hover { background: var(--lv-surf); border-color: var(--lv-ink); }

/* ---------- stage: no backdrop; laptop on the horizon, phones in front, icon + coins floating ---------- */
.lvb-stage { position: relative; width: 100%; margin-top: 36px; padding: 14% 4% 0; isolation: isolate; }
.lvb-lap { position: relative; z-index: 2; width: 100%; }
.lvb-ph { position: absolute; right: -3%; bottom: -7%; width: 33%; z-index: 4; transform: rotate(3deg); }
.lvb-ph2 { position: absolute; right: 20%; bottom: -2%; width: 29%; z-index: 3; transform: rotate(-5deg); }
.lvb-coin { position: absolute; z-index: 5; pointer-events: none; filter: drop-shadow(0 12px 22px rgba(29, 27, 22, .25)); }
.lvb-coin.c1 { left: -3%; top: 4%; width: 44px; transform: rotate(-8deg); }
.lvb-coin.c2 { right: -2%; top: -6%; width: 30px; transform: rotate(12deg); }
.lvb-coin.c3 { left: -4%; bottom: -4%; width: 52px; transform: rotate(-14deg); }
.lvb-icon { position: absolute; z-index: 5; left: 4%; top: -12%; width: 72px; pointer-events: none; filter: drop-shadow(0 16px 32px rgba(29, 27, 22, .28)); transform: rotate(10deg); }
@media (prefers-reduced-motion: no-preference) {
  .lvb-coin.c1 { animation: lvbCoin1 8s ease-in-out infinite; }
  .lvb-coin.c2 { animation: lvbCoin2 9.5s ease-in-out infinite; animation-delay: -3s; }
  .lvb-coin.c3 { animation: lvbCoin3 11s ease-in-out infinite; animation-delay: -6s; }
  .lvb-icon { animation: lvbIcon 7s ease-in-out infinite; }
}
@media (prefers-reduced-motion: reduce) { .lv-in { animation: none; } }
@keyframes lvbCoin1 { 0%, 100% { transform: rotate(-8deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-12px); } }
@keyframes lvbCoin2 { 0%, 100% { transform: rotate(12deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-9px); } }
@keyframes lvbCoin3 { 0%, 100% { transform: rotate(-14deg) translateY(0); } 50% { transform: rotate(-4deg) translateY(-15px); } }
@keyframes lvbIcon { 0%, 100% { transform: rotate(10deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-13px); } }

/* ---------- device frames (design LvPhone / LvLaptop, geometry in container units) ----------
   Each frame is an inline-size container; bezel, radii and the screen box are fractions of its
   width (cqw). The screen holds a fixed-size canvas (280x607 phone, 1440x900 laptop) that
   landing-qmd.js scales to the screen width via --s (a ResizeObserver keeps it in step). */
.lv-phone { position: relative; width: 100%; container-type: inline-size; }
.lv-phone.ios { aspect-ratio: 1000 / 2093; }
.lv-phone.android { aspect-ratio: 1000 / 2102; }
.lv-phone .bez { position: absolute; inset: 0; background: linear-gradient(160deg, #3B3E43, #15161A 60%, #2A2C31); box-shadow: 0 40px 80px -20px rgba(24, 21, 16, .45), 0 18px 36px -12px rgba(24, 21, 16, .3), inset 0 0 0 1.5px rgba(255, 255, 255, .14); }
.lv-phone.ios .bez { border-radius: 15cqw; }
.lv-phone.android .bez { border-radius: 10cqw; }
.lv-phone .scr { position: absolute; overflow: hidden; background: var(--qmp-bg); }
.lv-phone.ios .scr { left: 3.2cqw; top: 3.2cqw; width: 93.6cqw; height: calc(93.6cqw * 607 / 280); border-radius: 11.8cqw; }
.lv-phone.android .scr { left: 2.8cqw; top: 2.8cqw; width: 94.4cqw; height: calc(94.4cqw * 607 / 280); border-radius: 7.2cqw; }
.lv-phone .isl { position: absolute; left: 50%; transform: translateX(-50%); background: #08080A; z-index: 3; border-radius: var(--r-pill); }
.lv-phone.ios .isl { top: 5.6cqw; width: 28.3cqw; height: 8.2cqw; }
.lv-phone.android .isl { top: 5.7cqw; width: 4.4cqw; height: 4.4cqw; }
.lv-laptop { position: relative; width: 100%; container-type: inline-size; }
.lv-laptop .lid { position: relative; height: 64.33cqw; border-radius: 2.8cqw 2.8cqw .8cqw .8cqw; background: linear-gradient(180deg, #3A3D43 0%, #1C1E22 3%, #111215 100%); box-shadow: 0 40px 60px rgba(24, 21, 16, .22), inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .28); }
.lv-laptop .lid::before { content: ''; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, 0) 40%); pointer-events: none; z-index: 2; }
.lv-laptop .scr { position: absolute; left: 2.6cqw; top: 3cqw; width: 94.8cqw; height: 59.25cqw; border-radius: 1cqw 1cqw .4cqw .4cqw; overflow: hidden; background: var(--qmp-bg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .5); }
.lv-laptop .cam { position: absolute; left: 50%; top: .96cqw; width: .9cqw; height: .9cqw; transform: translateX(-50%); border-radius: var(--r-pill); background: radial-gradient(circle at 40% 35%, #2A3A52, #0B0C0E 70%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 0 0 2px #0E0F12; }
.lv-laptop .base { position: relative; height: 2.6cqw; margin: 0 -5cqw; border-radius: .4cqw .4cqw 1.6cqw 1.6cqw; background: linear-gradient(180deg, #F1F2F4 0%, #C9CCD2 8%, #A5A9B0 55%, #7C8087 90%, #5E6268 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 2px 0 rgba(0, 0, 0, .25), 0 24px 40px rgba(24, 21, 16, .18); }
.lv-laptop .base::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 22%; background: linear-gradient(90deg, rgba(0, 0, 0, .18), rgba(0, 0, 0, 0) 8%, rgba(0, 0, 0, 0) 92%, rgba(0, 0, 0, .18)); }
.lv-laptop .base::after { content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 17%; height: 42%; border-radius: 0 0 999px 999px; background: linear-gradient(180deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, .14)); }
.lv-laptop .foot { position: relative; height: 0; margin: 0 auto; width: 82%; border-bottom: 3px solid rgba(24, 21, 16, .28); filter: blur(2px); }
.lv-canvas { transform-origin: 0 0; transform: scale(var(--s, 1)); }
.qmp-canvas { width: 280px; height: 607px; }

/* ---------- laptop screen = the desktop "Pregled računa" at 1440x900 ----------
   Values are the app's own (core shell-md3 rail + core-components .dash-top/.pkt-hero +
   app dashboard-md3 cards), colours via the --qmp-* aliases / unpinned theme tokens. */
.qml { width: 1440px; height: 900px; display: flex; background: var(--qmp-bg); font-family: var(--font); color: var(--qmp-on-surface); overflow: hidden; text-align: left; line-height: 1.3; -webkit-font-smoothing: antialiased; }
.qml .cap { text-transform: capitalize; }
.qml .dec { font-size: .52em; opacity: .65; }
.qml svg { display: block; }
/* rail (.dash-side, expanded) */
.qml-side { flex: 0 0 auto; width: 248px; background: var(--nav-bg); border-right: 1px solid var(--nav-border); box-shadow: var(--qmp-el-1); display: flex; flex-direction: column; position: relative; z-index: 2; }
.qml-toggle { position: absolute; top: 30px; right: -12px; width: 24px; height: 24px; border-radius: var(--r-pill); background: var(--qmp-surface); border: 1px solid var(--qmp-outline); display: grid; place-items: center; color: var(--qmp-on-surface-muted); box-shadow: var(--qmp-el-1); z-index: 5; }
.qml-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qml-logo { height: 72px; padding: 24px 24px 8px; display: flex; align-items: center; gap: 10px; }
.qml-logo svg { width: 32px; height: 32px; flex: 0 0 auto; }
.qml-logo .name { font-weight: 800; font-size: 22px; letter-spacing: -.02em; white-space: nowrap; }
.qml-logo .name b { color: var(--nav-logo-accent); font-weight: 800; }
.qml-user { margin: 8px 12px 16px; padding: 10px; display: flex; align-items: center; gap: 12px; border-radius: var(--r-tile-sm); background: var(--qmp-surface); border: 1px solid var(--qmp-outline-variant); box-shadow: var(--el-card); }
.qml-user .av { flex: 0 0 auto; width: 40px; height: 40px; border-radius: var(--r-avatar); background: var(--qmp-filled-bg); display: grid; place-items: center; color: var(--qmp-p-80); font-weight: 700; font-size: 14px; }
.qml-user .t { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.qml-user .pl { font-size: 10px; font-weight: 700; letter-spacing: .1em; color: var(--qmp-primary-text); text-transform: uppercase; }
.qml-user .nm { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qml-user .hd { font-size: 12px; color: var(--qmp-on-surface-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qml-nav { padding: 0 12px; display: flex; flex-direction: column; }
.qml .it { display: flex; align-items: center; gap: 14px; margin: 2px 0; padding: 11px 14px; border-radius: var(--r-nav-item); color: var(--nav-on); border: 1px solid transparent; font-size: 14px; position: relative; white-space: nowrap; }
.qml .it svg { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qml .it.on { background: var(--nav-active-bg); color: var(--nav-active-on); font-weight: 600; border-color: var(--nav-active-border); box-shadow: var(--el-card); }
.qml .it.on::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; background: var(--nav-indicator); border-radius: 0 var(--r-bar) var(--r-bar) 0; }
.qml-foot { margin-top: auto; padding: 16px 12px; border-top: 1px solid var(--qmp-outline-variant); }
/* content column (.dash-top + .dash-grid) */
.qml-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qml-top { padding: 32px 40px 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.qml-top .crumb { font-size: 10.5px; font-weight: 800; color: var(--qmp-primary-text); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 8px; }
.qml-top .h1 { font-size: 32px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.qml-top .sub { font-size: 14px; color: var(--qmp-on-surface-muted); margin-top: 6px; }
.qml-top .tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.qml-top .tb { width: 40px; height: 40px; border-radius: var(--r-icon-btn, var(--r-pill)); background: var(--qmp-surface); border: 1px solid var(--qmp-outline); display: grid; place-items: center; color: var(--qmp-on-surface-muted); }
.qml-top .tb.on { background: var(--qmp-p-95); border-color: var(--qmp-primary); color: var(--qmp-primary-text-hover); }
.qml-top .tb svg { width: 18px; height: 18px; stroke: currentColor; }
.qml-top .mp { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: var(--qmp-surface); border: 1px solid var(--qmp-outline); border-radius: var(--r-btn); font-size: 14px; font-weight: 600; min-width: 170px; white-space: nowrap; }
.qml-top .mp .cal { width: 18px; height: 18px; color: var(--qmp-primary-text); stroke: currentColor; }
.qml-top .mp .chev { width: 14px; height: 14px; color: var(--qmp-on-surface-muted); stroke: currentColor; margin-left: auto; }
.qml-grid { padding: 24px 40px 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
/* hero (.pkt-hero .kpi-hero) */
.qml-hero { grid-column: span 8; min-height: 230px; position: relative; overflow: hidden; background: var(--hero-bg); border: 1px solid var(--hero-border); color: var(--hero-on); border-radius: var(--r-hero); padding: 28px; box-shadow: var(--hero-shadow); }
.qml-hero::before { content: ''; position: absolute; inset: 0; background-image: var(--hero-art), var(--hero-rings); background-repeat: no-repeat; background-position: right -42px top -36px, left -58px bottom -70px; background-size: 230px 200px, 190px 190px; pointer-events: none; }
.qml-hero > * { position: relative; }
.qml-hero .lbl { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--hero-on-muted); }
.qml-hero .big { font-size: 56px; font-weight: 800; letter-spacing: -.02em; line-height: 1; margin-top: 6px; font-variant-numeric: tabular-nums; }
.qml-hero .delta { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 12px; background: var(--hero-neg-bg); color: var(--hero-neg); border-radius: var(--r-pill); font-size: 13px; font-weight: 700; }
.qml-hero .delta svg { width: 14px; height: 14px; stroke: currentColor; }
.qml-hero .se { display: flex; gap: 32px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--hero-line); }
.qml-hero .se > div { flex: 1 1 0; min-width: 0; }
.qml-hero .se .l { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--hero-on-muted); display: flex; align-items: center; min-height: 16px; }
.qml-hero .se .l svg { width: 13px; height: 13px; stroke: currentColor; }
.qml-hero .se .v { font-size: 18px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.qml-hero .se .v.neg { color: var(--hero-neg); }
/* KPI stack (.kpi-mini) */
.qml-kpis { grid-column: span 4; display: grid; gap: 16px; grid-template-rows: 1fr 1fr 1fr; }
.qml .kpi { background: var(--qmp-surface); border: 1px solid var(--qmp-outline-variant); border-radius: var(--r-card); padding: 18px 22px; display: flex; align-items: center; gap: 16px; box-shadow: var(--el-card); }
.qml .kpi .ico { flex: 0 0 auto; width: 44px; height: 44px; border-radius: var(--r-tile); display: grid; place-items: center; }
.qml .kpi .ico svg { width: 20px; height: 20px; stroke: currentColor; }
.qml .kpi.income .ico { background: var(--qmp-t-90); color: var(--qmp-t-30); }
.qml .kpi.expense .ico { background: var(--qmp-e-90); color: var(--qmp-e-40); }
.qml .kpi.tx .ico { background: var(--qmp-p-95); color: var(--qmp-primary-text); }
.qml .kpi .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qml .kpi .l { font-size: 11px; font-weight: 600; color: var(--qmp-on-surface-subtle); text-transform: uppercase; letter-spacing: .08em; }
.qml .kpi .v { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; margin-top: 2px; }
.qml .kpi .meta { font-size: 12px; color: var(--qmp-on-surface-muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* chart cards (.chart-card) */
.qml-card { background: var(--qmp-surface); border: 1px solid var(--qmp-outline-variant); border-radius: var(--r-card-lg); padding: 24px; box-shadow: var(--el-card); min-width: 0; }
.qml-card.ch-balance, .qml-card.ch-flow { grid-column: span 6; }
.qml-card.ch-cat { grid-column: span 5; }
.qml-card .ch-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.qml-card .ch-title { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.qml-card .ch-sub { font-size: 12px; color: var(--qmp-on-surface-muted); margin-top: 2px; }
.qml .qmp-seg.lg { margin-top: 0; padding: 4px; gap: 2px; flex: 0 0 auto; }
.qml .qmp-seg.lg span { padding: 8px 14px; font-size: 12px; }
.qml .qmp-legend.lg { margin-top: 0; gap: 14px; font-size: 12px; flex: 0 0 auto; }
.qml .qmp-legend.lg i { width: 10px; height: 10px; }
.qml-svg { display: block; width: 100%; height: auto; overflow: visible; }
.qml-svg .ax { font-size: 5.4px; fill: var(--chart-axis); font-family: var(--font); }
.qml-svg .grid { stroke: var(--chart-grid); stroke-width: .35; stroke-dasharray: 1 2.2; opacity: .8; }
.qml-svg .ln { fill: none; stroke: var(--chart-1); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.qml-svg .ln.neg { stroke: var(--chart-neg); }
.qml-svg .dot { fill: var(--chart-1); }
.qml-svg .bar-in { fill: var(--chart-income); }
.qml-svg .bar-out { fill: var(--chart-expense); }
.qml-cat { display: flex; align-items: center; gap: 24px; }
.qml .qmp-donut.lg { width: 168px; height: 168px; margin: 0; flex: 0 0 auto; }
.qml .qmp-donut.lg .dc .l { font-size: 10px; }
.qml .qmp-donut.lg .dc .v { font-size: 22px; }
.qml-cat-list { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.qml-cat-list .row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.qml-cat-list .dot { width: 10px; height: 10px; border-radius: var(--r-swatch, 3px); flex: 0 0 auto; }
.qml-cat-list .row:nth-child(1) .dot { background: var(--chart-1); }
.qml-cat-list .row:nth-child(2) .dot { background: var(--chart-3); }
.qml-cat-list .row:nth-child(3) .dot { background: var(--chart-4); }
.qml-cat-list .row:nth-child(4) .dot { background: var(--chart-5); }
.qml-cat-list .n { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qml-cat-list .v { font-weight: 600; font-variant-numeric: tabular-nums; }
/* expense transactions card (.tx-card) */
.qml-tx { grid-column: span 7; padding: 0; overflow: hidden; }
.qml-tx .tx-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; }
.qml-tx .search { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--qmp-outline); color: var(--qmp-on-surface-subtle); font-size: 13px; white-space: nowrap; flex: 0 0 auto; }
.qml-tx .search svg { width: 16px; height: 16px; stroke: currentColor; }
.qml-tx .row { display: grid; grid-template-columns: 24px 40px 70px 1fr auto; align-items: center; gap: 14px; padding: 14px 24px; border-top: 1px solid var(--qmp-outline-variant); }
.qml-tx .car { width: 24px; height: 24px; display: grid; place-items: center; color: var(--qmp-on-surface-muted); }
.qml-tx .car svg { width: 14px; height: 14px; stroke: currentColor; }
.qml-tx .av { width: 40px; height: 40px; border-radius: var(--r-avatar); background: var(--qmp-p-90); color: var(--qmp-p-30); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.qml-tx .d { font-size: 13px; color: var(--qmp-on-surface-muted); }
.qml-tx .who { min-width: 0; }
.qml-tx .who .w { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qml-tx .who .c { display: block; font-size: 12px; color: var(--qmp-on-surface-muted); margin-top: 2px; }
.qml-tx .amt { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- platform strip (design .lvb-plat): App Store / Google Play / Web ----------
   Each entry = store icon tile | eyebrow + title + sub | arrow. Hover: the entry lifts,
   the tile turns brand gold and the arrow slides, so the strip reads as three real actions. */
.lvb-plat { position: relative; z-index: 6; width: 100%; margin-top: clamp(28px, 6vw, 84px); background: var(--lv-blk); color: var(--lv-blk-ink); border-radius: 26px; padding: 6px; display: grid; grid-template-columns: 1fr; gap: 4px; box-shadow: 0 24px 60px rgba(24, 21, 16, .22); }
.lvb-plat a, .qmd .lvb-plat a:hover, .qmd .lvb-plat a:focus { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 20px; color: var(--lv-blk-ink); text-align: left; text-decoration: none; border: 1px solid transparent; transition: background .25s, border-color .25s, transform .3s var(--lv-ease); }
.lvb-plat a:hover, .lvb-plat a:focus-visible { background: rgba(247, 243, 232, .07); border-color: rgba(247, 243, 232, .12); transform: translateY(-2px); }
.lvb-plat a:focus-visible { outline: 2px solid var(--lv-gold); outline-offset: 2px; }
.lvb-plat .ic { width: 52px; height: 52px; border-radius: 17px; background: rgba(247, 243, 232, .08); border: 1px solid rgba(247, 243, 232, .12); display: grid; place-items: center; color: var(--lv-blk-ink); transition: background .3s, color .3s, border-color .3s, transform .3s var(--lv-ease); }
.lvb-plat .ic svg { width: 26px; height: 26px; display: block; }
.lvb-plat a:hover .ic { background: var(--lv-gold); border-color: var(--lv-gold); color: #241B03; transform: rotate(-6deg) scale(1.06); }
.lvb-plat .tx { display: block; min-width: 0; }
.lvb-plat .k { display: block; font: 800 10.5px/1 var(--font); letter-spacing: .16em; color: var(--lv-gold); text-transform: uppercase; }
.lvb-plat .h { display: block; font: 800 17px/1.15 var(--font); letter-spacing: -.02em; margin-top: 6px; }
.lvb-plat .s { display: block; font: 500 12.5px/1.35 var(--font); color: var(--lv-blk-sub); margin-top: 3px; }
.lvb-plat .ar { width: 36px; height: 36px; border-radius: var(--r-pill); background: rgba(247, 243, 232, .1); display: grid; place-items: center; color: var(--lv-blk-ink); transition: background .3s, color .3s, transform .3s var(--lv-ease); }
.lvb-plat .ar svg { display: block; width: 16px; height: 16px; }
.lvb-plat a:hover .ar { background: var(--lv-gold); color: #241B03; transform: translateX(4px); }
@media (prefers-reduced-motion: reduce) {
  .lvb-plat a, .lvb-plat .ic, .lvb-plat .ar { transition: none; }
  .lvb-plat a:hover, .lvb-plat a:hover .ic, .lvb-plat a:hover .ar { transform: none; }
}
/* closing line */
.lvb-after { margin-top: 36px; font: 500 15px/1.55 var(--font); color: var(--lv-sub); text-align: center; max-width: 62ch; text-wrap: pretty; padding-bottom: 8px; }

/* ---------- responsive (artboard breakpoints 700 / 900) ---------- */
@container qmd (min-width: 700px) {
  .lvb-stage { padding: 10% 10% 0; }
  .lvb-ph { right: 0; width: 24%; bottom: -8%; }
  .lvb-ph2 { right: 18%; width: 21%; bottom: -3%; }
  .lvb-icon { width: 96px; left: 0; top: -10%; }
  .lvb-coin.c1 { width: 56px; left: -1%; top: 22%; }
  .lvb-coin.c3 { width: 64px; left: 0; bottom: -2%; }
  .lvb-plat { grid-template-columns: repeat(3, 1fr); gap: 6px; border-radius: 30px; }
  .lvb-plat a { padding: 16px 18px; }
}
@container qmd (min-width: 900px) {
  .lvb-hero { padding: 52px 40px 0; gap: 22px; }
  .lvb-h1 { font-size: clamp(72px, 7.6vw, 118px); }
  .lv-lede { font-size: 19px; }
  .lvb-ctas .lv-btn { height: 56px; padding: 0 26px; font-size: 16px; }
  .lvb-stage { margin-top: 48px; padding: 8% 9% 0; }
  .lvb-ph { width: min(299.15px, 26%); right: 2%; bottom: -9%; }   /* 299.15 * .936 = a 280px screen, scale 1 */
  .lvb-ph2 { width: min(296.61px, 24%); right: 21%; bottom: -4%; } /* 296.61 * .944 = 280px */
  .lvb-icon { width: 112px; left: 0; top: -8%; }
  .lvb-coin.c1 { left: 1%; top: 34%; }
  .lvb-coin.c2 { right: 1%; top: 0; width: 38px; }
  .lvb-coin.c3 { left: 2%; bottom: 0; }
}

/* ---------- nav: section links = ghost-button hover, active section = ink pill ---------- */
.qmd-nav-links a { border: 1.5px solid transparent; }
.qmd-nav-links a:hover { background: var(--surface); border-color: var(--on-surface); color: var(--on-surface); }
.qmd-nav-links a.on, .qmd-nav-links a.on:hover { background: var(--filled-bg); border-color: var(--filled-bg); color: var(--on-filled); font-weight: 700; }

/* ---------- nav: detaches into a floating bar once the page scrolls (landing-qmd.js toggles
   .is-stuck on the sticky host). The host keeps its height, the bar only moves (transform) and
   pulls in from the sides, so the page never shifts when the class flips. ---------- */
.qmd-nav { transition: transform .4s var(--ease-emph), margin .4s var(--ease-emph), border-radius .4s var(--ease-emph), box-shadow .4s, background .4s, border-color .4s, padding .4s var(--ease-emph); }
.qmd-navhost.is-stuck .qmd-nav {
  transform: translateY(10px); margin: 0 24px; padding: 0 28px; border-radius: 26px;
  border: 1px solid var(--outline-variant);
  background: var(--bg); background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(24, 21, 16, .14);
}
@container qmd (max-width: 860px) {
  .qmd-navhost.is-stuck .qmd-nav { transform: translateY(8px); margin: 0 12px; padding: 0 16px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { .qmd-nav { transition: none; } }

/* ---------- shared public footer (pages/elements/publicFooter.xhtml) ---------- */
.qmd-foot-tag { font-size: 14.5px; color: var(--on-surface-muted); margin-top: 16px; max-width: 260px; line-height: 1.55; }
.qmd-foot-site { display: inline-flex; align-items: center; gap: 8px; }
/* the footer host is a bare token/container scope: no page padding, no extra ground */
.qmd.qmd-foothost { overflow: visible; }
/* core status pages (404 / 500 / 403) carry the public nav + footer: the card keeps the
   viewport minus the bar, and the card's own logo goes (the nav already shows the brand) */
.qmd-navhost ~ .stp-page { min-height: calc(100vh - 88px); }
.qmd-navhost ~ .stp-page .stp-logo { display: none; }
