/* Solar Invoice · landing. Tokeni prate aplikaciju (apps/web/src/styles/01-tokens.css). */
:root {
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --navy: #04204d;
  --navy-2: #0a2f6b;
  --navy-3: #0d2a5c;
  --sun: #f9a402;
  --sun-2: #ffc65c;
  --r: 12px;
  --r-lg: 20px;
  --wrap: 1180px;
  --gut: 20px;

  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #eef2f8;
  --surface: #ffffff;
  --surface-2: #f5f8fc;
  --inset: #e4eaf3;
  --line: #d7dfea;
  --ink: #0b1f3f;
  --ink-2: #46566f;
  --accent: #0f4c9c;
  --sun-ink: #9a5200;
  --sun-soft: #fff3d6;
  --ok: #17684a;
  --ok-soft: #e2f2ea;
  --warn: #8a5200;
  --warn-soft: #fff3d6;
  --err: #a02828;
  --err-soft: #f9e9e8;
  --c-bar: #1d5db5;
  --elev: 0 1px 2px rgba(4, 32, 77, 0.05), 0 12px 32px rgba(4, 32, 77, 0.08);
  --elev-2: 0 2px 4px rgba(4, 32, 77, 0.06), 0 24px 60px rgba(4, 32, 77, 0.14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #071325;
    --bg-alt: #0a1a33;
    --surface: #0d1d36;
    --surface-2: #13284a;
    --inset: #050e1c;
    --line: #24395b;
    --ink: #eaf0f8;
    --ink-2: #aebbd0;
    --accent: #fbc15a;
    --sun-ink: #fbc15a;
    --sun-soft: #33280f;
    --ok: #8fd0b1;
    --ok-soft: #12332a;
    --warn: #fbc15a;
    --warn-soft: #33280f;
    --err: #f2a9a4;
    --err-soft: #3a2022;
    --c-bar: #4a88d4;
    --elev: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.3);
    --elev-2: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #071325;
  --bg-alt: #0a1a33;
  --surface: #0d1d36;
  --surface-2: #13284a;
  --inset: #050e1c;
  --line: #24395b;
  --ink: #eaf0f8;
  --ink-2: #aebbd0;
  --accent: #fbc15a;
  --sun-ink: #fbc15a;
  --sun-soft: #33280f;
  --ok: #8fd0b1;
  --ok-soft: #12332a;
  --warn: #fbc15a;
  --warn-soft: #33280f;
  --err: #f2a9a4;
  --err-soft: #3a2022;
  --c-bar: #4a88d4;
  --elev: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 32px rgba(0, 0, 0, 0.3);
  --elev-2: 0 2px 4px rgba(0, 0, 0, 0.4), 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ---------- Osnova ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 19px/1.4 var(--font);
  -webkit-font-smoothing: antialiased;
}
img,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gut);
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  padding: 10px 16px;
  background: var(--sun);
  color: var(--navy);
  font-weight: 700;
  border-radius: 8px;
}
.skip:focus {
  top: 12px;
}
.kicker {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun-ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

/* ---------- Tipke ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    border-color 0.15s,
    transform 0.15s;
}
.btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.btn.sun {
  background: var(--sun);
  color: var(--navy);
  box-shadow: 0 8px 24px rgba(249, 164, 2, 0.28);
}
.btn.sun:hover {
  background: #ffb92e;
}
.btn.sun:active {
  transform: translateY(1px);
}
.btn.ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}
.btn.lg {
  min-height: 60px;
  padding: 0 30px;
  font-size: 20px;
  border-radius: 14px;
}
.btn.sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 17px;
}

/* ---------- Zaglavlje ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(4, 32, 77, 0.92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}
.logo img {
  height: 48px;
  width: auto;
}
.nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  color: #dbe4f2;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.top-act {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.theme-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: none;
  color: #fff;
  cursor: pointer;
}
.theme-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}
.theme-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}
.theme-btn .i-moon {
  display: none;
}
:root[data-theme="dark"] .theme-btn .i-sun {
  display: none;
}
:root[data-theme="dark"] .theme-btn .i-moon {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .i-sun {
    display: none;
  }
  :root:not([data-theme="light"]) .theme-btn .i-moon {
    display: block;
  }
}
.nav a {
  white-space: nowrap;
}
.menu-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: none;
  color: #fff;
  cursor: pointer;
}
.menu-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
@media (max-width: 899px) {
  /* Izbornik kao padajući panel ispod zaglavlja */
  .nav.open {
    display: grid;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    gap: 2px;
    padding: 10px var(--gut) 16px;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  }
  .nav.open a {
    padding: 12px;
    font-size: 18px;
  }
}
@media (min-width: 900px) {
  .nav {
    display: flex;
    align-items: center;
  }
  .nav + .top-act {
    margin-left: 8px;
  }
  .menu-btn {
    display: none;
  }
}

