/* ========== FONTS ========== */
@font-face { font-family: 'Geist'; src: url('fonts/GeistVF.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Geist'; src: url('fonts/GeistVF-SemiBold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }

/* ========== RESET & BASE ========== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

:root {
  --fg: #1a1a2e;
  --fg-60: rgb(26 26 46 / .6);
  --fg-30: rgb(26 26 46 / .3);
  --border: rgb(26 26 46 / .15);
  --divider: rgb(26 26 46 / .08);
  --ghost-hover: rgb(26 26 46 / .06);
  --ghost-active: rgb(26 26 46 / .12);
  --brand: #1072b8;
  --brand-80: rgb(16 114 184 / .8);
  --brand-70: rgb(16 114 184 / .7);
  --brand-15: rgb(16 114 184 / .15);
  --brand-8: rgb(16 114 184 / .08);
  --bg: #f0f6fc;
  --surface: #fff;
  --surface-2: #f6f8f8;
  --ease: cubic-bezier(.4, 0, .2, 1);
}

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  font-size: 15px;
  line-height: 20px;
  background: var(--bg);
  color: var(--fg);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
}

/* ========== SITE NAV ========== */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 53px;
  padding: 0 calc((100% - min(100%, 1240px)) / 2 + 1.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgb(240 246 252 / .8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.site-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 15px; line-height: 20px;
  font-weight: 600;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav-icon {
  width: 1.25em;
  height: 1.25em;
}

.site-nav-logo:hover { color: var(--brand); }

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: relative;
}

.site-nav-links a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  color: var(--fg-60);
  text-decoration: none;
  border-radius: 9999px;
  transition: color 0.15s var(--ease);
}

.site-nav-links a:hover { color: var(--fg); }
.site-nav-links a.active { color: var(--fg); font-weight: 600; }

/* ========== SLIDING PILL (anchor positioning) ========== */
.site-nav-links a.active { anchor-name: --active; }
.site-nav-links:has(a:hover) a.active { anchor-name: unset; }
.site-nav-links a:hover { anchor-name: --active; }

.site-nav-links::after {
  content: "";
  position: absolute;
  position-anchor: --active;
  top: anchor(top);
  left: anchor(left);
  width: anchor-size(width);
  height: anchor-size(height);
  background: var(--ghost-hover);
  border-radius: 9999px;
  pointer-events: none;
  transition: top 0.2s var(--ease), left 0.2s var(--ease), width 0.2s var(--ease), height 0.2s var(--ease);
}

/* ========== HAMBURGER ========== */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}

.site-nav.open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-nav.open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-nav.open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .site-nav {
    top: 8px;
    height: 48px;
    margin: 8px max(8px, env(safe-area-inset-right)) 0 max(8px, env(safe-area-inset-left));
    padding: 0 0.5rem 0 1rem;
    flex-wrap: nowrap;
    align-items: center;
    background: rgb(255 255 255 / .8);
    border: 1px solid var(--border);
    border-radius: 16px;
    z-index: 50;
    transition: border-radius 0.15s var(--ease);
  }
  .site-nav.open {
    border-radius: 16px 16px 0 0;
    background: var(--surface);
  }
  .site-nav-logo { font-size: 15px; line-height: 20px; }
  .nav-toggle {
    display: flex;
    padding: 10px;
  }

  .site-nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: -1px;
    right: -1px;
    flex-direction: column;
    gap: 2px;
    padding: 0.35rem 1rem 0.75rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 8px 24px rgb(0 0 0 / .2);
    transform-origin: top center;
  }

  .site-nav.open .site-nav-links {
    display: flex;
    animation: menuSlideIn 0.15s ease-out;
  }

  @keyframes menuSlideIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
  }

  .site-nav-links { align-items: stretch; }

  .site-nav-links a {
    font-size: 15px; line-height: 20px;
    padding: 0 12px;
    border-radius: 8px;
    height: auto;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .site-nav-links a:active {
    background: var(--ghost-active);
  }

  .site-nav-links a.active {
    anchor-name: unset;
    background: var(--ghost-hover);
    font-weight: 600;
  }

  .site-nav-links::after { display: none; }
}

/* ========== LAYOUT ========== */
.app { max-width: 1240px; margin: 0 auto; padding: 2rem 1.5rem; }

