/* Vensaro — generisano iz tokens.json (scripts/ds-tokens.mjs); ne menjati ručno */

:root, :root[data-theme="light"] {
  color-scheme: light;
  --surface: #f5f2ec;
  --surface-raised: #ffffff;
  --surface-sunken: #ece7df;
  --line: #e3ddd2;
  --line-strong: #8c857a;
  --ink: #191815;
  --ink-muted: #5e5a52;
  --ink-faint: #a39d92;
  --pine: #0f4c3a;
  --pine-hover: #0b3b2d;
  --on-pine: #ffffff;
  --pine-soft: #dcebe3;
  --pine-deep: #0b3a2d;
  --on-pine-deep: #ffffff;
  --persimmon: #e8592a;
  --on-persimmon: #191815;
  --persimmon-ink: #a8380f;
  --persimmon-soft: #fce3d7;
  --danger: #b42318;
  --on-danger: #ffffff;
  --danger-soft: #fde6e2;
  --warning: #8a5300;
  --warning-soft: #fbefd2;
  --focus: #a8380f;
  --video-bg: #0e0d0b;
  --thumb-clay: #e7a383;
  --thumb-sage: #a7c7b2;
  --thumb-ochre: #e6c063;
  --thumb-slate: #aab7c5;
  --thumb-sand: #ddd0b8;
  --thumb-rose: #e2b1ae;
  --thumb-ink: #191815;
  --font-display: "Bricolage Grotesque", Onest, system-ui, sans-serif;
  --font-sans: Onest, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-14: 56px;
  --space-20: 80px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 2px rgba(25,24,21,0.08);
  --shadow-2: 0 8px 24px rgba(25,24,21,0.14);
  --shadow-sheet: 0 -8px 32px rgba(25,24,21,0.16);
  --tap-min: 48px;
  --btn-lg: 52px;
  --btn-md: 44px;
  --btn-sm: 36px;
  --header-h: 56px;
  --nav-h: 64px;
  --sidebar-w: 260px;
  --content-max: 1200px;
  --reading-max: 560px;
  --bp-sm: 360px;
  --bp-md: 600px;
  --bp-lg: 1024px;
  --bp-xl: 1440px;
  --duration-fast: 120ms;
  --duration-base: 200ms;
  --duration-slow: 320ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-exit: cubic-bezier(0.4, 0, 1, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --surface: #12110f;
    --surface-raised: #1c1b18;
    --surface-sunken: #0b0a09;
    --line: #2e2c28;
    --line-strong: #7a7469;
    --ink: #f2eee6;
    --ink-muted: #aba597;
    --ink-faint: #5a554d;
    --pine: #5cc29a;
    --pine-hover: #74d0ab;
    --on-pine: #0b1f18;
    --pine-soft: #15302a;
    --pine-deep: #1d4d3f;
    --on-pine-deep: #eef6f1;
    --persimmon: #ff7a4a;
    --on-persimmon: #1a0e08;
    --persimmon-ink: #ff9a6e;
    --persimmon-soft: #3a1c10;
    --danger: #ff8a7a;
    --on-danger: #1a0907;
    --danger-soft: #3a1713;
    --warning: #f2b84b;
    --warning-soft: #33260f;
    --focus: #ff9a6e;
    --video-bg: #0e0d0b;
    --thumb-clay: #b87a60;
    --thumb-sage: #7fa08b;
    --thumb-ochre: #b8963f;
    --thumb-slate: #7f8c9a;
    --thumb-sand: #a99d86;
    --thumb-rose: #b08583;
    --thumb-ink: #191815;
    --shadow-1: 0 1px 2px rgba(0,0,0,0.5);
    --shadow-2: 0 8px 24px rgba(0,0,0,0.55);
    --shadow-sheet: 0 -8px 32px rgba(0,0,0,0.6);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #12110f;
  --surface-raised: #1c1b18;
  --surface-sunken: #0b0a09;
  --line: #2e2c28;
  --line-strong: #7a7469;
  --ink: #f2eee6;
  --ink-muted: #aba597;
  --ink-faint: #5a554d;
  --pine: #5cc29a;
  --pine-hover: #74d0ab;
  --on-pine: #0b1f18;
  --pine-soft: #15302a;
  --pine-deep: #1d4d3f;
  --on-pine-deep: #eef6f1;
  --persimmon: #ff7a4a;
  --on-persimmon: #1a0e08;
  --persimmon-ink: #ff9a6e;
  --persimmon-soft: #3a1c10;
  --danger: #ff8a7a;
  --on-danger: #1a0907;
  --danger-soft: #3a1713;
  --warning: #f2b84b;
  --warning-soft: #33260f;
  --focus: #ff9a6e;
  --video-bg: #0e0d0b;
  --thumb-clay: #b87a60;
  --thumb-sage: #7fa08b;
  --thumb-ochre: #b8963f;
  --thumb-slate: #7f8c9a;
  --thumb-sand: #a99d86;
  --thumb-rose: #b08583;
  --thumb-ink: #191815;
  --shadow-1: 0 1px 2px rgba(0,0,0,0.5);
  --shadow-2: 0 8px 24px rgba(0,0,0,0.55);
  --shadow-sheet: 0 -8px 32px rgba(0,0,0,0.6);
}


/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 22px; background: var(--surface); color: var(--ink); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vs-icon { flex: none; display: block; }
.vs-num { font-variant-numeric: tabular-nums; }
.vs-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.vs-overline { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@keyframes vs-spin { to { transform: rotate(360deg); } }
@keyframes vs-pulse { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

/* ---------- Button ---------- */
.vs-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); border: 1px solid transparent; border-radius: var(--radius-md); font-weight: 600; cursor: pointer; white-space: nowrap; text-decoration: none; transition: background-color var(--duration-fast) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); -webkit-tap-highlight-color: transparent; }
.vs-btn:active:not(:disabled) { transform: scale(.98); }
.vs-btn--lg { height: var(--btn-lg); padding: 0 var(--space-6); font-size: 16px; }
.vs-btn--md { height: var(--btn-md); padding: 0 var(--space-5); font-size: 15px; }
.vs-btn--sm { height: var(--btn-sm); padding: 0 var(--space-3); font-size: 14px; border-radius: var(--radius-sm); }
.vs-btn--block { display: flex; width: 100%; }
.vs-btn--primary { background: var(--pine); color: var(--on-pine); }
.vs-btn--primary:hover:not(:disabled) { background: var(--pine-hover); }
.vs-btn--accent { background: var(--persimmon); color: var(--on-persimmon); }
.vs-btn--secondary { background: var(--surface-raised); color: var(--ink); border-color: var(--line-strong); }
.vs-btn--secondary:hover:not(:disabled), .vs-btn--quiet:hover:not(:disabled) { background: var(--surface-sunken); }
.vs-btn--quiet { background: transparent; color: var(--ink); }
.vs-btn--danger { background: var(--danger-soft); color: var(--danger); }
.vs-btn:disabled:not(.is-loading) { background: var(--surface-sunken); color: var(--ink-faint); border-color: transparent; cursor: not-allowed; }
.vs-btn.is-loading { cursor: progress; }
.vs-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: vs-spin .8s linear infinite; }
.vs-spinner--lg { width: 36px; height: 36px; border-width: 3px; }

