/* ========== 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; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: #f0f6fc;
  background-image: linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 24px 24px;
  color: #1a1a2e;
  min-height: 100vh;
}

/* ========== SITE NAV ========== */
.site-nav {
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #1a1a2e;
  text-decoration: none;
  white-space: nowrap;
}

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

.site-nav-logo:hover { color: #1072b8; }

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

.site-nav-links a {
  font-size: 0.78rem;
  color: #6b7280;
  text-decoration: none;
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  transition: color 0.15s;
}

.site-nav-links a:hover { color: #1072b8; }
.site-nav-links a.active { color: #1072b8; 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: rgba(16, 114, 184, 0.08);
  border: 1px solid rgba(16, 114, 184, 0.15);
  border-radius: 4px;
  pointer-events: none;
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s 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: #1a1a2e;
  border-radius: 1px;
  transition: transform 0.25s, opacity 0.25s;
}

.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 {
    margin: 8px 8px 0;
    padding: 0.6rem 1rem;
    flex-wrap: nowrap;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    position: relative;
    z-index: 50;
    transition: border-radius 0.2s ease, box-shadow 0.2s ease;
  }
  .site-nav.open {
    border-radius: 14px 14px 0 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  }
  .site-nav-logo { font-size: 0.88rem; }
  .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: #fff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 14px 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  }

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

  @keyframes menuSlideIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .site-nav-links a {
    font-size: 0.92rem;
    padding: 0.8rem 0.75rem;
    border-radius: 8px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .site-nav-links a:active {
    background: rgba(16, 114, 184, 0.06);
  }

  .site-nav-links a.active {
    anchor-name: unset;
    background: rgba(16, 114, 184, 0.08);
    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: 2.9rem; font-weight: 400; color: #1a1a2e; letter-spacing: -0.02em;
  max-width: 620px;
  line-height: 1.2;
}
.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;
  transition: transform 0.25s ease;
  cursor: default;
}

.app-header h1 .inline-icon:hover {
  transform: scale(1.2) rotate(-8deg);
}
.app-header p { color: #6b7280; margin-top: 0.5rem; font-size: 0.95rem; }

.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: 2rem; max-width: none; line-height: 1.2; }
  .app-header p { font-size: 0.82rem; margin-top: 0.25rem; }
  .powered-by { margin-top: 0.35rem; justify-content: center; font-size: 0.7rem; }

  /* === 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 { border-radius: 10px; margin-bottom: 0; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
  .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; font-size: 0.72rem; }
  .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; border-radius: 8px; }
  .card + .card { margin-top: 0.75rem; }
  .card-title { font-size: 0.9rem; 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: 0.7rem 0.75rem; font-size: 1rem;
    border-radius: 8px; min-height: 44px;
  }
  .form-group label { font-size: 0.72rem; margin-bottom: 0.25rem; }

  /* === SLIDERS — veci touch === */
  .slider-row input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; }
  .color-preset { width: 34px; height: 34px; }

  /* === 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 {
    font-size: 0.92rem; padding: 0.8rem 1rem; border-radius: 10px; min-height: 48px;
  }
  .mobile-sticky-cta .btn-text-link { font-size: 0.72rem; padding: 0.35rem; }

  /* === FOOTER === */
  .site-footer { padding-bottom: 6rem; font-size: 0.72rem; }
  .footer-top { flex-direction: column; gap: 1rem; }
}

/* ========== CARD ========== */
.card {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  padding: 1.75rem;
}

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

.card-title {
  font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; color: #1a1a2e;
  display: flex; align-items: center; gap: 0.5rem;
}

