/* ──────────────────────────────────────────────────────────────────────────
   landings-common.css — Estilos compartilhados das landing pages de SEO
   (Dividindo.com). Extraído do <style> inline dos 3 HTMLs standalone:
   alternativa-splitwise, dividir-contas-churrasco, dividir-contas-republica.

   O que mora AQUI: design tokens (:root), reset, base do body, textura de
   papel, navbar e footer compartilhados, pills, botões e section-tag.
   O CSS específico de cada landing (hero, tabela, ticket, mock dashboard,
   etc.) permanece inline no <style> de cada view.
   ────────────────────────────────────────────────────────────────────────── */

/* ── Design System: tokens herdados do protótipo Dividindo ───────────────────
   União das variáveis dos 3 HTMLs. Tokens não usados por uma página são
   inertes — só viram cor quando referenciados. */
:root {
  --bg: #EFF2EC;
  --bg-deep: #E2E6DD;
  --surface: #FFFFFF;
  --surface-2: #F7F9F4;
  --ink: #131A18;
  --ink-2: #4A554E;
  --ink-3: #8A938C;
  --hair: #DFE3DA;
  --hair-2: #C6CCC0;
  --primary: #0B6B4F;
  --primary-2: #0F7D5C;
  --primary-soft: #D5E8DE;
  --primary-ink: #053524;
  --accent: #D96444;          /* brasa / terracota */
  --accent-2: #C95636;
  --accent-soft: #FBE4DA;
  --accent-ink: #5C2410;
  --amber: #C77A1C;
  --amber-soft: #F8E9D0;
  --amber-ink: #5C3505;
  --danger: #C0392B;
  --danger-soft: #F5D9D4;
  --tag-blue: #2563EB;
  --tag-blue-soft: #DBEAFE;

  --r-card: 16px;
  --r-pill: 999px;
  --r-input: 12px;
  --shadow-soft: 0 1px 2px rgba(20,24,29,0.04), 0 4px 12px -4px rgba(20,24,29,0.08);
  --shadow-warm: 0 1px 2px rgba(92,36,16,0.04), 0 8px 24px -10px rgba(92,36,16,0.18);
}

/* ── Reset ─────────────────────────────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ── Base do body ─────────────────────────────────────────────────────────── */
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Textura de papel (sutilíssima) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(27,24,21,0.025) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 1;
}
body > * { position: relative; z-index: 2; }

/* ── Ênfase ───────────────────────────────────────────────────────────────── */
em { font-style: normal; color: var(--primary); }

/* Link contextual dentro do texto (interligação entre landings) — on-brand,
   evita o azul/sublinhado padrão do navegador. */
.inline-link { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.inline-link:hover { color: var(--primary-2); }

/* ── Pills (tags do hero) ─────────────────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  letter-spacing: 0.04em;
}
.pill-amber { background: var(--amber-soft); color: var(--amber-ink); }
.pill-green { background: var(--primary-soft); color: var(--primary-ink); }
.pill-accent { background: var(--accent-soft); color: var(--accent-ink); }
.pill-ink { background: var(--bg-deep); color: var(--ink-2); border: 1px solid var(--hair); }
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ── Section tag (rótulo mono das seções) ─────────────────────────────────── */
.section-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.section-tag.on-light { color: var(--primary); }
.section-tag.on-dark { color: var(--amber); }

/* ── Botões ───────────────────────────────────────────────────────────────── */
.btn-primary {
  background: var(--primary);
  color: var(--surface-2);
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  transition: all 0.15s;
  box-shadow: var(--shadow-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: var(--primary-2); transform: translateY(-1px); }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  color: var(--ink);
  padding: 0.95rem 1.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  border-radius: 999px;
  transition: all 0.15s;
}
.btn-ghost:hover { background: var(--bg-deep); }

.btn-secondary {
  color: var(--ink);
  padding: 0.95rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
  background: var(--surface);
  border: 1px solid var(--hair-2);
  transition: all 0.15s;
}
.btn-secondary:hover { background: var(--bg-deep); }

/* ── Navbar compartilhada (base: alternativa-splitwise.html) ──────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(239, 242, 236, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hair);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-family: 'Manrope', sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.025em;
}
.logo span { color: var(--primary); font-weight: 700; }
.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  background: var(--surface);
  border: 1px solid var(--hair);
  padding: 0.6rem 1.1rem;
  border-radius: 999px;
  transition: all 0.15s;
  box-shadow: var(--shadow-soft);
}
.nav-link:hover { background: var(--primary); color: var(--surface-2); border-color: var(--primary); }

/* ── Footer compartilhado (base: alternativa-splitwise.html) ──────────────── */
footer {
  padding: 2.5rem 2rem;
  text-align: center;
  background: var(--ink);
  color: rgba(244, 245, 247, 0.5);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}
footer a { color: rgba(244, 245, 247, 0.7); margin: 0 0.75rem; text-decoration: none; }
footer a:hover { color: var(--primary-2); }

/* ── Acessibilidade ───────────────────────────────────────────────────────── */
/* Reset de foco visível por teclado (não aparece em clique de mouse). */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
/* Respeita usuários que pedem menos movimento no sistema operacional. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