/* ---------- IconButton ---------- */
.vs-ibtn { position: relative; width: 44px; height: 44px; display: inline-grid; place-items: center; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.vs-ibtn:hover { background: var(--surface-sunken); }
.vs-ibtn--filled { background: var(--surface-sunken); }
.vs-ibtn--overlay { background: rgba(14,13,11,.55); color: #fff; }
.vs-ibtn--overlay:hover { background: rgba(14,13,11,.75); }
.vs-ibtn--lg { width: 56px; height: 56px; }
.vs-ibtn__badge { position: absolute; top: 9px; right: 10px; width: 10px; height: 10px; border-radius: 50%; background: var(--persimmon); box-shadow: 0 0 0 2px var(--surface); }

/* ---------- Fields ---------- */
.vs-field { display: flex; flex-direction: column; gap: 6px; }
.vs-field__label { font-size: 14px; line-height: 20px; font-weight: 600; }
.vs-input { width: 100%; height: 48px; padding: 0 var(--space-4); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface-raised); color: var(--ink); font: inherit; font-size: 16px; transition: border-color var(--duration-fast) var(--ease-standard); }
.vs-input--area { height: auto; min-height: 112px; padding: var(--space-3) var(--space-4); resize: vertical; line-height: 24px; }
.vs-input::placeholder { color: var(--ink-muted); }
.vs-input:hover { border-color: var(--ink-muted); }
.vs-input:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.vs-input:disabled { background: var(--surface-sunken); color: var(--ink-muted); border-color: var(--line); }
.vs-field__hint { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vs-field.is-error .vs-input { border-color: var(--danger); border-width: 2px; padding-left: 15px; }
.vs-field.is-error .vs-field__hint { color: var(--danger); font-weight: 500; }
.vs-field__hint .vs-icon { margin-top: 1px; }

.vs-search { position: relative; display: flex; align-items: center; height: 48px; border-radius: var(--radius-pill); background: var(--surface-sunken); color: var(--ink-muted); padding: 0 var(--space-4); gap: 10px; }
.vs-search:focus-within { outline: 2px solid var(--focus); outline-offset: 2px; }
.vs-search__input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); outline: none; }
.vs-search__input::placeholder { color: var(--ink-muted); }

/* ---------- SegmentedTabs ---------- */
.vs-tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--radius-pill); background: var(--surface-sunken); }
.vs-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 var(--space-3); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--ink-muted); font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background-color var(--duration-fast) var(--ease-standard); }
.vs-tab[aria-selected="true"] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-1); }
.vs-tab__count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--ink); color: var(--surface); font-size: 12px; line-height: 20px; font-variant-numeric: tabular-nums; }

/* ---------- Tag ---------- */
.vs-tag { display: inline-flex; align-items: center; gap: var(--space-1); height: 24px; padding: 0 8px; border-radius: var(--radius-xs); font-size: 12px; line-height: 1; font-weight: 600; white-space: nowrap; }
.vs-tag--assigned { background: var(--ink); color: var(--surface); }
.vs-tag--optional { border: 1px solid var(--line-strong); color: var(--ink-muted); padding: 0 7px; }
.vs-tag--new { background: var(--persimmon-soft); color: var(--persimmon-ink); }
.vs-tag--neutral { background: var(--surface-sunken); color: var(--ink-muted); }
.vs-tag--success { background: var(--pine-soft); color: var(--pine); }
.vs-tag--danger { background: var(--danger-soft); color: var(--danger); }
.vs-tag--warning { background: var(--warning-soft); color: var(--warning); }

/* ---------- Progress ---------- */
.vs-progress-wrap { display: flex; flex-direction: column; gap: 6px; }
.vs-progress__meta { display: flex; justify-content: space-between; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); }
.vs-progress { position: relative; height: 6px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.vs-progress--sm { height: 4px; }
.vs-progress--lg { height: 10px; }
.vs-progress > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; transition: width var(--duration-base) var(--ease-standard); }
.vs-progress--pine > i { background: var(--pine); }
.vs-progress--persimmon > i { background: var(--persimmon); }

.vs-track { display: flex; gap: var(--space-1); }
.vs-track__seg { position: relative; flex: 1; height: 6px; border-radius: var(--radius-pill); background: var(--line); overflow: hidden; }
.vs-track--lg .vs-track__seg { height: 8px; }
.vs-track__seg.is-done { background: var(--pine); }
.vs-track__seg > i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--persimmon); }
/* glatko punjenje (čekanje na kartici): transform umesto širine — crta ga kompozitor, bez seckanja */
.vs-track__seg > i.vs-track__fill { width: 100%; transform-origin: left; transform: scaleX(0); animation: vs-track-fill linear forwards; }
@keyframes vs-track-fill { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .vs-track__seg > i.vs-track__fill { animation-timing-function: steps(3, end); } }
.vs-track--inverse .vs-track__seg { background: transparent; }
.vs-track--inverse .vs-track__seg::before { content: ''; position: absolute; inset: 0; background: var(--on-pine-deep); opacity: .28; }
.vs-track--inverse .vs-track__seg.is-done::before { opacity: 1; }
.vs-track--inverse .vs-track__seg > i { background: var(--on-pine-deep); z-index: 1; }