.nav-theme {
  display: none;
}
@media (max-width: 559px) {
  /* Na mobitelu: logo, izbornik i Prijava; tema je u izborniku. */
  .top-in {
    gap: 12px;
  }
  .top-act {
    gap: 8px;
  }
  .logo img {
    height: 34px;
  }
  .top-act .theme-btn {
    display: none;
  }
  .top-act .btn.sm {
    padding: 0 16px;
    font-size: 16px;
  }
  .nav.open .nav-theme {
    display: block;
    margin-top: 6px;
    padding: 12px;
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    background: none;
    color: #dbe4f2;
    font: inherit;
    font-size: 18px;
    text-align: left;
    cursor: pointer;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(60% 70% at 85% 10%, rgba(249, 164, 2, 0.2), transparent 60%),
    radial-gradient(70% 60% at 0% 100%, rgba(29, 93, 181, 0.35), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #062a62 100%);
}
.hero::after {
  /* tiha mreža ćelija u pozadini */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%);
  mask-image: linear-gradient(180deg, #000, transparent 85%);
  pointer-events: none;
}
.hero-in {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 24px;
  padding-top: 40px;
  padding-bottom: 64px;
}
.hero .kicker {
  color: var(--sun-2);
}
.hero h1 {
  font-size: clamp(38px, 6.2vw, 62px);
  font-weight: 800;
  line-height: 1.02;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ffc65c, #f9a402);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin-top: 14px;
  font-size: clamp(19px, 2.2vw, 22px);
  color: #d3ddec;
  max-width: 34em;
  line-height: 1.35;
}
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.hero-login {
  margin-top: 14px;
  font-size: 18px;
  color: #c7d3e6;
  line-height: 1.35;
}
.hero-login a {
  color: #ffc65c;
  font-weight: 700;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  font-size: 17px;
  color: #c7d3e6;
  line-height: 1.3;
}
.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-facts svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--sun-2);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hero-art {
  position: relative;
  aspect-ratio: 600 / 520;
  width: 100%;
  max-width: 620px;
  justify-self: center;
}
@media (max-width: 959px) {
  /* Na mobitelu animacija dolazi prva, prije teksta. */
  .hero-in {
    gap: 4px;
    padding-top: 12px;
  }
  .hero-art {
    order: -1;
    max-width: 460px;
  }
}
.energy {
  width: 100%;
  height: 100%;
  overflow: visible;
}
@media (max-width: 559px) {
  .cta .btn {
    flex: 1 1 100%;
  }
}
@media (min-width: 960px) {
  .hero-in {
    grid-template-columns: 1.02fr 1fr;
    align-items: center;
    gap: 40px;
    padding-top: 56px;
    padding-bottom: 88px;
  }
}

/* SVG animacija */
.energy text {
  font-family: var(--font);
  font-variant-numeric: tabular-nums;
}
.t-lab {
  font-size: 16px;
  font-weight: 600;
}
.t-kwh {
  font-size: 31px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.t-km {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.t-unit {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}
.t-price {
  font-size: 15px;
  font-weight: 700;
}
.t-inv {
  font-size: 16px;
  font-weight: 800;
}
.t-ok {
  font-size: 15px;
  font-weight: 700;
}
.glow {
  transform-box: fill-box;
  transform-origin: center;
  animation: glow 4s ease-in-out infinite alternate;
}
.rays {
  transform-origin: 500px 96px;
  animation: spin 40s linear infinite;
}
.beam {
  animation: beam 3.2s ease-in-out infinite;
}
.beam.b2 {
  animation-delay: -1.1s;
}
.beam.b3 {
  animation-delay: -2.2s;
}
.shine {
  animation: shine 4.6s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
.led {
  animation: led 1.6s ease-in-out infinite;
}
.ready {
  transform-box: fill-box;
  transform-origin: center;
  transition:
    opacity 0.35s,
    transform 0.45s cubic-bezier(0.2, 1.6, 0.4, 1);
}
.energy.counting .ready {
  opacity: 0;
  transform: scale(0.6);
}
.invoice {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 0.5s cubic-bezier(0.2, 1.4, 0.4, 1);
}
.energy.done .invoice {
  transform: translateY(-4px);
}
@keyframes glow {
  from {
    transform: scale(0.92);
    opacity: 0.8;
  }
  to {
    transform: scale(1.06);
    opacity: 1;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes beam {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.75;
  }
}
@keyframes shine {
  0% {
    transform: translateX(0);
  }
  60%,
  100% {
    transform: translateX(400px);
  }
}
@keyframes led {
  50% {
    opacity: 0.35;
  }
}

/* ---------- Sekcije ---------- */
.sec {
  padding: 56px 0;
}
.sec.alt {
  background: var(--bg-alt);
}
.sec-h {
  max-width: 760px;
  margin-bottom: 28px;
}
.sec-h h2,
.split-copy h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
}
.sub {
  margin-top: 12px;
  font-size: clamp(19px, 2vw, 21px);
  color: var(--ink-2);
  line-height: 1.35;
}
@media (min-width: 960px) {
  .sec {
    padding: 80px 0;
  }
  .sec-h {
    margin-bottom: 36px;
  }
}

/* Za koga */
.cases {
  display: grid;
  gap: 20px;
}
.case {
  display: flex;
  flex-direction: column;
  padding: 20px 24px 24px;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--elev);
}
.case-art {
  aspect-ratio: 4 / 3;
  margin: -4px -8px 8px;
  border-radius: 14px;
  background: radial-gradient(70% 70% at 50% 60%, var(--sun-soft), transparent 70%);
  position: relative;
}
.case-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.case h3 {
  font-size: 22px;
  margin-bottom: 6px;
  line-height: 1.15;
}
.case p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.4;
}
@media (min-width: 860px) {
  .cases {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
}

/* Podijeljene sekcije */
.split {
  display: grid;
  gap: 40px;
  align-items: center;
}
.split-copy .sub {
  max-width: 34em;
}
.ticks,
.roles {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}
.ticks li {
  position: relative;
  padding-left: 40px;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.3;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sun-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4L18 8' fill='none' stroke='%23e27001' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 18px no-repeat;
}
.split-ill {
  display: none;
}
@media (min-width: 960px) {
  .split {
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
  }
  .split.rev {
    grid-template-columns: 1.1fr 1fr;
  }
  .split.rev .split-copy {
    order: 2;
  }
  .split-ill {
    display: block;
    width: 260px;
    height: auto;
    margin-top: 32px;
    margin-left: -12px;
  }
}

/* Nadzorna ploča */
.dash {
  margin: 0;
  padding: 20px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--elev-2);
}
.dash-h {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin-bottom: 18px;
  font-size: 20px;
  font-weight: 800;
}
.dash-h .seg + .seg {
  margin-left: auto;
}
.dash-h small {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-2);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  min-width: 0;
}
.tile .l {
  display: block;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.3;
}
.tile .v {
  display: block;
  margin-top: 2px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  line-height: 1.2;
}
.tile .v small {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.tile.warn {
  background: var(--warn-soft);
  border-color: transparent;
}
.tile.warn .v {
  color: var(--warn);
}
.chart {
  margin-top: 20px;
}
.chart svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart .grid line {
  stroke: var(--line);
  stroke-width: 1;
}
.chart .grid .base {
  stroke: var(--ink-2);
  stroke-opacity: 0.5;
}
.chart text {
  font-family: var(--font);
  font-size: 14px;
  fill: var(--ink-2);
}
.chart .bars rect {
  fill: var(--c-bar);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transition: transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1);
}
.chart .bars rect.best {
  fill: var(--sun);
}
.chart .bars .val {
  font-size: 13px;
  font-weight: 700;
  fill: var(--sun-ink);
}
.chart.pre .bars rect {
  transform: scaleY(0.02);
}
@media (min-width: 560px) {
  .dash {
    padding: 28px;
  }
  .tiles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Uloge i preklopnik */
.roles div {
  display: grid;
  gap: 6px;
}
.roles dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.3;
}
.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
}
.badge.own {
  background: var(--ink);
  color: var(--bg);
}
.badge.view {
  background: var(--ok-soft);
  color: var(--ok);
}
.badge.adm {
  background: var(--sun-soft);
  color: var(--sun-ink);
}
@media (min-width: 560px) {
  .roles div {
    grid-template-columns: 150px 1fr;
    align-items: baseline;
  }
}
.switcher {
  padding: 18px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--elev-2);
}
.sw-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
}
.sw-btn img {
  width: 36px;
  height: 36px;
  flex: none;
}
.sw-btn div {
  flex: 1;
  min-width: 0;
  display: grid;
}
.sw-btn small {
  font-size: 14px;
  color: #c7d3e6;
}
.sw-btn b {
  font-size: 19px;
  line-height: 1.25;
}
.sw-btn svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--sun-2);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(180deg);
}
.sw-list {
  list-style: none;
  margin: 10px 0 0;
  padding: 6px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}