.app-header { text-align: left; padding: 2rem 0 2.5rem; margin-bottom: 2rem; }
.app-header h1 {
  font-size: 34px; font-weight: 600; color: var(--fg); letter-spacing: -0.2px;
  max-width: 760px;
  line-height: 40px;
}
.app-header h1 .icon-group { white-space: nowrap; }
.app-header h1 .inline-icon {
  display: inline-block; width: 0.85em; height: 0.85em; vertical-align: -0.05em;
  margin: 0 0.05em;
}
.app-header p { color: var(--fg-60); margin-top: 0.5rem; font-size: 15px; line-height: 20px; }

.main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.main-grid > div { min-width: 0; }

/* ========== MOBILE STICKY CTA (hidden on desktop) ========== */
.mobile-sticky-cta { display: none; }

@media (max-width: 900px) {
  /* === LAYOUT === */
  .app { padding: 0.75rem 0.75rem; }
  .main-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .preview-area { position: static !important; order: -1; }

  /* === COMPACT HEADER — brze do sadrzaja === */
  .app-header {
    padding: 2.5rem 0 4rem; margin-bottom: 0.5rem; text-align: center;
  }
  .app-header h1 { font-size: 26px; max-width: none; line-height: 32px; }
  .app-header p { font-size: 13px; line-height: 16px; margin-top: 0.25rem; }
  .powered-by { margin-top: 0.35rem; justify-content: center; font-size: 13px; line-height: 16px; }

  /* === COMPACT PREVIEW — samo potpis === */
  .email-mockup-toolbar,
  .email-mockup-header,
  .email-mockup-body .email-text,
  .email-mockup-body .email-greeting,
  .email-mockup-body .email-sig-separator { display: none; }
  .email-mockup { margin-bottom: 0; }
  .email-mockup-body { padding: 12px; }

  /* Sakrij mockup CTA na mobitelu — sticky ga zamjenjuje */
  .email-mockup-body .mockup-cta { display: none; }

  /* Sakrij "Kako postaviti potpis" na mobitelu */
  .preview-area > div:last-child { display: none; }
  .mobile-preview-btn { display: none !important; }

  /* === STEP LABELS === */
  .step-label { text-align: center; margin-bottom: 0.5rem; }
  .main-grid > div:first-child > .step-label { margin-top: 3rem; }

  /* === STYLE TABS === */
  .mobile-style-tabs { margin-bottom: 0.5rem; }

  /* === FORM — single column, veci inputi === */
  .card { padding: 1.25rem; }
  .card + .card { margin-top: 0.75rem; }
  .card-title { margin-bottom: 1rem; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; gap: 0.5rem; }
  .form-group { margin-bottom: 0.75rem; }
  .form-group input,
  .form-group textarea,
  .form-group select {
    padding: 11px 12px; font-size: 16px; min-height: 44px;
  }
  .form-group label { font-size: 13px; line-height: 16px; margin-bottom: 0.25rem; }

  /* === SLIDERS — veci touch === */
  .slider-row input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; }
  .color-preset { width: 36px; height: 36px; }
  .color-input-wrap input[type="text"] { font-size: 16px; height: 36px; width: 96px; }
  .toast { bottom: calc(120px + env(safe-area-inset-bottom)); }

  /* === STICKY CTA — izrazeniji, veci === */
  .mobile-sticky-cta {
    display: flex; flex-direction: column; align-items: stretch;
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 99;
    background: linear-gradient(to top, #fff 60%, rgba(255,255,255,0));
    border: none;
    padding: 2rem 16px 12px; padding-bottom: max(12px, env(safe-area-inset-bottom));
    box-shadow: none;
    gap: 4px;
  }
  .mobile-sticky-cta .btn-cta { height: 48px; }

  /* === FOOTER === */
  .site-footer { padding-bottom: 6rem; font-size: 13px; line-height: 16px; }
}

/* ========== CARD ========== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
}

.card + .card { margin-top: 1.25rem; }

.card-title {
  font-size: 17px; line-height: 20px; font-weight: 600; margin-bottom: 1.25rem; color: var(--fg);
  display: flex; align-items: center; gap: 0.5rem;
}

.card-title .btn-ghost { margin: -8px 0; }

.card-title svg { width: 18px; height: 18px; color: var(--brand); }

/* ========== FORM ========== */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block; font-size: 13px; line-height: 16px; font-weight: 400; color: var(--fg-60);
  margin-bottom: 0.3rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; min-height: 40px; padding: 9px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 15px; line-height: 20px; font-family: inherit; color: var(--fg); background: var(--surface);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 2px var(--brand-15); background: var(--surface);
}

