/* prvi.dodir — početna strana */

:root {
  --ugalj:   #0B0B0B;
  --ugalj-2: #1C1C1B;  /* pločice na crnoj sekciji */
  --ugalj-3: #2A2A28;  /* linije i oblici na crnom */
  --papir:   #F3F2ED;
  --papir-svetli: #F8F7F3; /* kartice koje leže na papiru */
  --pesak:   #E9E7E1;  /* bež sekcije, pločice, polja */
  --grafit:  #6E6D68;
  --grafit-tamni:  #46453F; /* tekst opisa */
  --grafit-svetli: #8F8E88; /* sivi tekst na crnom */
  --linija:  #DCDAD2;

  --font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(20px, calc(5vw / var(--z, 1)), 64px);
  --max: 1160px;
  --max-wide: 1220px;
  --max-narrow: 840px;
  --header-h: 68px;

  /* Radius kartice CR80: 3,18 mm na 85,6 × 54 mm */
  --r-card: calc(3.18 / 85.6 * 100%) / calc(3.18 / 54 * 100%);

  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-smooth: cubic-bezier(.22, 1, .36, 1);  /* meko usporavanje pokreta */
  --ease-soft:   cubic-bezier(.4, 0, .2, 1);    /* za providnost */
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--header-h);
}
/* Glatko skrolovanje do sekcija radi main.js (svoje trajanje i kriva pokreta). */
html.menu-open { overflow: hidden; }

/* Sekcija dobija fokus posle skrolovanja (zbog tastature), bez okvira. */
section[tabindex="-1"]:focus { outline: none; }

