/* ========================================================================
   VIVI BABY — sajt
   Tokeni i tipografija preuzeti iz Vivi Baby dizajn sistema
   (colors_and_type.css), komponente (Button, Badge, Stamp) prevedene iz
   React-a u čist CSS.
   ======================================================================== */

/* ---------- Fontovi ---------- */
@font-face {
  font-family: "Semplicita Pro";
  src: url("../fonts/SemplicitaPro-Regular.woff2") format("woff2"),
       url("../fonts/SemplicitaPro-Regular.ttf") format("truetype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Semplicita Pro";
  src: url("../fonts/SemplicitaPro-SemiBold.woff2") format("woff2"),
       url("../fonts/SemplicitaPro-SemiBold.ttf") format("truetype");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Semplicita Pro";
  src: url("../fonts/SemplicitaPro-Bold.woff2") format("woff2"),
       url("../fonts/SemplicitaPro-Bold.ttf") format("truetype");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- Tokeni ---------- */
:root {
  --vivi-black: #0a0a0a;
  --vivi-ink: #141414;
  --vivi-white: #ffffff;
  --vivi-paper: #fafafa;
  --vivi-smoke: #f2f2f2;
  --vivi-red: #e3001b;
  --vivi-red-deep: #b80016;

  --vivi-grey-200: #e5e5e5;
  --vivi-grey-300: #cfcfcf;
  --vivi-grey-400: #a3a3a3;
  --vivi-grey-500: #737373;
  --vivi-grey-600: #4a4a4a;

  --fg-1: var(--vivi-ink);
  --fg-2: var(--vivi-grey-600);
  --fg-3: var(--vivi-grey-500);

  --font-sans: "Semplicita Pro", ui-sans-serif, system-ui, -apple-system,
    "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(20px, 5vw, 64px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Osnova ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--vivi-white); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--fg-1);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; }
a { color: var(--vivi-black); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--vivi-black); text-decoration-thickness: 2px; }
a:focus-visible, input:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--vivi-red);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.page { min-height: 100vh; display: flex; flex-direction: column; background: var(--vivi-white); }
.red { color: var(--vivi-red); }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Komponente: Button ---------- */
.btn {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 2px solid var(--vivi-black);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 15px;
  padding: 14px 24px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
  background: var(--vivi-white);
  color: var(--vivi-black);
  box-shadow: 4px 4px 0 var(--vivi-black);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: inherit; text-decoration: none; }
.btn--lg { font-size: 17px; padding: 16px 30px; }
.btn--sm { font-size: 13px; padding: 10px 18px; }
.btn--primary { background: var(--vivi-black); color: var(--vivi-white); box-shadow: 4px 4px 0 var(--vivi-red); }
.btn--primary:hover { color: var(--vivi-white); }
.btn--accent { background: var(--vivi-red); color: var(--vivi-white); border-color: var(--vivi-red); box-shadow: 4px 4px 0 var(--vivi-black); }
.btn--accent:hover { color: var(--vivi-white); }
.btn--ghost { background: transparent; box-shadow: none; }
@media (hover: hover) {
  .btn:not(.btn--ghost):not(:disabled):hover { transform: translate(-1px, -1px); }
  a.perk:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--vivi-black); text-decoration: none; }
}
.btn:not(.btn--ghost):not(:disabled):active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--vivi-black); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ---------- Komponente: Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--vivi-black);
  color: #fff;
}
.badge--red { background: var(--vivi-red); }
.badge--ghost { background: transparent; color: var(--vivi-black); border: 2px solid var(--vivi-black); }

/* ---------- Komponente: Stamp ---------- */
.stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--vivi-red);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 2px solid var(--vivi-black);
  transform: rotate(-8deg);
  text-align: center;
  line-height: 1.2;
  box-shadow: 4px 4px 0 var(--vivi-black);
}

/* ---------- Kartica sa „pečat“ senkom ---------- */
.card {
  background: var(--vivi-white);
  border: 2px solid var(--vivi-black);
  border-radius: 20px;
  box-shadow: 6px 6px 0 var(--vivi-black);
}