.vs-ring { position: relative; display: inline-grid; place-items: center; flex: none; }
.vs-ring svg { position: absolute; inset: 0; }
.vs-ring__bg { stroke: var(--line); }
.vs-ring--pine .vs-ring__fg { stroke: var(--pine); }
.vs-ring--persimmon .vs-ring__fg { stroke: var(--persimmon); }
.vs-ring__fg { transition: stroke-dashoffset var(--duration-slow) var(--ease-standard); }
.vs-ring__label { position: relative; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- BrandAvatar ---------- */
.vs-avatar { position: relative; display: inline-grid; place-items: center; flex: none; font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1; border-radius: var(--radius-sm); box-shadow: inset 0 0 0 1px var(--line); }
.vs-avatar img { width: 100%; height: 100%; object-fit: contain; border-radius: inherit; }
.vs-avatar--xs { width: 20px; height: 20px; font-size: 9px; border-radius: var(--radius-xs); }
.vs-avatar--sm { width: 28px; height: 28px; font-size: 11px; border-radius: var(--radius-xs); }
.vs-avatar--md { width: 40px; height: 40px; font-size: 15px; }
.vs-avatar--lg { width: 64px; height: 64px; font-size: 24px; border-radius: var(--radius-md); }
.vs-avatar__verified { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 50%; background: var(--pine); color: var(--on-pine); box-shadow: 0 0 0 2px var(--surface); }
.vs-avatar--lg .vs-avatar__verified { width: 22px; height: 22px; }
/* logo na beloj pločici u obe teme (inicijali tamni) */
.vs-avatar--white { color: #191815 !important; box-shadow: inset 0 0 0 1px rgba(25,24,21,.12); }
/* naslovnica-traka 132 px (kurs brenda, design/vensaro-brand) */
.vs-thumb--banner { aspect-ratio: auto; height: 132px; border-radius: var(--radius-lg); }

/* ---------- CourseThumb ---------- */
.vs-thumb { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 12px; border-radius: var(--radius-md); overflow: hidden; color: var(--thumb-ink); }
.vs-thumb--wide { aspect-ratio: 16 / 10; }
.vs-thumb--square { aspect-ratio: 1; padding: 8px; justify-content: flex-end; border-radius: var(--radius-sm); }
.vs-thumb--tall { aspect-ratio: 4 / 5; }
.vs-tone-clay { background: var(--thumb-clay); }
.vs-tone-sage { background: var(--thumb-sage); }
.vs-tone-ochre { background: var(--thumb-ochre); }
.vs-tone-slate { background: var(--thumb-slate); }
.vs-tone-sand { background: var(--thumb-sand); }
.vs-tone-rose { background: var(--thumb-rose); }
.vs-thumb__brand { font-size: 12px; line-height: 16px; font-weight: 600; }
.vs-thumb__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.vs-thumb__ticks { display: flex; flex-wrap: wrap; gap: 3px; max-width: 60%; padding-bottom: 6px; }
.vs-thumb__ticks i { width: 10px; height: 4px; border-radius: 2px; background: currentColor; opacity: .38; }
.vs-thumb__ticks i.is-done { opacity: 1; }
.vs-thumb--square .vs-thumb__ticks { max-width: 100%; padding: 0; gap: 2px; }
.vs-thumb--square .vs-thumb__ticks i { width: 6px; height: 3px; }
.vs-thumb__min { font-family: var(--font-display); font-size: 44px; line-height: .85; font-weight: 700; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.vs-thumb__min small { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0; font-weight: 600; margin-left: 3px; }
/* naslovnica sa fotografijom: slika cela na belom, natpisi na sopstvenoj podlozi (bez tamnog sloja preko proizvoda) */
.vs-thumb--photo { box-shadow: inset 0 0 0 1px var(--line); }
.vs-thumb--photo .vs-thumb__brand { align-self: flex-start; padding: 3px 8px; border-radius: var(--radius-pill); background: rgba(255,255,255,.92); box-shadow: 0 0 0 1px rgba(25,24,21,.08); }
/* broj lekcija i napredak su uvek i ispod naslovnice — na fotografiji bi prekrili proizvod (ili upisan naslov) */
.vs-thumb--photo .vs-thumb__foot { visibility: hidden; }

/* ---------- CourseCard ---------- */
.vs-ccard { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); border-radius: var(--radius-md); }
.vs-ccard__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vs-ccard__tags { display: flex; gap: 6px; margin-bottom: 2px; }
.vs-ccard__title { font-size: 16px; line-height: 22px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vs-ccard__brand { display: flex; align-items: center; gap: 6px; font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); }
.vs-ccard__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); font-variant-numeric: tabular-nums; }
.vs-ccard .vs-progress-wrap { margin-top: 6px; }
.vs-ccard--row { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; }
.vs-ccard:hover .vs-ccard__title { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------- ContinueCard ---------- */
.vs-continue { display: flex; flex-direction: column; gap: 12px; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--pine-deep); color: var(--on-pine-deep); }
.vs-continue__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.vs-continue__brand { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.vs-continue__title { margin: 4px 0 0; font-family: var(--font-display); font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: -.015em; }
.vs-continue__course { margin: -4px 0 4px; font-size: 14px; line-height: 20px; opacity: .9; }
.vs-continue__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.vs-continue__left { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; }
.vs-continue__left b { font-weight: 700; }
.vs-play { width: 64px; height: 64px; display: grid; place-items: center; border: 0; border-radius: var(--radius-pill); background: var(--persimmon); color: var(--on-persimmon); cursor: pointer; transition: transform var(--duration-fast) var(--ease-standard); }
.vs-play .vs-icon { margin-left: 2px; }
.vs-play:active { transform: scale(.94); }
.vs-play:focus-visible { outline-color: var(--on-pine-deep); }

/* ---------- VideoPlayer ---------- */
.vs-player { position: relative; aspect-ratio: 16 / 9; background: var(--video-bg); color: #fff; overflow: hidden; }
.vs-player--rounded { border-radius: var(--radius-md); }
.vs-player--vertical { aspect-ratio: 9 / 16; }
.vs-player__poster { position: absolute; inset: 0; }
.vs-player__grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px); background-size: 48px 48px; }
.vs-player__center { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(14,13,11,.6); color: #fff; cursor: pointer; }
.vs-player__center--loading { background: transparent; }
.vs-player__cc { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); width: max-content; max-width: 88%; margin: 0; padding: 4px 10px; border-radius: 6px; background: rgba(14,13,11,.82); color: #fff; font-size: 15px; line-height: 22px; text-align: center; }
.vs-player__bar { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 12px 6px; background: linear-gradient(transparent, rgba(14,13,11,.7)); }
.vs-scrub { position: relative; height: 4px; margin: 0 4px; border-radius: 2px; background: rgba(255,255,255,.3); cursor: pointer; }
.vs-scrub i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: inherit; }
.vs-scrub__buf { background: rgba(255,255,255,.45); }
.vs-scrub__fill { background: var(--persimmon); }
.vs-scrub__thumb { width: 14px; height: 14px; top: -5px !important; margin-left: -7px; border-radius: 50% !important; background: var(--persimmon); box-shadow: 0 0 0 3px rgba(14,13,11,.35); }
.vs-player__row { display: flex; align-items: center; justify-content: space-between; height: 40px; }
.vs-player__time { font-size: 13px; font-weight: 600; padding-left: 4px; }
.vs-player__time span { opacity: .75; font-weight: 500; }
.vs-player__tools { display: flex; align-items: center; }
.vs-player__tool { min-width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: var(--radius-pill); background: transparent; color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.vs-player__tool.is-on { color: var(--persimmon); }

/* ---------- QuizOption ---------- */
.vs-option { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 64px; padding: 14px 16px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); background: var(--surface-raised); color: var(--ink); text-align: left; font-size: 17px; line-height: 24px; cursor: pointer; transition: background-color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard), transform var(--duration-fast) var(--ease-standard); -webkit-tap-highlight-color: transparent; }
.vs-option:active { transform: scale(.99); }
.vs-option__key { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--radius-xs); background: var(--surface-sunken); font-size: 14px; font-weight: 700; }
.vs-option__text { flex: 1; }
.vs-option.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.vs-option.is-selected .vs-option__key { background: var(--ink); color: var(--surface); }
.vs-option.is-correct { background: var(--pine); border-color: var(--pine); color: var(--on-pine); }
.vs-option.is-correct .vs-option__key { background: var(--on-pine); color: var(--pine); }
.vs-option.is-wrong { background: var(--danger-soft); border-color: var(--danger); box-shadow: inset 0 0 0 1px var(--danger); }
.vs-option.is-wrong .vs-option__key { background: var(--danger); color: var(--on-danger); }
.vs-option.is-dim { color: var(--ink-muted); border-color: var(--line); cursor: default; }
.vs-option.is-dim .vs-option__key { color: var(--ink-muted); }