body {
  margin: 0;
  background: var(--papir);
  color: var(--ugalj);
  font-family: var(--font);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

:focus-visible {
  outline: 2px solid var(--ugalj);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--ugalj);
  color: var(--papir);
}
.skip:focus { left: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.wrap--wide   { max-width: calc(var(--max-wide) + 2 * var(--gutter)); }
.wrap--narrow { max-width: calc(var(--max-narrow) + 2 * var(--gutter)); }

/* ---------- Zajedničko ---------- */

.label {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.12em;
  line-height: 1.4;
  color: var(--grafit);
}

.title {
  font-size: clamp(36px, calc(4.6vw / var(--z, 1)), 64px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}
.muted { color: var(--grafit); }

.wordmark {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
}
.wordmark__muted { color: var(--grafit); }

.icon { width: 18px; height: 18px; flex: none; }

.link {
  color: var(--ugalj);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.link:hover { text-decoration-thickness: 2px; }

/* ---------- Dugmad ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--ugalj);
  color: var(--papir);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.btn:hover { background: #2A2A28; }
.btn .icon { transition: translate .25s var(--ease-out); }
.btn:hover .icon { translate: 3px 0; }

.btn--sm {
  height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14.5px;
}
.btn--ghost {
  background: transparent;
  color: var(--ugalj);
  padding: 0 14px;
}
.btn--ghost:hover { background: var(--pesak); }
.btn--light { background: var(--papir); color: var(--ugalj); }
.btn--light:hover { background: #fff; }
.btn--block {
  width: 100%;
  justify-content: space-between;
  padding: 0 20px;
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(243, 242, 237, .9);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--linija);
}

.header__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.logo__znak { width: 30px; height: 30px; }
.logo--sm { gap: 8px; }
.logo--sm .logo__znak { width: 22px; height: 22px; }
.logo--sm .wordmark { font-size: 17px; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 14.5px;
}
.nav__list { display: flex; gap: 28px; }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--grafit); }
.nav__divider { width: 1px; height: 20px; background: var(--linija); }
.nav__login { display: inline-flex; align-items: center; gap: 8px; }
.nav__login .icon { width: 16px; height: 16px; }

.header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.menu-btn {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: var(--pesak);
  color: var(--ugalj);
  cursor: pointer;
}
.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn .icon--close { display: none; }
.menu-btn[aria-expanded="true"] .icon--open  { display: none; }
.menu-btn[aria-expanded="true"] .icon--close { display: block; }

/* Meni na telefonu. Header je sticky, pa se meni kači tačno ispod njega. */
.menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(calc(100vh / var(--z, 1)) - var(--header-h));
  height: calc(calc(100dvh / var(--z, 1)) - var(--header-h));
  overflow-y: auto;
  background: var(--papir);
  padding: 8px 0 40px;
}
.menu__list a {
  display: block;
  padding: 16px 0;
  border-bottom: 1px solid var(--linija);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
}
.menu__login {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: 16px;
}

@media (max-width: 960px) {
  .nav { display: none; }
  .header__actions { margin-left: auto; }
  .header__actions .btn--sm { height: 44px; }
  .menu-btn { display: grid; }
}

/* ---------- Hero ---------- */

.hero {
  overflow-x: clip;
  padding: clamp(40px, calc(6vw / var(--z, 1)), 88px) 0 clamp(64px, calc(8vw / var(--z, 1)), 112px);
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(32px, calc(4vw / var(--z, 1)), 64px);
  align-items: center;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__title {
  margin-top: 22px;
  font-size: clamp(44px, calc(6.4vw / var(--z, 1)), 92px);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: .95;
}
.hero__line { display: block; }

.hero__lead {
  margin-top: 26px;
  max-width: 31em;
  font-size: clamp(17px, calc(1.4vw / var(--z, 1)), 19px);
  color: var(--grafit-tamni);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.hero__login {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 28px;
  font-size: 15px;
  color: var(--grafit-tamni);
}
.hero__login .icon { width: 17px; height: 17px; color: var(--ugalj); }

.hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 30px;
  font-size: 13.5px;
  color: var(--grafit-tamni);
}
.hero__facts li { display: flex; align-items: center; gap: 7px; }
.hero__facts .icon { width: 16px; height: 16px; color: var(--ugalj); }

.hero__visual {
  container-type: inline-size;
  width: 100%;
  max-width: 580px;
  justify-self: end;
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .hero__visual { justify-self: center; }
}

/* Računar: prvi ekran je tačno visine prozora (ispod zaglavlja), pa crna sekcija
   kreće odmah ispod. Naslov i ilustracija se smanjuju na niskim ekranima, da sve stane. */
@media (min-width: 861px) {
  .hero {
    display: grid;
    align-items: center;
    min-height: calc(calc(100vh / var(--z, 1)) - var(--header-h) - 1px);    /* 1px = linija ispod zaglavlja */
    min-height: calc(calc(100svh / var(--z, 1)) - var(--header-h) - 1px);
    padding: 24px 0 32px;
  }
  .hero__title { font-size: clamp(44px, min(calc(6.4vw / var(--z, 1)), calc(11.5svh / var(--z, 1))), 92px); }
  .hero__visual { max-width: min(580px, calc((calc(100svh / var(--z, 1)) - var(--header-h) - 57px) * .98)); }
}

/* ---------- Ilustracija u hero delu ----------
   Sve mere su u em. Veličina fonta prati širinu kontejnera,
   pa se cela scena skalira zajedno. Jedan em ≈ 1/37 širine. */

.mock {
  position: relative;
  font-size: 15px;
  font-size: calc(calc(100cqw / var(--cqz, 1)) / 37);
  width: 37em;
  height: 37.5em;
}
.mock > * { position: absolute; }

.mock__circle,
.mock__ring {
  aspect-ratio: 1;
  border-radius: 50%;
}
.mock__circle { left: 4.9em; top: 2.2em; width: 31.6em; background: var(--pesak); }
.mock__ring   { left: 3.7em; top: 1em;   width: 34em;   border: 1px dashed #BDBAB2; }

.mock__phone { left: 17.8em; top: .3em; }

.mock__waves { left: 12.8em; top: 17.4em; width: 4.6em; }

.mock__card {
  left: .6em;
  top: 22.9em;
  width: 20.5em;
  rotate: -11deg;
  will-change: transform;
}
/* Senka ide na samu karticu (box-shadow prati zaobljene uglove).
   filter: drop-shadow je u Safariju crtao pravougaonik oko kartice. */
.mock__card .nfc-card {
  box-shadow:
    0 1.8em 2.6em -1.2em rgba(11, 11, 11, .38),
    0 .4em 1em -.2em rgba(11, 11, 11, .14);
}

.mock__toast {
  left: 1.3em;
  top: 6.3em;
  display: flex;
  align-items: center;
  gap: .8em;
  padding: .65em 1.4em .65em .65em;
  border-radius: 1.1em;
  background: var(--papir-svetli);
  box-shadow: 0 1.2em 2.4em -1em rgba(11, 11, 11, .28), 0 0 0 1px rgba(11, 11, 11, .03);
  white-space: nowrap;
}
.mock__toast-check {
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  border-radius: 50%;
  background: var(--ugalj);
  color: var(--papir);
}
.mock__toast-check svg { width: 1.3em; height: 1.3em; }
.mock__toast b {
  display: block;
  font-size: .95em;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.mock__toast small {
  display: block;
  font-size: .8em;
  color: var(--grafit);
  line-height: 1.3;
}

/* Na telefonu je scena krupnija i zbijenija. */
@media (max-width: 560px) {
  .mock {
    font-size: calc(calc(100cqw / var(--cqz, 1)) / 22.6);
    width: 22.6em;
    height: 35.6em;
  }
  .mock__circle { left: 0;     top: 4.2em; width: 22.6em; }
  .mock__ring   { left: -.7em; top: 3.5em; width: 24em; }
  .mock__phone  { left: 4.5em; top: .5em; }
  .mock__waves  { left: .4em; top: 17.4em; width: 3.6em; }
  .mock__card   { left: -.4em; top: 21.6em; width: 15.4em; rotate: -14deg; }
  .mock__toast  { left: 0; top: 6.5em; }
}

/* ---------- Telefon sa ličnim sajtom (koristi se i kasnije u porudžbini) ---------- */

.phone {
  width: 16.8em;
  height: 34.7em;
  padding: .7em;
  border-radius: 2.7em;
  background: var(--ugalj);
  box-shadow: 0 2em 4em -1.8em rgba(11, 11, 11, .4);
}

.phone__screen {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: .7em;
  border-radius: 2em;
  background: var(--papir);
  color: var(--ugalj);
  overflow: hidden;
}

.site-hero {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 15em;
  padding: 1.1em;
  border-radius: 1.4em;
  background: var(--ugalj);
  color: var(--papir);
  overflow: hidden;
}
.site-hero__lang {
  position: absolute;
  top: 2em;    /* 1.2em scene */
  left: 2em;
  font-size: .6em;
  font-weight: 600;
  letter-spacing: .06em;
}
.site-hero__photo {
  position: absolute;
  left: 5em;
  right: .7em;
  top: 2.9em;
  height: 8.5em;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(243, 242, 237, .3);
  border-radius: .9em;
  color: #4A4A47;
}
.site-hero__photo svg { width: 3em; }
.site-hero__blob {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 12.4em;
  height: 6.1em;
  background: var(--ugalj-3);
  border-top-right-radius: 5.7em 1.8em;
}
.site-hero__name {
  position: relative;
  font-size: 1.55em;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: .92;
}
.site-hero__role {
  position: relative;
  white-space: pre-line;
  margin-top: .6em;
  font-size: .58em;
  color: #B9B8B2;
}

.site-save {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.46em;   /* 2.7em scene */
  margin-top: .77em;
  padding: 0 1.4em;
  border-radius: 1em;
  background: var(--ugalj);
  color: var(--papir);
  font-size: .78em;
  font-weight: 600;
}
.site-save svg { width: 1.3em; height: 1.3em; }

.site-actions {
  flex: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: .9em .1em .8em .6em;
}
.site-actions span {
  display: flex;
  flex-direction: column;
  gap: .15em;
  padding-left: .7em;
  border-right: 1px solid #CFCDC5;
}
.site-actions span:first-child { padding-left: 0; }
.site-actions span:nth-child(3) { grid-column: 1 / -1; margin-top: .5em; padding: .5em 0 0; border-right: 0; border-top: 1px solid #CFCDC5; }
.site-actions b    { font-size: .66em; font-weight: 600; }
.site-actions small { font-size: .5em; color: var(--grafit); }

.site-rows li {
  display: flex;
  justify-content: space-between;
  gap: 1em;
  padding: 1.1em .2em;
  border-top: 1px solid var(--linija);
  font-size: .58em;
  white-space: nowrap;
}
.site-rows span { color: var(--grafit); }
.site-rows b { font-weight: 600; }

/* ---------- NFC kartica (prednja strana) ----------
   Unutrašnje mere su u cqw, pa kartica izgleda isto u svakoj veličini. */

.nfc-card {
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 85.6 / 54;
  border-radius: var(--r-card);
  background: var(--ugalj);
  color: var(--papir);
}
.nfc-card--shadow { box-shadow: 0 26px 40px -26px rgba(11, 11, 11, .55); }

.nfc-card__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(7.4cqw / var(--cqz, 1)) calc(7cqw / var(--cqz, 1)) calc(5.4cqw / var(--cqz, 1)) calc(7.5cqw / var(--cqz, 1));   /* mere iz dizajna kartice (PDF) */
}
.nfc-card__znak { width: calc(9.5cqw / var(--cqz, 1)); height: calc(9.5cqw / var(--cqz, 1)); }
.nfc-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: calc(4cqw / var(--cqz, 1));
}
.nfc-card .wordmark { font-size: calc(8.9cqw / var(--cqz, 1)); }
.nfc-card .wordmark__muted { color: var(--grafit-svetli); }
.nfc-card__label {
  font-family: var(--mono);
  font-size: calc(2.95cqw / var(--cqz, 1));
  letter-spacing: .12em;
  color: var(--grafit-svetli);
  white-space: nowrap;
}

/* ---------- Šta je prvi.dodir ---------- */

.what {
  padding: clamp(64px, calc(9vw / var(--z, 1)), 112px) 0;
  background: var(--ugalj);
  color: var(--papir);
  text-align: center;
}
.what .label,
.what .muted { color: var(--grafit-svetli); }
.what .title { margin-top: 18px; }
.what :focus-visible { outline-color: var(--papir); }

.equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  grid-template-rows: auto auto;
  column-gap: clamp(10px, calc(2.4vw / var(--z, 1)), 28px);
  row-gap: 16px;
  max-width: 780px;
  margin: clamp(40px, calc(5vw / var(--z, 1)), 56px) auto 0;
}
/* Svaki element ima svoju kolonu: pločica + pločica = pločica. */
.equation > :nth-child(1) { grid-column: 1; }
.equation > :nth-child(2) { grid-column: 2; }
.equation > :nth-child(3) { grid-column: 3; }
.equation > :nth-child(4) { grid-column: 4; }
.equation > :nth-child(5) { grid-column: 5; }
.eq__item {
  grid-row: 1 / span 2;
  display: grid;
  grid-template-rows: subgrid;
}
.eq__tile {
  aspect-ratio: 4 / 3;
  border-radius: clamp(12px, calc(1.6vw / var(--z, 1)), 18px);
  background: var(--ugalj-2);
  overflow: hidden;
}
.eq__tile svg { width: 100%; height: 100%; }
.eq__tile--light { background: var(--papir); }
.eq__item figcaption {
  font-size: clamp(13px, calc(1.3vw / var(--z, 1)), 15px);
  font-weight: 500;
  line-height: 1.3;
}
.eq__op {
  grid-row: 1;
  align-self: center;
  font-size: clamp(22px, calc(3vw / var(--z, 1)), 34px);
  font-weight: 300;
  line-height: 1;
  color: var(--grafit-svetli);
}

/* ---------- Sekcije ---------- */

.section { padding: clamp(72px, calc(10vw / var(--z, 1)), 128px) 0; }
.section--tight-top { padding-top: clamp(24px, calc(3vw / var(--z, 1)), 32px); }
.section--sand { background: var(--pesak); }

.section__head .title { margin-top: 14px; }
.section__lead {
  margin-top: 22px;
  max-width: 30em;
  font-size: 16px;
  color: var(--grafit-tamni);
}

/* 01 Kako radi */

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, calc(5vw / var(--z, 1)), 64px);
}
.step {
  padding: 0 clamp(16px, calc(1.6vw / var(--z, 1)), 22px) 8px;
  border-left: 1px solid var(--linija);
}
.step:first-child { border-left: 0; }
.step__art {
  aspect-ratio: 1.45;
  border-radius: 16px;
  background: var(--pesak);
  overflow: hidden;
}
.step__art svg { width: 100%; height: 100%; }
.step__num {
  display: block;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--grafit);
}
.step__title {
  margin-top: 10px;
  font-size: clamp(20px, calc(1.7vw / var(--z, 1)), 22px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.step__text {
  margin-top: 8px;
  max-width: 30em;
  font-size: 15px;
  color: var(--grafit-tamni);
}

@media (max-width: 860px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .step { border-left: 0; }
}

/* 02 Šta dobijaš */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(40px, calc(5vw / var(--z, 1)), 56px);
  border-top: 1px solid var(--linija);
}
.feature {
  display: flex;
  gap: 16px;
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid var(--linija);
}
.feature__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--pesak);
}
.feature__icon svg { width: 20px; height: 20px; }
.feature__title {
  margin-top: 2px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.feature__text {
  margin-top: 6px;
  font-size: 14.5px;
  color: var(--grafit-tamni);
}

@media (max-width: 960px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .features { grid-template-columns: minmax(0, 1fr); }
  .feature { gap: 18px; padding-right: 0; }
  .feature__icon { width: 52px; height: 52px; border-radius: 13px; }
  .feature__icon svg { width: 22px; height: 22px; }
  .feature__title { font-size: 19px; margin-top: 4px; }
  .feature__text { font-size: 15.5px; }
}

/* 03 Razlika */

.compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: clamp(40px, calc(5vw / var(--z, 1)), 56px);
}
.compare__card {
  padding: clamp(24px, calc(2.6vw / var(--z, 1)), 32px) clamp(20px, calc(2.4vw / var(--z, 1)), 28px);
  border-radius: 18px;
}
.compare__card--paper {
  border: 1.5px dashed #BDBAB2;
  color: var(--grafit);
}
.compare__card--nfc {
  background: var(--ugalj);
  color: var(--papir);
}
.compare__art { width: 140px; height: 84px; }
.compare__title {
  margin-top: 28px;
  font-size: clamp(19px, calc(1.7vw / var(--z, 1)), 21px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.25;
}
.compare__list { margin-top: 16px; }
.compare__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid #D3D0C8;
  font-size: 14.5px;
}
.compare__card--nfc .compare__list li { border-top-color: var(--ugalj-3); }
.compare__list .icon { width: 16px; height: 16px; }

