/* IncognitoHR – bez JavaScripta, bez vanjskih resursa */

@font-face {
  font-family: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("fonts/schibsted-grotesk-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: "Schibsted Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 400 900;
  src: url("fonts/schibsted-grotesk-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 {
  --paper: #F2F4F6;
  --surface: #FFFFFF;
  --ink: #18202C;
  --muted: #586271;
  --line: #D3D9E0;
  --token-bg: #E3EAFC;
  --token: #2456D6;
  --bar: #2456D6;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --wrap: 72rem;
  color-scheme: light;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #10151C;
    --surface: #18202A;
    --ink: #E5E9EF;
    --muted: #98A2B0;
    --line: #2A3340;
    --token-bg: #1E2F5E;
    --token: #A9C0FF;
    --bar: #3F6FF0;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: inherit; }
html { scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
}
img { max-width: 100%; height: auto; }
a { color: var(--token); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--token); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.015em; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; border-radius: 6px; z-index: 20;
}
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 1rem); }

/* ---------- Zaglavlje ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10;
  display: flex; align-items: center; gap: 2rem;
  padding: .9rem max(1.5rem, calc((100% - var(--wrap)) / 2 + 1.5rem));
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--paper);
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { display: block; height: 1.8rem; width: auto; }
.top nav { margin-left: auto; min-width: 0; }
.top ul {
  display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0;
  overflow-x: auto; scrollbar-width: none;
}
.top nav a {
  display: block; white-space: nowrap;
  padding: .45rem .8rem; border-radius: 6px;
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.top nav a:hover { color: var(--ink); background: var(--surface); }

/* Aktivna kartica, bez JavaScripta */
body:not(:has(.tab:target)) a[data-tab="pregled"],
body:has(#pregled:target) a[data-tab="pregled"],
body:has(#instalacija:target) a[data-tab="instalacija"],
body:has(#licenciranje:target) a[data-tab="licenciranje"],
body:has(#koristenje:target) a[data-tab="koristenje"],
body:has(#politike:target) a[data-tab="politike"],
body:has(#o-nama:target) a[data-tab="o-nama"] {
  color: var(--ink); background: var(--surface);
  box-shadow: inset 0 -2px 0 var(--ink);
}

/* ---------- Kartice: :target ---------- */
main { max-width: var(--wrap); margin: 0 auto; padding: 0 1.5rem; }
.tab { display: none; padding: 3.5rem 0 4rem; }
.tab:target,
main:not(:has(.tab:target)) #pregled { display: block; }

/* ---------- Pregled: hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 3.5rem; align-items: center;
  padding-bottom: 4rem; border-bottom: 1px solid var(--line);
}
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
  max-width: 13ch; margin-bottom: 1.5rem;
}
.lead { font-size: 1.22rem; line-height: 1.55; color: var(--muted); max-width: 36rem; }
.hero-links { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn {
  display: inline-block; padding: .75rem 1.25rem; border-radius: 8px;
  background: var(--ink); color: var(--paper);
  font-weight: 600; text-decoration: none;
}
.btn:hover { background: #2456D6; color: #fff; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: transparent; }

/* Zapis koji se anonimizira */
.record {
  margin: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 1.25rem 1.5rem 1rem;
}
.record figcaption { font-size: .9rem; color: var(--muted); margin-bottom: .5rem; }
.record dl { margin: 0; }
.row {
  display: grid; grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: 1rem; align-items: baseline;
  padding: .7rem 0; border-top: 1px solid var(--line);
}
.row dt { color: var(--muted); font-size: .92rem; }
.row dd {
  margin: 0; display: flex; justify-content: space-between; align-items: baseline;
  gap: .75rem; flex-wrap: wrap; font-weight: 600;
}
.cell { position: relative; display: inline-grid; }
.cell > span { grid-area: 1 / 1; white-space: nowrap; }
.tok { background: var(--token-bg); color: var(--token); padding: 0 .4em; border-radius: 4px; margin-left: -.4em; }
.gone .p { color: var(--muted); font-weight: 500; text-decoration: line-through; text-decoration-thickness: 1px; }
.rule { font-size: .82rem; font-weight: 500; color: var(--muted); }

.row:nth-child(1) { --d: .7s; }
.row:nth-child(2) { --d: 1.4s; }
.row:nth-child(3) { --d: 2.1s; }
.row:nth-child(4) { --d: 2.8s; }
.row:nth-child(5) { --d: 3.5s; }

.row:not(.keep) .p,
.row:not(.keep) .rule { opacity: 0; animation: appear .2s ease-out forwards; animation-delay: calc(var(--d) + .45s); }
.row:not(.keep) .o { animation: vanish .01s linear forwards; animation-delay: calc(var(--d) + .45s); }
.row:not(.keep) .cell::after {
  content: ""; position: absolute; inset: .1em -.25em;
  background: var(--bar); border-radius: 2px;
  transform: scaleX(0); transform-origin: left center;
  animation: redact .9s cubic-bezier(.6, 0, .3, 1) forwards;
  animation-delay: var(--d);
}
.keep .rule { opacity: 0; animation: appear .3s ease-out 4.4s forwards; }

@keyframes redact {
  0%   { transform: scaleX(0); transform-origin: left center; }
  45%  { transform: scaleX(1); transform-origin: left center; }
  55%  { transform: scaleX(1); transform-origin: right center; }
  100% { transform: scaleX(0); transform-origin: right center; }
}
@keyframes appear { to { opacity: 1; } }
@keyframes vanish { to { opacity: 0; visibility: hidden; } }

@media (prefers-reduced-motion: reduce) {
  .row .cell::after { display: none; }
  .row .o { animation: none; opacity: 0; visibility: hidden; }
  .row .p, .row .rule { animation: none; opacity: 1; }
  .keep .rule { animation: none; opacity: 1; }
}

/* Mogućnosti */
.features { padding: 4rem 0; border-bottom: 1px solid var(--line); }
.features h2, .path h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 2rem; }
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; }
.feat h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: .5rem; }
.feat p { color: var(--muted); max-width: 32rem; margin: 0; }

/* Put do rezultata */
.path { padding-top: 4rem; }
.path-list {
  list-style: none; margin: 0; padding: 0; counter-reset: p;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
}
.path-list li { counter-increment: p; }
.path-list a {
  display: block; height: 100%; padding: 1.25rem 1.4rem;
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--ink); text-decoration: none; background: var(--surface);
}
.path-list a::before {
  content: counter(p); display: block;
  font-size: 2.2rem; font-weight: 800; line-height: 1; margin-bottom: .9rem; color: var(--line);
}
.path-list a:hover { border-color: var(--ink); }
.path-list a:hover::before { color: var(--token); }
.path-list strong { display: block; font-size: 1.1rem; }
.path-list span { color: var(--muted); font-size: .95rem; }

/* ---------- Upute korak po korak ---------- */
.guide { display: none; }
.guide:target { display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: 4rem; align-items: start; }
.guide-head { position: sticky; top: 6rem; }
.guide-head h2, .plain-head h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 800; letter-spacing: -.03em; margin-bottom: .75rem; }
.guide-head > p { color: var(--muted); }
.facts { margin: 1.75rem 0 0; border-top: 1px solid var(--line); }
.facts div { padding: .65rem 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: .85rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps > li {
  counter-increment: s; position: relative;
  padding: 0 0 2.5rem 4.25rem; max-width: 42rem;
}
.steps > li::before {
  content: counter(s);
  position: absolute; left: 0; top: -.15rem;
  width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--ink);
  font-weight: 700; font-size: 1.05rem;
}
.steps > li:not(:last-child)::after {
  content: ""; position: absolute; left: 1.3rem; top: 2.6rem; bottom: .15rem;
  width: 1.5px; background: var(--line); transform: translateX(-50%);
}
.steps h3 { font-size: 1.25rem; font-weight: 700; margin: .25rem 0 .6rem; }
.steps p { color: var(--muted); }
.steps p:last-child { margin-bottom: 0; }
.ui {
  color: var(--ink); font-weight: 600;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; padding: .05em .35em; white-space: nowrap;
}
.code {
  margin: 0 0 1rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--surface); overflow-x: auto;
}
.code-label { margin: 0; padding: .45rem .9rem; font-size: .82rem; color: var(--muted); border-bottom: 1px solid var(--line); }
.code pre { margin: 0; padding: .8rem .9rem; }
.code code { font-family: var(--mono); font-size: .9rem; color: var(--ink); }
.rules { margin: 0 0 1rem; display: grid; gap: .5rem; }
.rules div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; }
.rules dt { font-weight: 700; }
.rules dd { margin: 0; color: var(--muted); }
.next { margin-top: 1.25rem; }
.next a { font-weight: 600; }