.sw-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 12px;
}
.sw-list li + li {
  border-top: 1px solid var(--line);
}
.sw-list li.on {
  background: var(--surface);
  box-shadow: var(--elev);
}
.sw-list li.on + li {
  border-top-color: transparent;
}
.sw-list div {
  flex: 1;
  min-width: 0;
  display: grid;
}
.sw-list b {
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.25;
}
.sw-list small {
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.3;
}
.dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--line);
}
.on .dot {
  border: 4px solid var(--sun);
}
.amt {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.sw-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--ok-soft);
  color: var(--ok);
  font-size: 16px;
  font-weight: 600;
}
.sw-foot svg {
  flex: none;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
@media (max-width: 419px) {
  .sw-list .amt {
    display: none;
  }
}

/* ---------- Povjerenje ---------- */
.trust {
  padding: 56px 0;
  color: #fff;
  background:
    radial-gradient(50% 80% at 100% 0%, rgba(249, 164, 2, 0.14), transparent 60%), var(--navy);
}
.trust .kicker {
  color: var(--sun-2);
}
.trust .sub {
  color: #c7d3e6;
}
.trust h2 {
  font-size: clamp(30px, 4.4vw, 44px);
  font-weight: 800;
}
.trust-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}
.trust-grid li {
  padding: 22px;
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.trust-grid svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  fill: none;
  stroke: var(--sun-2);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 14px;
}
.trust-grid h3 {
  font-size: 22px;
  margin-bottom: 6px;
  line-height: 1.15;
}
.trust-grid p {
  color: #c7d3e6;
  font-size: 17px;
  line-height: 1.4;
}
@media (min-width: 640px) {
  .trust-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1040px) {
  .trust {
    padding: 80px 0;
  }
  .trust-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* ---------- FAQ ---------- */
.faq-wrap {
  max-width: 900px;
}
.faq {
  display: grid;
  gap: 12px;
}
.faq details {
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--elev);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  font-size: 19px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  line-height: 1.25;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--sun-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' fill='none' stroke='%23e27001' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 20px no-repeat;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  padding: 0 20px 18px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.4;
}

/* ---------- Zaglavlje podstranice ---------- */
.phero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(60% 120% at 90% 0%, rgba(249, 164, 2, 0.2), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, #062a62 100%);
}
.phero .wrap {
  padding-top: 32px;
  padding-bottom: 40px;
}
.phero h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
}
.phero .lead {
  max-width: 36em;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 15px;
  color: #aebbd0;
}
.crumbs a {
  color: var(--sun-2);
  text-decoration: none;
}
.crumbs a:hover {
  text-decoration: underline;
}
.nav a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
@media (min-width: 960px) {
  .phero .wrap {
    padding-top: 48px;
    padding-bottom: 56px;
  }
}

