/* 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, 5vw, 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, 4.6vw, 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(100vh - var(--header-h));
  height: calc(100dvh - 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, 6vw, 88px) 0 clamp(64px, 8vw, 112px);
}

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

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

.hero__title {
  margin-top: 22px;
  font-size: clamp(44px, 6.4vw, 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, 1.4vw, 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; }
}

/* ---------- 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(100cqw / 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(100cqw / 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;
  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 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: 7.4cqw 7cqw 5.4cqw 7.5cqw;   /* mere iz dizajna kartice (PDF) */
}
.nfc-card__znak { width: 9.5cqw; height: 9.5cqw; }
.nfc-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 4cqw;
}
.nfc-card .wordmark { font-size: 8.9cqw; }
.nfc-card .wordmark__muted { color: var(--grafit-svetli); }
.nfc-card__label {
  font-family: var(--mono);
  font-size: 2.95cqw;
  letter-spacing: .12em;
  color: var(--grafit-svetli);
  white-space: nowrap;
}

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

.what {
  padding: clamp(64px, 9vw, 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, 2.4vw, 28px);
  row-gap: 16px;
  max-width: 780px;
  margin: clamp(40px, 5vw, 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, 1.6vw, 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, 1.3vw, 15px);
  font-weight: 500;
  line-height: 1.3;
}
.eq__op {
  grid-row: 1;
  align-self: center;
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 300;
  line-height: 1;
  color: var(--grafit-svetli);
}

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

.section { padding: clamp(72px, 10vw, 128px) 0; }
.section--tight-top { padding-top: clamp(24px, 3vw, 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, 5vw, 64px);
}
.step {
  padding: 0 clamp(16px, 1.6vw, 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, 1.7vw, 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, 5vw, 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, 5vw, 56px);
}
.compare__card {
  padding: clamp(24px, 2.6vw, 32px) clamp(20px, 2.4vw, 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, 1.7vw, 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, 5vw, 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);
}
.back-card__body {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 5.6cqw 6.9cqw 5.4cqw 7.2cqw;   /* mere iz dizajna kartice (PDF) */
}
.back-card__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 4cqw;
}
.back-card__name {
  font-size: 9.6cqw;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}
.back-card__role {
  margin-top: 1cqw;
  font-size: 4.2cqw;
  line-height: 1.2;
  color: var(--grafit);
}
.back-card__logo {
  flex: none;
  display: grid;
  place-items: center;
  width: 17.6cqw;
  height: 7cqw;
  margin-top: .3cqw;
  border: 1px dashed #B5B2AA;
  border-radius: 1.4cqw;
  font-family: var(--mono);
  font-size: 2.3cqw;
  letter-spacing: .1em;
  color: var(--grafit);
}
.back-card__bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 4cqw;
}
.back-card__rows {
  display: grid;
  gap: .75cqw;
  min-width: 0;
  line-height: 1.2;
}
.back-card__rows div {
  display: flex;
  align-items: baseline;
}
.back-card__rows dt {
  width: 12.1cqw;
  flex: none;
  font-family: var(--mono);
  font-size: 2.8cqw;
  letter-spacing: .08em;
  color: var(--grafit);
}
.back-card__rows dd {
  font-size: 4cqw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.back-card__qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.3cqw;
  flex: none;
}
.back-card__qr svg { width: 18.2cqw; height: 18.2cqw; color: var(--ugalj); }
.back-card__qr .wordmark { font-size: 2.2cqw; }

.dims { background: var(--pesak); }
.dims__body {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4cqw;
  padding: 7cqw 8cqw;
}
.dims__text { max-width: 46cqw; }
.dims__label {
  font-family: var(--mono);
  font-size: 2.4cqw;
  letter-spacing: .12em;
  color: var(--grafit);
}
.dims__value {
  margin-top: 2cqw;
  font-size: 9.6cqw;
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: .95;
}
.dims__note {
  margin-top: 3cqw;
  font-size: 3cqw;
  line-height: 1.4;
  color: var(--grafit-tamni);
}
.dims__art { width: 34cqw; 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, 2.4vw, 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, 4.6vw, 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__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, 4vw, 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, 1.6vw, 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, 7vw, 88px); }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(36px, 5.5vw, 64px);
  border-radius: clamp(20px, 2.4vw, 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, 4.8vw, 64px); }
.cta .btn { margin-top: 28px; }
.cta__znak {
  width: clamp(110px, 13vw, 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__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%; }
}

/* ---------- 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; }

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

.nf-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
}
.nf-order { margin-left: auto; }

.nf {
  flex: 1;
  display: grid;
  align-items: center;
  padding: clamp(56px, 10vh, 96px) 0 clamp(48px, 9vh, 88px);
  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(28px, 4vh, 44px);
  font-size: min(37vw, 330px, 42vh);
  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; }
.nf__wave { animation: nf-wave 2.8s var(--ease-soft) infinite; }
.nf__wave--2 { animation-delay: .35s; }
@keyframes nf-wave {
  0%, 60%, 100% { opacity: 1; }
  30% { opacity: .25; }
}

.nf__title { margin-top: clamp(40px, 7vh, 84px); font-size: clamp(30px, 8.9vw, 64px); }
.nf__lead {
  max-width: 36em;
  margin-top: 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: 22px;
  margin-top: 48px;
}
.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: 22px 0 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); }

@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] > * { opacity: 1; transform: none; }
}
