/* Espiritismo em Rede — landing espiritismo.emrede.social */

:root {
  --c-amarelo: #f6d643;
  --c-amarelo-dark: #d4b82a;
  --c-amarelo-soft: rgba(246, 214, 67, 0.18);
  --c-turquesa: #00b6b8;
  --ink: #1a2332;
  --ink-soft: #4a5568;
  --ink-muted: #718096;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --surface-warm: #fffbf5;
  --border: #e2e8f0;
  --footer-bg: #152030;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(26, 35, 50, 0.08);
  --max-w: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--c-turquesa);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: #3b81ee; }

h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw, 2.85rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.5rem; }

p { margin: 0 0 1.15rem; }
p:last-child { margin-bottom: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 0.75rem 1rem;
  background: var(--c-amarelo);
  color: var(--ink);
}

.skip-link:focus { left: 1rem; top: 1rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link img { height: 44px; width: auto; }

.header-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  align-items: center;
}

.header-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.header-nav a:hover { color: var(--ink); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--surface-warm) 0%, #fff 45%, var(--surface-soft) 100%);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.25rem 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: var(--c-amarelo-soft);
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-badge img { width: 22px; height: 22px; }

.hero-lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

.hero-visual {
  width: min(220px, 40vw);
  filter: drop-shadow(0 16px 40px rgba(246, 214, 67, 0.35));
}

.color-bar {
  display: flex;
  height: 5px;
}

.color-bar span { flex: 1; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--c-amarelo);
  color: var(--ink);
  box-shadow: 0 4px 16px rgba(246, 214, 67, 0.45);
}

.btn-primary:hover {
  background: var(--c-amarelo-dark);
  color: var(--ink);
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--c-amarelo);
  color: var(--ink);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-amarelo-dark);
  margin-bottom: 0.5rem;
}

.section-header {
  max-width: 42rem;
  margin-bottom: 2rem;
}

.section-header p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.section--soft { background: var(--surface-soft); }
.section--warm { background: var(--surface-warm); }

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.card h3 { color: var(--ink); }

.card p { color: var(--ink-soft); font-size: 0.98rem; }

.card--accent {
  border-top: 4px solid var(--c-amarelo);
}

/* App showcase */
.app-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.app-features {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.app-features li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  color: var(--ink-soft);
}

.app-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-amarelo);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
}

.screenshot {
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--surface);
}

.screenshot img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  object-position: top;
}

.screenshot figcaption {
  padding: 0.5rem 0.65rem;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: center;
  border-top: 1px solid var(--border);
}

.app-embed {
  margin-top: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
}

.app-embed-header {
  padding: 0.75rem 1rem;
  background: var(--c-amarelo-soft);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.app-embed iframe {
  display: block;
  width: 100%;
  height: min(70vh, 640px);
  border: 0;
  background: #f4f1ea;
}

/* Links list */
.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

.chip-link:hover {
  border-color: var(--c-amarelo);
  color: var(--ink);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: rgba(255, 255, 255, 0.82);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
}

.footer-inner a { color: rgba(255, 255, 255, 0.88); }
.footer-inner a:hover { color: var(--c-amarelo); }

.footer-tagline {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 0.75rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li { margin-bottom: 0.45rem; }

.footer-bottom {
  max-width: var(--max-w);
  margin: 2rem auto 0;
  padding: 1.25rem 1.25rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-visual { margin: 0 auto; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .btn-row { justify-content: center; }

  .app-showcase { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
  .screenshots-grid { grid-template-columns: 1fr; max-width: 280px; margin: 0 auto; }
  .header-nav { display: none; }
}