/* ---------- Sadržaj podstranica ---------- */
.doc-in > * {
  max-width: 860px;
}
@media (max-width: 559px) {
  .ftable.num {
    min-width: 0;
    font-size: 15px;
  }
  .ftable.num th,
  .ftable.num td {
    padding: 10px;
  }
  .ftable.num th:nth-child(2),
  .ftable.num th:nth-child(3),
  .ftable.num td:nth-child(2),
  .ftable.num td:nth-child(3) {
    display: none;
  }
}
.doc h2 {
  margin: 36px 0 10px;
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
}
.doc h2:first-child {
  margin-top: 0;
}
.doc p,
.doc li {
  font-size: 18px;
  line-height: 1.45;
}
.doc p + p {
  margin-top: 10px;
}
.doc p {
  color: var(--ink-2);
}
.doc b {
  color: var(--ink);
}
.nsteps,
.dots,
.dl {
  margin: 14px 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.nsteps {
  counter-reset: n;
}
.nsteps li {
  position: relative;
  padding: 14px 16px 14px 60px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink-2);
  counter-increment: n;
}
.nsteps li::before {
  content: counter(n);
  position: absolute;
  left: 16px;
  top: 13px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--sun-2);
  font-size: 15px;
  font-weight: 800;
}
.dots li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
}
.dots li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sun);
}
.dots {
  gap: 4px;
}
.dl li {
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border-left: 4px solid var(--sun);
  border-radius: 0 12px 12px 0;
  background: var(--surface-2);
  color: var(--ink-2);
}
.dl li b {
  font-size: 18px;
}
.tscroll {
  margin: 14px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.ftable {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.35;
}
.ftable th {
  padding: 10px 14px;
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  color: var(--ink-2);
}
.ftable td {
  padding: 11px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.ftable td:first-child {
  color: var(--ink);
}
.ftable td + td {
  color: var(--ink-2);
}
.ftable.num td + td,
.ftable.num th + th {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.formula {
  margin: 14px 0;
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--navy);
}
.formula p {
  color: #d3ddec;
  font-size: 17px;
}
.formula b {
  color: var(--sun-2);
}
.logbox {
  margin: 14px 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sun);
  border-radius: 0 12px 12px 0;
  background: var(--surface);
}
.logbox p {
  margin: 0;
  font-size: 16px;
}
.logbox p + p {
  margin-top: 6px;
}
.logbox code {
  padding: 2px 8px;
  border-radius: 6px;
  background: var(--inset);
  font:
    600 14px/1.4 ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
  color: var(--ink);
}
.doc + .sec,
.sec.doc + .trust {
  border-top: 0;
}
.pfaq {
  background: var(--bg-alt);
}
.pfaq.alt {
  background: var(--bg);
}

/* Podstranice: zaglavlje sa slikom, redovi slika + tekst, kartice */
.phero-in {
  display: grid;
  gap: 8px;
  align-items: center;
}
.phero-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  justify-self: center;
}
.frows {
  display: grid;
  gap: 48px;
}
.frow {
  display: grid;
  gap: 20px;
  align-items: center;
}
.frow-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  justify-self: center;
  border-radius: 20px;
  background: radial-gradient(70% 70% at 50% 60%, var(--sun-soft), transparent 70%);
}
.frow h2,
.cblock h2 {
  margin-bottom: 10px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
}
.frow p,
.cblock > p {
  font-size: 18px;
  line-height: 1.45;
  color: var(--ink-2);
}
.frow .ticks,
.frow .nsteps {
  margin-top: 16px;
}
.cblock {
  margin-top: 56px;
}
.cblock > p {
  max-width: 44em;
}
.mcards {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.mcards li {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--elev);
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink-2);
}
.mcards b {
  font-size: 18px;
  color: var(--ink);
}
.mcards .mi {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 6px;
  border-radius: 10px;
  background: var(--sun-soft);
  color: var(--sun-ink);
  font-size: 16px;
  font-weight: 800;
}
.mcards .mi svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.mcards.no li {
  border-left: 4px solid var(--err);
}
.mcards.warn li {
  border-left: 4px solid var(--sun);
}
.tags {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tags li {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.two {
  display: grid;
  gap: 24px;
}
.two .mcards {
  grid-template-columns: 1fr;
  gap: 8px;
}
.formula p + p {
  margin-top: 6px;
}
.logbox p {
  color: var(--ink-2);
}
.two h3 {
  margin-bottom: 4px;
  font-size: 20px;
}
@media (min-width: 860px) {
  .phero-in {
    grid-template-columns: 1fr 340px;
    gap: 40px;
  }
  .phero-img {
    max-width: 340px;
  }
  .frow {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
  }
  .frow.rev .frow-img {
    order: 2;
  }
  .two {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 859px) {
  .phero .wrap {
    padding-top: 20px;
  }
  .phero-img {
    order: -1;
    max-width: 240px;
  }
}

.sr-h {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.frow .note {
  margin-top: 14px;
  font-size: 16px;
}

/* Pročitajte i */
.related {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.related h2 {
  margin-bottom: 14px;
  font-size: 22px;
  font-weight: 800;
}
.related-grid {
  display: grid;
  gap: 12px;
}
.related-grid a {
  display: grid;
  gap: 2px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s;
}
.related-grid a:hover {
  border-color: var(--sun);
}
.related-grid b {
  font-size: 19px;
}
.related-grid b::after {
  content: " →";
  color: var(--sun-ink);
}
.related-grid span {
  font-size: 16px;
  color: var(--ink-2);
}
@media (min-width: 640px) {
  .related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Kontakt ---------- */
.contact {
  color: #fff;
  background:
    radial-gradient(60% 90% at 0% 100%, rgba(249, 164, 2, 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy-2), var(--navy));
}
.contact .kicker {
  color: var(--sun-2);
}
.contact h2 {
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 800;
}
.contact .sub {
  color: #d3ddec;
}
.contact-in {
  display: grid;
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 56px;
}
.contact-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
}
.contact-list div {
  display: grid;
  gap: 2px;
}
.contact-list dt {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sun-2);
}
.contact-list dd {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}
.contact-list a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.contact-list a:hover {
  text-decoration: underline;
}
.contact-login {
  margin-top: 24px;
  font-size: 17px;
  color: #c7d3e6;
}
.contact-login a {
  color: var(--sun-2);
  font-weight: 700;
}
.cform {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}
.cform .f {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.cform label,
.cform legend {
  padding: 0;
  font-size: 16px;
  font-weight: 700;
}
.cform label small {
  font-weight: 500;
  color: var(--ink-2);
}
.cform input[type="text"],
.cform textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  color: var(--ink);
  font: inherit;
  font-size: 18px;
  line-height: 1.35;
}
.cform textarea {
  resize: vertical;
}
.cform input[type="text"]:focus,
.cform textarea:focus {
  outline: none;
  border-color: var(--sun);
  box-shadow: 0 0 0 4px var(--sun-soft);
}
.cform input[aria-invalid="true"],
.cform textarea[aria-invalid="true"] {
  border-color: var(--err);
  background: var(--err-soft);
}
.cform input[aria-invalid="true"]:focus,
.cform textarea[aria-invalid="true"]:focus {
  border-color: var(--err);
  box-shadow: 0 0 0 4px var(--err-soft);
}
.ferr {
  font-size: 15px;
  font-weight: 600;
  color: var(--err);
}
.chips-in {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.chips-in label {
  position: relative;
  cursor: pointer;
}
.chips-in input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}
.chips-in span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-weight: 600;
}
.chips-in input:checked + span {
  border-color: var(--sun);
  background: var(--sun-soft);
  color: var(--sun-ink);
}
.chips-in input:focus-visible + span {
  outline: 3px solid var(--sun);
  outline-offset: 2px;
}
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cform .btn {
  width: 100%;
}
.cform .btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.cform-note {
  font-size: 14px;
  color: var(--ink-2);
  text-align: center;
}
@media (min-width: 960px) {
  .contact-in {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
    padding-top: 80px;
    padding-bottom: 80px;
  }
  .cform {
    padding: 32px;
  }
}

/* Obrazac: stanja, pločice uspjeha i greške */
.cbox {
  position: relative;
}
.cform,
.cpanel {
  transition:
    opacity 0.2s ease,
    transform 0.25s ease;
}
.cform.leaving,
.cpanel.leaving {
  opacity: 0;
  transform: translateY(-6px);
}
.cform.entering,
.cpanel.entering {
  opacity: 0;
  transform: translateY(8px);
  transition: none;
}
.fmeta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.fmeta:has(> [hidden] + [hidden]) {
  display: none;
}
.fcount {
  margin-left: auto;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.fcount.over {
  color: var(--err);
  font-weight: 700;
}
.cform-alert {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--err-soft);
  color: var(--err);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}
.cform.is-sending input[type="text"],
.cform.is-sending textarea,
.cform.is-sending .chips-in span {
  opacity: 0.7;
}
.csubmit {
  position: relative;
  gap: 10px;
}
.csubmit .spin {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(4, 32, 77, 0.25);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
.csubmit[aria-busy="true"] .spin {
  display: block;
}
.cform .csubmit[disabled] {
  opacity: 0.85;
  cursor: progress;
}
.shake {
  animation: shake 0.36s ease;
}
@keyframes shake {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
.cpanel {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 36px 28px;
  border-radius: 22px;
  background: var(--surface);
  color: var(--ink);
  text-align: center;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.3);
}
.cpanel[hidden],
.cform[hidden],
.cform-alert[hidden],
.ferr[hidden],
.fcount[hidden] {
  display: none;
}
.cpanel:focus {
  outline: none;
}
.cpanel h3 {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
}
.cpanel h3:focus {
  outline: none;
}
.cpanel p {
  max-width: 28em;
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink-2);
  overflow-wrap: anywhere;
}
.cpanel .btn {
  margin-top: 6px;
}
.btn.ghost-ink {
  border-color: var(--line);
  color: var(--ink);
}
.btn.ghost-ink:hover {
  border-color: var(--sun);
}
.cpanel-alt {
  font-size: 16px;
}
.cpanel-alt a {
  font-weight: 700;
  white-space: nowrap;
}
.cmark {
  width: 76px;
  height: 76px;
  fill: none;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cpanel.ok .cmark {
  stroke: var(--ok);
}
.cpanel.bad .cmark {
  stroke: var(--err);
}
.cmark circle {
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: draw 0.5s ease-out forwards;
}
.cmark path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw 0.3s 0.35s ease-out forwards;
}
.cpanel.bad .cmark {
  animation: nudge 0.4s 0.4s ease;
}
.cpanel[hidden] .cmark,
.cpanel[hidden] .cmark circle,
.cpanel[hidden] .cmark path {
  animation: none;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes nudge {
  30% {
    transform: rotate(-8deg);
  }
  70% {
    transform: rotate(6deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cmark circle,
  .cmark path {
    stroke-dashoffset: 0;
  }
}
@media (min-width: 960px) {
  .cpanel {
    padding: 48px 40px;
  }
}

/* ---------- Podnožje ---------- */
.foot {
  padding: 56px 0 24px;
  background: #031838;
  color: #c7d3e6;
  font-size: 16px;
}
.foot a {
  color: #dbe4f2;
  text-decoration: none;
}
.foot a:hover {
  color: #fff;
  text-decoration: underline;
}
.foot-in {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 24px;
}
.foot-brand {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 14px;
}
.foot-brand img {
  height: 44px;
  width: auto;
}
.foot-brand p {
  max-width: 26em;
  line-height: 1.4;
}
.foot .foot-brand .btn {
  color: var(--navy);
  text-decoration: none;
}
.foot-col {
  display: grid;
  align-content: start;
  gap: 10px;
}
.foot-lab {
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sun-2);
}
.foot-copy {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 24px;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 14px;
  color: #aebbd0;
}
@media (min-width: 860px) {
  .foot-in {
    grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr));
    gap: 40px;
  }
  .foot-brand {
    grid-column: auto;
  }
}

/* ---------- Stupovi ispod heroja ---------- */
.pillars {
  position: relative;
  z-index: 2;
  margin-top: -40px;
}
.pill-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.pill-grid a {
  display: grid;
  align-content: start;
  gap: 4px;
  height: 100%;
  padding: 18px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--elev-2);
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 0.2s,
    border-color 0.2s;
}
.pill-grid a:hover {
  transform: translateY(-3px);
  border-color: var(--sun);
}
.pill-grid svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-bottom: 8px;
  border-radius: 12px;
  background: var(--sun-soft);
  fill: none;
  stroke: var(--sun-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pill-grid b {
  font-size: 19px;
  line-height: 1.2;
}
.pill-grid span {
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink-2);
}
@media (min-width: 860px) {
  .pillars {
    margin-top: -56px;
  }
  .pill-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
  .pill-grid a {
    padding: 20px;
  }
}
.pillars + .sec {
  padding-top: 48px;
}

/* ---------- Prekidači na grafikonu ---------- */
.seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 12px;
  background: var(--inset);
}
.seg button {
  min-height: 40px;
  min-width: 56px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: var(--ink-2);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
}
.seg button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--elev);
}
.dash-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.3;
}

