/* ===== Design tokens (mesma paleta do app) ===== */
:root {
  --bg: #fdf8f1;
  --bg-elevated: #ffffff;
  --border: #f0e1cf;
  --text: #2a1c14;
  --text-muted: #7a6355;
  --text-faint: #ab9484;

  --primary: #c0392b;
  --primary-dark: #96281b;
  --primary-light: #fdece9;

  --shadow-sm: 0 1px 2px rgba(20, 30, 25, 0.06);
  --shadow-md: 0 4px 16px rgba(20, 30, 25, 0.08);
  --shadow-lg: 0 12px 32px rgba(20, 30, 25, 0.14);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1310;
    --bg-elevated: #271b16;
    --border: #3d2b22;
    --text: #f7ece4;
    --text-muted: #c9ada0;
    --text-faint: #8f7568;

    --primary: #e2604c;
    --primary-dark: #c0392b;
    --primary-light: #3a1f19;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
.hidden { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.6; cursor: default; }
.btn-block { width: 100%; }

.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Landing page ===== */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.site-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-header .brand-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  display: block;
}
.site-header .brand-name {
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.2px;
}
.site-header-login {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  white-space: nowrap;
}
.site-header-login:hover { color: var(--primary); }

.hero {
  padding: 64px 0 48px;
  text-align: center;
}
.hero h1 {
  font-size: 40px;
  line-height: 1.15;
  margin: 0 0 16px;
  font-weight: 800;
}
.hero h1 span { color: var(--primary); }
.hero p.lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 48px 0;
}
.step {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  text-align: center;
}
.step .num {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  margin: 0 auto 14px;
}
.step h3 { margin: 0 0 8px; font-size: 15.5px; }
.step p { margin: 0; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

.included {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 48px 0;
}
.included h2 { margin: 0 0 18px; font-size: 20px; }
.included ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.included li { font-size: 14.5px; color: var(--text-muted); display: flex; gap: 10px; align-items: flex-start; }
.included li::before { content: "✓"; color: var(--primary); font-weight: 800; flex-shrink: 0; }

.pricing {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  text-align: center;
  color: #fff;
  margin: 48px 0 64px;
  box-shadow: var(--shadow-lg);
}
.pricing .price { font-size: 46px; font-weight: 800; margin: 6px 0 4px; }
.pricing .price small { font-size: 16px; font-weight: 600; opacity: 0.85; }
.pricing .note { font-size: 13.5px; opacity: 0.85; margin: 0 0 24px; }
.pricing .btn-primary {
  background: #fff;
  border-color: #fff;
  color: var(--primary-dark);
  padding: 15px 30px;
  font-size: 16px;
}
.pricing .btn-primary:hover { background: #fdf1e6; }
.pricing .error-msg { margin-top: 14px; font-size: 13px; color: #ffe3e3; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0 40px;
  text-align: center;
  color: var(--text-faint);
  font-size: 12.5px;
}

.banner-notice {
  background: var(--primary-light);
  color: var(--primary-dark);
  border: 1px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 13.5px;
  margin: 24px 0 0;
  text-align: center;
}

/* ===== Auth page ===== */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.auth-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 32px 28px;
  width: 100%;
  max-width: 380px;
}
.auth-card .brand-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: block;
  margin: 0 auto 16px;
}
.auth-card h1 { font-size: 18px; text-align: center; margin: 0 0 4px; }
.auth-card p.sub { text-align: center; font-size: 13px; color: var(--text-muted); margin: 0 0 24px; }

.auth-tabs {
  display: flex;
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 4px;
  margin-bottom: 22px;
}
.auth-tab {
  flex: 1;
  text-align: center;
  padding: 8px;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
}
.auth-tab.active { background: var(--primary); color: #fff; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-muted); margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.field input:focus { border-color: var(--primary); }

.auth-error {
  background: #fdecec;
  color: #b3261e;
  border: 1px solid #f3c7c7;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}
.auth-error.show { display: block; }

@media (prefers-color-scheme: dark) {
  .auth-error { background: #341a1a; color: #ff9c9c; border-color: #5c2b2b; }
}

@media (max-width: 640px) {
  .hero h1 { font-size: 30px; }
  .steps { grid-template-columns: 1fr; }
  .included ul { grid-template-columns: 1fr; }
  .pricing { padding: 32px 20px; }
}

/* ===== Adições do PHP ===== */
.site-header-brand { text-decoration: none; color: var(--text); }
.site-header .brand-icon { object-fit: contain; }
.hero-note { margin: 14px 0 0; font-size: 13px; color: var(--text-faint); }
.hero .btn { text-decoration: none; }

.sample {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  margin: 48px 0;
  box-shadow: var(--shadow-sm);
}
.sample-label { margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--primary); }
.sample h2 { margin: 0 0 4px; font-size: 22px; }
.sample-refs { margin: 0 0 12px; font-size: 13px; color: var(--text-muted); }
.sample p { line-height: 1.6; color: var(--text-muted); }
.sample blockquote {
  margin: 16px 0 0; padding: 12px 16px;
  border-left: 3px solid var(--primary);
  background: var(--primary-light);
  border-radius: 0 8px 8px 0;
  line-height: 1.65; font-size: 14.5px;
}

.faq { margin: 48px 0; }
.faq h2 { font-size: 20px; margin: 0 0 14px; }
.faq details { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; }
.faq details p { margin: 10px 0 0; color: var(--text-muted); line-height: 1.6; font-size: 14.5px; }

.pricing .btn-primary { text-decoration: none; }

.footer-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); }
.site-footer p { margin: 0; }

/* Autenticação */
.auth-card .brand-icon { object-fit: contain; }
.auth-card form.auth-links { margin: 14px 0 0; }
.auth-links { text-align: center; font-size: 13px; color: var(--text-muted); margin: 18px 0 0; line-height: 1.9; }
.fine-print { font-size: 12px; color: var(--text-faint); line-height: 1.5; margin: 14px 0 0; }
.auth-who { font-size: 13.5px; color: var(--text-muted); margin: 0 0 16px; }

/* Retorno do pagamento */
.status-page { padding: 56px 20px; }
.status-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 36px 32px; max-width: 560px; margin: 0 auto; text-align: center; }
.status-card h1 { font-size: 24px; margin: 0 0 12px; }
.status-card p { color: var(--text-muted); line-height: 1.6; }
.status-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 22px 0 !important; }
.status-meta { font-size: 12.5px; color: var(--text-faint) !important; margin-bottom: 0; }

/* Páginas legais */
.legal { padding: 40px 20px 60px; max-width: 760px; line-height: 1.7; }
.legal h1 { font-size: 30px; }
.legal h2 { font-size: 18px; margin-top: 28px; }
.legal p, .legal li { color: var(--text-muted); font-size: 15px; }
.legal-updated { font-size: 12.5px !important; color: var(--text-faint) !important; margin-top: 32px; }

@media (max-width: 640px) {
  .sample { padding: 22px 20px; }
}
