/* ============================================
   Alfabetizando 21 Dias — Estilos globais
   Paleta: pastel blue + coral + amarelo suave
   ============================================ */

:root {
  --color-bg: #f7f4ef;
  --color-bg-alt: #ffffff;
  --color-text: #1b3a5c;
  --color-text-muted: #5a6c7d;
  --color-primary: #f4a28c;
  --color-primary-dark: #e88a72;
  --color-secondary: #1b3a5c;
  --color-accent: #f9d77e;
  --color-success: #4caf80;
  --color-border: #e8e2d6;
  --color-blue-soft: #d6e8f2;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(27, 58, 92, 0.06);
  --shadow-md: 0 8px 24px rgba(27, 58, 92, 0.12);
  --shadow-lg: 0 16px 48px rgba(27, 58, 92, 0.16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 5vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); }

a { color: var(--color-secondary); text-decoration: underline; }
a:hover { color: var(--color-primary-dark); }

button, .btn {
  font-family: var(--font-body);
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-size: 1rem;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}
.btn-secondary:hover {
  background: var(--color-secondary);
  color: #fff;
}

.btn-large { padding: 18px 40px; font-size: 1.125rem; }
.btn-full { width: 100%; }

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-wide { max-width: 1080px; }

.section { padding: 60px 0; }
.section-tight { padding: 32px 0; }

.card {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.text-small { font-size: 0.875rem; }
.text-large { font-size: 1.125rem; }

.badge {
  display: inline-block;
  background: var(--color-accent);
  color: var(--color-secondary);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary { background: var(--color-primary); color: #fff; }

/* Form */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 0.875rem;
}
.form-field input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  transition: border-color 0.15s;
}
.form-field input:focus {
  outline: none;
  border-color: var(--color-primary);
}
.form-field .hint { font-size: 0.75rem; color: var(--color-text-muted); margin-top: 4px; }
.form-field .error { font-size: 0.75rem; color: #d33; margin-top: 4px; display: none; }
.form-field.has-error input { border-color: #d33; }
.form-field.has-error .error { display: block; }

/* Loading spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Status */
.status-pending { color: var(--color-text-muted); }
.status-paid { color: var(--color-success); font-weight: 600; }
.status-expired { color: #d33; }

/* Mobile */
@media (max-width: 640px) {
  .section { padding: 40px 0; }
  .card { padding: 20px; }
  .btn-large { padding: 14px 24px; font-size: 1rem; }
}
