/* ============================================================
   inteligencija.hr — stilovi
   Paleta: Steel Blue · Tipografija: Plus Jakarta Sans + Inter
   ============================================================ */

:root {
  --navy:     #1a2a3a;
  --steel:    #2a5080;
  --blue:     #3a7ec8;
  --blue-dk:  #2f6cb0;
  --sky:      #a8c8e8;
  --frost:    #f2f6fa;
  --midnight: #0d1824;
  --white:    #ffffff;
  --alert:    #e84545;

  --muted:    #4a6a8a;
  --faint:    #8aaac8;
  --line:     #dce7f1;

  --maxw: 1140px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(26,42,58,.05), 0 4px 14px rgba(26,42,58,.05);
  --shadow-md: 0 8px 30px rgba(26,42,58,.10);
  --shadow-lg: 0 24px 60px rgba(26,42,58,.16);

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;   /* naslovi — topli serif */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;   /* UI: gumbi, nav, logo */
  --font-body: 'Inter', system-ui, sans-serif;                  /* tekst */

  --ease: cubic-bezier(.22,.61,.36,1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--frost);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--blue); text-decoration: none; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-optical-sizing: auto;
  color: var(--navy);
  line-height: 1.08;
  letter-spacing: -.01em;
  font-weight: 600;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 780px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-lg { padding: 16px 30px; font-size: 16px; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(58,126,200,.32);
}
.btn-primary:hover { background: var(--blue-dk); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(58,126,200,.40); }

.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--sky); transform: translateY(-2px); }

.btn-ghost-light {
  background: rgba(255,255,255,.08);
  color: #fff;
  border-color: rgba(255,255,255,.30);
}
.btn-ghost-light:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242,246,250,.80);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 2px 20px rgba(26,42,58,.05);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-albert { width: 38px; height: 46px; overflow: visible; flex-shrink: 0; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
  letter-spacing: -.03em;
}
.brand-name span { color: var(--blue); }

.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
  font-size: 15px;
  position: relative;
  transition: color .2s;
}
.nav a:hover { color: var(--navy); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: width .25s var(--ease);
}
.nav a:hover::after { width: 100%; }

.nav-cta { margin-left: 8px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  background: var(--frost);
  border-bottom: 1px solid var(--line);
}
.mobile-menu:not([hidden]) { display: flex; }
.mobile-menu a {
  color: var(--navy);
  font-family: var(--font-display);
  font-weight: 500;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border: none; margin-top: 10px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 72px 0 90px; }
.hero::before {
  content: "";
  position: absolute;
  top: -240px; right: -180px;
  width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(168,200,232,.55), rgba(168,200,232,0) 70%);
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--steel);
  background: #fff;
  border: 1px solid var(--line);
  padding: 7px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2ec27e;
  box-shadow: 0 0 0 4px rgba(46,194,126,.18);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 700;
  margin: 22px 0 0;
}
.hero h1 .accent { color: var(--blue); }

.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--muted);
  max-width: 540px;
  margin: 22px 0 0;
}
.hero-actions { display: flex; gap: 14px; margin: 32px 0 0; flex-wrap: wrap; }

.trust-line {
  margin-top: 26px;
  font-size: 14px;
  color: var(--steel);
  font-weight: 500;
}
.trust-line span { color: var(--faint); font-weight: 400; }

/* Hero visual / Albert stage */
.hero-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.albert-name {
  margin-top: 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  color: var(--navy);
  text-align: center;
}
.albert-name span { color: var(--muted); font-weight: 500; }
.hero-stage {
  position: relative;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 8% 8% 4%;
  background: linear-gradient(160deg, #fff, #eaf2fb);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.hero-albert {
  position: relative;
  width: 72%;
  margin-top: 16%;              /* Albert sjedi niže u kartici */
  overflow: visible;
  filter: drop-shadow(0 18px 26px rgba(26,42,58,.14));
}
.albert-cta {
  margin-top: 16px;
  box-shadow: 0 8px 22px rgba(58,126,200,.36);
}
.albert-cta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #6fe3a8;
  box-shadow: 0 0 0 4px rgba(111,227,168,.3);
}

.chat-bubble {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 15px;
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  box-shadow: var(--shadow-md);
  animation: floaty 4s ease-in-out infinite;
}
.bubble-1 { top: 12%; left: -4%; border-bottom-left-radius: 5px; }
.bubble-2 { top: 26%; right: -6%; border-bottom-right-radius: 5px; color: var(--muted); animation-delay: .6s; }

.card-chip {
  position: absolute;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-display);
  padding: 8px 13px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  animation: floaty 4s ease-in-out infinite;
}
.chip-1 { bottom: 16%; left: -2%; animation-delay: .3s; }
.chip-2 { bottom: 6%; right: 2%; background: var(--blue); animation-delay: .9s; }

