/* Hub de Ouro — landing estática
   Porte fiel de hub-de-ouro/app/landing.tsx. A tela original só usa
   DarkColors (constants/colors.ts) — não tem alternância clara/escura
   hoje, então este site também não tem; é um tema único. */

:root {
  --background: #121110;
  --surface: #1C1A18;
  --surface-tabbar: #161412;
  --border: #332E29;
  --border-subtle: #272320;
  --text-primary: #F5F1E8;
  --text-secondary: #AFA89C;
  --text-tertiary: #7A746A;
  --text-inverse: #1A1816;

  --gold: #D4AF37;
  --gold-strong: #F0C84A;
  --gold-muted: #9C7E2E;
  --gold-border: #D4AF37;
  --gold-surface: #2A2410;

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-action: 14px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 10px rgba(240, 200, 74, 0.55);

  --max-width: 1100px;
  --gutter: 16px;
}

@media (min-width: 769px) {
  :root { --gutter: 24px; }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--text-primary);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  max-width: 100vw;
}

img, svg { display: block; }

a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.icon { flex-shrink: 0; }

/* ---------- NAV ---------- */
.nav {
  background: var(--background);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
}
.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo {
  width: 36px; height: 36px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-glow);
  color: var(--text-inverse);
}
.nav-brand-name { font-size: 18px; font-weight: bold; color: var(--gold-strong); }
.nav-actions { display: flex; gap: 12px; }
.btn-outline-gold {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--gold);
  color: var(--gold-strong);
  font-size: 14px;
  font-weight: 600;
  background: none;
  cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
  padding: 80px var(--gutter) 100px;
  background: linear-gradient(135deg, var(--gold-surface), var(--background));
}
.hero .container { display: flex; flex-direction: column; align-items: center; text-align: center; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  color: var(--gold-strong);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 38px;
  font-weight: bold;
  line-height: 48px;
  margin: 0 0 24px;
  max-width: 700px;
  color: var(--text-primary);
}
.hero h1 .gold { color: var(--gold-strong); }
@media (min-width: 769px) {
  .hero h1 { font-size: 56px; line-height: 68px; }
}
.hero-sub {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 28px;
  margin: 0 0 48px;
  max-width: 560px;
}
@media (min-width: 769px) { .hero-sub { font-size: 18px; } }
.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 480px;
}
@media (min-width: 769px) { .hero-actions { flex-direction: row; } }
.btn-primary-grad {
  flex: 1;
  padding: 16px;
  text-align: center;
  border-radius: var(--radius-action);
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  color: var(--text-inverse);
  font-size: 16px;
  font-weight: 800;
  box-shadow: var(--shadow-glow);
  border: none;
  cursor: pointer;
}
.hero-footnote { color: var(--text-tertiary); font-size: 13px; margin-top: 20px; }

/* ---------- STATS ---------- */
.stats {
  background: var(--surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 40px var(--gutter);
}
.stats .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 16px;
}
.stat { text-align: center; }
.stat-value { font-size: 28px; font-weight: bold; color: var(--gold-strong); display: flex; align-items: center; justify-content: center; min-height: 34px; }
@media (min-width: 769px) { .stat-value { font-size: 40px; min-height: 48px; } }
.stat-icon { width: 28px; height: 28px; }
@media (min-width: 769px) { .stat-icon { width: 36px; height: 36px; } }
.stat-label { font-size: 12px; color: var(--text-tertiary); margin-top: 4px; }

/* ---------- Seções genéricas ---------- */
.section { padding: 80px var(--gutter); }
.section-eyebrow {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  text-align: center;
  margin: 0 0 8px;
  letter-spacing: 2px;
}
.section-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-primary);
  text-align: center;
  margin: 0 0 8px;
}
@media (min-width: 769px) { .section-title { font-size: 36px; } }
.section-subtitle {
  font-size: 15px;
  color: var(--text-tertiary);
  text-align: center;
  margin: 0 0 56px;
}
.section-title--tight { margin-bottom: 56px; }

/* ---------- FEATURES ---------- */
.features-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  width: 100%;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}
@media (min-width: 769px) {
  .feature-card { width: calc(33.333% - 11px); }
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--gold-surface);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}
.feature-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0 0 6px; }
.feature-desc { font-size: 14px; color: var(--text-secondary); line-height: 20px; margin: 0; }

