/* =============================================================================
   Rede Gospel Play — identidade visual do site
   Mesma paleta do app (constants/colors.ts) para o usuário reconhecer a marca
   ao pular do QR code da TV para o navegador do celular.
   ============================================================================= */

:root {
  --bg-primary: #0a0a0f;
  --bg-card: #12121a;
  --bg-elevated: #1c1c2e;
  --gold: #c9a84c;
  --gold-soft: rgba(201, 168, 76, 0.14);
  --red: #e63946;
  --text: #f5f5f0;
  --text-dim: #8a8a9a;
  --border: #2a2a3e;
  --radius: 14px;
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

/* ------------------------------------------------------------------- cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand img { height: 34px; width: auto; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--text); font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--gold); text-decoration: none; }

/* --------------------------------------------------------------------- botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
  text-decoration: none;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); filter: brightness(1.06); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--gold); color: #0a0a0f; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 32px; font-size: 17px; }

/* ----------------------------------------------------------------------- hero */
.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero::after {
  /* brilho dourado difuso — o mesmo "glow" do foco na TV */
  content: "";
  position: absolute;
  inset: -40% 30% auto -20%;
  height: 620px;
  background: radial-gradient(circle at 30% 40%, rgba(201, 168, 76, 0.16), transparent 62%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.08;
  margin: 0 0 18px;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.hero p.lead { font-size: 18px; color: var(--text-dim); max-width: 620px; margin: 0 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- ao vivo cards */
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.live-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.live-card img.logo { height: 46px; width: auto; }
.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(230, 57, 70, 0.15);
  color: var(--red);
  border: 1px solid rgba(230, 57, 70, 0.4);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  align-self: flex-start;
}
.badge-live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* --------------------------------------------------------------------- seções */
section { padding: 72px 0; }
section h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 0 0 12px; font-weight: 800; letter-spacing: -0.01em; }
section p.section-sub { color: var(--text-dim); margin: 0 0 36px; max-width: 620px; }

/* --------------------------------------------------------------------- planos */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.plan {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan.highlight { border-color: var(--gold); background: linear-gradient(180deg, var(--gold-soft), var(--bg-card) 42%); }
.plan .tag {
  position: absolute; top: -13px; left: 26px;
  background: var(--gold); color: #0a0a0f;
  padding: 4px 12px; border-radius: 6px;
  font-size: 11px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase;
}
.plan h3 { margin: 0 0 6px; font-size: 21px; }
.plan .price { font-size: 38px; font-weight: 900; color: var(--gold); line-height: 1.1; margin: 10px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 600; color: var(--text-dim); }
.plan .note { color: var(--text-dim); font-size: 13px; margin: 0 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.plan li { padding-left: 26px; position: relative; font-size: 15px; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.plan .btn { margin-top: auto; }

/* -------------------------------------------------------------------- formulário */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.card-narrow { max-width: 520px; margin: 0 auto; }

.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.field input, .field select {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-size: 16px; /* 16px evita o zoom automático do iOS ao focar */
  font-family: inherit;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.field .error { color: var(--red); font-size: 13px; margin-top: 6px; }
.field input[aria-invalid="true"] { border-color: var(--red); }

.row { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* ------------------------------------------------------------------- mensagens */
.alert { padding: 14px 18px; border-radius: 10px; margin-bottom: 20px; font-size: 15px; border: 1px solid; }
.alert-error { background: rgba(230, 57, 70, 0.12); border-color: rgba(230, 57, 70, 0.4); color: #ffb3b8; }
.alert-success { background: rgba(76, 201, 122, 0.12); border-color: rgba(76, 201, 122, 0.4); color: #9be8b8; }
.alert-info { background: var(--gold-soft); border-color: rgba(201, 168, 76, 0.4); color: #ecd9a2; }

/* --------------------------------------------------- ativação de dispositivo (TV) */
.code-input {
  font-size: 34px !important;
  letter-spacing: 0.35em;
  text-align: center;
  text-transform: uppercase;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------- métodos de pagto */
.pay-methods { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 24px; }
.pay-method { position: relative; }
.pay-method input { position: absolute; opacity: 0; pointer-events: none; }
.pay-method span {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 12px;
  border: 2px solid var(--border);
  border-radius: 12px;
  background: var(--bg-elevated);
  cursor: pointer;
  font-weight: 700; font-size: 14px;
  transition: border-color 0.15s ease;
}
.pay-method input:checked + span { border-color: var(--gold); background: var(--gold-soft); color: var(--gold); }
.pay-method input:focus-visible + span { box-shadow: 0 0 0 3px var(--gold-soft); }

.pix-box { text-align: center; }
.pix-box img { width: 260px; margin: 0 auto 18px; border-radius: 12px; background: #fff; padding: 12px; }
.copy-field { display: flex; gap: 8px; }
.copy-field input { flex: 1; font-size: 13px !important; }

/* --------------------------------------------------------------------- rodapé */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 0;
  color: var(--text-dim);
  font-size: 14px;
}
.site-footer .container { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; }
.site-footer a { color: var(--text-dim); }
.site-footer a:hover { color: var(--gold); }

.muted { color: var(--text-dim); }
.center { text-align: center; }
.mt-3 { margin-top: 24px; }