/* ---------- ScreenHeader ---------- */
.vs-sheader { display: flex; align-items: center; gap: 4px; height: var(--header-h); padding: 0 4px 0 8px; }
.vs-sheader > :first-child:not(.vs-ibtn) { padding-left: 8px; }
.vs-sheader__text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vs-sheader__title { font-size: 17px; line-height: 22px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-sheader__sub { font-size: 12px; line-height: 16px; color: var(--ink-muted); font-weight: 500; }
.vs-sheader__actions { display: flex; }

/* ---------- BottomNav ---------- */
.vs-nav { display: grid; grid-template-columns: repeat(4, 1fr); height: var(--nav-h); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--surface-raised); border-top: 1px solid var(--line); box-sizing: content-box; }
.vs-nav__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--ink-muted); font-size: 12px; line-height: 16px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
.vs-nav__pill { position: relative; width: 56px; height: 30px; display: grid; place-items: center; border-radius: var(--radius-pill); transition: background-color var(--duration-base) var(--ease-standard); }
.vs-nav__item.is-active { color: var(--ink); }
.vs-nav__item.is-active .vs-nav__pill { background: var(--pine-soft); color: var(--pine); }
.vs-nav__badge { position: absolute; top: -3px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--persimmon); color: var(--on-persimmon); font-size: 11px; line-height: 18px; font-weight: 700; box-shadow: 0 0 0 2px var(--surface-raised); }

/* ---------- Certificate ---------- */
.vs-cert { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); overflow: hidden; }
.vs-cert::after { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line); border-radius: 8px; pointer-events: none; }
.vs-cert__top { display: flex; align-items: center; gap: 10px; color: var(--ink-muted); }
.vs-cert__holder { margin: 28px 0 0; font-family: var(--font-display); font-size: 36px; line-height: 38px; font-weight: 700; letter-spacing: -.03em; }
.vs-cert__course { margin: 10px 0 0; font-size: 18px; line-height: 24px; font-weight: 600; max-width: 30ch; }
.vs-cert__issuer { margin: 4px 0 0; font-size: 14px; color: var(--ink-muted); }
.vs-cert__meta { display: grid; grid-template-columns: 1fr 1fr auto; align-items: start; gap: 14px 20px; margin: 28px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.vs-cert__meta dt { font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); }
.vs-cert__meta dd { margin: 4px 0 0; font-size: 14px; font-weight: 600; }
.vs-cert__meta > div:nth-child(3) { grid-column: 1 / 3; }
.vs-cert__seal { grid-column: 3; grid-row: 1 / 3; align-self: center; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--pine-deep); color: var(--on-pine-deep); box-shadow: 0 0 0 4px var(--surface-raised), 0 0 0 5px var(--pine-deep); }

/* ---------- Sheet ---------- */
.vs-sheet { display: flex; flex-direction: column; gap: 10px; padding: 8px 20px 20px; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--surface-raised); box-shadow: var(--shadow-sheet); }
.vs-sheet--dialog { border-radius: var(--radius-lg); padding: 24px; max-width: 440px; }
.vs-sheet__grab { align-self: center; width: 36px; height: 4px; margin-bottom: 8px; border-radius: 2px; background: var(--line); }
.vs-sheet__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-sunken); }
.vs-sheet--danger .vs-sheet__icon { background: var(--danger); color: var(--on-danger); }
.vs-sheet--success .vs-sheet__icon { background: var(--pine); color: var(--on-pine); }
.vs-sheet--danger { background: var(--danger-soft); }
.vs-sheet__title { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; }
.vs-sheet__body { font-size: 17px; line-height: 26px; }
.vs-sheet__body p { margin: 0 0 8px; }
.vs-sheet__actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.vs-sheet--dialog .vs-sheet__actions { flex-direction: row-reverse; }