/* ---------- Zaglavlje ---------- */
.site-header {
  height: clamp(64px, 8vw, 80px);
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 2px solid var(--vivi-black);
  position: relative;
  z-index: 2;
  background: var(--vivi-white);
}
.site-header--plain {
  height: auto;
  border-bottom: 0;
  padding: 20px var(--gutter);
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}
.logo { display: flex; }
.logo img { height: clamp(40px, 5vw, 48px); width: auto; display: block; }
.site-header--plain .logo img { height: 46px; }
.header-link {
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.back-link { font-size: 15px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Podnožje ---------- */
.site-footer { background: var(--vivi-black); color: var(--vivi-white); padding: 40px var(--gutter) 32px; }
.site-footer__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 28px; }
.site-footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.site-footer__company { display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.6; color: var(--vivi-grey-300); }
.site-footer__company strong { font-size: 16px; font-weight: 700; color: var(--vivi-white); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-start; font-size: 14px; font-weight: 600; }
.site-footer nav a, .site-footer nav a:hover { color: var(--vivi-white); }
.site-footer__legal { border-top: 1px solid var(--vivi-grey-600); padding-top: 16px; font-size: 13px; color: var(--vivi-grey-400); }

/* ========================================================================
   USKORO (početna)
   ======================================================================== */
.soon {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(56px, 12vw, 128px) var(--gutter) clamp(64px, 12vw, 128px);
  width: 100%;
}
.soon__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
}
.soon h1 {
  margin: 0; font-weight: 700; font-size: clamp(44px, 11vw, 88px);
  line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance;
}
.soon__lede {
  margin: 0; font-size: clamp(18px, 2.4vw, 22px); line-height: 1.55;
  color: var(--fg-2); max-width: 520px; text-wrap: pretty;
}
.social { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 12px; }
.social__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
  border: 2px solid var(--vivi-black); border-radius: 999px; font-weight: 700;
  font-size: 15px; text-decoration: none;
}
.social__mail { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-weight: 600; font-size: 15px; }

