/* Fixgrad: pilot-koncept. Jedna datoteka stilova, bez vanjskih ovisnosti. */

@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("../fonts/schibsted-grotesk-latin-ext.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #F5F4EF;
  --paper-2: #EDEBE4;
  --surface: #FFFFFF;
  --ink: #0B1B2B;
  --ink-2: #33475B;
  --muted: #55667A;
  --line: #DAD8D0;
  --line-2: #C6C9C7;
  --navy-950: #071526;
  --navy-900: #0B2540;
  --navy-800: #11345A;
  --navy-700: #1A4673;
  --navy-300: #8FA8C4;
  --navy-100: #E4EBF3;
  --teal-700: #08695D;
  --teal-600: #0A7D6E;
  --teal-400: #2BC4A9;
  --teal-200: #A9E7DA;
  --teal-100: #DDF4EE;
  --blue-700: #1F4F8C;
  --blue-100: #E2ECF9;
  --amber-700: #8A5100;
  --amber-100: #FBEBCC;
  --slate-700: #44546A;
  --slate-100: #E8ECF0;
  --focus: #0A7D6E;

  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 16px;
  --shadow-1: 0 1px 2px rgba(11, 27, 43, .06), 0 1px 1px rgba(11, 27, 43, .04);
  --shadow-2: 0 12px 32px -12px rgba(11, 37, 64, .22), 0 2px 6px rgba(11, 37, 64, .06);
  --shadow-3: 0 30px 60px -24px rgba(7, 21, 38, .35), 0 4px 12px rgba(7, 21, 38, .08);

  --font: "Schibsted Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--teal-700); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { line-height: 1.1; letter-spacing: -.02em; margin: 0; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--teal-200); }

.container { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 14px; border-radius: var(--radius-s); text-decoration: none; }
.skip-link:focus { top: 12px; }

/* ---------- Gumbi ---------- */
.btn {
  --bg: var(--navy-900); --fg: #fff; --bd: var(--navy-900);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.25em;
  font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none;
  color: var(--fg); background: var(--bg); border: 1.5px solid var(--bd); border-radius: 999px;
  cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { --bg: var(--navy-800); --bd: var(--navy-800); box-shadow: 0 6px 18px -8px rgba(11, 37, 64, .5); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn .arrow { transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn--accent { --bg: var(--teal-400); --fg: var(--navy-950); --bd: var(--teal-400); }
.btn--accent:hover { --bg: #45D3BA; --bd: #45D3BA; }
.btn--ghost { --bg: transparent; --fg: var(--navy-900); --bd: var(--line-2); }
.btn--ghost:hover { --bg: var(--surface); --bd: var(--navy-900); --fg: var(--navy-900); box-shadow: none; }
.btn--small { min-height: 40px; padding: .5em 1em; font-size: .9375rem; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arrow { transition: none; } }

.eyebrow { display: inline-flex; align-items: center; gap: .5em; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-700); }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }

/* ---------- Pilot traka i zaglavlje ---------- */
.pilot-strip { background: var(--navy-950); color: #CFDCEA; font-size: .8125rem; }
.pilot-strip .container { display: flex; flex-wrap: wrap; gap: .25em 1em; justify-content: center; padding-block: 7px; text-align: center; }
.pilot-strip strong { color: #fff; font-weight: 600; }
.pilot-strip .dot { color: var(--teal-400); }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-900); text-decoration: none; font-weight: 750; font-size: 1.375rem; letter-spacing: -.035em; }
.brand svg { width: 32px; height: 32px; flex: none; }
.brand-name b { font-weight: 750; color: var(--teal-600); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-list { list-style: none; display: flex; gap: 2px; }
.nav-list a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .9688rem; text-decoration: none; }
.nav-list a:hover { color: var(--navy-900); background: var(--paper-2); }
.nav-cta { margin-left: 8px; }
.nav-toggle { display: none; }

@media (max-width: 959px) {
  .header-inner { flex-wrap: wrap; gap: 0 12px; }
  .nav { margin-left: auto; }
  .nav-cta { display: none; }
  .js .nav-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line-2); background: var(--surface); border-radius: 999px; font-weight: 600; cursor: pointer; }
  .nav-toggle .bars { width: 16px; height: 10px; position: relative; }
  .nav-toggle .bars::before, .nav-toggle .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s var(--ease); }
  .nav-toggle .bars::before { top: 0; } .nav-toggle .bars::after { bottom: 0; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-4px) rotate(-45deg); }
  .nav-panel { flex-basis: 100%; order: 3; padding: 0 0 14px; }
  .js .nav-panel { display: none; }
  .js .nav-panel.is-open { display: block; }
  .nav-panel .nav-list { flex-direction: column; }
  .nav-panel .nav-list a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.0625rem; }
  .nav-panel .btn { margin-top: 14px; width: 100%; }
}
@media (min-width: 960px) {
  .nav-panel { display: flex; align-items: center; margin-left: auto; }
  .nav-panel .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(32px, 4.5vw, 64px) clamp(40px, 5vw, 72px); overflow: hidden; }
.hero-map { position: absolute; inset: 0; z-index: 0; pointer-events: none; color: var(--navy-900); opacity: .07; }
.hero-map svg { width: 100%; height: 100%; }
.hero-grid { position: relative; z-index: 1; display: grid; gap: clamp(32px, 4.5vw, 56px); align-items: center; }
@media (min-width: 1000px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 4.75rem); letter-spacing: -.04em; line-height: 1.02; color: var(--navy-950); margin-top: 18px; text-wrap: balance; }
.hero h1 .accent { color: var(--teal-600); }
.hero-lead { margin-top: 22px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: .9375rem; color: var(--muted); max-width: 32em; }
.hero-note svg { flex: none; margin-top: 3px; color: var(--teal-600); }
@media (max-width: 520px) { .hero-actions .btn { width: 100%; } }