@media (max-width: 760px) {
  .compare { grid-template-columns: minmax(0, 1fr); }
}

/* 04 Kartica */

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(40px, calc(5vw / var(--z, 1)), 56px);
}
.cards__cap { margin-top: 14px; font-size: 11px; }

.back-card,
.dims {
  container-type: inline-size;
  position: relative;
  aspect-ratio: 85.6 / 54;
  border-radius: var(--r-card);
}

.back-card {
  background: var(--papir-svetli);
  box-shadow: 0 20px 40px -24px rgba(11, 11, 11, .3), 0 0 0 1px rgba(11, 11, 11, .03);
}
/* Poleđina je jedan SVG u milimetrima (85,6 × 54). Položaje, veličine i prelome redova računa
   PD.backLayout (js/app.js), isto kao za PDF (js/card-pdf.js), dizajn „Veliko ime v2“. */
.back-card__svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: inherit; }
.back-card__svg text { font-family: var(--font); fill: var(--ugalj); font-kerning: none; text-rendering: geometricPrecision; }
.back-card__svg .back-card__name { font-weight: 600; letter-spacing: -0.05em; }
.back-card__svg .back-card__role { fill: var(--grafit); }
.back-card__svg .back-card__label { font-family: var(--mono); letter-spacing: .08em; fill: var(--grafit); }
.back-card__svg .back-card__ph { font-family: var(--mono); letter-spacing: .1em; fill: var(--grafit); text-anchor: middle; }
.back-card__rule { stroke: #C7C5BD; stroke-width: 1px; vector-effect: non-scaling-stroke; }
.back-card__frame { fill: none; stroke: #9C9A93; stroke-width: .26; stroke-dasharray: .75 .6; }

.dims { background: var(--pesak); }
.dims__body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(4cqw / var(--cqz, 1));
  padding: calc(7cqw / var(--cqz, 1)) calc(8cqw / var(--cqz, 1));
}
.dims__text { max-width: calc(46cqw / var(--cqz, 1)); }
.dims__label {
  font-family: var(--mono);
  font-size: calc(2.4cqw / var(--cqz, 1));
  letter-spacing: .12em;
  color: var(--grafit);
}
.dims__value {
  margin-top: calc(2cqw / var(--cqz, 1));
  font-size: calc(9.6cqw / var(--cqz, 1));
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: .95;
}
.dims__note {
  margin-top: calc(3cqw / var(--cqz, 1));
  font-size: calc(3cqw / var(--cqz, 1));
  line-height: 1.4;
  color: var(--grafit-tamni);
}
.dims__art { width: calc(34cqw / var(--cqz, 1)); flex: none; }

@media (max-width: 900px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    max-width: 520px;
  }
}

