/* placanje.me — stilovi marketing sajta
   Paleta iz logotipa (public/assets/img/logo.jpg):
   tamnoplava pozadina #0f2747 · tirkizna #1dc0bf · plava #3a5bd9 · zelena #2dc58c */

:root {
    --navy-950: #0a1d36;
    --navy-900: #0f2747;          /* = pozadina logotipa */
    --navy-800: #173761;
    --brand-teal: #1dc0bf;
    --brand-blue: #3a5bd9;
    --brand-green: #2dc58c;
    --brand-gradient: linear-gradient(90deg, var(--brand-teal), var(--brand-blue) 55%, var(--brand-green));
    --primary: #0b7d85;           /* tamnija tirkizna — tekst/linkovi na svijetloj pozadini (kontrast) */
    --primary-dark: #08646b;
    --accent: #1dc0bf;
    --accent-dark: #0b7d85;
    --text: #0f172a;
    --text-muted: #5b6b82;
    --text-on-dark: #e6edf7;
    --muted-on-dark: #9fb0c8;
    --bg: #ffffff;
    --bg-alt: #f5f7fb;
    --border: #e3e8f0;
    --border-dark: rgba(255, 255, 255, .12);
    --radius: 14px;
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, .08);
    --shadow-lg: 0 24px 60px rgba(4, 12, 28, .35);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }
img, svg { display: block; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: var(--navy-900);   /* ista boja kao pozadina logotipa — logo se stapa sa headerom */
    border-bottom: 1px solid var(--border-dark);
}
.site-header::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: var(--brand-gradient); opacity: .45;
}
.nav-wrap { display: flex; align-items: center; gap: 40px; height: 72px; }
.logo { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo img { height: 40px; width: auto; }
.site-nav { display: flex; gap: 28px; flex: 1; justify-content: flex-end; }
.site-nav a { color: var(--muted-on-dark); text-decoration: none; font-weight: 500; font-size: 15px; }
.site-nav a:hover { color: #fff; }
.nav-cta { display: flex; gap: 10px; }

/* ---------- Dugmad ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 10px;
    text-decoration: none; font-weight: 600; font-size: 15px; line-height: 1.2;
    border: 1px solid transparent; cursor: pointer;
    transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn-primary { background: var(--brand-teal); color: var(--navy-900); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #3fd0cf; }
.btn-accent { background: linear-gradient(90deg, var(--brand-teal), var(--brand-green)); color: var(--navy-900); }
.btn-accent:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(29, 192, 191, .35); }
.btn-ghost { border-color: var(--border); color: var(--text); background: #fff; }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-outline-light { border-color: rgba(255, 255, 255, .28); color: #fff; background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .08); }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* ---------- Zajedničko za sekcije ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.eyebrow {
    display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.2px;
    text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section-head h2, .split h2 { font-size: 36px; line-height: 1.2; letter-spacing: -.6px; margin-bottom: 14px; }
.section-head p { font-size: 18px; color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    background:
        radial-gradient(800px 420px at 85% 10%, rgba(29, 192, 191, .20), transparent 60%),
        radial-gradient(700px 500px at 10% 100%, rgba(58, 91, 217, .30), transparent 60%),
        var(--navy-900);
    color: var(--text-on-dark);
    padding: 96px 0 104px;
}
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 30%, transparent 95%);
}
.hero-grid {
    position: relative;
    display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px 6px 8px; border-radius: 999px;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--border-dark);
    font-size: 13px; color: var(--muted-on-dark); margin-bottom: 24px;
}
.hero-badge b {
    background: var(--accent); color: var(--navy-900); font-size: 11px;
    padding: 2px 8px; border-radius: 999px; letter-spacing: .4px;
}
.hero h1 {
    font-size: 52px; line-height: 1.08; letter-spacing: -1.4px;
    color: #fff; margin-bottom: 22px;
}
.hero h1 em {
    font-style: normal;
    background: linear-gradient(90deg, var(--brand-teal), var(--brand-green));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { font-size: 19px; color: var(--muted-on-dark); max-width: 540px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-points { display: flex; gap: 24px; flex-wrap: wrap; list-style: none; font-size: 14px; color: var(--muted-on-dark); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* Hero vizual — animirana mreža webshop → placanje.me → banke */
.hero-visual { position: relative; padding: 48px 0 40px; }
.hero-grid > *, .split > *, .pricing-band > * { min-width: 0; }
.orchestra { width: 100%; height: auto; overflow: visible; display: block; }
.hero-grid { grid-template-columns: 1fr 1fr; }
.orchestra .route {
    fill: none; stroke: url(#routeGrad); stroke-width: 2; stroke-linecap: round;
    stroke-dasharray: 3 7; animation: route-flow 1.2s linear infinite;
}
.orchestra .route-shop { opacity: .55; }
.orchestra .pulse { fill: #fff; filter: drop-shadow(0 0 6px #1dc0bf); }
.node-shop rect { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .16); }
.node-shop circle { fill: var(--brand-blue); }
.node-shop text { fill: #e6edf7; font-size: 14px; font-weight: 600; font-family: inherit; }
.node-bank rect { fill: rgba(255, 255, 255, .05); stroke: rgba(255, 255, 255, .14); stroke-width: 1.2; }
.node-bank image { opacity: .55; }
.hub-core { fill: var(--navy-900); stroke: var(--brand-teal); stroke-width: 2; }
.hub-ring { fill: none; stroke: var(--brand-teal); stroke-width: 1.5; transform-origin: 280px 220px; animation: hub-ring 3s ease-out infinite; }
.hub-ring-2 { animation-delay: 1.5s; }
.hub-glow { animation: hub-glow 3s ease-in-out infinite; transform-origin: 280px 220px; }
.hub-label { fill: #fff; font-size: 17px; font-weight: 800; text-anchor: middle; font-family: inherit; }
.hub-sub { fill: var(--muted-on-dark); font-size: 13px; text-anchor: middle; font-family: inherit; letter-spacing: .4px; }

/* Smjena aktivne banke: trajanje ciklusa, kašnjenja (.r0, .r1…) i keyframes bank-* generiše public/index.php
   prema broju banaka u inc/catalog.php banks() — 3 s po banci. */
.node-bank { animation: none; }

@keyframes route-flow { to { stroke-dashoffset: -20; } }
@keyframes hub-ring { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes hub-glow { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }

/* Toast "Narudžba plaćena" se pojavljuje u ritmu plaćanja */
.float-webhook { animation: toast 6s ease-in-out infinite; }
@keyframes toast {
    0%, 8%   { opacity: 0; transform: translateY(10px); }
    14%, 80% { opacity: 1; transform: translateY(0); }
    90%, 100% { opacity: 0; transform: translateY(10px); }
}

@media (prefers-reduced-motion: reduce) {
    .orchestra *, .float-webhook { animation: none !important; }
    .orchestra .pulse { display: none; }
    .bank-route.r0, .node-bank.r0 rect { opacity: 1; }
}
.float-card {
    position: absolute; z-index: 2;
    background: #fff; color: var(--text); border-radius: 12px; box-shadow: var(--shadow-md);
    padding: 12px 14px; font-size: 13px; display: flex; align-items: center; gap: 10px;
}
.float-card .ico {
    width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
}
.float-card .ico svg { width: 18px; height: 18px; }
.float-card small { display: block; color: var(--text-muted); font-size: 11.5px; }
.float-webhook { left: 0; bottom: 0; }
.float-webhook .ico { background: #dcfce7; color: #15803d; }
.float-switch { right: 0; top: 0; }
.float-switch .ico { background: #e5eafb; color: var(--brand-blue); }

/* ---------- Traka sa bankama ---------- */
.trust { padding: 44px 0 48px; border-bottom: 1px solid var(--border); }
.trust-title {
    text-align: center; font-size: 13px; font-weight: 600; letter-spacing: 1px;
    text-transform: uppercase; color: var(--text-muted); margin-bottom: 24px;
}
.bank-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
/* Pločica = samo logo; cijela pločica je link na e-commerce stranicu banke */
.bank-list > li { display: flex; }
.bank-tile {
    flex: 1; display: grid; place-items: center;
    height: 96px; padding: 16px; border-radius: 12px; background: #fff; border: 1px solid var(--border);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
/* Dvije slike na istom mjestu: jednobojna (default) i original u bojama banke (hover) */
.bank-tile img { grid-area: 1 / 1; max-width: 100%; height: auto; transition: opacity .25s; }
.bank-tile .logo-mono { opacity: .62; }
.bank-tile .logo-color { opacity: 0; }
a.bank-tile:hover { border-color: #b9e6e6; box-shadow: var(--shadow-md); transform: translateY(-2px); }
.bank-tile:hover .logo-mono, a.bank-tile:focus-visible .logo-mono { opacity: 0; }
.bank-tile:hover .logo-color, a.bank-tile:focus-visible .logo-color { opacity: 1; }
a.bank-tile:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 2px; }
/* ---------- Prednosti ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
    padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #cfd8e6; }
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px; margin-bottom: 20px;
    display: inline-flex; align-items: center; justify-content: center;
    background: #e3f6f6; color: var(--primary);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -.2px; }
.feature-card p { color: var(--text-muted); font-size: 15.5px; }

/* ---------- Kako funkcioniše (tehnički tok) ---------- */
/* Boje učesnika u koracima (tačkice u .route i čvorovi u .fp-route) */
.a-buyer, .c-buyer { --c: #94a3b8; }
.a-shop,  .c-shop  { --c: var(--brand-blue); }
.a-pm,    .c-pm    { --c: var(--brand-teal); }
.a-bank,  .c-bank  { --c: var(--brand-green); }

.flow { display: grid; grid-template-columns: 380px 1fr; gap: 24px; align-items: start; }
.flow-steps { display: grid; gap: 10px; position: sticky; top: 96px; }
.flow-step {
    display: flex; gap: 14px; width: 100%; text-align: left; font: inherit; color: inherit;
    padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--border);
    cursor: pointer; position: relative; transition: border-color .15s, box-shadow .15s;
}
.flow-step:hover { border-color: #b9e6e6; }
.flow-step.is-active { border-color: var(--brand-teal); box-shadow: 0 8px 24px rgba(15, 39, 71, .10); }
.flow-step.is-active::before {
    content: ""; position: absolute; left: -1px; top: 14px; bottom: 14px; width: 3px;
    border-radius: 0 3px 3px 0; background: var(--brand-gradient);
}
.flow-step:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 2px; }
.flow-num {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 14px; color: var(--primary); background: #e3f6f6;
}
.flow-step.is-active .flow-num { background: var(--navy-900); color: var(--brand-teal); }
.flow-body { display: grid; gap: 3px; min-width: 0; }
.flow-body strong { font-size: 15.5px; }
.route { font-size: 12.5px; color: var(--text-muted); }
.route b { font-weight: 600; color: var(--text); }
.route b::before {
    content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    background: var(--c); margin-right: 5px; vertical-align: 1px;
}
.flow-body code {
    font-family: "JetBrains Mono", Consolas, monospace; font-size: 12px; color: var(--primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.flow-panel {
    background: var(--navy-900); color: #cbd5e1; border-radius: 16px; box-shadow: var(--shadow-lg);
    padding: 0 0 22px; overflow: hidden; min-width: 0;
}
.flow-panel + .flow-panel { margin-top: 24px; }   /* bez JS-a: svi paneli jedan ispod drugog */
.fp-head {
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
    padding: 16px 22px; border-bottom: 1px solid var(--border-dark); margin-bottom: 6px; position: relative;
}
.fp-head::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px;
    background: var(--brand-gradient); opacity: .5;
}
.fp-head span { color: #fff; font-weight: 700; font-size: 15px; }
.fp-head em { font-style: normal; font-size: 12.5px; color: var(--muted-on-dark); }
.fp-label {
    padding: 14px 22px 0; font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
    text-transform: uppercase; color: var(--muted-on-dark);
}
.http-ok { margin-left: 6px; color: var(--brand-green); letter-spacing: 0; text-transform: none; }
.flow-panel pre {
    margin: 10px 22px 0; padding: 14px 16px; border-radius: 10px; background: var(--navy-950);
    border: 1px solid var(--border-dark);
    font-family: "JetBrains Mono", Consolas, "Courier New", monospace; font-size: 13px; line-height: 1.7;
    overflow-x: auto; color: #cbd5e1;
}
.pre-diagram b { color: #fff; font-weight: 600; }
.c-buyer, .c-shop, .c-pm, .c-bank { color: var(--c); font-weight: 600; }
.c-h { color: #93c5fd; } .c-v { color: #f9a8d4; }
.fp-notes { list-style: none; padding: 14px 22px 0; display: grid; gap: 8px; font-size: 14px; color: var(--muted-on-dark); }
.fp-notes li { padding-left: 18px; position: relative; }
.fp-notes li::before {
    content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px;
    border-radius: 2px; background: var(--brand-teal);
}
.fp-notes b { color: #fff; font-weight: 600; }
.fp-notes code, .woo-steps code {
    font-family: "JetBrains Mono", Consolas, monospace; font-size: 12.5px;
    background: rgba(255, 255, 255, .08); padding: 1px 6px; border-radius: 5px; color: #e2e8f0;
}

.lifecycle {
    margin-top: 40px; padding: 22px 24px; border-radius: 14px; background: #fff; border: 1px solid var(--border);
    display: grid; gap: 12px;
}
.lc-title { font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }
.lc-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lc-final { display: inline-flex; gap: 6px; flex-wrap: wrap; padding: 6px; border: 1px dashed #cbd5e1; border-radius: 10px; }
.lc {
    font-size: 13.5px; font-weight: 600;
    padding: 4px 10px; border-radius: 7px; background: var(--bg-alt); color: var(--text);
}
.s-success { background: #dcfce7; color: #166534; }
.s-failed  { background: #fee2e2; color: #991b1b; }
.s-error   { background: #ffedd5; color: #9a3412; }
.s-expired { background: #e2e8f0; color: #475569; }
.s-pending { background: #fef3c7; color: #92400e; }
.lc-arrow { color: var(--text-muted); }
.lifecycle p { font-size: 14px; color: var(--text-muted); }

.woo-hint {
    margin-top: 16px; display: flex; gap: 14px; align-items: flex-start;
    padding: 16px 20px; border-radius: 12px; background: #e3f6f6; color: #0b4f55;
}
.woo-hint svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.woo-hint p { font-size: 15px; }

.flow-hint { font-size: 12.5px; color: var(--primary); }
.fp-route {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    margin: 12px 22px 0; padding: 16px; border-radius: 10px;
    background: var(--navy-950); border: 1px solid var(--border-dark);
}
.fp-route .node {
    padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 700; color: #fff;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--c);
}
.fp-route .edge {
    font-size: 12px; color: var(--muted-on-dark); display: inline-flex; align-items: center; gap: 6px;
}
.fp-route .edge::after { content: "→"; color: var(--brand-teal); font-size: 16px; }
.fp-text { padding: 16px 22px 0; font-size: 15px; line-height: 1.7; color: #dbe4f0; }
.fp-text b { color: #fff; }
.fp-you {
    margin: 16px 22px 0; padding: 10px 14px; border-radius: 8px; font-size: 14px;
    background: rgba(29, 192, 191, .10); color: #cdeff0;
}
.fp-you b { color: var(--brand-teal); }

/* WooCommerce kartica u sekciji Integracija */
.woo-steps { list-style: none; padding: 22px; display: grid; gap: 18px; font-family: "Inter", system-ui, sans-serif; }
.woo-steps li { display: flex; gap: 14px; }
.woo-steps li > span {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(29, 192, 191, .15); color: var(--brand-teal); font-weight: 800; font-size: 13px;
}
.woo-steps b { color: #fff; display: block; font-size: 15px; }
.woo-steps small { color: var(--muted-on-dark); font-size: 13px; line-height: 1.7; }
.woo-steps code { word-break: break-all; }

/* ---------- Integracija (plugin + API) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > div > p { font-size: 17px; color: var(--text-muted); margin-bottom: 24px; }
.check-list { list-style: none; display: grid; gap: 12px; margin-bottom: 28px; }
.check-list li { display: flex; gap: 12px; font-size: 15.5px; }
.check-list svg { width: 20px; height: 20px; color: var(--accent-dark); flex-shrink: 0; margin-top: 2px; }
.integration-tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--border);
    font-size: 14px; font-weight: 600;
}
.tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.code-card {
    background: var(--navy-950); border-radius: 16px; box-shadow: var(--shadow-lg);
    overflow: hidden; font-family: "JetBrains Mono", Consolas, "Courier New", monospace;
}
.code-head {
    display: flex; align-items: center; gap: 8px; padding: 14px 18px;
    border-bottom: 1px solid var(--border-dark); color: var(--muted-on-dark); font-size: 12.5px;
}
.code-head i { width: 11px; height: 11px; border-radius: 50%; background: #334155; }
.code-head span { margin-left: 10px; }
.code-card pre { padding: 20px 22px; color: #cbd5e1; font-size: 13.5px; line-height: 1.75; overflow-x: auto; }
.c-k { color: #7dd3fc; } .c-s { color: #86efac; } .c-c { color: #64748b; } .c-n { color: #fca5a5; }

/* ---------- Bezbjednost ---------- */
.security { background: var(--navy-900); color: var(--text-on-dark); }
.security .eyebrow { color: var(--brand-teal); }
.security .section-head h2 { color: #fff; }
.security .section-head p { color: var(--muted-on-dark); }
.sec-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.sec-item {
    padding: 26px; border-radius: var(--radius);
    background: rgba(255, 255, 255, .04); border: 1px solid var(--border-dark);
}
.sec-item .feature-icon { background: rgba(29, 192, 191, .14); color: var(--brand-teal); }
.sec-item h3 { font-size: 17px; color: #fff; margin-bottom: 8px; }
.sec-item p { font-size: 14.5px; color: var(--muted-on-dark); }

/* ---------- Cijena ---------- */
.pricing-band {
    display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center;
    padding: 48px; border-radius: 20px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-md);
}
.pricing-band h2 { font-size: 30px; letter-spacing: -.5px; margin-bottom: 10px; }
.pricing-band p { color: var(--text-muted); font-size: 16.5px; }
.price-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.price-fact { padding: 18px; border-radius: 12px; background: var(--bg-alt); }
.price-fact strong { display: block; font-size: 28px; letter-spacing: -.5px; color: var(--navy-900); }
.price-fact small { color: var(--text-muted); font-size: 13.5px; }

/* ---------- Završni CTA ---------- */
.cta-final {
    text-align: center; color: #fff; padding: 88px 0;
    background:
        radial-gradient(600px 300px at 50% 0%, rgba(29, 192, 191, .22), transparent 70%),
        linear-gradient(135deg, var(--navy-900), var(--navy-800));
}
.cta-final h2 { font-size: 38px; letter-spacing: -.8px; margin-bottom: 14px; }
.cta-final p { color: var(--muted-on-dark); font-size: 18px; margin-bottom: 32px; }
.cta-final .hero-cta { justify-content: center; margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer {
    position: relative; background: var(--navy-900); color: var(--muted-on-dark);   /* ravna boja = pozadina logotipa */
    padding: 64px 0 0; border-top: 1px solid var(--border-dark);
}
.site-footer::before {                                   /* brend linija na vrhu */
    content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--brand-gradient); opacity: .6;
}
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr .8fr 1.15fr; gap: 48px; align-items: start; }

.footer-brand .logo img { height: 40px; width: auto; }
.footer-tagline { font-size: 14.5px; line-height: 1.65; margin: 16px 0 22px; max-width: 320px; }
.footer-contact { list-style: none; display: grid; gap: 11px; font-style: normal; }
.footer-contact li { display: flex; gap: 11px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.footer-contact svg { width: 17px; height: 17px; color: var(--brand-teal); flex-shrink: 0; margin-top: 2px; }
.footer-contact a { color: var(--text-on-dark); text-decoration: none; }
.footer-contact a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }

.footer-col h5 {
    color: #fff; font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
    margin: 6px 0 18px; display: flex; align-items: center; gap: 8px;
}
.footer-col h5::before { content: ""; width: 14px; height: 2px; border-radius: 2px; background: var(--brand-teal); }
.footer-col ul { list-style: none; display: grid; gap: 12px; }
.footer-col a {
    color: var(--muted-on-dark); text-decoration: none; font-size: 14.5px;
    display: inline-flex; align-items: center; gap: 6px; transition: color .2s, transform .2s;
}
.footer-col a::after { content: "→"; opacity: 0; transform: translateX(-4px); transition: opacity .2s, transform .2s; color: var(--brand-teal); }
.footer-col a:hover { color: #fff; transform: translateX(2px); }
.footer-col a:hover::after { opacity: 1; transform: none; }

.footer-cta {
    padding: 24px; border-radius: 16px; background: var(--panel-gradient); border: 1px solid var(--border-dark);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.footer-cta strong { display: block; color: #fff; font-size: 17px; line-height: 1.35; margin-bottom: 8px; }
.footer-cta p { font-size: 13.5px; line-height: 1.6; margin-bottom: 16px; }
.footer-cta .btn { width: 100%; justify-content: center; }
.footer-cta small { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 12px; font-size: 12.5px; }
.footer-cta small svg { width: 14px; height: 14px; color: var(--brand-green); }

.footer-bottom {
    margin-top: 52px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid var(--border-dark);
    display: flex; justify-content: space-between; align-items: center; gap: 14px 28px; flex-wrap: wrap; font-size: 13px;
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; }
.footer-legal a, .footer-legal .link-btn { color: var(--muted-on-dark); text-decoration: none; font-size: 13px; }
.footer-legal a:hover, .footer-legal .link-btn:hover { color: #fff; }
/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .hero-grid, .split, .pricing-band { grid-template-columns: 1fr; }
    .hero-visual { max-width: 560px; margin: 0 auto; }
    .feature-grid { grid-template-columns: 1fr 1fr; }
    .sec-grid { grid-template-columns: 1fr 1fr; }
    .flow { grid-template-columns: 1fr; }
    .flow-steps { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
    .container { padding: 0 16px; }
    .site-nav { display: none; }
    .nav-cta .btn-outline-light { display: none; }
    .nav-wrap { gap: 16px; justify-content: space-between; }
    .section { padding: 72px 0; }
    .hero { padding: 64px 0 80px; }
    .hero h1 { font-size: 36px; letter-spacing: -.8px; }
    .hero-sub { font-size: 17px; }
    .section-head h2, .split h2 { font-size: 28px; }
    .feature-grid, .sec-grid, .price-facts, .flow-steps { grid-template-columns: 1fr; }
    .hero-visual { margin-top: 24px; padding: 56px 0 52px; }
    .pricing-band { padding: 28px; }
    .cta-final h2 { font-size: 30px; }
    .flow-panel pre { margin: 10px 12px 0; font-size: 12px; }
    .fp-head, .fp-label, .fp-notes, .fp-text { padding-left: 14px; padding-right: 14px; }
    .fp-route, .fp-you { margin-left: 12px; margin-right: 12px; }
    .bank-tile { height: 84px; }
}

@media (max-width: 680px) {
    .logo img { height: 32px; }
}

/* =====================================================================
   Podstranice: integracija, cjenovnik, developeri, kontakt
   ===================================================================== */
.site-nav a.is-active { color: #fff; position: relative; }
.site-nav a.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -25px; height: 2px;
    background: var(--brand-gradient); border-radius: 2px;
}

/* Zaglavlje podstranice */
.page-hero {
    position: relative; overflow: hidden; color: var(--text-on-dark); padding: 72px 0 64px;
    background:
        radial-gradient(600px 300px at 85% 0%, rgba(29, 192, 191, .18), transparent 60%),
        radial-gradient(600px 400px at 0% 100%, rgba(58, 91, 217, .25), transparent 60%),
        var(--navy-900);
}
.page-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, #000 20%, transparent 95%);
}
.page-hero .container { position: relative; max-width: 860px; text-align: center; }
.page-hero .eyebrow { color: var(--brand-teal); }
.page-hero h1 { font-size: 44px; line-height: 1.12; letter-spacing: -1px; color: #fff; margin-bottom: 16px; }
.page-hero p { font-size: 18.5px; color: var(--muted-on-dark); max-width: 680px; margin: 0 auto; }

/* Paketi na početnoj */
.price-facts-3 { grid-template-columns: 1fr; gap: 10px; }
.price-facts-3 .price-fact {
    display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px;
    text-decoration: none; color: inherit; border: 1px solid transparent; transition: border-color .15s, background .15s;
}
.price-facts-3 .price-fact:hover { border-color: var(--brand-teal); background: #fff; }
.price-facts-3 .price-fact strong { font-size: 24px; order: 3; }
.price-facts-3 .price-fact strong span, .plan-price span { font-size: 14px; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.pf-name { font-weight: 700; color: var(--primary) !important; text-transform: uppercase; letter-spacing: .8px; font-size: 12px !important; }
.price-facts-3 .is-popular { border-color: rgba(29, 192, 191, .5); background: #effafa; }

/* Kartice paketa (cjenovnik) */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan-card {
    position: relative; display: flex; flex-direction: column; gap: 18px;
    padding: 32px 28px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.plan-card.is-popular { border: 2px solid var(--brand-teal); box-shadow: 0 20px 50px rgba(15, 39, 71, .14); transform: translateY(-8px); }
.plan-badge {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    padding: 4px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .4px;
    background: var(--navy-900); color: var(--brand-teal); white-space: nowrap;
}
.plan-name { font-size: 14px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--primary); }
.plan-price { font-size: 48px; font-weight: 800; letter-spacing: -1.5px; color: var(--navy-900); line-height: 1; }
.plan-price span { font-size: 16px; }
.plan-limit {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px;
    background: var(--bg-alt); font-weight: 600; font-size: 15px;
}
.plan-limit svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }
.plan-card .check-list { margin-bottom: 0; flex: 1; }
.plan-card .check-list li { font-size: 14.5px; }
.plan-card .btn { justify-content: center; }
.plans-note { text-align: center; color: var(--text-muted); font-size: 14.5px; margin-top: 28px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0 22px; }
.faq details[open] { border-color: #b9e6e6; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-weight: 700; font-size: 16px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 22px; font-weight: 400; color: var(--primary); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 18px; color: var(--text-muted); font-size: 15.5px; }

/* Koraci uvođenja (timeline) */
.timeline { list-style: none; max-width: 820px; margin: 0 auto; position: relative; display: grid; gap: 8px; }
.timeline::before {
    content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px;
    background: linear-gradient(180deg, var(--brand-teal), var(--brand-blue), var(--brand-green)); opacity: .35;
}
.timeline li { display: flex; gap: 22px; position: relative; padding: 14px 0; }
.tl-num {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--navy-900); color: var(--brand-teal); font-weight: 800; font-size: 17px;
    box-shadow: 0 0 0 6px #fff;
}
.section-alt .tl-num { box-shadow: 0 0 0 6px var(--bg-alt); }
.timeline h3 { font-size: 18px; margin: 4px 0 4px; }
.timeline p { color: var(--text-muted); font-size: 15.5px; }
.tl-who { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.tl-who.you  { background: #e5eafb; color: var(--brand-blue); }
.tl-who.we   { background: #e3f6f6; color: var(--primary); }
.tl-who.bank { background: #ddf6ea; color: #15803d; }

/* Kartice sa informacijama */
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.info-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.info-card { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); scroll-margin-top: 96px; }
.info-card h3 { font-size: 19px; margin-bottom: 10px; }
.info-card p { color: var(--text-muted); font-size: 15.5px; margin-bottom: 14px; }
.info-card p:last-child { margin-bottom: 0; }
.info-card .check-list { margin: 14px 0 0; }
.info-card .check-list li { font-size: 15px; }
.info-card .feature-icon { margin-bottom: 16px; }
.req-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.req-table th, .req-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.req-table th { width: 42%; color: var(--text-muted); font-weight: 600; padding-right: 12px; }
.req-table tr:last-child th, .req-table tr:last-child td { border-bottom: 0; }

.notice {
    display: flex; gap: 14px; align-items: flex-start; padding: 18px 22px; border-radius: 12px;
    background: #e3f6f6; color: #0b4f55; font-size: 15.5px; margin-top: 32px;
}
.notice svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.notice.dark { background: var(--navy-900); color: var(--muted-on-dark); }
.notice.dark b { color: #fff; }
.notice.dark svg { color: var(--brand-teal); }

/* Kontakt i forma za porudžbinu */
.contact-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 32px; align-items: start; }
.form-card { padding: 36px; border-radius: 18px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-md); scroll-margin-top: 96px; }
.form-card h2 { font-size: 26px; letter-spacing: -.4px; margin-bottom: 6px; }
.form-card > p { color: var(--text-muted); margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field label small { font-weight: 400; color: var(--text-muted); }
.field input, .field select, .field textarea {
    width: 100%; font: inherit; font-size: 15px; color: var(--text);
    padding: 11px 13px; border-radius: 10px; border: 1px solid #cfd8e3; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none; border-color: var(--brand-teal); box-shadow: 0 0 0 3px rgba(29, 192, 191, .2);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #dc2626; }
.field-error { display: block; color: #b91c1c; font-size: 13px; margin-top: 5px; }
.plan-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.plan-picker label {
    position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 10px; cursor: pointer;
    border: 1px solid #cfd8e3; font-size: 13px; color: var(--text-muted); margin: 0; font-weight: 400;
}
.plan-picker label b { font-size: 15px; color: var(--text); }
.plan-picker input { position: absolute; opacity: 0; pointer-events: none; }
.plan-picker label:has(input:checked) { border-color: var(--brand-teal); background: #effafa; box-shadow: 0 0 0 3px rgba(29, 192, 191, .15); }
.plan-picker label:has(input:focus-visible) { outline: 2px solid var(--brand-teal); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }
.form-actions small { color: var(--text-muted); font-size: 13px; }
.alert { padding: 16px 18px; border-radius: 12px; margin-bottom: 22px; font-size: 15px; display: flex; gap: 12px; }
.alert svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; }
.alert-ok { background: #dcfce7; color: #14532d; }
.alert-err { background: #fee2e2; color: #7f1d1d; }
.contact-aside { display: grid; gap: 16px; }
.aside-card { padding: 24px; border-radius: 14px; background: #fff; border: 1px solid var(--border); }
.aside-card h3 { font-size: 16px; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.aside-card h3 svg { width: 20px; height: 20px; color: var(--primary); }
.aside-card p, .aside-card li { color: var(--text-muted); font-size: 14.5px; }
.aside-card ol { padding-left: 18px; display: grid; gap: 6px; }
.aside-card a { font-weight: 600; }
.aside-card.dark { background: var(--navy-900); border-color: var(--navy-900); }
.aside-card.dark h3 { color: #fff; }
.aside-card.dark h3 svg { color: var(--brand-teal); }
.aside-card.dark p { color: var(--muted-on-dark); }

@media (max-width: 1000px) {
    .plans, .info-grid.cols-3 { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
    .plan-card.is-popular { transform: none; }
    .contact-grid { grid-template-columns: 1fr; }
    .plan-picker { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
    .page-hero { padding: 56px 0 48px; }
    .page-hero h1 { font-size: 32px; }
    .page-hero p { font-size: 16.5px; }
    .info-grid { grid-template-columns: 1fr; }
    .form-card { padding: 24px 18px; }
    .form-grid { grid-template-columns: 1fr; }
    .price-facts-3 .price-fact { grid-template-columns: 60px 1fr; }
    .price-facts-3 .price-fact strong { grid-column: 1 / -1; order: 0; }
}

/* Dugme koje izgleda kao link (npr. "Podešavanja kolačića") */
.link-btn {
    background: none; border: 0; padding: 0; font: inherit; font-size: 14px; text-align: left;
    color: var(--muted-on-dark); cursor: pointer;
}
.link-btn:hover { color: #fff; }
/* ---------- Banner za saglasnost (kolačići) ---------- */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000; display: flex; justify-content: center; }
.consent[hidden] { display: none; }
.consent-box {
    width: 100%; max-width: 760px; background: #fff; color: var(--text);
    border-radius: 16px; border: 1px solid var(--border); box-shadow: 0 24px 60px rgba(4, 12, 28, .35);
    padding: 22px 24px; display: grid; gap: 16px;
}
.consent h2 { font-size: 17px; margin-bottom: 6px; }
.consent p { font-size: 14px; color: var(--text-muted); }
.consent-prefs { display: grid; gap: 10px; }
.consent-prefs[hidden] { display: none; }
.consent-opt {
    display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px;
    background: var(--bg-alt); font-size: 14px; color: var(--text-muted); cursor: pointer;
}
.consent-opt b { color: var(--text); }
.consent-opt input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex-shrink: 0; }
.consent-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.consent-actions .btn { padding: 10px 16px; font-size: 14px; }
.consent-actions [hidden] { display: none; }

/* ---------- Pravne stranice ---------- */
.legal-wrap { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.legal-toc {
    position: sticky; top: 96px; padding: 20px; border-radius: 14px; background: #fff; border: 1px solid var(--border);
    font-size: 14px;
}
.legal-toc b { display: block; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; }
.legal-toc ol { padding-left: 18px; display: grid; gap: 6px; }
.legal-toc a { color: var(--text); text-decoration: none; }
.legal-toc a:hover { color: var(--primary); }
.legal { max-width: 760px; font-size: 16px; line-height: 1.75; }
.legal-meta {
    display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; font-size: 13.5px;
}
.legal-meta span { padding: 4px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--border); color: var(--text-muted); }
.legal h2 { font-size: 22px; letter-spacing: -.3px; margin: 36px 0 12px; scroll-margin-top: 96px; }
.legal h2:first-of-type { margin-top: 0; }
.legal h3 { font-size: 17px; margin: 22px 0 8px; }
.legal p, .legal li { color: #334155; }
.legal p { margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 22px; margin-bottom: 14px; display: grid; gap: 6px; }
.legal table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 14.5px; background: #fff; border-radius: 10px; overflow: hidden; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--border); vertical-align: top; }
.legal th { background: var(--bg-alt); font-weight: 700; }
.legal .company-card {
    padding: 18px 20px; border-radius: 12px; background: #fff; border: 1px solid var(--border); margin-bottom: 14px;
}
.legal-disclaimer { font-size: 13.5px; color: var(--text-muted); margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); }

/* Saglasnosti u formi */
.field label.consent-check, .consent-check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--text-muted); cursor: pointer; font-weight: 400 !important; }
.consent-check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--primary); flex-shrink: 0; }
.consent-check a { font-weight: 600; }

@media (max-width: 1000px) {
    .legal-wrap { grid-template-columns: 1fr; }
    .legal-toc { position: static; }
}
@media (max-width: 680px) {
    .consent { left: 8px; right: 8px; bottom: 8px; }
    .consent-box { padding: 18px; }
    .consent-actions .btn { flex: 1 1 auto; justify-content: center; }
    .legal table { display: block; overflow-x: auto; }
}

/* ---------- Mobilni meni ---------- */
.nav-toggle { display: none; }
@media (max-width: 900px) {
    .nav-wrap { gap: 12px; }
    .logo { margin-right: auto; }
    .nav-toggle {
        display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; order: 3;
        width: 44px; height: 44px; padding: 0 11px; border-radius: 10px; cursor: pointer;
        background: transparent; border: 1px solid rgba(255, 255, 255, .22);
    }
    .nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
    .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .site-header .site-nav {
        display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; gap: 0;
        background: var(--navy-900); border-bottom: 1px solid var(--border-dark); padding: 8px 16px 16px;
        box-shadow: 0 20px 40px rgba(4, 12, 28, .4);
    }
    .site-header.nav-open .site-nav { display: flex; }
    .site-nav a { padding: 13px 4px; font-size: 16px; border-bottom: 1px solid var(--border-dark); }
    .site-nav a:last-child { border-bottom: 0; }
    .site-nav a.is-active::after { display: none; }
    .site-nav a.is-active { color: var(--brand-teal); }
}

/* =====================================================================
   Premium sloj: gradijenti tamnih panela, aurora, ilustracije, reveal, animirane ikonice
   ===================================================================== */
:root {
    /* Gradijent tamnih panela — tirkizna / plava / zelena svjetla na tamnoplavoj */
    --dark-gradient:
        radial-gradient(900px 520px at 12% -10%, rgba(58, 91, 217, .38), transparent 60%),
        radial-gradient(780px 480px at 92% 8%, rgba(29, 192, 191, .26), transparent 62%),
        radial-gradient(720px 520px at 55% 125%, rgba(45, 197, 140, .2), transparent 62%),
        linear-gradient(160deg, #10284a 0%, #0c1f3c 52%, #112c55 100%);
    --panel-gradient:
        radial-gradient(420px 260px at 100% 0%, rgba(29, 192, 191, .16), transparent 65%),
        radial-gradient(380px 260px at 0% 100%, rgba(58, 91, 217, .2), transparent 65%),
        linear-gradient(155deg, #13325e 0%, #0f2747 55%, #0b1f3b 100%);
}

/* Veliki tamni paneli: gradijent + spora "aurora" + mreža */
.page-hero, .security, .cta-final { background: var(--dark-gradient); position: relative; overflow: hidden; isolation: isolate; }
.hero { background: var(--dark-gradient); isolation: isolate; }
.page-hero::after, .security::after, .cta-final::after, .hero::after {
    content: ""; position: absolute; inset: -30%; z-index: -1; pointer-events: none;
    background:
        radial-gradient(closest-side, rgba(29, 192, 191, .22), transparent) 20% 30% / 45% 45% no-repeat,
        radial-gradient(closest-side, rgba(58, 91, 217, .26), transparent) 75% 60% / 50% 50% no-repeat,
        radial-gradient(closest-side, rgba(45, 197, 140, .16), transparent) 50% 90% / 40% 40% no-repeat;
    filter: blur(30px);
    animation: aurora 22s ease-in-out infinite alternate;
}
@keyframes aurora {
    0%   { transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1); }
    50%  { transform: translate3d(3%, 3%, 0) rotate(8deg) scale(1.08); }
    100% { transform: translate3d(5%, -3%, 0) rotate(-6deg) scale(1.02); }
}
.security::before, .cta-final::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.page-hero::before { z-index: -1; }
.security .container, .cta-final .container { position: relative; }

/* Manji tamni paneli i kartice */
.flow-panel, .aside-card.dark, .notice.dark, .code-card { background: var(--panel-gradient); }
.sec-item {
    background: linear-gradient(160deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02));
    backdrop-filter: blur(6px);
    transition: transform .25s, border-color .25s, box-shadow .25s;
}
.sec-item:hover { transform: translateY(-4px); border-color: rgba(29, 192, 191, .45); box-shadow: 0 18px 40px rgba(0, 0, 0, .25); }

/* ---------- Zaglavlje podstranice sa ilustracijom ---------- */
.page-hero.with-illus .container { max-width: 1160px; text-align: left; }
.ph-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.page-hero.with-illus p { margin: 0; }
.ph-illus { max-width: 440px; justify-self: end; width: 100%; }
.sec-illus { width: 260px; margin: 0 auto 20px; }

/* ---------- Ilustracije: animacije ---------- */
.illus { width: 100%; height: auto; display: block; overflow: visible; font-family: inherit; }
.illus .il-float { animation: il-float 6s ease-in-out infinite; }
.illus .il-float-2 { animation-duration: 7.5s; animation-delay: -2.5s; }
@keyframes il-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.illus .il-dash { stroke-dasharray: 6 8; animation: il-dash 1.4s linear infinite; }
@keyframes il-dash { to { stroke-dashoffset: -28; } }
.illus .il-pulse { transform-box: fill-box; transform-origin: center; animation: il-pulse 2.8s ease-out infinite; }
@keyframes il-pulse { 0% { transform: scale(1); opacity: .75; } 100% { transform: scale(1.7); opacity: 0; } }
.illus .il-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: il-draw 1.4s cubic-bezier(.6, .1, .2, 1) forwards; animation-delay: calc(.5s + var(--d, 0s)); }
@keyframes il-draw { to { stroke-dashoffset: 0; } }
.illus .il-grow { transform-box: fill-box; transform-origin: bottom; animation: il-grow 1s cubic-bezier(.2, .8, .2, 1) both, il-breathe 4s ease-in-out infinite alternate; animation-delay: var(--d, 0s), calc(1s + var(--d, 0s)); }
@keyframes il-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes il-breathe { from { transform: scaleY(1); } to { transform: scaleY(.9); } }
.illus .il-type { transform-box: fill-box; transform-origin: left; animation: il-type 7s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes il-type { 0% { transform: scaleX(0); } 12%, 82% { transform: scaleX(1); } 94%, 100% { transform: scaleX(0); } }
.illus .il-blink { animation: il-blink 1.2s ease-in-out infinite; animation-delay: var(--d, 0s); }
@keyframes il-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
.illus .il-spin { animation: il-spin 24s linear infinite; }
@keyframes il-spin { to { transform: rotate(360deg); } }
.illus .il-scan { animation: il-scan 3.2s ease-in-out infinite; }
@keyframes il-scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(160px); } }
.illus .il-glow { animation: il-glow 2.4s ease-in-out infinite; }
@keyframes il-glow { 0%, 100% { filter: drop-shadow(0 0 0 rgba(29, 192, 191, 0)); } 50% { filter: drop-shadow(0 0 10px rgba(29, 192, 191, .8)); } }

/* ---------- Pojavljivanje kartica (site.js dodaje .reveal / .is-visible) ---------- */
html.js .reveal {
    opacity: 0; transform: translateY(22px) scale(.985);
    transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
    transition-delay: var(--d, 0s);
}
html.js .reveal.is-visible { opacity: 1; transform: none; }
/* kartice koje imaju sopstveni hover transform — poslije pojavljivanja vraćamo njihove tranzicije */
html.js .feature-card.reveal.is-visible, html.js .plan-card.reveal.is-visible { transition: opacity .7s, transform .25s, box-shadow .25s, border-color .25s; transition-delay: var(--d, 0s), 0s, 0s, 0s; }
html.js .plan-card.is-popular.reveal.is-visible { transform: translateY(-8px); }

/* ---------- Animirane ikonice ---------- */
/* 1) Iscrtavanje kad se kartica pojavi */
html.js .reveal .ic * { stroke-dasharray: 1; stroke-dashoffset: 1; }
html.js .reveal.is-visible .ic * { animation: ic-draw 1.1s cubic-bezier(.6, .1, .2, 1) forwards; animation-delay: calc(.25s + var(--d, 0s)); }
@keyframes ic-draw { to { stroke-dashoffset: 0; } }

/* 2) Ikonice u "feature" krugovima: blagi sjaj + pokret na hover kartice */
.feature-icon { position: relative; transition: transform .3s; }
.feature-icon::after {
    content: ""; position: absolute; inset: -4px; border-radius: 14px; pointer-events: none;
    background: radial-gradient(circle, rgba(29, 192, 191, .35), transparent 70%); opacity: 0; transition: opacity .3s;
}
.feature-card:hover .feature-icon, .info-card:hover .feature-icon, .sec-item:hover .feature-icon { transform: translateY(-3px) scale(1.06); }
.feature-card:hover .feature-icon::after, .info-card:hover .feature-icon::after, .sec-item:hover .feature-icon::after { opacity: 1; }
.ic { transform-box: fill-box; transform-origin: center; }
:is(.feature-card, .info-card, .sec-item, .aside-card):hover .ic-bell   { animation: ic-ring .9s ease-in-out; transform-origin: 50% 10%; }
:is(.feature-card, .info-card, .sec-item, .aside-card):hover .ic-switch { animation: ic-swap 1s ease-in-out; }
:is(.feature-card, .info-card, .sec-item, .aside-card):hover .ic-shield,
:is(.feature-card, .info-card, .sec-item, .aside-card):hover .ic-lock   { animation: ic-pop .6s ease-in-out; }
:is(.feature-card, .info-card, .sec-item, .aside-card):hover .ic-wrench { animation: ic-turn .8s ease-in-out; }
:is(.feature-card, .info-card, .sec-item, .aside-card):hover .ic-plug,
:is(.feature-card, .info-card, .sec-item, .aside-card):hover .ic-key    { animation: ic-nudge .8s ease-in-out; }
:is(.feature-card, .info-card, .sec-item, .aside-card):hover .ic-card,
:is(.feature-card, .info-card, .sec-item, .aside-card):hover .ic-doc,
:is(.feature-card, .info-card, .sec-item, .aside-card):hover .ic-mail   { animation: ic-tilt .7s ease-in-out; }
:is(.feature-card, .info-card, .sec-item, .aside-card):hover .ic-code,
:is(.feature-card, .info-card, .sec-item, .aside-card):hover .ic-route,
:is(.feature-card, .info-card, .sec-item, .aside-card):hover .ic-clock  { animation: ic-pop .6s ease-in-out; }
@keyframes ic-ring  { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(16deg); } 40% { transform: rotate(-14deg); } 60% { transform: rotate(9deg); } 80% { transform: rotate(-5deg); } }
@keyframes ic-swap  { 0%, 100% { transform: translateX(0); } 30% { transform: translateX(3px); } 65% { transform: translateX(-3px); } }
@keyframes ic-pop   { 0%, 100% { transform: scale(1); } 45% { transform: scale(1.18); } }
@keyframes ic-turn  { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-28deg); } }
@keyframes ic-nudge { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-3px); } 70% { transform: translateY(1px); } }
@keyframes ic-tilt  { 0%, 100% { transform: rotate(0); } 35% { transform: rotate(-10deg); } 70% { transform: rotate(6deg); } }
/* strelica u dugmadima */
.btn .ic-arrow { transition: transform .25s; }
.btn:hover .ic-arrow { transform: translateX(4px); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .ph-grid { grid-template-columns: 1fr; gap: 28px; }
    .ph-illus { justify-self: center; max-width: 360px; }
    .page-hero.with-illus .container { text-align: center; }
    .page-hero.with-illus p { margin: 0 auto; }
}
@media (max-width: 680px) {
    .ph-illus { max-width: 280px; }
    .sec-illus { width: 200px; }
}

/* ---------- Bez animacija za one koji to traže ---------- */
@media (prefers-reduced-motion: reduce) {
    .illus *, .page-hero::after, .security::after, .cta-final::after, .hero::after, .ic, .ic * { animation: none !important; }
    .illus .il-draw, html.js .reveal .ic * { stroke-dashoffset: 0 !important; }
    html.js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* reCAPTCHA napomena ispod forme */
.recaptcha-note { margin-top: 14px; font-size: 12px; color: var(--text-muted); }
.recaptcha-note a { color: var(--text-muted); text-decoration: underline; }

/* =====================================================================
   Popup poruka (rezultat slanja forme) — uspjeh / greška, animirano
   ===================================================================== */
html.js .alert-fallback { display: none; }          /* bez JS-a ostaju obične poruke u formi */
html.modal-open { overflow: hidden; }

.pm-modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 16px; }
.pm-modal-backdrop {
    position: absolute; inset: 0; background: rgba(7, 20, 38, .62); backdrop-filter: blur(6px);
    animation: pm-fade .3s ease both;
}
.pm-modal-card {
    position: relative; width: 100%; max-width: 440px; text-align: center;
    background: #fff; border-radius: 22px; padding: 36px 30px 28px;
    box-shadow: 0 30px 80px rgba(4, 12, 28, .45);
    animation: pm-pop .55s cubic-bezier(.2, 1.3, .35, 1) both;
}
.pm-modal-card::before {                                  /* tanka brend linija na vrhu */
    content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 4px; border-radius: 0 0 4px 4px;
    background: var(--brand-gradient);
}
.is-error .pm-modal-card::before { background: linear-gradient(90deg, #f87171, #dc2626); }
.pm-modal h2 { font-size: 23px; letter-spacing: -.3px; color: var(--navy-900); margin: 6px 0 8px; animation: pm-up .5s .35s both; }
.pm-modal p { color: var(--text-muted); font-size: 15.5px; line-height: 1.6; animation: pm-up .5s .45s both; }
.pm-modal-x {
    position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: transparent; color: var(--text-muted); font-size: 26px; line-height: 1; cursor: pointer;
}
.pm-modal-x:hover { background: var(--bg-alt); color: var(--text); }
.pm-modal-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; animation: pm-up .5s .55s both; }
.pm-modal-contact { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.pm-modal-contact a {
    display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
    background: var(--bg-alt); color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none;
}
.pm-modal-contact a:hover { background: #e3f6f6; }
.pm-modal-contact svg { width: 16px; height: 16px; color: var(--primary); }

/* Ikonica: krug + kvačica / X se iscrtavaju */
.pm-modal-icon { position: relative; width: 96px; height: 96px; margin: 0 auto 6px; }
.pm-modal-icon svg { width: 96px; height: 96px; overflow: visible; }
.pm-modal-icon .mi-glow { fill: rgba(45, 197, 140, .14); transform-origin: 44px 44px; animation: pm-glow 2.4s 1.1s ease-in-out infinite; }
.pm-modal-icon .mi-ring { fill: none; stroke: #2dc58c; stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: 1;
    transform: rotate(-90deg); transform-origin: 44px 44px; animation: pm-draw .7s .25s cubic-bezier(.65, 0, .35, 1) forwards; }
.pm-modal-icon .mi-mark { fill: none; stroke: #2dc58c; stroke-width: 5.5; stroke-linecap: round; stroke-linejoin: round;
    stroke-dasharray: 1; stroke-dashoffset: 1; animation: pm-draw .45s .8s cubic-bezier(.65, 0, .35, 1) forwards; }
.is-error .pm-modal-icon .mi-glow { fill: rgba(220, 38, 38, .1); }
.is-error .pm-modal-icon .mi-ring, .is-error .pm-modal-icon .mi-mark { stroke: #dc2626; }
.is-error .pm-modal-icon .mi-mark-2 { animation-delay: 1s; }
.is-error .pm-modal-card { animation: pm-pop .55s cubic-bezier(.2, 1.3, .35, 1) both, pm-shake .5s 1.3s ease-in-out; }

/* Uspjeh: rasprskavanje tačkica u bojama brenda */
.pm-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.pm-burst i {
    position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; opacity: 0;
    background: var(--brand-teal);
    transform: rotate(calc(var(--i) * 30deg)) translateY(0);
    animation: pm-burst .9s 1s cubic-bezier(.1, .8, .3, 1) forwards;
}
.pm-burst i:nth-child(3n+2) { background: var(--brand-blue); width: 6px; height: 6px; }
.pm-burst i:nth-child(3n)   { background: var(--brand-green); border-radius: 2px; }

/* Zatvaranje */
.pm-modal.is-closing .pm-modal-backdrop { animation: pm-fade-out .26s ease forwards; }
.pm-modal.is-closing .pm-modal-card { animation: pm-out .26s ease forwards; }

@keyframes pm-fade     { from { opacity: 0; } to { opacity: 1; } }
@keyframes pm-fade-out { to { opacity: 0; } }
@keyframes pm-pop  { from { opacity: 0; transform: translateY(24px) scale(.88); } to { opacity: 1; transform: none; } }
@keyframes pm-out  { to { opacity: 0; transform: translateY(12px) scale(.95); } }
@keyframes pm-up   { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pm-draw { to { stroke-dashoffset: 0; } }
@keyframes pm-glow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.12); opacity: .6; } }
@keyframes pm-shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-8px); } 40% { transform: translateX(7px); } 60% { transform: translateX(-5px); } 80% { transform: translateX(3px); } }
@keyframes pm-burst {
    0%   { opacity: 0; transform: rotate(calc(var(--i) * 30deg)) translateY(0) scale(.4); }
    15%  { opacity: 1; }
    100% { opacity: 0; transform: rotate(calc(var(--i) * 30deg)) translateY(-70px) scale(1); }
}

@media (max-width: 680px) {
    .pm-modal-card { padding: 30px 20px 22px; border-radius: 18px; }
    .pm-modal-actions .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
    .pm-modal *, .pm-modal-backdrop, .pm-modal-card { animation: none !important; }
    .pm-modal-icon .mi-ring, .pm-modal-icon .mi-mark { stroke-dashoffset: 0; }
    .pm-burst { display: none; }
}

/* Fokus na dugmadima (tastatura / popup) u boji brenda umjesto podrazumijevanog crnog okvira */
.btn:focus-visible { outline: 3px solid rgba(29, 192, 191, .5); outline-offset: 2px; }


/* Footer — responsive */
@media (max-width: 1000px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
    .footer-brand, .footer-cta { grid-column: 1 / -1; }
    .footer-cta { max-width: 520px; }
}
@media (max-width: 680px) {
    .site-footer { padding-top: 48px; }
    .footer-grid { gap: 36px 20px; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Sertifikati: zvanični znak RiG CERT (ISO 9001, ISO/IEC 27001) kao link na provjeru ---------- */
.cert-mark { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; }
.cert-mark img { display: block; height: auto; max-width: 100%; border-radius: 6px; transition: transform .25s, filter .25s; }
.cert-mark:hover img { transform: translateY(-2px) scale(1.02); filter: drop-shadow(0 10px 22px rgba(0, 0, 0, .35)); }
.cert-verify { font-size: 12px; font-weight: 600; color: var(--muted-on-dark); transition: color .2s; }
.cert-mark:hover .cert-verify { color: var(--brand-teal); }
.cert-mark:focus-visible { outline: 2px solid var(--brand-teal); outline-offset: 4px; border-radius: 8px; }
.footer-certs { margin-top: 24px; }
.footer-certs .cert-mark { align-items: flex-start; }
.cert-band { margin-top: 44px; text-align: center; }
.cert-band > p { color: var(--muted-on-dark); font-size: 13px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 18px; }
.cert-row { display: flex; justify-content: center; }

/* ---------- Footer: firma (Softing) umjesto loga placanje.me ---------- */
.footer-company { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-company-logo {
    width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0;
    display: grid; place-items: center; background: #fff;               /* zeleni znak je čitljiv samo na svijetloj podlozi */
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25); transition: transform .25s;
}
.footer-company-logo img { width: 30px; height: auto; display: block; }
.footer-company-name b { display: block; color: #fff; font-size: 17px; letter-spacing: -.2px; line-height: 1.2; }
.footer-company-name small { display: block; color: var(--brand-teal); font-size: 13px; font-weight: 600; margin-top: 2px; }
.footer-company:hover .footer-company-logo { transform: translateY(-2px) rotate(-4deg); }
.footer-company:hover .footer-company-name small { text-decoration: underline; text-underline-offset: 3px; }
