/* Komunalio - javna stranica. Rucno odrzavano, bez build alata, bez vanjskih ovisnosti. */

/* ---------- Fontovi ---------- */
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/archivo-v25-latin_latin-ext-500.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/archivo-v25-latin_latin-ext-600.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/archivo-v25-latin_latin-ext-700.woff2") format("woff2"); }
@font-face { font-family: "Archivo"; font-style: normal; font-weight: 800; font-display: swap; src: url("/fonts/archivo-v25-latin_latin-ext-800.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-v23-latin_latin-ext-regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: italic; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-sans-v23-latin_latin-ext-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/ibm-plex-sans-v23-latin_latin-ext-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/ibm-plex-mono-v20-latin_latin-ext-regular.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/ibm-plex-mono-v20-latin_latin-ext-500.woff2") format("woff2"); }

/* ---------- Tokeni ---------- */
:root {
  --font-head: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --navy: #111927;
  --ink: #0b1220;
  --paper: #ffffff;
  --paper-2: #f6f7f9;
  --line: #e6e8ec;
  --line-2: #cfd3da;
  --gray: #8b92a3;
  --gray-2: #4b5563;
  --blue: #2f6bff;
  --blue-hover: #1f58e6;

  --on-navy: #ffffff;
  --on-navy-2: #b7bdc9;
  --navy-line: rgba(255, 255, 255, .14);
  --navy-2: #182233;

  --text: var(--ink);
  --text-2: var(--gray-2);

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-shot: 0 40px 80px -24px rgba(11, 18, 32, .35), 0 12px 28px -12px rgba(11, 18, 32, .18);
  --shadow-crop: 0 24px 48px -18px rgba(11, 18, 32, .35), 0 4px 12px -4px rgba(11, 18, 32, .12);

  --wrap: 1200px;
  --gutter: 24px;
  --sec: clamp(88px, 10vw, 150px);
  --bleed: clamp(120px, 18vw, 240px);
}