.form-group input::placeholder, .form-group textarea::placeholder { color: var(--fg-30); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.75rem; }

.form-section { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--divider); }

.form-section-title {
  font-size: 13px; line-height: 16px; font-weight: 600; color: var(--fg-60); margin-bottom: 0.75rem;
}

/* ========== COLOR PRESETS ========== */
.color-presets { display: flex; gap: 6px; margin-bottom: 0.75rem; flex-wrap: wrap; }

.color-preset {
  width: 32px; height: 32px; padding: 0; border-radius: 50%; border: 2.5px solid transparent;
  cursor: pointer; transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}

.color-preset:hover { box-shadow: 0 0 0 2px var(--border); }
.color-preset.active { border-color: var(--fg); }

.color-preset:focus-visible, .mobile-style-tab:focus-visible, .separator-option:focus-visible,
.btn:focus-visible, .btn-text-link:focus-visible, .collapsible-trigger:focus-visible, .logo-remove:focus-visible {
  outline: 2px solid var(--brand); outline-offset: 2px;
}

.color-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }

.color-row label {
  font-size: 13px; line-height: 16px; font-weight: 400; color: var(--fg-60);
  min-width: 80px;
}

.color-input-wrap { display: flex; align-items: center; gap: 0.5rem; }

.color-input-wrap input[type="color"] {
  width: 32px; height: 32px; border: 1px solid var(--border); border-radius: 8px;
  cursor: pointer; padding: 2px; background: var(--surface);
}

.color-input-wrap input[type="text"] {
  width: 84px; height: 32px; padding: 0 8px; border: 1px solid var(--border);
  border-radius: 8px; font-size: 13px; line-height: 16px;
  font-family: inherit; font-variant-numeric: tabular-nums; color: var(--fg); background: var(--surface);
}

.color-input-wrap input[type="text"]:focus { outline: none; border-color: var(--brand); }

/* ========== RANGE SLIDER ========== */
.slider-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; }

.slider-row label {
  font-size: 13px; line-height: 16px; font-weight: 400; color: var(--fg-60);
  min-width: 80px;
}

.slider-row input[type="range"] {
  flex: 1; height: 4px; -webkit-appearance: none; appearance: none;
  background: var(--border); border-radius: 2px; outline: none;
}

.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px;
  background: var(--brand); border-radius: 50%; cursor: pointer;
}

.slider-row .slider-val {
  font-size: 13px; line-height: 16px; color: var(--fg-60); min-width: 36px; text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ========== LOGO UPLOAD ========== */
.logo-upload { position: relative; display: flex; align-items: center; gap: 1rem; }

.logo-upload-area {
  width: 56px; height: 56px; border: 2px dashed var(--border); border-radius: 8px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease); background: var(--surface);
  overflow: hidden; flex-shrink: 0;
}

.logo-upload-area:hover, .logo-upload-area.dragover { border-color: var(--brand); background: var(--brand-8); }
.logo-upload-area img { width: 100%; height: 100%; object-fit: contain; }
.logo-upload-area svg { width: 22px; height: 22px; color: var(--fg-60); }

.logo-upload-info { font-size: 13px; line-height: 16px; color: var(--fg-60); }
.logo-upload-info label { color: var(--brand); cursor: pointer; font-weight: 600; }
.logo-upload-info label:hover { text-decoration: underline; }

.logo-url-input { margin-top: 0.5rem; }

/* Vizualno skriven, ali fokusabilan tipkovnicom */
#logoFileInput { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.logo-upload:has(#logoFileInput:focus-visible) .logo-upload-area { outline: 2px solid var(--brand); outline-offset: 2px; }

.logo-remove {
  font-size: 13px; line-height: 16px; color: #ef4444; cursor: pointer; margin-top: 0.2rem;
  background: none; border: 0; padding: 0; font-family: inherit;
}
.logo-remove:hover { text-decoration: underline; }