/* ---------- COMO FUNCIONA ---------- */
.section--gradient {
  background: linear-gradient(135deg, var(--background), var(--gold-surface), var(--background));
}
.steps {
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 769px) { .steps { flex-direction: row; gap: 32px; } }
.step {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 20px;
}
@media (min-width: 769px) {
  .step { flex: 1; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
}
.step-number {
  width: 64px; height: 64px;
  border-radius: var(--radius-pill);
  background: var(--gold-surface);
  border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px; font-weight: bold; color: var(--gold-strong);
}
.step-title { font-size: 18px; font-weight: 700; color: var(--text-primary); margin: 0 0 8px; }
.step-desc { font-size: 14px; color: var(--text-secondary); line-height: 22px; margin: 0; }
@media (min-width: 769px) {
  .step-title, .step-desc { text-align: center; }
}

/* ---------- DEPOIMENTOS ---------- */
.testimonials {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
@media (min-width: 769px) { .testimonials { flex-direction: row; } }
.testimonial-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
@media (min-width: 769px) { .testimonial-card { flex: 1; } }
.stars { display: flex; gap: 2px; margin-bottom: 12px; color: var(--gold-strong); }
.testimonial-text {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 22px;
  margin: 0 0 20px;
  font-style: italic;
  flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 40px; height: 40px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-inverse);
  font-weight: bold;
  font-size: 16px;
  flex-shrink: 0;
}
.testimonial-name { color: var(--text-primary); font-weight: 600; font-size: 14px; margin: 0; }
.testimonial-role { color: var(--text-tertiary); font-size: 12px; margin: 0; }
.screenshots-placeholder {
  margin-top: 24px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px dashed var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-tertiary);
}
.screenshots-placeholder p { margin: 0; font-size: 14px; text-align: center; }

/* ---------- PLANOS ---------- */
.pricing-wrap { display: flex; justify-content: center; }
.pricing-card {
  width: 100%;
  max-width: 320px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-md);
}
.pricing-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold-surface);
  padding: 4px 12px;
  border-radius: var(--radius-md);
  color: var(--gold-strong);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}
.pricing-name { font-size: 20px; font-weight: bold; color: var(--text-primary); margin: 0 0 8px; }
.pricing-value { display: flex; flex-direction: column; gap: 4px; margin-bottom: 4px; }
/* Preço antigo: risco + tamanho menor + cor secundária (não só cor) marcam
   que não é mais o preço vigente — contraste de --text-secondary sobre
   --surface verificado em ~7.3:1, acima do mínimo AA (4.5:1). */
.price-old { font-size: 15px; font-weight: 400; color: var(--text-secondary); }
.price-new { display: flex; align-items: baseline; gap: 4px; }
.price-new .prefix { font-size: 14px; color: var(--text-tertiary); }
.price-new .amount { font-size: 44px; font-weight: bold; color: var(--gold-strong); }
.price-new .suffix { font-size: 13px; color: var(--text-tertiary); }
.price-promo { font-size: 12px; color: var(--text-tertiary); margin: 0 0 20px; }
.pricing-features { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; color: var(--text-secondary); font-size: 14px; }
.pricing-features .icon { color: var(--gold); }
.btn-pricing {
  display: block;
  width: 100%;
  padding: 14px;
  text-align: center;
  border-radius: var(--radius-action);
  background: linear-gradient(135deg, var(--gold-strong), var(--gold));
  color: var(--text-inverse);
  font-size: 15px;
  font-weight: 700;
  box-shadow: var(--shadow-glow);
  border: none;
  cursor: pointer;
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 760px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.faq-q { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 0 0 10px; }
.faq-a { font-size: 14px; color: var(--text-secondary); line-height: 22px; margin: 0; }
/* Link dentro de texto corrido: sublinhado, não só cor diferente, para
   ficar reconhecível como link mesmo sem depender da distinção de cor. */
.faq-a a { color: var(--gold-strong); text-decoration: underline; }

/* ---------- CTA FINAL ---------- */
.cta-final {
  padding: 80px var(--gutter);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: linear-gradient(135deg, var(--gold-surface), var(--surface));
}
.cta-final h2 {
  font-size: 30px;
  font-weight: bold;
  color: var(--text-primary);
  margin: 0 0 16px;
  max-width: 600px;
}
@media (min-width: 769px) { .cta-final h2 { font-size: 40px; } }
.cta-final p {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0 0 40px;
  max-width: 400px;
}
.btn-cta-grad {
  width: 100%;
  max-width: 360px;
  padding: 18px;
  text-align: center;
  border-radius: var(--radius-action);
  background: linear-gradient(135deg, var(--gold-strong), var(--gold), var(--gold-muted));
  color: var(--text-inverse);
  font-size: 17px;
  font-weight: 800;
  box-shadow: var(--shadow-glow);
  border: none;
  cursor: pointer;
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--surface-tabbar);
  padding: 40px var(--gutter);
  border-top: 1px solid var(--border-subtle);
}
.footer .container {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
@media (min-width: 769px) {
  .footer .container { flex-direction: row; align-items: center; }
}
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.footer-logo {
  width: 28px; height: 28px;
  border-radius: var(--radius-pill);
  background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-inverse);
}
.footer-brand-name { font-size: 16px; font-weight: bold; color: var(--gold-strong); }
.footer-copy { color: var(--text-tertiary); font-size: 12px; margin: 0; }
.footer-links { display: flex; gap: 24px; }
/* Botões em forma de link. Vêm depois de ".documento a" / ".faq-a a" (0,1,1),
   que pintam de dourado e sublinham todo link de texto corrido; sem isto o
   botão dourado herdava texto dourado. ":is(...)" soma (0,1,0) à especificidade
   (a.classe:is(...) = 0,2,1), então vence em qualquer estado e em qualquer ordem. */