@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 680px; margin: 0 0 48px; }
.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.section-head h2 { font-size: clamp(28px, 4vw, 42px); }

/* ---------- Split layout (sticky naslov + sadržaj klizi) ---------- */
.split-inner {
  display: grid;
  grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}
.split-head {
  position: sticky;
  top: 104px;
}
.split-head .kicker { margin-bottom: 16px; }
.split-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.split-sub {
  color: var(--muted);
  font-size: 17px;
  margin-top: 18px;
  max-width: 320px;
}
.split-body { min-width: 0; }

/* koraci unutar splita: 2×2 umjesto 4 u nizu */
.split .steps { grid-template-columns: repeat(2, 1fr); }
/* za koga: tri kartice jedna ispod druge, naglašena u sredini */
.za-koga { grid-template-columns: 1fr; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.section-alt .card { background: var(--frost); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--sky); }
.card h3 { font-size: 21px; margin-bottom: 10px; }
.card p { color: var(--muted); }

.card-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: linear-gradient(150deg, #eaf2fb, #d8e7f6);
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 20px;
}

/* obogaćene kartice "Što radimo" */
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.card-top .card-icon { margin-bottom: 0; }
.card-index {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--sky);
  letter-spacing: .06em;
}
.card-tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.card-tags li {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--steel);
  background: var(--frost);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
}
.section-alt .card-tags li { background: #fff; }

.split-cta {
  display: inline-block;
  margin-top: 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--blue);
  transition: color .2s, transform .2s var(--ease);
}
.split-cta:hover { color: var(--blue-dk); transform: translateX(3px); }

.card-outline { background: #fff; }
.card-feature {
  border-color: var(--blue);
  box-shadow: 0 12px 34px rgba(58,126,200,.16);
  position: relative;
}
.feature-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  color: #fff;
  background: var(--blue);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--frost);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
}
.section-alt .step { background: var(--frost); }
.step-num {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  color: #fff;
  background: var(--navy);
  border-radius: 12px;
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Why grid ---------- */
.why-grid { gap: 22px 40px; }
.why { display: flex; gap: 18px; align-items: flex-start; }
.why-mark {
  flex-shrink: 0;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}
.why h3 { font-size: 19px; margin-bottom: 6px; }
.why p { color: var(--muted); }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-sm);
  position: relative;
}
.quote::before {
  content: "\201C";
  position: absolute;
  top: 8px; left: 22px;
  font-family: Georgia, serif;
  font-size: 70px;
  color: var(--sky);
  line-height: 1;
}
.quote blockquote {
  font-size: 20px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--navy);
  line-height: 1.5;
  margin: 22px 0 22px;
  position: relative;
}
.quote figcaption { display: flex; flex-direction: column; }
.quote figcaption strong { color: var(--navy); font-weight: 600; }
.quote figcaption span { color: var(--faint); font-size: 14px; }

.placeholder-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--faint);
  font-style: italic;
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.faq-item[open] { border-color: var(--sky); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 24px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--blue);
  transition: transform .25s var(--ease);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 24px 22px; }
.faq-body p { color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  background: linear-gradient(160deg, var(--navy), var(--midnight));
  color: #fff;
  padding: 96px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  bottom: -200px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 400px;
  background: radial-gradient(circle, rgba(58,126,200,.35), transparent 70%);
}
.cta-inner { position: relative; z-index: 1; max-width: 680px; }
.cta-albert { width: 110px; overflow: visible; margin: 0 auto 8px; }
.cta h2 { color: #fff; font-size: clamp(28px, 4.5vw, 44px); }
.cta p { color: rgba(255,255,255,.72); font-size: 18px; max-width: 520px; margin: 18px auto 0; }
.cta-actions { display: flex; gap: 14px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--midnight); color: rgba(255,255,255,.65); padding: 56px 0 32px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand .brand-name { color: #fff; font-size: 19px; }
.footer-brand .brand-name span { color: var(--blue); }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.55); margin-top: 2px; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.footer-nav a { color: rgba(255,255,255,.65); font-size: 15px; transition: color .2s; }
.footer-nav a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 13px;
  color: rgba(255,255,255,.40);
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Kontakt stranica ---------- */
.contact-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 8px;
  text-align: center;
}
.contact-hero::before {
  content: "";
  position: absolute;
  top: -260px; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 620px;
  background: radial-gradient(circle, rgba(168,200,232,.45), rgba(168,200,232,0) 70%);
  z-index: 0;
}
.contact-hero .container { position: relative; z-index: 1; }
.contact-hero h1 { font-size: clamp(34px, 5vw, 52px); }
.contact-hero p { color: var(--muted); font-size: 18px; max-width: 540px; margin: 18px auto 0; }

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr .85fr;
  gap: 32px;
  align-items: start;
}

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-md);
}
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input,
.field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px; /* >=16px sprječava iOS auto-zoom na fokus */
  color: var(--navy);
  background: var(--frost);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 13px 15px;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--faint); }
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(58,126,200,.12);
}
.field textarea { resize: vertical; min-height: 120px; }