/* Hero vizual: veza građanin → predmet → služba */
.flow { position: relative; display: grid; gap: 0; }
.flow-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-2); }
.flow-label { display: flex; align-items: center; gap: 8px; font-size: .75rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.flow-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); }
.flow-label--service i { background: var(--navy-700); }
.flow-citizen { width: min(100%, 360px); padding: 16px; }
.flow-citizen .thumb { margin-top: 12px; border-radius: var(--radius); overflow: hidden; aspect-ratio: 400 / 200; background: var(--navy-900); }
.flow-citizen .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.flow-citizen .flow-title { font-weight: 700; line-height: 1.2; margin-top: 14px; font-size: 1.125rem; letter-spacing: -.01em; }
.flow-citizen .loc { margin-top: 4px; font-size: .875rem; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.flow-status { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.swap { position: relative; display: inline-grid; }
.swap > * { grid-area: 1 / 1; }
.flow-link { position: relative; height: 92px; margin-left: 40px; }
.flow-link svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow-link .path-bg { stroke: var(--line-2); }
.flow-link .path-fg { stroke: var(--teal-500, #12A08D); stroke-dasharray: 260; stroke-dashoffset: 0; }
.case-token { position: absolute; left: 0; top: 50%; transform: translate(8%, -50%); display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; background: var(--navy-900); color: #fff; border-radius: 999px; font: 600 .8125rem/1 var(--mono); box-shadow: var(--shadow-2); white-space: nowrap; }
.case-token::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-400); }
.flow-service { justify-self: end; width: min(100%, 430px); overflow: hidden; }
.mail-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--navy-900); color: #fff; }
.mail-bar .flow-label { color: #B9CBE0; }
.mail-bar .flow-label i { background: var(--teal-400); }
.mail-bar .inbox { margin-left: auto; font-size: .75rem; color: #B9CBE0; }
.mail-body { padding: 16px; font-size: .875rem; }
.mail-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; color: var(--muted); }
.mail-meta dt { font-weight: 600; color: var(--ink-2); }
.mail-meta dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.mail-subject { margin-top: 12px; font-weight: 650; color: var(--ink); font-size: .9375rem; line-height: 1.35; }
.mail-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.fake-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: .8125rem; border: 1.5px solid var(--line-2); color: var(--ink-2); background: var(--surface); }
.fake-btn--primary { background: var(--navy-900); border-color: var(--navy-900); color: #fff; position: relative; }

@media (min-width: 560px) {
  .flow-link { margin-left: 120px; margin-right: 80px; }
}

/* Jednokratna animacija hero prikaza */
@media (prefers-reduced-motion: no-preference) {
  .flow-citizen { animation: rise .7s var(--ease) both; }
  .flow-link .path-fg { animation: draw 1s .6s var(--ease) both; }
  .case-token { animation: travel 1.2s .7s var(--ease) both; }
  .flow-service { animation: rise .7s 1.5s var(--ease) both; }
  .fake-btn--primary { animation: press .5s 2.6s var(--ease) both; }
  .swap .s-old { animation: out .35s 3s var(--ease) both; }
  .swap .s-new { animation: in .45s 3.15s var(--ease) both; }
}
@media (prefers-reduced-motion: reduce) { .swap .s-old { visibility: hidden; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
@keyframes travel { from { opacity: 0; left: 0; } 20% { opacity: 1; } to { opacity: 1; left: calc(100% - 150px); } }
@keyframes press { 0% { box-shadow: 0 0 0 0 rgba(43, 196, 169, 0); } 40% { transform: scale(.96); box-shadow: 0 0 0 6px rgba(43, 196, 169, .35); } 100% { transform: none; box-shadow: 0 0 0 0 rgba(43, 196, 169, 0); } }
@keyframes out { to { opacity: 0; transform: translateY(-6px); visibility: hidden; } }
@keyframes in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.case-token { left: calc(100% - 150px); }

/* ---------- Statusi ---------- */
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: .8125rem; font-weight: 650; line-height: 1.3; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--poslano { color: var(--slate-700); background: var(--slate-100); }
.status--zaprimljeno { color: var(--blue-700); background: var(--blue-100); }
.status--u-radu { color: var(--amber-700); background: var(--amber-100); }
.status--rijeseno { color: var(--teal-700); background: var(--teal-100); }
.status--ceka { color: var(--muted); background: var(--paper-2); }

/* ---------- Sekcije ---------- */
.section { padding-block: clamp(48px, 5.5vw, 80px); }
.section--tight { padding-top: 0; }
.section-head { max-width: 760px; }
.section-head h2 { margin-top: 14px; font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -.035em; color: var(--navy-950); text-wrap: balance; }
.section-head p { margin-top: 12px; font-size: 1.125rem; color: var(--ink-2); text-wrap: pretty; }
.section-head--center { margin-inline: auto; text-align: center; }

/* Kako funkcionira */
.steps { list-style: none; margin-top: clamp(28px, 3.5vw, 44px); display: grid; gap: 0; counter-reset: step; position: relative; }
.steps li { position: relative; padding: 0 0 32px 64px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--navy-900); font-weight: 700; color: var(--navy-900); }
.steps li::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line-2); }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--teal-400); border-color: var(--teal-400); color: var(--navy-950); }
.steps h3 { font-size: 1.25rem; padding-top: 9px; }
.steps p { margin-top: 8px; color: var(--ink-2); max-width: 34em; }
.steps .who { display: inline-block; margin-top: 10px; font-size: .8125rem; font-weight: 600; color: var(--muted); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: 28px; }
  .steps li { padding: 64px 0 0; }
  .steps li::after { left: 52px; right: -24px; top: 21px; bottom: auto; width: auto; height: 2px; }
  .steps h3 { padding-top: 0; }
}

