:root {
  --navy: #071d3a;
  --blue: #0369a1;
  --blue-soft: #cfe6f7;
  --text: #1b2633;
  --muted: #5a6675;
  --line: #dde2e8;
  --tint: #f3f6f9;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: #fff;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: var(--blue); }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* zaglavlje */
.top { border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand svg { height: 38px; width: auto; flex: none; }
.brand b { display: block; font-weight: 600; font-size: 18px; line-height: 1.2; }
.brand small { display: block; font-size: 12.5px; color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 20px; }

.btn {
  display: inline-block;
  padding: 13px 22px;
  border: 0;
  border-radius: 4px;
  background: var(--navy);
  color: #fff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--blue); color: #fff; }
.btn[disabled] { opacity: .6; cursor: default; }
.btn-small { padding: 9px 16px; font-size: 15px; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--blue-soft); color: var(--navy); }

/* vrh stranice */
.kicker { font-size: 15px; font-weight: 500; margin-bottom: 14px; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.3rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; }
.lead { font-size: 19px; }

/* hero */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(180deg, #071d3a 0%, #15205e 26%, #43297c 48%, #9a3a80 64%, #ee6a5e 78%, #ff9a6b 100%);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: url("../img/noise.png") 0 0 / 128px 128px;
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 3; max-width: 900px; padding-top: 48px; text-align: center; }
.hero .kicker { color: #8fd3ff; }
.hero h1 { color: #fff; }
.hero h1 mark { background: none; color: #ffd766; white-space: nowrap; }
.hero .lead { max-width: 36em; margin: 20px auto 0; color: #dfe1f5; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 28px; }
.btn-gold { background: #ffd04d; color: #071d3a; }
.btn-gold:hover { background: #ffe38f; color: #071d3a; }
.btn-ghost { background: rgba(7, 29, 58, .25); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); color: #fff; }

.hero-art { position: relative; margin-top: -56px; --h: clamp(300px, 38vw, max(580px, 27.5vw)); }
.hero-stage { position: relative; height: var(--h); }
.hero-stage > svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.sc-bg { -webkit-mask-image: linear-gradient(to bottom, transparent, #000 18%); mask-image: linear-gradient(to bottom, transparent, #000 18%); }
.sc { will-change: transform; }
.sc text { font-family: inherit; }
.hero-stage.paused .sc, .hero-stage.paused .sc * { animation-play-state: paused !important; }
.hero-note {
  position: absolute;
  z-index: 3;
  top: calc(var(--h) * .09);
  left: calc(50% + var(--h) * .72);
  font-family: "Caveat", "Segoe Print", cursive;
  font-size: clamp(22px, calc(var(--h) * .055), 42px);
  font-weight: 600;
  line-height: 1.05;
  color: #fff;
  text-align: center;
  transform: rotate(-4deg);
}

.hero-stage { --rs: 1.2; --ry: -2.5%; }
.bob { transform-origin: 50% 62%; transform: translateY(var(--ry)) scale(var(--rs)); animation: bob 5.5s ease-in-out infinite alternate; }
.sc .tas { animation: flutter .7s ease-in-out infinite alternate; }
.sc .tail { animation: swish 2.8s ease-in-out infinite alternate; }
.sc .scarf { animation: wave .55s ease-in-out infinite alternate; }
.sc .scarf.f2 { animation-duration: .7s; }
.sc .eye { transform-box: fill-box; transform-origin: center; animation: blink 4.5s infinite; }
.sc .tap { animation: tap .22s ease-in-out infinite alternate; }
.sc .steam { opacity: 0; animation: trail 2.6s ease-out infinite; }
.sc .steam.s2 { animation-delay: .9s; }
.sc .steam.s3 { animation-delay: 1.7s; }
.sc .glow { animation: flicker 1.7s ease-in-out infinite alternate; }
.sc .star { animation: twinkle 3.2s ease-in-out infinite; }
.sc .shoot { opacity: 0; animation: shoot 11s linear infinite; }
.sc .wisp { animation: pass 46s linear infinite; }
.sc .wisp.w2 { animation-duration: 58s; animation-delay: -20s; }
.sc .wisp.w3 { animation-duration: 52s; animation-delay: -34s; }
.sc .wisp.w4 { animation-duration: 64s; animation-delay: -8s; }
.sc .wisp.fast { animation-duration: 17s; }
.sc .wisp.fast.f2 { animation-duration: 23s; animation-delay: -9s; }
.sc .birds { animation: glide 38s ease-in-out infinite alternate; }
.sc .streak { opacity: 0; transform-box: fill-box; transform-origin: right center; animation: whoosh 1.8s ease-out infinite; }
.sc .streak.k2 { animation-delay: .6s; }
.sc .streak.k3 { animation-delay: 1.2s; }
.sc .plane { opacity: 0; animation: fly 9s linear infinite; }
.sc .plane.p2 { animation-delay: 3s; }
.sc .plane.p3 { animation-delay: 6s; }
.sc .spark { animation: pop 2.4s ease-in-out infinite; }
.sc .spark.k2 { animation-delay: 1.2s; }

@keyframes bob { from { transform: translateY(calc(var(--ry) + 1%)) rotate(.7deg) scale(var(--rs)); } to { transform: translateY(calc(var(--ry) - 1.3%)) rotate(-.8deg) scale(var(--rs)); } }
@keyframes flutter { from { transform: rotate(-16deg); } to { transform: rotate(14deg); } }
@keyframes swish { from { transform: rotate(-8deg); } to { transform: rotate(14deg); } }
@keyframes wave { from { transform: rotate(-7deg) scaleX(.94); } to { transform: rotate(8deg) scaleX(1.06); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(.1); } }
@keyframes tap { to { transform: translateY(-3px); } }
@keyframes trail { 0% { transform: translate(8px, 10px); opacity: 0; } 30% { opacity: .85; } 100% { transform: translate(-34px, -16px); opacity: 0; } }
@keyframes flicker { from { opacity: .7; transform: scale(.94); } to { opacity: 1; transform: scale(1.06); } }
@keyframes twinkle { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes shoot { 0% { transform: translateX(-260px); opacity: 0; } 2% { opacity: 1; } 7%, 100% { transform: translateX(60px); opacity: 0; } }
@keyframes pass { 0% { transform: translateX(900px); opacity: 0; } 8%, 92% { opacity: 1; } 100% { transform: translateX(-1500px); opacity: 0; } }
@keyframes glide { from { transform: translate(-80px, 10px); } to { transform: translate(160px, -20px); } }
@keyframes whoosh { 0% { transform: translateX(70px) scaleX(.3); opacity: 0; } 30% { opacity: .8; } 100% { transform: translateX(-120px) scaleX(1); opacity: 0; } }
@keyframes fly {
  0% { transform: translate(0, 0) rotate(-62deg) scale(.3); opacity: 0; }
  6% { transform: translate(10px, -22px) rotate(-62deg) scale(1); opacity: 1; }
  30% { transform: translate(130px, -112px) rotate(-30deg) scale(1); }
  55% { transform: translate(400px, -152px) rotate(-8deg) scale(1); opacity: 1; }
  78%, 100% { transform: translate(780px, -166px) rotate(-2deg) scale(1); opacity: 0; }
}
@keyframes pop { 0%, 100% { transform: scale(0); } 50% { transform: scale(1); } }

/* novčić od 1 KM: dva lica i "rub" od slojeva, prava 3D rotacija */
.coin3d {
  --d: calc(var(--h) * .23);
  position: absolute;
  z-index: 3;
  left: calc(50% + var(--h) * .4484 - var(--d) / 2);
  top: calc(var(--h) * .27 - var(--d) / 2);
  width: var(--d);
  height: var(--d);
  perspective: calc(var(--d) * 4);
}
.coin-spin { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateX(8deg) rotateY(-22deg); animation: coin-spin 9s ease-in-out infinite; }
.coin-spin > * { position: absolute; inset: 0; border-radius: 50%; }
.coin-spin > i { background: linear-gradient(100deg, #5f6780, #e3e6ee 42%, #9aa1b6 70%, #6a7189); transform: translateZ(calc(var(--d) * .075 * var(--z))); }
.coin-face { overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.coin-face svg { display: block; width: 100%; height: 100%; }
.coin-face text { font-family: inherit; }
.coin-value { transform: translateZ(calc(var(--d) * .0385)); }
.coin-arms { transform: rotateY(180deg) translateZ(calc(var(--d) * .0385)); }
.coin-face::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .7) 50%, transparent 62%); transform: translateX(-110%); animation: coin-sheen 9s ease-in-out infinite; }
.coin-arms::after { animation-delay: -4.5s; }
.hero-stage.paused .coin-spin, .hero-stage.paused .coin-face::after { animation-play-state: paused; }

@keyframes coin-spin {
  0% { transform: rotateX(8deg) rotateY(-22deg); }
  38% { transform: rotateX(8deg) rotateY(22deg); }
  50% { transform: rotateX(8deg) rotateY(158deg); }
  88% { transform: rotateX(8deg) rotateY(202deg); }
  100% { transform: rotateX(8deg) rotateY(338deg); }
}
@keyframes coin-sheen { 0%, 8% { transform: translateX(-110%); } 30%, 100% { transform: translateX(110%); } }

/* prijava */
.apply { display: grid; grid-template-columns: 1fr 1fr; grid-template-areas: "head form" "more form"; grid-template-rows: auto 1fr; column-gap: 56px; align-items: start; padding-top: 64px; padding-bottom: 64px; }
.apply-head { grid-area: head; }
.apply-more { grid-area: more; }
.signup { grid-area: form; }
.apply h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); }
.apply .sub { color: var(--muted); margin-top: 8px; }
.facts { margin-top: 26px; }
.facts li { position: relative; padding-left: 20px; margin-top: 8px; }
.facts li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--blue); }
.signup { border: 1px solid var(--line); border-top: 4px solid var(--navy); background: var(--tint); padding: 10px 26px 26px; scroll-margin-top: 20px; }
.field { margin-top: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 5px; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #b9c2cc;
  border-radius: 4px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
.field textarea { resize: vertical; min-height: 72px; }
.hp { position: absolute; left: -9999px; }
.signup .btn { width: 100%; margin-top: 20px; }
.feedback { margin-top: 14px; padding: 12px 14px; font-size: 15px; border-left: 3px solid var(--blue); background: #fff; }
.feedback.err { border-left-color: #b42318; }
.feedback[hidden] { display: none; }

/* sekcije */
.block { padding-top: 64px; padding-bottom: 64px; border-top: 1px solid var(--line); }
.block > h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: var(--navy); }
.block > .sub { color: var(--muted); margin-top: 8px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 34px; counter-reset: korak; }
.steps li { counter-increment: korak; border-top: 2px solid var(--navy); padding-top: 14px; }
.steps li::before { content: counter(korak); display: block; font-size: 30px; font-weight: 600; line-height: 1; color: var(--blue); margin-bottom: 12px; }
.steps h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: 16px; }

.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 34px; align-items: start; }
.rates { width: 100%; border-collapse: collapse; }
.rates th, .rates td { padding: 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.rates th { font-weight: 400; padding-right: 16px; }
.rates td { font-weight: 600; font-size: 20px; color: var(--navy); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.note { font-size: 15.5px; color: var(--muted); margin-top: 18px; }

.calc { border: 1px solid var(--line); padding: 24px; }
.calc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.calc-head label { font-size: 15px; font-weight: 500; }
.calc-head output { font-size: 20px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc input[type=range] { width: 100%; margin: 18px 0 6px; accent-color: var(--blue); }
.scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.calc-result { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.calc-result strong { font-size: 34px; line-height: 1; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-note { font-size: 14.5px; color: var(--muted); margin-top: 10px; min-height: 3em; }

.who { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; margin-top: 30px; }
.who h3 { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.who li { position: relative; padding-left: 20px; margin-top: 8px; }
.who li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; background: var(--blue); }
.starter { margin-top: 40px; padding: 22px 26px; background: var(--tint); border-left: 4px solid var(--blue); }
.starter strong { color: var(--navy); }
.starter a { font-weight: 600; white-space: nowrap; }

.faq { margin-top: 26px; max-width: 760px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 500; font-size: 18px; color: var(--navy); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; font-size: 24px; line-height: 1; color: var(--blue); }
.faq details[open] summary::after { content: "\2212"; }
.faq .a { padding: 0 0 20px; max-width: 42em; }
.faq .a p + p, .faq .a dl { margin-top: 10px; }
.faq dl { margin: 0; }
.faq dt { font-weight: 600; margin-top: 12px; }
.faq dd { margin: 0; color: var(--muted); }
.faq .src { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* završni poziv */
.closing { background: var(--navy); color: #fff; }
.closing-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding-top: 48px; padding-bottom: 48px; }
.closing h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); line-height: 1.2; font-weight: 600; }
.closing p { color: #b8c6d8; margin-top: 6px; }
.closing p a { color: #fff; font-weight: 600; }

footer { padding: 30px 0 30px; font-size: 14.5px; color: var(--muted); }
.foot-in { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; }
.foot-addr { font-style: normal; line-height: 1.6; }
.foot-addr strong { color: var(--navy); font-weight: 600; }
.foot-legal { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; }

/* traka s pozivom na mobitelu */
.bar { display: none; }

@media (max-width: 860px) {
  body { font-size: 16.5px; padding-bottom: 68px; }
  .brand small, .top .btn-small { display: none; }
  .brand b { font-size: 16px; }
  .brand svg { height: 34px; }
  .hero-copy { padding-top: 36px; }
  .lead { font-size: 18px; }
  .hero-art { margin-top: 26px; --h: clamp(300px, 84vw, 520px); }
  .hero-stage { margin-top: -40px; --rs: 1; --ry: 0%; }
  .hero-note { position: relative; top: auto; left: auto; font-size: 25px; transform: rotate(-2deg); }
  .hero-note br { display: none; }
  .apply { grid-template-columns: 1fr; grid-template-areas: "head" "form" "more"; row-gap: 24px; padding-top: 48px; padding-bottom: 48px; }
  .facts { margin-top: 4px; }
  .block { padding-top: 48px; padding-bottom: 48px; }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .pricing, .who { grid-template-columns: 1fr; gap: 32px; }
  .bar { display: flex; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; padding: 10px 14px; background: #fff; border-top: 1px solid var(--line); transition: transform .2s; }
  .bar.off { transform: translateY(110%); }
  .bar a { flex: 1; text-align: center; padding: 11px 10px; font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar { transition: none; }
  .sc, .sc *, .coin-spin, .coin-face::after { animation: none !important; }
  .sc .steam { opacity: .7; }
  .sc .plane.p1 { opacity: 1; transform: translate(130px, -112px) rotate(-30deg); }
}

/* jednostavne stranice: hvala, greška, 404 */
.simple-main { padding-top: 72px; padding-bottom: 88px; max-width: 760px; }
.simple-main h1 { color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.simple-main .lead { margin-top: 16px; color: var(--muted); }
.simple-back { margin-top: 28px; }
body.simple { padding-bottom: 0; }
