/* ============================================================
   Gerador de Caligrafia Pontilhada — style.css
   Design SaaS: limpo, responsivo, mobile-first.
   Paleta (3-5 cores): azul índigo (marca) + neutros + âmbar (acento)
   ============================================================ */

:root {
  --brand: #4f46e5;        /* índigo (cor principal) */
  --brand-dark: #4338ca;
  --accent: #f59e0b;       /* âmbar (acento) */
  --ink: #1f2937;          /* texto principal (neutro escuro) */
  --muted: #6b7280;        /* texto secundário */
  --line: #e5e7eb;         /* bordas/divisórias */
  --bg: #f8fafc;           /* fundo da página */
  --surface: #ffffff;      /* cartões */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 8px 24px rgba(16, 24, 40, 0.06);
  --font-ui: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-balance { text-wrap: balance; }
.text-pretty { text-wrap: pretty; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-family: 'Kalam', cursive;
  font-weight: 500;
  font-size: 18px;
}
.logo-text { color: var(--ink); font-weight: 600; font-size: 18px; }
.logo-text strong { color: var(--brand); }
.header-nav { display: none; gap: 28px; }
.header-nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 15px; }
.header-nav a:hover { color: var(--brand); }

/* ---------------- Hero ---------------- */
.hero { text-align: center; padding: 32px 0 32px; }
.badge {
  display: inline-block;
  background: #eef2ff;
  color: var(--brand-dark);
  border: 1px solid #e0e7ff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(22px, 6vw, 20px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 auto 14px;
  max-width: 60ch;
}
.hero-subtitle {
  color: var(--muted);
  font-size: clamp(15px, 2.5vw, 18px);
  max-width: 60ch;
  margin: 0 auto;
}

/* ---------------- Anúncios ---------------- */
.ad-slot {
  display: grid;
  place-items: center;
  margin: 28px auto;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #fbfcfe, #fbfcfe 12px, #f1f5f9 12px, #f1f5f9 24px);
  color: #94a3b8;
}
.ad-leaderboard { max-width: 728px; min-height: 90px; }
.ad-rectangle { max-width: 336px; min-height: 250px; }
.ad-placeholder { font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }

/* ---------------- Gerador ---------------- */
.generator { padding: 8px 0 8px; }
.generator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card-title { margin: 0 0 18px; font-size: 18px; font-weight: 700; }

.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 7px;
}
.field input[type="text"],
.field select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input[type="text"]:focus,
.field select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.field input[type="range"] { width: 100%; accent-color: var(--brand); }
.hint { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }

.field-checkboxes { display: grid; gap: 12px; margin-bottom: 22px; }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--brand); }

/* Botão */
.btn {
  display: inline-block;
  width: 100%;
  border: none;
  border-radius: 10px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.05s, background 0.15s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-primary:active { transform: translateY(1px); }
.privacy-note { text-align: center; color: var(--muted); font-size: 12px; margin: 12px 0 0; }

/* Pré-visualização */
.preview-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.preview-toolbar {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcff;
}
.preview-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.preview-canvas-holder {
  padding: 20px;
  display: grid;
  place-items: center;
  background: #f1f5f9;
}
#preview-canvas {
  width: 100%;
  max-width: 480px;
  height: auto;
  background: #fff;
  box-shadow: 0 4px 18px rgba(16, 24, 40, 0.12);
  border-radius: 4px;
}

/* ---------------- Seções ---------------- */
.section-title {
  text-align: center;
  font-size: clamp(22px, 4vw, 20px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 8px 0 32px;
}
.steps { padding: 48px 0; }
.steps-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.step { text-align: left; }
.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eef2ff;
  color: var(--brand);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.faq { padding: 16px 0 64px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}
.faq-item summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 24px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: -2px;
  font-size: 22px;
  color: var(--brand);
  line-height: 1;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin: 12px 0 0; color: var(--muted); }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--line); background: #fff; padding: 24px 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

/* ---------------- Responsivo (desktop) ---------------- */
@media (min-width: 720px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
@media (min-width: 860px) {
  .header-nav { display: flex; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 940px) {
  .generator-grid { grid-template-columns: 380px 1fr; align-items: start; }
  .controls { position: sticky; top: 88px; }
}
