/* ─── Looka chatbot — stil po uzoru na go.looka.hr landing (28.10.2026.) ───
   Tamna podloga (navy), Friends font (300 za naslove), zeleni gradijent gumbi, izmjena bijelih i
   "paper" sekcija preko cijele širine, ravne kartice 22px s tankim rubom, bez sjena. */

@font-face { font-family: 'Friends'; src: url('assets/fonts/friends-normal.woff') format('woff'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Friends'; src: url('assets/fonts/friends-regular.woff') format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Friends'; src: url('assets/fonts/friends-semibold.woff') format('woff'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Friends'; src: url('assets/fonts/friends-ultrabold.woff') format('woff'); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  --navy-950: #060a13;
  --navy-900: #0c111f;
  --navy-800: #151c2d;
  --paper: #f6f8fb;
  --paper-2: #eef6f3;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .12);
  --line-l: #e3e9f0;
  --teal: #00796d;
  --teal-ink: #0b6b62;
  --green: #38c682;
  --green-soft: rgba(56, 198, 130, .14);
  --grad: linear-gradient(120deg, #00796d 0%, #0e9576 55%, #2fb67b 100%);
  --grad-text: linear-gradient(100deg, #5ee0a3 0%, #38c682 45%, #1ea98c 100%);
  --ink: #f3f6fa;          /* tekst na tamnom */
  --ink-muted: #aab4c3;
  --ink-dark: #0c111f;     /* tekst na svijetlom */
  --ink-dark-2: #4b5563;
  --muted: #7c8691;
  --r-card: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Friends, Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--navy-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 300; }
h1 { font-size: clamp(40px, 4.3vw, 66px); line-height: 1.04; letter-spacing: -.025em; }
h1 b, h2 b { font-weight: 600; }
h2 { font-size: clamp(30px, 3.2vw, 48px); }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 860px; }

/* Sekcije preko cijele širine, izmjena bijela / paper */
.section { padding: 100px 0 96px; background: #fff; color: var(--ink-dark); }
.section-alt { background: var(--paper); }
.section > .container { background: transparent; box-shadow: none; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { color: var(--ink-dark-2); font-size: 1.05rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase; color: var(--teal);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; opacity: .7; }

/* Gumbi */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border: 0; border-radius: 999px; font: inherit; font-weight: 600;
  font-size: 16px; cursor: pointer; text-decoration: none;
  transition: transform .25s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, background .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 40px -12px rgba(56, 198, 130, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { box-shadow: 0 20px 50px -14px rgba(56, 198, 130, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost, .btn-outline { background: #fff; color: var(--teal-ink); border: 1px solid rgba(0, 121, 109, .3); }
.btn-ghost:hover, .btn-outline:hover { border-color: var(--teal); background: #f3fbf8; }
.btn-dark { background: var(--navy-900); color: #fff; border: 1px solid var(--line-2); }
.btn-dark:hover { background: var(--navy-800); }
.btn-white { background: #fff; color: var(--teal-ink); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .45); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14.5px; }

/* Header — fiksiran, proziran na vrhu, tamno staklo nakon skrola (site.js dodaje .scrolled) */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 60; padding: 0; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(12, 17, 31, .82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
.site-header .nav {
  max-width: var(--max); margin: 0 auto; display: flex; align-items: center; gap: 28px; height: 78px;
  padding: 0 24px; background: transparent; box-shadow: none; border-radius: 0;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.15rem; letter-spacing: -.01em; color: #fff; }
.logo svg { display: block; width: 112px; height: auto; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 11px; background: var(--grad); color: #fff;
  display: inline-grid; place-items: center; font-size: .9rem; font-weight: 800;
}
.nav-links { display: flex; gap: 26px; margin-left: auto; font-weight: 500; color: rgba(255, 255, 255, .72); font-size: .95rem; }
.nav-links a:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.5rem; cursor: pointer; margin-left: auto; color: #fff; }

/* Hero — tamno s radijalnim zelenim sjajem (kao landing) */
.hero {
  position: relative; padding: 150px 0 72px; overflow: hidden; color: var(--ink);
  background:
    radial-gradient(900px 620px at 88% 8%, rgba(0, 121, 109, .55), transparent 62%),
    radial-gradient(700px 520px at 0% 100%, rgba(56, 198, 130, .18), transparent 60%),
    linear-gradient(170deg, #18284a 0%, #121d36 55%, #0f2a3a 100%);
}
.hero > .container { background: transparent; box-shadow: none; padding: 0 24px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .eyebrow { color: var(--green); }
.hero h1 { color: #fff; margin-top: 22px; }
.lead { font-size: 1.1rem; color: var(--ink-muted); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; margin: 30px 0 30px; flex-wrap: wrap; }
.hero .btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border-color: var(--line-2); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.hero-proof { list-style: none; padding: 0; margin: 0; display: flex; gap: 22px; flex-wrap: wrap; color: var(--ink-muted); font-size: .92rem; }
.hero-proof li::before { content: "✓ "; color: var(--green); font-weight: 700; }

/* Chat mock u heroju */
.chat-mock {
  max-width: 390px; margin-left: auto; border-radius: 24px; background: var(--paper); color: var(--ink-dark);
  overflow: hidden; font-size: .88rem; border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .6);
}
.chat-mock-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: #fff; border-bottom: 1px solid var(--line-l); }
.chat-mock-head small { display: block; color: var(--muted); font-size: .76rem; }
.chat-avatar { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); color: #fff; display: grid; place-items: center; }
.chat-avatar svg { width: 20px; height: 20px; }
.chat-mock-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 86%; padding: 11px 15px; border-radius: 18px; line-height: 1.5; }
.bubble.user { align-self: flex-end; background: var(--navy-900); color: #fff; border-bottom-right-radius: 6px; }
.bubble.bot { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; border: 1px solid var(--line-l); }
.bubble.system { align-self: center; background: var(--green-soft); color: var(--teal-ink); font-size: .78rem; padding: 6px 14px; border-radius: 999px; }
.product-row { display: flex; gap: 8px; }
.product-card {
  flex: 1; border-radius: 14px; padding: 8px; background: #fff; font-size: .76rem; border: 1px solid var(--line-l);
  display: flex; flex-direction: column; gap: 4px;
}
.product-card b { font-weight: 600; }
.product-card span { color: var(--teal); font-weight: 600; }
.product-img { height: 54px; width: 100%; object-fit: contain; background: #fff; border-radius: 10px; display: block; }
.chat-mock-input { padding: 14px 18px; margin: 0 14px 14px; border-radius: 999px; background: #fff; color: var(--muted); border: 1px solid var(--line-l); }

/* Brojke — na tamnom, ispod heroja, odvojene linijama */
.stats { padding: 0 0 56px; background: var(--navy-900); }
.stats-grid { max-width: var(--max); margin: 0 auto; padding: 36px 24px 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stats-grid > div { padding: 8px 28px; border-left: 1px solid var(--line); }
.stats-grid > div:first-child { border-left: 0; padding-left: 0; }
.stats-grid strong { display: block; font-size: 2rem; font-weight: 300; line-height: 1.1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats-grid span { color: var(--ink-muted); font-size: .9rem; }

/* Funkcije — ravne kartice */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  position: relative; background: var(--paper); border-radius: var(--r-card); padding: 26px 24px;
  border: 1px solid var(--line-l); transition: transform .3s, border-color .3s;
}
.section-alt .feature { background: #fff; }
.feature:hover { transform: translateY(-3px); border-color: rgba(0, 121, 109, .35); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px; background: var(--green-soft); color: var(--teal);
  display: grid; place-items: center; margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature p { color: var(--ink-dark-2); font-size: .92rem; margin-bottom: 14px; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--teal-ink); border: 1px solid rgba(0, 121, 109, .3);
}
.tag-pro { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }

/* Koraci */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps li { background: #fff; border-radius: var(--r-card); padding: 30px; border: 1px solid var(--line-l); }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--grad); color: #fff; font-weight: 600; margin-bottom: 16px;
}
.steps p { color: var(--ink-dark-2); font-size: .94rem; margin: 0; }

/* Cjenik */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; background: var(--paper);
  border-radius: var(--r-card); padding: 34px 28px; border: 1px solid var(--line-l);
}
.plan-featured {
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(56, 198, 130, .25), transparent 60%),
    linear-gradient(170deg, #18284a 0%, #121d36 55%, #0f2a3a 100%);
  color: #fff; border-color: rgba(255, 255, 255, .12);
}
.plan-featured .plan-desc, .plan-featured .plan-extra, .plan-featured .price .currency, .plan-featured .price .period { color: var(--ink-muted); }
.badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #fff;
  font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; white-space: nowrap;
}
.plan h3 { font-size: 1.25rem; margin-bottom: 2px; }
.plan-desc { color: var(--muted); margin-bottom: 18px; font-size: .94rem; }
.price { font-size: 3rem; font-weight: 300; line-height: 1; display: flex; align-items: baseline; gap: 4px; letter-spacing: -.02em; }
.price .currency { font-size: 1.3rem; color: var(--muted); font-weight: 400; }
.price .period { font-size: .95rem; color: var(--muted); font-weight: 400; }
.plan-limit { margin: 16px 0 20px; padding: 10px 14px; background: #fff; border: 1px solid var(--line-l); border-radius: 999px; font-size: .88rem; display: inline-block; }
.plan-featured .plan-limit { background: rgba(255, 255, 255, .08); border-color: var(--line-2); }
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 10px; font-size: .92rem; flex: 1; }
.plan-features li::before { content: "✓"; color: var(--green); font-weight: 700; margin-right: 8px; }
.plan-features li.muted::before { content: "–"; color: var(--muted); }
.plan-extra { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.plan .btn-outline { width: 100%; }
.plan .btn-primary { width: 100%; }
.pricing-note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 28px; }

/* Usporedba */
.table-wrap { overflow-x: auto; border-radius: var(--r-card); background: #fff; border: 1px solid var(--line-l); }
.compare { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 640px; }
.compare th, .compare td { padding: 13px 18px; border-bottom: 1px solid var(--line-l); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--paper); font-weight: 600; }
.compare thead th:nth-child(3) { color: var(--teal); }
.compare tr.group td { background: var(--paper); font-weight: 600; font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); text-align: left; }
.compare tbody tr:last-child td { border-bottom: 0; }

/* Demo — "showcase" svijetli gradijent sa zelenim sjajem */
.showcase {
  background: radial-gradient(900px 500px at 50% 0%, rgba(56, 198, 130, .16), transparent 65%),
              linear-gradient(180deg, var(--paper-2) 0%, var(--paper) 100%);
}
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.demo-hints { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.demo-hints li { background: #fff; border: 1px solid var(--line-l); color: var(--ink-dark-2); padding: 9px 14px; border-radius: 999px; font-size: .92rem; width: fit-content; }
.demo-frame {
  position: relative; height: 640px; border-radius: var(--r-card); overflow: hidden; background: var(--navy-900);
  border: 1px solid var(--line-l); box-shadow: 0 40px 90px -30px rgba(12, 17, 31, .5);
}
.demo-frame iframe { width: 100%; height: 100%; border: 0; display: block; background: transparent; }
/* Učitan widget: bez okvira i tamne podloge, vidi se samo chat */
.demo-frame.loaded { background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.demo-placeholder { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--ink-muted); padding: 24px; }

/* FAQ */
details { background: var(--paper); border: 1px solid var(--line-l); border-radius: 16px; padding: 0 22px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--teal); font-weight: 400; font-size: 1.3rem; }
details[open] summary::after { content: "–"; }
details p { color: var(--ink-dark-2); padding-bottom: 18px; margin: 0; font-size: .95rem; }

/* CTA — "lead" sekcija: teal gradijent kao na landingu */
.cta {
  padding: 110px 0; color: #fff;
  background: radial-gradient(900px 600px at 85% 10%, rgba(94, 224, 163, .28), transparent 60%),
              linear-gradient(140deg, #00796d 0%, #0a6a60 45%, #0b4f4f 100%);
}
.cta > .container { background: transparent; box-shadow: none; padding: 0 24px; }
.cta-box { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; background: transparent; padding: 0; box-shadow: none; border-radius: 0; }
.cta-box .eyebrow { color: #c9f7df; }
.cta-box h2 { color: #fff; }
.cta-box p { color: rgba(255, 255, 255, .78); margin: 0; }
.cta-form { display: flex; flex-direction: column; gap: 10px; }
.cta-form input { padding: 15px 18px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .1); color: #fff; font: inherit; }
.cta-form input::placeholder { color: rgba(255, 255, 255, .6); }
.cta-form .btn { align-self: flex-start; background: #fff; color: var(--teal-ink); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .45); }

/* Footer */
.site-footer { padding: 56px 0 40px; background: var(--navy-950); border-top: 1px solid var(--line); color: var(--ink-muted); font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid p { color: var(--ink-muted); margin-top: 12px; max-width: 300px; }
.footer-grid h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: 12px; font-weight: 600; }
.footer-grid a { display: block; color: var(--ink-muted); margin-bottom: 8px; }
.footer-grid a:hover { color: #fff; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.footer-bottom a { display: inline; color: var(--ink-muted); }

/* Responsive */
@media (max-width: 1000px) {
  .section { padding: 72px 0 64px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); row-gap: 24px; }
  .stats-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .hero { padding: 120px 0 48px; }
  .hero-grid, .demo-grid, .cta-box { grid-template-columns: 1fr; }
  .chat-mock { margin: 0 auto; }
  .pricing-grid, .steps { grid-template-columns: 1fr; }
  /* Na mobitelu paketi idu redom Start → Standard → Pro (bez izdizanja istaknutog) */
  .plan-featured { order: 0; }
  .nav-links, .nav .btn { display: none; }
  .nav-toggle { display: block; }
  .nav { position: relative; }
  .site-header { background: rgba(12, 17, 31, .82); backdrop-filter: blur(14px); border-bottom-color: var(--line); }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 78px; left: 0; right: 0;
    background: var(--navy-900); border-bottom: 1px solid var(--line); padding: 16px 24px 24px; gap: 14px; color: rgba(255, 255, 255, .85);
  }
  .demo-frame { height: 560px; }
  .cta { padding: 72px 0; }
}
@media (max-width: 520px) {
  .feature-grid, .stats-grid, .footer-grid { grid-template-columns: 1fr; }
  .stats-grid > div { border-left: 0; padding-left: 0; }
  .hero-actions .btn { width: 100%; }
}

/* Usporedba na mobitelu: naziv funkcije preko cijele širine, ispod njega Start / Standard / Pro po trećinu */
@media (max-width: 720px) {
  .compare { min-width: 0; display: block; }
  .compare thead { display: none; }
  .compare tbody { display: block; }
  .compare tr { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--line-l); }
  .compare tbody tr:last-child { border-bottom: 0; }
  .compare td { border-bottom: 0; }
  .compare td:first-child { flex: 0 0 100%; padding: 10px 16px; font-weight: 500; text-align: center; background: var(--paper); border-bottom: 1px solid var(--line-l); }
  .compare td:not(:first-child) { padding-top: 10px; }
  .compare td:not(:first-child) { flex: 0 0 33.333%; padding: 4px 8px 12px; text-align: center; font-size: .9rem; }
  /* oznaka paketa iznad vrijednosti (site.js puni data-plan iz zaglavlja tablice) */
  .compare td:not(:first-child)::before {
    content: attr(data-plan); display: block; font-size: .68rem; font-weight: 600; letter-spacing: .1em;
    text-transform: uppercase; color: var(--muted); margin-bottom: 2px;
  }
  .compare td[data-plan="Pro"]::before { color: var(--teal); }
  .compare tr.group td { flex: 0 0 100%; padding: 12px 16px; }
}

/* Status forme za demo */
.cta-form { position: relative; }
.cta-status { margin: 4px 0 0; font-size: .92rem; color: rgba(255, 255, 255, .85); min-height: 1.4em; }
.cta-status.is-ok { color: #c9f7df; font-weight: 500; }
.cta-status.is-error { color: #ffd4d4; }
.cta-form .btn[disabled] { opacity: .7; cursor: default; transform: none; }