a.btn-primary-grad:is(:link, :visited, :hover, :focus, :active),
a.btn-pricing:is(:link, :visited, :hover, :focus, :active),
a.btn-cta-grad:is(:link, :visited, :hover, :focus, :active) {
  color: var(--text-inverse);
  text-decoration: none;
}
a.btn-outline-gold:is(:link, :visited, :hover, :focus, :active) {
  color: var(--gold-strong);
  text-decoration: none;
}

.footer-links a, .footer-links button {
  color: var(--text-tertiary);
  font-size: 13px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

/* ---------- PÁGINAS DE CONTEÚDO (privacidade, excluir conta) ---------- */
.nav-brand-link { display: flex; align-items: center; gap: 10px; }
.page-header { padding: 48px var(--gutter) 8px; }
.page-header h1 {
  font-size: 26px;
  font-weight: bold;
  color: var(--text-primary);
  margin: 0 0 8px;
  max-width: 760px;
}
@media (min-width: 769px) { .page-header h1 { font-size: 34px; } }
.page-header .atualizado { font-size: 13px; color: var(--text-tertiary); margin: 0; }

.documento { max-width: 760px; margin: 0 auto; padding: 24px var(--gutter) 80px; }
.documento p, .documento li { font-size: 15px; line-height: 1.65; color: var(--text-secondary); }
.documento strong { color: var(--text-primary); font-weight: 600; }
.documento h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 12px;
  scroll-margin-top: 16px;
}
.documento ul { margin: 0 0 16px; padding-left: 20px; }
.documento li { margin-bottom: 6px; }
.documento p { margin: 0 0 16px; }
.documento a { color: var(--gold-strong); text-decoration: underline; }

.sumario {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 0 0 32px;
}
.sumario p { font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: 1px; margin: 0 0 10px; }
.sumario ol { margin: 0; padding-left: 20px; columns: 1; }
@media (min-width: 769px) { .sumario ol { columns: 2; column-gap: 24px; } }
.sumario li { font-size: 14px; margin-bottom: 6px; }
.sumario a { color: var(--text-secondary); text-decoration: none; }
.sumario a:hover, .sumario a:focus { color: var(--gold-strong); text-decoration: underline; }

.tabela-scroll { overflow-x: auto; margin: 0 0 16px; -webkit-overflow-scrolling: touch; }
.documento table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.documento th, .documento td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}
.documento th { color: var(--text-primary); font-weight: 600; background: var(--surface); }

/* Caixa de aviso: nunca só a cor marca a gravidade — ícone + rótulo em
   texto (AVISO) + borda, junto com a cor. */
.caixa-aviso {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 0 0 24px;
}
.caixa-aviso .icon { color: var(--gold-strong); margin-top: 2px; }
.caixa-aviso strong { display: block; color: var(--text-primary); font-size: 14px; margin-bottom: 4px; }
.caixa-aviso p { margin: 0; font-size: 14px; color: var(--text-secondary); }

.caixa-info {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 0 0 24px;
}
.caixa-info h3 { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 0 0 12px; }
.caixa-info ul { margin: 0; padding-left: 20px; }
.caixa-info li { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }

/* ---------- PÁGINA DE CONVITE ---------- */
.convite-wrap { max-width: 480px; margin: 0 auto; padding: 64px var(--gutter) 80px; text-align: center; }
.convite-card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  box-shadow: var(--shadow-md);
}
.convite-icone {
  width: 56px; height: 56px;
  border-radius: var(--radius-pill);
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  color: var(--gold);
}
.convite-titulo { font-size: 20px; font-weight: 700; color: var(--text-primary); margin: 0 0 4px; }
.convite-sub { font-size: 14px; color: var(--text-secondary); margin: 0 0 20px; }
.convite-detalhe {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 14px;
}
.convite-detalhe span:first-child { color: var(--text-tertiary); }
.convite-detalhe span:last-child { color: var(--text-primary); font-weight: 600; }
.convite-status { font-size: 14px; color: var(--text-tertiary); margin: 16px 0; }
.convite-sem-app { font-size: 13px; color: var(--text-tertiary); line-height: 1.6; margin-top: 20px; }
.convite-erro { color: var(--text-primary); }
.convite-erro .convite-icone { background: var(--surface); border-color: var(--border); color: var(--text-secondary); }