/* ---------- Politike i O nama ---------- */
.plain-head { margin-bottom: 2.5rem; }
.plain-head p { color: var(--muted); }
.policies { max-width: 46rem; border-top: 1px solid var(--line); }
.policies details { border-bottom: 1px solid var(--line); }
.policies summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.2rem 0; font-size: 1.2rem; font-weight: 700;
}
.policies summary::-webkit-details-marker { display: none; }
.policies summary::after {
  content: ""; flex: none; width: .65rem; height: .65rem;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-25%);
  transition: transform .2s;
}
.policies details[open] > summary::after { transform: rotate(-135deg) translateY(-25%); }
.policy-body { padding: 0 0 1.4rem; color: var(--muted); }

.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.about-text { max-width: 38rem; }
.about-text .lead { color: var(--ink); }
.about-text h3 { font-size: 1.15rem; margin: 2rem 0 .6rem; }
.company {
  margin: 0; background: var(--surface);
  border: 1px solid var(--line); border-radius: 12px; padding: .5rem 1.5rem;
}
.company div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--line); }
.company div:last-child { border-bottom: 0; }
.company dt { color: var(--muted); font-size: .92rem; }
.company dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }

/* ---------- Podnožje ---------- */
.foot {
  width: min(calc(100% - 3rem), calc(var(--wrap) - 3rem)); margin: 0 auto; padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  font-size: .9rem; color: var(--muted);
}
.foot p { margin: 0; }