/* ---------- Toast ---------- */
.vs-toast { display: flex; align-items: center; gap: 12px; max-width: 420px; padding: 12px 8px 12px 16px; min-height: 52px; border-radius: var(--radius-md); background: var(--ink); color: var(--surface); box-shadow: var(--shadow-2); font-size: 14px; line-height: 20px; }
.vs-toast__text { flex: 1; }
.vs-toast__action { border: 0; background: transparent; color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; padding: 8px 10px; border-radius: var(--radius-sm); cursor: pointer; }

/* ---------- EmptyState ---------- */
.vs-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: var(--space-14) var(--space-6); max-width: 400px; margin: 0 auto; }
.vs-empty__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-sunken); color: var(--ink-muted); }
.vs-empty__title { margin: 16px 0 0; font-size: 18px; line-height: 24px; font-weight: 600; }
.vs-empty__body { margin: 6px 0 0; color: var(--ink-muted); }
.vs-empty__action { margin-top: 20px; display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

/* ---------- Skeleton ---------- */
.vs-skel { display: block; background: var(--surface-sunken); border-radius: var(--radius-xs); animation: vs-pulse 1.4s ease-in-out infinite; }
.vs-skel--line { height: 12px; }
.vs-skel--thumb { aspect-ratio: 16 / 10; border-radius: var(--radius-md); }
.vs-skel--sq { width: 72px; height: 72px; border-radius: var(--radius-sm); flex: none; }
.vs-skel-card, .vs-skel-text { display: flex; flex-direction: column; gap: 10px; }
.vs-skel-row { display: flex; gap: 14px; align-items: center; }
.vs-skel-row__lines { flex: 1; display: flex; flex-direction: column; gap: 10px; }

/* ---------- PlanCard ---------- */
.vs-plan { display: flex; flex-direction: column; gap: 10px; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); }
.vs-plan.is-recommended { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.vs-plan__head { display: flex; align-items: center; justify-content: space-between; min-height: 24px; }
.vs-plan__name { font-size: 15px; font-weight: 700; }
.vs-plan__price { display: flex; align-items: baseline; gap: 4px; font-family: var(--font-display); font-size: 36px; line-height: 40px; font-weight: 700; letter-spacing: -.03em; }
.vs-plan__price small { font-family: var(--font-sans); font-size: 14px; font-weight: 500; letter-spacing: 0; color: var(--ink-muted); }
.vs-plan__limit { margin: 0; font-size: 14px; font-weight: 600; }
.vs-plan__features { list-style: none; margin: 4px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 20px; flex: 1; }
.vs-plan__features li { display: flex; gap: 8px; align-items: flex-start; }
.vs-plan__features li .vs-icon { margin-top: 2px; color: var(--pine); }
.vs-plan__features li.is-off { color: var(--ink-muted); }
.vs-plan__features li.is-off .vs-icon { color: var(--ink-muted); }

/* ---------- UpgradeNudge ---------- */
.vs-nudge { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 48px 16px 16px; border-radius: var(--radius-md); background: var(--persimmon-soft); color: var(--ink); }
.vs-nudge__icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-raised); color: var(--persimmon-ink); }
.vs-nudge__title { margin: 0; font-weight: 600; }
.vs-nudge__text { margin: 2px 0 0; font-size: 14px; line-height: 20px; }
.vs-nudge__action { margin-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.vs-nudge__close { position: absolute; top: 6px; right: 6px; }
.vs-nudge__close:hover { background: transparent; }

/* ---------- StatTile ---------- */
.vs-stat { display: flex; flex-direction: column; gap: 6px; padding: var(--space-4) var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); min-width: 0; }
.vs-stat__label { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); }
.vs-stat__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.vs-stat__value { font-family: var(--font-display); font-size: 36px; line-height: 38px; font-weight: 700; letter-spacing: -.03em; }
.vs-stat__spark polyline { stroke: var(--pine); }
.vs-stat__delta { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); }
.vs-stat__delta.is-up { color: var(--pine); }
.vs-stat__delta.is-warning { color: var(--warning); }

/* ---------- BarChart ---------- */
.vs-bars { display: flex; flex-direction: column; gap: 10px; }
.vs-bars__row { display: grid; grid-template-columns: minmax(96px, 160px) 1fr 52px; gap: 12px; align-items: center; font-size: 14px; line-height: 20px; }
.vs-bars__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-bars__track { position: relative; height: 12px; border-radius: 3px; background: var(--surface-sunken); overflow: hidden; }
.vs-bars__track i { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--pine); }
.vs-bars__track i.is-warning { background: var(--persimmon); }
.vs-bars__value { text-align: right; font-weight: 600; }