/* ---------- Tok računa ---------- */
.flow {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  counter-reset: f;
}
@media (min-width: 560px) {
  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.flow li {
  position: relative;
  display: grid;
  padding: 12px 14px 12px 52px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  counter-increment: f;
}
.flow li::before {
  content: counter(f);
  position: absolute;
  left: 12px;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--sun-2);
  font-size: 15px;
  font-weight: 800;
}
.flow b {
  font-size: 18px;
  line-height: 1.2;
}
.flow span {
  font-size: 15px;
  line-height: 1.3;
  color: var(--ink-2);
}
@media (min-width: 1100px) {
  .flow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .flow li {
    padding: 48px 12px 12px;
  }
  .flow li::before {
    top: 12px;
    translate: none;
  }
}

/* ---------- Račun (papir) ----------
   Umanjena kopija pravog računa iz aplikacije (docs/invoice-design/v1.0-rc4).
   --u je 1 mm papira A4, preračunat na širinu stupca. */
.sheet-wrap {
  position: relative;
  container-type: inline-size;
  padding: 0 0 30px;
}
.inv {
  --u: calc(100cqi / 210);
  --pt: calc(var(--u) * 0.3528);
  --i-ink: #14181d;
  --i-body: #2b3138;
  --i-mut: #6b7480;
  --i-lbl: #59616c;
  --i-acc: #0b2a5b;
  --i-rule: #d7dce2;
  --i-hair: #eceff2;
  position: relative;
  padding: calc(var(--u) * 15) calc(var(--u) * 15) calc(var(--u) * 11);
  background: #fff;
  color: var(--i-body);
  font-size: calc(var(--pt) * 10);
  line-height: 1.5;
  font-variant-numeric: tabular-nums lining-nums;
  border-radius: 4px;
  box-shadow:
    0 1px 2px rgba(4, 32, 77, 0.08),
    0 30px 70px rgba(4, 32, 77, 0.2);
}
.inv::before {
  /* drugi list ispod */
  content: "";
  position: absolute;
  inset: 12px -12px -12px 12px;
  z-index: -1;
  border-radius: 4px;
  background: #f4f7fb;
  box-shadow: 0 10px 30px rgba(4, 32, 77, 0.12);
}
.inv-top {
  display: flex;
  gap: calc(var(--u) * 10);
  align-items: flex-start;
}
.inv-iss {
  flex: 1;
  min-width: 0;
}
.inv-logo {
  display: flex;
  align-items: center;
  gap: calc(var(--u) * 2);
  height: calc(var(--u) * 19);
  margin-bottom: calc(var(--u) * 4);
  color: var(--i-acc);
  font-weight: 800;
  font-size: calc(var(--pt) * 24);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.inv-logo img {
  width: calc(var(--u) * 19);
  height: calc(var(--u) * 19);
}
.inv-nm {
  font-weight: 700;
  color: var(--i-ink);
  font-size: calc(var(--pt) * 10.5);
  line-height: 1.35;
}
.inv-iss .inv-nm {
  padding-bottom: calc(var(--u) * 2);
  border-bottom: 1px solid var(--i-hair);
}
.inv-idl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: calc(var(--u) * 0.9) calc(var(--u) * 5);
  margin: calc(var(--u) * 2.2) 0 0;
  font-size: calc(var(--pt) * 9);
  line-height: 1.35;
}
.inv-idl dt {
  color: var(--i-lbl);
}
.inv-idl dd {
  margin: 0;
}
.inv-buy {
  flex: none;
  width: calc(var(--u) * 72);
  padding: calc(var(--u) * 4.5) calc(var(--u) * 5);
  border: 1px solid var(--i-rule);
  border-radius: 3px;
}
.inv-buy .inv-nm {
  margin-bottom: calc(var(--u) * 2);
}
.inv-buy p {
  font-size: calc(var(--pt) * 9);
  line-height: 1.62;
}
.inv-h {
  margin-top: calc(var(--u) * 10);
  font-size: calc(var(--pt) * 20);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--i-ink);
}
.inv-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: calc(var(--u) * 6);
  margin-top: calc(var(--u) * 6);
  padding: calc(var(--u) * 5) 0;
  border-top: 1px solid var(--i-rule);
  border-bottom: 1px solid var(--i-rule);
}
.inv-meta .k {
  margin-bottom: calc(var(--u) * 1.6);
  font-size: calc(var(--pt) * 7);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--i-lbl);
  white-space: nowrap;
}
.inv-meta .v {
  font-size: calc(var(--pt) * 11);
  font-weight: 700;
  line-height: 1.2;
  color: var(--i-ink);
  white-space: nowrap;
}
.inv-meta .m-meter .k {
  color: var(--i-acc);
}
.inv-meta .m-meter .v {
  font-size: calc(var(--pt) * 14);
  letter-spacing: 0.02em;
}
.m-dates {
  text-align: right;
}
.m-dates div {
  font-size: calc(var(--pt) * 9);
  line-height: 1.72;
  white-space: nowrap;
}
.m-dates span {
  color: var(--i-lbl);
}
.m-dates b {
  color: var(--i-ink);
}
.inv-t {
  width: 100%;
  margin-top: calc(var(--u) * 7);
  border-collapse: collapse;
  table-layout: fixed;
}
.inv-t th:nth-child(1) {
  width: 19%;
}
.inv-t th:nth-child(2),
.inv-t th:nth-child(3),
.inv-t th:nth-child(5),
.inv-t th:nth-child(6) {
  width: 14.5%;
}
.inv-t th:nth-child(4) {
  width: 8%;
}
.inv-t th:nth-child(7) {
  width: 15%;
}
.inv-t th {
  padding: 0 calc(var(--u) * 1.8) calc(var(--u) * 1.5);
  font-size: calc(var(--pt) * 7.2);
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1.3;
  text-transform: uppercase;
  text-align: right;
  vertical-align: bottom;
  color: var(--i-lbl);
  border-bottom: 1px solid #9aa3ad;
}
.inv-t td {
  padding: calc(var(--u) * 4) calc(var(--u) * 1.8);
  font-size: calc(var(--pt) * 10);
  text-align: right;
  white-space: nowrap;
  color: var(--i-ink);
  border-bottom: 1px solid var(--i-hair);
}
.inv-t th:first-child,
.inv-t td:first-child {
  padding-left: 0;
  text-align: left;
}
.inv-t th:last-child,
.inv-t td:last-child {
  padding-right: 0;
}
.inv-t td span {
  font-size: calc(var(--pt) * 9);
  color: var(--i-mut);
}
.inv-t tr.sub td {
  padding-top: calc(var(--u) * 3.4);
  padding-bottom: calc(var(--u) * 3.5);
  font-weight: 600;
  border-top: 1px solid var(--i-rule);
  border-bottom: 0;
}
.inv-t tr.sub td:first-child {
  text-align: right;
}
.inv-t tr.grand td {
  padding: calc(var(--u) * 3.2) calc(var(--u) * 3.5);
  background: #f1f4f8;
  border-top: 1px solid var(--i-rule);
  border-bottom: 1px solid var(--i-rule);
  font-size: calc(var(--pt) * 9.5);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: left;
}
.inv-t tr.grand td.amt {
  font-size: calc(var(--pt) * 13);
  letter-spacing: 0;
  text-transform: none;
  text-align: right;
}
.inv-t tr.grand td.amt i {
  margin-left: 0.25em;
  font-style: normal;
  font-size: calc(var(--pt) * 9.5);
  font-weight: 600;
}
.inv-words {
  margin-top: calc(var(--u) * 7);
}
.inv-words span {
  color: var(--i-lbl);
}
.inv-words b {
  color: var(--i-ink);
}
.inv-note {
  margin-top: calc(var(--u) * 5);
  font-size: calc(var(--pt) * 9);
  line-height: 1.6;
}
.inv-note b {
  color: var(--i-ink);
}
.inv-sigs {
  display: flex;
  gap: calc(var(--u) * 10);
  margin-top: calc(var(--u) * 18);
}
.inv-sigs div {
  flex: 1;
  text-align: center;
}
.inv-sigs i {
  display: block;
  margin-bottom: calc(var(--u) * 2);
  border-top: 1px solid #8c959f;
}
.inv-sigs span {
  font-size: calc(var(--pt) * 9);
  color: var(--i-lbl);
}
.sheet-chip {
  position: absolute;
  right: -6px;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--sun);
  color: var(--navy);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(249, 164, 2, 0.35);
}
.sheet-chip svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linejoin: round;
}
@media (max-width: 559px) {
  .sheet-wrap {
    margin-right: 6px;
  }
  .sheet-chip {
    right: 0;
    padding: 9px 14px;
    font-size: 16px;
  }
}

