/* Flyer Digital
   Palette: paper, ink navy, Flyer blue (from the logo), sky (logo light blue), process yellow for actions. */
:root {
  --paper: #F2F4F8;
  --white: #FFFFFF;
  --ink: #12203A;
  --ink-2: #4A5875;
  --line: #D9DFEA;
  --blue: #1E63E9;
  --sky: #2BA8E0;
  --signal: #FFCC2E;
  --signal-deep: #F2B705;

  --display: "Bricolage Grotesque", "Onest", system-ui, sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 2.9rem);
  --step-4: clamp(2.8rem, 1.6rem + 5.2vw, 5.4rem);

  --wrap: 1160px;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4.5rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 var(--step-0)/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--ink); color: var(--white); padding: .6rem 1rem; border-radius: 6px; z-index: 100; }
.skip:focus { top: 1rem; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3.25rem; padding: 0 1.5rem;
  font: 600 var(--step-0)/1 var(--body);
  text-decoration: none; border-radius: 10px; border: 2px solid transparent;
  cursor: pointer; transition: background-color .15s, transform .15s, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: var(--signal-deep); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--blue); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white); }
.btn-small { min-height: 2.5rem; padding: 0 1rem; font-size: var(--step--1); border-radius: 8px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 2rem; height: 4.25rem; }
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-logo { display: block; height: 2.15rem; width: auto; }
.nav { display: flex; gap: 1.75rem; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: var(--step--1); color: var(--ink-2); }
.nav a:hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(4rem, 8vw, 6.5rem); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero h1 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; max-width: 13ch; }
.lead { margin-top: 1.5rem; font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.hero-facts { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: .5rem; }
.hero-facts li { position: relative; padding-left: 1.75rem; font-weight: 500; }
.hero-facts li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem;
  border-left: 2.5px solid var(--blue); border-bottom: 2.5px solid var(--blue); transform: rotate(-45deg);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.25rem; }
.hero-direct { margin-top: 1.1rem; font-size: var(--step--1); color: var(--ink-2); }
.hero-direct a { font-weight: 600; color: var(--ink); }

/* Hero stage: search result, phone with the site, inquiry delivered by the paper plane.
   Sizes use container units, so the mockup scales as one piece. */