/* ---------- Forma za prijavu ---------- */
.signup { margin-top: 8px; width: 100%; text-align: left; padding: clamp(20px, 3vw, 28px); }
.signup form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.signup label.eyebrow { color: var(--fg-1); }
.signup__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.signup__row .btn { flex: 1 0 auto; }
.signup input[type="email"] {
  flex: 1 1 220px; min-width: 0; font-family: var(--font-sans); font-size: 17px;
  min-height: 52px; background: var(--vivi-white); border: 2px solid var(--vivi-black);
  border-radius: 12px; padding: 12px 16px; color: var(--fg-1);
}
.signup input[type="email"][aria-invalid="true"] { border-color: var(--vivi-red); }
.signup__consent {
  display: flex; align-items: flex-start; gap: 12px; font-size: 14px;
  line-height: 1.5; color: var(--fg-2); cursor: pointer;
}
.signup__consent input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--vivi-red); }
.field-error { font-size: 14px; font-weight: 600; color: var(--vivi-red); }
.server-error {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px;
  border: 2px solid var(--vivi-red); border-radius: 12px; font-size: 15px;
  line-height: 1.5; color: var(--fg-1);
}
.server-error strong { color: var(--vivi-red); }
.signup__success { display: flex; gap: 16px; align-items: flex-start; }
.signup__success img { width: 48px; height: 48px; flex: none; }
.signup__success-text { display: flex; flex-direction: column; gap: 6px; }
.signup__success-title { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.signup__success-body { font-size: 16px; line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
/* Zamka za botove — ljudi ovo polje ne vide */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ========================================================================
   POLITIKA PRIVATNOSTI
   ======================================================================== */
.legal {
  flex: 1; max-width: 720px; width: 100%; margin: 0 auto;
  padding: clamp(24px, 6vw, 72px) var(--gutter) clamp(64px, 9vw, 112px);
  display: flex; flex-direction: column; gap: 36px;
}
.legal__head { display: flex; flex-direction: column; gap: 14px; }
.legal h1 { margin: 0; font-weight: 700; font-size: clamp(38px, 7vw, 64px); line-height: 1.04; letter-spacing: -0.02em; }
.legal__date { font-size: 15px; color: var(--fg-3); }
.legal__intro { margin: 0; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.legal section { display: flex; flex-direction: column; gap: 12px; border-top: 2px solid var(--vivi-black); padding-top: 28px; }
.legal h2 { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.25; }
.legal p, .legal ul { margin: 0; font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.legal__note { background: var(--vivi-smoke); border-radius: 20px; padding: 24px; font-size: 16px; line-height: 1.6; }

/* ========================================================================
   LANDING (ponuda)
   ======================================================================== */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.h2 { margin: 0; font-weight: 600; font-size: clamp(30px, 4.5vw, 44px); line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }

.hero {
  padding-top: 8px; padding-bottom: clamp(48px, 8vw, 96px);
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(28px, 5vw, 64px);
}
.hero__media { flex: 1 1 360px; position: relative; }
.hero__img {
  border: 2px solid var(--vivi-black); border-radius: 20px; box-shadow: 6px 6px 0 var(--vivi-black);
  overflow: hidden; aspect-ratio: 4 / 3; background: var(--vivi-smoke);
}
.hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__stamp { position: absolute; top: -18px; right: -6px; }
.hero__stamp .stamp { font-size: 22px; letter-spacing: 0; }
.hero__text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 18px; }
.hero h1 { margin: 0; font-weight: 700; font-size: clamp(40px, 7vw, 72px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.hero__lede { margin: 0; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.price { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.price__now { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.price__was { font-size: 18px; color: var(--fg-3); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }

.benefits { background: var(--vivi-paper); border-top: 2px solid var(--vivi-black); border-bottom: 2px solid var(--vivi-black); }
.benefits__inner { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); display: flex; flex-direction: column; gap: clamp(28px, 4vw, 48px); }
.benefits__head { display: flex; flex-direction: column; gap: 14px; max-width: 640px; }
.benefits__head p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--fg-2); text-wrap: pretty; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.benefit { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.benefit__num { font-size: 14px; font-weight: 700; color: var(--vivi-red); }
.benefit__title { font-size: 22px; font-weight: 600; line-height: 1.2; }
.benefit__body { font-size: 16px; line-height: 1.55; color: var(--fg-2); }

.offer { background: var(--vivi-black); color: var(--vivi-white); }
.offer__inner {
  padding-top: clamp(48px, 8vw, 88px); padding-bottom: clamp(48px, 8vw, 88px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px;
}
.offer__copy { display: flex; flex-direction: column; gap: 14px; flex: 1 1 320px; align-items: flex-start; }
.offer__title { font-size: clamp(28px, 4vw, 40px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
.offer__note { font-size: 16px; line-height: 1.55; color: var(--vivi-grey-300); }
.offer__price { display: flex; flex-direction: column; gap: 4px; flex: 0 1 auto; }
.offer__price s { font-size: 20px; color: var(--vivi-grey-400); }
.offer__big { font-size: clamp(48px, 8vw, 72px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.offer__big span { font-size: 0.4em; }
.offer__save { font-size: 14px; color: var(--vivi-grey-300); }

.order { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(48px, 8vw, 96px); }
.order__box {
  border: 2px solid var(--vivi-black); border-radius: 32px; box-shadow: 6px 6px 0 var(--vivi-red);
  padding: clamp(24px, 5vw, 56px); display: flex; flex-direction: column; gap: 20px; align-items: flex-start;
}
.order__box p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--fg-2); max-width: 560px; text-wrap: pretty; }
.order__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.faq { max-width: 800px; margin: 0 auto; padding: 0 var(--gutter) clamp(64px, 9vw, 112px); display: flex; flex-direction: column; gap: 20px; }
.faq__list { border-top: 2px solid var(--vivi-black); }
.faq details { border-bottom: 2px solid var(--vivi-black); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; gap: 16px; padding: 20px 0; min-height: 44px; font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { font-size: 26px; font-weight: 400; line-height: 1; transition: transform 220ms var(--ease-out); }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; font-size: 16px; line-height: 1.6; color: var(--fg-2); max-width: 640px; }

.sticky-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-top: 2px solid var(--vivi-black);
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  transform: translateY(110%);
  transition: transform 220ms var(--ease-out);
}
.sticky-bar.is-visible { transform: translateY(0); }
.sticky-bar__info { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-bar__price { font-size: 18px; font-weight: 700; }
@media (min-width: 720px) { .sticky-bar { display: none; } }
@media (max-width: 719.98px) { .has-sticky { padding-bottom: 80px; } }

/* ========================================================================
   VIVI KLUB (skriveni meni sa pogodnostima)
   ======================================================================== */
.club { flex: 1; padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(64px, 9vw, 112px); display: flex; flex-direction: column; gap: clamp(32px, 5vw, 56px); }
.club__head { display: flex; flex-direction: column; gap: 16px; max-width: 680px; align-items: flex-start; }
.club h1 { margin: 0; font-weight: 700; font-size: clamp(40px, 8vw, 80px); line-height: 1.04; letter-spacing: -0.02em; text-wrap: balance; }
.club__lede { margin: 0; font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--fg-2); text-wrap: pretty; }
.perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; }
.perk { display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: inherit; transition: transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out); }
a.perk { -webkit-tap-highlight-color: transparent; }
a.perk:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--vivi-black); }
.perk__media { position: relative; aspect-ratio: 16 / 10; background: var(--vivi-smoke); border-bottom: 2px solid var(--vivi-black); }
.perk__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.perk__media .stamp { position: absolute; top: 14px; right: 14px; width: 76px; height: 76px; font-size: 18px; letter-spacing: 0; }
.perk__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.perk__title { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
.perk__text { font-size: 16px; line-height: 1.55; color: var(--fg-2); }
.perk__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.perk__price { font-size: 22px; font-weight: 700; }
.perk__price s { font-size: 15px; font-weight: 400; color: var(--fg-3); margin-left: 6px; }
.perk__cta { font-weight: 700; font-size: 15px; }
.perk--soon { border-style: dashed; box-shadow: none; background: var(--vivi-paper); }
.perk--soon .perk__media { display: flex; align-items: center; justify-content: center; background: var(--vivi-paper); border-bottom-style: dashed; }
.perk--soon .perk__media img { width: 45%; height: auto; opacity: 0.18; }
.code {
  display: inline-flex; align-items: center; gap: 10px; font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-weight: 700; font-size: 18px; letter-spacing: 0.08em; padding: 8px 14px;
  border: 2px dashed var(--vivi-black); border-radius: 10px; background: var(--vivi-white); cursor: pointer;
}
.club__signup { max-width: 640px; }

/* ========================================================================
   TELEFON
   ======================================================================== */
@media (max-width: 559.98px) {
  /* Forma i poručivanje: dugmad preko cele širine, lako za palac */
  .signup__row .btn,
  .order__actions,
  .order__actions .btn,
  .actions .btn { width: 100%; }
  .order__actions { flex-direction: column; gap: 12px; }
  .order__box { border-radius: 24px; }
  .order__box .h2 { font-size: 30px; }

  /* Početna: forma bliže vrhu, da se vidi bez skrolovanja */
  .soon { padding-top: 36px; padding-bottom: 56px; }
  .soon__inner { gap: 16px; }
  .soon h1 { font-size: clamp(38px, 11.5vw, 52px); }

  .hero__stamp { right: -4px; }
  .hero__stamp .stamp { width: 84px; height: 84px; font-size: 19px; }
  .price__now { font-size: 28px; }

  .faq summary { font-size: 17px; }
  .site-footer { padding-top: 32px; }
  .site-footer nav { gap: 4px 20px; }
  .site-footer nav a { min-height: 36px; display: inline-flex; align-items: center; }
}
