/* =========================================================
   Alpnexa HVAC landing
   Tokeni iz Alpnexa Brand Kita (alpnexa.de style.css)
   ========================================================= */

/* Fontovi su lokalni (GDPR): Outfit i Sora, varijabilni woff2, latin + latin-ext */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/outfit-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/outfit-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../fonts/sora-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(../fonts/sora-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Boje */
  --bg: #f3f5fb;
  --surface: #ffffff;
  --ink: #0c1424;
  --body: #565f72;
  --muted: #8b92a4;
  --accent: #0d9488;
  --accent-2: #20c0aa;
  --accent-soft: #e3f6f2;
  --navy-1: #0a201e;
  --navy-2: #0e4f48;
  --border: rgba(12, 20, 36, 0.08);

  /* Gradijenti */
  --grad-btn: linear-gradient(120deg, var(--accent), var(--accent-2));
  --grad-text: linear-gradient(115deg, var(--accent) 10%, var(--accent-2) 90%);
  --grad-dark: linear-gradient(135deg, var(--navy-1) 0%, var(--navy-2) 100%);

  /* Sjene */
  --shadow-sm: 0 4px 22px rgba(12, 20, 36, 0.05);
  --shadow-md: 0 20px 55px rgba(12, 20, 36, 0.10);
  --shadow-lg: 0 30px 70px rgba(12, 20, 36, 0.14);
  --shadow-btn: 0 12px 30px rgba(13, 148, 136, 0.30);
  --shadow-btn-hover: 0 18px 40px rgba(13, 148, 136, 0.42);

  /* Radijusi */
  --radius: 22px;
  --radius-sm: 14px;
  --radius-pill: 50px;
  --radius-block: 30px;

  /* Fontovi */
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Sora', system-ui, sans-serif;

  /* Raspored */
  --maxw: 1180px;
  --gutter: 20px;
  --section-y: 72px;
}

