:root {
  --bg: #f5f7fb;
  --card: #ffffff;
  --text: #1a1a1a;
  --muted: #6b7280;
  --primary: #3483fa;
  --primary-dark: #2968c8;
  --border: #e4e7ee;
  --ok: #1a9e4b;
  --ok-dark: #158a41;
  --err: #d33;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, Segoe UI, Roboto, sans-serif;
}

.topbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.topbar .logo { font-weight: 700; font-size: 20px; color: var(--primary); }
.topbar nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 20px;
  font-size: 14px;
  font-weight: 600;
}

.hero {
  max-width: 640px;
  margin: 60px auto;
  padding: 0 20px;
  text-align: center;
}
.hero h1 { font-size: 32px; margin-bottom: 12px; }
.hero p { color: var(--muted); font-size: 16px; line-height: 1.5; margin-bottom: 32px; }

.hero-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: white;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: background-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--primary); color: white; border: none; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-block { width: 100%; }

.card {
  background: var(--card);
  max-width: 420px;
  margin: 40px auto;
  padding: 28px;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.card h1 { font-size: 22px; margin: 0 0 20px; text-align: center; }

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin: 12px 0 4px;
  color: var(--muted);
}
input, select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
}
.row { display: flex; gap: 12px; }
.col { flex: 1; min-width: 0; }

.hint { font-size: 13px; color: var(--muted); text-align: center; margin-top: 16px; }
.hint a { color: var(--primary); font-weight: 600; text-decoration: none; }
.error-msg { color: var(--err); font-size: 14px; margin-top: 12px; text-align: center; }

.tipo-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.tipo-toggle button {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--border);
  background: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.tipo-toggle button.active { background: var(--primary); color: white; border-color: var(--primary); }

/* ---- Página de planos ---- */

.plans-section { padding-bottom: 72px; }

.plans-header {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 20px 8px;
  text-align: center;
}
.plans-header h1 { font-size: 30px; margin: 0 0 10px; letter-spacing: -0.3px; }
.plans-header p { color: var(--muted); font-size: 16px; line-height: 1.5; margin: 0 0 14px; }
.plans-header .plans-subnote {
  display: inline-block;
  font-size: 13px;
  color: var(--primary-dark);
  background: rgba(52, 131, 250, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 600;
}

/* Banner do teste grátis: separado da grade paga, tratamento visual próprio */
.trial-banner {
  max-width: 900px;
  margin: 36px auto 8px;
  padding: 0 20px;
}
.trial-banner-inner {
  background: linear-gradient(135deg, #ffffff 0%, #eefdf3 100%);
  border: 1.5px solid var(--ok);
  border-radius: 16px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 2px 10px rgba(26, 158, 75, 0.08);
}
.trial-info { text-align: left; }
.trial-badge {
  display: inline-block;
  background: var(--ok);
  color: white;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.trial-info h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: 0.3px; }
.trial-info p { margin: 0; color: var(--muted); font-size: 14px; }
.trial-cta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.trial-price { font-size: 26px; font-weight: 800; color: var(--ok-dark); }
.btn-trial {
  background: var(--ok);
  color: white;
  border: none;
  padding: 14px 26px;
  white-space: nowrap;
}
.btn-trial:hover { background: var(--ok-dark); }

/* Grade dos planos pagos: 5 cards equilibrados numa linha só no desktop */
.plans-grid {
  max-width: 1160px;
  margin: 8px auto 0;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 980px) {
  .plans-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .plans-grid { grid-template-columns: 1fr; max-width: 420px; }
  .trial-banner-inner { flex-direction: column; text-align: center; }
  .trial-info { text-align: center; }
  .trial-cta { width: 100%; flex-direction: column; }
  .btn-trial { width: 100%; }
}

.plan-card {
  background: white;
  border-radius: 14px;
  padding: 28px 18px 20px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(20, 30, 60, 0.06);
  position: relative;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.plan-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(20, 30, 60, 0.08);
}
.plan-card.destaque-top {
  border: 2px solid var(--primary);
  box-shadow: 0 6px 18px rgba(52, 131, 250, 0.16);
}
.plan-card.destaque-secondary { border: 1.5px solid #9fc1fb; }

.plan-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 5px 12px;
  border-radius: 20px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

.plan-card .nome {
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 6px 0 16px;
}

.plan-card .valor {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1;
}

.plan-card .per-day { font-size: 12px; color: var(--muted); margin-bottom: 20px; }

.plan-card .btn { margin-top: auto; padding: 12px 16px; }
.plan-card.destaque-top .btn-primary { box-shadow: 0 4px 12px rgba(52, 131, 250, 0.3); }