/* ---------- DataTable ---------- */
.vs-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); }
.vs-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 20px; }
.vs-table th { padding: 10px 16px; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.vs-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.vs-table--dense td { padding: 8px 16px; }
.vs-table tbody tr:last-child td { border-bottom: 0; }
.vs-table tbody tr:hover { background: var(--surface-sunken); }
.vs-person { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.vs-person small { display: block; font-weight: 400; color: var(--ink-muted); font-size: 13px; }

/* ---------- Sidebar ---------- */
.vs-side { flex: none; display: flex; flex-direction: column; gap: 4px; width: var(--sidebar-w); height: 100%; padding: 12px; background: var(--surface); border-right: 1px solid var(--line); }
.vs-side__ws { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-raised); text-align: left; cursor: pointer; }
.vs-side__ws:hover { border-color: var(--line-strong); }
.vs-side__wsText { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vs-side__wsText b { font-size: 14px; line-height: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vs-side__wsText span { font-size: 12px; line-height: 16px; color: var(--ink-muted); }
.vs-side__group { display: flex; flex-direction: column; gap: 2px; padding: 4px 0; }
.vs-side__glabel { padding: 12px 10px 6px; color: var(--ink-muted); }
.vs-side__item { white-space: nowrap; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--ink-muted); font-size: 14px; font-weight: 600; }
.vs-side__item > span:not(.vs-side__count) { flex: 1; }
.vs-side__item:hover { background: var(--surface-sunken); color: var(--ink); }
.vs-side__item.is-active { background: var(--surface-raised); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.vs-side__item.is-active .vs-icon { color: var(--pine); }
.vs-side__count { font-size: 12px; color: var(--ink-muted); }
.vs-side__lock { color: var(--ink-faint); }
.vs-side__foot { margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }

/* ---------- Screen scaffolding (used by screen previews and app shells) ---------- */
.vs-stage { min-height: 100vh; display: flex; justify-content: center; align-items: flex-start; padding: 24px; background: var(--surface-sunken); }
.vs-phone { position: relative; width: 390px; height: 844px; display: flex; flex-direction: column; overflow: hidden; border-radius: 28px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); }
.vs-statusbar { flex: none; height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; font-size: 14px; font-weight: 600; }
.vs-scroll { flex: 1; overflow: hidden; }
.vs-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 32px 16px 12px; }
.vs-sec h2 { margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; }
.vs-sec a { font-size: 14px; font-weight: 600; color: var(--pine); text-decoration: none; }
.vs-hscroll { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vs-hscroll::-webkit-scrollbar { display: none; }
.vs-hscroll > * { flex: none; scroll-snap-align: start; }
.vs-footer-cta { flex: none; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }

/* ---------- ReviewCard ---------- */
.vs-review { display: flex; align-items: center; gap: 14px; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); }
.vs-review__stack { position: relative; flex: none; width: 64px; height: 52px; }
.vs-review__img { position: absolute; top: 0; width: 40px; height: 52px; border-radius: var(--radius-sm); background: #f3f5f7; box-shadow: 0 0 0 2px var(--surface-raised); overflow: hidden; display: grid; place-items: center; }
.vs-review__img:nth-child(1) { left: 0; } .vs-review__img:nth-child(2) { left: 12px; } .vs-review__img:nth-child(3) { left: 24px; }
.vs-review__img img { width: 100%; height: 100%; object-fit: contain; }
.vs-review__body { flex: 1; min-width: 0; }
.vs-review__eyebrow { display: inline-flex; align-items: center; gap: 4px; color: var(--pine); }
.vs-review__title { margin: 2px 0 0; font-size: 17px; line-height: 22px; font-weight: 600; }
.vs-review__meta { margin: 2px 0 0; font-size: 13px; line-height: 18px; color: var(--ink-muted); }

/* ---------- CategoryRow ---------- */
.vs-cat { display: flex; align-items: center; gap: 14px; padding: 12px 8px 12px 12px; border-radius: var(--radius-md); text-decoration: none; color: var(--ink); background: var(--surface-raised); border: 1px solid var(--line); }
.vs-cat:hover { border-color: var(--line-strong); }
.vs-cat__img { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: var(--radius-sm); background: #ffffff; overflow: hidden; color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line); }
.vs-cat__img img { width: 100%; height: 100%; object-fit: contain; }
.vs-cat__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.vs-cat__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vs-cat__name { font-size: 16px; line-height: 22px; font-weight: 600; }
.vs-cat__count { font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.vs-cat__done { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; color: var(--pine); }
.vs-cat__chev { color: var(--ink-muted); }

/* ---------- LessonSlide ---------- */
.vs-slide { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); overflow: hidden; }
.vs-slide__media { height: 280px; padding: 16px; }
.vs-slide__media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.vs-slide__body { display: flex; flex-direction: column; gap: 12px; padding: 20px; }
.vs-slide__kicker { font-size: 13px; line-height: 18px; font-weight: 600; color: var(--ink-muted); }
.vs-slide__title { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.015em; }
.vs-slide__facts { display: flex; gap: 8px; flex-wrap: wrap; }
.vs-slide__fact { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--pine-soft); color: var(--ink); min-width: 96px; }
.vs-slide__fact b { font-family: var(--font-display); font-size: 22px; line-height: 24px; font-weight: 700; letter-spacing: -.02em; color: var(--pine); }
.vs-slide__fact span { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--ink-muted); }
.vs-slide__points { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.vs-slide__points li { position: relative; padding-left: 20px; font-size: 17px; line-height: 24px; }
.vs-slide__points li::before { content: ''; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px; border-radius: 2px; background: var(--pine); }

/* ---------- LessonRow ---------- */
.vs-lrow { display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 10px 12px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-raised); text-decoration: none; color: var(--ink); }
.vs-lrow:hover { border-color: var(--line-strong); }
.vs-lrow.is-next { border-color: var(--pine); box-shadow: inset 0 0 0 1px var(--pine); }
.vs-lrow__img { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: var(--radius-sm); background: #ffffff; overflow: hidden; color: var(--ink-muted); box-shadow: inset 0 0 0 1px var(--line); }
.vs-lrow__img img { width: 100%; height: 100%; object-fit: contain; }
.vs-lrow__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vs-lrow__eyebrow { color: var(--pine); }
.vs-lrow__title { font-size: 16px; line-height: 21px; font-weight: 600; }
.vs-lrow__meta { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vs-lrow.is-done .vs-lrow__title { font-weight: 500; }
.vs-lrow__done { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--pine-soft); color: var(--pine); }
.vs-lrow__play { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--persimmon); color: var(--on-persimmon); }
.vs-lrow__play .vs-icon { margin-left: 1px; }
.vs-lrow__chev { color: var(--ink-muted); flex: none; }

/* ---------- ListRow & Switch ---------- */
.vs-list { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface-raised); overflow: hidden; }
.vs-list > .vs-lr + .vs-lr { border-top: 1px solid var(--line); }
.vs-lr { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 12px 10px 16px; text-decoration: none; color: var(--ink); background: var(--surface-raised); }
a.vs-lr:hover { background: var(--surface-sunken); }
.vs-lr__icon { flex: none; color: var(--ink-muted); display: grid; }
.vs-lr__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vs-lr__label { font-size: 16px; line-height: 22px; font-weight: 500; }
.vs-lr__detail { font-size: 13px; line-height: 18px; color: var(--ink-muted); }
.vs-lr__value { font-size: 14px; color: var(--ink-muted); }
.vs-lr__chev { flex: none; color: var(--ink-muted); }
.vs-lr.is-danger, .vs-lr.is-danger .vs-lr__icon { color: var(--danger); }
.vs-switch { position: relative; flex: none; width: 52px; height: 32px; padding: 0; border-radius: var(--radius-pill); border: 2px solid var(--line-strong); background: var(--surface-sunken); cursor: pointer; transition: background-color var(--duration-base) var(--ease-standard), border-color var(--duration-base) var(--ease-standard); }
.vs-switch__knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--line-strong); transition: transform var(--duration-base) var(--ease-standard), background-color var(--duration-base) var(--ease-standard); }
.vs-switch.is-on { background: var(--pine); border-color: var(--pine); }
.vs-switch.is-on .vs-switch__knob { transform: translateX(20px); background: var(--on-pine); }