.card-title svg { width: 18px; height: 18px; color: #1072b8; }

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

.form-group label {
  display: block; font-size: 0.75rem; font-weight: 500; color: #6b7280;
  margin-bottom: 0.3rem; text-transform: uppercase; letter-spacing: 0.04em;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.6rem 0.75rem;
  border: 1.5px solid #e5e7eb; border-radius: 4px;
  font-size: 0.9rem; font-family: inherit; color: #1a1a2e; background: #fafbfc;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: #1072b8;
  box-shadow: 0 0 0 3px rgba(16,114,184,0.1); background: #fff;
}

.form-group input::placeholder, .form-group textarea::placeholder { color: #b0b5bf; }

.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 #f0f2f5; }

.form-section-title {
  font-size: 0.7rem; font-weight: 600; color: #9ca3af;
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.75rem;
}

/* ========== STYLE PICKER ========== */
.style-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-bottom: 1.25rem; }

.style-option {
  border: 2px solid #e5e7eb; border-radius: 6px; padding: 0.6rem 0.5rem 0.5rem;
  text-align: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  background: #fafbfc; font-size: 0.75rem; font-weight: 500; color: #4b5563;
}

.style-option:hover { border-color: #7ab8e0; background: #edf4fa; }

.style-option.active { border-color: #1072b8; background: #e0eef7; color: #094d80; }

.style-mini-preview {
  font-family: Arial, sans-serif; text-align: left;
  padding: 6px 8px; background: #fff; border-radius: 4px;
  margin-bottom: 6px; min-height: 42px; font-size: 7px; line-height: 1.3;
  border: 1px solid #f0f2f5; overflow: hidden;
}

.style-mini-preview .mp-name { font-weight: bold; font-size: 8px; }
.style-mini-preview .mp-title { color: #1072b8; font-size: 6.5px; }
.style-mini-preview .mp-line { height: 1.5px; background: #1072b8; margin: 3px 0; width: 100%; }
.style-mini-preview .mp-contact { color: #9ca3af; font-size: 6px; }
.style-mini-preview .mp-vline { display: inline-block; width: 1.5px; height: 28px; background: #1072b8; margin-right: 6px; vertical-align: middle; }

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

.color-preset {
  width: 28px; height: 28px; border-radius: 50%; border: 2.5px solid transparent;
  cursor: pointer; transition: border-color 0.15s, transform 0.1s;
}

.color-preset:hover { transform: scale(1.15); }
.color-preset.active { border-color: #1a1a2e; }

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

.color-row label {
  font-size: 0.75rem; font-weight: 500; color: #6b7280;
  min-width: 80px; text-transform: uppercase; letter-spacing: 0.04em;
}

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

.color-input-wrap input[type="color"] {
  width: 28px; height: 28px; border: 2px solid #e5e7eb; border-radius: 4px;
  cursor: pointer; padding: 1px; background: #fff;
}

.color-input-wrap input[type="text"] {
  width: 80px; padding: 0.3rem 0.5rem; border: 1.5px solid #e5e7eb;
  border-radius: 4px; font-size: 0.75rem;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace; color: #1a1a2e; background: #fafbfc;
}

.color-input-wrap input[type="text"]:focus { outline: none; border-color: #1072b8; }

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

.slider-row label {
  font-size: 0.75rem; font-weight: 500; color: #6b7280;
  min-width: 80px; text-transform: uppercase; letter-spacing: 0.04em;
}

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

.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 16px;
  background: #1072b8; border-radius: 50%; cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.slider-row .slider-val {
  font-size: 0.75rem; color: #6b7280; min-width: 36px; text-align: right;
  font-family: 'SF Mono', Monaco, monospace;
}

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

.logo-upload-area {
  width: 56px; height: 56px; border: 2px dashed #d1d5db; border-radius: 4px;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: border-color 0.15s, background 0.15s; background: #fafbfc;
  overflow: hidden; flex-shrink: 0;
}

.logo-upload-area:hover { border-color: #1072b8; background: #edf4fa; }
.logo-upload-area img { width: 100%; height: 100%; object-fit: contain; }
.logo-upload-area svg { width: 22px; height: 22px; color: #9ca3af; }

.logo-upload-info { font-size: 0.78rem; color: #6b7280; }
.logo-upload-info span { color: #1072b8; cursor: pointer; font-weight: 500; }
.logo-upload-info span:hover { text-decoration: underline; }

.logo-url-input { margin-top: 0.5rem; }
.logo-url-input input { font-size: 0.78rem; padding: 0.4rem 0.6rem; }

#logoFileInput { display: none; }

.logo-remove { font-size: 0.72rem; color: #ef4444; cursor: pointer; margin-top: 0.2rem; }
.logo-remove:hover { text-decoration: underline; }

/* ========== PREVIEW ========== */
.preview-area { position: sticky; top: 1.5rem; }

.email-mockup {
  border: 1px solid #d1d5db; border-radius: 10px; overflow: hidden;
  background: #fff; box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
}

.email-mockup-toolbar {
  background: #f8f9fa; border-bottom: 1px solid #e5e7eb;
  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: 0.7rem; color: #6b7280; margin-left: auto;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 4px;
  padding: 2px 10px; font-weight: 500;
}

.email-mockup-header {
  padding: 12px 18px; border-bottom: 1px solid #f0f2f5;
  font-size: 0.78rem; color: #6b7280; line-height: 1.7;
}

.email-mockup-header .email-subject {
  font-size: 0.95rem; font-weight: 600; color: #1a1a2e; margin-bottom: 6px;
}

.email-mockup-header .email-meta span {
  color: #9ca3af; font-size: 0.72rem;
}

.email-mockup-header .email-meta strong {
  color: #374151; font-weight: 500;
}

.email-mockup-body {
  padding: 18px;
  font-size: 0.88rem; color: #374151; line-height: 1.65;
  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: #374151;
}

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

.empty-preview { text-align: center; padding: 2rem; color: #9ca3af; font-size: 0.85rem; }
.empty-preview svg { width: 36px; height: 36px; margin-bottom: 0.5rem; color: #d1d5db; }

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

.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1rem; border: none; border-radius: 4px;
  font-size: 0.82rem; font-weight: 600; font-family: inherit; cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.btn:active { transform: scale(0.97); }
.btn svg { width: 15px; height: 15px; }

.btn-primary { background: #1072b8; color: #fff; box-shadow: 0 1px 3px rgba(16,114,184,0.3); }
.btn-primary:hover { background: #0c5d99; }

.btn-secondary { background: #f3f4f6; color: #374151; }
.btn-secondary:hover { background: #e5e7eb; }

.btn-ghost { background: transparent; color: #9ca3af; font-weight: 500; padding: 0.55rem 0.75rem; }
.btn-ghost:hover { color: #ef4444; background: #fef2f2; }

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

/* ========== COLLAPSIBLE ========== */
.collapsible-trigger {
  display: flex; align-items: center; gap: 0.4rem;
  cursor: pointer; font-size: 0.82rem; font-weight: 600; color: #1072b8;
  background: none; border: none; font-family: inherit; padding: 0.5rem 0;
  transition: color 0.15s;
}

.collapsible-trigger:hover { color: #094d80; }

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

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

.collapsible-body {
  display: none; padding: 0.75rem 0 0.25rem;
  font-size: 0.8rem; color: #4b5563; line-height: 1.65;
}

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

.collapsible-body h4 { font-size: 0.78rem; font-weight: 600; color: #1a1a2e; 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 #e5e7eb;
  display: flex; flex-direction: column; align-items: stretch; gap: 8px;
}

.btn-cta {
  width: 100%; justify-content: center; padding: 0.7rem 1rem; font-size: 0.88rem;
}

.btn-cta.has-data {
  animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 1px 3px rgba(16,114,184,0.3); }
  50% { box-shadow: 0 0 0 6px rgba(16,114,184,0.15), 0 1px 3px rgba(16,114,184,0.3); }
}

.btn-text-link {
  background: none; border: none; color: #6b7280; font-size: 0.75rem;
  font-family: inherit; cursor: pointer; text-align: center;
  padding: 0.25rem; transition: color 0.15s;
}

.btn-text-link:hover { color: #1072b8; text-decoration: underline; }

/* ========== STEP LABELS ========== */
.step-label {
  font-size: 0.78rem; font-weight: 600; color: #1a1a2e;
  text-transform: uppercase; letter-spacing: 0.04em;
  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; padding: 0.5rem 0.5rem; border: 1.5px solid #e5e7eb; background: #fff;
  font-family: inherit; font-size: 0.78rem; font-weight: 400;
  color: #9ca3af; cursor: pointer; text-align: center;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  border-radius: 8px; margin: 0 3px;
}
.mobile-style-tab.active {
  color: #1072b8; font-weight: 600;
  border-color: rgba(16,114,184,0.35); background: rgba(16,114,184,0.04);
}

/* ========== TOAST ========== */
.toast {
  position: fixed; bottom: 2rem; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #1a1a2e; color: #fff;
  padding: 0.7rem 1.2rem; border-radius: 4px;
  font-size: 0.82rem; font-weight: 500;
  opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 1000; box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: flex; align-items: center; gap: 0.4rem;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast svg { width: 16px; height: 16px; color: #10b981; }

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

.faq-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}

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

.faq-item[open] {
  background: #f6f9fc;
  border-color: #d0e2f0;
  margin: 0.5rem 0;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  color: #1a1a2e;
  line-height: 1.4;
  list-style: none;
  transition: color 0.15s;
}

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

.faq-item summary:hover { color: #1072b8; }

.faq-item summary svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #9ca3af;
  transition: transform 0.35s ease, color 0.25s ease;
}

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

.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: 0.9rem;
  color: #4b5563;
  line-height: 1.7;
}

.faq-answer a {
  color: #1072b8;
  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: 1.25rem; }
  .faq-item summary { font-size: 0.88rem; padding: 1rem 0; }
  .faq-answer p { font-size: 0.85rem; }
}

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

.seo-content-inner {
  border-top: 1px solid #e5e7eb;
  padding-top: 2.5rem;
}

.seo-content h2 {
  font-size: 1.35rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.seo-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 1.75rem 0 0.5rem;
}

.seo-content p {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

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

.seo-content li {
  font-size: 0.92rem;
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 0.3rem;
}

.seo-content a {
  color: #1072b8;
  text-decoration: none;
}

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

@media (max-width: 900px) {
  .seo-content { padding: 0 1rem; margin-top: 2rem; }
  .seo-content h2 { font-size: 1.15rem; }
  .seo-content h3 { font-size: 0.95rem; }
}

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

.page-404 h1 {
  font-size: 5rem;
  font-weight: 600;
  color: #d1d5db;
  line-height: 1;
  margin-bottom: 1rem;
}

.page-404 h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.75rem;
}

.page-404 p {
  font-size: 1rem;
  color: #6b7280;
  line-height: 1.65;
  margin-bottom: 2rem;
}

.page-404 .btn-primary {
  display: inline-flex;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
}

.page-404-links {
  margin-top: 2rem;
  font-size: 0.88rem;
}

.page-404-links a {
  color: #1072b8;
  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 h1 { font-size: 3.5rem; }
  .page-404 h2 { font-size: 1.25rem; }
}

/* ========== FOOTER ========== */
.site-footer {
  max-width: 1240px; margin: 3rem auto 0; padding: 1.5rem 1.5rem 2rem;
  border-top: 1px solid #dce6f0; font-size: 0.78rem; color: #9ca3af; line-height: 1.6;
}
.footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.footer-privacy { max-width: 600px; }
.footer-privacy h3, .footer-contact h3 { font-size: 0.8rem; font-weight: 600; color: #6b7280; margin-bottom: 0.35rem; }
.footer-contact a { color: #1072b8; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
.footer-bottom { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid #e8eff5; font-size: 0.72rem; }

.powered-by { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 0.75rem; font-size: 0.75rem; color: #9ca3af; }
.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: 0.75rem;
  color: #9ca3af;
}

.breadcrumbs a {
  color: #6b7280;
  text-decoration: none;
}

.breadcrumbs a:hover {
  color: #1072b8;
  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: 2.4rem;
  font-weight: 600;
  color: #1a1a2e;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.article-hero .article-meta {
  font-size: 0.82rem;
  color: #9ca3af;
}

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

.article h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
}

.article h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1a1a2e;
  margin: 2rem 0 0.75rem;
}

.article p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 1rem;
}

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

.article li {
  font-size: 1rem;
  color: #374151;
  line-height: 1.75;
  margin-bottom: 0.4rem;
}

.article strong {
  color: #1a1a2e;
}

.article a {
  color: #1072b8;
  text-decoration: none;
}

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

.article code {
  background: #f0f2f5;
  padding: 0.15rem 0.4rem;
  border-radius: 3px;
  font-size: 0.88rem;
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
}

.article .tip-box {
  background: #edf4fa;
  border-left: 3px solid #1072b8;
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  color: #374151;
  line-height: 1.65;
}

.article .tip-box strong {
  color: #1072b8;
}

.article .signature-example {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.article .screenshot-placeholder {
  background: #f8f9fa;
  border: 1px dashed #d1d5db;
  border-radius: 8px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.85rem;
  margin: 1.5rem 0;
}

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

.article-cta-box {
  background: #fff;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  padding: 2.5rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.article-cta-box h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 0.5rem;
}

.article-cta-box p {
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.article-cta-box .btn-primary {
  display: inline-flex;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  border-radius: 6px;
  text-decoration: none;
}

.article-cta-box .btn-primary:hover {
  background: #0c5d99;
}

/* ========== 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: 1.75rem; }

  .article {
    padding: 0 1rem 2rem;
  }
  .article h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
  .article h3 { font-size: 1.05rem; }

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

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

.separator-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 10px;
  min-width: 56px;
  border: 1.5px solid #e5e7eb;
  border-radius: 6px;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}

.separator-option:hover {
  border-color: #7ab8e0;
  background: #edf4fa;
}

.separator-option.active {
  border-color: #1072b8;
  background: #e0eef7;
}

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

.separator-option-label {
  font-size: 0.65rem;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

.separator-option.active .separator-option-label {
  color: #094d80;
}

@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: 2px solid #e5e7eb;
  border-radius: 6px;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  font-size: 0.7rem;
  font-weight: 500;
  color: #4b5563;
  text-align: center;
}

.qr-type-option:hover { border-color: #7ab8e0; background: #edf4fa; }
.qr-type-option.active { border-color: #1072b8; background: #e0eef7; color: #094d80; }

.qr-type-icon {
  width: 22px;
  height: 22px;
  color: #6b7280;
}

.qr-type-option.active .qr-type-icon { color: #1072b8; }

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

/* ========== UTM PREVIEW ========== */
.utm-preview {
  background: #f8f9fa;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 0.75rem;
  margin-top: 0.75rem;
}

.utm-preview-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.35rem;
}

.utm-url-display {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 0.75rem;
  color: #374151;
  word-break: break-all;
  line-height: 1.5;
}

/* ========== QR PREVIEW CARD ========== */
.qr-preview-card {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.10), 0 1px 3px rgba(0,0,0,0.06);
  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: 0.72rem;
  color: #9ca3af;
  word-break: break-all;
  max-height: 3.6em;
  overflow: hidden;
  line-height: 1.5;
  margin-bottom: 1rem;
  padding: 0 0.5rem;
}

.qr-empty-state {
  color: #9ca3af;
  font-size: 0.85rem;
  padding: 2rem 0;
}

.qr-empty-state svg {
  width: 48px;
  height: 48px;
  color: #d1d5db;
  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: 1.5px solid #e5e7eb;
  border-radius: 6px;
  background: #fafbfc;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.qr-dot-option:hover { border-color: #7ab8e0; background: #edf4fa; }
.qr-dot-option.active { border-color: #1072b8; background: #e0eef7; }

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

.qr-dot-preview span {
  width: 6px;
  height: 6px;
  background: #374151;
}

.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: 0.58rem;
  color: #6b7280;
  font-weight: 500;
  white-space: nowrap;
}

.qr-dot-option.active .qr-dot-option-label { color: #094d80; }

/* ========== 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: #1072b8;
  cursor: pointer;
}

.qr-toggle-row label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.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: 0.65rem;
  font-weight: 600;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}

.qr-label-preset {
  padding: 0.3rem 0.55rem;
  font-size: 0.68rem;
  font-weight: 500;
  font-family: inherit;
  color: #4b5563;
  background: #fafbfc;
  border: 1.5px solid #e5e7eb;
  border-radius: 4px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.qr-label-preset:hover { border-color: #7ab8e0; background: #edf4fa; color: #1072b8; }

/* ========== 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: 0.65rem; }
  .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; }
}