.field-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--navy);
  background: var(--frost);
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.check:hover { border-color: var(--sky); }
.check input { width: 17px; height: 17px; accent-color: var(--blue); flex-shrink: 0; cursor: pointer; }
.check:has(input:checked) { border-color: var(--blue); background: #eaf2fb; }

.contact-form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--faint); margin-top: 14px; text-align: center; }

.contact-info { display: flex; flex-direction: column; gap: 16px; }
.info-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.info-box .info-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 6px;
}
.info-box .info-value { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--navy); }
.info-box a.info-value { color: var(--blue); }
.info-box a.info-value:hover { color: var(--blue-dk); }
.info-albert {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(160deg, #fff, #eaf2fb);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px 22px 26px;
  box-shadow: var(--shadow-sm);
}
.info-albert svg { width: 120px; overflow: visible; }
.info-albert p { font-size: 14px; color: var(--muted); margin-top: 6px; }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-info { order: -1; }
  .info-albert { display: none; }
}
@media (max-width: 460px) {
  .field-checks { grid-template-columns: 1fr; }
  .contact-form { padding: 26px 22px; }
}

/* ---------- Honeypot (skriveno polje protiv bota) ---------- */
.hp-field { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ---------- Form success ---------- */
.form-success {
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  box-shadow: var(--shadow-md);
}
.form-success svg { width: 120px; overflow: visible; margin: 0 auto 8px; }
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--muted); margin: 12px auto 22px; max-width: 360px; }

/* ---------- Albert chat launcher ---------- */
.albert-launcher {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px 8px 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.albert-launcher:hover { transform: translateY(-3px); box-shadow: 0 28px 64px rgba(26,42,58,.22); }
.albert-launcher svg {
  width: 42px; height: 42px;
  overflow: visible;
  background: linear-gradient(160deg, #eaf2fb, #d8e7f6);
  border-radius: 50%;
  flex-shrink: 0;
}
.launcher-ping {
  position: absolute;
  top: 6px; right: 6px;
  width: 11px; height: 11px;
  background: #2ec27e;
  border: 2px solid #fff;
  border-radius: 50%;
}
.albert-launcher.hidden { opacity: 0; visibility: hidden; transform: scale(.8); }

/* ---------- Albert chat prozor ---------- */
.albert-chat {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 95;
  width: 380px;
  max-width: calc(100vw - 32px);
  height: 560px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 32px 80px rgba(26,42,58,.30);
  overflow: hidden;
  transform-origin: bottom right;
  animation: chatIn .26s var(--ease);
}
.albert-chat[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(16px) scale(.96); } to { opacity: 1; transform: none; } }

.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(160deg, var(--navy), var(--midnight));
  color: #fff;
}
.chat-head svg {
  width: 44px; height: 44px;
  overflow: hidden;
  background: rgba(255,255,255,.10);
  border-radius: 50%;
  flex-shrink: 0;
}
.chat-head-meta { display: flex; flex-direction: column; line-height: 1.3; }
.chat-head-meta strong { font-family: var(--font-display); font-size: 16px; }
.chat-status { font-size: 12px; color: rgba(255,255,255,.65); display: flex; align-items: center; gap: 6px; }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: #2ec27e; display: inline-block; }
.chat-close {
  margin-left: auto;
  background: rgba(255,255,255,.10);
  border: none;
  color: #fff;
  width: 32px; height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: background .2s;
}
.chat-close:hover { background: rgba(255,255,255,.22); }

