/* ============================================================
   LANDING PAGE — estilos específicos do index.html
   ============================================================ */

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 1.5rem 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(ellipse at center, var(--amber-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--wire) 1px, transparent 1px),
    linear-gradient(90deg, var(--wire) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 30%, transparent 70%);
  pointer-events: none;
}
/* Brilho e grelha ficam POR TRÁS do conteúdo do hero (Set 2026 — antes,
   sem z-index, o ::after desenhava as linhas da grelha por cima do título
   e do botão). */
.hero::before,
.hero::after { z-index: 0; }
.hero > * { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ghost);
  border: 1px solid var(--wire-2);
  border-radius: 999px;
  padding: 0.375rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--rx-accent-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: pulse 2s ease infinite;
}

.hero h1 {
  font-family: var(--rx-font-display);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4.75rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: 800px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero h1 em {
  font-style: normal;
  color: var(--rx-accent-text);
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.1875rem);
  color: var(--text-2);
  max-width: 500px;
  line-height: 1.65;
  margin-bottom: 3rem;
  font-weight: 300;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-form {
  display: flex;
  gap: 0.75rem;
  width: 100%;
  max-width: 560px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-form input {
  flex: 1;
  background: var(--ghost-2);
  border: 1px solid var(--wire-2);
  border-radius: 8px;
  padding: 0.875rem 1.125rem;
  font-family: var(--rx-font-body);
  font-size: 0.9375rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}

.hero-form input::placeholder { color: var(--text-3); }
.hero-form input:focus {
  border-color: var(--amber);
  background: var(--ghost-3);
}

.hero-form button {
  background: var(--amber);
  color: var(--rx-accent-contrast);
  border: none;
  border-radius: 8px;
  padding: 0.875rem 1.5rem;
  font-family: var(--rx-font-display);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}

.hero-form button:hover {
  background: var(--amber-2);
  transform: translateY(-1px);
}

.hero-note {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--text-3);
  animation: fadeUp 0.6s 0.4s ease both;
}

/* ── REPORT PREVIEW ── */
.hero-preview {
  margin-top: 5rem;
  position: relative;
  width: 100%;
  max-width: 780px;
  animation: fadeUp 0.8s 0.5s ease both;
}

.hero-preview::before {
  content: '';
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 80px;
  background: var(--amber);
  filter: blur(80px);
  opacity: 0.12;
  border-radius: 50%;
}

.preview-window {
  background: var(--ink-2);
  border: 1px solid var(--wire-2);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,0.6), 0 0 0 1px var(--wire);
}