/* =========================================================
   Osnova (mobitel prvo, 360 px)
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 68px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--ink); margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: calc(var(--maxw) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.container-narrow { max-width: calc(760px + 2 * var(--gutter)); }
.section { padding: var(--section-y) 0; position: relative; }
/* Naslovi sekcija su centrirani na svim ekranima */
.section-head { max-width: 720px; margin: 0 auto 36px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.section-head > * + * { margin-top: 14px; }

h1 { font-weight: 800; font-size: clamp(32px, 5.2vw, 60px); line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-weight: 800; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-weight: 700; font-size: 19px; line-height: 1.3; letter-spacing: -0.01em; }
.lead { font-size: clamp(16px, 1.35vw, 17.5px); line-height: 1.7; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.fine { font-size: 13px; line-height: 1.6; color: var(--body); }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* =========================================================
   Dizajn sekcija
   ========================================================= */

/* AA kontrast: tekst u teal boji ide u tamnijem tonu iz znaka (#0a6b62).
   Primarno dugme ima tamniji teal gradijent da bijeli tekst prođe AA. */
:root {
  --accent-ink: #0a6b62;
  --grad-btn: linear-gradient(120deg, #0a6b62 0%, #0b8378 50%, #0a6b62 100%);
  --danger: #b42318;
}

.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Ikone (Lucide stil) */
.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.tile {
  display: inline-grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 14px;
  background: var(--accent-soft); color: var(--accent-ink);
}
.tile .i { width: 24px; height: 24px; }

/* Oznaka izvora uz svaku brojku */
.src {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-size: 11.5px; font-weight: 600; letter-spacing: 0.02em;
  line-height: 1; padding: 5px 9px; border-radius: 30px;
  color: var(--accent-ink); background: var(--accent-soft); white-space: nowrap;
}
.src::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }
.src-on-dark { color: #8fe6d8; background: rgba(32, 192, 170, 0.12); }

.todo {
  display: inline-block; font-size: 13px; font-weight: 600; line-height: 1.4;
  padding: 3px 9px; border-radius: 6px;
  color: #6b4e00; background: #fff4d6; border: 1px dashed #c99a12;
}

/* ---------- Dugmad ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.25;
  text-decoration: none; text-align: center; border: 1px solid transparent; cursor: pointer;
  transition: transform .2s ease, box-shadow .25s ease, background-position .5s ease, border-color .2s ease;
}
.btn .i { width: 18px; height: 18px; }
@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--grad-btn); background-size: 220% 100%; color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background-position: 100% 0; box-shadow: var(--shadow-btn-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: rgba(13, 148, 136, 0.35); }
.btn-light { background: #fff; color: var(--navy-1); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-text { background: none; border: 0; color: var(--body); padding: 14px 8px; min-height: 48px; font-weight: 600; cursor: pointer; }
.btn-text:hover { color: var(--ink); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
/* Samo logo, preko cijele širine, bez okvira. Fiksan, a sadržaj iza se zamuti.
   Pozadina je ton stranice, pa na vrhu izgleda providno; kod skrolanja dobije tanku liniju. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(243, 245, 251, 0.72); border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%);
  transition: border-color .3s ease, box-shadow .3s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 6px 24px rgba(12, 20, 36, 0.05); }
.header-inner { display: flex; align-items: center; min-height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; }
.brand-word { width: auto; height: 19px; }
@media (min-width: 1000px) { .header-inner { min-height: 64px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 40px; overflow: hidden; isolation: isolate; }
/* Mobitel i tablet: hero zauzima prvi ekran, sadržaj vertikalno u sredini ispod headera,
   a dole mjesto za strelicu koja pokazuje da ima još */
@media (max-width: 999px) {
  .hero { display: flex; align-items: center; min-height: 100vh; min-height: 100svh; padding-bottom: 112px; }
}
.hero-glow { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-glow::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(12, 20, 36, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 20, 36, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero-glow::after {
  content: ''; position: absolute; width: 900px; height: 900px; left: 50%; top: -260px; transform: translateX(-30%);
  background: radial-gradient(circle, rgba(13, 148, 136, 0.14) 0%, transparent 62%);
}
.hero-grid { display: grid; gap: 36px; align-items: center; }
/* Mobitel i tablet: centrirano, dashboard ispod dugmadi. Od 1000 px lijevo, s dashboardom desno. */
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-copy > * + * { margin-top: 18px; }
.hero-copy h1 .grad { display: block; }
.hero-copy .lead { max-width: 36em; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; padding-top: 6px; width: 100%; max-width: 440px; }
.i-accent { color: var(--accent-ink); }
.proof {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px;
  font-size: 14.5px; color: var(--body); padding-top: 8px;
}
.proof strong { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink); }
.proof .dot { color: var(--muted); }

/* Kratke garancije uz CTA: bez rizika, koliko traje */
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; font-size: 13.5px; line-height: 1.4; color: var(--body); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust li::before {
  content: ''; flex: none; width: 17px; height: 17px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6b62' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px no-repeat;
}
.hero-copy > .hero-trust { margin-top: 14px; }

/* Strelica na dnu prvog ekrana (samo mobitel i tablet). Lagano poskakuje; main.js je sakrije kad se skrola. */
.scroll-cue { display: none; }
@media (max-width: 999px) {
  .scroll-cue {
    position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 12px; white-space: nowrap;
    font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.2; color: var(--body); text-decoration: none;
    animation: cue-in .6s .9s ease-out backwards; transition: opacity .35s ease;
  }
  .scroll-cue.is-hidden { opacity: 0; pointer-events: none; }
}
.scroll-cue-ic {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); border: 1px solid rgba(13, 148, 136, 0.25); box-shadow: var(--shadow-sm); color: var(--accent-ink);
  animation: cue-bob 1.8s ease-in-out infinite;
}
.scroll-cue-ic .i { width: 20px; height: 20px; }
@keyframes cue-in { from { opacity: 0; } }
@keyframes cue-bob { 50% { transform: translateY(7px); } }

/* ---------- Hero v2: kratak naslov na pozadini s izotermama ----------
   Canvas crta hero-air.js. Toplo dole lijevo, hladno gore desno. */
.hero.hero-air {
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100svh; padding: 96px 0 112px;
}
@media (min-width: 1000px) { .hero.hero-air { padding: 96px 0 72px; } }

/* Teal svjetlo gore desno (hladno), jedva topli ton dole lijevo */
.air-glow { position: absolute; inset: 0; z-index: -3; pointer-events: none; }
.air-glow::before, .air-glow::after { content: ''; position: absolute; border-radius: 50%; filter: blur(20px); }
.air-glow::before {
  width: 70vmax; height: 70vmax; right: -20vmax; top: -32vmax;
  background: radial-gradient(circle, rgba(32, 192, 170, 0.18) 0%, transparent 62%);
  animation: glow-a 22s ease-in-out infinite alternate;
}
.air-glow::after {
  width: 60vmax; height: 60vmax; left: -20vmax; bottom: -32vmax;
  background: radial-gradient(circle, rgba(240, 150, 80, 0.10) 0%, transparent 62%);
  animation: glow-b 26s ease-in-out infinite alternate;
}
@keyframes glow-a { to { transform: translate(-10vmax, 6vmax) scale(1.08); } }
@keyframes glow-b { to { transform: translate(10vmax, -6vmax) scale(1.1); } }

.air-grid {
  position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(12, 20, 36, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12, 20, 36, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 45%, #000 20%, transparent 75%);
}

/* Sredina je prigušena da tekst ostane u fokusu */
.air-flow {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 42% 34% at 50% 50%, rgba(0, 0, 0, .18) 0%, #000 100%);
  mask-image: radial-gradient(ellipse 42% 34% at 50% 50%, rgba(0, 0, 0, .18) 0%, #000 100%);
}

.hero-air-copy { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-air-copy h1 { font-size: clamp(38px, 7vw, 76px); line-height: 1.04; letter-spacing: -0.03em; max-width: 12em; }
.hero-air-copy .lead { margin-top: 20px; font-size: clamp(17px, 2vw, 21px); max-width: 28em; }
.hero-air-copy .btn { margin-top: 34px; }
.hero-air-copy > * { animation: air-in .9s cubic-bezier(.2, .8, .2, 1) backwards; }
.hero-air-copy > :nth-child(2) { animation-delay: .12s; }
.hero-air-copy > :nth-child(3) { animation-delay: .24s; }
@keyframes air-in { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Dashboard kartica (hero na desktopu + Paket za rast) ---------- */
.hero-visual { display: none; }
.dash {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 16px; box-shadow: var(--shadow-md);
}
/* Uski ekrani: oznaka izvora ide ispod naslova; od 420 px desno u istom redu */
.dash-head { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; row-gap: 6px; }
.dash-head .src { grid-column: 2; justify-self: start; }
.dash-ic {
  display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: var(--grad-btn); color: #fff; box-shadow: 0 8px 20px rgba(13, 148, 136, 0.28);
}
.dash-ic .i { width: 20px; height: 20px; }
.dash-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.25; color: var(--ink); }
.dash-sub { font-size: 12px; line-height: 1.4; color: var(--body); }
.dash-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.dash-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0;
  background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 12px 6px;
}
.dash-k { font-size: 11.5px; line-height: 1.3; color: var(--body); }
.dash-tile b {
  font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.2;
  letter-spacing: -0.02em; color: var(--ink); margin: 4px 0 2px; white-space: nowrap;
}
.dash-tile small { font-size: 11px; line-height: 1.35; color: var(--body); }
.dash-tile.is-hot { background: var(--accent-soft); border-color: rgba(13, 148, 136, 0.35); box-shadow: 0 0 0 3px rgba(32, 192, 170, 0.12); }
.dash-tile.is-hot b, .dash-tile.is-hot small { color: var(--accent-ink); }
.dash-block { margin-top: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.dash-label { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.3; color: var(--body); margin-bottom: 12px; }
.dash-label::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); }
.dash-label-plain::before { display: none; }
.dash-label .i { width: 16px; height: 16px; color: var(--accent-ink); }
.dash-foot { margin-top: 12px; padding: 0 4px; font-size: 12.5px; line-height: 1.5; color: var(--body); }
.dash-foot b { color: var(--ink); font-weight: 600; }

/* Redovi s trakom: oznaka | traka | vrijednost */
.rows { display: grid; gap: 9px; }
.rows li { display: grid; grid-template-columns: 84px 1fr auto; align-items: center; gap: 10px; font-size: 12px; line-height: 1.25; }
.rows b { font-family: var(--font-display); font-weight: 700; font-size: 13.5px; color: var(--ink); text-align: right; min-width: 3.6em; }
.bar { display: block; height: 10px; border-radius: 6px; background: rgba(12, 20, 36, 0.06); overflow: hidden; }
.bar-fill {
  display: block; height: 100%; width: var(--w); border-radius: inherit;
  background: linear-gradient(90deg, #d3d8e2, #b9c0cd); transform-origin: left;
  transition: transform 1s cubic-bezier(.2, .8, .2, 1);
}
.rows .is-accent .bar-fill { background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.rows .is-accent b { color: var(--accent-ink); }
.rows li:nth-child(2) .bar-fill { transition-delay: .1s; }
.rows li:nth-child(3) .bar-fill { transition-delay: .2s; }
.rows li:nth-child(4) .bar-fill { transition-delay: .3s; }

/* Aktivnost uživo */
.live-row { display: flex; align-items: center; gap: 12px; font-size: 13.5px; line-height: 1.3; color: var(--body); transition: opacity .3s ease, transform .3s ease; }
.live-row.is-out { opacity: 0; transform: translateY(6px); }
.live-ic { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); }
.live-ic .i { width: 16px; height: 16px; }
.live-txt { flex: 1; }
.live-txt b { color: var(--ink); font-weight: 700; }
.live-time { font-size: 11.5px; color: var(--muted); }

/* Plutajuća kartica uz dashboard */
.dash-float {
  position: absolute; right: -8px; bottom: -6px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
@keyframes floaty { 50% { transform: translateY(-8px); } }

/* Trake krenu od nule tek kad main.js pokrene animaciju (bez JS-a su odmah pune) */
.play-ready [data-play]:not(.is-play) .bar-fill { transform: scaleX(0); }

@media (min-width: 420px) {
  .dash-head { grid-template-columns: auto 1fr auto; }
  .dash-head .src { grid-column: auto; }
  .dash { padding: 20px; }
  .dash-tiles { gap: 10px; }
  .dash-tile { padding: 14px 8px; }
  .dash-tile b { font-size: 24px; }
  .dash-tile small { font-size: 11.5px; }
  .rows li { grid-template-columns: 112px 1fr auto; font-size: 12.5px; }
}

/* ---------- Paket za rast ----------
   Svaki dio paketa ima temperaturu, iste boje kao izoterme u heroju: oglasi toplo, aplikacija hladno.
   --t je boja za linije i sjaj, --t-ink tamniji ton za tekst (AA na pozadini). */
[data-temp="warm"] { --t: 226 132 64; --t-ink: #a4480f; }
[data-temp="sand"] { --t: 222 166 92; --t-ink: #8c5a10; }
[data-temp="mint"] { --t: 32 192 170; --t-ink: #0b766b; }
[data-temp="cool"] { --t: 13 148 136; --t-ink: #0a6b62; }

.section-pkg { overflow: clip; }
.section-pkg h2 { font-size: clamp(36px, 5.4vw, 60px); letter-spacing: -0.03em; }
.section-pkg .section-head .lead { margin-top: 18px; font-size: clamp(17px, 2vw, 20px); text-wrap: balance; }
/* Svaka rečenica u svom redu: prvo primjer, pa obećanje */
.section-pkg .section-head .lead span { display: block; }
.pkg { position: relative; isolation: isolate; }

/* Sjaj iza panela: poprimi temperaturu aktivnog taba (main.js mijenja data-temp na .pkg) */
.pkg-glow {
  position: absolute; z-index: -1; left: 50%; top: 80px; width: min(1100px, 150vw); aspect-ratio: 1.7;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background-color: rgb(var(--t) / .14); filter: blur(90px); transition: background-color .9s ease;
}

/* Tabovi: tekst i linija ispod u boji dijela. Mobitel 2 × 2, od 768 px jedan red kao skala. */
.pkg-tabs { display: none; }
.js .pkg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin-bottom: 40px; }
.pkg-tab {
  position: relative; display: flex; align-items: baseline; gap: 8px; min-height: 52px; padding: 14px 2px 16px;
  border: 0; background: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.25; color: var(--body);
  transition: color .25s ease;
}
.pkg-tab::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: rgb(var(--t)); opacity: .25; transform: scaleY(.67); transform-origin: bottom;
  transition: opacity .25s ease, transform .25s ease;
}
.pkg-tab-n { font-size: 12px; font-variant-numeric: tabular-nums; color: var(--t-ink); }
.pkg-tab[aria-selected="true"] { color: var(--ink); }
.pkg-tab[aria-selected="true"]::after { opacity: 1; transform: none; }
@media (hover: hover) {
  .pkg-tab:hover { color: var(--ink); }
  .pkg-tab:hover::after { opacity: .55; }
}
@media (min-width: 768px) {
  .js .pkg-tabs { grid-template-columns: repeat(4, 1fr); gap: 0 6px; max-width: 900px; margin: 0 auto 64px; }
  .pkg-tab { font-size: 16px; }
}

.pkg-panel { display: grid; gap: 32px; }
.pkg-panel + .pkg-panel { margin-top: 80px; }
.js .pkg-panel + .pkg-panel { margin-top: 0; }
.js .pkg-panel.is-off { display: none; }
/* Promjena taba: dijelovi panela se pojave jedan za drugim */
.js .pkg-panel.is-play > * { animation: pkg-in .6s cubic-bezier(.2, .8, .2, 1) both; }
.js .pkg-panel.is-play > :nth-child(2) { animation-delay: .07s; }
.js .pkg-panel.is-play > :nth-child(3) { animation-delay: .14s; }
.js .pkg-panel.is-play > :nth-child(4) { animation-delay: .2s; }
.js .pkg-panel.is-play > :nth-child(5) { animation-delay: .26s; }
@keyframes pkg-in { from { opacity: 0; transform: translateY(14px); } }


/* Očitanje: jedan veliki broj u boji dijela, ostalo sitno i mirno */
.pkg-big { font-size: 15px; line-height: 1.45; color: var(--body); }
.pkg-big b {
  display: block; margin-bottom: 10px; font-family: var(--font-display); font-weight: 800;
  font-size: clamp(64px, 9vw, 104px); line-height: .95; letter-spacing: -0.04em; color: var(--t-ink);
}
.pkg-sub { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 14px; font-size: 14.5px; line-height: 1.45; color: var(--body); }
.pkg-sub b { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); }
.pkg-flow {
  display: flex; flex-wrap: wrap; row-gap: 4px; margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgb(var(--t) / .35); font-size: 13px; line-height: 1.45; color: var(--body);
}
.pkg-flow li:not(:last-child)::after { content: '→'; margin: 0 8px; color: rgb(var(--t)); }
.pkg-flow li:last-child { font-weight: 600; color: var(--t-ink); }
.pkg-src { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; font-size: 12.5px; line-height: 1.45; color: var(--body); }
.pkg-src::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--t)); transform: translateY(-1px); }

/* Šta tačno dobijate: kratke stavke, svaka s linijom u boji dijela */
.pkg-points { display: grid; gap: 14px; }
.pkg-points li { padding-left: 16px; border-left: 2px solid rgb(var(--t) / .55); font-size: 15px; line-height: 1.5; color: var(--ink); }
@media (min-width: 600px) { .pkg-points { grid-template-columns: 1fr 1fr; gap: 18px 32px; } }

/* Dugme za sljedeći dio paketa (dodaje main.js). Strelica je u boji sljedećeg dijela. */
.pkg-next {
  grid-column: 1 / -1; justify-self: center; display: inline-flex; align-items: center; gap: 12px;
  min-height: 48px; padding: 6px 4px; border: 0; background: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--ink);
}
.pkg-next span { font-weight: 500; color: var(--body); }
.pkg-next .i {
  box-sizing: content-box; width: 18px; height: 18px; padding: 8px; border-radius: 50%;
  border: 1px solid rgb(var(--t) / .6); color: var(--t-ink); transition: transform .2s ease, background-color .2s ease;
}
@media (hover: hover) {
  .pkg-next:hover .i { transform: translateX(3px); background-color: rgb(var(--t) / .12); }
}

/* Pravi ekrani u tabu. Mobitel: vodoravni niz sa snapom. Lightbox ide preko .shot-btn. */
.pkg-proof { min-width: 0; }
.pkg-proof-label { font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.3; color: var(--ink); }
.pkg-proof-label span { display: block; margin-top: 3px; font-family: var(--font-body); font-weight: 400; font-size: 12.5px; color: var(--body); }
.pkg-proof-row {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; margin: 14px calc(var(--gutter) * -1) 0;
  padding: 0 var(--gutter) 10px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: thin;
}
.pkg-proof-item { margin: 0; scroll-snap-align: start; }
.pkg-proof-frame {
  aspect-ratio: 16 / 10; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: box-shadow .25s ease, transform .25s ease;
}
@media (hover: hover) {
  .pkg-proof-frame:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
}
.pkg-proof-frame img, .pkg-proof-frame video { width: 100%; height: 100%; object-fit: cover; object-position: left top; }
/* Dok se slika učitava: svjetlucava podloga, pa se slika lagano pojavi (bez JS-a odmah vidljiva) */
.js .pkg-proof-frame:not(.is-loaded) {
  background: linear-gradient(100deg, #eceff5 30%, #f8f9fc 50%, #eceff5 70%) 0 0 / 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.js .pkg-proof-frame img { opacity: 0; transition: opacity .5s ease; }
.js .pkg-proof-frame.is-loaded img { opacity: 1; }
.pkg-proof-frame img.is-center { object-position: center top; }
/* Široki ekrani (grafovi, tabele) cijeli u okviru, bez rezanja; podloga bijela kao u Search Consoleu */
.pkg-proof-frame img.is-contain { object-fit: contain; object-position: center; padding: 6px; background: #fff; }
/* Video stranice je 16:9, pa i okvir (bez rezanja sa strane) */
.pkg-proof-frame:has(video) { aspect-ratio: 16 / 9; }
.pkg-proof-item figcaption { margin-top: 10px; font-size: 13px; line-height: 1.45; color: var(--body); }
/* Snimak aplikacije: uspravan ekran mobitela u tamnom okviru, sam u redu */
.pkg-proof-row:has(.is-phone) { grid-auto-columns: 100%; overflow: visible; }
.pkg-proof-item.is-phone { justify-self: center; width: min(100%, 250px); }
.pkg-proof-item.is-phone .pkg-proof-frame { aspect-ratio: 375 / 812; border: 7px solid var(--ink); border-radius: 30px; box-shadow: var(--shadow-md); }
.pkg-proof-item.is-phone figcaption { text-align: center; }
/* Jedan široki ekran u tabu (tabela iz Ads Managera): preko cijele širine, u svojim proporcijama, bez rezanja */
.pkg-proof-row:has(> :only-child:not(.is-phone)) { grid-auto-columns: 100%; overflow: visible; }
.pkg-proof-item:only-child:not(.is-phone) .pkg-proof-frame { aspect-ratio: auto; }
.pkg-proof-item:only-child:not(.is-phone) .pkg-proof-frame img { height: auto; }
@media (min-width: 768px) {
  .pkg-proof-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 16px 0 0; padding: 0; overflow: visible; }
  .pkg-proof-row:has(.is-phone), .pkg-proof-row:has(> :only-child) { grid-template-columns: 1fr; }
  .pkg-proof-item.is-phone { width: 280px; }
}
.pkg-note { margin-top: 48px; text-align: center; font-size: 13px; line-height: 1.6; color: var(--body); }

@media (min-width: 1000px) {
  /* Očitanje u jednom redu: veliki broj lijevo, sitne brojke i izvor desno od njega */
  .pkg-panel { row-gap: 48px; }
  .pkg-read { display: flex; align-items: flex-end; gap: 72px; }
  .pkg-big { flex: none; }
  .pkg-meta { flex: 1; max-width: 640px; padding-bottom: 2px; }
  .pkg-meta > .pkg-sub:first-child { margin-top: 0; }
  .pkg-points { grid-template-columns: repeat(4, 1fr); }
  .pkg-points li { padding: 14px 0 0; border-left: 0; border-top: 2px solid rgb(var(--t) / .55); }
}

.section-cta { display: flex; justify-content: center; margin-top: 40px; }
.section-pkg .section-cta { margin-top: 28px; }
.shot-btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
.shot-btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: -3px; }
/* Lupa u uglu: vidi se da se slika može uvećati */
.shot-btn::after {
  content: ''; position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; pointer-events: none;
  background: rgba(12, 20, 36, 0.62) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4M11 8v6M8 11h6'/%3E%3C/svg%3E") center/17px no-repeat;
  box-shadow: 0 4px 14px rgba(12, 20, 36, 0.25); transition: transform .2s ease, background-color .2s ease;
}
@media (hover: hover) {
  .shot-btn:hover::after { transform: scale(1.12); background-color: var(--accent-ink); }
}

/* ---------- Izjava klijenta ---------- */
.section-quote { padding-top: 0; }
.testimonial {
  position: relative; overflow: hidden; max-width: 880px; margin: 0 auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-block);
  padding: 44px 22px 36px; box-shadow: var(--shadow-md);
}
.testimonial::before { content: ''; position: absolute; width: 480px; height: 480px; left: -220px; top: -260px; background: radial-gradient(circle, rgba(32, 192, 170, 0.18), transparent 62%); pointer-events: none; }
.testimonial > * { position: relative; }
.testimonial-mark { position: absolute; left: 18px; top: 14px; width: 84px; height: 84px; fill: var(--accent-soft); }
.stars { display: flex; justify-content: center; gap: 4px; }
.stars svg { width: 20px; height: 20px; fill: #f5b301; }
.testimonial blockquote { margin: 18px 0 0; }
.testimonial blockquote p {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(20px, 2.5vw, 29px);
  line-height: 1.4; letter-spacing: -0.01em; color: var(--ink); text-wrap: balance;
}
.testimonial-author { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; text-align: left; }
.testimonial-avatar {
  display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 50%;
  background: var(--grad-btn); color: #fff; box-shadow: var(--shadow-btn);
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
}
.testimonial-author b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 17px; line-height: 1.3; color: var(--ink); }
.testimonial-author small { display: block; font-size: 13px; line-height: 1.4; color: var(--body); }
@media (min-width: 768px) { .testimonial { padding: 64px 72px 52px; } .testimonial-mark { width: 120px; height: 120px; left: 32px; top: 24px; } }

/* ---------- Mali natpis iznad naslova ---------- */
.eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 13px; line-height: 1.2; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); }

/* ---------- Za koga ---------- */
/* Bijela traka preko cijele širine: prekida niz sivih sekcija */
.section-fit { background: var(--surface); border-block: 1px solid var(--border); }
.fit { display: grid; gap: 14px; }
.fit-col { border-radius: var(--radius); padding: 28px 22px; }
.fit-col h3 { font-size: 21px; margin-bottom: 14px; }
.fit-col li { position: relative; padding-left: 36px; margin-top: 12px; font-size: 15.5px; color: var(--ink); }
.fit-col li::before { content: ''; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 8px; }
.fit-yes { background: linear-gradient(170deg, #eef9f6, var(--surface) 70%); border: 1px solid rgba(13, 148, 136, 0.3); box-shadow: var(--shadow-md); }
.fit-yes li::before { box-shadow: 0 0 0 1px rgba(13, 148, 136, 0.15); }
.fit-yes li::before { background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a6b62' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat; }
.fit-no { background: transparent; border: 1px dashed rgba(12, 20, 36, 0.18); }
.fit-no li { color: var(--body); }
.fit-no li::before { background: rgba(12, 20, 36, 0.06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23565f72' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M17 7 7 17M7 7l10 10'/%3E%3C/svg%3E") center/11px no-repeat; }
.why { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.why h4 { font-size: 16px; margin-bottom: 6px; }
.why p { font-size: 14.5px; }
@media (min-width: 768px) { .fit { grid-template-columns: 1.1fr 1fr; } .fit-col { padding: 36px 32px; } }

/* ---------- Formular ---------- */
.section-form { background: linear-gradient(180deg, var(--bg), #e9f4f2 60%, var(--bg)); }
.form-layout { max-width: 680px; margin: 0 auto; }
.form-card {
  position: relative; min-width: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md); padding: 22px 18px;
}
/* Nakon klika na CTA kartica jednom zasvijetli (main.js) */
.form-card.is-pulse { animation: card-pulse 1.6s .5s ease-out; }
@keyframes card-pulse {
  from { box-shadow: 0 20px 55px rgba(12, 20, 36, 0.10), 0 0 0 0 rgba(32, 192, 170, 0.5); }
  to { box-shadow: 0 20px 55px rgba(12, 20, 36, 0.10), 0 0 0 22px rgba(32, 192, 170, 0); }
}

.form-fallback p + p { margin-top: 8px; }
.form-fallback a { font-weight: 600; color: var(--accent-ink); }

.lf-progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; color: var(--body); }
.lf-bar { height: 6px; border-radius: 6px; background: var(--accent-soft); overflow: hidden; margin: 10px 0 24px; }
.lf-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: 6px; transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.lf-step { border: 0; padding: 0; margin: 0; min-width: 0; }
/* Svaki novi korak (i ekran uspjeha) lagano uđe */
.lf-step, .lf-done { animation: lf-in .4s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lf-in { from { opacity: 0; transform: translateX(14px); } }
.lf-step legend { font-family: var(--font-display); font-weight: 800; font-size: clamp(21px, 3vw, 26px); line-height: 1.25; color: var(--ink); letter-spacing: -0.015em; padding: 0; }
.lf-step legend:focus { outline: none; }
.lf-hint { font-size: 14px; margin-top: 6px; }
.lf-options { display: grid; gap: 10px; margin-top: 18px; }
@media (min-width: 560px) { .lf-options-2 { grid-template-columns: 1fr 1fr; } }
.lf-opt { position: relative; display: block; }
.lf-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.lf-opt span {
  display: flex; align-items: center; gap: 12px; min-height: 54px; padding: 12px 16px;
  border: 1.5px solid rgba(12, 20, 36, 0.12); border-radius: var(--radius-sm); background: var(--surface);
  font-weight: 500; color: var(--ink); line-height: 1.35; transition: border-color .15s, background .15s, box-shadow .15s;
}
.lf-opt span::before {
  content: ''; flex: none; width: 20px; height: 20px; border: 2px solid rgba(12, 20, 36, 0.25); border-radius: 50%; background: #fff center/12px no-repeat;
  transition: border-color .15s, background-color .15s;
}
.lf-opt input[type="checkbox"] + span::before { border-radius: 6px; }
.lf-opt:hover span { border-color: rgba(13, 148, 136, 0.5); }
.lf-opt input:checked + span { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent) inset; }
.lf-opt input:checked + span::before {
  border-color: var(--accent-ink); background-color: var(--accent-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.lf-opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }

.lf-field { display: block; margin-top: 16px; }
.lf-field label > span { display: block; font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.lf-field small { font-weight: 400; color: var(--body); font-size: 13px; }
.lf-field .req { color: var(--danger); }
.lf-input {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid rgba(12, 20, 36, 0.16); background: #fff; font-size: 16px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
textarea.lf-input { min-height: 96px; resize: vertical; }
.lf-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18); }
.lf-input[aria-invalid="true"] { border-color: var(--danger); }
.lf-err { display: block; color: var(--danger); font-size: 13.5px; font-weight: 500; margin-top: 6px; }
.lf-err:empty { display: none; }
.lf-consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 18px; font-size: 14px; cursor: pointer; }
.lf-consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent-ink); flex: none; }
.lf-consent a { color: var(--accent-ink); font-weight: 600; }
.lf-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lf-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
.lf-nav .btn-primary { margin-left: auto; }
.lf-msg { font-size: 15px; margin-top: 10px; }
.lf-done { text-align: center; padding: 18px 4px; }
.lf-done .tile { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 16px; }
.lf-done .tile .i { width: 30px; height: 30px; }
.lf-done h3 { font-size: clamp(22px, 3vw, 28px); font-weight: 800; }
.lf-done p { margin-top: 10px; }
.lf-done-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.lf-dev { display: inline-block; margin-top: 16px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; background: #fff4d6; color: #6b4e00; border: 1px dashed #c99a12; border-radius: 6px; padding: 3px 8px; }
@media (min-width: 560px) {
  .form-card { padding: 34px 36px; }
  .lf-done-actions { flex-direction: row; justify-content: center; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-1); color: rgba(255, 255, 255, 0.72); padding: 36px 0; font-size: 14px; }
.footer-inner { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.brand-footer .brand-mark { width: 36px; height: 36px; border-radius: 10px; background: #fff; padding: 3px; }
.brand-footer .brand-word { height: 18px; }
.footer-line { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.footer-line a { color: #fff; text-underline-offset: 3px; }
.footer-line .dot { opacity: .5; }
.footer-line .todo-link::after { content: ' (TODO)'; color: #ffd76a; font-size: 12px; }
.site-footer :focus-visible { outline-color: var(--accent-2); }
.footer-line [hidden] { display: none; }

/* Kolačići: mala traka dole lijevo, ne pokriva sadržaj. Odbij i Prihvati izgledaju isto (bez guranja na „Prihvati"). */
.consent {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; max-width: 420px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 16px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  font-size: 13px; line-height: 1.5; color: var(--body);
}
.consent p { margin: 0; flex: 1 1 220px; }
.consent a { color: #0a6b62; text-underline-offset: 3px; }
.consent-btns { display: flex; gap: 8px; }
.consent .btn-sm { min-height: 40px; padding: 8px 16px; font-size: 13px; }
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Impressum i zaštita podataka ---------- */
/* Bez JS-a: header je odmah s linijom, sadržaj počinje ispod njega */
.legal-page main { padding-top: 88px; padding-bottom: var(--section-y); }
.legal-back { display: inline-block; margin-bottom: 16px; font-size: 14px; font-weight: 600; color: var(--accent-ink); text-decoration: none; }
.legal-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 28px 20px; overflow-wrap: break-word;
}
.legal h1 { font-size: clamp(30px, 4.2vw, 44px); }
.legal h2 { font-size: clamp(21px, 2.2vw, 25px); margin-top: 40px; }
.legal h3 { font-size: 17px; margin-top: 26px; }
.legal h2 + h3 { margin-top: 18px; }
.legal p, .legal ul { margin-top: 10px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal li + li { margin-top: 4px; }
.legal a { color: var(--accent-ink); text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal-note { font-size: 14px; color: var(--body); padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.legal h1 + .legal-note { margin-top: 16px; }
@media (min-width: 768px) {
  .legal-page main { padding-top: 104px; }
  .legal { padding: 44px 48px; }
}

/* ---------- Lightbox ---------- */
/* Preko cijelog ekrana: gore brojač i X, u sredini slika (zum i pomjeranje), dolje opis i dugmad.
   Pozornica preuzima sve dodire (touch-action: none), pa preglednik ne zumira cijelu stranicu. */
html.lb-open { overflow: hidden; scrollbar-gutter: stable; }
.lightbox {
  width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(5, 13, 16, 0.97); color: #fff; overflow: hidden; overscroll-behavior: contain;
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; animation: lb-in .22s ease-out; }
.lightbox.is-closing { animation: lb-out .18s ease-in forwards; }
.lightbox::backdrop { background: rgba(5, 13, 16, 0.5); }
@keyframes lb-in { from { opacity: 0; } }
@keyframes lb-out { to { opacity: 0; } }

.lb-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: max(10px, env(safe-area-inset-top)) 12px 8px 20px; }
.lb-count { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; color: rgba(255, 255, 255, 0.72); }
.lb-btn {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; padding: 0;
  border: 0; background: rgba(255, 255, 255, 0.1); color: #fff; cursor: pointer;
  transition: background-color .2s ease, transform .2s ease, opacity .2s ease;
}
.lb-btn .i { width: 20px; height: 20px; }
.lb-btn:active { transform: scale(.94); }
.lb-close { background: #fff; color: var(--ink); }
@media (hover: hover) {
  .lb-btn:hover { background: rgba(255, 255, 255, 0.2); }
  .lb-close:hover { background: #fff; transform: rotate(90deg); }
}
.lightbox :focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

.lb-stage {
  position: relative; display: grid; place-items: center; overflow: hidden; min-height: 0;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: zoom-in;
}
.lightbox.is-zoomed .lb-stage { cursor: grab; }
.lb-stage.is-grabbing { cursor: grabbing; }
.lb-media {
  position: relative; opacity: 0; transform-origin: center; will-change: transform;
  border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.lb-media.is-in { opacity: 1; transition: opacity .28s ease; }
.lb-media.is-anim { transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.lb-media.is-in.is-anim { transition: opacity .28s ease, transform .32s cubic-bezier(.2, .8, .2, 1); }
.lb-media img, .lb-media video { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; -webkit-user-drag: none; }
.lb-media [hidden] { display: none; }
.lb-spinner {
  position: absolute; left: 50%; top: 50%; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; pointer-events: none;
  border: 3px solid rgba(255, 255, 255, 0.18); border-top-color: var(--accent-2);
  opacity: 0; transition: opacity .2s ease; animation: spin .8s linear infinite;
}
.lightbox.is-loading .lb-spinner { opacity: 1; transition-delay: .15s; }
@keyframes spin { to { transform: rotate(360deg); } }

.lb-bottom { padding: 10px 16px max(14px, env(safe-area-inset-bottom)); text-align: center; }
.lb-cap { max-width: 62ch; margin: 0 auto 12px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.86); }
.lb-cap:empty { display: none; }
.lb-bar { display: flex; align-items: center; justify-content: center; gap: 12px; }
.lightbox.is-single [data-lightbox-prev], .lightbox.is-single [data-lightbox-next] { visibility: hidden; }
.lb-zoom { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.08); }
.lb-zoom .lb-btn { width: 42px; height: 42px; background: transparent; }
.lb-level {
  min-width: 66px; height: 42px; padding: 0 6px; border: 0; border-radius: 21px; background: none; color: #fff; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 13.5px; font-variant-numeric: tabular-nums;
}
.lb-btn .i-play, .lb-btn.is-paused .i-pause { display: none; }
.lb-btn.is-paused .i-play { display: block; }
.lb-hint { margin-top: 10px; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, 0.55); transition: opacity .3s ease; }
.lightbox.is-zoomed .lb-hint { opacity: 0; }
/* Mobitel položen: što više mjesta za sliku */
@media (max-height: 520px) {
  .lb-top { padding-top: 6px; padding-bottom: 4px; }
  .lb-cap, .lb-hint { display: none; }
  .lb-bottom { padding-top: 6px; padding-bottom: max(8px, env(safe-area-inset-bottom)); }
}

/* ---------- Veći ekrani ---------- */
@media (min-width: 600px) {
  .hero-actions { flex-direction: row; flex-wrap: wrap; justify-content: center; max-width: none; }
}
@media (min-width: 768px) {
  :root { --gutter: 28px; --section-y: 96px; }
  .brand-mark { width: 44px; height: 44px; }
  .brand-word { height: 22px; }
  .hero { padding: 110px 0 56px; }
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .hero-copy { align-items: flex-start; text-align: left; }
  /* „Za HVAC poduzeća" ostaje u jednom redu pored dashboarda */
  .hero-copy h1 { font-size: clamp(40px, 3.8vw, 56px); }
  .hero-actions, .proof, .hero-trust { justify-content: flex-start; }
  .hero-visual { display: block; position: relative; padding: 0 0 28px; }
  .dash-hero { padding: 24px; box-shadow: var(--shadow-lg); }
  .hero { padding: 160px 0 96px; }
}
@media (min-width: 1300px) {
  :root { --section-y: 112px; }
}

/* Samo za čitače ekrana */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* =========================================================
   Pokret
   ========================================================= */

/* Reveal kod skrolanja (samo kad main.js radi i nema reduced motion) */
.reveal-ready .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal-ready .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