.stage { position: relative; width: 100%; max-width: 540px; aspect-ratio: 540 / 470; justify-self: end; container-type: inline-size; }
.search {
  position: absolute; left: 2%; top: 50%; width: 55%;
  background: var(--white); border-radius: 2.4cqw; padding: 2.6cqw;
  box-shadow: 0 1px 0 var(--line), 0 18px 40px -18px rgba(18, 32, 58, .35);
  transform: rotate(-3deg);
}
.search-bar {
  display: flex; align-items: center; gap: 1.4cqw;
  padding: 1.6cqw 2.2cqw; border: 1.5px solid var(--line); border-radius: 5cqw;
  font-size: 2.2cqw; color: var(--ink);
}
.search-bar svg { width: 2.6cqw; color: var(--ink-2); }
.result { display: grid; gap: 1cqw; padding: 2.2cqw 2cqw; margin-top: 1.8cqw; border-radius: 1.6cqw; }
.result-hit { background: #EEF3FE; box-shadow: inset 0 0 0 1.5px var(--blue); }
.result-url { font-size: 1.8cqw; color: var(--ink-2); }
.result-title { font: 700 2.6cqw/1.2 var(--display); color: var(--blue); }
.sk-url { width: 30%; }
.sk-title { width: 75%; height: 1.6cqw; }

.phone {
  position: absolute; left: 58%; top: 8%; width: 37%; aspect-ratio: 9 / 18.5;
  background: var(--ink); border-radius: 5cqw; padding: 1.4cqw;
  box-shadow: 0 30px 50px -24px rgba(18, 32, 58, .55);
  transform: rotate(3deg);
}
.phone-screen {
  height: 100%; background: var(--white); border-radius: 3.8cqw; overflow: hidden;
  display: flex; flex-direction: column; font-size: 1.9cqw;
}
.ph-bar { display: flex; align-items: center; gap: .8cqw; padding: 2.2cqw 2.6cqw 1.6cqw; color: var(--ink-2); }
.ph-bar span { width: 1.2cqw; height: 1.2cqw; border-radius: 50%; background: #2FB463; }
.ph-nav { display: flex; justify-content: space-between; align-items: center; padding: 1.4cqw 2.6cqw; border-top: 1px solid var(--line); }
.ph-nav b { font: 800 2.3cqw/1 var(--display); }
.ph-nav i { width: 3cqw; height: 1.6cqw; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.ph-hero { background: var(--ink); color: var(--white); padding: 3.2cqw 2.6cqw; display: grid; gap: 1.2cqw; }
.ph-title { font: 800 3.6cqw/1.05 var(--display); letter-spacing: -0.02em; margin-bottom: .6cqw; }
.sk { display: block; height: 1.1cqw; border-radius: 1cqw; background: var(--line); }
.sk-light { background: rgba(255, 255, 255, .25); }
.sk-short { width: 60%; }
.ph-btn { justify-self: start; margin-top: 1cqw; padding: 1.3cqw 2cqw; background: var(--signal); color: var(--ink); border-radius: 1.2cqw; font-weight: 600; }
.ph-list { list-style: none; margin: 0; padding: 1.4cqw 2.6cqw; display: grid; gap: 0; }
.ph-list li { display: grid; grid-template-columns: 4.4cqw 1fr; gap: 1.6cqw; align-items: center; padding: 1.6cqw 0; border-bottom: 1px solid var(--line); }
.ph-list i { width: 4.4cqw; height: 4.4cqw; border-radius: 1.2cqw; background: #E3ECFD; }

.toast {
  position: absolute; left: 27%; top: 3%; width: 47%; z-index: 2;
  display: flex; gap: 1.8cqw; align-items: center;
  background: var(--white); border-radius: 2.4cqw; padding: 2.2cqw 2.4cqw;
  box-shadow: 0 1px 0 var(--line), 0 20px 40px -16px rgba(18, 32, 58, .45);
  animation: toast-in .5s 2.8s both cubic-bezier(.2, .8, .2, 1);
}
.toast-icon { flex: none; width: 6.4cqw; height: 6.4cqw; border-radius: 50%; background: var(--blue); display: grid; place-items: center; }
.toast-icon svg { width: 3.4cqw; }
.toast-title { font: 700 2.3cqw/1.2 var(--display); }
.toast-text { margin-top: .5cqw; font-size: 1.9cqw; line-height: 1.3; color: var(--ink-2); }
@keyframes toast-in { from { opacity: 0; transform: translateY(1.5cqw) scale(.96); } to { opacity: 1; transform: none; } }

.flight { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* Sections */
.section { padding: var(--section) 0; }
.section-paper { background: var(--paper); }
.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }
.section-head p, .split-head p { margin-top: 1rem; color: var(--ink-2); font-size: var(--step-1); line-height: 1.45; }

.split { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.split-head { position: sticky; top: 7rem; }

.services { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
.svc { padding: 1.6rem 0; border-top: 2px solid var(--ink); }
.svc dt { font: 700 var(--step-1)/1.15 var(--display); letter-spacing: -0.01em; }
.svc dd { margin: .55rem 0 0; color: var(--ink-2); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 14px; padding: 2rem;
}
.plan-main { border: 2.5px solid var(--ink); }
.plan-badge {
  position: absolute; top: -0.85rem; left: 2rem;
  background: var(--blue); color: var(--white); font-size: var(--step--1); font-weight: 600;
  padding: .3rem .7rem; border-radius: 6px;
}
.plan-for { margin-top: .4rem; color: var(--ink-2); font-size: var(--step--1); }
.price { margin: 1.5rem 0 1.25rem; font: 800 3rem/1 var(--display); letter-spacing: -0.03em; }
.price span { font-size: 1.1rem; font-weight: 600; letter-spacing: 0; color: var(--ink-2); }
.plan ul { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: .65rem; flex: 1; }
.plan li { padding-left: 1.4rem; position: relative; line-height: 1.4; }
.plan li::before { content: ""; position: absolute; left: 0; top: .55em; width: .5rem; height: .5rem; background: var(--blue); border-radius: 2px; }
.plan .btn { width: 100%; }
.plans-note { margin-top: 2rem; color: var(--ink-2); }
.plans-note b { color: var(--ink); }

/* Steps: real sequence, so numbered */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 4.25rem; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 2.75rem; height: 2.75rem; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--ink); font: 700 1.1rem/1 var(--display); background: var(--white); z-index: 1;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 1.375rem; left: 3.25rem; right: -1.5rem;
  border-top: 2px dashed var(--line);
}
.steps p { margin-top: .5rem; color: var(--ink-2); }

/* FAQ */
.faq details { border-top: 2px solid var(--ink); }
.faq details:last-child { border-bottom: 2px solid var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.35rem 2.5rem 1.35rem 0; position: relative;
  font: 700 var(--step-1)/1.25 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: .7rem; height: .7rem;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 2.5rem 1.5rem 0; color: var(--ink-2); max-width: 40rem; }

/* Contact */
.contact { background: var(--blue); color: var(--white); padding: var(--section) 0; }
.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact h2 { font-size: var(--step-3); }
.contact-copy > p { margin-top: 1rem; font-size: var(--step-1); line-height: 1.45; color: #DCE7FF; }
.contact-number { margin-top: 2.25rem; }
.contact-number a { font: 700 var(--step-3)/1 var(--display); letter-spacing: -0.02em; text-decoration: none; }
.contact-number a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.channels { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.25rem; }
.channel {
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 3rem; padding: 0 1.1rem 0 .85rem; border-radius: 10px;
  background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600;
  transition: transform .15s, box-shadow .15s;
}
.channel svg { width: 1.5rem; height: 1.5rem; }
.channel:hover { box-shadow: 0 0 0 3px var(--signal); }
.channel:focus-visible { outline-color: var(--signal); }

.order {
  position: relative; background: var(--white); color: var(--ink);
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: 14px;
}
.chips { border: 0; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips legend { font-weight: 600; margin-bottom: .75rem; padding: 0; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span {
  display: inline-block; padding: .55rem .9rem; border: 1.5px solid var(--line); border-radius: 8px;
  font-size: var(--step--1); font-weight: 500; transition: background-color .15s, border-color .15s;
}
.chips label:hover span { border-color: var(--ink); }
.chips input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chips input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .4rem; font-size: var(--step--1); }
.field small { font-weight: 400; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; font: 400 var(--step-0) var(--body); color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--white);
}
.field input:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(30, 99, 233, .25); }
.field textarea { resize: vertical; }
.form-error { min-height: 1.2em; color: #B42318; font-size: var(--step--1); margin-bottom: .5rem; }
.order-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.order-actions .btn { flex: 1 1 12rem; white-space: nowrap; }
.order-note { margin-top: 1rem; font-size: var(--step--1); color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--ink); color: #C9D2E3; padding: 2rem 0; font-size: var(--step--1); }
.footer-row { display: flex; flex-wrap: wrap; gap: .75rem 2rem; justify-content: space-between; align-items: center; }
.footer-logo { height: 1.6rem; width: auto; }
.site-footer a { color: var(--white); }

/* Responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .header-row { justify-content: space-between; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .split-head { position: static; }
  .stage { justify-self: center; max-width: 480px; }

  .steps { grid-template-columns: 1fr 1fr; row-gap: 2.5rem; }
  .steps li:nth-child(2)::after { display: none; }
}
@media (max-width: 760px) {
  .plans { grid-template-columns: 1fr; max-width: 30rem; }
}
@media (max-width: 600px) {
  .channels { display: grid; grid-template-columns: repeat(3, 1fr); }
  .channel { flex-direction: column; justify-content: center; gap: .35rem; padding: .75rem .4rem; font-size: var(--step--1); }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .hero-actions .btn { width: 100%; }
  .brand-logo { height: 1.85rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .toast { animation: none; }
  *, *::before, *::after { transition: none !important; }
}


/* ============================================================
   Service pages (/softver-po-vasim-zeljama/, /izrada-web-stranica/, ...)
   ============================================================ */
.breadcrumb { padding-top: 1.5rem; font-size: var(--step--1); color: var(--ink-2); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .4rem; color: var(--line); }
.breadcrumb a { color: var(--ink-2); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue); text-decoration: underline; }

.svc-hero { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3.5rem, 7vw, 5.5rem); overflow: hidden; }
.svc-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.svc-hero h1 { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.svc-hero .lead { max-width: 38rem; }
.svc-tags { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-tags li { padding: .4rem .75rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: var(--step--1); font-weight: 500; color: var(--ink); background: var(--white); }
.svc-price-hint { margin-top: 1rem; font-size: var(--step--1); color: var(--ink-2); }
.svc-price-hint b { color: var(--ink); }

.features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feature { padding: 1.5rem; border-radius: 14px; background: var(--white); border: 1.5px solid var(--line); }
.feature-icon { width: 2.5rem; height: 2.5rem; border-radius: 10px; display: grid; place-items: center; background: #E8EFFD; color: var(--blue); }
.feature-icon svg { width: 1.25rem; height: 1.25rem; }
.feature h3 { margin-top: 1rem; font-size: var(--step-1); }
.feature p { margin-top: .4rem; color: var(--ink-2); line-height: 1.5; }

.usecases { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.usecase { padding: 1.5rem; border-radius: 14px; background: var(--white); border: 1.5px solid var(--line); display: flex; flex-direction: column; gap: .9rem; }
.usecase h3 { font-size: var(--step-1); }
.usecase-problem, .usecase-solution { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; line-height: 1.45; }
.usecase-problem { color: var(--ink-2); }
.usecase-problem span, .usecase-solution span { font: 600 .72rem/1 var(--body); padding: .3rem .45rem; border-radius: 6px; margin-top: .1rem; }
.usecase-problem span { background: #FDECEC; color: #B42318; }
.usecase-solution span { background: #E6F6EC; color: #067647; }

.price-box { display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem 4rem; align-items: end; padding-top: 1.75rem; border-top: 2px solid var(--ink); }
.price-box h2 { font-size: var(--step-3); }
.price-box p { margin-top: .75rem; color: var(--ink-2); line-height: 1.5; }
.price-box .price { margin: 0; }
.price-box-side { display: grid; gap: 1rem; justify-items: start; }
.price-box-side small { color: var(--ink-2); }

.related { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.related a { display: block; height: 100%; padding: 1.25rem; border-radius: 12px; border: 1.5px solid var(--line); text-decoration: none; background: var(--white); transition: border-color .15s; }
.related a:hover { border-color: var(--ink); }
.related b { display: block; font: 700 var(--step-0)/1.2 var(--display); }
.related span { display: block; margin-top: .35rem; font-size: var(--step--1); color: var(--ink-2); line-height: 1.4; }

.cta-band { background: var(--ink); color: var(--white); padding: clamp(3rem, 7vw, 4.5rem) 0; }
.cta-band-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.cta-band h2 { font-size: var(--step-3); max-width: 22ch; }
.cta-band p { margin-top: .75rem; color: #C9D2E3; font-size: var(--step-1); }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cta-band .channel { background: var(--white); }
.svc-link { color: inherit; text-decoration: none; }
.svc-link:hover { color: var(--blue); }
.svc dt a.svc-link::after { content: ""; display: inline-block; width: .45em; height: .45em; margin-left: .45em; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: translateY(-.12em) rotate(45deg); }

.plans-2 { grid-template-columns: 1fr 1fr; max-width: 54rem; }
.plans-1 { grid-template-columns: minmax(0, 26rem); }
.footer-services { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-services a { color: #C9D2E3; text-decoration: none; }
.footer-services a:hover { color: var(--white); text-decoration: underline; }
.site-footer .footer-row + .footer-row { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1); }


/* Service pages: editorial layouts (no card grids) */
.compare { width: 100%; border-collapse: collapse; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 1.3rem 2rem 1.3rem 0; border-top: 1px solid var(--line); line-height: 1.5; }
.compare thead th { font: 600 var(--step--1)/1.2 var(--body); color: var(--ink-2); border-top: 0; padding-bottom: .9rem; }
.compare tbody tr:first-child > * { border-top: 2px solid var(--ink); }
.compare tbody th { width: 26%; font: 700 var(--step-1)/1.25 var(--display); letter-spacing: -0.01em; }
.compare td:nth-child(2) { width: 34%; color: var(--ink-2); }
.compare td:last-child { color: var(--ink); padding-right: 0; }

.related-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
.related-list a { position: relative; display: block; padding: 1.15rem 2rem 1.15rem 0; border-top: 2px solid var(--ink); text-decoration: none; }
.related-list b { display: block; font: 700 var(--step-1)/1.2 var(--display); letter-spacing: -0.01em; }
.related-list span { display: block; margin-top: .35rem; color: var(--ink-2); }
.related-list a::after { content: ""; position: absolute; right: .3rem; top: 1.5rem; width: .55rem; height: .55rem; border-right: 2px solid currentColor; border-top: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.related-list a:hover b { color: var(--blue); }
.related-list a:hover::after { transform: translateX(3px) rotate(45deg); }
.svc-hero .hero-facts { margin-top: 1.5rem; }


/* Guide articles (/vodici/) */
.article-head { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.article-head > * { max-width: 52rem; }
.article-head h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.05; }
.article-meta { margin-top: 1rem; font-size: var(--step--1); color: var(--ink-2); }
.article-meta span { margin: 0 .4rem; color: var(--line); }
.article-lead { margin-top: 1.5rem; padding-left: 1.25rem; border-left: 3px solid var(--signal); font-size: var(--step-1); line-height: 1.55; color: var(--ink); max-width: 46rem; }
.article-grid { display: grid; grid-template-columns: 15rem minmax(0, 46rem); gap: clamp(2rem, 5vw, 4.5rem); padding-top: clamp(2.5rem, 5vw, 3.5rem); padding-bottom: var(--section); }
.article-aside { position: sticky; top: 6rem; align-self: start; display: grid; gap: 2rem; font-size: var(--step--1); }
.article-aside-title { font-weight: 600; color: var(--ink-2); margin-bottom: .6rem; }
.article-aside ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; border-left: 2px solid var(--line); }
.article-aside ol a { display: block; padding-left: .9rem; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.article-aside ol a:hover { color: var(--ink); border-left-color: var(--ink); }
.article-service a { display: block; padding-top: .8rem; border-top: 2px solid var(--ink); text-decoration: none; }
.article-service b { display: block; font: 700 var(--step-0)/1.25 var(--display); }
.article-service span { display: block; margin-top: .3rem; color: var(--ink-2); line-height: 1.45; }
.article-service a:hover b { color: var(--blue); }
.article-body { font-size: 1.0625rem; line-height: 1.7; }
.article-body > * + * { margin-top: 1.1rem; }
.article-body h2 { margin-top: 3rem; font-size: var(--step-2); scroll-margin-top: 6rem; }
.article-body h3 { margin-top: 2rem; font-size: var(--step-1); }
.article-body ul, .article-body ol { padding-left: 1.25rem; }
.article-body li + li { margin-top: .5rem; }
.article-body li::marker { color: var(--blue); }
.article-body strong { font-weight: 600; }
.article-body .faq { margin-top: 1.25rem; }
.article-table { width: 100%; border-collapse: collapse; font-size: var(--step--1); line-height: 1.5; }
.article-table th, .article-table td { text-align: left; vertical-align: top; padding: .85rem 1rem .85rem 0; border-top: 1px solid var(--line); }
.article-table thead th { color: var(--ink-2); font-weight: 600; border-top: 0; }
.article-table tbody tr:first-child > * { border-top: 2px solid var(--ink); }
.article-table tbody th { font-weight: 700; color: var(--ink); }
.article-next { margin-top: 2.5rem !important; padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.article-next a, .guide-link a { color: var(--blue); font-weight: 600; text-underline-offset: 3px; }
.guide-link { margin-top: 1.25rem !important; font-size: var(--step--1); }
.article-list { grid-template-columns: 1fr; max-width: 52rem; }
@media (max-width: 960px) {
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .article-aside nav { display: none; }
  .article-service { order: 2; }
}
@media (max-width: 600px) {
  .article-table thead { display: none; }
  .article-table, .article-table tbody, .article-table tr, .article-table th, .article-table td { display: block; }
  .article-table tr { padding: .9rem 0; border-top: 1px solid var(--line); }
  .article-table tbody tr:first-child { border-top: 2px solid var(--ink); }
  .article-table tbody tr > * { border-top: 0 !important; padding: .15rem 0; }
}

/* Graphic frame shared by all service pages */
.g-frame { position: relative; width: 100%; max-width: 540px; justify-self: end; }
.g-card { background: var(--white); border-radius: 14px; box-shadow: 0 24px 48px -32px rgba(18, 32, 58, .35); border: 1px solid var(--line); }
.g-browser-bar { display: flex; align-items: center; gap: .35rem; padding: .7rem .9rem; border-bottom: 1px solid var(--line); background: var(--paper); border-radius: 16px 16px 0 0; }
.g-browser-bar i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--line); }
.g-browser-bar span { margin-left: .6rem; flex: 1; padding: .25rem .6rem; border-radius: 6px; background: var(--white); font-size: .72rem; color: var(--ink-2); border: 1px solid var(--line); }

/* Softver: data flows into one app */
.g-flow svg { width: 100%; height: auto; overflow: visible; }
.g-flow .node rect { fill: var(--white); stroke: var(--line); stroke-width: 1.5; }
.g-flow .node text { font: 600 13px var(--body); fill: var(--ink); }
.g-flow .wire { fill: none; stroke: #C5D3EE; stroke-width: 2; stroke-dasharray: 3 6; }
.g-flow .dot { fill: var(--blue); }
.g-flow .app rect.shell { fill: var(--ink); }
.g-flow .app text { font: 700 14px var(--display); fill: var(--white); }
.g-flow .app .muted { font: 500 10.5px var(--body); fill: #9FB0CC; }
.g-flow .bar { fill: var(--signal); transform-box: fill-box; transform-origin: bottom; }
.is-visible .g-flow .bar, .g-flow.is-visible .bar { animation: g-grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.g-flow .bar:nth-of-type(2) { animation-delay: .1s; } .g-flow .bar:nth-of-type(3) { animation-delay: .2s; }
.g-flow .bar:nth-of-type(4) { animation-delay: .3s; } .g-flow .bar:nth-of-type(5) { animation-delay: .4s; }
@keyframes g-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Web stranice: page builds block by block */
.g-build .gb-body { padding: 1rem; display: grid; gap: .7rem; }
.gb { border-radius: 8px; background: var(--paper); opacity: 0; transform: translateY(8px); }
.g-frame.is-visible .gb { animation: g-in .55s cubic-bezier(.2, .8, .2, 1) forwards; }
.gb-nav { height: 1.6rem; display: flex; align-items: center; justify-content: space-between; padding: 0 .6rem; background: transparent; border: 1px solid var(--line); }
.gb-nav b { width: 3.5rem; height: .55rem; border-radius: 4px; background: var(--ink); }
.gb-nav i { width: 5rem; height: .45rem; border-radius: 4px; background: var(--line); }
.gb-hero { height: 7.5rem; background: var(--ink); padding: 1rem; display: grid; align-content: center; gap: .5rem; }
.gb-hero b { width: 70%; height: .9rem; border-radius: 4px; background: var(--white); }
.gb-hero i { width: 45%; height: .55rem; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.gb-hero em { width: 5.5rem; height: 1.35rem; border-radius: 6px; background: var(--signal); margin-top: .3rem; }
.gb-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; background: transparent; }
.gb-cards span { height: 4.2rem; border-radius: 8px; background: var(--paper); border: 1px solid var(--line); }
.gb-foot { height: 1.4rem; }
.g-frame.is-visible .gb:nth-child(2) { animation-delay: .25s; }
.g-frame.is-visible .gb:nth-child(3) { animation-delay: .5s; }
.g-frame.is-visible .gb:nth-child(4) { animation-delay: .75s; }
.g-checks { position: absolute; right: -1rem; bottom: -1.25rem; display: grid; gap: .45rem; }
.g-checks li { list-style: none; display: flex; align-items: center; gap: .45rem; padding: .45rem .75rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 12px 24px -16px rgba(18, 32, 58, .5); font-size: .8rem; font-weight: 600; opacity: 0; transform: translateY(6px); }
.g-checks li::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #12B76A; }
.g-frame.is-visible .g-checks li { animation: g-in .45s ease-out forwards; }
.g-frame.is-visible .g-checks li:nth-child(1) { animation-delay: 1.1s; }
.g-frame.is-visible .g-checks li:nth-child(2) { animation-delay: 1.3s; }
.g-frame.is-visible .g-checks li:nth-child(3) { animation-delay: 1.5s; }
@keyframes g-in { to { opacity: 1; transform: none; } }

/* Web shop: cart fills up, orders arrive */
.g-shop { display: grid; grid-template-columns: .9fr 1.1fr; gap: 1rem; align-items: start; }
.gs-product { padding: .9rem; }
.gs-img { aspect-ratio: 1; border-radius: 10px; background: linear-gradient(135deg, #E8EFFD, #F7F9FC); display: grid; place-items: center; }
.gs-img svg { width: 45%; color: var(--blue); }
.gs-product b { display: block; margin-top: .7rem; font-size: .9rem; }
.gs-product p { font: 800 1.15rem/1.2 var(--display); margin-top: .2rem; }
.gs-btn { margin-top: .7rem; padding: .55rem; border-radius: 8px; background: var(--ink); color: var(--white); text-align: center; font-size: .8rem; font-weight: 600; }
.gs-orders { padding: .9rem; }
.gs-head { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 700; }
.gs-cart { position: relative; display: inline-flex; align-items: center; gap: .35rem; color: var(--ink-2); font-weight: 600; }
.gs-cart svg { width: 1.1rem; }
.gs-count { min-width: 1.25rem; height: 1.25rem; padding: 0 .3rem; border-radius: 999px; background: var(--signal); color: var(--ink); font-size: .72rem; display: inline-grid; place-items: center; }
.gs-list { list-style: none; padding: 0; margin: .8rem 0 0; display: grid; gap: .5rem; }
.gs-list li { display: grid; grid-template-columns: 1fr auto; gap: .15rem .75rem; padding: .6rem .7rem; border-radius: 10px; border: 1px solid var(--line); font-size: .78rem; opacity: 0; transform: translateX(10px); }
.gs-list li b { font-size: .8rem; }
.gs-list li em { font-style: normal; color: var(--ink-2); }
.gs-list li strong { grid-row: span 2; align-self: center; font-family: var(--display); }
.g-frame.is-visible .gs-list li { animation: g-in .5s ease-out forwards; }
.g-frame.is-visible .gs-list li:nth-child(1) { animation-delay: .5s; }
.g-frame.is-visible .gs-list li:nth-child(2) { animation-delay: 1.4s; }
.g-frame.is-visible .gs-list li:nth-child(3) { animation-delay: 2.3s; }
.gs-pay { display: flex; gap: .4rem; margin-top: .8rem; }
.gs-pay span { flex: 1; text-align: center; padding: .4rem; border-radius: 8px; font-size: .72rem; font-weight: 600; background: var(--paper); border: 1px solid var(--line); }

/* SEO: query typed, result climbs */
.g-serp { padding: 1rem; }
.gq { display: flex; align-items: center; gap: .55rem; padding: .65rem .9rem; border: 1.5px solid var(--line); border-radius: 999px; font-size: .88rem; }
.gq svg { width: 1rem; color: var(--ink-2); flex: none; }
.gq-text { display: inline-block; overflow: hidden; white-space: nowrap; width: 0; border-right: 2px solid var(--blue); }
.g-frame.is-visible .gq-text { animation: g-type 1.4s steps(26) .3s forwards, g-caret .8s step-end 1.7s 3; }
@keyframes g-type { to { width: var(--w, 26ch); } }
@keyframes g-caret { 50% { border-color: transparent; } }
.gr-list { position: relative; list-style: none; padding: 0; margin: 1rem 0 0; height: 15.6rem; }
.gr { position: absolute; left: 0; right: 0; height: 3.6rem; padding: .55rem .75rem; border-radius: 10px; transition: transform 1s cubic-bezier(.2, .8, .2, 1), background-color .6s, box-shadow .6s; }
.gr small { display: block; font-size: .7rem; color: var(--ink-2); }
.gr b { display: block; margin-top: .15rem; font-size: .88rem; color: #1A47B8; }
.gr i { display: block; margin-top: .35rem; height: .4rem; width: 75%; border-radius: 4px; background: var(--paper); }
.gr[data-pos="0"] { transform: translateY(0); } .gr[data-pos="1"] { transform: translateY(4rem); }
.gr[data-pos="2"] { transform: translateY(8rem); } .gr[data-pos="3"] { transform: translateY(12rem); }
.gr-you { background: #EEF3FE; box-shadow: inset 0 0 0 1.5px var(--blue); }
.gr-you b { color: var(--blue); }
.gr-you em { position: absolute; right: .7rem; top: .7rem; font: 600 .68rem/1 var(--body); font-style: normal; padding: .3rem .45rem; border-radius: 6px; background: var(--blue); color: var(--white); }

/* Održavanje: status panel */
.g-status { padding: 1.1rem; }
.gst-head { display: flex; align-items: center; justify-content: space-between; }
.gst-head b { font: 700 1rem var(--display); }
.gst-live { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; font-weight: 600; color: #067647; }
.gst-live i { position: relative; width: .55rem; height: .55rem; border-radius: 50%; background: #12B76A; }
.gst-live i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #12B76A; opacity: 0; }
.g-frame.is-visible .gst-live i::after { animation: g-pulse 2s ease-out infinite; }
@keyframes g-pulse { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(1.8); } }
.gst-label { margin-top: 1rem; font-size: .72rem; color: var(--ink-2); display: flex; justify-content: space-between; }
.gst-bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; height: 2.2rem; align-items: end; margin-top: .4rem; }
.gst-bars span { height: 100%; border-radius: 2px; background: #12B76A; transform: scaleY(0); transform-origin: bottom; }
.g-frame.is-visible .gst-bars span { animation: g-grow .5s ease-out forwards; animation-delay: calc(var(--i) * 25ms); }
.gst-rows { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: .5rem; }
.gst-rows li { display: grid; grid-template-columns: 1.6rem 1fr auto; align-items: center; gap: .6rem; padding: .6rem .7rem; border-radius: 10px; border: 1px solid var(--line); font-size: .82rem; }
.gst-rows li span { color: var(--ink-2); font-size: .76rem; }
.gst-tick { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--paper); }
.gst-tick svg { width: .9rem; color: var(--line); }
.g-frame.is-visible .gst-tick { animation: g-tick .4s ease-out forwards; }
.g-frame.is-visible .gst-tick svg { animation: g-tick-c .4s ease-out forwards; }
.g-frame.is-visible .gst-rows li:nth-child(1) .gst-tick, .g-frame.is-visible .gst-rows li:nth-child(1) .gst-tick svg { animation-delay: .9s; }
.g-frame.is-visible .gst-rows li:nth-child(2) .gst-tick, .g-frame.is-visible .gst-rows li:nth-child(2) .gst-tick svg { animation-delay: 1.3s; }
.g-frame.is-visible .gst-rows li:nth-child(3) .gst-tick, .g-frame.is-visible .gst-rows li:nth-child(3) .gst-tick svg { animation-delay: 1.7s; }
.g-frame.is-visible .gst-rows li:nth-child(4) .gst-tick, .g-frame.is-visible .gst-rows li:nth-child(4) .gst-tick svg { animation-delay: 2.1s; }
@keyframes g-tick { to { background: #E6F6EC; } }
@keyframes g-tick-c { to { color: #12B76A; } }

/* AI: assistant answers, document fields are read */
.g-ai { display: grid; gap: 1rem; }
.g-chat { padding: 1rem; }
.gc-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.gc-head b { display: inline-flex; align-items: center; gap: .5rem; font: 700 .95rem var(--display); }
.gc-head b span { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--white); }
.gc-head b svg { width: 1rem; }
.gc-head small { font-size: .74rem; color: #067647; font-weight: 600; }
.gc-msgs { display: grid; gap: .6rem; padding-top: .9rem; min-height: 11.5rem; align-content: start; }
.gc-msg { max-width: 85%; padding: .6rem .8rem; border-radius: 14px; font-size: .84rem; line-height: 1.4; opacity: 0; transform: translateY(6px); }
.gc-user { justify-self: end; background: var(--blue); color: var(--white); border-bottom-right-radius: 4px; }
.gc-bot { justify-self: start; background: var(--paper); border-bottom-left-radius: 4px; }
.gc-src { justify-self: start; font-size: .7rem; font-weight: 600; color: var(--ink-2); padding: .25rem .55rem; border: 1px solid var(--line); border-radius: 999px; opacity: 0; }
.gc-typing { justify-self: start; display: inline-flex; gap: .25rem; padding: .65rem .8rem; border-radius: 14px; background: var(--paper); opacity: 0; }
.gc-typing i { width: .4rem; height: .4rem; border-radius: 50%; background: var(--ink-2); }
.g-frame.is-visible .gc-user { animation: g-in .4s ease-out .3s forwards; }
.g-frame.is-visible .gc-typing { animation: g-typing 1.2s ease-out .8s forwards; }
.g-frame.is-visible .gc-typing i { animation: g-dot .9s ease-in-out infinite; }
.g-frame.is-visible .gc-typing i:nth-child(2) { animation-delay: .15s; } .g-frame.is-visible .gc-typing i:nth-child(3) { animation-delay: .3s; }
.g-frame.is-visible .gc-bot { animation: g-in .45s ease-out 2s forwards; }
.g-frame.is-visible .gc-src { animation: g-in .4s ease-out 2.4s forwards; }
@keyframes g-typing { 0% { opacity: 0; } 15%, 85% { opacity: 1; } 100% { opacity: 0; height: 0; padding: 0; } }
@keyframes g-dot { 0%, 100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(-3px); opacity: 1; } }
.g-doc { padding: 1rem; display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.gd-file { width: 3.2rem; height: 4rem; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; font: 700 .62rem/1 var(--body); color: #B42318; }
.gd-name { font-size: .82rem; font-weight: 700; }
.gd-fields { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .35rem; }
.gd-fields li { display: grid; grid-template-columns: 1fr auto; gap: .5rem; font-size: .78rem; padding: .35rem .5rem; border-radius: 6px; background: var(--paper); opacity: 0; }
.gd-fields li span { color: var(--ink-2); }
.g-frame.is-visible .gd-fields li { animation: g-in .4s ease-out forwards; }
.g-frame.is-visible .gd-fields li:nth-child(1) { animation-delay: 3s; }
.g-frame.is-visible .gd-fields li:nth-child(2) { animation-delay: 3.3s; }
.g-frame.is-visible .gd-fields li:nth-child(3) { animation-delay: 3.6s; }

@media (max-width: 960px) {
  .svc-hero-grid, .price-box { grid-template-columns: 1fr; }
  .g-frame { justify-self: center; }
  .features, .usecases { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .related-list { grid-template-columns: 1fr; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto !important; }
  .compare tr { padding: 1.1rem 0; border-top: 1px solid var(--line); }
  .compare tbody tr:first-child { border-top: 2px solid var(--ink); }
  .compare tbody tr > * { border-top: 0 !important; padding: 0; }
  .compare td { margin-top: .5rem; }
  .compare td:nth-child(2)::before { content: "Danas: "; font-weight: 600; color: var(--ink); }
  .compare td:last-child::before { content: "S rješenjem: "; font-weight: 600; }
  .plans-2, .plans-1, .related { grid-template-columns: 1fr; }
  .features, .usecases { grid-template-columns: 1fr; }
  .g-shop { grid-template-columns: 1fr; }
  .g-checks { right: .5rem; }
  .cta-band-actions .channel { flex: 1; justify-content: center; }
}

/* Reduced motion: show every graphic in its final state */
@media (prefers-reduced-motion: reduce) {
  .gb, .g-checks li, .gs-list li { opacity: 1 !important; transform: none !important; animation: none !important; }
  .gst-bars span, .g-flow .bar { transform: none !important; animation: none !important; }
  .gq-text { width: var(--w, auto) !important; animation: none !important; border-right-color: transparent; }
  .gst-tick { background: #E6F6EC !important; animation: none !important; }
  .gst-tick svg { color: #12B76A !important; animation: none !important; }
  .gr { transition: none !important; }
  .gc-msg, .gc-src, .gd-fields li { opacity: 1 !important; transform: none !important; animation: none !important; }
  .gc-typing { display: none !important; }
  .gst-live i::after { animation: none !important; }
}