/* ---------- Mobilno ---------- */
@media (max-width: 860px) {
  .top { flex-wrap: wrap; gap: .5rem; padding: .75rem 1rem .5rem; }
  .top nav { margin-left: 0; width: 100%; }
  .top ul { margin: 0 -1rem; padding: 0 1rem; }
  html { scroll-padding-top: 7rem; }
  main { padding: 0 1rem; }
  .foot { width: calc(100% - 2rem); }
  .tab { padding-top: 2.5rem; }
  .hero, .about { grid-template-columns: 1fr; gap: 2.5rem; }
  .feat-grid { grid-template-columns: 1fr; gap: 2rem; }
  .path-list { grid-template-columns: 1fr; }
  .guide:target { grid-template-columns: 1fr; gap: 2rem; }
  .guide-head { position: static; }
  .steps > li { padding-left: 3.5rem; }
}
@media (max-width: 480px) {
  .row { grid-template-columns: 1fr; gap: .15rem; }
  .rules div, .company div { grid-template-columns: 1fr; gap: 0; }
}

@media print {
  .top nav, .hero-links, .skip { display: none; }
  .tab, .guide { display: block !important; break-before: page; }
  .guide-head { position: static; }
}

/* 404 */
.notfound { padding: 6rem 1.5rem; }
.notfound h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 1rem; }
.notfound p { color: var(--muted); }
.steps li > :last-child { margin-bottom: 0; }

/* ================= Jedna stranica (bez kartica) ================= */
main.single { padding-top: 3.5rem; }
section[id], aside.docs { scroll-margin-top: 5rem; }
.features { padding: 4rem 0; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3.5rem; }
.shots figure, .ishot { margin: 0; }
.shots img { display: block; width: 100%; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 24px rgba(16, 24, 40, .08); }
.shots figcaption { color: var(--muted); font-size: .92rem; margin-top: .7rem; }

.inst { padding: 4rem 0; border-bottom: 1px solid var(--line); }
.inst h2, .lic h2 { font-size: 1.75rem; font-weight: 700; margin-bottom: 1rem; }
.inst > .lead { margin-bottom: 1.75rem; }
.reqs { margin: 0 0 3rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.reqs div { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 1.1rem; }
.reqs dt { font-size: .85rem; color: var(--muted); }
.reqs dd { margin: .2rem 0 0; font-weight: 600; }
.isteps { list-style: none; margin: 0; padding: 0; counter-reset: is; }
.istep { counter-increment: is; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 2.5rem; align-items: center; padding: 2rem 0; border-top: 1px solid var(--line); }
.istep.noimg { grid-template-columns: minmax(0, 1fr); }
.itext { position: relative; padding-left: 3.6rem; max-width: 34rem; }
.itext::before {
  content: counter(is); position: absolute; left: 0; top: -.1rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--ink); font-weight: 700;
}
.itext h3 { font-size: 1.25rem; font-weight: 700; margin: .3rem 0 .6rem; }
.itext p { color: var(--muted); }
.itext p:last-child { margin-bottom: 0; }
.itext .note { color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--token); border-radius: 8px; padding: .75rem 1rem; font-size: .95rem; }
.ishot img { display: block; width: 100%; max-width: 520px; margin-left: auto; }
.fine { color: var(--muted); font-size: .85rem; margin: 1rem 0 0; }

