:root {
  --primary: #e11d48;
  --primary-dark: #be123c;
  --primary-light: #f43f5e;
  --primary-soft: #ffe4e6;
  --accent: #fb7185;
  --accent-glow: rgba(225, 29, 72, 0.22);
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px -4px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px -12px rgba(225, 29, 72, 0.18);
  --gradient: linear-gradient(135deg, #e11d48 0%, #f43f5e 55%, #fb7185 100%);
  --pix-green: #00bdae;
  --pix-dark: #065f46;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(225, 29, 72, 0.10), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(251, 113, 133, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 100%, rgba(244, 63, 94, 0.06), transparent);
  pointer-events: none;
  z-index: -1;
}

.hidden { display: none !important; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--footer { padding-bottom: 3rem; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.site-header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  font-size: 1.2rem;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -4px rgba(225, 29, 72, 0.45);
  flex-shrink: 0;
}

.logo-icon svg { width: 24px; height: 24px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.site-nav a,
.site-nav button {
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
}

.site-nav a:hover,
.site-nav button:hover {
  color: var(--text);
  background: rgba(225, 29, 72, 0.08);
}

/* Hero */
.hero {
  text-align: center;
  padding: 1.5rem 0 1rem;
}

.hero-title {
  font-size: clamp(1.8rem, 4.2vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
  color: #0f172a;
}

.hero-title-highlight {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 1.25rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: #ffffff;
  color: #475569;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.badge svg { width: 14px; height: 14px; color: var(--primary); }

/* Stats Counter */
.stats-counter-card {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
  border: 1.5px solid rgba(225, 29, 72, 0.25);
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  margin: 0.4rem auto 1.5rem;
  box-shadow: 0 6px 20px -4px rgba(225, 29, 72, 0.15);
}

.stats-counter-icon {
  position: relative;
  width: 28px;
  height: 28px;
  background: rgba(225, 29, 72, 0.12);
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stats-counter-icon svg { width: 16px; height: 16px; }

.stats-live-dot {
  position: absolute;
  top: 1px;
  right: 1px;
  width: 7px;
  height: 7px;
  background: #10b981;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.7; }
}

.stats-counter-main {
  font-size: 0.88rem;
  color: #334155;
}

.stats-counter-number {
  font-weight: 800;
  color: var(--primary-dark);
}

/* App Main Card */
.app-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem;
  margin-bottom: 2rem;
  position: relative;
}

/* Steps Layout */
.step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--gradient);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.step-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #0f172a;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* Presets Grid */
.presets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.9rem 0.6rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  color: var(--text);
}

.preset-btn:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px -4px rgba(225, 29, 72, 0.15);
}

.preset-btn.active {
  border-color: var(--primary);
  background: #fff1f2;
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.18);
}

.preset-icon-box {
  width: 52px;
  height: 64px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: background 0.2s;
}

.preset-btn.active .preset-icon-box {
  background: #ffe4e6;
  border-color: var(--accent);
}

.preset-mini-grid {
  width: 100%;
  height: 100%;
  display: grid;
  gap: 2px;
}

.preset-mini-cell {
  background: #cbd5e1;
  border-radius: 2px;
}

.preset-btn.active .preset-mini-cell {
  background: var(--primary);
}

.preset-title {
  font-size: 0.86rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
}

.preset-dim {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.preset-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  font-size: 0.62rem;
  font-weight: 800;
  background: var(--primary);
  color: #ffffff;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.4);
}

/* Secondary Settings Bar */
.settings-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  background: #f8fafc;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.setting-label {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}

.setting-chips {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.chip-btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: #334155;
  cursor: pointer;
  transition: all 0.18s ease;
}

.chip-btn:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.chip-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}

.custom-grid-inputs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.custom-grid-inputs label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.custom-grid-inputs input {
  width: 60px;
  padding: 0.35rem 0.5rem;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
}