.preview-bar {
  background: var(--ink-3);
  border-bottom: 1px solid var(--wire);
  padding: 0.875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot:nth-child(1) { background: #ff5f57; }
.preview-dot:nth-child(2) { background: #febc2e; }
.preview-dot:nth-child(3) { background: #28c840; }

.preview-url {
  margin-left: 0.75rem;
  background: var(--ghost);
  border: 1px solid var(--wire);
  border-radius: 6px;
  padding: 0.25rem 0.875rem;
  font-family: var(--rx-font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  flex: 1;
  max-width: 320px;
}

/* Janela de exemplo do topo: a estrutura é do rx-core
   (css/rx-core/report-preview.css); aqui só a recomendação, como no
   topo do relatório (recommendationHero), em cores do contrato. */
.pv-verdict{display:grid;gap:.375rem;padding:.875rem 1rem;border-radius:12px;background:color-mix(in srgb,var(--rx-good) 10%,transparent);border:1px solid color-mix(in srgb,var(--rx-good) 28%,transparent)}
.pv-kicker{font-size:.625rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--rx-text-3)}
.pv-value{font-family:var(--rx-font-display);font-size:1.375rem;font-weight:700;letter-spacing:-.02em;line-height:1.1;color:var(--rx-good)}
/* Sem percentagem de confiança (Out 2026, decisão do utilizador): a frase de
   resumo, como no cartão "A nossa recomendação" do /exemplo. */
.pv-summary{margin:0;font-size:.8125rem;line-height:1.45;color:var(--rx-text-2)}

/* ── SECTIONS ── */
.page-landing section { padding: 6rem 1.5rem; }

.section-inner { max-width: 900px; margin: 0 auto; }

/* ── HOW IT WORKS ── */
.how {
  background: var(--ink-2);
  border-top: 1px solid var(--wire);
  border-bottom: 1px solid var(--wire);
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}

.how-steps::before {
  content: '';
  position: absolute;
  top: 1.75rem;
  left: calc(16.66% + 1.5rem);
  right: calc(16.66% + 1.5rem);
  height: 1px;
  background: linear-gradient(90deg, var(--amber) 0%, var(--wire-2) 50%, var(--amber) 100%);
  opacity: 0.4;
}

.how-step { text-align: center; position: relative; }

.how-num {
  width: 3.5rem; height: 3.5rem;
  border-radius: 50%;
  background: var(--ink-3);
  border: 1px solid var(--wire-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  font-family: var(--rx-font-mono);
  font-size: 1.125rem;
  color: var(--rx-accent-text);
  position: relative;
  z-index: 1;
}

.how-step-title {
  font-family: var(--rx-font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.how-step-body { font-size: 0.875rem; color: var(--text-3); line-height: 1.6; }

/* ── DIMENSIONS ── */
.dims-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--wire);
  border: 1px solid var(--wire);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 3.5rem;
}

.dim-cell { background: var(--ink); padding: 1.75rem; transition: background 0.2s; }
.dim-cell:hover { background: var(--ink-2); }
.dim-icon { font-size: 1.5rem; margin-bottom: 0.875rem; }

.dim-title {
  font-family: var(--rx-font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.dim-body { font-size: 0.8125rem; color: var(--text-3); line-height: 1.55; }

/* ── PROOF ── */
.proof {
  background: var(--ink-2);
  border-top: 1px solid var(--wire);
  border-bottom: 1px solid var(--wire);
}

/* Link da secção "Exemplo real" para o relatório de exemplo completo. */
.proof-link {
  display: inline-block;
  margin-top: 1.25rem;
  font-weight: 600;
  color: var(--rx-accent-text);
  text-decoration: none;
}
.proof-link:hover { text-decoration: underline; }

.proof-card {
  background: var(--ink-3);
  border: 1px solid var(--wire-2);
  border-left: 3px solid var(--red);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 3rem;
}

.proof-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--red);
  margin-bottom: 0.75rem;
}

.proof-text { font-size: 0.9375rem; color: var(--text); line-height: 1.6; margin-bottom: 0.875rem; }

.proof-evidence {
  font-family: var(--rx-font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  border-top: 1px solid var(--wire);
  padding-top: 0.875rem;
}

.proof-quote {
  margin-top: 2rem;
  background: var(--ghost);
  border: 1px solid var(--wire-2);
  border-radius: 10px;
  padding: 1.5rem;
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.65;
  font-weight: 300;
  position: relative;
}

/* ── PRICING ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.pricing-card {
  background: var(--ink-2);
  border: 1px solid var(--wire-2);
  border-radius: 12px;
  padding: 2rem 1.75rem;
  position: relative;
  transition: border-color 0.2s, transform 0.2s;
}

.pricing-card:hover { border-color: var(--wire); transform: translateY(-2px); }

.pricing-card.featured {
  border-color: var(--amber);
  background: var(--ink-3);
}

.pricing-card.featured::before {
  content: 'Mais popular';
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: var(--rx-accent-contrast);
  font-family: var(--rx-font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.875rem;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-name {
  font-family: var(--rx-font-display);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.pricing-price {
  /* Não mono: a vírgula ocupava uma casa inteira ("€2 ,49"). */
  font-family: var(--rx-font-body);
  font-variant-numeric: tabular-nums;
  font-size: 2.25rem;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.pricing-price span { font-size: 1rem; color: var(--text-3); }
.pricing-rx { font-size: 0.8125rem; color: var(--rx-text-3); margin-bottom: 0.5rem; }
.pricing-divider { height: 1px; background: var(--wire); margin-bottom: 1.5rem; }

.pricing-feature {
  font-size: 0.8125rem;
  color: var(--text-2);
  margin-bottom: 0.625rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pricing-feature::before { content: '✓'; color: var(--rx-accent-text); font-size: 0.75rem; flex-shrink: 0; }

.pricing-soon {
  margin-top: 1.75rem;
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-3);
  background: var(--ghost);
  border: 1px solid var(--wire);
  border-radius: 6px;
  padding: 0.5rem;
  font-family: var(--rx-font-mono);
}

/* ── WAITLIST ── */
.waitlist {
  background: var(--ink-2);
  border-top: 1px solid var(--wire);
}

.waitlist-inner { max-width: 560px; margin: 0 auto; text-align: center; }

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-top: 2.5rem;
}

.waitlist-form input {
  background: var(--ghost-2);
  border: 1px solid var(--wire-2);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  font-family: var(--rx-font-body);
  font-size: 1rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.waitlist-form input::placeholder { color: var(--text-3); }
.waitlist-form input:focus { border-color: var(--amber); }

.waitlist-form button {
  background: var(--amber);
  color: var(--rx-accent-contrast);
  border: none;
  border-radius: 8px;
  padding: 1rem;
  font-family: var(--rx-font-display);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}

.waitlist-form button:hover { background: var(--amber-2); transform: translateY(-1px); }

.waitlist-note { margin-top: 1rem; font-size: 0.8125rem; color: var(--text-3); line-height: 1.5; }

.waitlist-success {
  display: none;
  background: var(--ghost);
  border: 1px solid var(--wire-2);
  border-radius: 10px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .how-steps { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
  .dims-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-form { flex-direction: column; }
}

@media (max-width: 480px) {
  .dims-grid { grid-template-columns: 1fr; }
}

/* 4 pacotes (Solo, Starter, Standard, Pro — Out 2026, os mesmos da página
   de compra): 2 colunas em ecrãs médios, 1 no telemóvel (regra acima). */
@media (max-width: 900px) and (min-width: 769px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Página "Comprar créditos RX": estilos no rx-core (css/rx-core/buy-credits.css). */