.lic { padding: 4rem 0; border-bottom: 1px solid var(--line); }
.lic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 3rem; }
.lic-grid p { color: var(--muted); margin: 0; }

.docs {
  margin: 4rem 0; padding: 2rem 2.25rem; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; flex-wrap: wrap;
}
.docs h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.docs p { color: var(--muted); margin: 0; max-width: 46rem; }
.docs .btn { flex: none; }

/* ---------- Podnožje s podacima o tvrtki i politikama ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); }
.foot-grid {
  max-width: var(--wrap); margin: 0 auto; padding: 3rem 1.5rem 2rem;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem;
  font-size: .92rem;
}
.foot-about p { color: var(--muted); }
.foot-logo { display: block; height: 1.5rem; width: auto; margin-bottom: 1rem; }
.dark-only { display: none !important; }
@media (prefers-color-scheme: dark) { .dark-only { display: block !important; } .light-only { display: none !important; } }
.site-foot .company { background: transparent; border: 0; border-radius: 0; padding: 0; }
.site-foot .company div { grid-template-columns: 8rem minmax(0, 1fr); padding: .45rem 0; }
.site-foot .company dd { font-weight: 500; }
.foot-pol h2 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.foot-pol details { border-bottom: 1px solid var(--line); }
.foot-pol summary { cursor: pointer; padding: .55rem 0; font-weight: 600; }
.foot-pol .policy-body { padding: 0 0 .8rem; color: var(--muted); }
.foot-pol .policy-body p { margin: 0 0 .6em; }
.foot-bottom {
  max-width: var(--wrap); margin: 0 auto; padding: 1.2rem 1.5rem 2rem; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; font-size: .85rem; color: var(--muted);
}
.foot-bottom p { margin: 0; }

@media (max-width: 860px) {
  main.single { padding-top: 2rem; }
  .ui { white-space: normal; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
  .shots, .reqs, .lic-grid { grid-template-columns: 1fr; }
  .istep { grid-template-columns: 1fr; gap: 1.25rem; }
  .ishot img { margin: 0 auto; }
  .foot-grid { grid-template-columns: 1fr; padding: 2.5rem 1rem 1.5rem; }
  .foot-bottom { padding: 1rem 1rem 1.5rem; }
  .docs { padding: 1.5rem; }
}
@media (max-width: 480px) { .site-foot .company div { grid-template-columns: 1fr; gap: 0; } }
@media print { .top nav { display: none; } }

/* ================= Lijevi izbornik sa sadržajem stranice ================= */
.layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); align-items: start; }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto;
  padding: 1.75rem 1.25rem; border-right: 1px solid var(--line); background: var(--paper);
  display: flex; flex-direction: column; gap: 2rem;
}
.sidebar .brand img { display: block; height: 1.7rem; width: auto; }
.sidebar ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .15rem; }
.sidebar nav a {
  display: block; padding: .5rem .8rem; border-radius: 6px; border-left: 3px solid transparent;
  color: var(--muted); text-decoration: none; font-weight: 500;
}
.sidebar nav a:hover { color: var(--ink); background: var(--surface); }
.side-pdf { margin: auto 0 0; font-size: .9rem; }
.content { min-width: 0; }
.content main.single { max-width: calc(var(--wrap) - 6rem); padding-left: 2.5rem; padding-right: 2.5rem; }
.content .foot-grid, .content .foot-bottom { max-width: calc(var(--wrap) - 6rem); padding-left: 2.5rem; padding-right: 2.5rem; margin: 0; }

/* Oznaka trenutnog dijela stranice – bez JavaScripta (CSS scroll-driven animations;
   preglednici bez podrške jednostavno ne označavaju) */
