:root {
  --brand: #2f5bd3;
  --brand-strong: #1e3fa6;
  --on-brand: #ffffff;
  --bg: #ffffff;
  --surface: #f4f6fa;
  --text: #1b1f29;
  --muted: #4a5263;
  --border: #d9dee8;
  --notice: #fff6e0;
  --on-notice: #5c4300;
  --t-r: #b5460f;
  --t-i: #1f5fad;
  --t-a: #8a3fa0;
  --t-s: #1e7a4c;
  --t-e: #b02a37;
  --t-c: #4b5563;
  --radius: 16px;
  --max: 1080px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #7fa2ff;
    --brand-strong: #a9c0ff;
    --on-brand: #0d1530;
    --bg: #0f131b;
    --surface: #1a202b;
    --text: #eef1f7;
    --muted: #aeb6c6;
    --border: #2c3442;
    --notice: #3a3018;
    --on-notice: #f5dc9b;
    color-scheme: dark;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  background: var(--bg);
  padding: 8px 12px;
  z-index: 10;
}

/* Zaglavlje */
.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 15px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 10px 0;
}

.site-nav a:hover {
  color: var(--text);
}

/* Uvod */
.hero {
  padding: 48px 0 32px;
}

.hero .wrap {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 600;
  font-size: 15px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.25;
}

h3 {
  margin: 0 0 6px;
  font-size: 19px;
  line-height: 1.3;
}

.lead {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 19px;
  max-width: 34em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 600;
  text-decoration: none;
}

.button[aria-disabled="true"] {
  background: var(--surface);
  color: var(--muted);
  border: 1px solid var(--border);
}

.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  color: var(--muted);
  font-size: 15px;
}

.facts li::before {
  content: "✓ ";
  color: var(--t-s);
  font-weight: 700;
}

.phone {
  justify-self: center;
  width: min(300px, 80vw);
  border: 10px solid #11151d;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(20, 30, 60, 0.25);
  background: #ffffff;
}

/* Sekcije */
section {
  padding: 48px 0;
}

.section-alt {
  background: var(--surface);
}

.section-intro {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 40em;
}

.grid {
  display: grid;
  gap: 16px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.section-alt .card {
  background: var(--bg);
}

.card p {
  margin: 0;
  color: var(--muted);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-weight: 700;
}

.audience ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

/* Tipovi interesovanja */
.types .card {
  border-left: 6px solid var(--type);
}

.types h3 {
  color: var(--type);
}

@media (prefers-color-scheme: dark) {
  .types h3 {
    color: var(--text);
  }
}

/* Snimci ekrana */
.shots {
  display: grid;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shots figure {
  margin: 0;
}

.shots img {
  width: min(260px, 72vw);
  margin: 0 auto;
  border: 8px solid #11151d;
  border-radius: 36px;
  background: #ffffff;
}

.shots figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--muted);
  font-size: 15px;
}

.notice {
  background: var(--notice);
  color: var(--on-notice);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.notice p {
  margin: 0;
}

.notice p + p {
  margin-top: 10px;
}

/* Podnožje */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0 0 10px;
  max-width: 52em;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 16px;
}

/* Tekstualne stranice (politika privatnosti) */
.doc {
  padding: 40px 0 56px;
}

.doc .wrap {
  max-width: 760px;
}

.doc h1 {
  font-size: clamp(30px, 5vw, 40px);
}

.doc h2 {
  margin-top: 36px;
  font-size: 23px;
}

.doc p,
.doc li {
  color: var(--muted);
}

.doc strong {
  color: var(--text);
}

.updated {
  margin-top: 0;
  font-size: 15px;
}

@media (min-width: 720px) {
  .hero {
    padding: 72px 0 48px;
  }

  .hero .wrap {
    grid-template-columns: 1.2fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .shots {
    grid-template-columns: repeat(3, 1fr);
  }

  section {
    padding: 64px 0;
  }
}

@media (max-width: 420px) {
  .site-nav {
    gap: 14px;
  }

  .site-nav .optional {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
