/* Insistia – oblikovni sistem
   Izhodišče: vmesnik Insistia ERP (kremna podlaga, serifni naslovi, gradientne ikone modulov).
   Postavitev: uredniška mreža 12 stolpcev, ERP svet je svetel papir, varnostni svet je temna "nočna" plošča. */
:root {
  --paper: #f8f5ef;
  --paper-2: #f0ebe1;
  --card: #fffdf9;
  --ink: #1b221e;
  --ink-2: #4b554f;
  --ink-3: #7b847e;
  --line: #e2dbcf;
  --line-2: #d3cabb;
  --rust: #b4521d;
  --rust-2: #d9773d;
  --rust-soft: #fbeee4;
  --on-rust: #ffffff;
  --forest: #24503a;
  --forest-soft: #e6efe8;
  --night: #0d1411;
  --night-2: #141e19;
  --night-3: #1d2a24;
  --night-ink: #e9efe9;
  --night-ink-2: #9fb1a7;
  --signal: #43d9a6;
  --signal-2: #b8ff6a;
  --danger: #c93a46;
  --ok: #2d8a5a;
  --shadow: 0 1px 2px rgba(40, 30, 10, .06), 0 8px 24px -12px rgba(40, 30, 10, .18);
  --shadow-lg: 0 2px 4px rgba(40, 30, 10, .05), 0 24px 60px -24px rgba(40, 30, 10, .32);
  --f-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "Outfit", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #111613; --paper-2: #171e1a; --card: #1a221e; --ink: #ede8df; --ink-2: #b9c0b9; --ink-3: #8a938d;
    --line: #2a332e; --line-2: #37423c; --rust: #e98a4f; --rust-2: #f0a26c; --rust-soft: #2b1d14; --on-rust: #1a0f08; --forest: #8cc7a1; --forest-soft: #1b2a21;
    --night: #080c0a; --night-2: #0f1613; --night-3: #17221d;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -24px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #111613; --paper-2: #171e1a; --card: #1a221e; --ink: #ede8df; --ink-2: #b9c0b9; --ink-3: #8a938d;
  --line: #2a332e; --line-2: #37423c; --rust: #e98a4f; --rust-2: #f0a26c; --rust-soft: #2b1d14; --on-rust: #1a0f08; --forest: #8cc7a1; --forest-soft: #1b2a21;
  --night: #080c0a; --night-2: #0f1613; --night-3: #17221d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px -12px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -24px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.ic { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Tipografija ---------- */
h1, h2, h3, .display { font-family: var(--f-display); font-weight: 500; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; margin: 0; font-variation-settings: "SOFT" 50, "opsz" 96; }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; }
h1 em, h2 em { font-style: italic; color: var(--rust); font-weight: 400; }
p { margin: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--ink-2); max-width: 58ch; }
.eyebrow { font: 600 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--rust); display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; }
.mono { font-family: var(--f-mono); font-size: .85em; }
.muted { color: var(--ink-3); }