/* ---------- Arhiva i povijest ---------- */
.arch {
  display: grid;
  gap: 20px;
}
.panel {
  padding: 20px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--elev-2);
  min-width: 0;
}
.pn-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pn-h b {
  font-size: 20px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 15px;
  color: var(--ink-2);
}
.search svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}
.chips span {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.chips .on {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.chips .yr {
  margin-left: auto;
}
.inv-list,
.log {
  list-style: none;
  margin: 0;
  padding: 0;
}
.inv-list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-areas:
    "no mo amt"
    "no mo st";
  align-items: center;
  gap: 2px 14px;
  padding: 12px 4px;
  border-top: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.inv-list b {
  grid-area: no;
  font-size: 18px;
}
.inv-list span {
  grid-area: mo;
  color: var(--ink-2);
  line-height: 1.3;
}
.inv-list em {
  grid-area: amt;
  font-style: normal;
  font-weight: 800;
  text-align: right;
}
.inv-list .st {
  grid-area: st;
  justify-self: end;
}
.st {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
}
.st.ok {
  background: var(--ok-soft);
  color: var(--ok);
}
.st.due {
  background: var(--warn-soft);
  color: var(--warn);
}
.log li {
  position: relative;
  display: flex;
  gap: 14px;
  padding: 0 0 18px;
}
.log li:not(:last-child)::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 18px;
  bottom: 0;
  width: 2px;
  background: var(--line);
}
.log .dot {
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 5px;
  border: 0;
  background: var(--line-2, #9fb0c8);
}
.log .dot.ok {
  background: var(--ok);
}
.log .dot.sun {
  background: var(--sun);
}
.log b {
  display: block;
  font-size: 17px;
  line-height: 1.25;
}
.log small {
  display: block;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.35;
}
.log code {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: var(--inset);
  font:
    600 14px/1.4 ui-monospace,
    "SF Mono",
    Menlo,
    Consolas,
    monospace;
  color: var(--ink);
}
.mini-feats {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px 28px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.35;
}
.mini-feats b {
  color: var(--ink);
}
@media (min-width: 640px) {
  .mini-feats {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 960px) {
  .arch {
    grid-template-columns: 1.1fr 1fr;
    gap: 28px;
  }
  .panel {
    padding: 26px;
  }
  .mini-feats {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Oblak i uređaji ---------- */
.devices {
  position: relative;
  padding: 60px 0 28px;
}
.cloud {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--elev-2);
  font-size: 16px;
  font-weight: 700;
  color: var(--ok);
  white-space: nowrap;
}
.cloud svg {
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.laptop {
  width: 86%;
  max-width: 520px;
}
.lp-screen {
  padding: 10px 10px 14px;
  border-radius: 16px 16px 4px 4px;
  background: var(--navy);
  box-shadow: var(--elev-2);
}
.lp-bar {
  display: flex;
  gap: 5px;
  padding: 2px 4px 10px;
}
.lp-bar i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.lp-body {
  padding: 16px;
  border-radius: 8px;
  background: var(--surface);
}
.lp-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.lp-tiles span {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.lp-tiles small {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
}
.lp-tiles b {
  display: block;
  font-size: clamp(14px, 1.8vw, 19px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lp-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 120px;
  margin-top: 14px;
  border-bottom: 2px solid var(--line);
}
.lp-chart i {
  flex: 1;
  border-radius: 3px 3px 0 0;
  background: var(--c-bar);
}
.lp-chart i:nth-child(1) {
  height: 30%;
}
.lp-chart i:nth-child(2) {
  height: 41%;
}
.lp-chart i:nth-child(3) {
  height: 61%;
}
.lp-chart i:nth-child(4) {
  height: 77%;
}
.lp-chart i:nth-child(5) {
  height: 88%;
}
.lp-chart i:nth-child(6) {
  height: 95%;
}
.lp-chart i:nth-child(7) {
  height: 100%;
}
.lp-chart i:nth-child(8) {
  height: 91%;
}
.lp-chart i:nth-child(9) {
  height: 69%;
}
.lp-chart i:nth-child(10) {
  height: 51%;
}
.lp-chart i:nth-child(11) {
  height: 33%;
}
.lp-chart i:nth-child(12) {
  height: 26%;
}
.lp-chart i.b {
  background: var(--sun);
}
.lp-base {
  height: 14px;
  margin: 0 -6%;
  border-radius: 0 0 14px 14px;
  background: linear-gradient(#c9d6ea, #9fb0c8);
}
.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 40%;
  max-width: 200px;
  padding: 26px 14px 14px;
  border-radius: 26px;
  border: 6px solid var(--navy);
  background: var(--surface);
  box-shadow: var(--elev-2);
}
.ph-notch {
  position: absolute;
  top: 6px;
  left: 50%;
  translate: -50% 0;
  width: 40%;
  height: 6px;
  border-radius: 3px;
  background: var(--navy);
}
.phone small {
  display: block;
  font-size: 13px;
  color: var(--ink-2);
}
.phone > b {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(16px, 2vw, 21px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.ph-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}
.ph-row .st {
  font-size: 11px;
  padding: 2px 8px;
}
@media (max-width: 479px) {
  .lp-body {
    padding: 10px;
  }
  .lp-tiles {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .lp-chart {
    height: 70px;
    gap: 3px;
  }
  .phone {
    width: 48%;
    padding: 22px 10px 10px;
  }
  .ph-row .st {
    display: none;
  }
}

/* ---------- Pojavljivanje pri pomicanju ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .chart.pre .bars rect {
    transform: none;
  }
}