.logo-warning { font-size: 13px; color: #b45309; line-height: 16px; margin-top: 0.5rem; }

/* ========== PREVIEW ========== */
.preview-area { position: sticky; top: calc(53px + 1.5rem); }

.email-mockup {
  border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: var(--surface);
}

.email-mockup-toolbar {
  background: var(--surface-2); border-bottom: 1px solid var(--border);
  padding: 8px 14px; display: flex; align-items: center; gap: 8px;
}

.email-mockup-dots {
  display: flex; gap: 5px;
}

.email-mockup-dots span {
  width: 10px; height: 10px; border-radius: 50%;
}

.email-mockup-dots span:nth-child(1) { background: #ff5f57; }
.email-mockup-dots span:nth-child(2) { background: #febc2e; }
.email-mockup-dots span:nth-child(3) { background: #28c840; }

.email-mockup-tab {
  font-size: 13px; line-height: 16px; color: var(--fg-60); margin-left: auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 9999px;
  padding: 2px 10px;
}

.email-mockup-header {
  padding: 12px 18px; border-bottom: 1px solid var(--divider);
  font-size: 13px; color: var(--fg-60); line-height: 20px;
}

.email-mockup-header .email-subject {
  font-size: 15px; line-height: 20px; font-weight: 600; color: var(--fg); margin-bottom: 6px;
}

.email-mockup-header .email-meta span {
  color: var(--fg-60); font-size: 13px; line-height: 16px;
}

.email-mockup-header .email-meta strong {
  color: var(--fg); font-weight: 600;
}

.email-mockup-body {
  padding: 18px;
  font-size: 15px; color: var(--fg); line-height: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.email-mockup-body .email-text {
  margin-bottom: 14px;
}

.email-mockup-body .email-greeting {
  margin-bottom: 18px; color: var(--fg);
}

.email-mockup-body .email-sig-separator {
  border: none; border-top: 1px solid var(--border); margin: 0 0 14px 0;
}

/* ========== ACTIONS ========== */
.actions { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  height: 36px; padding: 0 16px; border: none; border-radius: 9999px;
  font-size: 15px; line-height: 20px; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.btn svg { width: 18px; height: 18px; }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-80); }
.btn-primary:active { background: var(--brand-70); }

.btn-secondary { background: var(--ghost-active); color: var(--fg); }
.btn-secondary:hover { background: rgb(26 26 46 / .16); }
.btn-secondary:active { background: rgb(26 26 46 / .2); }

.btn-ghost { background: transparent; color: var(--fg-60); padding: 0 12px; }
.btn-ghost:hover { color: #ef4444; background: rgb(239 68 68 / .1); }
.btn-ghost:active { background: rgb(239 68 68 / .15); }

/* Tooltip */
.tooltip-wrap { position: relative; }
.tooltip-wrap .tooltip {
  display: none; position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); background: var(--fg); color: #fff;
  font-size: 13px; line-height: 16px; font-weight: 400; padding: 0.4rem 0.65rem;
  border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 10;
}
.tooltip-wrap:hover .tooltip { display: block; }

/* ========== COLLAPSIBLE ========== */
.collapsible-trigger {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; text-align: left;
  cursor: pointer; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--brand);
  background: none; border: none; font-family: inherit; padding: 0.5rem 0;
  transition: color 0.15s var(--ease);
}

.collapsible-trigger:hover { color: var(--brand); }

.collapsible-hint { font-weight: 400; color: var(--fg-60); font-size: 13px; line-height: 16px; }

@media (max-width: 900px) {
  .collapsible-hint { flex-basis: 100%; padding-left: calc(14px + 0.4rem); }
}

.collapsible-trigger svg {
  width: 14px; height: 14px; transition: transform 0.2s var(--ease);
}

.collapsible-trigger.open svg { transform: rotate(90deg); }

.collapsible-body {
  display: none; padding: 0.75rem 0 0.25rem;
  font-size: 15px; color: var(--fg); line-height: 20px;
}

.collapsible-body.open { display: block; }

.collapsible-body h4 { font-size: 15px; line-height: 20px; font-weight: 600; color: var(--fg); margin: 0.75rem 0 0.25rem; }
.collapsible-body h4:first-child { margin-top: 0; }
.collapsible-body ol { padding-left: 1.25rem; margin: 0.25rem 0; }
.collapsible-body li { margin-bottom: 0.2rem; }

/* ========== MOCKUP CTA ========== */
.mockup-cta {
  padding: 14px 18px; margin-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
}

.btn-cta {
  width: 100%; height: 40px; padding: 0 20px;
}

/* Prije unosa podataka CTA je "prazan": bez pulsiranja, samo tiši */
#ctaCopy:not(.has-data), .mobile-sticky-cta .btn-cta:not(.has-data) { opacity: 0.7; }

.btn-text-link {
  background: none; border: none; color: var(--fg-60); font-size: 13px; line-height: 16px;
  font-family: inherit; cursor: pointer; text-align: center;
  min-height: 32px; padding: 6px 8px; border-radius: 9999px;
  transition: color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.btn-text-link:hover { color: var(--fg); background: var(--ghost-hover); }
.btn-text-link:active { background: var(--ghost-active); }

/* ========== STEP LABELS ========== */
.step-label {
  font-size: 15px; line-height: 20px; font-weight: 600; color: var(--fg);
  margin-bottom: 0.75rem;
}

/* ========== STYLE TABS (above preview) ========== */
.mobile-style-tabs {
  display: flex; gap: 0; margin-bottom: 0.5rem;
  background: transparent;
}
.mobile-style-tab {
  flex: 1; height: 36px; padding: 0 12px; border: 1px solid var(--border); background: var(--surface);
  font-family: inherit; font-size: 15px; line-height: 20px; font-weight: 400;
  color: var(--fg-60); cursor: pointer; text-align: center;
  transition: color 0.15s var(--ease), border-color 0.15s var(--ease), background-color 0.15s var(--ease);
  border-radius: 9999px; margin: 0 3px;
}
.mobile-style-tab:hover { color: var(--fg); background: var(--ghost-hover); }
.mobile-style-tab.active {
  color: var(--brand); font-weight: 600;
  border-color: rgb(16 114 184 / .35); background: var(--brand-8);
}

/* ========== TOAST ========== */
.toast {
  position: fixed; bottom: max(2rem, env(safe-area-inset-bottom)); left: 50%;
  transform: translateX(-50%) translateY(40px) scale(0.97);
  background: var(--fg); color: #fff;
  padding: 10px 20px; border-radius: 9999px;
  font-size: 15px; line-height: 20px; font-weight: 600;
  opacity: 0; pointer-events: none;
  transition: opacity 0.15s var(--ease), transform 0.15s var(--ease);
  z-index: 1000; box-shadow: 0 8px 32px rgb(0 0 0 / .2);
  display: flex; align-items: center; gap: 0.4rem;
}

.toast.show {
  opacity: 1; transform: translateX(-50%) translateY(0) scale(1);
  transition: opacity 0.39s ease-out, transform 0.65s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.toast svg { width: 16px; height: 16px; color: #10b981; }

/* ========== FAQ SECTION ========== */
.faq-section {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
  max-width: 780px;
  margin: 3rem auto 0;
  padding: 0 2.5rem;
}

.faq-title {
  font-size: 20px; line-height: 24px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1.5rem;
  letter-spacing: -0.2px;
}

.faq-item {
  interpolate-size: allow-keywords;
  border: 1px solid transparent;
  border-radius: 16px;
  padding: 0 1rem;
  margin: 0;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}

.faq-item[open] {
  background: var(--surface);
  border-color: var(--border);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  color: var(--fg);
  line-height: 20px;
  list-style: none;
  transition: color 0.15s var(--ease);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { content: ""; }

.faq-item summary:hover { color: var(--brand); }

.faq-item summary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: var(--fg-60);
  transition: transform 0.2s var(--ease), color 0.15s var(--ease);
}

.faq-item[open] summary svg {
  transform: rotate(45deg);
  color: var(--brand);
}

.faq-item::details-content {
  block-size: 0;
  overflow: clip;
  transition: block-size 0.5s cubic-bezier(0.33, 1, 0.68, 1), content-visibility 0.5s ease allow-discrete;
}

.faq-item[open]::details-content {
  block-size: auto;
}

@starting-style {
  .faq-item[open]::details-content {
    block-size: 0;
  }
}

.faq-answer {
  padding: 0 0 1rem;
}

.faq-answer p {
  font-size: 15px;
  color: var(--fg);
  line-height: 20px;
}

.faq-answer a {
  color: var(--brand);
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .faq-section { padding: 0 1rem; margin-top: 2rem; }
  .faq-title { font-size: 20px; line-height: 24px; }
  .faq-item summary { font-size: 15px; line-height: 20px; padding: 1rem 0; }
}

/* ========== SEO CONTENT (homepage) ========== */
.seo-content {
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
  max-width: 780px;
  margin: 3rem auto 0;
  padding: 0 2.5rem;
}

.seo-content-inner {
  border-top: 1px solid var(--border);
  padding-top: 2.5rem;
}

.seo-content h2 {
  font-size: 20px; line-height: 24px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 1rem;
  letter-spacing: -0.2px;
}

.seo-content h3 {
  font-size: 17px; line-height: 20px;
  font-weight: 600;
  color: var(--fg);
  margin: 1.75rem 0 0.5rem;
}

.seo-content p {
  font-size: 15px;
  color: var(--fg);
  line-height: 20px;
  margin-bottom: 0.75rem;
}

.seo-content ul {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.seo-content li {
  font-size: 15px;
  color: var(--fg);
  line-height: 20px;
  margin-bottom: 0.3rem;
}

.seo-content a {
  color: var(--brand);
  text-decoration: none;
}

.seo-content a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .seo-content { padding: 0 1rem; margin-top: 2rem; }
}

/* ========== 404 PAGE ========== */
.page-404 {
  max-width: 580px;
  margin: 0 auto;
  padding: 6rem 2.5rem;
  text-align: center;
}

.page-404 h1 {
  font-size: 34px;
  font-weight: 600;
  color: var(--fg-30);
  line-height: 40px;
  margin-bottom: 1rem;
}

.page-404 h2 {
  font-size: 20px; line-height: 24px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}

.page-404 p {
  font-size: 15px;
  color: var(--fg-60);
  line-height: 20px;
  margin-bottom: 2rem;
}

.page-404 .btn-primary {
  display: inline-flex;
  height: 40px;
  padding: 0 20px;
  text-decoration: none;
}

.page-404-links {
  margin-top: 2rem;
  font-size: 15px; line-height: 20px;
}

.page-404-links a {
  color: var(--brand);
  text-decoration: none;
  margin: 0 0.5rem;
}

.page-404-links a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .page-404 { padding: 4rem 1rem; }
  .page-404 h2 { font-size: 20px; line-height: 24px; }
}

/* ========== FOOTER ========== */
.site-footer {
  max-width: 1240px; margin: 3rem auto 0; padding: 1.5rem 1.5rem 2rem;
  border-top: 1px solid var(--divider); font-size: 13px; color: var(--fg-60); line-height: 16px;
}

/* Mobilni: footer sadrzaj mora biti iznad sticky CTA-a (inace prekriva reopen linkove) */
@media (max-width: 900px) {
  .site-footer { padding-bottom: calc(2rem + 150px); }
}
.footer-note { max-width: 600px; }

.footer-bottom {
  margin-top: 1rem; padding-top: 0.5rem; border-top: 1px solid var(--divider);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px;
  font-size: 13px; line-height: 16px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.footer-links a, .footer-links .ep-consent-reopen {
  display: inline-flex; align-items: center; min-height: 32px;
  color: var(--fg-60); text-decoration: none; transition: color 0.15s var(--ease);
}
.footer-links a:hover, .footer-links .ep-consent-reopen:hover { color: var(--fg); }
.footer-copy { display: inline-flex; align-items: center; min-height: 32px; }

.powered-by { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; font-size: 13px; line-height: 16px; color: var(--fg-60); }
.powered-by img { height: 1.6em; width: auto; opacity: 0.7; }

/* ====================================================================
   CONTENT / GUIDE PAGES
   ==================================================================== */

/* ========== BREADCRUMBS ========== */
.breadcrumbs {
  max-width: 780px;
  margin: 0 auto;
  padding: 1.5rem 2.5rem 0;
  font-size: 13px; line-height: 16px;
  color: var(--fg-60);
}

.breadcrumbs a {
  color: var(--fg-60);
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: var(--brand);
  text-decoration: underline;
}

.breadcrumbs span { margin: 0 0.35rem; }

/* ========== ARTICLE HERO ========== */
.article-hero {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 2.5rem 1.5rem;
  text-align: left;
}

.article-hero h1 {
  font-size: 30px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.2px;
  line-height: 36px;
  margin-bottom: 0.75rem;
}

.article-hero .article-meta {
  font-size: 13px; line-height: 16px;
  color: var(--fg-60);
}

/* ========== ARTICLE BODY ========== */
.article {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 2.5rem 3rem;
}

.article h2 {
  font-size: 20px; line-height: 24px;
  font-weight: 600;
  color: var(--fg);
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.2px;
}

.article h3 {
  font-size: 17px; line-height: 20px;
  font-weight: 600;
  color: var(--fg);
  margin: 2rem 0 0.75rem;
}

.article p {
  font-size: 15px;
  color: var(--fg);
  line-height: 20px;
  margin-bottom: 1rem;
}

.article ol,
.article ul {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
}

.article li {
  font-size: 15px;
  color: var(--fg);
  line-height: 20px;
  margin-bottom: 0.4rem;
}

.article strong {
  color: var(--fg);
}

.article a {
  color: var(--brand);
  text-decoration: none;
}

.article a:hover {
  text-decoration: underline;
}

.article code {
  background: var(--divider);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 13px; line-height: 16px;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

.article .tip-box {
  background: var(--brand-8);
  border-left: 3px solid var(--brand);
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  font-size: 15px;
  color: var(--fg);
  line-height: 20px;
}

.article .tip-box strong {
  color: var(--brand);
}

.article .signature-example {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.article .screenshot-placeholder {
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--fg-60);
  font-size: 13px; line-height: 16px;
  margin: 1.5rem 0;
}

/* ========== CTA SECTION ========== */
.article-cta {
  max-width: 780px;
  margin: 0 auto 3rem;
  padding: 0 2.5rem;
}

.article-cta-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem;
  text-align: center;
}

.article-cta-box h2 {
  font-size: 20px; line-height: 24px;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.5rem;
}

.article-cta-box p {
  color: var(--fg-60);
  font-size: 15px; line-height: 20px;
  margin-bottom: 1.5rem;
}

.article-cta-box .btn-primary {
  display: inline-flex;
  height: 40px;
  padding: 0 20px;
  text-decoration: none;
}

/* ========== CONTENT PAGE MOBILE ========== */
@media (max-width: 900px) {
  .breadcrumbs { padding: 1.25rem 1rem 0; }

  .article-hero {
    padding: 1.5rem 1rem 1.25rem;
  }
  .article-hero h1 { font-size: 26px; line-height: 32px; }

  .article {
    padding: 0 1rem 2rem;
  }
  .article h2 { margin: 2rem 0 0.75rem; }

  .article-cta { padding: 0 1rem; margin-bottom: 2rem; }
  .article-cta-box { padding: 1.75rem 1.25rem; }
  .article-cta-box h2 { font-size: 20px; line-height: 24px; }
}

/* ========== SEPARATOR PICKER ========== */
.separator-picker {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.separator-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  min-width: 56px;
  min-height: 36px;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
  font-family: inherit;
}

.separator-option:hover {
  border-color: rgb(16 114 184 / .5);
  background: var(--brand-8);
}

.separator-option.active {
  border-color: var(--brand);
  background: var(--brand-15);
}

.separator-preview {
  width: 32px;
  height: 0;
}

.separator-option-label {
  font-size: 11px; line-height: 12px;
  color: var(--fg-60);
  font-weight: 400;
  white-space: nowrap;
}

.separator-option.active .separator-option-label {
  color: var(--brand);
}

@media (max-width: 900px) {
  .separator-option {
    padding: 6px 8px;
    min-width: 48px;
  }
  .separator-preview {
    width: 26px;
  }
}

/* ====================================================================
   QR CODE GENERATOR PAGE
   ==================================================================== */

/* ========== QR TYPE PICKER ========== */
.qr-type-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.qr-type-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0.65rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
  font-size: 13px; line-height: 16px;
  font-weight: 400;
  color: var(--fg);
  text-align: center;
}

.qr-type-option:hover { border-color: rgb(16 114 184 / .5); background: var(--brand-8); }
.qr-type-option.active { border-color: var(--brand); background: var(--brand-15); color: var(--brand); }

.qr-type-icon {
  width: 22px;
  height: 22px;
  color: var(--fg-60);
}

.qr-type-option.active .qr-type-icon { color: var(--brand); }

/* ========== QR FORM SECTIONS ========== */
.qr-form-section { display: none; }
.qr-form-section.active { display: block; }

/* ========== UTM PREVIEW ========== */
.utm-preview {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem;
  margin-top: 0.75rem;
}

.utm-preview-label {
  font-size: 13px; line-height: 16px;
  font-weight: 600;
  color: var(--fg-60);
  margin-bottom: 0.35rem;
}

.utm-url-display {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 13px;
  color: var(--fg);
  word-break: break-all;
  line-height: 16px;
}

/* ========== QR PREVIEW CARD ========== */
.qr-preview-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  padding: 1.5rem;
  text-align: center;
}

.qr-canvas-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  margin-bottom: 1rem;
}

.qr-canvas-wrap canvas,
.qr-canvas-wrap svg { max-width: 100%; height: auto; }

.qr-data-preview {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 13px;
  color: var(--fg-60);
  word-break: break-all;
  max-height: 3.6em;
  overflow: hidden;
  line-height: 16px;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.qr-empty-state {
  color: var(--fg-60);
  font-size: 13px; line-height: 16px;
  padding: 2rem 0;
}

.qr-empty-state svg {
  width: 48px;
  height: 48px;
  color: var(--fg-30);
  margin-bottom: 0.75rem;
}

/* ========== QR DOT STYLE PREVIEWS ========== */
.qr-dot-picker {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.qr-dot-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 4px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease);
}

.qr-dot-option:hover { border-color: rgb(16 114 184 / .5); background: var(--brand-8); }
.qr-dot-option.active { border-color: var(--brand); background: var(--brand-15); }

.qr-dot-preview {
  display: grid;
  grid-template-columns: repeat(3, 6px);
  gap: 2px;
}

.qr-dot-preview span {
  width: 6px;
  height: 6px;
  background: var(--fg);
}

.qr-dot-preview.square span { border-radius: 0; }
.qr-dot-preview.rounded span { border-radius: 1.5px; }
.qr-dot-preview.dots span { border-radius: 50%; }
.qr-dot-preview.classy span { border-radius: 0; }
.qr-dot-preview.classy span:nth-child(odd) { border-radius: 50%; }
.qr-dot-preview.classy-rounded span { border-radius: 2px; }
.qr-dot-preview.classy-rounded span:nth-child(odd) { border-radius: 50%; }
.qr-dot-preview.extra-rounded span { border-radius: 50% 50% 50% 0; }

.qr-dot-option-label {
  font-size: 11px; line-height: 12px;
  color: var(--fg-60);
  font-weight: 400;
  white-space: nowrap;
}

.qr-dot-option.active .qr-dot-option-label { color: var(--brand); }

/* ========== QR GRADIENT TOGGLE ========== */
.qr-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.qr-toggle-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
  cursor: pointer;
}

.qr-toggle-row label {
  font-size: 13px; line-height: 16px;
  font-weight: 400;
  color: var(--fg-60);
  cursor: pointer;
}

.qr-gradient-colors { display: none; }
.qr-gradient-colors.active { display: block; }

/* ========== QR QUICK-FILL BUTTONS ========== */
.utm-quick-fills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 0.25rem;
}

.utm-quick-label {
  font-size: 13px; line-height: 16px;
  font-weight: 600;
  color: var(--fg-60);
  margin-right: 2px;
}

.qr-label-preset {
  padding: 4px 10px;
  font-size: 13px; line-height: 16px;
  font-weight: 400;
  font-family: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 9999px;
  cursor: pointer;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease), color 0.15s var(--ease);
}

.qr-label-preset:hover { border-color: rgb(16 114 184 / .5); background: var(--brand-8); color: var(--brand); }

/* ========== QR DOWNLOAD BUTTONS ========== */
.qr-download-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-top: 0.5rem;
}

/* ========== QR MOBILE ========== */
@media (max-width: 900px) {
  .qr-type-picker { grid-template-columns: repeat(4, 1fr); gap: 0.35rem; }
  .qr-type-option { padding: 0.5rem 0.25rem; font-size: 13px; line-height: 16px; }
  .qr-type-icon { width: 20px; height: 20px; }
  .qr-dot-picker { grid-template-columns: repeat(6, 1fr); gap: 0.3rem; }
  .qr-dot-option { padding: 6px 2px; }
  .qr-dot-preview { grid-template-columns: repeat(3, 5px); gap: 1.5px; }
  .qr-dot-preview span { width: 5px; height: 5px; }
  .qr-preview-card { padding: 1rem; }
  .qr-canvas-wrap { min-height: 160px; }
}

/* ========== REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