body { timeline-scope: --t-kako, --t-inst, --t-lic, --t-upute; }
#kako-radi { view-timeline: --t-kako block; }
#instalacija { view-timeline: --t-inst block; }
#licenca { view-timeline: --t-lic block; }
#upute { view-timeline: --t-upute block; }
@keyframes nav-on {
  from, to { color: var(--ink); background: var(--surface); border-left-color: var(--token); }
}
@keyframes nav-off {
  from, to { color: var(--muted); background: transparent; border-left-color: transparent; border-bottom-color: transparent; }
}
/* Poveznica je označena od trenutka kad vrh njezina dijela prijeđe 40 % visine prozora,
   dok isto ne učini sljedeći dio (druga animacija ju gasi). */
@supports (animation-timeline: view()) {
  .sidebar nav a { animation: nav-on 1ms linear none, nav-off 1ms linear none; }
  .sidebar nav a.nav-kako { animation-timeline: --t-kako, --t-inst; animation-range: cover 60vh cover 100%, cover 60vh cover 100%; }
  .sidebar nav a.nav-inst { animation-timeline: --t-inst, --t-lic; animation-range: cover 60vh cover 100%, cover 60vh cover 100%; }
  .sidebar nav a.nav-lic { animation-timeline: --t-lic, --t-upute; animation-range: cover 60vh cover 100%, cover 60vh cover 100%; }
  .sidebar nav a.nav-upute { animation: nav-on 1ms linear none; animation-timeline: --t-upute; animation-range: cover 60vh cover 100%; }
}
.docs { scroll-margin-top: 2rem; }
section[id], #kontakt { scroll-margin-top: 1rem; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: sticky; top: 0; z-index: 10; height: auto; flex-direction: column; gap: .5rem;
    padding: .75rem 1rem .5rem; border-right: 0; border-bottom: 1px solid var(--line);
  }
  .sidebar ul { flex-direction: row; overflow-x: auto; scrollbar-width: none; margin: 0 -1rem; padding: 0 1rem; }
  .sidebar nav a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; border-radius: 6px 6px 0 0; padding: .4rem .7rem; }
  @keyframes nav-on-m { from, to { color: var(--ink); background: var(--surface); border-bottom-color: var(--token); } }
  @supports (animation-timeline: view()) {
    .sidebar nav a { animation-name: nav-on-m, nav-off; }
    .sidebar nav a.nav-upute { animation-name: nav-on-m; }
  }
  .side-pdf { display: none; }
  .content main.single, .content .foot-grid, .content .foot-bottom { padding-left: 1rem; padding-right: 1rem; }
  section[id], #kontakt, .docs { scroll-margin-top: 7rem; }
}
.row.keep .cell > span { white-space: normal; }

/* ================= Podnožje: teme red po red ================= */
.site-foot { border-top: 1px solid var(--line); background: var(--surface); padding: 1rem 2.5rem 0; font-size: .95rem; }
.frow { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 1rem 2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); max-width: calc(var(--wrap) - 6rem); }
.flabel { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: .2rem 0 0; }
.fbody p { margin: 0; color: var(--ink); max-width: 52rem; }
.finline { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .9rem 2.5rem; }
.finline li, .fdl div { display: flex; flex-direction: column; gap: .1rem; }
.finline li span, .fdl dt { font-size: .8rem; color: var(--muted); }
.finline a { font-weight: 600; }
.fdl dd { margin: 0; font-weight: 600; }
.fname { font-weight: 700; margin-bottom: .8rem !important; }
.fpol { position: relative; display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; }
.fpol details { border: 0; }
.fpol summary { cursor: pointer; list-style: none; padding: .2rem 0; font-weight: 600; color: var(--token); text-decoration: underline; text-underline-offset: .18em; }
.fpol summary::-webkit-details-marker { display: none; }
.fpol details[open] > summary { color: var(--ink); text-decoration: none; box-shadow: inset 0 -2px 0 var(--token); }
.fpol .policy-body {
  position: absolute; left: 0; right: 0; top: calc(100% + .75rem); z-index: 5; max-width: 52rem;
  padding: 1rem 1.25rem .4rem; background: var(--paper); border: 1px solid var(--line); border-left: 4px solid var(--token);
  border-radius: 8px; box-shadow: 0 10px 28px rgba(16, 24, 40, .12); color: var(--muted);
}
.fpol .policy-body p { margin: 0 0 .6em; color: var(--muted); }
.fbottom { display: flex; flex-direction: column; gap: .35rem; padding: 1.2rem 0 2rem; font-size: .85rem; color: var(--muted); max-width: calc(var(--wrap) - 6rem); }
.fbottom p { margin: 0; }
@media (max-width: 860px) {
  .site-foot { padding: .5rem 1rem 0; }
  .frow { grid-template-columns: 1fr; gap: .6rem; }
}
.fcompany { color: var(--ink); line-height: 1.6; max-width: 60rem; }
#politike { position: relative; z-index: 4; }