/* Upload Zone */
.upload-dropzone {
  border: 2.5px dashed #cbd5e1;
  border-radius: 14px;
  padding: 2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: #f8fafc;
  transition: all 0.22s ease;
  position: relative;
  margin-bottom: 1.25rem;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--primary);
  background: #fff1f2;
  transform: scale(1.005);
}

.upload-icon-circle {
  width: 60px;
  height: 60px;
  margin: 0 auto 0.75rem;
  background: #ffe4e6;
  color: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
}

.upload-dropzone:hover .upload-icon-circle {
  transform: scale(1.1);
}

.upload-icon-circle svg { width: 30px; height: 30px; }

.upload-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.upload-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 auto 1rem;
}

.btn-upload-browse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.35);
  transition: all 0.2s ease;
}

.btn-upload-browse:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(225, 29, 72, 0.45);
}

/* Upload Action Bar */
.upload-actions-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  margin-bottom: 1.25rem;
}

.upload-status-text {
  font-size: 0.86rem;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.upload-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
}

.upload-quick-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn-quick-action {
  padding: 0.35rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 700;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.15s ease;
}

.btn-quick-action:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-quick-action--danger:hover {
  border-color: #ef4444;
  color: #dc2626;
  background: #fef2f2;
}

/* Photo Slots Grid Preview */
.slots-manager {
  margin-bottom: 1.75rem;
}

.slots-grid-container {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.slot-item {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.slot-item:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(225, 29, 72, 0.12);
}

.slot-item.empty {
  background: #f8fafc;
  border-style: dashed;
}

.slot-item-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s;
}

.slot-empty-label {
  text-align: center;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 600;
}

.slot-number-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.slot-toolbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: space-around;
  padding: 4px;
  opacity: 0;
  transition: opacity 0.2s ease;
  backdrop-filter: blur(4px);
}

.slot-item:hover .slot-toolbar {
  opacity: 1;
}

.slot-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  transition: background 0.15s;
}

.slot-btn:hover {
  background: rgba(225, 29, 72, 0.6);
}

/* Sheet Canvas Interactive Stage */
.preview-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2rem;
}

.dim-info-banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  border: 1.5px solid rgba(225, 29, 72, 0.25);
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.dim-info-banner svg { color: var(--primary); width: 16px; height: 16px; }

.canvas-viewport {
  width: 100%;
  max-width: 680px;
  background: #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sheet-canvas {
  background: #ffffff;
  box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.28), 0 2px 8px rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  max-width: 100%;
  height: auto;
  display: block;
}

/* Generation & Download CTA Block */
.download-block {
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
  border: 1.5px solid rgba(225, 29, 72, 0.25);
  border-radius: 14px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.download-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.download-subtitle {
  font-size: 0.86rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.download-buttons-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.btn-primary-download {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 2rem;
  background: var(--gradient);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 24px -4px rgba(225, 29, 72, 0.45);
  transition: all 0.2s ease;
}

.btn-primary-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(225, 29, 72, 0.55);
}

.btn-secondary-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  background: #ffffff;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary-download:hover {
  border-color: var(--primary);
  color: var(--primary-dark);
  background: #fff1f2;
}

.print-notice-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.82rem;
  color: #1e3a8a;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-align: left;
  max-width: 640px;
  margin: 0 auto;
}

.print-notice-box svg { flex-shrink: 0; width: 18px; height: 18px; color: #2563eb; }

/* Pix Support Module */
.pix-support-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #f0fdf4 100%);
  border: 1.5px solid #86efac;
  border-radius: 14px;
  padding: 1.5rem;
  margin: 1.75rem 0;
  text-align: center;
  box-shadow: 0 6px 20px -4px rgba(16, 185, 129, 0.12);
}

.pix-badge-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #dcfce7;
  color: var(--pix-dark);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.pix-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #064e3b;
  margin-bottom: 0.35rem;
}