/* Javna strana vensaro.app — okvir oko komponenti dizajn sistema (ds.css + tokens.css). Mere po dizajnu landing page-a;
   ispod 640 px mobilna verzija po uputstvu od 13.10.2026 (cilj: strana ispod ~7.000 px na 390 px). */
body { margin: 0; background: var(--surface); color: var(--ink); font-family: var(--font-sans); font-size: 16px; line-height: 1.55; }
a { color: var(--pine); }
a:hover { color: var(--pine-hover); }
[hidden] { display: none !important; }
.lp-wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; box-sizing: border-box; }
.lp-wrap--narrow { max-width: 860px; }
.lp-section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 44px; }
.lp-muted { margin: 0; color: var(--ink-muted); }
.lp-small { font-size: 14px; }
.lp-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.lp-row--wide { gap: 16px; align-items: stretch; }
.lp-preparing { margin: 0; padding-top: 12px; border-top: 1px dashed var(--line-strong); font-size: 14px; color: var(--ink-muted); }
.lp-card--pine .lp-preparing { color: inherit; opacity: .85; border-color: currentColor; }
.logo--dark { display: none; }
@media (prefers-color-scheme: dark) { .logo--light { display: none; } .logo--dark { display: block; } }

/* zaglavlje (lepljivo na svim širinama) */
.lp-header { border-bottom: 1px solid var(--line); background: var(--surface); position: sticky; top: 0; z-index: 20; }
.lp-nav { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; position: relative; }
.lp-logo { display: flex; align-items: center; flex: none; }
.lp-logo img { height: 32px; width: auto; }
.lp-nav__links { display: flex; gap: 22px; flex-wrap: wrap; flex-grow: 1; font-size: 15px; font-weight: 600; }
.lp-nav__links a, .lp-login { color: var(--ink); text-decoration: none; }
.lp-nav__links a:hover, .lp-login:hover { color: var(--pine); }
.lp-nav__end { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.lp-login { font-size: 15px; font-weight: 600; padding: 10px 6px; }
.lp-lang { display: flex; padding: 3px; border-radius: var(--radius-pill); background: var(--surface-sunken); font-size: 13px; font-weight: 700; }
.lp-lang a { padding: 6px 12px; border-radius: var(--radius-pill); color: var(--ink-muted); text-decoration: none; }
.lp-lang a[aria-current='page'] { background: var(--surface-raised); color: var(--ink); }
.lp-menu { display: none; }
.lp-menu summary { list-style: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius-sm); cursor: pointer; color: var(--ink); }
.lp-menu summary::-webkit-details-marker { display: none; }
.lp-menu[open] summary { background: var(--surface-sunken); }
.lp-menu__panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2); display: flex; flex-direction: column; padding: 8px 16px 12px; }
.lp-menu__panel a { min-height: 48px; display: flex; align-items: center; font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.lp-menu__panel a:last-child { border-bottom: 0; color: var(--pine); }

/* tipografija */
.lp-badge { align-self: flex-start; display: inline-flex; padding: 6px 12px; border-radius: var(--radius-pill); background: var(--pine-soft); color: var(--pine); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.lp-h1 { margin: 0; font-family: var(--font-display); font-size: clamp(36px, 9.5vw, 76px); line-height: .98; font-weight: 700; letter-spacing: -.035em; }
.lp-h2 { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 4vw, 48px); line-height: 1.05; font-weight: 700; letter-spacing: -.03em; }
.lp-h3 { margin: 0; font-size: 22px; line-height: 1.25; font-weight: 600; }
.lp-h4 { margin: 0 0 4px; font-size: 17px; font-weight: 600; display: block; }
.lp-display { font-family: var(--font-display); font-size: 28px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.lp-lead { margin: 0; max-width: 600px; font-size: 19px; line-height: 1.55; color: var(--ink-muted); }
.lp-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pine); }
.lp-head { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }

/* hero */
.lp-hero { padding-top: 72px; padding-bottom: 80px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.lp-hero__text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.lp-hero__phone { flex: 0 1 380px; display: flex; justify-content: center; margin: 0 auto; }
.lp-phone { width: 360px; max-width: 100%; height: 720px; border-radius: 36px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); overflow: hidden; position: relative; }
.lp-phone__in { height: 100%; display: flex; flex-direction: column; }
.lp-phone__head { padding: 24px 16px 16px; }
.lp-phone__hello { font-family: var(--font-display); font-size: 24px; line-height: 28px; font-weight: 700; letter-spacing: -.02em; }
.lp-phone__org { margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.lp-phone__body { padding: 0 16px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; overflow: hidden; }
.lp-phone .vs-nav { position: static; }

/* trake i kartice */
.lp-band { background: var(--surface-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.lp-band--top { border-bottom: 0; }
.lp-sunken { background: var(--surface-sunken); }
.lp-facts { padding-top: 36px; padding-bottom: 36px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 32px; }
.lp-facts > div { display: flex; flex-direction: column; gap: 4px; }
.lp-fact { font-family: var(--font-display); font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -.04em; color: var(--pine); }
.lp-grid { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; }
.lp-grid--2 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px 28px; }
.lp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.lp-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.lp-card { padding: 28px; border-radius: var(--radius-lg); background: var(--surface-raised); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.lp-card--plain { background: var(--surface); }
.lp-card--pine { background: var(--pine-deep); color: var(--on-pine-deep); border-color: transparent; }
.lp-card--pine .lp-eyebrow { color: var(--on-pine-deep); }
.lp-step { font-family: var(--font-display); font-size: 56px; line-height: 1; font-weight: 700; color: var(--persimmon); letter-spacing: -.04em; }
.lp-step-card > div { display: flex; flex-direction: column; gap: 14px; }
.lp-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.lp-card--plain .lp-list { color: var(--ink-muted); }
.lp-tabs { display: none; }

/* proizvod: naslov i prednosti pa kartica */
.lp-product { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 56px; }
.lp-product__text { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.lp-product__demo { flex: 0 1 400px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

/* cene */
.lp-plans { position: relative; }
.lp-plans__track { position: relative; }
.lp-dots { display: none; }
.lp-strip { flex: 1 1 320px; padding: 22px 24px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-raised); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.lp-strip b { font-size: 17px; }
.lp-strip a { font-weight: 600; }

/* menadžeri (uskoro) */
.lp-dash { border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-2); padding: 28px; display: flex; flex-direction: column; gap: 24px; }
.lp-dash .lp-grid--3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.lp-dash__bars { padding: 20px; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface-raised); display: flex; flex-direction: column; gap: 14px; }

/* pitanja */
.lp-faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.lp-faq details:last-child { border-bottom: 1px solid var(--line); }
.lp-faq summary { cursor: pointer; font-size: 18px; font-weight: 600; }
.lp-faq p { margin-top: 10px; }

/* poziv i podnožje */
.lp-cta { background: var(--pine-deep); color: var(--on-pine-deep); }
.lp-cta__in { padding-top: 88px; padding-bottom: 88px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; }
.lp-cta__in > div { flex: 1 1 520px; display: flex; flex-direction: column; gap: 12px; }
.lp-cta__h { font-size: clamp(32px, 4.5vw, 56px); line-height: 1.02; }
.lp-cta__p { margin: 0; font-size: 18px; opacity: .92; }
.lp-cta a:not(.vs-btn) { color: inherit; font-weight: 600; }
.lp-footer { border-top: 1px solid var(--line); }
.lp-footer__in { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--ink-muted); }
.lp-footer__in img { height: 24px; width: auto; }
.lp-footer a { color: var(--ink-muted); }
.lp-sticky { display: none; }

@media (max-width: 900px) { .lp-nav__links { gap: 16px; } .lp-login { display: none; } }

/* ===================== telefon (< 640 px) ===================== */
@media (max-width: 639px) {
  .lp-wrap { padding-left: 16px; padding-right: 16px; }
  .lp-section { padding-top: 48px; padding-bottom: 48px; gap: 24px; }
  .lp-lead { font-size: 17px; }

  /* 1. zaglavlje: jedan red 64 px — logo, SR/EN, meni */
  .lp-nav { height: 64px; padding-top: 0; padding-bottom: 0; gap: 8px; }
  .lp-logo img { height: 28px; }
  .lp-nav__links, .lp-login, .lp-nav__cta { display: none; }
  .lp-nav__end { gap: 8px; }
  .lp-menu { display: block; }

  /* 2. hero */
  .lp-hero { padding-top: 28px; padding-bottom: 40px; gap: 32px; }
  .lp-hero__text { gap: 18px; }
  .lp-hero__cta { flex-wrap: nowrap; gap: 10px; }
  .lp-hero__cta .vs-btn { flex: 1; min-width: 0; height: 52px; padding-left: 10px; padding-right: 10px; justify-content: center; }
  .lp-hero__phone { flex: none; width: 100%; }
  .lp-phone { width: 300px; height: 460px; border-radius: 30px; }
  .lp-phone::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: linear-gradient(transparent, var(--surface)); }
  .lp-phone .vs-cat, .lp-phone .vs-nav { display: none; }

  /* 3. lepljivo dugme */
  .lp-sticky { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .lp-sticky .vs-btn { height: 52px; }

  /* 4. brojke: tri reda, broj levo */
  .lp-facts { padding-top: 20px; padding-bottom: 20px; grid-template-columns: 1fr; gap: 14px; }
  .lp-facts > div { flex-direction: row; align-items: center; gap: 14px; }
  .lp-fact { font-size: 32px; flex: 0 0 132px; }

  /* 5. kako radi: lista, broj levo */
  .lp-steps { gap: 24px; }
  .lp-step-card { padding: 0; border: 0; background: none; flex-direction: row; gap: 16px; }
  .lp-step-card > div { gap: 4px; }
  .lp-step { font-size: 40px; flex: 0 0 32px; }
  .lp-step-card .lp-h3 { font-size: 19px; }

  /* 6. za koga: tabovi iznad jedne kartice (sa JS-om) */
  .lp-tabs { display: flex; gap: 4px; padding: 4px; margin-bottom: 14px; border-radius: var(--radius-pill); background: var(--surface-sunken); }
  .lp-tabs button { flex: 1; min-height: 44px; border: 0; border-radius: var(--radius-pill); background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink-muted); cursor: pointer; }
  .lp-tabs button[aria-selected='true'] { background: var(--surface-raised); color: var(--ink); box-shadow: var(--shadow-1); }
  .lp-who[data-js] .lp-card:not(.is-active) { display: none; }
  .lp-card { padding: 22px; }

  /* 7. proizvod: slika 200 px */
  .lp-product { gap: 28px; }
  .lp-product__demo { flex: 1 1 100%; }
  .lp-product .vs-slide__media { height: 200px; }

  /* 8. menadžeri: jedna kartica + grafikon sa nazivom iznad trake */
  .lp-dash { padding: 16px; gap: 16px; }
  .lp-dash__stats > :not(:nth-child(2)) { display: none; }
  .lp-dash__bars { padding: 14px; }
  .lp-dash .vs-bars__row { grid-template-columns: 1fr 48px; row-gap: 4px; }
  .lp-dash .vs-bars__label { grid-column: 1 / -1; }

  /* 9. cene: vodoravni niz sa „snap”, kartica 85 % širine */
  .lp-plans__track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -16px; padding: 4px 16px 8px; }
  .lp-plans__track::-webkit-scrollbar { display: none; }
  .lp-plans__track > * { flex: 0 0 85%; scroll-snap-align: center; }
  .lp-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
  .lp-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); opacity: .45; }
  .lp-dots i.is-on { background: var(--pine); opacity: 1; }
  .lp-strip { padding: 16px 18px; }

  .lp-faq details { padding: 16px 0; }
  .lp-faq summary { font-size: 17px; }
  .lp-cta__in { padding-top: 56px; padding-bottom: 56px; gap: 20px; }
  .lp-cta__in .vs-btn { width: 100%; justify-content: center; }
  .lp-footer__in { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}