/* ================= 1.4.23: novi tekstovi, tablica primjera, hodogram instalacije ================= */
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--token); margin: 0 0 .6rem; }
.tagline { font-weight: 700; color: var(--ink); }
.hero .lead { margin-bottom: .8em; }
.hero .tagline { font-size: 1.15rem; margin: 1.4rem 0 0; }
.hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 2.5rem; border-bottom: 0; }
.hero h1 { max-width: 16ch; }
.hero-text { max-width: 44rem; }
.sec-lead { margin-bottom: 1rem; }
.sec-text { color: var(--muted); max-width: 44rem; }
.features h2, .inst h2, .lic h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .9rem; }
.features .sec-lead { margin-bottom: 2.5rem; }

/* primjer: isječak iz presude (tablica s četiri stupca) */
.record { padding: 1.1rem 1.25rem .6rem; margin-bottom: 4rem; }
.record figcaption { margin-bottom: .6rem; font-weight: 600; color: var(--ink); font-size: 1rem; }
.rec-scroll { overflow-x: auto; }
.record table { width: 100%; border-collapse: collapse; font-size: .98rem; min-width: 34rem; }
.record th, .record td { text-align: left; padding: .65rem .75rem .65rem 0; border-top: 1px solid var(--line); vertical-align: baseline; }
.record thead th { border-top: 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: .2rem; }
.record tbody th { font-weight: 500; color: var(--muted); white-space: nowrap; }
.record tbody td:nth-child(2) { font-weight: 600; }
.record tbody td:nth-child(4) { color: var(--muted); font-size: .9rem; }
.record tbody td:nth-child(3) { white-space: nowrap; }
.record .tok { margin-left: 0; font-weight: 600; }
.record tr.keep td:nth-child(3) { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .record tbody .tok { opacity: 0; animation: appear .35s ease-out forwards; }
  .record tbody tr:nth-child(1) .tok { animation-delay: .5s; }
  .record tbody tr:nth-child(2) .tok { animation-delay: .9s; }
  .record tbody tr:nth-child(3) .tok { animation-delay: 1.3s; }
  .record tbody tr:nth-child(4) .tok { animation-delay: 1.7s; }
  .record tbody tr:nth-child(5) .tok { animation-delay: 2.1s; }
}

/* mogućnosti: kartice */
.feat-grid { gap: 1.25rem; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem 1.6rem 1.3rem; display: flex; flex-direction: column; }
.feat h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: .75rem; }
.feat p { max-width: none; margin: 0 0 .7em; }
.feat .tagline { margin: auto 0 0; padding-top: .6rem; color: var(--token); font-size: .98rem; }