/* ---------- Gumbi ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .85em 1.35em; border-radius: 999px; font: 600 .98rem/1 var(--f-body);
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s ease, background .2s, box-shadow .2s, border-color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn .ic { width: 1.1em; height: 1.1em; transition: transform .2s; }
.btn:hover .ic-arrow { transform: translateX(3px); }
.btn-primary { background: var(--rust); color: var(--on-rust); box-shadow: 0 8px 20px -10px var(--rust); }
.btn-primary:hover { background: color-mix(in srgb, var(--rust) 88%, #000); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-signal { background: var(--signal); color: #04150d; }
.btn-signal:hover { background: var(--signal-2); }
.btn-outline-night { border-color: rgba(233, 239, 233, .25); color: var(--night-ink); }
.btn-outline-night:hover { border-color: var(--signal); color: var(--signal); }
.btn-lg { padding: 1.05em 1.6em; font-size: 1.05rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; color: var(--rust); text-decoration: none; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Glava ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 20px; height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 1.5rem/1 var(--f-display); letter-spacing: -.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, var(--rust-2), var(--rust) 55%, #7c3310); box-shadow: inset 0 1px 0 rgba(255,255,255,.25); }
.logo-mark svg { width: 18px; height: 18px; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links > li { position: relative; }
.nav-links a, .nav-links button { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; text-decoration: none;
  font: 500 .96rem/1 var(--f-body); color: var(--ink-2); background: none; border: 0; cursor: pointer; white-space: nowrap; }
.nav-links a:hover, .nav-links button:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--paper-2); }
.nav-links .dot-sec::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 25%, transparent); }
.dropdown { position: absolute; top: calc(100% + 8px); left: -12px; width: 340px; padding: 10px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: all .18s ease; }
.has-dd:hover .dropdown, .has-dd:focus-within .dropdown, .has-dd.open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; white-space: normal; line-height: 1.35; }
.dropdown a strong { display: block; color: var(--ink); font-weight: 600; margin-bottom: 2px; }
.dropdown a span { color: var(--ink-3); font-size: .86rem; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
@media (max-width: 1400px) { .nav-cta .btn-ghost { display: none; } }
@media (max-width: 1180px) {
  .nav-links { position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; background: var(--paper); padding: 12px var(--gutter) 24px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; max-height: calc(100vh - 72px); overflow: auto; }
  .nav-links.open { display: flex; }
  .nav-links a, .nav-links button { padding: 14px 12px; font-size: 1.05rem; width: 100%; justify-content: flex-start; }
  .dropdown { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 12px; background: none; }
  .menu-btn { display: inline-grid; place-items: center; margin-left: auto; }
  .nav-cta .btn-ghost { display: none; }
}
@media (max-width: 520px) { .nav-cta .btn-primary { display: none; } }

/* ---------- Mini ikone modulov (iz vmesnika Insistia ERP) ---------- */
.tile-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 6px 14px -8px rgba(0,0,0,.5); }
.tile-ic .ic { width: 21px; height: 21px; }
.g-dash { background: linear-gradient(150deg, #cf6a2f, #8d3812); }
.g-crm { background: linear-gradient(150deg, #4a7a53, #22402b); }
.g-items { background: linear-gradient(150deg, #34483f, #141e19); }
.g-sales { background: linear-gradient(150deg, #cf8446, #8c461a); }
.g-buy { background: linear-gradient(150deg, #f7962a, #c45c07); }
.g-stock { background: linear-gradient(150deg, #178a74, #0a3a33); }
.g-prod { background: linear-gradient(150deg, #e24d5c, #951c30); }
.g-acc { background: linear-gradient(150deg, #efb52a, #a66f07); }
.g-bank { background: linear-gradient(150deg, #1680ad, #093a55); }
.g-hr { background: linear-gradient(150deg, #a45ae8, #6523ab); }
.g-docs { background: linear-gradient(150deg, #66655f, #2b2a28); }
.g-set { background: linear-gradient(150deg, #4f6d59, #1f3126); }
.g-pay { background: linear-gradient(150deg, #d6457f, #8a1b4b); }
.g-plan { background: linear-gradient(150deg, #3a67d8, #1a348c); }
.g-wms { background: linear-gradient(150deg, #0f9aa3, #0a4b57); }
.g-mes { background: linear-gradient(150deg, #7b8f2a, #3d4a0f); }
.g-sec { background: linear-gradient(150deg, #1fb487, #0a4a38); }
.g-ai { background: linear-gradient(150deg, #5d6cf0, #2c2f9b); }

/* ---------- Sekcije ---------- */
section { padding-block: clamp(64px, 9vw, 120px); }
.sec-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 60px); max-width: 780px; }
.sec-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.band { background: var(--paper-2); border-block: 1px solid var(--line); }

/* Hero */
.hero { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 20px 0 22px; }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--ink-2); font-size: .95rem; }
.hero-proof b { font: 500 1.6rem/1 var(--f-display); color: var(--ink); display: block; margin-bottom: 4px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

/* Razcep dveh smeri */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path { position: relative; border-radius: var(--r-lg); padding: clamp(28px, 3.4vw, 44px); overflow: hidden; display: flex; flex-direction: column; gap: 18px;
  min-height: 460px; text-decoration: none; isolation: isolate; transition: transform .25s ease, box-shadow .25s ease; }
.path:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.path h3 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.path p { max-width: 44ch; }
.path ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.path li { display: flex; gap: 10px; align-items: flex-start; }
.path li .ic { margin-top: 3px; }
.path .path-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.path-erp { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.path-erp .ic-check { color: var(--rust); }
.path-erp p { color: var(--ink-2); }
.path-sec { background: var(--night); color: var(--night-ink); border: 1px solid #22322a; }
.path-sec p { color: var(--night-ink-2); }
.path-sec .ic-check { color: var(--signal); }
.path-sec .eyebrow { color: var(--signal); }
.path-sec::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(67,217,166,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(67,217,166,.08) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(ellipse at 80% 0%, #000 10%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at 80% 0%, #000 10%, transparent 70%); }
.path-tiles { display: flex; gap: 8px; flex-wrap: wrap; }
.path-tiles .tile-ic { width: 38px; height: 38px; border-radius: 10px; }
.path-tiles .tile-ic .ic { width: 18px; height: 18px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .path { min-height: 0; } }

/* Ilustracija v heroju: okno aplikacij */
.app-window { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 18px; position: relative; }
.app-window-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 14px; }
.app-window-head .title { font: 500 1.35rem/1 var(--f-display); display: flex; align-items: center; gap: 10px; }
.app-window-head .title .ic { color: var(--rust); }
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.app-cell { border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px 12px; display: grid; justify-items: center; gap: 8px; text-align: center;
  font-size: .78rem; font-weight: 500; color: var(--ink-2); background: var(--card); transition: border-color .2s, background .2s, transform .2s; cursor: default; }
.app-cell:hover, .app-cell.active { border-color: var(--rust-2); background: var(--rust-soft); transform: translateY(-2px); }
.app-cell .tile-ic { width: 38px; height: 38px; border-radius: 11px; }
.app-cell .tile-ic .ic { width: 18px; height: 18px; }
.float-badge { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 500; }
.float-badge small { display: block; color: var(--ink-3); font-weight: 400; font-size: .75rem; }
.float-badge.b1 { left: -28px; bottom: -40px; }
.float-badge.b2 { right: -22px; top: -18px; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(45,138,90,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(45,138,90,0); } 100% { box-shadow: 0 0 0 0 rgba(45,138,90,0); } }
@media (max-width: 560px) { .float-badge { display: none; } .app-grid { gap: 8px; } }

/* Logotipi / zaupanje */
.trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; justify-content: center; padding-block: 28px; }
.trust-label { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.trust-name { font: 500 1.2rem/1 var(--f-display); color: var(--ink-2); opacity: .85; }

/* Kartice / značilnosti */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card h3 { font-size: 1.35rem; }
.card p { color: var(--ink-2); }
.card .link-arrow { margin-top: auto; }
.card-feature { position: relative; }
.card-feature.hl { border-color: var(--rust-2); box-shadow: 0 0 0 4px var(--rust-soft); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font: 600 .74rem/1 var(--f-body); letter-spacing: .04em;
  background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); width: fit-content; }
.tag-rust { background: var(--rust-soft); color: var(--rust); border-color: transparent; }
.tag-signal { background: rgba(67,217,166,.12); color: var(--signal); border-color: rgba(67,217,166,.3); }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; color: var(--ink-2); }
.checks li .ic { color: var(--rust); margin-top: 4px; width: 1.05em; height: 1.05em; }

/* Produktne vrstice (ERP ponudba) */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 5vw, 64px); border-top: 1px solid var(--line); }
.offer:first-of-type { border-top: 0; }
.offer.rev > :first-child { order: 2; }
.offer-copy { display: grid; gap: 18px; }
.offer-copy h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } .offer.rev > :first-child { order: 0; } }

/* Gantt ilustracija (PPL) */
.gantt { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 18px; overflow: hidden; }
.gantt-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 10px; flex-wrap: wrap; }
.gantt-head strong { font: 500 1.15rem/1 var(--f-display); }
.gantt-scale { display: grid; grid-template-columns: 88px repeat(10, 1fr); font: 500 .7rem/1 var(--f-mono); color: var(--ink-3); margin-bottom: 6px; }
.gantt-row { display: grid; grid-template-columns: 88px 1fr; align-items: center; min-height: 38px; border-top: 1px dashed var(--line); }
.gantt-row .m { font: 500 .78rem/1.2 var(--f-body); color: var(--ink-2); }
.gantt-track { position: relative; height: 26px; }
.gantt-bar { position: absolute; top: 3px; height: 20px; border-radius: 6px; font: 600 .66rem/20px var(--f-mono); color: #fff; padding: 0 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.gantt-bar.a { background: #3a67d8; } .gantt-bar.b { background: #178a74; } .gantt-bar.c { background: #cf6a2f; } .gantt-bar.d { background: #a45ae8; }
.gantt-bar.rush { background: repeating-linear-gradient(135deg, #e24d5c 0 6px, #c93a46 6px 12px); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #e24d5c; }
.gantt-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--rust); }
.gantt-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: .75rem; color: var(--ink-3); }
.gantt-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Temni varnostni svet */
.night { background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; isolation: isolate; }
.night::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .7;
  background-image: linear-gradient(rgba(67,217,166,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(67,217,166,.06) 1px, transparent 1px);
  background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 70% 20%, #000 0%, transparent 65%); }
.night .eyebrow { color: var(--signal); }
.night h1 em, .night h2 em { color: var(--signal); }
.night .lead, .night p { color: var(--night-ink-2); }
.night .card { background: var(--night-2); border-color: var(--night-3); }
.night .card h3 { color: var(--night-ink); }
.night .card p { color: var(--night-ink-2); }
.night .checks li { color: var(--night-ink-2); }
.night .checks li .ic { color: var(--signal); }
.night .band { background: var(--night-2); border-color: var(--night-3); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--night-3); border: 1px solid var(--night-3); border-radius: var(--r); overflow: hidden; }
.stat { background: var(--night-2); padding: 26px; }
.stat b { display: block; font: 500 clamp(2.2rem, 4vw, 3rem)/1 var(--f-display); color: var(--signal); margin-bottom: 8px; }
.stat span { color: var(--night-ink-2); font-size: .95rem; }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr; } }

/* Napadna pot (attack path) */
.attack { background: var(--night-2); border: 1px solid var(--night-3); border-radius: 20px; padding: 22px; font-family: var(--f-mono); font-size: .8rem; }
.attack-head { display: flex; justify-content: space-between; color: var(--night-ink-2); margin-bottom: 16px; gap: 10px; flex-wrap: wrap; }
.attack-head .live { color: var(--signal); display: inline-flex; gap: 8px; align-items: center; }
.attack-head .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: blink 1.4s infinite; }
@keyframes blink { 50% { opacity: .25; } }
.hop { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; position: relative; color: var(--night-ink); }
.hop + .hop::before { content: ""; position: absolute; left: 13px; top: -10px; height: 20px; width: 2px; background: linear-gradient(var(--night-3), #e24d5c); }
.hop .n { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--night-3); color: var(--night-ink-2); font-size: .72rem; }
.hop.crit .n { background: #e24d5c; color: #fff; }
.sev { font-size: .68rem; padding: 3px 8px; border-radius: 6px; border: 1px solid; }
.sev.h { color: #ff8a7a; border-color: rgba(255,138,122,.4); }
.sev.m { color: #ffd166; border-color: rgba(255,209,102,.4); }
.sev.c { color: #fff; background: #c93a46; border-color: #c93a46; }
.attack-foot { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--night-3); color: var(--signal); display: flex; gap: 8px; align-items: center; }

/* Proces */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.step { padding: 28px 24px 8px 0; position: relative; }
.step::before { counter-increment: s; content: "0" counter(s); font: 500 .8rem/1 var(--f-mono); color: var(--rust); display: block; margin-bottom: 18px; }
.step::after { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--rust); }
.step h3 { font-size: 1.3rem; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: .97rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 12px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Panoge */
.industries { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.ind { border: 1px solid var(--line); background: var(--card); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; align-content: start; }
.ind strong { font: 500 1.08rem/1.2 var(--f-display); }
.ind span { font-size: .88rem; color: var(--ink-3); }
@media (max-width: 1000px) { .industries { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .industries { grid-template-columns: 1fr 1fr; } }

/* Moduli Insistia ERP */
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.module { border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 20px 14px 16px; display: grid; justify-items: center; gap: 12px; text-align: center;
  font: 500 .95rem/1.25 var(--f-body); color: var(--ink); cursor: pointer; transition: all .2s; position: relative; }
.module:hover, .module[aria-pressed="true"] { border-color: var(--rust-2); background: var(--rust-soft); transform: translateY(-2px); }
.module .tile-ic { width: 52px; height: 52px; border-radius: 14px; }
.module .tile-ic .ic { width: 24px; height: 24px; }
.module .new { position: absolute; top: 8px; right: 8px; font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; font-weight: 700; color: var(--rust); }
.module-detail { margin-top: 20px; border: 1px solid var(--line); background: var(--card); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 36px);
  display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; box-shadow: var(--shadow); }
.module-detail .tile-ic { width: 64px; height: 64px; border-radius: 18px; }
.module-detail .tile-ic .ic { width: 30px; height: 30px; }
.module-detail h3 { margin-bottom: 8px; }
.module-detail p { color: var(--ink-2); margin-bottom: 14px; }
.module-detail .checks { grid-template-columns: 1fr 1fr; }
@media (max-width: 640px) { .module-detail { grid-template-columns: 1fr; } .module-detail .checks { grid-template-columns: 1fr; } }

/* Primerjava */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
table.compare { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .96rem; }
.compare th, .compare td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare thead th { font: 500 1.1rem/1.2 var(--f-display); background: var(--paper-2); }
.compare tbody th { font-weight: 500; color: var(--ink-2); }
.compare td .ic { color: var(--ok); }
.compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }

/* Svetovalec (kviz) */
.quiz { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); box-shadow: var(--shadow); }
.quiz-q { font: 500 1.4rem/1.25 var(--f-display); margin-bottom: 18px; }
.quiz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.quiz-opt { text-align: left; padding: 16px 18px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); font: 500 1rem/1.35 var(--f-body); cursor: pointer; }
.quiz-opt:hover { border-color: var(--rust); }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 22px; }
.quiz-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.quiz-progress i.on { background: var(--rust); }
.quiz-result h3 { margin: 10px 0; }
.quiz-result p { color: var(--ink-2); margin-bottom: 18px; }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); padding: 0 22px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font: 500 1.12rem/1.35 var(--f-display); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 1.5rem/1 var(--f-body); color: var(--rust); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 20px; color: var(--ink-2); max-width: 70ch; }
.night .faq details { background: var(--night-2); border-color: var(--night-3); }
.night .faq summary { color: var(--night-ink); }
.night .faq summary::after { color: var(--signal); }

/* CTA pas */
.cta-band { border-radius: var(--r-lg); padding: clamp(32px, 5vw, 64px); background: linear-gradient(135deg, #b4521d, #7c3310); color: #fff;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; }
.cta-band h2 em { color: #ffd9bd; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 12px; }
.cta-band .btn-primary { background: #fff; color: #7c3310; box-shadow: none; }
.cta-band .btn-ghost { background: transparent; border-color: rgba(255,255,255,.4); color: #fff; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 800px) { .cta-band { grid-template-columns: 1fr; } .cta-band .actions { justify-content: flex-start; } }

/* Obrazci */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .lbl { font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; font: 400 1rem/1.4 var(--f-body); padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2);
  background: var(--paper); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--rust); box-shadow: 0 0 0 4px var(--rust-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--line-2); font-size: .92rem; font-weight: 500; background: var(--paper); cursor: pointer; }
.chip input:checked + span { border-color: var(--rust); background: var(--rust-soft); color: var(--rust); }
.chip input:focus-visible + span { outline: 2px solid var(--rust); outline-offset: 2px; }
.optional { border: 1px dashed var(--line-2); border-radius: 14px; padding: 4px 16px; }
.optional summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink-2); font-size: .92rem; }
.optional .form-grid { padding-bottom: 16px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink-2); }
.check input { margin-top: 3px; accent-color: var(--rust); width: 17px; height: 17px; flex: none; }
.hp { position: absolute; left: -9999px; }
.form-msg { padding: 14px 16px; border-radius: 12px; font-weight: 500; }
.form-msg.ok { background: var(--forest-soft); color: var(--forest); }
.form-msg.err { background: #fde8ea; color: #9b1c2c; }
.form-success { text-align: center; display: grid; gap: 14px; justify-items: center; padding: 20px 0; }
.form-success .tile-ic { width: 60px; height: 60px; }

/* Članki */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .posts { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .posts { grid-template-columns: 1fr; } }
.post { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; transition: all .2s; min-width: 0; }
.post:hover { border-color: var(--rust-2); transform: translateY(-3px); box-shadow: var(--shadow); }
.post h3 { font-size: 1.3rem; }
.post p { color: var(--ink-2); font-size: .95rem; }
.post .meta { display: flex; gap: 10px; align-items: center; font-size: .8rem; color: var(--ink-3); margin-top: auto; }
.article { max-width: 760px; margin: 0 auto; }
.article-head { display: grid; gap: 18px; margin-bottom: 36px; }
.article-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px 18px; color: var(--ink-3); font-size: .9rem; align-items: center; }
.prose { font-size: 1.08rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 1.9rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-inline: 0; border-left: 3px solid var(--rust); padding: 4px 0 4px 20px; font-family: var(--f-display); font-size: 1.25rem; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.prose a { color: var(--rust); }
.tldr { background: var(--rust-soft); border-radius: var(--r); padding: 20px 24px; }
.tldr strong { display: block; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--rust); margin-bottom: 6px; }
.breadcrumbs { font-size: .88rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--rust); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filters button { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--card); font: 500 .92rem/1 var(--f-body); color: var(--ink-2); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Noga */
.site-footer { background: var(--night); color: var(--night-ink-2); padding-block: 72px 32px; margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px; }
.site-footer h4 { color: var(--night-ink); font: 600 .8rem/1 var(--f-body); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--night-ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--signal); }
.site-footer .logo { color: var(--night-ink); margin-bottom: 16px; }
.foot-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-3); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .85rem; }
.foot-bottom button { background: none; border: 0; color: var(--night-ink-2); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

/* Soglasje za piškotke */
.consent { position: fixed; z-index: 90; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); max-width: 560px; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); padding: 22px; display: grid; gap: 14px; }
.consent h4 { margin: 0; font: 500 1.2rem/1.2 var(--f-display); }
.consent p { font-size: .9rem; color: var(--ink-2); }
.consent .row { display: flex; flex-wrap: wrap; gap: 8px; }
.consent .btn { padding: .7em 1.1em; font-size: .9rem; }
.consent-opts { display: grid; gap: 10px; border-top: 1px solid var(--line); padding-top: 12px; }
.consent-opts label { display: flex; gap: 10px; font-size: .88rem; color: var(--ink-2); align-items: flex-start; }
.consent-opts input { accent-color: var(--rust); margin-top: 3px; }

/* Klepet */
.chat-fab { position: fixed; z-index: 80; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 20px 14px 16px; border-radius: 999px; background: var(--ink); color: var(--paper); border: 0; font: 600 .95rem/1 var(--f-body); cursor: pointer; box-shadow: var(--shadow-lg); }
.chat-fab .ic { width: 22px; height: 22px; }
.chat-fab .badge { width: 9px; height: 9px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--ink); }
.chat-panel { position: fixed; z-index: 85; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); width: min(390px, calc(100vw - 32px)); height: min(600px, calc(100vh - 110px));
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden; }
.chat-top { padding: 18px 18px 14px; background: var(--ink); color: var(--paper); display: flex; gap: 12px; align-items: center; }
.chat-top .who strong { display: block; font: 500 1.1rem/1.2 var(--f-display); }
.chat-top .who span { font-size: .8rem; opacity: .75; display: inline-flex; gap: 6px; align-items: center; }
.chat-top .who span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.chat-top button { margin-left: auto; background: none; border: 0; color: inherit; cursor: pointer; padding: 6px; border-radius: 8px; }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: .94rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.them { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.me { background: var(--rust); color: var(--on-rust); border-bottom-right-radius: 4px; align-self: flex-end; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { border: 1.5px solid var(--rust); color: var(--rust); background: var(--card); padding: 8px 12px; border-radius: 999px; font: 500 .86rem/1 var(--f-body); cursor: pointer; }
.quick button:hover { background: var(--rust-soft); }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--card); }
.chat-form input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-2); font: 400 .95rem/1.3 var(--f-body); background: var(--paper); color: var(--ink); }
.chat-form button { width: 46px; border-radius: 12px; border: 0; background: var(--rust); color: var(--on-rust); cursor: pointer; display: grid; place-items: center; }

/* Predogled – pasica */
.preview-bar { background: #1b221e; color: #f8f5ef; font-size: .85rem; text-align: center; padding: 8px 16px; }
.preview-bar a { color: var(--signal); font-weight: 600; }

/* Animacija ob prikazu – vidno že v mirovanju */
.reveal { transition: transform .6s cubic-bezier(.2,.7,.2,1), opacity .6s; }
.js .reveal.pre { transform: translateY(18px); }

/* Temna glava na strani za varnost */
.page-night { background: var(--night); }
.page-night .site-header { background: color-mix(in srgb, var(--night) 88%, transparent); }
.page-night .site-header.scrolled { border-bottom-color: var(--night-3); }
.page-night .logo { color: var(--night-ink); }
.page-night .nav-links a, .page-night .nav-links button { color: var(--night-ink-2); }
.page-night .nav-links a:hover, .page-night .nav-links a[aria-current="page"] { color: var(--night-ink); background: var(--night-3); }
.page-night .dropdown { background: var(--night-2); border-color: var(--night-3); }
.page-night .dropdown a strong { color: var(--night-ink); }
.page-night .btn-ghost { background: transparent; color: var(--night-ink); border-color: rgba(233,239,233,.25); }
.page-night .menu-btn { background: var(--night-2); border-color: var(--night-3); color: var(--night-ink); }
.page-night .form-card { background: var(--card); color: var(--ink); }
.page-night .form-card p { color: var(--ink-3); }
.page-night .breadcrumbs span { color: var(--night-ink-2); }
@media (max-width: 1180px) { .page-night .nav-links { background: var(--night); border-color: var(--night-3); } }
.page-night .consent .btn-ghost, .page-night .chat-panel .btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); }
.page-night .consent a { color: var(--ink); }

/* Potek posla (CRM → plačilo) */
.lifecycle { gap: 18px; box-shadow: var(--shadow-lg); }
.lc { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.lc li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 10px 0; position: relative; }
.lc li + li::before { content: ""; position: absolute; left: 21px; top: -10px; height: 20px; width: 2px; background: var(--line-2); }
.lc strong { display: block; font-weight: 600; }
.lc small { color: var(--ink-3); font-size: .86rem; }
#poudarki-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { #poudarki-grid { grid-template-columns: 1fr; } }

/* Insistia Cloud (SaaS portali) */
.tag-live { background: rgba(45,138,90,.12); color: var(--ok); border-color: transparent; font-size: .66rem; padding: 3px 7px; vertical-align: 1px; margin-left: 4px; }
.dropdown .tag { font-size: .66rem; padding: 3px 7px; margin-left: 4px; vertical-align: 1px; }
.portals { display: grid; gap: 12px; }
.portal { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 18px 20px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); }
.portal strong { display: block; font: 500 1.2rem/1.2 var(--f-display); }
.portal small { color: var(--ink-3); }
.portal.live { box-shadow: var(--shadow-lg); border-color: var(--rust-2); transition: transform .2s; }
.portal.live:hover { transform: translateY(-2px); }
.portal.soon { opacity: .78; border-style: dashed; }
.status { font: 600 .74rem/1 var(--f-body); padding: 6px 10px; border-radius: 999px; background: var(--paper-2); color: var(--ink-3); white-space: nowrap; }
.status.on { background: rgba(45,138,90,.12); color: var(--ok); }
.status.on::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.cloud-strip { display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: center; padding: 26px 30px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); }
.cloud-copy { display: grid; gap: 8px; min-width: 0; }
.cloud-copy h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.cloud-copy h3 em { font-style: italic; color: var(--rust); font-weight: 400; }
.cloud-copy p { color: var(--ink-2); }
.cloud-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 760px) { .cloud-strip { grid-template-columns: 1fr; padding: 22px; } }
@media (max-width: 1100px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }

.offer > *, .hero-grid > * { min-width: 0; }
@media (max-width: 520px) { .btn { white-space: normal; text-align: center; } }

.products { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .products { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .products { grid-template-columns: 1fr; } }

/* =====================================================================
   DocSys – identiteta. Prepiše žetone Insistia osnove.
   Koncept: hladen pisarniški papir, kobaltno črnilo, zelen žig odobritve.
   (Imena žetonov --rust* so ohranjena zaradi skupne osnove: --rust = primarni poudarek.)
   ===================================================================== */
:root {
  --paper: #f5f6f8; --paper-2: #eaedf2; --card: #ffffff;
  --ink: #111a2c; --ink-2: #444f68; --ink-3: #747e94;
  --line: #dde2ea; --line-2: #c9d0dc;
  --rust: #2347d6; --rust-2: #5873ee; --rust-soft: #e7ecff; --on-rust: #ffffff;
  --forest: #127a52; --forest-soft: #e1f3ea; --ok: #127a52;
  --stamp: #13875b;
  --night: #0e1424; --night-2: #151d31; --night-3: #212b43; --night-ink: #eef1f8; --night-ink-2: #a3adc4;
  --signal: #7fa2ff; --signal-2: #b3c6ff;
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Consolas, monospace;
  --shadow: 0 1px 2px rgba(17, 26, 44, .06), 0 8px 24px -12px rgba(17, 26, 44, .2);
  --shadow-lg: 0 2px 4px rgba(17, 26, 44, .05), 0 28px 60px -26px rgba(17, 26, 44, .38);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0d1220; --paper-2: #131a2b; --card: #171f33; --ink: #edf0f7; --ink-2: #b8c0d3; --ink-3: #8790a6;
    --line: #262f45; --line-2: #333d56; --rust: #7f9bff; --rust-2: #a3b6ff; --rust-soft: #1c2647; --on-rust: #0b1022;
    --forest: #4fd29a; --forest-soft: #112a21; --ok: #4fd29a; --stamp: #4fd29a;
    --night: #080c16; --night-2: #0f1526; --night-3: #1b2338;
  }
}
:root[data-theme="dark"] {
  --paper: #0d1220; --paper-2: #131a2b; --card: #171f33; --ink: #edf0f7; --ink-2: #b8c0d3; --ink-3: #8790a6;
  --line: #262f45; --line-2: #333d56; --rust: #7f9bff; --rust-2: #a3b6ff; --rust-soft: #1c2647; --on-rust: #0b1022;
  --forest: #4fd29a; --forest-soft: #112a21; --ok: #4fd29a; --stamp: #4fd29a;
  --night: #080c16; --night-2: #0f1526; --night-3: #1b2338;
}
h1, h2, h3, .display { font-weight: 650; letter-spacing: -.035em; font-variation-settings: normal; }
h1 { font-size: clamp(2.3rem, 4.8vw, 3.6rem); line-height: 1.04; }
h1 em, h2 em { font-style: normal; color: var(--rust); font-weight: inherit; background: linear-gradient(transparent 72%, var(--rust-soft) 72%); }
.logo { font-family: var(--f-display); font-weight: 700; letter-spacing: -.04em; }
.logo-mark { background: linear-gradient(150deg, #4c6cf0, #2347d6 55%, #142c99); border-radius: 9px; }
.trust-name { font-family: var(--f-display); font-weight: 600; }
.stat b, .hero-proof b { font-family: var(--f-display); font-weight: 650; }

/* Hero: dokument z žigom odobritve */
.doc-stage { position: relative; padding: 24px 10px 40px 30px; }
.doc-sheet { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 22px 24px; display: grid; gap: 16px; }
.doc-sheet.back { position: absolute; inset: 0 34px 58px 0; transform: rotate(-4deg); opacity: .7; box-shadow: var(--shadow); }
.doc-sheet.back2 { position: absolute; inset: 10px 18px 48px 14px; transform: rotate(2.5deg); opacity: .85; box-shadow: var(--shadow); }
.doc-head { display: flex; align-items: center; gap: 12px; }
.doc-head .tile-ic { width: 40px; height: 40px; }
.doc-head strong { display: block; font: 600 1rem/1.2 var(--f-body); }
.doc-head small { color: var(--ink-3); font: 500 .76rem/1.3 var(--f-mono); }
.doc-meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font: 500 .8rem/1.4 var(--f-mono); color: var(--ink-2); border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); padding: 12px 0; }
.doc-meta dt { color: var(--ink-3); } .doc-meta dd { margin: 0; }
.flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.flow span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px; font: 600 .74rem/1 var(--f-body); background: var(--paper-2); color: var(--ink-3); }
.flow span.done { background: var(--forest-soft); color: var(--forest); }
.flow span.now { background: var(--rust-soft); color: var(--rust); box-shadow: inset 0 0 0 1.5px var(--rust-2); }
.flow i { width: 14px; height: 1.5px; background: var(--line-2); }
.stamp { position: absolute; right: 18px; top: 64px; transform: rotate(-11deg); border: 3px solid var(--stamp); color: var(--stamp); border-radius: 10px; padding: 6px 12px 5px;
  font: 700 1.05rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; opacity: .88; mix-blend-mode: multiply; }
.stamp small { display: block; font: 500 .6rem/1.3 var(--f-mono); letter-spacing: .04em; text-transform: none; }
:root[data-theme="dark"] .stamp { mix-blend-mode: normal; }
.chip-float { position: absolute; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px 12px; box-shadow: var(--shadow);
  font: 600 .78rem/1.2 var(--f-mono); display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
.chip-float.c1 { left: -6px; bottom: 6px; }
.chip-float.c2 { right: -8px; bottom: 22px; }
.chip-float b { color: var(--forest); }
@media (max-width: 560px) { .chip-float { display: none; } .doc-stage { padding: 16px 4px 24px 12px; } .stamp { top: 70px; right: 10px; } }

/* Časovnica začetka */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.timeline > div { padding: 22px 22px 0 0; position: relative; display: grid; gap: 8px; align-content: start; }
.timeline > div::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--rust); }
.timeline .when { font: 600 .78rem/1 var(--f-mono); color: var(--rust); }
.timeline h3 { font-size: 1.25rem; }
.timeline p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 860px) { .timeline { grid-template-columns: 1fr 1fr; row-gap: 14px; } }
@media (max-width: 520px) { .timeline { grid-template-columns: 1fr; } }

/* Integracijski diagram */
.hub { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.hub-col { display: grid; gap: 10px; }
.hub-node { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; font-weight: 600; font-size: .95rem; }
.hub-node small { display: block; font-weight: 400; color: var(--ink-3); font-size: .8rem; }
.hub-core { width: 150px; height: 150px; border-radius: 32px; display: grid; place-items: center; text-align: center; color: #fff; background: linear-gradient(150deg, #4c6cf0, #2347d6 55%, #142c99);
  box-shadow: 0 20px 50px -20px #2347d6; font: 700 1.35rem/1.1 var(--f-display); letter-spacing: -.03em; }
.hub-core small { display: block; font: 500 .72rem/1.3 var(--f-mono); opacity: .8; letter-spacing: 0; }
@media (max-width: 820px) { .hub { grid-template-columns: 1fr; justify-items: stretch; } .hub-core { margin: 0 auto; width: 120px; height: 120px; } }
pre.code { background: var(--night); color: #dfe6ff; border-radius: 14px; padding: 18px 20px; font: 500 .8rem/1.6 var(--f-mono); overflow-x: auto; margin: 0; }
pre.code .k { color: #8fb0ff; } pre.code .s { color: #8be3b8; } pre.code .c { color: #7d879e; }

/* Cenik */
.billing-toggle { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; }
.billing-toggle button { border: 0; background: none; padding: 9px 16px; border-radius: 999px; font: 600 .92rem/1 var(--f-body); color: var(--ink-2); cursor: pointer; }
.billing-toggle button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.billing-toggle .save { font-size: .74rem; color: var(--forest); margin-left: 4px; }
.billing-toggle button[aria-pressed="true"] .save { color: #9ff0c8; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 520px; } }
.plan { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.plan.hl { border: 2px solid var(--rust); box-shadow: var(--shadow-lg); }
.plan-badge { position: absolute; top: -13px; left: 26px; background: var(--rust); color: var(--on-rust); font: 700 .72rem/1 var(--f-body); letter-spacing: .04em; padding: 7px 11px; border-radius: 999px; }
.plan h3 { font-size: 1.6rem; }
.plan-tag { color: var(--ink-2); min-height: 3em; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price .amount { font: 700 2.6rem/1 var(--f-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.price .per { color: var(--ink-3); }
.price-note { color: var(--ink-3); font-size: .85rem; margin-top: -8px; }
.btn-block { width: 100%; }
.plan .checks { margin-top: 4px; }
.plan-extra { font-size: .85rem; color: var(--ink-3); margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); }
.compare-plans td, .compare-plans th { text-align: center; }
.compare-plans th:first-child, .compare-plans td:first-child { text-align: left; }

/* Nakup */
.checkout { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 960px) { .checkout { grid-template-columns: 1fr; } }
.summary { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: grid; gap: 14px; box-shadow: var(--shadow); }
.summary h3 { font-size: 1.3rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--ink-2); }
.sum-row b { color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-total { border-top: 1px solid var(--line); padding-top: 12px; font-size: 1.1rem; }
.sum-total b { font: 700 1.5rem/1 var(--f-display); }
.sum-note { font-size: .82rem; color: var(--ink-3); }
.step-title { display: flex; align-items: center; gap: 10px; font: 650 1.15rem/1.2 var(--f-display); margin: 6px 0 14px; }
.step-title span { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--rust-soft); color: var(--rust); font: 700 .8rem/1 var(--f-mono); }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.radio-card { position: relative; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px 16px; cursor: pointer; display: grid; gap: 4px; background: var(--paper); }
.radio-card input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-card strong { font-size: 1rem; }
.radio-card small { color: var(--ink-3); }
.radio-card:has(input:checked) { border-color: var(--rust); background: var(--rust-soft); }
.radio-card:has(input:focus-visible) { outline: 2px solid var(--rust); outline-offset: 2px; }
.radio-card:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 40px; height: 44px; border-radius: 10px; border: 1.5px solid var(--line-2); background: var(--card); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.stepper input { width: 90px; text-align: center; }
.bank { background: var(--paper-2); border-radius: 14px; padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: .92rem; }
.bank dt { color: var(--ink-3); } .bank dd { margin: 0; font-family: var(--f-mono); overflow-wrap: anywhere; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .85rem; background: var(--paper-2); }
.status-pill.ok { background: var(--forest-soft); color: var(--forest); }
.status-pill.wait { background: var(--rust-soft); color: var(--rust); }

.bands { width: 100%; border-collapse: collapse; font-size: .88rem; margin: 2px 0 4px; }
.bands td { padding: 6px 0; border-top: 1px dashed var(--line); color: var(--ink-2); }
.bands td:last-child { text-align: right; font: 600 .88rem/1 var(--f-mono); color: var(--ink); font-variant-numeric: tabular-nums; }

.onprem-note { margin: 22px auto 0; max-width: 760px; padding: 14px 18px; border: 1px solid var(--line); border-left: 4px solid var(--forest); border-radius: 10px; background: var(--card); color: var(--ink-2); font-size: .95rem; }
.plan .onprem[hidden], .plan .saas[hidden] { display: none; }