.pix-desc {
  font-size: 0.86rem;
  color: #065f46;
  max-width: 580px;
  margin: 0 auto 1.25rem;
}

.pix-flex-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.pix-qr-container {
  background: #ffffff;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid #bbf7d0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pix-qr-canvas {
  width: 140px;
  height: 140px;
  display: block;
}

.pix-actions-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: stretch;
  min-width: 260px;
}

.pix-amount-chips {
  display: flex;
  gap: 0.4rem;
  justify-content: center;
}

.pix-chip {
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 6px;
  border: 1px solid #86efac;
  background: #ffffff;
  color: #065f46;
  cursor: pointer;
  transition: all 0.15s;
}

.pix-chip.active {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}

.btn-copy-pix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.25rem;
  background: #059669;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-copy-pix:hover { background: #047857; }

/* Toast Notification */
.toast-notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 9999;
  opacity: 0;
  transition: all 0.25s ease;
  pointer-events: none;
}

.toast-notice.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Editorial & Guides */
.guide-article {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 2.25rem;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.guide-article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 1.5rem 0 0.75rem;
}

.guide-article h2:first-child { margin-top: 0; }

.guide-article h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  margin: 1.25rem 0 0.5rem;
}

.guide-article p {
  color: #334155;
  margin-bottom: 1rem;
}

.guide-article ul, .guide-article ol {
  padding-left: 1.4rem;
  margin-bottom: 1rem;
  color: #334155;
}

.guide-article li { margin-bottom: 0.4rem; }

/* Table */
.table-responsive {
  overflow-x: auto;
  margin: 1.25rem 0;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
}

.editorial-table th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  font-weight: 800;
  color: #0f172a;
  border-bottom: 2px solid var(--border);
}

.editorial-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  color: #334155;
}

.editorial-table tr:last-child td { border-bottom: none; }
.editorial-table tr:hover td { background: #fff1f2; }

/* FAQ Accordion */
.faq-section { margin-bottom: 2rem; }
.faq-item {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item:hover { border-color: var(--primary); }

.faq-question {
  width: 100%;
  padding: 1rem 1.25rem;
  text-align: left;
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.2s;
  color: var(--primary);
}

.faq-answer {
  padding: 0 1.25rem 1.1rem;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-section details {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-section details[open] {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.08);
}

.faq-section summary {
  padding: 1.15rem 1.25rem;
  font-size: 0.96rem;
  font-weight: 800;
  color: #0f172a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-section summary::-webkit-details-marker {
  display: none;
}

.faq-section summary::after {
  content: "+";
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-section details[open] summary::after {
  content: "−";
  transform: rotate(0deg);
}

.faq-section details p {
  padding: 0 1.25rem 1.15rem;
  margin: 0;
  font-size: 0.88rem;
  color: #475569;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 0.75rem;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.45rem; }
.footer-col a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  text-align: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
}

/* Print Styles */
@media print {
  body::before, .site-header, .hero, .step-header, .presets-grid,
  .settings-bar, .upload-dropzone, .upload-actions-bar, .slots-manager,
  .download-block, .pix-support-card, .guide-article, .faq-section,
  .site-footer, .internal-promo-box, .dim-info-banner {
    display: none !important;
  }
  .container { max-width: 100% !important; margin: 0 !important; padding: 0 !important; }
  .app-card { border: none !important; box-shadow: none !important; padding: 0 !important; margin: 0 !important; }
  .preview-stage { margin: 0 !important; padding: 0 !important; }
  .canvas-viewport { background: transparent !important; box-shadow: none !important; padding: 0 !important; }
  .sheet-canvas { box-shadow: none !important; width: 100% !important; }
}

@media (max-width: 768px) {
  .app-card { padding: 1.15rem; }
  .presets-grid { grid-template-columns: repeat(2, 1fr); }
  .download-buttons-row { flex-direction: column; }
  .btn-primary-download, .btn-secondary-download { width: 100%; justify-content: center; }
}
