/* UnveilMap web: boje i pismo iz docs/branding/index.html. Bez vanjskih fontova, kolačića i analitike. */
@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(fonts/outfit-latin-400.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Outfit; font-weight: 400; font-display: swap; src: url(fonts/outfit-latin-ext-400.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url(fonts/outfit-latin-500.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Outfit; font-weight: 500; font-display: swap; src: url(fonts/outfit-latin-ext-500.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(fonts/outfit-latin-600.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: Outfit; font-weight: 600; font-display: swap; src: url(fonts/outfit-latin-ext-600.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF; }

:root {
  --fog: #141C24; --fog-deep: #0E151C; --fog-up: #1A2530; --paper: #F2F7F3; --mist: #DAE7E0;
  --teal: #27C2A0; --teal-dark: #1BA587; --amber: #F2B544; --slate: #7E958F;
  --text: #EEF4F0; --muted: #A3B6B0; --line: rgba(255, 255, 255, .08); --card: rgba(255, 255, 255, .035);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--fog-deep); color: var(--text);
  font: 400 17px/1.6 Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; height: auto; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* zaglavlje */
.top { position: sticky; top: 0; z-index: 10; background: rgba(14, 21, 28, .82); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.top .logo img { height: 34px; width: auto; }
.top nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }
.lang { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; }

/* naslovni dio */
.hero { background: radial-gradient(1200px 600px at 80% 10%, var(--fog-up), transparent 60%), var(--fog-deep); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; padding-top: 40px; padding-bottom: 72px; }
.kicker { display: inline-block; color: var(--teal); font-weight: 500; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
h1 { font-weight: 600; font-size: clamp(40px, 6vw, 68px); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 20px; }
h1 em { font-style: normal; color: var(--teal); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 34em; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 14px; padding: 14px 22px; font-weight: 500; }
.btn.primary { background: var(--teal); color: #062A22; }
.btn.primary:hover { background: #3BD6B3; text-decoration: none; }
.btn.ghost { border: 1px solid var(--line); color: var(--text); }
.btn.ghost:hover { border-color: rgba(255, 255, 255, .25); text-decoration: none; }
.note { color: var(--muted); font-size: 14px; margin-top: 14px; }
.hero-art { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .45)); }

/* odjeljci */
section { padding: 88px 0; border-top: 1px solid var(--line); }
h2 { font-weight: 600; font-size: clamp(30px, 4vw, 42px); line-height: 1.12; letter-spacing: -.01em; margin: 0 0 14px; }
.sub { color: var(--muted); max-width: 40em; margin: 0 0 44px; font-size: 19px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 26px; }
.card h3 { font-weight: 500; font-size: 20px; margin: 14px 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(39, 194, 160, .12); color: var(--teal); }
.icon svg { width: 24px; height: 24px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.step { padding: 26px; border-radius: 20px; background: linear-gradient(180deg, rgba(39, 194, 160, .08), transparent); border: 1px solid var(--line); }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal); color: #062A22; font-weight: 600; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-weight: 500; font-size: 20px; }
.step p { margin: 0; color: var(--muted); font-size: 16px; }

.privacy { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: 0 0 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23062A22' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }

.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 19px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--teal); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); margin: 10px 0 0; }

.band { text-align: center; background: radial-gradient(700px 300px at 50% 0%, rgba(39, 194, 160, .14), transparent 70%); }
.band .cta { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; }
footer a { color: var(--muted); }

@media (max-width: 900px) {
  .hero .wrap, .privacy { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 40px; padding-bottom: 56px; }
  .hero-art { max-width: 420px; margin: 0 auto; }
  .grid, .steps { grid-template-columns: 1fr; }
  .top nav a:not(.lang) { display: none; }
  section { padding: 64px 0; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* žive ilustracije (assets/demo.js) */
.demo { position: relative; border-radius: 28px; overflow: hidden; background: var(--fog); aspect-ratio: 1 / 1; box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 0 0 1px var(--line); }
.demo canvas { width: 100%; height: 100%; }
.demo-badge { position: absolute; left: 16px; bottom: 16px; z-index: 2; background: rgba(14, 21, 28, .82); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; font-size: 14px; color: var(--muted); }
.demo-badge b { display: block; color: var(--text); font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }

.show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 64px; }
.show:first-of-type { margin-top: 0; }
.show.flip > :first-child { order: 2; }
.show h3 { font-weight: 600; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; margin: 0 0 12px; }
.show p { color: var(--muted); margin: 0; font-size: 18px; }
.panel { background: linear-gradient(180deg, var(--fog-up), var(--fog)); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.panel-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 18px; }
.panel-head b { font-size: 34px; font-weight: 600; }
.panel-head span { color: var(--muted); font-size: 14px; }
.row { display: grid; grid-template-columns: 110px 1fr 56px; gap: 12px; align-items: center; padding: 9px 0; font-size: 15px; }
.row em { font-style: normal; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--teal-dark), var(--teal)); transition: width 1.6s cubic-bezier(.2, .7, .2, 1); }
.row:nth-child(2) .bar i { transition-delay: .15s; } .row:nth-child(3) .bar i { transition-delay: .3s; } .row:nth-child(4) .bar i { transition-delay: .45s; } .row:nth-child(5) .bar i { transition-delay: .6s; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.tiles div { background: rgba(255, 255, 255, .04); border-radius: 14px; padding: 12px; font-size: 13px; color: var(--muted); }
.tiles b { display: block; color: var(--text); font-size: 20px; font-weight: 600; }

[data-squares-demo] svg { width: 100%; display: block; }
.sq-grid { stroke: rgba(61, 139, 255, .28); stroke-width: 1; }
.sq-cell { fill: #3D8BFF; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(.4); transition: opacity .35s, transform .35s; }
.sq-cell.on { opacity: .32; transform: scale(1); }
.sq-best { fill: none; stroke: #FF7A00; stroke-width: 4; rx: 4; opacity: 0; transition: opacity .6s; }
.sq-best.on { opacity: 1; }

@media (max-width: 900px) {
  .show, .show.flip { grid-template-columns: 1fr; gap: 28px; }
  .show.flip > :first-child { order: 0; }
}
.panel-head b span { font-size: inherit; color: inherit; }

/* mobitel u naslovnom dijelu */
.phone { height: min(640px, calc(100vh - 180px)); min-height: 500px; max-width: 92%; margin: 0 auto; aspect-ratio: 9 / 18.5; padding: 11px; border-radius: 48px; background: linear-gradient(160deg, #26323c, #0b1015 60%); box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .09); position: relative; }
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 76px; height: 20px; margin-left: -38px; border-radius: 99px; background: #05080a; z-index: 3; }
.phone-screen { position: relative; height: 100%; border-radius: 38px; overflow: hidden; display: flex; flex-direction: column; background: var(--fog); }
.app-bar { display: flex; justify-content: space-between; align-items: center; padding: 44px 18px 12px; background: #0f1519; font-size: 16px; font-weight: 500; z-index: 2; }
.app-km { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.phone .demo { flex: 1; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.app-rec { position: absolute; right: 16px; bottom: 18px; z-index: 2; display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 16px; background: #0b4d40; color: #A8F0DD; font-size: 14px; font-weight: 500; box-shadow: 0 8px 20px rgba(0, 0, 0, .35); }
.app-rec i { width: 12px; height: 12px; border-radius: 50%; background: #ff5a5a; box-shadow: 0 0 0 0 rgba(255, 90, 90, .6); animation: rec 1.6s infinite; }
@keyframes rec { 0% { box-shadow: 0 0 0 0 rgba(255, 90, 90, .55); } 80%, 100% { box-shadow: 0 0 0 10px rgba(255, 90, 90, 0); } }

/* izvori povijesti */
.sources { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.sources li { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sources b { font-weight: 500; }
.sources span { color: var(--muted); font-size: 15px; }
.flow svg { width: 100%; display: block; }
.flow-src rect { fill: rgba(255, 255, 255, .04); stroke: rgba(255, 255, 255, .12); }
.flow-lines path { stroke-dasharray: 6 10; animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }

/* ulazak odjeljaka pri pomicanju */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) { .sources li { grid-template-columns: 1fr; gap: 2px; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .flow-lines path, .app-rec i { animation: none; }
}
[data-squares-demo] { max-width: 440px; width: 100%; justify-self: center; }
.flow { max-width: 520px; width: 100%; justify-self: center; }
section { scroll-margin-top: 64px; }

/* putovnica */
.passport { max-width: 520px; width: 100%; justify-self: center; }
.pp-head { display: flex; gap: 20px; align-items: center; margin-bottom: 20px; }
.pp-head b { display: block; font-size: 22px; font-weight: 600; }
.pp-head span { color: var(--muted); font-size: 15px; }
.pp-ring { --p: .5; flex: 0 0 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(closest-side, var(--fog) 79%, transparent 80% 100%), conic-gradient(var(--teal) calc(var(--p) * 100%), rgba(39, 194, 160, .15) 0); }
.pp-ring b { font-size: 30px; line-height: 1; }
.pp-ring span { font-size: 12px; }
.pp-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pp-badges div { position: relative; border-radius: 16px; padding: 14px 8px; text-align: center; font-size: 13px; color: var(--muted); background: rgba(255, 255, 255, .04); }
.pp-badges div.on { color: var(--text); background: rgba(39, 194, 160, .14); }
.pp-badges i { display: block; font-style: normal; font-size: 24px; color: var(--muted); margin-bottom: 6px; }
.pp-badges .on i { color: var(--teal); }
.pp-badges em { display: block; height: 4px; margin: 8px 8px 0; border-radius: 4px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.pp-badges em::after { content: ""; display: block; height: 100%; width: var(--w); background: var(--teal); }
