/* fer.ba — zajednički stil (boje i font iz aplikacije) */
:root {
  --accent: #19BF68;
  --accent-dark: #0E9F57;
  --tint: #E4F7EC;
  --ink: #0B1220;
  --grey: #5B6472;
  --ground: #F4F5F7;
  --chip: #EEF0F3;
  --border: #D7DBE2;
  --hairline: #E6E8EC;
  --white: #FFFFFF;
  --success: #0E7A55;
  --warning: #B45309;
  --warning-bg: #FFF4D6;
  --danger: #E5484D;
  --danger-bg: #FFE9E9;
  --radius: 16px;
  --radius-lg: 24px;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}
a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 700; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0 0 14px; }
.muted { color: var(--grey); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--hairline); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 36px; height: 36px; flex: none; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink); }
.nav a:hover { color: var(--accent-dark); text-decoration: none; }
@media (max-width: 640px) { .nav .hide-sm { display: none; } }

/* ---------- dugmad ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; border: 2px solid transparent; cursor: pointer; transition: transform .08s ease, background .15s ease; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 8px 20px rgba(25,191,104,0.28); }
.btn-primary:hover { background: var(--accent-dark); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: #1b2434; }
.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); }
.btn[aria-disabled="true"] { opacity: .55; cursor: default; box-shadow: none; }
.btn[aria-disabled="true"]:hover { transform: none; }
.btn svg { width: 22px; height: 22px; flex: none; }
.store-btns { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn { display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; border-radius: 14px; background: var(--ink); color: var(--white); line-height: 1.1; text-align: left; min-width: 190px; }
.store-btn:hover { text-decoration: none; background: #1b2434; }
.store-btn small { display: block; font-size: 11px; font-weight: 500; opacity: .8; }
.store-btn strong { display: block; font-size: 17px; font-weight: 600; }
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn.soon { background: var(--chip); color: var(--ink); }
.store-btn.soon:hover { background: var(--border); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--tint); color: var(--success); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 48px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); color: var(--grey); max-width: 520px; margin: 18px 0 28px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--grey); }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-end; gap: 18px; min-height: 520px; }
.phone { width: 230px; border-radius: 34px; background: var(--ink); padding: 10px; box-shadow: 0 30px 60px rgba(11,18,32,0.22); flex: none; }
.phone img { border-radius: 26px; width: 100%; height: auto; }
.phone.back { width: 200px; transform: translateY(24px) rotate(-6deg); opacity: .95; }
.phone.front { transform: translateY(0) rotate(3deg); }
@media (max-width: 860px) {
  .hero { padding-top: 36px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .phones { min-height: 0; margin-top: 8px; }
  .phone { width: 200px; }
  .phone.back { width: 170px; }
}
@media (max-width: 420px) { .phone.back { display: none; } .phone.front { transform: none; } }

/* ---------- sekcije ---------- */
section { padding: 56px 0; }
section.alt { background: var(--ground); }
.section-head { max-width: 640px; margin-bottom: 28px; }
.section-head p { color: var(--grey); font-size: 17px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 22px; }
.card .icon { width: 44px; height: 44px; border-radius: 14px; background: var(--tint); display: grid; place-items: center; margin-bottom: 14px; color: var(--accent-dark); }
.card .icon svg { width: 22px; height: 22px; }
.card p { color: var(--grey); font-size: 15px; margin: 0; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); counter-reset: step; }
.step { position: relative; padding: 22px 22px 22px 22px; border-radius: var(--radius-lg); background: var(--white); border: 1px solid var(--hairline); }
.step::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--white); font-weight: 700; margin-bottom: 12px; }
.step p { color: var(--grey); font-size: 15px; margin: 0; }
.cta { background: var(--accent); color: var(--white); border-radius: var(--radius-lg); padding: 36px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.cta h2 { color: var(--white); margin: 0 0 6px; }
.cta p { margin: 0; opacity: .92; }
.cta .btn-dark { box-shadow: none; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 32px 0; font-size: 14px; color: var(--grey); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--grey); }

/* ---------- dokumenti (privatnost, uslovi) ---------- */
.doc { max-width: 760px; margin: 0 auto; padding: 48px 20px 72px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); }
.doc h2 { font-size: 22px; margin-top: 36px; }
.doc h3 { font-size: 17px; margin-top: 22px; }
.doc p, .doc li { font-size: 16px; color: #1f2733; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc .meta { color: var(--grey); font-size: 14px; margin-bottom: 28px; }
.doc .box { background: var(--ground); border-radius: var(--radius); padding: 16px 18px; margin: 18px 0; font-size: 15px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0 20px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.doc th { font-weight: 600; background: var(--ground); }

/* ---------- auth / status stranice ---------- */
.status { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px; background: var(--ground); }
.status .panel { width: 100%; max-width: 440px; background: var(--white); border-radius: var(--radius-lg); padding: 32px 28px; text-align: center; border: 1px solid var(--hairline); }
.status .mark { width: 72px; height: 72px; border-radius: 22px; margin: 0 auto 18px; }
.status h1 { font-size: 24px; }
.status p { color: var(--grey); font-size: 15px; }
.status .btn { width: 100%; margin-top: 10px; }
.status .error { background: var(--danger-bg); color: var(--danger); border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 500; }
.hidden { display: none !important; }
