/* Vida de Louvor e Fé — landing page
   Paleta alinhada ao tema do app (src/constants/theme.ts):
   primary #3E6E8E · accent #C9A227 · background #FBF8F2 · text #1A1A1A */

:root {
  --bg: #fbf8f2;
  --bg-elev: #ffffff;
  --bg-soft: #f0eadd;
  --text: #1a1a1a;
  --text-2: #6b655b;
  --primary: #3e6e8e;
  --primary-dark: #2f5872;
  --accent: #c9a227;
  --accent-soft: #f6efd6;
  --border: #e7e0d3;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px -24px rgba(46, 60, 72, 0.45);
  --max: 1080px;
  --serif: ui-serif, Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.15;
  margin: 0;
}

a {
  color: inherit;
}

/* ---------- Header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.15rem;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
}

.site-nav {
  display: flex;
  gap: 22px;
  font-size: 0.95rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--text-2);
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--primary);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 72px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}

.accent {
  color: var(--primary);
}

.lead {
  font-size: 1.15rem;
  color: var(--text-2);
  max-width: 32ch;
  margin: 0 0 28px;
}

.cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  font-size: 1rem;
  transition:
    transform 0.12s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

/* Azul mais escuro no botão = texto branco com contraste AAA (legibilidade). */
.btn-primary {
  background: var(--primary-dark);
  color: #fff;
  box-shadow: var(--shadow);
}

.btn-primary:hover {
  background: #264a61;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--primary);
}

.btn.is-disabled {
  background: var(--bg-soft);
  color: var(--text-2);
  box-shadow: none;
  cursor: default;
}

.hero-note {
  font-size: 0.95rem;
  color: var(--text-2);
  margin: 0;
}

/* Arte do hero — mockup de celular */
.hero-art {
  display: grid;
  place-items: center;
}

.phone {
  width: 260px;
  height: 520px;
  border-radius: 40px;
  background: linear-gradient(160deg, #ffffff, #f3ece0);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 18px;
}

.phone-screen {
  height: 100%;
  border-radius: 26px;
  background: linear-gradient(170deg, var(--primary), #2c5066);
  color: #fff;
  padding: 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.phone-logo {
  width: 56px;
  height: 56px;
  align-self: center;
  object-fit: contain;
  margin-bottom: 2px;
}

.phone-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  opacity: 0.8;
  margin: 0;
}

.phone-screen h3 {
  font-size: 1.5rem;
}

.phone-verse {
  font-style: italic;
  opacity: 0.92;
  margin: 0;
}

.phone-pill {
  margin-top: auto;
  align-self: flex-start;
  background: var(--accent);
  color: #1a1a1a;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
}

/* ---------- Seções genéricas ---------- */
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  text-align: center;
  margin-bottom: 36px;
}

/* ---------- Recursos ---------- */
.features {
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 64px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 1.8rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin: 14px 0 8px;
}

.feature-card p {
  margin: 0;
  color: var(--text-2);
}

/* ---------- Compartilhe (propagação) ---------- */
.share-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.share .cta-group {
  justify-content: center;
  margin-top: 8px;
}

/* Feedback ao copiar o link (botão "Copiar link"). */
.btn-ghost.is-copied {
  border-color: var(--primary);
  color: var(--primary);
}

/* Formulário "Convidar por e-mail". */
.invite-form {
  max-width: 460px;
  margin: 16px auto 0;
  text-align: left;
}

.invite-label {
  display: block;
  font-size: 0.92rem;
  color: var(--text-2);
  margin-bottom: 8px;
  text-align: center;
}

.invite-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.invite-input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--bg-elev);
  color: var(--text);
}

.invite-input:focus {
  outline: none;
  border-color: var(--primary);
}

/* Honeypot: fora da tela, mas não display:none (bots ignoram display:none). */
.invite-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.invite-status {
  font-size: 0.92rem;
  color: var(--primary);
  text-align: center;
  margin: 12px 0 0;
  min-height: 1.2em;
}

.invite-status.is-error {
  color: #b3261e;
}

/* ---------- Privacidade ---------- */
.privacy {
  background: var(--accent-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.privacy-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 64px 24px;
  text-align: center;
}

.privacy-inner > p {
  font-size: 1.1rem;
  color: var(--text-2);
}

.privacy-list {
  list-style: none;
  padding: 0;
  margin: 26px 0 0;
  display: inline-grid;
  gap: 10px;
  text-align: left;
  font-weight: 500;
}

/* ---------- Baixar ---------- */
.download {
  max-width: var(--max);
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}

.download-sub {
  color: var(--text-2);
  margin: -20px 0 28px;
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 26px;
}

.store-badge {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 22px;
  font-weight: 600;
  color: var(--text-2);
}

.store-badge.soon {
  background: var(--bg-elev);
}

/* ---------- Footer ---------- */
.site-footer {
  background: #211d18;
  color: #f5f1e8;
  text-align: center;
  padding: 48px 24px;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin: 0 0 16px;
}

.footer-nav {
  display: flex;
  gap: 22px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.footer-nav a {
  color: #d9d2c4;
  text-decoration: none;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-copy {
  font-size: 0.85rem;
  color: #b5ae9f;
  margin: 0;
}

/* ---------- Páginas legais ---------- */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.legal h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin-bottom: 8px;
}

.legal h2 {
  font-size: 1.35rem;
  margin: 32px 0 10px;
}

.legal-updated {
  color: var(--text-2);
  font-size: 0.9rem;
  margin: 0 0 28px;
}

.legal p,
.legal li {
  color: var(--text-2);
}

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

.legal-back {
  margin-top: 40px;
  font-weight: 600;
}

/* ---------- Responsivo ---------- */
@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 32px;
    text-align: center;
  }

  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .cta-group {
    justify-content: center;
  }

  .hero-art {
    order: -1;
  }

  .site-nav {
    display: none;
  }
}

/* ---------- Subtítulo de seção ---------- */
.section-sub {
  text-align: center;
  color: var(--text-2);
  font-size: 1.05rem;
  max-width: 52ch;
  margin: -20px auto 36px;
}

/* ---------- CTA no header ---------- */
/* Seletor com a mesma especificidade de `.site-nav a` (0,1,1) para que o
   texto branco vença a cor escura dos links do menu — antes o botão saía
   ilegível (texto escuro sobre o teal). */
.site-nav a.nav-cta {
  background: var(--primary-dark);
  color: #fff;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition:
    background 0.18s ease,
    transform 0.12s ease;
}

.site-nav a.nav-cta:hover {
  background: #264a61;
  color: #fff;
  transform: translateY(-1px);
}

/* ---------- Selos do hero ---------- */
.hero-badges {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 0;
  margin: 0 0 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
}

@media (max-width: 820px) {
  .hero-badges {
    justify-content: center;
  }
}

/* ---------- Botões extras ---------- */
.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
}

.btn-light {
  background: #fff;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.btn-light:hover {
  background: var(--accent-soft);
  transform: translateY(-1px);
}

/* ---------- Como funciona ---------- */
.how {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.how-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.step {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
}

.step-num {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.step p {
  margin: 0;
  color: var(--text-2);
}

/* ---------- Comece agora ---------- */
.start {
  background: linear-gradient(165deg, var(--primary), #2c5066);
  color: #fff;
}

.start-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 72px 24px;
  text-align: center;
}

.start-inner h2 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin-bottom: 12px;
}

.start-sub {
  font-size: 1.15rem;
  opacity: 0.92;
  margin: 0 0 28px;
}

.start .store-badges {
  margin-top: 26px;
  margin-bottom: 0;
}

.start .store-badge.soon {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  color: #f0ece2;
}