/* ---------- Baza ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); margin: 0; font-weight: 800; line-height: 1.05; letter-spacing: -0.025em; }
h1 { font-size: clamp(44px, 5.6vw, 80px); letter-spacing: -0.03em; line-height: 1.02; }
h2 { font-size: clamp(34px, 3.6vw, 48px); }
h3 { font-size: clamp(26px, 2.8vw, 40px); }
h4 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
ul, ol { margin: 0; padding: 0; }
code, pre, kbd { font-family: var(--font-mono); }
code { background: var(--paper-2); border: 1px solid var(--line); border-radius: 4px; padding: .05em .35em; color: var(--ink); font-size: .92em; }
pre { background: var(--navy); color: var(--on-navy); border-radius: var(--radius-lg); padding: 22px 24px; overflow-x: auto; line-height: 1.6; font-size: 14px; margin: 0; }
pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--sec) 0; }
.section--line { border-top: 1px solid var(--line); }
.section--paper { background: var(--paper-2); }
.section--navy { background: var(--navy); color: var(--on-navy); }
.section--navy h2, .section--navy h3, .section--navy h4 { color: #fff; }
.section--navy p { color: #c3c8d3; }
.section--navy .h-muted { color: #8b92a3; }
.section--navy a { color: #fff; }
.lead { font-size: 20px; line-height: 1.5; color: var(--text-2); }
.muted { color: var(--text-2); }
.small { font-size: 15px; }
.mono { font-family: var(--font-mono); }

/* Naslov sekcije: naslov + odlomak, bez nadnaslova */
.sec-head { max-width: 820px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head p { margin-top: 20px; font-size: 19px; color: var(--text-2); max-width: 680px; }
h2 .h-muted, .h-muted { color: var(--gray); display: inline-block; }
.sec-head h2 { font-size: clamp(36px, 4vw, 56px); }
.sec-head--row h2 { max-width: none; }
.sec-head--row { max-width: none; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.sec-head--row p { margin-top: 0; }

/* ---------- Gumbi ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--radius); border: 1px solid transparent; font-family: var(--font-body); font-weight: 600; font-size: 15px; line-height: 1; cursor: pointer; white-space: nowrap; transition: background-color .15s, border-color .15s, color .15s; }
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); }
.btn--secondary { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn--secondary:hover { border-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--line); }
.section--navy .btn--light, .section--navy .btn--light:hover, .hero .btn--light, .hero .btn--light:hover, .cta-band .btn--light, .cta-band .btn--light:hover { color: var(--ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { border-color: #fff; }
.btn--lg { min-height: 54px; padding: 0 28px; font-size: 17px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-more { font-weight: 600; font-size: 17px; }

/* ---------- Zaglavlje ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--gray-2); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 6px; white-space: nowrap; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-actions .btn { min-height: 38px; padding: 0 16px; font-size: 14px; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.menu-btn .ico-close { display: none; }
.menu-btn[aria-expanded="true"] .ico-open { display: none; }
.menu-btn[aria-expanded="true"] .ico-close { display: block; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.is-open { display: block; }
.mobile-nav .wrap { padding-top: 8px; padding-bottom: 20px; display: flex; flex-direction: column; }
.mobile-nav a { display: block; padding: 14px 4px; font-weight: 500; color: var(--ink); font-size: 17px; border-bottom: 1px solid var(--line); }
.mobile-nav a:hover { text-decoration: none; }
.mobile-nav .btn-row { margin-top: 16px; }
.mobile-nav .btn-row .btn { flex: 1 1 auto; border-bottom: 1px solid transparent; }
.mobile-nav .btn-row .btn--primary { color: #fff; }

/* ---------- Hero (svijetlo, centrirano, rezirana scena) ---------- */
.hero { background: var(--paper-2); color: var(--ink); padding: clamp(64px, 8vw, 112px) 0 0; overflow: hidden; }
.hero__copy { max-width: 900px; margin: 0 auto; text-align: center; }
.hero h1 { color: var(--ink); font-size: clamp(44px, 5.9vw, 84px); max-width: none; margin: 0 auto; }
.hero h1 span { display: block; }
.hero .lead { margin: 28px auto 0; max-width: 640px; color: var(--gray-2); font-size: 22px; line-height: 1.45; }
.hero .btn-row { margin-top: 36px; justify-content: center; }
.hero__note { margin-top: 20px; font-size: 15px; color: var(--gray-2); }

/* Scena: laptop + telefon + kartica, odrezana na dnu sekcije */
.stage { position: relative; width: 100%; max-width: 1000px; margin: clamp(56px, 7vw, 88px) auto 0; aspect-ratio: 1000 / 520; overflow: hidden; }
.stage__laptop { position: absolute; left: 0; right: 0; top: 0; }
.stage__phone { position: absolute; right: -1%; bottom: 0; width: 22%; z-index: 3; }
.stage__card { position: absolute; left: -2%; bottom: 7%; width: 42%; z-index: 3; }

/* ---------- Uredaji (CSS okviri) ---------- */
.laptop { width: 100%; margin: 0; }
.laptop__screen { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 1px 2px rgba(17,25,39,.06), 0 24px 48px -16px rgba(17,25,39,.28); }
.laptop__screen img, .laptop__screen .crop { display: block; width: 100%; height: auto; border-radius: 0; border: 0; box-shadow: none; }
.laptop__base { display: none; }
.laptop--sm .laptop__screen { border-radius: 10px; }
.laptop--sm .laptop__base { display: none; }
.phone { width: 100%; max-width: 320px; margin: 0 auto; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 30px; box-shadow: 0 1px 2px rgba(17,25,39,.06), 0 24px 48px -16px rgba(17,25,39,.28); }
.phone img, .phone .crop { border-radius: 22px; width: 100%; height: auto; border: 1px solid var(--line); box-shadow: none; }
.phone .crop { aspect-ratio: var(--cw) / var(--ch); }
.card { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(17,25,39,.06), 0 24px 48px -16px rgba(17,25,39,.28); overflow: hidden; }
.card .crop { border: 0; border-radius: 0; box-shadow: none; }
.card--border { border: 1px solid var(--line); }

/* Izrez detalja: koordinate u pikselima izvorne snimke (--cx, --cy, --cw, --ch), --iw/--ih dimenzije snimke */
.crop { --iw: 1600; --ih: 1000; position: relative; overflow: hidden; aspect-ratio: var(--cw) / var(--ch); background: #fff; border: 1px solid var(--line-2); border-radius: 8px; box-shadow: var(--shadow-crop); margin: 0; }
.crop img { position: absolute; left: 0; top: 0; max-width: none; width: calc(var(--iw) / var(--cw) * 100%); height: auto; transform: translate(calc(var(--cx) / var(--iw) * -100%), calc(var(--cy) / var(--ih) * -100%)); }
.crop--flat { box-shadow: none; }
.section--navy .crop { border-color: rgba(255,255,255,.18); }

/* Oznaka (callout) uz izrez: tanka linija + tekst */
.callout { position: relative; display: block; padding-left: 36px; margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.callout::before { content: ""; position: absolute; left: 0; top: .75em; width: 24px; height: 1px; background: var(--ink); }
.callout b { color: var(--ink); font-weight: 600; }
.section--navy .callout { color: var(--on-navy-2); }
.section--navy .callout::before { background: #fff; }
.section--navy .callout b { color: #fff; }
.num { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-mono); font-size: 13px; font-weight: 500; flex: none; }

/* Snimka u tankom okviru (tiket u Kako radi) */
.shot { background: #fff; border: 1px solid var(--line-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-shot); overflow: hidden; margin: 0; }
.shot img { width: 100%; height: auto; }

/* ---------- Traka tvrdnji ---------- */
.claims { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.claims__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.claim { padding: 36px 32px 36px 0; margin-right: 32px; border-right: 1px solid var(--line); }
.claim:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.claim__t { font-family: var(--font-head); color: var(--ink); font-size: 27px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.claim p { margin-top: 10px; font-size: 15px; color: var(--gray-2); line-height: 1.5; }

/* ---------- Brojke (u Kontrolnoj sobi) ---------- */
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 64px; border-top: 1px solid var(--navy-line); padding-top: 40px; }
.fact { padding: 0 32px 0 0; margin-right: 32px; border-right: 1px solid var(--navy-line); }
.fact:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.fact strong { display: block; font-family: var(--font-head); font-weight: 800; font-size: 44px; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.fact--wide strong { font-size: 34px; padding-top: 6px; }
.fact span { display: block; margin-top: 12px; font-size: 16px; color: var(--on-navy-2); line-height: 1.45; }

/* ---------- Uredničke dvostupacne sekcije ---------- */
.editorial { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.editorial > * { min-width: 0; }
.editorial h2 { max-width: 14ch; }
.editorial__lead { margin-top: 24px; font-size: 19px; color: var(--text-2); max-width: 520px; }
.points { list-style: none; border-top: 1px solid var(--line); }
.points li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.points__n { font-family: var(--font-mono); font-size: 15px; color: var(--gray-2); padding-top: 6px; }
.points h3 { font-size: 22px; letter-spacing: -0.015em; margin-bottom: 8px; }
.points p { color: var(--text-2); font-size: 17px; }

/* ---------- Kako radi: vremenska crta ---------- */
.timeline { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; counter-reset: tl; }
.tl { position: relative; padding-top: 28px; }
.tl::before { content: ""; position: absolute; left: 0; right: -24px; top: 0; height: 1px; background: var(--line-2); }
.tl:last-child::before { right: 0; }
.tl::after { content: ""; position: absolute; left: 0; top: -4px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink); }
.tl__n { font-family: var(--font-head); font-weight: 800; font-size: 40px; letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.tl h3 { font-size: 20px; letter-spacing: -0.01em; margin: 14px 0 8px; }
.tl p { font-size: 16px; color: var(--text-2); line-height: 1.5; }
.showcase { margin-top: clamp(56px, 7vw, 96px); }
.showcase__shot { position: relative; }
.marker { position: absolute; z-index: 3; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(11,18,32,.3); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 32px; }
.legend li { list-style: none; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; font-size: 16px; color: var(--text-2); }
.legend b { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Mogucnosti: prizori (rezirane kompozicije, jedan fokus) ---------- */
.scene { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: center; padding: clamp(64px, 8vw, 120px) 0; }
.scene > * { min-width: 0; }
.scene + .scene { border-top: 1px solid var(--line); }
.scene:first-of-type { padding-top: 0; }
.scene:last-of-type { padding-bottom: 0; }
.scene--flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.scene--flip .scene__copy { order: 2; }
.scene--flip .scene__visual { order: 1; }
.scene__copy h3 { font-size: clamp(30px, 3.2vw, 40px); }
.scene__copy > p { margin-top: 20px; font-size: 18px; color: var(--text-2); }
.lines { list-style: none; margin-top: 28px; border-top: 1px solid var(--line); }
.lines li { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--ink); }
.scene__visual { min-width: 0; }

.comp { position: relative; }
.comp__caption { margin-top: 16px; }
/* Tiketi: manji laptop lijevo gore, velika SLA kartica ispred dolje desno */
.comp--tiketi { padding: 0 0 7% 0; }
.comp--tiketi .laptop { width: 84%; }
.comp--tiketi .comp__front { position: absolute; right: 0; bottom: 0; width: 74%; z-index: 2; }
/* Nalozi: laptop desno iza, telefon s partnerskim portalom lijevo ispred */
.comp--nalozi { padding: 6% 0 4% 14%; }
.comp--nalozi .laptop { width: 100%; }
.comp--nalozi .comp__front { position: absolute; left: 0; bottom: 0; width: 30%; z-index: 2; }
.comp--nalozi .phone { max-width: none; }
/* Karta: siroki kadar 16:7, kartica javne karte ispred dolje desno */
.comp--karta { padding: 0 0 12% 0; }
.comp--karta .comp__front { position: absolute; right: 0; bottom: 0; width: 44%; z-index: 2; }
.comp--karta .crop--wide { border-radius: 12px; }
/* Mobitel: dva telefona jedan uz drugi */
.comp--mobitel { display: flex; justify-content: center; align-items: flex-end; gap: 6%; }
.comp--mobitel .phone { width: 42%; margin: 0; }
.comp--mobitel .phone:first-child { margin-bottom: 8%; }

/* ---------- Kontrolna soba ---------- */
.room { position: relative; padding-bottom: 3%; max-width: 1000px; margin: 0 auto; }
.room__kpis { position: absolute; left: 4%; right: 4%; bottom: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; z-index: 2; }
.room__kpis .card { border: 1px solid var(--line); }
.kpi-list { list-style: none; margin-top: 56px; border-top: 1px solid var(--navy-line); display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.kpi-list li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--navy-line); font-size: 16px; }
.kpi-list b { color: #fff; font-weight: 600; }
.kpi-list span { color: var(--on-navy-2); }

/* ---------- Za koga: tablica uloga ---------- */
.roles { border-top: 1px solid var(--line); }
.role { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 32px; padding: clamp(28px, 3vw, 40px) 0; border-bottom: 1px solid var(--line); }
.role h3 { font-size: clamp(26px, 2.6vw, 34px); }
.role p { font-size: 18px; color: var(--text-2); }
.role p + p { margin-top: 10px; }

/* ---------- Integracije ---------- */
.integ { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
.integ > * { min-width: 0; }
.integ__list { list-style: none; margin-top: 32px; border-top: 1px solid var(--line); }
.integ__list li { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 17px; color: var(--text-2); }
.integ__list b { display: block; color: var(--ink); font-weight: 600; }
.integ p.lead { margin-top: 20px; font-size: 18px; }
.codebox { background: var(--navy); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--navy-2); }
.codebox__tabs { display: flex; gap: 0; border-bottom: 1px solid var(--navy-line); padding: 0 8px; }
.codebox__tabs button { font: inherit; font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--on-navy-2); background: none; border: 0; border-bottom: 2px solid transparent; padding: 14px 14px 12px; cursor: pointer; margin-bottom: -1px; }
.codebox__tabs button[aria-selected="true"] { color: #fff; border-bottom-color: #fff; }
.codebox__tabs button:hover { color: #fff; }
.codebox__tabs button:focus-visible { outline-offset: -3px; }
.codebox__panel { display: none; }
.codebox__panel.is-active { display: block; }
.codebox pre { border-radius: 0; border: 0; min-height: 300px; }
.codebox__note { padding: 14px 24px; border-top: 1px solid var(--navy-line); color: var(--on-navy-2); font-size: 14px; font-family: var(--font-mono); }

/* ---------- Tablica cinjenica (sigurnost) ---------- */
.facttable { width: 100%; border-collapse: collapse; border-top: 1px solid var(--line); }
.facttable th, .facttable td { text-align: left; vertical-align: top; padding: 22px 24px 22px 0; border-bottom: 1px solid var(--line); font-size: 17px; line-height: 1.55; }
.facttable th { width: 28%; font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.facttable td { color: var(--text-2); }
.facttable thead th { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--gray-2); padding: 10px 24px 10px 0; width: auto; }
.table-wrap { overflow-x: auto; }
.table-wrap .facttable { min-width: 560px; }
.section--paper .facttable, .section--paper .facttable th, .section--paper .facttable td { border-color: var(--line-2); }

/* ---------- Paketi: usporedna tablica ---------- */
.plans-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.plans-table th, .plans-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 16px; text-align: center; vertical-align: middle; }
.plans-table th:first-child, .plans-table td:first-child { text-align: left; padding-left: 0; }
.plans-table thead th { vertical-align: bottom; padding-bottom: 18px; border-bottom: 1px solid var(--ink); }
.plans-table thead th .plan-name { display: block; font-family: var(--font-head); font-weight: 800; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); line-height: 1.1; }
.plans-table thead th .plan-for { display: block; font-weight: 400; font-size: 14px; color: var(--text-2); margin-top: 6px; line-height: 1.4; }
.plans-table .group th { text-align: left; padding: 28px 0 10px; font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--gray-2); border-bottom: 1px solid var(--line); }
.plans-table td:first-child { color: var(--ink); }
.plans-table .is-featured { background: var(--paper-2); }
.plans-table thead .is-featured { border-top: 2px solid var(--ink); border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-radius: 8px 8px 0 0; }
.plans-table tbody .is-featured { border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.plans-table tbody tr:last-child .is-featured { border-bottom: 1px solid var(--ink); }
.plans-table .tag { display: inline-block; margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--blue); border: 1px solid var(--blue); border-radius: 4px; padding: 2px 8px; letter-spacing: 0; }
.check { display: inline-block; width: 18px; height: 18px; vertical-align: middle; }
.check path { stroke: var(--ink); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.is-featured .check path { stroke: var(--blue); }
.plans-table .dash { color: var(--gray); font-size: 18px; }
.plans__note { margin-top: 28px; color: var(--text-2); font-size: 16px; max-width: 760px; }
.plans__note + .plans__note { margin-top: 10px; }

/* ---------- Uvodenje ---------- */
.onboard { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; border-top: 1px solid var(--line); }
.onboard li { padding-top: 24px; }
.onboard .tl__n { font-size: 40px; }
.onboard h3 { font-size: 20px; letter-spacing: -0.01em; margin: 14px 0 8px; }
.onboard p { font-size: 16px; color: var(--text-2); }
.onboard-note { margin-top: 48px; font-size: 20px; color: var(--ink); max-width: 760px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 64px; align-items: start; }
.faq > div { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s; margin-right: 6px; margin-top: -6px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.faq details p { padding: 0 0 22px; color: var(--text-2); font-size: 17px; max-width: 560px; }

/* ---------- Zavrsni CTA ---------- */
.cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 6vw, 96px); align-items: end; }
.cta > * { min-width: 0; }
.cta h2 { font-size: clamp(38px, 4.4vw, 60px); max-width: 14ch; }
.cta p.lead { margin-top: 24px; max-width: 560px; }
.cta .btn-row { margin-top: 36px; }
.cta__contact { border-top: 1px solid var(--navy-line); }
.cta__contact > div { padding: 22px 0; border-bottom: 1px solid var(--navy-line); }
.cta__contact small { display: block; font-size: 14px; color: var(--on-navy-2); margin-bottom: 6px; }
.cta__contact a, .cta__contact strong { font-family: var(--font-head); font-weight: 700; font-size: clamp(22px, 2.2vw, 28px); letter-spacing: -0.02em; color: #fff; line-height: 1.2; }
.cta__contact a:hover { text-decoration: none; color: var(--on-navy-2); }
.cta__note { margin-top: 24px; font-size: 15px; color: var(--on-navy-2); }

/* ---------- Podnozje ---------- */
.site-footer { background: var(--paper); border-top: 1px solid var(--line); padding: 56px 0 40px; font-size: 15px; color: var(--gray-2); }
.site-footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--font-body); font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: var(--gray-2); }
.site-footer a:hover { color: var(--ink); }
.site-footer .brand img { height: 22px; }
.site-footer__legal { margin-top: 16px; line-height: 1.65; font-size: 14px; }
.site-footer__bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; }

/* ---------- Prijava (raspored odobren; samo tokeni i stil) ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.login-page > *, .login-card, .login-form { min-width: 0; }
.login-side { background: var(--navy); color: var(--on-navy); padding: 36px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; }
.login-side h1 { color: #fff; font-size: clamp(30px, 3vw, 40px); margin-top: 28px; }
.login-side .lead { color: var(--on-navy-2); margin-top: 18px; font-size: 18px; }
.login-side .brand img { height: 24px; }
.login-side__list { list-style: none; display: grid; gap: 0; margin-top: 36px; border-top: 1px solid var(--navy-line); }
.login-side__list li { display: flex; gap: 14px; align-items: flex-start; color: var(--on-navy); font-size: 16px; padding: 14px 0; border-bottom: 1px solid var(--navy-line); }
.login-side__list svg { width: 20px; height: 20px; color: var(--on-navy-2); flex: none; margin-top: 3px; }
.login-side__foot { font-size: 14px; color: var(--on-navy-2); }
.login-side__foot a { color: #fff; }
.login-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px var(--gutter); background: var(--paper-2); }
.login-card { width: 100%; max-width: 480px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 40px); }
.login-card__head h2 { margin: 0 0 6px; font-size: 26px; letter-spacing: -.01em; }
.login-card__head p { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.login-form { margin-top: 28px; display: grid; gap: 28px; }
.login-step { display: grid; gap: 10px; }
.login-step__label { margin: 0; font-family: var(--font-body); font-size: 14px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--ink); line-height: 1.4; }
.login-step__label label { font: inherit; color: inherit; margin: 0; display: inline; cursor: pointer; }
.choice { display: grid; gap: 10px; }
.choice__item { position: relative; display: block; }
.choice__item input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.choice__card { display: grid; grid-template-columns: 40px minmax(0, 1fr) 20px; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.choice__item:hover .choice__card { border-color: var(--ink); }
.choice__icon { width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); display: grid; place-items: center; }
.choice__icon svg { width: 20px; height: 20px; }
.choice__text { display: grid; gap: 2px; min-width: 0; }
.choice__title { font-weight: 600; font-size: 15px; color: var(--ink); }
.choice__desc { font-size: 14px; color: var(--text-2); line-height: 1.45; }
.choice__check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); position: relative; }
.choice__item input:checked + .choice__card { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.choice__item input:checked + .choice__card .choice__icon { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice__item input:checked + .choice__card .choice__check { border-color: var(--blue); background: var(--blue); }
.choice__item input:checked + .choice__card .choice__check::after { content: ""; position: absolute; left: 5px; top: 2px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.choice__item input:focus-visible + .choice__card { box-shadow: 0 0 0 3px rgba(47,107,255,.3); }
.login-field { margin: 0; display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.login-field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,107,255,.2); }
.login-field input { flex: 1 1 60px; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 16px; padding: 12px 14px; color: var(--ink); outline: none; }
.login-field input::placeholder { color: var(--gray); }
.login-field span { display: flex; align-items: center; padding: 0 14px; background: var(--paper-2); border-left: 1px solid var(--line); font-family: var(--font-mono); font-size: 14px; color: var(--text-2); white-space: nowrap; }
.login-form .btn { width: 100%; margin: 0; }
.login-err { display: none; margin: 0; font-size: 14px; color: #a12f2f; }
.login-err.is-visible { display: block; }
.login-recent { margin: 0; display: none; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); min-width: 0; }
.login-recent.is-visible { display: flex; }
.login-recent__label { white-space: nowrap; }
.login-chip { display: inline-flex; align-items: stretch; vertical-align: middle; border: 1px solid var(--line-2); border-radius: 6px; background: var(--paper-2); overflow: hidden; min-width: 0; }
.login-chip:hover { border-color: var(--ink); }
.login-chip button { font: inherit; background: none; border: 0; cursor: pointer; color: var(--ink); }
.login-chip #recent-btn { font-family: var(--font-mono); padding: 3px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.login-chip__x { padding: 0 8px; border-left: 1px solid var(--line-2) !important; color: var(--text-2) !important; font-size: 15px; line-height: 1; flex: none; }
.login-chip__x:hover, .login-chip__x:focus-visible { color: #a12f2f !important; background: #fff !important; outline: none; }
.login-card__foot { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.login-card__foot p { margin: 0; font-size: 14px; color: var(--text-2); line-height: 1.55; }
.login-main__foot { margin-top: 28px; font-size: 14px; color: var(--text-2); text-align: center; }

/* ---------- Podstranice (sigurnost, integracije) ---------- */
.page-hero { background: var(--navy); color: var(--on-navy); padding: clamp(64px, 8vw, 112px) 0; }
.page-hero h1 { color: #fff; font-size: clamp(40px, 5vw, 68px); max-width: 16ch; }
.page-hero .lead { margin-top: 24px; max-width: 720px; color: var(--on-navy-2); }
.prose { max-width: 820px; }
.prose h2 { font-size: clamp(26px, 2.6vw, 32px); margin: clamp(48px, 5vw, 64px) 0 18px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 21px; margin: 32px 0 10px; }
.prose p { color: var(--text-2); margin-bottom: 16px; }
.prose ul { list-style: none; color: var(--text-2); margin-bottom: 16px; border-top: 1px solid var(--line); }
.prose ul li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.prose pre { margin: 16px 0 20px; }
.prose .table-wrap { margin: 16px 0 24px; }
.prose .facttable th, .prose .facttable td { padding: 14px 20px 14px 0; font-size: 16px; }
.prose .facttable th { font-size: 16px; }
.api-table th { width: 30%; font-family: var(--font-mono); font-size: 14px; font-weight: 500; }
.api-table td code { white-space: nowrap; }
.badge-get, .badge-post, .badge-patch { display: inline-block; font-family: var(--font-mono); font-size: 13px; font-weight: 500; padding: 2px 7px; border-radius: 4px; margin-right: 8px; border: 1px solid var(--line-2); color: var(--ink); background: #fff; }
.badge-post { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge-patch { background: var(--paper-2); }
.cta-band { background: var(--navy); color: var(--on-navy); padding: clamp(56px, 6vw, 80px) 0; }
.cta-band__in { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(28px, 3vw, 36px); }
.cta-band p { color: var(--on-navy-2); margin-top: 10px; font-size: 18px; }

/* ---------- Responsivno ---------- */
@media (max-width: 1100px) {
  .nav a { font-size: 14px; padding: 8px 9px; }
  .site-header__in { gap: 16px; }
  .timeline { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .tl:nth-child(3n)::before { right: 0; }
  .kpi-list { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .onboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .claim { padding: 28px 20px 28px 0; margin-right: 20px; }
  .claim h2 { font-size: 23px; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .header-actions .btn--primary { display: none; }
  .menu-btn { display: inline-flex; }
  .sec-head--row { grid-template-columns: 1fr; gap: 16px; }
  .editorial { grid-template-columns: 1fr; }
  .editorial h2 { max-width: none; }
  .scene { grid-template-columns: 1fr; gap: 40px; }
  .scene--flip .scene__copy { order: 1; }
  .scene--flip .scene__visual { order: 2; }
  .scene--wide .scene__copy { grid-template-columns: 1fr; gap: 16px; }
  .integ { grid-template-columns: 1fr; }
  .cta { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 32px; }
  .fact:nth-child(2) { border-right: 0; margin-right: 0; padding-right: 0; }
  .claims__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .claim:nth-child(2) { border-right: 0; margin-right: 0; padding-right: 0; }
  .claim:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .room { padding-bottom: 0; }
  .room__kpis { position: static; margin-top: 24px; }
  .login-page { grid-template-columns: 1fr; }
  .login-side { padding: 28px var(--gutter); gap: 28px; }
  .login-side__list { margin-top: 24px; }
  .login-main { padding: 36px var(--gutter) 48px; }
  .faq { grid-template-columns: 1fr; }
  .faq > div + div { border-top: 0; }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; --sec: 64px; }
  html { scroll-padding-top: 70px; }
  .site-header__in { height: 60px; }
  .brand img { height: 22px; }
  .header-actions .btn--secondary { display: none; }
  body { font-size: 16px; }
  h1, .hero h1 { font-size: clamp(38px, 11vw, 48px); }
  h2 { font-size: clamp(30px, 8.5vw, 36px); }
  .lead, .hero .lead, .sec-head p { font-size: 17px; }
  .sec-head h2 { font-size: clamp(30px, 8.5vw, 36px); }
  .hero .btn-row .btn { width: 100%; }
  .btn--lg { min-height: 50px; font-size: 16px; }
  .stage { aspect-ratio: auto; overflow: visible; margin-top: 40px; }
  .stage__laptop { position: static; }
  .stage__phone { display: none; }
  .stage__card { position: static; width: 100%; margin-top: 20px; }
  .hero { padding-bottom: 48px; }
  .claims__grid { grid-template-columns: 1fr; }
  .claim { border-right: 0; margin-right: 0; padding: 22px 0; border-bottom: 1px solid var(--line); }
  .claim:last-child { border-bottom: 0; }
  .comp--tiketi, .comp--nalozi, .comp--karta { padding: 0; }
  .comp--tiketi .laptop, .comp--nalozi .laptop { width: 100%; }
  .comp__front, .comp--tiketi .comp__front, .comp--nalozi .comp__front, .comp--karta .comp__front { position: static; width: 100%; margin-top: 20px; }
  .comp--nalozi .phone { max-width: 220px; }
  .comp--mobitel { gap: 12px; }
  .comp--mobitel .phone { width: 48%; }
  .comp--mobitel .phone:first-child { margin-bottom: 0; }
  .room__kpis { grid-template-columns: 1fr; gap: 12px; }
  .facts__grid { grid-template-columns: 1fr; row-gap: 0; padding-top: 0; }
  .fact { border-right: 0; margin-right: 0; padding: 18px 0; border-bottom: 1px solid var(--navy-line); }
  .fact:first-child { padding-top: 0; }
  .fact:last-child { border-bottom: 0; }
  .fact strong { font-size: 36px; }
  .points li { grid-template-columns: 44px minmax(0, 1fr); padding: 22px 0; }
  .timeline { grid-template-columns: 1fr; row-gap: 28px; }
  .tl::before { right: 0; }
  .tl__n { font-size: 32px; }
  .legend { grid-template-columns: 1fr; gap: 16px; }
  .marker { width: 28px; height: 28px; font-size: 12px; }
  .scene { padding: 56px 0; }
  .scene__copy h3 { font-size: 28px; }
  .kpi-list li { grid-template-columns: 1fr; gap: 4px; }
  .role { grid-template-columns: 1fr; gap: 12px; }
  .role h3 { font-size: 26px; }
  .facttable th, .facttable td { display: block; width: auto; padding: 0; border: 0; }
  .facttable tr { display: block; padding: 18px 0; border-bottom: 1px solid var(--line); }
  .facttable th { margin-bottom: 6px; font-size: 18px; }
  .table-wrap .facttable { min-width: 0; }
  .table-wrap .facttable.plans-table { min-width: 520px; }
  .prose .facttable thead { display: none; }
  .prose .facttable th, .prose .facttable td { padding: 0; }
  .prose .facttable td::before { content: ""; }
  .plans-table thead th .plan-name { font-size: 20px; }
  .plans-table th, .plans-table td { padding: 12px 10px; font-size: 15px; }
  .onboard { grid-template-columns: 1fr; gap: 24px; }
  .onboard-note { font-size: 18px; }
  .faq summary { font-size: 17px; padding: 16px 0; }
  .cta h2 { font-size: 36px; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .login-card { padding: 26px 20px; }
  .login-side h1 { font-size: 28px; }
  .codebox pre { font-size: 13.5px; padding: 18px; min-height: 0; }
  .codebox__tabs button { padding: 12px 10px; font-size: 14px; }
  .cta-band h2 { font-size: 28px; }
}
@media (max-width: 480px) {
  .choice__card { grid-template-columns: 36px minmax(0, 1fr) 18px; gap: 12px; padding: 12px 14px; }
  .choice__icon { width: 36px; height: 36px; }
  .login-side ul, .login-side__foot { display: none; }
}