/* ---------- Demo ---------- */
.demo-section { background: var(--navy-950); color: #E7EEF6; position: relative; overflow: hidden; }
.demo-section .eyebrow { color: var(--teal-400); }
.demo-section .section-head h2 { color: #fff; }
.demo-section .section-head p { color: #BFCCDB; }
.sim-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sim-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 999px; font-size: .8125rem; color: #D7E2EE; }
.sim-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); }

.demo { margin-top: clamp(24px, 3vw, 36px); }
.demo-steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.demo-steps li { position: relative; padding-top: 12px; font-size: .8125rem; color: #8FA3BA; font-weight: 600; }
.demo-steps li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.demo-steps li.is-done::before, .demo-steps li[aria-current="step"]::before { background: var(--teal-400); }
.demo-steps li[aria-current="step"] { color: #fff; }
.demo-steps li.is-done { color: #CFDCEA; }
.demo-steps .n { display: block; font-family: var(--mono); font-size: .75rem; opacity: .8; }
@media (max-width: 600px) { .demo-steps .t { display: none; } .demo-steps li[aria-current="step"] .t { display: block; position: absolute; white-space: nowrap; } .demo-steps { margin-bottom: 18px; } }

.view-switch { display: none; }
@media (max-width: 959px) {
  .js .view-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 18px; padding: 4px; background: rgba(255, 255, 255, .08); border-radius: 999px; }
  .view-switch button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: #CFDCEA; font-weight: 600; font-size: .9375rem; cursor: pointer; position: relative; }
  .view-switch button[aria-pressed="true"] { background: #fff; color: var(--navy-950); }
  .view-switch .ping { position: absolute; top: 9px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); }
  .js .demo-stage[data-view="citizen"] .panel--service, .js .demo-stage[data-view="service"] .panel--citizen { display: none; }
}

.demo-stage { margin-top: 18px; display: grid; gap: 18px; align-items: start; }
@media (min-width: 960px) { .demo-stage { grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 24px; } }

.panel { background: var(--paper); color: var(--ink); border-radius: var(--radius-l); overflow: hidden; box-shadow: var(--shadow-3); min-width: 0; }
.panel-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.panel-head h3 { font-size: 1rem; letter-spacing: -.01em; }
.panel-head p { font-size: .8125rem; color: var(--muted); }
.panel-head .role { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--teal-100); color: var(--teal-700); flex: none; }
.panel--service .panel-head { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.panel--service .panel-head p { color: #AFC2D8; }
.panel--service .panel-head .role { background: rgba(255, 255, 255, .1); color: #fff; }
.panel-body { padding: 18px; }
@media (min-width: 600px) { .panel-body { padding: 22px; } }
.panel--citizen { background: #FBFAF7; }

.demo-connector { display: none; }
@media (min-width: 960px) {
  .demo-connector { display: block; position: relative; height: 44px; }
  .demo-connector::before { content: ""; position: absolute; left: 50%; top: 6px; bottom: 12px; border-left: 2px dashed rgba(255, 255, 255, .22); }
  .demo-connector::after { content: ""; position: absolute; left: calc(50% - 7px); bottom: 2px; border: 8px solid transparent; border-top: 10px solid rgba(255, 255, 255, .3); border-bottom: 0; }
  .demo[data-phase="sent"] .demo-connector::before, .demo[data-phase="service"] .demo-connector::before { border-left-color: var(--teal-400); }
}

.screen-title { font-size: 1.125rem; letter-spacing: -.01em; }
.screen-sub { margin-top: 4px; font-size: .9375rem; color: var(--muted); }

/* Odabir problema */
.choices { border: 0; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.choices legend { padding: 0; font-weight: 650; font-size: .9375rem; margin-bottom: 8px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice:hover { border-color: var(--navy-300); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .ico { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--navy-100); color: var(--navy-800); }
.choice .txt { min-width: 0; }
.choice b { display: block; font-weight: 650; font-size: .9688rem; line-height: 1.3; }
.choice small { display: block; color: var(--muted); font-size: .8125rem; }
.choice .tick { margin-left: auto; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; }
.choice:has(input:checked) { border-color: var(--navy-900); box-shadow: 0 0 0 3px rgba(17, 52, 90, .12); }
.choice:has(input:checked) .tick { background: var(--navy-900); border-color: var(--navy-900); }
.choice:has(input:checked) .tick::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.choice:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.report-preview { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.report-preview figure { margin: 0; position: relative; }
.report-preview figure img { width: 100%; aspect-ratio: 400 / 190; object-fit: cover; object-position: 50% 65%; }
.report-preview figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 6px; background: rgba(7, 21, 38, .78); color: #fff; font-size: .75rem; }
.facts { display: grid; gap: 10px; padding: 14px; font-size: .9375rem; }
.facts div { display: grid; grid-template-columns: 92px 1fr; gap: 10px; }
.facts dt { color: var(--muted); font-size: .8125rem; font-weight: 600; padding-top: 2px; }
.facts dd { margin: 0; min-width: 0; }
.facts .note { display: block; font-size: .75rem; color: var(--muted); }

.screen-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.screen-actions .hint { font-size: .8125rem; color: var(--muted); }

/* Simulacija AI pripreme */
.ai-box { border: 1px dashed var(--navy-300); border-radius: var(--radius); padding: 14px; background: #F3F6FA; }
.ai-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-700); }
.ai-steps { list-style: none; margin-top: 10px; display: grid; gap: 6px; font-size: .9375rem; }
.ai-steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.ai-steps li .mark { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; display: grid; place-items: center; }
.ai-steps li.is-done { color: var(--ink); }
.ai-steps li.is-done .mark { background: var(--teal-600); border-color: var(--teal-600); }
.ai-steps li.is-done .mark::after { content: ""; width: 7px; height: 4px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }

.summary { margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.summary-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.summary-head h4 { font-size: .9375rem; }
.summary .facts div { grid-template-columns: 110px 1fr; }
.cat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--navy-100); color: var(--navy-800); font-weight: 650; font-size: .875rem; }

.routing { margin-top: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.routing-head { padding: 12px 14px; display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.routing-head h4 { font-size: .9375rem; }
.routing-head span { font-size: .75rem; color: var(--muted); }
.rules { width: 100%; border-collapse: collapse; font-size: .8125rem; }
.rules th, .rules td { text-align: left; padding: 8px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.rules th { font-weight: 600; color: var(--muted); background: var(--paper); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
.route-to { padding: 10px 14px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.route-to code { font-family: var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.rules tr.is-match td { background: var(--teal-100); color: var(--ink); font-weight: 600; }
.rules tr.is-match td:first-child { box-shadow: inset 3px 0 0 var(--teal-600); }

/* Praćenje predmeta (građanin) */
.case-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.case-id { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.case-title { margin-top: 6px; font-size: 1.25rem; letter-spacing: -.015em; }
.timeline { list-style: none; margin-top: 18px; display: grid; }
.timeline li { position: relative; padding: 0 0 18px 34px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); background: var(--surface); box-sizing: border-box; transition: background-color .3s, border-color .3s; }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done::before { background: var(--teal-600); border-color: var(--teal-600); }
.timeline li.is-done::after { background: var(--teal-600); }
.timeline li.is-current::before { box-shadow: 0 0 0 5px rgba(10, 125, 110, .18); }
.timeline li.is-skipped { opacity: .55; }
.timeline .tl-name { font-weight: 650; font-size: .9688rem; }
.timeline .tl-time { font-size: .8125rem; color: var(--muted); }
.timeline .tl-msg { margin-top: 6px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); font-size: .9063rem; }
.timeline .tl-msg b { display: block; font-size: .75rem; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
.timeline li.is-pending .tl-name { color: var(--muted); font-weight: 500; }
@media (prefers-reduced-motion: no-preference) {
  .timeline li.just-updated .tl-body { animation: flash 1.2s var(--ease); }
}
@keyframes flash { 0% { background: rgba(43, 196, 169, .35); } 100% { background: transparent; } }
.tl-body { border-radius: 6px; margin: -2px -6px; padding: 2px 6px; }

/* Prikaz za službu: e-mail */
.empty-inbox { text-align: center; padding: 36px 12px; color: var(--muted); }
.empty-inbox svg { margin: 0 auto 14px; color: var(--navy-300); }
.empty-inbox b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
.inbox-rows { margin-top: 18px; display: grid; gap: 6px; }
.inbox-rows span { display: block; height: 34px; border-radius: 8px; background: repeating-linear-gradient(90deg, var(--paper-2) 0 40%, transparent 40% 44%, var(--paper-2) 44% 100%); opacity: .7; }

.mail { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.mail-top { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mail-top .mail-subject { margin-top: 0; font-size: 1.0313rem; }
.mail-top .mail-meta { margin-top: 10px; font-size: .8125rem; }
.mail-content { padding: 16px; font-size: .9375rem; }
.mail-content p + p, .mail-content p + table, .mail-content table + p { margin-top: 12px; }
.mail-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.mail-table th, .mail-table td { text-align: left; vertical-align: top; padding: 8px 0; border-top: 1px solid var(--line); }
.mail-table th { width: 34%; padding-right: 12px; color: var(--muted); font-weight: 600; font-size: .8125rem; }
.attach { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: .8125rem; background: var(--paper); }
.mail-foot { padding: 14px 16px; border-top: 1px solid var(--line); background: #F7F8FA; border-radius: 0 0 var(--radius) var(--radius); }
.mail-foot h4 { font-size: .875rem; }
.mail-foot .explain { font-size: .8125rem; color: var(--muted); margin-top: 4px; }
.svc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.svc-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); font-weight: 600; font-size: .9375rem; cursor: pointer; transition: border-color .15s, background-color .15s, color .15s, transform .15s; }
.svc-btn:hover:not([disabled]) { border-color: var(--navy-900); }
.svc-btn:active:not([disabled]) { transform: scale(.98); }
.svc-btn--primary { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.svc-btn--primary:hover:not([disabled]) { background: var(--navy-800); }
.svc-btn[disabled] { opacity: .45; cursor: not-allowed; }
.svc-btn.is-active { background: var(--teal-100); border-color: var(--teal-600); color: var(--teal-700); opacity: 1; cursor: default; }
.svc-btn.is-active::before { content: ""; width: 9px; height: 5px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-1px); }
.reply-preview { margin-top: 12px; font-size: .8125rem; color: var(--muted); }
.reply-preview q { color: var(--ink); quotes: "„" "”"; }

.mirror { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; border-radius: var(--radius); background: var(--teal-100); color: var(--teal-700); font-size: .875rem; font-weight: 600; }
.mirror .status { background: #fff; }
.mirror button { border: 0; background: none; color: var(--teal-700); font-weight: 650; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; padding: 6px 0; }
@media (min-width: 960px) { .mirror button { display: none; } }

.demo-foot { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-top: 22px; color: #AFC2D8; font-size: .875rem; }
.demo-foot p { max-width: 46em; }
.btn--reset { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .3); }
.btn--reset:hover { --bg: rgba(255, 255, 255, .08); --bd: #fff; box-shadow: none; }

.demo-static { margin-top: 32px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-l); padding: 24px; }
.demo-static ol { padding-left: 1.3em; display: grid; gap: 8px; margin-top: 12px; color: #D7E2EE; }
.js .demo-static { display: none; }
.no-js-hide { display: none; }
.js .no-js-hide { display: block; }

/* Leteći predmet */
.flyer { position: fixed; z-index: 80; pointer-events: none; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--navy-900); color: #fff; box-shadow: var(--shadow-3); font-size: .875rem; font-weight: 600; white-space: nowrap; }
.flyer code { font-family: var(--mono); color: var(--teal-200); }

@media (prefers-reduced-motion: no-preference) {
  .screen-enter { animation: rise .45s var(--ease) both; }
}

/* ---------- Koristi ---------- */
.benefits { margin-top: clamp(40px, 5vw, 64px); display: grid; gap: 20px; }
@media (min-width: 960px) { .benefits { grid-template-columns: 1.25fr 1fr; } }
.benefit-col { border-radius: var(--radius-l); padding: clamp(24px, 3.4vw, 40px); }
.benefit-col--city { background: var(--navy-900); color: #DCE6F1; }
.benefit-col--citizen { background: var(--surface); border: 1px solid var(--line); }
.benefit-col h3 { font-size: 1.5rem; letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.benefit-col--city h3 { color: #fff; }
.benefit-col h3 .badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.benefit-col--city h3 .badge { background: rgba(43, 196, 169, .16); color: var(--teal-400); }
.benefit-col--citizen h3 .badge { background: var(--teal-100); color: var(--teal-700); }
.benefit-list { list-style: none; margin-top: 24px; display: grid; gap: 0; }
@media (min-width: 640px) and (max-width: 959px), (min-width: 1200px) { .benefit-col--city .benefit-list { grid-template-columns: 1fr 1fr; column-gap: 32px; } }
.benefit-list li { padding: 16px 0; border-top: 1px solid var(--line); }
.benefit-col--city .benefit-list li { border-color: rgba(255, 255, 255, .12); }
.benefit-list b { display: block; font-size: 1.0625rem; font-weight: 650; color: var(--ink); }
.benefit-col--city .benefit-list b { color: #fff; }
.benefit-list span { display: block; margin-top: 4px; font-size: .9688rem; color: var(--ink-2); }
.benefit-col--city .benefit-list span { color: #B9C9DA; }

.principles { list-style: none; margin-top: 20px; display: grid; gap: 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
@media (min-width: 800px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles li { padding: 20px 4px; display: flex; gap: 14px; align-items: flex-start; font-weight: 550; color: var(--ink); }
@media (min-width: 800px) { .principles li + li { border-left: 1px solid var(--line-2); padding-left: 24px; } }
@media (max-width: 799px) { .principles li + li { border-top: 1px solid var(--line); } }
.principles .num { font-family: var(--mono); font-size: .8125rem; color: var(--teal-700); padding-top: 3px; }

/* ---------- Ogledni izvještaj ---------- */
.report-wrap { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 1200px) { .report-wrap { grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); } }
@media (min-width: 1200px) { .report-wrap .section-head h2 { font-size: 2.625rem; } }
.report-notes { list-style: none; margin-top: 28px; display: grid; gap: 14px; }
.report-notes li { display: flex; gap: 12px; color: var(--ink-2); }
.report-notes li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 2px; background: var(--teal-600); }
.report { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-2); overflow: hidden; }
.report-top { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.report-top h3 { font-size: 1.125rem; }
.report-top .period { font-size: .875rem; color: var(--muted); }
.disclaimer { display: flex; gap: 8px; align-items: center; padding: 10px 22px; background: var(--amber-100); color: var(--amber-700); font-size: .875rem; font-weight: 650; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { padding: 18px 22px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); margin-top: -1px; }
.kpi:nth-child(2n) { border-right: 0; }
@media (min-width: 640px) { .kpi:nth-child(2n) { border-right: 1px solid var(--line); } .kpi:last-child { border-right: 0; } }
.kpi dt { font-size: .8125rem; color: var(--muted); font-weight: 600; }
.kpi dd { margin: 6px 0 0; font-size: clamp(1.625rem, 3vw, 2.125rem); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--navy-950); font-variant-numeric: tabular-nums; }
.kpi dd.time { white-space: nowrap; font-size: clamp(1.375rem, 2.2vw, 1.75rem); }
.kpi dd small { display: block; margin-top: 6px; font-size: .8125rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.report-grid { display: grid; }
@media (min-width: 720px) { .report-grid { grid-template-columns: 1fr 1fr; } .report-grid > div + div { border-left: 1px solid var(--line); } }
.report-block { padding: 20px 22px; }
.report-block + .report-block { border-top: 1px solid var(--line); }
@media (min-width: 720px) { .report-grid > .report-block + .report-block { border-top: 0; } }
.report-block h4 { font-size: .9375rem; margin-bottom: 14px; }
.bars { list-style: none; display: grid; gap: 10px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; font-size: .875rem; }
.bars .val { font-variant-numeric: tabular-nums; font-weight: 650; }
.bars .track { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--paper-2); overflow: hidden; }
.bars .fill { display: block; height: 100%; width: var(--w); background: var(--navy-800); border-radius: 4px; }
.stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.stack span { display: block; height: 100%; width: var(--w); }
.legend { list-style: none; margin-top: 14px; display: grid; gap: 8px; font-size: .875rem; }
.legend li { display: grid; grid-template-columns: 12px 1fr auto; gap: 10px; align-items: center; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.legend .val { font-variant-numeric: tabular-nums; font-weight: 650; }
.c-rijeseno { background: var(--teal-600); }
.c-uradu { background: #D88A12; }
.c-zaprimljeno { background: var(--blue-700); }
.c-ceka { background: #B5BDC7; }
.report-foot { padding: 14px 22px; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); background: var(--paper); }

/* ---------- Pilot ---------- */
.pilot { background: var(--paper-2); }
.pilot-grid { margin-top: clamp(28px, 3.5vw, 40px); display: grid; gap: 20px; }
@media (min-width: 900px) { .pilot-grid { grid-template-columns: 1fr 1fr; } }
.pilot-col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(24px, 3vw, 36px); }
.pilot-col h3 { font-size: 1.25rem; }
.check-list { list-style: none; margin-top: 18px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; color: var(--ink-2); }
.check-list li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6.5 11.3l3 3 6-6.3' fill='none' stroke='%2308695D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.terms { margin-top: 20px; padding: clamp(22px, 3vw, 32px); border-radius: var(--radius-l); background: var(--navy-900); color: #DCE6F1; display: grid; gap: 24px; align-items: center; }
@media (min-width: 900px) { .terms { grid-template-columns: 1.2fr 1fr; } }
.terms blockquote { margin: 0; font-size: clamp(1.125rem, 2vw, 1.375rem); line-height: 1.45; color: #fff; font-weight: 550; letter-spacing: -.01em; }
.terms .small { margin-top: 12px; font-size: .9375rem; color: #AFC2D8; }
.contact-box { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 20px; }
.contact-box .btn { width: 100%; }
.contact-line { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; margin-top: 14px; font-size: .9375rem; }
.contact-line a { color: #fff; font-weight: 600; }
.copy-btn { border: 1px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; border-radius: 999px; padding: 6px 12px; font-size: .8125rem; font-weight: 600; cursor: pointer; min-height: 36px; }
.copy-btn:hover { border-color: #fff; }
.contact-box .help { margin-top: 12px; font-size: .8125rem; color: #AFC2D8; }
.template { margin-top: 20px; }
.template summary { cursor: pointer; font-weight: 600; font-size: .9375rem; color: var(--navy-900); padding: 6px 0; }
.template pre { margin: 10px 0 0; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font: .875rem/1.7 var(--mono); white-space: pre-wrap; color: var(--ink-2); }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 40px; }
.faq-wrap { gap: clamp(20px, 2.5vw, 28px); }
@media (min-width: 960px) { .faq { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; align-items: start; } }
.faq-col { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 2px; font-weight: 650; font-size: 1.0313rem; color: var(--navy-950); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line-2); background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28'%3E%3Cpath d='M9 14h10M14 9v10' stroke='%230B2540' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center / 28px no-repeat; transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--teal-700); }
.faq .answer { padding: 0 2px 18px; color: var(--ink-2); max-width: 44em; }
.faq .answer p + p { margin-top: 10px; }
.emergency { margin-top: 24px; display: flex; gap: 12px; align-items: center; font-size: .9375rem; color: var(--ink-2); }
.emergency b { display: inline-grid; place-items: center; min-width: 48px; height: 32px; padding: 0 8px; border-radius: 8px; background: var(--navy-900); color: #fff; font-weight: 700; }

/* ---------- Podnožje ---------- */
.site-footer { background: var(--navy-950); color: #AFC2D8; padding-block: 44px 28px; font-size: .9375rem; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer .brand { color: #fff; }
.site-footer .brand-name b { color: var(--teal-400); }
.footer-grid h2 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: #8FA3BA; margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid p + p { margin-top: 8px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8125rem; }

/* ---------- Prateće stranice ---------- */
.doc { padding-block: clamp(40px, 6vw, 80px); }
.doc-inner { max-width: 760px; }
.doc h1 { font-size: clamp(2.125rem, 5vw, 3.25rem); letter-spacing: -.035em; color: var(--navy-950); margin-top: 14px; }
.doc .meta { margin-top: 12px; color: var(--muted); font-size: .9375rem; }
.doc h2 { margin-top: 44px; font-size: 1.5rem; color: var(--navy-950); }
.doc h3 { margin-top: 24px; font-size: 1.125rem; }
.doc p, .doc ul { margin-top: 12px; color: var(--ink-2); }
.doc ul { padding-left: 1.25em; display: grid; gap: 6px; }
.doc .lead { font-size: 1.1875rem; margin-top: 20px; color: var(--ink); }
.doc .callout { margin-top: 24px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal-600); border-radius: var(--radius-s); }

/* ---------- Pojavljivanje pri skrolanju ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal-ready .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal-ready .reveal.is-in { opacity: 1; transform: none; }
}

@media print {
  .site-header, .pilot-strip, .demo, .hero-map { display: none !important; }
  body { background: #fff; }
}

/* ---------- Ulaz po ulogama (hero) ---------- */
.role-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .9063rem; }
.role-entry span { color: var(--muted); margin-right: 4px; }
.role-entry a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--navy-900); text-decoration: none; font-weight: 600; transition: border-color .15s, background-color .15s; }
.role-entry a:hover { border-color: var(--navy-900); }

.definition { margin-top: clamp(32px, 4vw, 48px); max-width: 60em; padding: 18px 22px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--teal-600); border-radius: var(--radius-s); color: var(--ink-2); }
.definition b { color: var(--navy-950); }

/* ---------- Uloge ---------- */
.roles { margin-top: clamp(24px, 3vw, 36px); }
.role-tabs { display: none; }
.js .role-tabs { display: flex; gap: 4px; padding: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.role-tabs button { flex: none; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .9688rem; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease); }
.role-tabs button:hover { color: var(--navy-900); }
.role-tabs button[aria-selected="true"] { background: var(--navy-900); color: #fff; box-shadow: var(--shadow-1); }
@media (max-width: 640px) { .js .role-tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 18px; width: 100%; } .role-tabs button { padding: 0 10px; font-size: .9063rem; } }

.role-panel { display: grid; gap: 28px; align-items: center; margin-top: 16px; padding: clamp(22px, 3.5vw, 44px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); box-shadow: var(--shadow-1); }
@media (min-width: 900px) { .role-panel { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; } }
.js .role-panel[hidden] { display: none; }
.role-who { font-size: .8125rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--teal-700); }
.role-panel h3 { margin-top: 10px; font-size: clamp(1.375rem, 2.6vw, 1.875rem); letter-spacing: -.025em; color: var(--navy-950); text-wrap: balance; }
.role-list { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.role-list li { position: relative; padding-left: 30px; color: var(--ink-2); }
.role-list li::before { content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--teal-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.3l2.6 2.6L14 7.4' fill='none' stroke='%2308695D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 20px no-repeat; }
.roles-note { margin-top: 14px; font-size: .875rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .js .role-panel.is-entering { animation: rise .45s var(--ease) both; } }

.role-visual { margin: 0; padding: clamp(16px, 2.4vw, 28px); background: var(--paper); border-radius: var(--radius); background-image: radial-gradient(circle at 1px 1px, rgba(11, 37, 64, .08) 1px, transparent 0); background-size: 18px 18px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); padding: 16px; font-size: .875rem; }
.mini-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.mini-head b { font-size: .9375rem; }
.mini-head span:not(.status) { font-size: .75rem; color: var(--muted); }
.mini-head--dark { margin: -16px -16px 12px; padding: 12px 16px; background: var(--navy-900); color: #fff; border: 0; border-radius: var(--radius) var(--radius) 0 0; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.mini-kpis b { display: block; font-size: 1.5rem; letter-spacing: -.03em; color: var(--navy-950); line-height: 1.1; }
.mini-kpis span { font-size: .75rem; color: var(--muted); }
.mini-link { display: inline-block; margin-top: 14px; font-weight: 600; font-size: .875rem; }
.mini-rules { width: 100%; border-collapse: collapse; margin-top: 6px; }
.mini-rules td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.mini-rules td:first-child { font-weight: 600; padding-right: 12px; width: 44%; }
.mini-rules tr:last-child td { border-bottom: 0; }
.mini-rules tr.is-out td { color: var(--amber-700); }
.mini--mail p { color: var(--ink-2); }
.mini-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mini-btns span { padding: 5px 10px; border-radius: 999px; border: 1.5px solid var(--line-2); font-weight: 600; font-size: .75rem; }
.mini-btns .is-primary { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.mini-tl { list-style: none; margin-top: 12px; display: grid; gap: 0; }
.mini-tl li { position: relative; padding: 0 0 12px 24px; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; }
.mini-tl li span { font-weight: 500; color: var(--muted); font-size: .8125rem; }
.mini-tl li::before { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--teal-600); }
.mini-tl li::after { content: ""; position: absolute; left: 5px; top: 18px; bottom: 0; width: 2px; background: var(--teal-200); }
.mini-tl li:last-child { padding-bottom: 0; }
.mini-tl li:last-child::after { display: none; }

/* ---------- Pravila pilota ---------- */
.rules-grid { list-style: none; counter-reset: rule; margin-top: clamp(24px, 3vw, 36px); display: grid; border-top: 1px solid var(--line-2); }
@media (min-width: 700px) { .rules-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .rules-grid { grid-template-columns: repeat(3, 1fr); } }
.rules-grid li { counter-increment: rule; position: relative; padding: 24px 24px 26px 0; border-bottom: 1px solid var(--line-2); }
@media (min-width: 700px) { .rules-grid li { padding-left: 24px; } .rules-grid li:nth-child(odd) { border-right: 1px solid var(--line-2); } }
@media (min-width: 1040px) { .rules-grid li:nth-child(odd) { border-right: 0; } .rules-grid li:not(:nth-child(3n)) { border-right: 1px solid var(--line-2); } .rules-grid li:nth-child(3n+1) { padding-left: 0; } }
@media (min-width: 700px) and (max-width: 1039px) { .rules-grid li:nth-child(odd) { padding-left: 0; } }
.rules-grid li::before { content: counter(rule, decimal-leading-zero); display: block; font-family: var(--mono); font-size: .8125rem; color: var(--teal-700); margin-bottom: 10px; }
.rules-grid b { display: block; font-size: 1.125rem; color: var(--navy-950); letter-spacing: -.01em; }
.rules-grid span { display: block; margin-top: 6px; color: var(--ink-2); font-size: .9688rem; }

/* ---------- Atmosferski pojas ---------- */
.band { position: relative; isolation: isolate; min-height: clamp(320px, 34vw, 480px); display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--navy-950); }
.band picture, .band img { position: absolute; inset: 0; width: 100%; height: 100%; }
.band img { object-fit: cover; object-position: 62% 50%; z-index: -2; }
.band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7, 21, 38, .9) 0%, rgba(7, 21, 38, .7) 38%, rgba(7, 21, 38, .1) 70%, rgba(7, 21, 38, 0) 100%); }
@media (max-width: 760px) { .band::after { background: linear-gradient(180deg, rgba(7, 21, 38, .35) 0%, rgba(7, 21, 38, .88) 60%); } .band { align-items: flex-end; } .band img { object-position: 70% 50%; } }
.band-inner { padding-block: 48px 56px; }
.band h2 { max-width: 13em; font-size: clamp(2.125rem, 4.6vw, 3.75rem); letter-spacing: -.04em; line-height: 1.04; text-wrap: balance; }
.band-inner p { max-width: 30em; margin-top: 18px; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: #D7E2EE; }
.band-credit { position: absolute; right: 12px; bottom: 10px; margin: 0; max-width: calc(100% - 24px); padding: 3px 8px; border-radius: 6px; background: rgba(7, 21, 38, .72); font-size: .75rem; color: #E7EEF6; text-align: right; }

/* Status: nije u nadležnosti */
.status--nije { color: var(--amber-700); background: var(--amber-100); }

.first-step { margin-bottom: 16px; font-size: .9688rem; color: #DCE6F1; }
.first-step b { display: block; margin-bottom: 4px; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--teal-400); }

/* Mobitel: kraći prikaz i trajni poziv za pilot */
.mobile-cta { display: none; }
@media (max-width: 959px) {
  .js .mobile-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--navy-900); color: #fff; border: 1px solid rgba(255, 255, 255, .16); box-shadow: var(--shadow-3); font-size: .875rem; font-weight: 600; line-height: 1.3; transform: translateY(0); transition: transform .25s var(--ease), opacity .25s var(--ease); }
  .js .mobile-cta[hidden] { display: flex; transform: translateY(140%); opacity: 0; pointer-events: none; visibility: hidden; }
  .js body.has-mobile-cta { padding-bottom: 76px; }
}
@media (max-width: 959px) and (prefers-reduced-motion: reduce) { .js .mobile-cta { transition: none; } }
@media (max-width: 640px) {
  .flow-link, .flow-service { display: none; }
  .hero { padding-bottom: 48px; }
  .steps { margin-top: 28px; }
  .steps li { padding-bottom: 20px; }
  .steps h3 { font-size: 1.125rem; }
  .steps p { margin-top: 4px; }
  .steps .who { margin-top: 4px; }
  .section { padding-block: 40px; }
  .section--tight { padding-top: 0; }
  .rules-grid li { padding-block: 18px 20px; }
}

@media (max-width: 959px) { .faq-col + .faq-col { border-top: 0; } }
@media (min-width: 960px) { .mail-table th { width: 200px; } }
@media (min-width: 960px) {
  .choices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .report-preview { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); align-items: stretch; }
  .report-preview figure img { height: 100%; aspect-ratio: auto; min-height: 220px; }
  .report-preview .facts { align-self: center; }
}

/* ---------- Dorada za gradove (v6) ---------- */
.city-benefits { list-style: none; margin: clamp(22px, 3vw, 32px) 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 800px) { .city-benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.city-benefits li { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--teal-600); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.city-benefits b { display: block; font-size: 1.0625rem; color: var(--navy-950); letter-spacing: -.01em; }
.city-benefits span { display: block; margin-top: 6px; color: var(--ink-2); font-size: .9688rem; }
.roles-intro { margin-top: clamp(28px, 3.5vw, 40px); margin-bottom: 12px; font-weight: 650; color: var(--navy-900); }

/* Demo: više primjera */
.choices-more:not([hidden]) { display: contents; }
.more-toggle { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1.5px dashed var(--line-2); border-radius: 999px; background: transparent; color: var(--navy-900); font-weight: 650; font-size: .875rem; cursor: pointer; }
.more-toggle:hover { border-color: var(--navy-900); border-style: solid; }
.more-toggle .chev { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .2s var(--ease); }
.more-toggle[aria-expanded="true"] .chev { transform: rotate(-135deg) translateY(-1px); }

/* Demo: hitni slučajevi */
.urgent-note { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius); background: var(--amber-100); color: var(--amber-700); font-size: .8125rem; line-height: 1.5; border-left: 3px solid var(--amber-700); }
.urgent-note b { color: inherit; }
.urgent-note a { color: inherit; font-weight: 700; }
.report-preview .urgent-note { grid-column: 1 / -1; margin: 0 12px 12px; }

/* Demo: nadležnost */
.routing-text { padding: 0 14px 12px; font-size: .875rem; color: var(--ink-2); }
.rules-more { border-top: 1px solid var(--line); }
.rules-more summary { cursor: pointer; padding: 10px 14px; font-size: .8125rem; font-weight: 650; color: var(--navy-900); }
.rules-more summary:hover { background: var(--paper); }
.rules-more-body > p:first-child { padding: 0 14px 12px; font-size: .8125rem; color: var(--muted); }

/* Demo: kompaktni prikaz građanina uz radnje službe */
.mirror { display: block; padding: 14px 16px; font-weight: 500; color: var(--ink); background: var(--teal-100); border: 1px solid rgba(10, 125, 110, .25); }
.mirror-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; justify-content: space-between; font-weight: 650; color: var(--teal-700); font-size: .875rem; }
.mirror-steps { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.mirror-steps li { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 999px; background: rgba(255, 255, 255, .7); color: var(--muted); font-size: .8125rem; font-weight: 600; }
.mirror-steps li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; border: 1.5px solid currentColor; }
.mirror-steps li.is-done { color: var(--teal-700); }
.mirror-steps li.is-done::before { background: var(--teal-600); border-color: var(--teal-600); }
.mirror-steps li.is-current { background: #fff; box-shadow: 0 0 0 1.5px var(--teal-600); }
.mirror-steps li.is-skipped { opacity: .55; text-decoration: line-through; }
.mirror-msg { margin-top: 10px; font-size: .875rem; color: var(--ink-2); }
.mirror-msg b { display: block; font-size: .75rem; color: var(--muted); font-weight: 650; margin-bottom: 2px; }
.mirror button { margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) { .mirror.just-updated { animation: mirror-flash 1.2s var(--ease); } }
@keyframes mirror-flash { 0% { box-shadow: 0 0 0 4px rgba(43, 196, 169, .55); } 100% { box-shadow: 0 0 0 0 rgba(43, 196, 169, 0); } }

/* Iza projekta */
.about { margin-top: clamp(28px, 3.5vw, 40px); display: grid; gap: 18px; align-items: center; padding: clamp(20px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
@media (min-width: 700px) { .about { grid-template-columns: 132px 1fr; gap: 26px; } }
.about-photo { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-1); }
@media (min-width: 700px) { .about-photo { width: 132px; height: 132px; } }
.about-text h3 { font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; }
.about-name { margin-top: 6px; }
.about-name b { display: block; font-size: 1.25rem; color: var(--navy-950); letter-spacing: -.01em; }
.about-name span { display: block; color: var(--muted); font-size: .9375rem; }
.about-text p + p { margin-top: 10px; }
.about-text p:not(.about-name):not(.about-links) { color: var(--ink-2); max-width: 62ch; }
.about-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.about-links a { font-weight: 650; color: var(--teal-700); }

/* ---------- v7: kompaktniji prvi ekran ---------- */
@media (min-width: 1000px) {
  .hero { padding-block: clamp(28px, 3vw, 48px) clamp(40px, 4vw, 64px); }
  .hero h1 { font-size: clamp(2.75rem, 4.6vw, 4.25rem); margin-top: 14px; }
  .hero-lead { margin-top: 18px; }
  .hero-actions { margin-top: 24px; }
}
@media (min-width: 1000px) and (max-height: 820px) {
  .hero { padding-top: 24px; }
  .hero h1 { font-size: clamp(2.75rem, 4.2vw, 3.75rem); margin-top: 12px; }
  .hero-lead { margin-top: 14px; }
  .hero-actions { margin-top: 20px; }
}

/* ---------- v7: iskustva klijenata ZeljaS ---------- */
.reviews { margin-top: 16px; padding: clamp(20px, 3vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); }
.reviews-head { display: grid; gap: 14px; }
@media (min-width: 800px) { .reviews-head { grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 28px; } }
.reviews-head h3 { font-size: 1.125rem; color: var(--navy-950); letter-spacing: -.01em; }
.reviews-head p { margin-top: 6px; color: var(--ink-2); font-size: .9375rem; max-width: 60ch; }
.reviews-score { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: baseline; gap: 2px 10px; margin: 0; padding: 10px 14px; border-radius: var(--radius); background: var(--paper); font-size: .875rem; color: var(--ink-2); }
.reviews-head .reviews-score { margin-top: 0; }
.reviews-score .stars { grid-column: 1 / -1; }
.reviews-score b { font-size: 1.25rem; color: var(--navy-950); letter-spacing: -.01em; }
.reviews-score small { grid-column: 1 / -1; font-size: .75rem; color: var(--muted); }
.stars { color: #B26A00; letter-spacing: .1em; font-size: .875rem; line-height: 1; }
.reviews-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 800px) { .reviews-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.reviews-list figure { margin: 0; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.reviews-list blockquote { margin: 0; flex: 1; }
.reviews-list blockquote p { color: var(--ink); font-size: .9375rem; line-height: 1.55; }
.reviews-list figcaption { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: baseline; font-size: .875rem; }
.reviews-list figcaption b { color: var(--navy-900); }
.reviews-list figcaption span { color: var(--muted); font-size: .8125rem; }
.reviews-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: .9375rem; }
.reviews-links a { font-weight: 650; color: var(--teal-700); }
.doc h2[id] { scroll-margin-top: 96px; }

/* ---------- v9: logotip FIXgrad (slika) ---------- */
.brand img { display: block; height: 40px; width: auto; max-width: none; }
@media (max-width: 640px) { .site-header .brand img { height: 34px; } }
.site-footer .brand { padding: 8px 12px; border-radius: 12px; background: var(--paper); }
.site-footer .brand img { height: 36px; }