/* 05 Cena */

.price {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px;
  align-items: center;
}
.price-card {
  justify-self: end;
  width: 100%;
  max-width: 480px;
  padding: clamp(22px, calc(2.4vw / var(--z, 1)), 28px);
  border-radius: 20px;
  background: var(--papir);
}
.price-card__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
}
.price-card__head .label { font-size: 11px; }
.price-card__name { font-size: 15.5px; font-weight: 500; }
.price-card__amount {
  margin-top: 18px;
  font-size: clamp(44px, calc(4.6vw / var(--z, 1)), 60px);
  font-weight: 600;
  letter-spacing: -0.05em;
  line-height: 1;
}
.price-card__old {
  margin-right: .12em;
  font-size: .42em;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--grafit);
  text-decoration-thickness: 2px;
}
.price-card__amount span:not(.price-card__num) {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .06em;
  color: var(--grafit);
}
.price-card__rsd {
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .04em;
  color: var(--grafit);
}
.price-card__extra {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--grafit);
}
.price-card__extra b { font-weight: 600; color: var(--ugalj); }
.price-card__bonus {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 10px 14px 10px 10px;
  border-radius: 14px;
  background: var(--ugalj);
  color: var(--papir);
  font-size: 14.5px;
  line-height: 1.35;
}
.price-card__bonus span {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--papir);
  color: var(--ugalj);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.price-card__list {
  margin-top: 20px;
  border-top: 1px solid var(--linija);
}
.price-card__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--linija);
  font-size: 14.5px;
}
.price-card__list .icon { width: 16px; height: 16px; }
.price-card .btn { margin-top: 20px; }

@media (max-width: 860px) {
  .price { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .price-card { justify-self: stretch; max-width: none; }
}

/* 06 Pitanja */

.faq {
  margin-top: clamp(32px, calc(4vw / var(--z, 1)), 48px);
  border-top: 1px solid var(--linija);
}
.faq__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  padding: 26px 0;
  border-bottom: 1px solid var(--linija);
}
.faq__num {
  padding-top: 4px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--grafit);
}
.faq__q {
  font-size: clamp(17px, calc(1.6vw / var(--z, 1)), 19px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.3;
}
.faq__a {
  margin-top: 8px;
  font-size: 15px;
  color: var(--grafit-tamni);
}

/* ---------- Završni poziv ---------- */

.cta-section { padding-bottom: clamp(56px, calc(7vw / var(--z, 1)), 88px); }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(36px, calc(5.5vw / var(--z, 1)), 64px);
  border-radius: clamp(20px, calc(2.4vw / var(--z, 1)), 28px);
  background: var(--ugalj);
  color: var(--papir);
}
.cta .muted { color: var(--grafit-svetli); }
.cta :focus-visible { outline-color: var(--papir); }
.cta__title { font-size: clamp(34px, calc(4.8vw / var(--z, 1)), 64px); }
.cta .btn { margin-top: 28px; }
.cta__znak {
  width: clamp(110px, calc(13vw / var(--z, 1)), 170px);
  flex: none;
  margin-right: 4%;
}

@media (max-width: 640px) {
  .cta__znak { display: none; }
}

/* ---------- Footer ---------- */

.footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--linija);
}
.footer__in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.footer__tagline {
  margin-top: 8px;
  font-size: 13px;
  color: var(--grafit);
}
.footer__firm {
  margin-top: 6px;
  font-size: 12px;
  color: var(--grafit);
}
.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-size: 14px;
}
.footer__links a { display: inline-flex; align-items: center; gap: 7px; }
.footer__links a:hover { color: var(--grafit); }
.footer__links .icon { width: 16px; height: 16px; }
.footer__copy {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--grafit);
}

@media (max-width: 760px) {
  .footer__in { flex-direction: column; align-items: flex-start; }
  .footer__copy { width: 100%; }
}

/* ---------- Telefon: redizajn početne ----------
   Dizajn: „prvi.dodir — redesign landing page telefon.pdf“. Važi do 640px; računar ostaje isti.
   only-phone / only-desktop: delovi koji postoje samo na jednoj veličini. */

.btn--soft { background: var(--pesak); color: var(--ugalj); }
.btn--soft:hover { background: #DCDAD2; }
.eq__sub, .faq__pm { display: none; }
.faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: default;
}

@media (min-width: 641px) {
  .only-phone { display: none !important; }
}