/* instalacija: hodogram */
.inst > .sec-text { margin-bottom: 2.25rem; }
.hod { list-style: none; margin: 0; padding: 0; counter-reset: h; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.6rem; }
.hstep { counter-increment: h; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1rem 1.1rem; display: flex; flex-direction: column; }
.hstep:not(:last-child)::after {
  content: ""; position: absolute; right: -1.25rem; top: 50%; width: .6rem; height: .6rem;
  border-top: 2px solid var(--token); border-right: 2px solid var(--token); transform: translateY(-50%) rotate(45deg);
}
.hstep h3 { display: flex; gap: .55rem; align-items: flex-start; font-size: 1rem; line-height: 1.25; min-height: 2.6em; margin-bottom: .6rem; }
.hstep h3::before {
  content: counter(h); flex: none; width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--token); color: #fff; font-size: .95rem; font-weight: 800; margin-top: -.15rem;
}
.lap { display: block; width: 100%; max-width: 150px; height: auto; margin: .2rem auto .8rem; }
.lap .scr { fill: var(--paper); stroke: var(--ink); stroke-width: 2.2; }
.lap .base { fill: var(--line); stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.lap .acc { fill: var(--token); }
.lap .ok { fill: #1f9d55; }
.lap .w { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lap rect.w { fill: #fff; stroke: none; }
.lap .w2 { fill: #fff; opacity: .85; }
.lap .ln { fill: var(--token-bg); }
.lap .ln2 { fill: var(--line); }
.lap .track { fill: var(--line); }
.lap .ico { fill: var(--token-bg); stroke: var(--token); stroke-width: 2; stroke-linejoin: round; }
.lap .ico2 { fill: none; stroke: var(--token); stroke-width: 2; stroke-linejoin: round; }
.lap .logo { fill: var(--token); }
.lap .cur { fill: var(--ink); stroke: var(--surface); stroke-width: 1.2; stroke-linejoin: round; }
@media (prefers-reduced-motion: no-preference) {
  .lap .bar { animation: bar 3.2s ease-in-out infinite alternate; }
  @keyframes bar { from { width: 10px; } to { width: 68px; } }
}
.hstep p { color: var(--muted); font-size: .92rem; line-height: 1.5; margin: 0; text-align: center; }
.hstep .ui { font-size: .88rem; }
.hod-bar { display: grid; grid-template-columns: 1fr 1fr; margin-top: 1.6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.hod-bar p { display: flex; gap: .9rem; align-items: center; margin: 0; padding: 1rem 1.4rem; color: var(--muted); }
.hod-bar p + p { border-left: 1px solid var(--line); }
.hod-bar b { color: var(--ink); display: block; }
.hod-bar svg { flex: none; width: 2.2rem; height: 2.2rem; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hb-time svg { stroke: var(--token); }
.hb-go svg { stroke: #1f9d55; }
.hod-cta { margin: 1.75rem 0 0; }
.inst-more { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.inst-more .reqs { margin-bottom: 1.5rem; }
.good { margin: 0; padding-left: 1.2rem; color: var(--muted); display: grid; gap: .4rem; max-width: 52rem; }

/* licenca */
.lic-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; margin-top: 1rem; }
.lic-grid p { margin: 0 0 .9em; }
.lic-grid .tagline { color: var(--ink); }
.lic-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--token); border-radius: 10px; padding: 1.2rem 1.4rem; }
.lic-card h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.lic-card p { margin: 0; }
.lic-tag { margin: 1rem 0 0; color: var(--token); font-size: 1.05rem; }

/* upute */
.docs { align-items: flex-end; }
.docs > div { max-width: 46rem; }
.docs p { margin: 0 0 .8em; }
.docs .lead { color: var(--muted); }
.docs .tagline { color: var(--ink); margin: 0; }

/* podnožje */
.fpol-link { padding: .2rem 0; font-weight: 600; }

/* stranica s uvjetima korištenja */
.doc-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem max(1rem, calc((100% - 46rem) / 2)); border-bottom: 1px solid var(--line); }
.doc-top .brand img { height: 1.6rem; width: auto; display: block; }
.doc { max-width: 46rem; margin: 0 auto; padding: 2.5rem 1rem 4rem; }
.doc h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: .5rem; }
.doc .ver { color: var(--muted); margin-bottom: 2rem; }
.doc h2 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 .6rem; }
.doc p { color: var(--ink); }
.doc-pdf { margin-top: 2.5rem; }

@media (max-width: 1100px) {
  .hod { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hstep:nth-child(3)::after { display: none; }
}
@media (max-width: 860px) {
  .hod { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .hstep::after { display: none; }
  .hod-bar { grid-template-columns: 1fr; }
  .hod-bar p + p { border-left: 0; border-top: 1px solid var(--line); }
  .lic-grid { grid-template-columns: 1fr; }
  .feat-grid { gap: 1rem; }
}
@media (max-width: 480px) {
  .hod { grid-template-columns: 1fr; }
  .record { padding: 1rem .9rem .5rem; }
}
.hero h1 { max-width: none; }
.hero h1 span { display: block; }
.hstep h3::before { color: var(--surface); }
@media (max-width: 600px) {
  .record table { min-width: 0; }
  .record thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .record tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .1rem .75rem; padding: .65rem 0; border-top: 1px solid var(--line); }
  .record tbody th, .record tbody td { border: 0; padding: 0; }
  .record tbody th { grid-column: 1 / -1; font-size: .82rem; }
  .record tbody td:nth-child(2) { grid-column: 1; }
  .record tbody td:nth-child(3) { grid-column: 2; grid-row: 2; text-align: right; }
  .record tbody td:nth-child(4) { grid-column: 1 / -1; font-size: .82rem; }
}
