/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .15s, transform .1s;
  text-decoration: none;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }

.btn--red  { background: var(--red);   color: #fff; box-shadow: 0 0 20px rgba(255,75,75,.25); }
.btn--red:hover:not(:disabled) { background: var(--red-dark); }

.btn--green { background: var(--green); color: #fff; }
.btn--green:hover:not(:disabled) { background: #00A846; }

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn--outline:hover:not(:disabled) { border-color: var(--text-sec); }

.btn--google {
  background: #fff;
  color: #1a1a1a;
  border: 1.5px solid #ddd;
}
.btn--google:hover:not(:disabled) { background: #f5f5f5; }

.btn--sm { padding: 10px 18px; font-size: .875rem; }

/* ── Input ───────────────────────────────────────────────── */
.input-wrap { position: relative; width: 100%; }

.input {
  width: 100%;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  transition: border-color .2s;
  outline: none;
}
.input:focus { border-color: var(--red); }
.input::placeholder { color: var(--text-sec); }

/* ── Card ────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* ── Badge ───────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.badge--alto   { background: rgba(255,23,68,.15);  color: var(--red-error); }
.badge--medio  { background: rgba(255,179,0,.15);  color: var(--yellow); }
.badge--baixo  { background: rgba(0,200,83,.15);   color: var(--green); }

/* ── Gauge semicircular ──────────────────────────────────── */
.gauge-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.gauge-svg { overflow: visible; }
.gauge-bg   { fill: none; stroke: var(--border); stroke-width: 10; stroke-linecap: round; }
.gauge-fill { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .8s ease; }
.gauge-score {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  fill: var(--text);
  text-anchor: middle;
  dominant-baseline: middle;
}
.gauge-label {
  font-size: .7rem;
  fill: var(--text-sec);
  text-anchor: middle;
}

/* ── Progress bar ────────────────────────────────────────── */
.progress-wrap {
  width: 100%;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}
.progress-bar {
  height: 100%;
  background: var(--red);
  border-radius: 999px;
  transition: width .4s ease;
}
.progress-bar--anim {
  animation: progress-indeterminate 2s linear infinite;
}
@keyframes progress-indeterminate {
  0%   { width: 0%; margin-left: 0; }
  50%  { width: 60%; }
  100% { width: 0%; margin-left: 100%; }
}

/* ── Spinner ─────────────────────────────────────────────── */
.spinner {
  width: 48px; height: 48px;
  border: 4px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Divider ─────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-sec);
  font-size: .875rem;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── OTP boxes ───────────────────────────────────────────── */
.otp-wrap {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.otp-box {
  width: 48px; height: 56px;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  outline: none;
  transition: border-color .15s;
}
.otp-box:focus { border-color: var(--red); }

/* ── Checkbox ────────────────────────────────────────────── */
.checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
}
.checkbox-wrap input[type=checkbox] {
  flex-shrink: 0;
  width: 20px; height: 20px;
  margin-top: 2px;
  accent-color: var(--red);
  cursor: pointer;
}
.checkbox-label { font-size: .875rem; color: var(--text-sec); line-height: 1.5; }

/* ── Problem accordion ───────────────────────────────────── */
.problem-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.problem-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  user-select: none;
}
.problem-title { flex: 1; font-weight: 600; font-size: .95rem; }
.problem-chevron { color: var(--text-sec); transition: transform .2s; }
.problem-item.open .problem-chevron { transform: rotate(180deg); }
.problem-body {
  display: none;
  padding: 0 16px 14px;
  font-size: .875rem;
  color: var(--text-sec);
}
.problem-item.open .problem-body { display: block; }

/* ── Blur overlay ────────────────────────────────────────── */
.blur-section {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
}
.blur-content {
  filter: blur(6px);
  pointer-events: none;
  user-select: none;
}
.blur-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: rgba(10,10,10,.6);
}
.blur-overlay svg { opacity: .8; }

/* ── Toast / feedback ────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 20px;
  font-size: .875rem;
  white-space: nowrap;
  z-index: 999;
  opacity: 0;
  transition: opacity .2s;
}
.toast.show { opacity: 1; }

/* ── Stars ───────────────────────────────────────────────── */
.stars { color: #FFB300; letter-spacing: 2px; }

/* ── Social proof counter ────────────────────────────────── */
.counter-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,75,75,.1);
  border: 1px solid rgba(255,75,75,.2);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: .875rem;
  color: var(--red);
  font-weight: 600;
}

/* ── Price anchor ────────────────────────────────────────── */
.price-old {
  font-size: 1rem;
  color: var(--text-sec);
  text-decoration: line-through;
}
.price-new {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 900;
  color: var(--red);
  line-height: 1;
}
.discount-badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

/* ── Benefits list ───────────────────────────────────────── */
.benefits { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.benefits li { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.benefits li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }

/* ── QR Code ─────────────────────────────────────────────── */
.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.qr-box img {
  width: 200px; height: 200px;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
}

/* ── Timer ───────────────────────────────────────────────── */
.timer {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--red);
  letter-spacing: .05em;
}

/* ── Section title ───────────────────────────────────────── */
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-sec);
  font-size: .8rem;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.footer a { color: var(--text-sec); }
.footer a:hover { color: var(--text); }