@media (max-width: 640px) {
  .only-desktop { display: none !important; }

  /* Hero: naslov, kratak opis, slika, pa dugmad i trake sa činjenicama */
  .hero { padding: 28px 0 0; }
  .hero__grid { gap: 0; }
  .hero__text { display: contents; }
  .hero__text > .label { order: 1; }
  .hero__title { order: 2; margin-top: 16px; font-size: clamp(40px, calc(12.6vw / var(--z, 1)), 58px); }
  .hero__lead { order: 3; margin-top: 20px; font-size: 18px; }
  .hero__visual { order: 4; margin-top: 24px; }
  .hero__ctas {
    order: 5;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
  }
  .hero__ctas .btn { height: 52px; border-radius: 14px; }
  .hero__ctas .btn:first-child {
    grid-column: 1 / -1;
    height: 60px;
    justify-content: space-between;
    padding: 0 22px;
    border-radius: 16px;
    font-size: 18px;
  }
  .hero__how .icon { rotate: 90deg; }
  .btn.hero__how:hover .icon { translate: 0 3px; }
  .hero__facts {
    order: 6;
    flex-wrap: nowrap;
    gap: 28px;
    overflow-x: auto;
    margin: 30px calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter) 22px;
    border-bottom: 1px solid var(--linija);
    font-size: 15px;
    color: var(--ugalj);
    scrollbar-width: none;
  }
  .hero__facts::-webkit-scrollbar { display: none; }
  .hero__facts li { flex: none; white-space: nowrap; }
  .hero__facts .icon { display: none; }

  /* Šta je: crna kartica, delovi „jednačine“ jedan ispod drugog */
  .what { margin: 32px 8px 0; padding: 44px 0 24px; border-radius: 28px; text-align: left; }
  .what .wrap { padding: 0 16px; }
  .what__head { padding: 0 4px; }
  .equation { display: flex; flex-direction: column; margin-top: 30px; }
  .eq__item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 18px 12px 12px;
    border-radius: 20px;
    background: var(--ugalj-2);
  }
  .eq__item:last-child { background: var(--papir); color: var(--ugalj); }
  .eq__tile { position: relative; flex: none; width: 76px; height: 56px; aspect-ratio: auto; background: none; overflow: visible; }
  .eq__tile svg { position: absolute; left: 50%; top: 50%; width: 140%; height: auto; transform: translate(-50%, -50%); }
  .eq__item figcaption { font-size: 18px; font-weight: 600; letter-spacing: -0.02em; }
  .eq__sub { display: block; margin-top: 2px; font-size: 14.5px; font-weight: 400; letter-spacing: 0; color: var(--grafit-svetli); }
  .eq__item:last-child .eq__sub { color: var(--grafit); }
  .eq__op { padding: 10px 0; text-align: center; font-size: 22px; }

  /* Pesak sekcije su na telefonu svetle, kao ostale */
  .section--sand { background: transparent; }

  /* 01 Kako radi: broj u krugu, tekst i mala slika desno */
  .steps { gap: 0; margin-top: 28px; border-top: 1px solid var(--linija); }
  .step {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 70px;
    column-gap: 16px;
    padding: 22px 0;
    border-bottom: 1px solid var(--linija);
  }
  .step__num {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin: 0;
    border-radius: 50%;
    background: var(--ugalj);
    color: var(--papir);
  }
  .step__title { grid-column: 2; grid-row: 1; margin-top: 6px; font-size: 19px; }
  .step__text { grid-column: 2; grid-row: 2; font-size: 15.5px; }
  .step__art {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    position: relative;
    height: 62px;
    aspect-ratio: auto;
    border-radius: 0;
    background: none;
    overflow: visible;
  }
  .step__art svg { position: absolute; left: 50%; top: 50%; width: 150%; height: auto; transform: translate(-50%, -50%); }

  /* 02 Šta dobijaš: kartice koje se prevlače */
  #prednosti { padding-top: 56px; }
  #prednosti .section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; column-gap: 12px; }
  #prednosti .section__head > .label:first-child { flex-basis: 100%; }
  .section__hint { padding-bottom: 8px; font-size: 11px; }
  .features {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--gutter);
    margin: 28px calc(-1 * var(--gutter)) 0;
    padding: 0 var(--gutter) 6px;
    border-top: 0;
    counter-reset: feature;
    scrollbar-width: none;
  }
  .features::-webkit-scrollbar { display: none; }
  .feature {
    counter-increment: feature;
    flex: 0 0 80%;
    flex-direction: column;
    gap: 0;
    padding: 20px 20px 24px;
    border: 0;
    border-radius: 22px;
    background: #fff;
    scroll-snap-align: start;
  }
  .feature__icon { width: 50px; height: 50px; border-radius: 13px; }
  .feature > div::before {
    content: counter(feature, decimal-leading-zero) " / 06";
    display: block;
    margin-top: 22px;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--grafit);
  }
  .feature__title { margin-top: 12px; font-size: 21px; }
  .feature__text { margin-top: 8px; font-size: 15.5px; }

  /* 03 Razlika: prekidač Papirna / prvi.dodir */
  .compare__switch {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-top: 28px;
    padding: 4px;
    border-radius: 16px;
    background: var(--pesak);
  }
  /* Crna podloga klizi ispod izabranog dugmeta */
  .compare__switch::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    width: calc(50% - 6px);
    border-radius: 12px;
    background: var(--ugalj);
    transition: translate .5s var(--ease-smooth);
  }
  .compare__switch[data-active="nfc"]::before { translate: calc(100% + 4px) 0; }
  .compare__switch button {
    position: relative;
    height: 46px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--ugalj);
    font: inherit;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .2s, color .2s;
  }
  .compare__switch button[aria-pressed="true"] { color: var(--papir); }
  .compare__card { animation: swap-in .6s var(--ease-smooth); }
  .compare { margin-top: 16px; }
  .compare[data-show="nfc"] .compare__card--paper,
  .compare[data-show="paper"] .compare__card--nfc { display: none; }
  .compare__card { padding: 26px 22px 10px; border-radius: 26px; }
  .compare__art { width: 150px; height: 90px; }
  .compare__title { display: none; }
  .compare__list { margin-top: 18px; }
  .compare__list li { padding: 15px 0; font-size: 16.5px; }
  .compare__list li:last-child { border-bottom: 0; }

  /* 04 Kartica: poleđina iza prednje strane, dugme ih menja */
  .cards { display: grid; grid-template-areas: "card"; gap: 0; max-width: none; margin-top: 30px; }
  .cards__item { grid-area: card; width: 88%; transition: rotate .8s var(--ease-smooth); }
  .cards__cap { display: none; }
  .cards__item:nth-child(1) { justify-self: start; margin-top: 30%; rotate: -5deg; z-index: 2; }
  .cards__item:nth-child(2) { justify-self: end; rotate: 4deg; z-index: 1; }
  .cards__item:nth-child(3) { display: none; }
  .cards.is-flipped .cards__item:nth-child(1) { z-index: 1; rotate: -7deg; }
  .cards.is-flipped .cards__item:nth-child(2) { z-index: 2; rotate: 2deg; translate: 0 18%; }
  /* Kartice se razmaknu, zamene mesta i vrate, kao kad ih premeštaš u ruci */
  .cards.is-flipped .cards__item:nth-child(1)                  { animation: shuffle-a .8s var(--ease-smooth); }
  .cards.is-flipped .cards__item:nth-child(2)                  { animation: shuffle-b .8s var(--ease-smooth); }
  .cards.has-flipped:not(.is-flipped) .cards__item:nth-child(1) { animation: shuffle-c .8s var(--ease-smooth); }
  .cards.has-flipped:not(.is-flipped) .cards__item:nth-child(2) { animation: shuffle-d .8s var(--ease-smooth); }
  .cards__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 26px; }
  .cards__meta { display: flex; gap: 6px; }
  .cards__meta span {
    padding: 7px 10px;
    border-radius: 8px;
    background: var(--pesak);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--grafit-tamni);
  }
  .cards__flip { height: 44px; padding: 0 16px; border-radius: 12px; font-size: 15px; gap: 8px; }
  .cards__flip .icon { width: 17px; height: 17px; }
  .btn.cards__flip:hover .icon { translate: none; }

  /* 05 Cena: crna kartica */
  #cena .price__text .title,
  #cena .section__lead { display: none; }
  .price { gap: 18px; }
  .price-card { padding: 24px 22px 22px; border-radius: 26px; background: var(--ugalj); color: var(--papir); }
  .price-card .label,
  .price-card__old,
  .price-card__rsd,
  .price-card__extra { color: var(--grafit-svetli); }
  .price-card__extra b { color: var(--papir); }
  .price-card__name { font-size: 17px; }
  .price-card__amount { font-size: 64px; }
  .price-card__bonus { background: var(--ugalj-2); }
  .price-card__list { border-top-color: var(--ugalj-3); }
  .price-card__list li { padding: 14px 0; border-bottom-color: var(--ugalj-3); font-size: 16px; }
  .price-card .btn { height: 56px; border-radius: 14px; background: var(--papir); color: var(--ugalj); }
  .price-card .btn:hover { background: #fff; }
  .price__note { text-align: center; font-size: 15px; color: var(--grafit-tamni); }

  /* 06 Pitanja: odgovor se otvara dodirom */
  .faq__num { display: none; }
  .faq__item { grid-template-columns: minmax(0, 1fr); padding: 0; }
  .faq__btn { min-height: 70px; padding: 16px 0; font-size: 18px; cursor: pointer; }
  .faq__pm {
    display: block;
    position: relative;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--pesak);
    transition: background-color .2s, color .2s;
  }
  .faq__pm::before,
  .faq__pm::after {
    content: "";
    position: absolute;
    left: 11px;
    top: 16px;
    width: 12px;
    height: 2px;
    border-radius: 1px;
    background: currentColor;
  }
  .faq__pm::after { rotate: 90deg; transition: rotate .25s var(--ease-out); }
  .faq__item.is-open .faq__pm { background: var(--ugalj); color: var(--papir); }
  .faq__item.is-open .faq__pm::after { rotate: 0deg; }
  /* Odgovor se glatko otvara: red mreže raste od 0 do pune visine */
  .faq__item > div { display: grid; grid-template-rows: auto 0fr; transition: grid-template-rows .5s var(--ease-smooth); }
  .faq__item.is-open > div { grid-template-rows: auto 1fr; }
  .faq__a { min-height: 0; margin-top: 0; overflow: hidden; font-size: 16px; opacity: 0; transition: opacity .35s var(--ease-soft); }
  .faq__item.is-open .faq__a { opacity: 1; transition-delay: .1s; }
  .faq__a p { margin-top: -2px; padding: 0 44px 22px 0; }

  /* Završni poziv: znak gore, dugme preko cele širine */
  .cta { flex-direction: column; align-items: flex-start; gap: 0; padding: 32px 24px 24px; border-radius: 28px; }
  .cta__znak { display: block; order: -1; width: 62px; margin: 0 0 30px; }
  .cta__text { width: 100%; }
  .cta__title { font-size: clamp(38px, calc(11vw / var(--z, 1)), 48px); }
  .cta .btn { width: 100%; height: 58px; justify-content: space-between; padding: 0 22px; border-radius: 16px; }

  /* Podnožje: linkovi jedan ispod drugog, poravnati levo, sa linijama */
  .footer--home { padding: 32px 0 24px; }
  .footer--home .footer__links {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    width: 100%;
    border-top: 1px solid var(--linija);
  }
  .footer--home .footer__links li { padding: 15px 0; border-bottom: 1px solid var(--linija); font-size: 16px; min-width: 0; }
  .footer--home .footer__links li a { overflow-wrap: anywhere; }
  .footer--home .footer__links .icon { display: none; }
  .footer--home .footer__copy { border-bottom: 0 !important; padding-top: 18px !important; font-size: 12px !important; text-transform: uppercase; }
}