.chat-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain; /* skrol unutar chata ne propada na stranicu iza */
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--frost);
}
.msg { display: flex; gap: 8px; max-width: 85%; }
.msg-text {
  padding: 11px 14px;
  border-radius: 16px;
  font-size: 14.5px;
  line-height: 1.5;
}
.msg-bot { align-self: flex-start; }
.msg-bot .msg-text {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--navy);
  border-bottom-left-radius: 5px;
}
.msg-user { align-self: flex-end; }
.msg-user .msg-text {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.msg-typing .msg-text { display: flex; gap: 4px; }
.msg-typing span {
  width: 7px; height: 7px;
  background: var(--faint);
  border-radius: 50%;
  animation: typing 1.2s ease-in-out infinite;
}
.msg-typing span:nth-child(2) { animation-delay: .2s; }
.msg-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 16px 0;
  background: var(--frost);
}
.chat-quick button {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--blue);
  background: #fff;
  border: 1px solid var(--sky);
  border-radius: 999px;
  padding: 7px 13px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.chat-quick button:hover { background: #eaf2fb; transform: translateY(-1px); }

.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  background: var(--frost);
  border-top: 1px solid var(--line);
}
.chat-input input {
  flex: 1;
  font-family: var(--font-body);
  font-size: 16px; /* >=16px sprječava iOS auto-zoom na fokus */
  color: var(--navy);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 11px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.chat-input input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(58,126,200,.12); }
.chat-input button {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background .2s, transform .15s;
}
.chat-input button:hover { background: var(--blue-dk); transform: scale(1.05); }

@media (max-width: 600px) {
  /* Chat preko cijelog ekrana; top:0 + JS visina prati vidljivi viewport kad iskoči tipkovnica */
  .albert-chat {
    top: 0; left: 0; right: 0; bottom: auto;
    width: 100%; max-width: 100%;
    height: 100dvh; max-height: none;
    border-radius: 0;
  }
  .launcher-label { display: none; }
  .albert-launcher { padding: 8px; }
}

/* ---------- Reveal animacija ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .split-inner { grid-template-columns: 1fr; gap: 28px; }
  .split-head { position: static; top: auto; }
  .split-sub { max-width: 560px; }
  .hero-inner { grid-template-columns: 1fr; gap: 12px; }
  .hero-visual { order: -1; }
  .hero-stage { max-width: 320px; }
  .hero { padding: 48px 0 64px; }
}

@media (max-width: 720px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .grid-2 { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .footer-bottom { justify-content: flex-start; }
}

@media (max-width: 460px) {
  .steps, .split .steps { grid-template-columns: 1fr; }
  .card, .quote { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Albert ostaje animiran (srž brenda) — smirimo samo dekorativne pokrete */
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .chat-bubble, .card-chip { animation: none !important; }
  .card:hover, .btn:hover { transform: none !important; }
}

/* ---------- Albert keyframes (iz brand kita) ---------- */
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes earL { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(5deg); } }
@keyframes earR { 0%,100% { transform: rotate(3deg); } 50% { transform: rotate(-5deg); } }
@keyframes blink { 0%,80%,100% { transform: scaleY(1); } 85% { transform: scaleY(.06); } }
@keyframes tailWag { 0%,100% { transform: rotate(-12deg); } 50% { transform: rotate(12deg); } }
@keyframes armL { 0%,100% { transform: rotate(-8deg); } 50% { transform: rotate(12deg); } }
@keyframes armR { 0%,100% { transform: rotate(8deg); } 50% { transform: rotate(-12deg); } }
@keyframes legL { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes legR { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes mstch { 0%,100% { transform: translateY(0); } 50% { transform: translateY(1px); } }
@keyframes sparkle { 0%,100% { opacity: 0; transform: scale(0); } 50% { opacity: 1; transform: scale(1); } }
@keyframes cheekGlow { 0%,100% { opacity: .42; } 50% { opacity: .6; } }


/* ============================================================
   Pravne stranice (privatnost / kolačići) + cookie obavijest
   ============================================================ */
.legal-section { padding: 8px 0 72px; }
.legal {
  max-width: 760px;
  margin: 0 auto;
}
.legal h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 40px 0 14px;
  padding-top: 8px;
}
.legal h2:first-child { margin-top: 8px; }
.legal h3 { font-size: 20px; margin: 28px 0 10px; }
.legal p { color: var(--muted); margin: 0 0 16px; font-size: 16px; }
.legal ul { color: var(--muted); margin: 0 0 16px; padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--blue-dk); }
.legal strong { color: var(--navy); }
.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin: 0 0 18px;
  box-shadow: var(--shadow-sm);
}
.legal-card p:last-child { margin-bottom: 0; }
.legal-meta {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--faint);
}

/* footer pravni linkovi */
.footer-legal { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255,255,255,.55); transition: color .2s; }
.footer-legal a:hover { color: #fff; }

/* cookie obavijest */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(140%);
  width: min(640px, calc(100% - 32px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 1200;
  opacity: 0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.cookie-banner p { font-size: 14px; color: var(--muted); margin: 0; line-height: 1.5; }
.cookie-banner p a { color: var(--blue); text-decoration: underline; }
.cookie-banner .btn { flex-shrink: 0; }
@media (max-width: 560px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; bottom: 12px; }
  .cookie-banner .btn { width: 100%; }
}