/* ---------- Animacije ----------
   Animiraju se samo transform i providnost, jer ih browser crta glatko.
   Uvod u hero delu čeka da se fontovi učitaju (main.js dodaje .is-ready). */

@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes rise-lg {
  from { opacity: 0; transform: translate3d(0, 2.4em, 0); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade-scale {
  from { opacity: 0; transform: scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes card-in {
  from { opacity: 0; transform: translate3d(-1.6em, 2.2em, 0) rotate(-7deg); }
  to   { opacity: 1; transform: none; }
}
@keyframes toast-in {
  from { opacity: 0; transform: translate3d(0, .8em, 0) scale(.96); }
  to   { opacity: 1; transform: none; }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes signal {
  0%, 100% { opacity: 1; }
  45%      { opacity: .3; }
}

.hero__text > *               { animation: rise 1.2s var(--ease-smooth) backwards; }
.hero__text > :nth-child(1)   { animation-delay: .05s; }
.hero__text > :nth-child(2)   { animation-delay: .13s; }
.hero__text > :nth-child(3)   { animation-delay: .21s; }
.hero__text > :nth-child(4)   { animation-delay: .29s; }
.hero__text > :nth-child(5)   { animation-delay: .37s; }
.hero__text > :nth-child(6)   { animation-delay: .45s; }

.mock__circle,
.mock__ring  { animation: fade-scale 1.8s var(--ease-smooth) .1s backwards; }
.mock__phone { animation: rise-lg 1.5s var(--ease-smooth) .3s backwards; }
.mock__card  { animation: card-in 1.7s var(--ease-smooth) .6s backwards; }
.mock__waves { animation: fade 1s var(--ease-soft) 1.3s backwards; }
.mock__toast { animation: toast-in 1.1s var(--ease-smooth) 1.5s backwards; }
.mock__waves path              { animation: signal 3s ease-in-out 2.3s infinite; }
.mock__waves path:nth-child(2) { animation-delay: 2.55s; }
.mock__waves path:nth-child(3) { animation-delay: 2.8s; }

/* Dok se fontovi ne učitaju, uvod čeka na prvom kadru. */
.js:not(.is-ready) .hero__text > *,
.js:not(.is-ready) .mock > *,
.js:not(.is-ready) .mock__waves path { animation-play-state: paused; }

/* Sekcije se pojavljuju dok skroluješ. main.js dodaje .is-visible
   i kašnjenje --d, pa elementi koji uđu zajedno dolaze jedan za drugim. */
.js .reveal,
.js [data-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  transition:
    opacity 1s var(--ease-soft) var(--d, 0s),
    transform 1.3s var(--ease-smooth) var(--d, 0s);
}
.js [data-stagger] > * { transform: translate3d(0, 18px, 0); }
.js .reveal.is-visible,
.js [data-stagger] > .is-visible { opacity: 1; transform: none; }

/* Drugi red naslova („muted“) stiže malo posle prvog. */
.js .reveal .title .muted {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, .35em, 0);
  transition:
    opacity 1s var(--ease-soft) calc(var(--d, 0s) + .15s),
    transform 1.2s var(--ease-smooth) calc(var(--d, 0s) + .15s);
}
.js .reveal.is-visible .title .muted { opacity: 1; transform: none; }

/* Talasi znaka pulsiraju kao signal (Razlika i završni poziv). */
.compare__card--nfc.is-visible .compare__art > path { animation: signal 3s ease-in-out .6s infinite; }
.compare__card--nfc.is-visible .compare__art > path:nth-of-type(2) { animation-delay: .85s; }
.compare__card--nfc.is-visible .compare__art > path:nth-of-type(3) { animation-delay: 1.1s; }
.cta.is-visible .cta__znak path { animation: signal 3s ease-in-out 1s infinite; }
.cta.is-visible .cta__znak path:nth-of-type(2) { animation-delay: 1.25s; }

/* Stavke u kartici cene dolaze jedna za drugom. */
.js .price-card .price-card__list li { opacity: 0; transform: translate3d(0, 10px, 0); }
.js .price-card.is-visible .price-card__list li { animation: rise-sm .8s var(--ease-smooth) forwards; }
.js .price-card.is-visible .price-card__list li:nth-child(1) { animation-delay: .35s; }
.js .price-card.is-visible .price-card__list li:nth-child(2) { animation-delay: .45s; }
.js .price-card.is-visible .price-card__list li:nth-child(3) { animation-delay: .55s; }
.js .price-card.is-visible .price-card__list li:nth-child(4) { animation-delay: .65s; }
@keyframes rise-sm {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: none; }
}

/* Dugmad se blago udube na pritisak. */
.btn { transition: background-color .2s, color .2s, scale .2s var(--ease-out); }
.btn:active { scale: .97; }

/* Meni na telefonu se otvara glatko, stavke jedna za drugom. */
.menu:not([hidden]) { animation: menu-in .45s var(--ease-smooth); }
.menu:not([hidden]) .menu__list li { animation: rise-sm .6s var(--ease-smooth) backwards; }
.menu:not([hidden]) .menu__list li:nth-child(2) { animation-delay: .04s; }
.menu:not([hidden]) .menu__list li:nth-child(3) { animation-delay: .08s; }
.menu:not([hidden]) .menu__list li:nth-child(4) { animation-delay: .12s; }
.menu:not([hidden]) .menu__list li:nth-child(5) { animation-delay: .16s; }
.menu:not([hidden]) .menu__login { animation: rise-sm .6s var(--ease-smooth) .2s backwards; }
@keyframes menu-in {
  from { opacity: 0; transform: translate3d(0, -10px, 0); }
  to   { opacity: 1; transform: none; }
}

/* Zamena kartica (Razlika na telefonu) i premeštanje kartica (Kartica na telefonu). */
@keyframes swap-in {
  from { opacity: 0; transform: translate3d(0, 14px, 0) scale(.985); }
  to   { opacity: 1; transform: none; }
}
@keyframes shuffle-a {
  0%   { translate: 0 0; z-index: 2; }
  45%  { translate: -14% 10%; z-index: 2; }
  55%  { z-index: 1; }
  100% { translate: 0 0; z-index: 1; }
}
@keyframes shuffle-b {
  0%   { translate: 0 0; z-index: 1; }
  45%  { translate: 12% -24%; z-index: 1; }
  55%  { z-index: 2; }
  100% { translate: 0 18%; z-index: 2; }
}
@keyframes shuffle-c {
  0%   { translate: 0 0; z-index: 1; }
  45%  { translate: -14% 10%; z-index: 1; }
  55%  { z-index: 2; }
  100% { translate: 0 0; z-index: 2; }
}
@keyframes shuffle-d {
  0%   { translate: 0 18%; z-index: 2; }
  45%  { translate: 12% -24%; z-index: 2; }
  55%  { z-index: 1; }
  100% { translate: 0 0; z-index: 1; }
}

/* Računar: blag odziv kad se mišem pređe preko elemenata. */
@media (hover: hover) and (min-width: 641px) {
  .feature__icon { transition: background-color .35s, color .35s, translate .5s var(--ease-smooth); }
  .feature:hover .feature__icon { background: var(--ugalj); color: var(--papir); translate: 0 -3px; }
  .step__art svg { transition: scale .8s var(--ease-smooth); }
  .step:hover .step__art svg { scale: 1.04; }
  .eq__tile { transition: translate .6s var(--ease-smooth); }
  .eq__item:hover .eq__tile { translate: 0 -4px; }
  .cards__item { transition: translate .7s var(--ease-smooth); }
  .cards__item:hover { translate: 0 -6px; }
  .compare__card { transition: translate .7s var(--ease-smooth); }
  .compare__card:hover { translate: 0 -4px; }
  .price-card { transition: translate .7s var(--ease-smooth), box-shadow .7s var(--ease-smooth); }
  .price-card:hover { translate: 0 -4px; box-shadow: 0 30px 60px -36px rgba(11, 11, 11, .35); }
}

/* ---------- 404 ---------- */

/* Cela strana je tačno jedan ekran, bez skrola: veličine se prilagođavaju visini ekrana. */
.nf-page {
  display: flex;
  flex-direction: column;
  height: calc(100vh / var(--z, 1));
  height: calc(100svh / var(--z, 1));
  overflow: hidden;
}
.nf-order { margin-left: auto; }

.nf {
  flex: 1;
  min-height: 0;
  display: grid;
  align-items: center;
  padding: clamp(10px, calc(3vh / var(--z, 1)), 40px) 0;
  text-align: center;
}
.nf__in { display: flex; flex-direction: column; align-items: center; }

/* „4 znak 4“: znak je visok koliko i cifre, a talasi tiho trepere. */
.nf__code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .2em;
  margin-top: clamp(10px, calc(2.6vh / var(--z, 1)), 36px);
  font-size: min(calc(37vw / var(--z, 1)), 300px, calc(29vh / var(--z, 1)));
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: .74;
}
.nf__code span { display: block; padding-top: .045em; }
.nf__signal { width: .69em; height: auto; flex: none; margin: 0 -.01em 0 .055em; }
.nf__wave--1 { fill: var(--grafit); }
.nf__wave--2 { fill: #A9A8A1; }

/* Animacija: strana ulazi redom, znak se „pali“ tačku po tačku, X se iscrta i strese.
   Posle toga signal stalno pokušava ponovo: tačka pulsira, talasi se pale od znaka ka X-u, X odbije. */
@keyframes nf-down  { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
@keyframes nf-up    { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes nf-fade  { from { opacity: 0; } to { opacity: 1; } }
@keyframes nf-pop   { 0% { opacity: 0; transform: scale(.2); } 70% { opacity: 1; transform: scale(1.18); } 100% { opacity: 1; transform: none; } }
@keyframes nf-draw  { 0% { stroke-dashoffset: 1; opacity: 0; } 1% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes nf-shake { 0%, 100% { transform: none; } 20% { transform: translateX(-7px) rotate(-3deg); } 45% { transform: translateX(6px) rotate(2deg); } 70% { transform: translateX(-3px); } }
@keyframes nf-pulse { 0%, 100% { transform: none; } 7% { transform: scale(1.14); } 18% { transform: none; } }
@keyframes nf-try   { 0%, 30%, 100% { opacity: 1; } 10% { opacity: .2; } }
@keyframes nf-deny  { 0%, 40%, 100% { transform: none; } 46% { transform: scale(1.14) rotate(5deg); } 53% { transform: scale(.95) rotate(-4deg); } 60% { transform: none; } }

.nf-page .header { animation: nf-down .7s var(--ease-out) both; }
.nf__in > .label { animation: nf-fade .8s var(--ease-soft) .05s both; }
.nf__code > span:first-child { animation: nf-up .8s var(--ease-out) .12s both; }
.nf__code > span:last-child { animation: nf-up .8s var(--ease-out) 1.45s both; }
.nf__signal { overflow: visible; }
.nf__signal circle, .nf__x { transform-box: fill-box; transform-origin: center; }
.nf__signal > circle { animation: nf-pop .55s var(--ease-out) .3s both, nf-pulse 3.6s ease-in-out 2.6s infinite; }
.nf__wave circle {
  --i: 0;
  animation: nf-pop .45s var(--ease-out) calc(var(--w) + var(--i) * .07s) both,
             nf-try 3.6s ease-in-out calc(2.6s + var(--w) - .3s + var(--i) * .07s) infinite;
}
.nf__wave--1 { --w: .55s; }
.nf__wave--2 { --w: .9s; }
.nf__wave circle:nth-child(2) { --i: 1; }
.nf__wave circle:nth-child(3) { --i: 2; }
.nf__wave circle:nth-child(4) { --i: 3; }
.nf__wave circle:nth-child(5) { --i: 4; }
.nf__wave circle:nth-child(6) { --i: 5; }
.nf__x path { stroke-dasharray: 1; animation: nf-draw .32s ease-out 1.25s both; }
.nf__x path + path { animation-delay: 1.45s; }
.nf__x { animation: nf-shake .5s ease-in-out 1.75s both, nf-deny 3.6s ease-in-out 2.6s infinite; }
.nf__title { animation: nf-up .9s var(--ease-out) .35s both; }
.nf__title .muted { display: inline-block; animation: nf-up .9s var(--ease-out) .5s both; }
.nf__lead { animation: nf-up .8s var(--ease-out) .65s both; }
.nf__ctas { animation: nf-up .8s var(--ease-out) .8s both; }
.nf-foot { animation: nf-fade 1s var(--ease-soft) 1s both; }

.nf__title { margin-top: clamp(16px, calc(4vh / var(--z, 1)), 56px); font-size: clamp(26px, min(calc(8.9vw / var(--z, 1)), calc(6.4vh / var(--z, 1))), 60px); }
.nf__lead {
  max-width: 36em;
  margin-top: clamp(8px, calc(1.8vh / var(--z, 1)), 20px);
  font-size: 16px;
  color: var(--grafit-tamni);
  text-wrap: pretty;
}
.nf__host { white-space: nowrap; }

.nf__ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(10px, calc(2vh / var(--z, 1)), 22px);
  margin-top: clamp(16px, calc(3.6vh / var(--z, 1)), 44px);
}
.nf__home { height: 56px; padding: 0 28px; gap: 16px; border-radius: 14px; font-size: 17px; }
.nf__login { display: inline-flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500; }
.nf__login .icon { width: 17px; height: 17px; }
.nf__login:hover { color: var(--grafit); }

.nf-foot { padding: clamp(10px, calc(2vh / var(--z, 1)), 22px) 0 clamp(12px, calc(2.4vh / var(--z, 1)), 26px); border-top: 1px solid var(--linija); }
.nf-foot__in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}
.nf-foot p { color: var(--grafit); }
.nf-foot a:hover { color: var(--grafit); }

/* Baš nizak ekran (npr. iPhone SE): manja dugmad i tekst, da 404 stane bez skrola */
@media (max-height: 600px) {
  .nf__lead { font-size: 14.5px; }
  .nf__home { height: 48px; }
  .nf__login { font-size: 15px; }
}
@media (min-width: 640px) {
  .nf__ctas { flex-direction: row; gap: 34px; }
  .nf__home { height: 54px; padding: 0 24px; font-size: 16px; }
  .nf__login { font-size: 16px; }
  .nf__lead { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal,
  .js [data-stagger] > *,
  .js .price-card .price-card__list li { opacity: 1; transform: none; }
}

/* ---------- Pravne stranice (/uslovi, /privatnost) ---------- */

.legal-page { display: flex; flex-direction: column; min-height: calc(100vh / var(--z, 1)); min-height: calc(100svh / var(--z, 1)); }
.legal-nav { display: flex; gap: 4px; margin-left: auto; }
.legal-nav a { padding: 8px 12px; border-radius: 10px; font-size: 15px; transition: background-color .2s; }
.legal-nav a:hover { background: var(--pesak); }
.legal-nav a[aria-current="page"] { background: var(--ugalj); color: var(--papir); }
.legal { flex: 1; padding: clamp(40px, calc(6vw / var(--z, 1)), 80px) 0 clamp(56px, calc(8vw / var(--z, 1)), 104px); }
.legal .title { margin-top: 14px; font-size: clamp(40px, calc(5.6vw / var(--z, 1)), 72px); }
.legal__updated { margin-top: 14px; font-size: 14px; color: var(--grafit); }
.legal section { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--linija); }
.legal section:first-of-type { border-top: 1.5px solid var(--ugalj); }
.legal h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; }
.legal p { margin-top: 12px; max-width: 42em; font-size: 16px; line-height: 1.6; color: var(--grafit-tamni); }
.legal p b { font-weight: 600; color: var(--ugalj); }
.legal a { color: var(--ugalj); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--linija); }
.legal a:hover { text-decoration-color: currentColor; }
.legal mark { padding: 1px 6px; border-radius: 6px; background: #F3E3B5; color: #6B4A12; font-family: var(--mono); font-size: .8em; letter-spacing: .04em; }
.legal__firm { display: grid; margin-top: 16px; max-width: 42em; }
.legal__firm div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linija); }
.legal__firm dt { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--grafit); padding-top: 3px; }
.legal__firm dd { font-size: 15.5px; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .legal__firm div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .legal-nav a { padding: 8px 9px; font-size: 14px; }
}
