/* ============================================================
   partoemcasa.com.br — "Casa real, cuidado real"
   Paleta: creme quente, terracota, ameixa profunda, verde profundo
   Tipografia: Lora (narrativa) + Karla (corpo/UI)
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --cream: #f7f0e3;
  --cream-soft: #fbf6ec;
  --cream-deep: #efe4cf;
  --terracotta: #bd5b35;
  --terracotta-soft: #d97e57;
  --terracotta-deep: #a04724;      /* AA para texto/links sobre creme */
  --terracotta-wash: #f3e0d3;
  --plum: #59344f;
  --plum-soft: #6d4261;
  --plum-wash: #ece0e8;
  --wa: #188741;                   /* verde WhatsApp (AA: 4,58:1 com branco) */
  --wa-dark: #126832;              /* verde WhatsApp — hover/foco */
  --green: #274436;
  --green-deep: #1f3a2d;
  --green-wash: #dfe8e0;
  --green-accent: #e8c9a8;         /* destaque sobre verde profundo */
  --ink: #33251f;
  --ink-soft: #5c4a40;
  --line: #e2d5bd;

  --serif: 'Lora', Georgia, 'Times New Roman', serif;
  --sans: 'Karla', 'Segoe UI', Arial, sans-serif;

  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-1: 0 2px 10px rgba(51, 37, 31, .06);
  --shadow-2: 0 10px 34px rgba(51, 37, 31, .12);
  --maxw: 71rem;
  --maxw-prose: 46rem;
  --header-h: 4.25rem;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--cream);
  /* grão de papel muito sutil (SVG inline, sem request externo) */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23g)' opacity='0.028'/%3E%3C/svg%3E");
  overflow-x: hidden;
}

::selection {
  background: var(--terracotta);
  color: var(--cream-soft);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
  margin: 0 0 1rem;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.35rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); letter-spacing: -.008em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.4rem); }
h4 { font-family: var(--sans); font-size: 1.02rem; font-weight: 700; margin: 0 0 .5rem; }

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

a {
  color: var(--terracotta-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
  transition: color .18s ease;
}
a:hover { color: var(--plum); }

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
  border-radius: 4px;
}

ul, ol { padding-left: 1.35rem; margin: 0 0 1.1rem; }
li { margin-bottom: .45rem; }

strong { font-weight: 700; }
em { font-family: var(--serif); }

img, svg { max-width: 100%; height: auto; }

/* ---------- 3. Utilitários ---------- */
.wrap {
  width: min(var(--maxw), 100% - 2.5rem);
  margin-inline: auto;
}
.prose { max-width: var(--maxw-prose); }

.skip-link {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 200;
  background: var(--green);
  color: var(--cream-soft);
  padding: .7rem 1.2rem;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  font-weight: 700;
  text-decoration: none;
  transition: top .2s ease;
}
.skip-link:focus { top: 0; color: var(--cream-soft); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Resposta direta curta no início de cada seção (GEO) */
.answer-first {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--green);
  border-left: 4px solid var(--terracotta-soft);
  background: var(--cream-soft);
  padding: 1rem 1.3rem;
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  margin: 0 0 1.6rem;
  max-width: var(--maxw-prose);
}
.answer-first strong { color: var(--terracotta-deep); }

/* Etiqueta de seção (kicker) */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--plum);
  margin-bottom: .9rem;
}
.kicker::before {
  content: "";
  width: 2rem; height: 2px;
  background: var(--terracotta-soft);
  border-radius: 2px;
}

.source-note {
  font-size: .88rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--line);
  padding-top: .8rem;
  margin-top: 1.4rem;
  max-width: var(--maxw-prose);
}

/* ---------- 4. Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  min-height: 44px;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn svg { flex: none; }
.btn-primary {
  background: var(--terracotta-deep);
  color: var(--cream-soft);
  box-shadow: var(--shadow-1);
}
.btn-primary:hover {
  background: var(--terracotta);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
}
.btn-secondary {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-secondary:hover {
  background: var(--green);
  color: var(--cream-soft);
  transform: translateY(-2px);
}
.btn-ghost-light {
  background: transparent;
  color: var(--cream-soft);
  border-color: rgba(251, 246, 236, .55);
}
.btn-ghost-light:hover { background: rgba(251, 246, 236, .12); color: #fff; }
.btn-sm {
  min-height: 2.6rem;
  padding: .5rem 1.1rem;
  font-size: .92rem;
}

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 240, 227, .92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  box-shadow: 0 4px 24px rgba(51, 37, 31, .09);
  border-bottom-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand-mark { flex: none; }
.brand-name {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.22rem;
  line-height: 1.1;
  display: block;
}
.brand-sub {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
}
.main-nav ul {
  display: flex;
  gap: .2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-block;
  padding: .5rem .68rem;
  font-size: .93rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: none;
  border-radius: 999px;
  transition: background-color .18s ease, color .18s ease;
}
.main-nav a:hover { color: var(--terracotta-deep); background: var(--terracotta-wash); }
.main-nav a.is-active { color: var(--terracotta-deep); background: var(--terracotta-wash); }
.header-cta { flex: none; padding: .62rem 1.15rem; font-size: .93rem; }

@media (max-width: 63.5em) {
  .main-nav { display: none; }
}
@media (max-width: 40em) {
  .header-cta span { display: none; }
  .header-cta { padding: .62rem .85rem; }
}

/* Barra móvel de âncoras */
.anchor-bar {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--cream-soft);
}
@media (max-width: 63.5em) {
  .anchor-bar { display: block; }
  .anchor-bar-scroll {
    display: flex;
    gap: .35rem;
    overflow-x: auto;
    padding: .55rem 1.25rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .anchor-bar-scroll::-webkit-scrollbar { display: none; }
  .anchor-bar a {
    flex: none;
    font-size: .84rem;
    font-weight: 700;
    color: var(--green);
    text-decoration: none;
    padding: .42rem .8rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--cream);
  }
  .anchor-bar a.is-active { background: var(--green); color: var(--cream-soft); border-color: var(--green); }
}

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}
.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--plum);
  background: var(--plum-wash);
  border-radius: 999px;
  padding: .42rem 1rem;
  margin-bottom: 1.3rem;
}
.hero-sub {
  font-size: clamp(1.08rem, 1.7vw, 1.24rem);
  color: var(--ink-soft);
  max-width: 36rem;
  margin-bottom: 1.8rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-bottom: 2.1rem;
}
.hero-note {
  font-size: .86rem;
  color: var(--ink-soft);
  margin: -1.3rem 0 2rem;
}
.hero-art { display: flex; justify-content: center; }
.hero-art svg { width: min(100%, 25rem); }

/* Selos artesanais de credencial */
.seal-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  padding: 0;
  margin: 0;
  list-style: none;
  max-width: 38rem;
}
.seal {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--cream-soft);
  border: 1px dashed var(--terracotta-soft);
  border-radius: 999px;
  padding: .45rem .95rem;
  font-size: .84rem;
  font-weight: 700;
  color: var(--green);
  margin: 0;
}
.seal svg { flex: none; }

@media (max-width: 56em) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art svg { width: min(70%, 17rem); }
}

/* ---------- 7. Seções ---------- */
.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section-soft { background: var(--cream-soft); }
.section-plum { background: var(--plum-wash); }
.section-green-wash { background: var(--green-wash); }
.section-head { max-width: var(--maxw-prose); margin-bottom: 1.2rem; }
.section-cta { margin-top: 2rem; }

.section-dark {
  background: var(--green);
  color: var(--cream);
}
.section-dark h2, .section-dark h3 { color: var(--cream-soft); }
.section-dark .kicker { color: var(--green-accent); }
.section-dark .kicker::before { background: var(--terracotta-soft); }
.section-dark p { color: var(--cream); }
.section-dark a { color: var(--green-accent); }
.section-dark a:hover { color: #fff; }

/* ---------- 8. Resposta em 60 segundos ---------- */
.facts {
  list-style: none;
  padding: 0;
  margin: 1.8rem 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  gap: 1rem;
  counter-reset: fact;
}
.fact-card {
  counter-increment: fact;
  position: relative;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.5rem 1.3rem 1.3rem;
  margin: 0;
  box-shadow: var(--shadow-1);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.fact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
  border-color: var(--terracotta-soft);
}
.fact-card::before {
  content: counter(fact, decimal-leading-zero);
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  color: var(--terracotta);
  margin-bottom: .7rem;
}
.fact-card:nth-child(even)::before { color: var(--plum-soft); }
.fact-card h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.fact-card p { font-size: .94rem; color: var(--ink-soft); margin: 0; }

/* ---------- 9. Tabelas ---------- */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--cream-soft);
  box-shadow: var(--shadow-1);
  margin: 1.6rem 0;
}
table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: .95rem;
}
caption {
  text-align: left;
  font-family: var(--serif);
  font-style: italic;
  padding: 1rem 1.2rem .4rem;
  color: var(--plum);
}
th, td {
  text-align: left;
  vertical-align: top;
  padding: .85rem 1.2rem;
  border-top: 1px solid var(--line);
}
thead th {
  border-top: 0;
  background: var(--green);
  color: var(--cream-soft);
  font-size: .84rem;
  letter-spacing: .06em;
  text-transform: uppercase;
}
tbody th { font-weight: 700; color: var(--green); background: rgba(39, 68, 54, .05); }
tbody tr:hover td { background: rgba(217, 126, 87, .07); }

/* ---------- 10. A casa por camadas ---------- */
.house-diagram {
  max-width: 40rem;
  margin: 2.2rem auto 0;
}
.house-roof { display: block; margin: 0 auto -2px; width: min(100%, 40rem); }
.house-layers {
  list-style: none;
  counter-reset: layer;
  margin: 0;
  padding: 0;
  border: 3px solid var(--green);
  border-top: 0;
  border-radius: 0 0 var(--radius-l) var(--radius-l);
  overflow: hidden;
  background: var(--cream-soft);
  box-shadow: var(--shadow-2);
}
.house-layer {
  counter-increment: layer;
  display: grid;
  grid-template-columns: 3.4rem 1fr;
  gap: .4rem 1rem;
  padding: 1.05rem 1.3rem;
  margin: 0;
  border-top: 2px dashed var(--line);
  transition: background-color .2s ease;
}
.house-layer:first-child { border-top: 0; }
.house-layer:nth-child(odd) { background: var(--cream); }
.house-layer:hover { background: var(--terracotta-wash); }
.house-layer::before {
  content: counter(layer);
  grid-row: 1 / span 2;
  align-self: start;
  display: grid;
  place-items: center;
  width: 2.5rem; height: 2.5rem;
  border-radius: 50% 46% 52% 48%;
  background: var(--green);
  color: var(--cream-soft);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
}
.house-layer:nth-child(even)::before { background: var(--plum); }
.house-layer h3 { font-size: 1.05rem; margin: 0; align-self: center; }
.house-layer p { font-size: .93rem; color: var(--ink-soft); margin: 0; grid-column: 2; }
.house-base {
  display: block;
  margin: 0 auto;
  width: min(100%, 44rem);
}

/* Perguntas frequentes da casa em cartões */
.mini-answers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin-top: 2.2rem;
}
.mini-answer {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.15rem 1.25rem;
}
.mini-answer h4 { color: var(--plum); }
.mini-answer p { font-size: .93rem; color: var(--ink-soft); margin: 0; }

/* ---------- 11. Duas colunas equipe/família ---------- */
.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1.4rem;
  margin-top: 2rem;
}
.pack-col {
  background: var(--cream-soft);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  padding: 1.7rem 1.6rem;
  box-shadow: var(--shadow-1);
}
.pack-col > h3 {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-bottom: .9rem;
  border-bottom: 2px solid var(--terracotta-wash);
  margin-bottom: 1.1rem;
}
.pack-col ul { list-style: none; padding: 0; margin: 0; }
.pack-col li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  padding: .55rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: .96rem;
}
.pack-col li:last-child { border-bottom: 0; }
.tag {
  flex: none;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tag-obrigatorio { background: var(--green); color: var(--cream-soft); }
.tag-recomendado { background: var(--plum-wash); color: var(--plum); }
.tag-opcional { background: var(--cream-deep); color: var(--ink-soft); }

/* ---------- 12. Jornada — capítulos ---------- */
.chapters {
  list-style: none;
  margin: 2.4rem 0 0;
  padding: 0;
  position: relative;
}
.chapters::before {
  content: "";
  position: absolute;
  left: 1.34rem;
  top: .6rem; bottom: .6rem;
  width: 3px;
  border-radius: 3px;
  background: linear-gradient(var(--terracotta-soft), var(--plum-soft), var(--green));
  opacity: .5;
}
.chapter {
  position: relative;
  padding: 0 0 2.2rem 3.9rem;
  margin: 0;
}
.chapter:last-child { padding-bottom: .3rem; }
.chapter-dot {
  position: absolute;
  left: 0; top: .1rem;
  width: 2.8rem; height: 2.8rem;
  display: grid;
  place-items: center;
  background: var(--cream-soft);
  border: 2px solid var(--terracotta);
  border-radius: 52% 48% 50% 50%;
  color: var(--terracotta-deep);
  font-family: var(--serif);
  font-weight: 700;
  font-size: .92rem;
}
.chapter:nth-child(3n+2) .chapter-dot { border-color: var(--plum-soft); color: var(--plum); }
.chapter:nth-child(3n) .chapter-dot { border-color: var(--green); color: var(--green); }
.chapter-label {
  display: block;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: .2rem;
}
.chapter:nth-child(3n+2) .chapter-label { color: var(--plum); }
.chapter:nth-child(3n) .chapter-label { color: var(--green); }
.chapter h3 { margin-bottom: .55rem; }
.chapter p { max-width: var(--maxw-prose); font-size: .98rem; }
.chapter-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: .8rem;
  margin-top: .9rem;
  max-width: 52rem;
}
.chapter-meta div {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: .75rem .95rem;
  font-size: .88rem;
  color: var(--ink-soft);
}
.chapter-meta strong {
  display: block;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .25rem;
}
.chapter-question {
  font-family: var(--serif);
  font-style: italic;
  color: var(--plum);
}

/* ---------- 13. Fluxo "quando o plano muda" ---------- */
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: .9rem;
  margin: 2.2rem 0;
}
.flow-node {
  background: var(--cream-soft);
  border: 2px solid var(--green);
  border-radius: var(--radius-m);
  padding: 1.25rem 1.2rem;
  text-align: center;
  box-shadow: var(--shadow-1);
}
.flow-node:nth-child(3) { border-color: var(--terracotta); }
.flow-node:nth-child(5) { border-color: var(--plum-soft); }
.flow-node h3 { font-size: 1.06rem; margin-bottom: .35rem; }
.flow-node p { font-size: .88rem; color: var(--ink-soft); margin: 0; }
.flow-step {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin-bottom: .4rem;
}
.flow-arrow {
  align-self: center;
  color: var(--terracotta);
  display: grid;
  place-items: center;
}
@media (max-width: 52em) {
  .flow { grid-template-columns: 1fr; }
  .flow-arrow { transform: rotate(90deg); padding: .2rem 0; }
}

/* ---------- 14. Checklist de equipe / FAQ (details) ---------- */
.qa-list { margin-top: 1.8rem; max-width: 52rem; }
details.qa {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  margin-bottom: .8rem;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
details.qa[open] {
  border-color: var(--terracotta-soft);
  box-shadow: var(--shadow-1);
}
details.qa summary {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1.05rem 1.3rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--green);
  list-style: none;
  min-height: 44px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after {
  content: "";
  flex: none;
  margin-left: auto;
  width: .85rem; height: .85rem;
  border-right: 2.5px solid var(--terracotta-deep);
  border-bottom: 2.5px solid var(--terracotta-deep);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
details.qa[open] summary::after { transform: rotate(225deg); }
details.qa summary:hover { color: var(--terracotta-deep); }
.qa-body { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); font-size: .97rem; }
.qa-body > *:first-child { margin-top: 0; }
.qa-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 2rem; height: 2rem;
  border-radius: 50% 46% 52% 48%;
  background: var(--plum-wash);
  color: var(--plum);
  font-family: var(--serif);
  font-size: .9rem;
  font-weight: 700;
}

/* ---------- 15. Por que a Babi ---------- */
.babi-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: start;
  margin-top: 1.4rem;
}
.babi-voice {
  font-family: var(--serif);
  font-size: 1.12rem;
  line-height: 1.7;
}
.babi-voice .voice-open {
  font-style: italic;
  font-size: 1.3rem;
  color: var(--plum);
}
.babi-sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--terracotta-deep);
  margin-top: 1.2rem;
}
.timeline-doc {
  list-style: none;
  margin: 0;
  padding: 1.6rem 1.5rem;
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-1);
}
.timeline-doc li {
  position: relative;
  padding: 0 0 1.15rem 1.6rem;
  margin: 0;
  border-left: 2px solid var(--terracotta-wash);
  margin-left: .4rem;
}
.timeline-doc li:last-child { padding-bottom: 0; }
.timeline-doc li::before {
  content: "";
  position: absolute;
  left: -.48rem; top: .3rem;
  width: .85rem; height: .85rem;
  border-radius: 50% 45% 55% 50%;
  background: var(--terracotta);
}
.timeline-doc li:nth-child(even)::before { background: var(--plum-soft); }
.timeline-doc strong { display: block; color: var(--green); font-size: .95rem; }
.timeline-doc span { font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 56em) {
  .babi-grid { grid-template-columns: 1fr; }
}

/* Números-síntese */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}
.stat {
  background: var(--cream-soft);
  border: 1px dashed var(--terracotta-soft);
  border-radius: var(--radius-m);
  padding: 1.2rem 1.1rem;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--terracotta-deep);
  line-height: 1.15;
}
.stat span { font-size: .85rem; color: var(--ink-soft); }

/* ---------- 16. Relatos ---------- */
.stories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.2rem;
  margin-top: 2rem;
}
.story {
  display: flex;
  flex-direction: column;
  background: var(--cream-soft);
  border-radius: var(--radius-l);
  border: 1px solid var(--line);
  padding: 1.7rem 1.5rem 1.4rem;
  box-shadow: var(--shadow-1);
  margin: 0;
}
.story blockquote {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.04rem;
  line-height: 1.6;
  color: var(--ink);
  flex: 1;
}
.story blockquote::before {
  content: "“";
  display: block;
  font-size: 2.6rem;
  line-height: .6;
  color: var(--terracotta-soft);
  margin-bottom: .5rem;
}
.story figcaption {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--plum);
  border-top: 1px dashed var(--line);
  padding-top: .8rem;
}

/* ---------- 17. Valores ---------- */
.value-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.2rem;
  margin-top: 1.8rem;
}
.value-card {
  background: var(--cream-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 1.4rem 1.4rem;
}
.value-card h3 { font-size: 1.08rem; color: var(--green); }
.value-card ul { margin: 0; padding-left: 1.2rem; font-size: .95rem; color: var(--ink-soft); }

/* ---------- 18. CTA final ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
}
.final-cta .wrap { position: relative; z-index: 1; text-align: center; }
.final-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
.final-cta p { max-width: 38rem; margin-inline: auto; }
.final-cta .btn-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .9rem;
  margin-top: 1.8rem;
}
.final-blob {
  position: absolute;
  pointer-events: none;
  opacity: .16;
}

/* ---------- 19. Rodapé ---------- */
.site-footer {
  background: var(--green-deep);
  color: var(--cream);
  padding: 3.5rem 0 1.6rem;
  font-size: .93rem;
}
.site-footer a { color: var(--cream-soft); }
.site-footer a:hover { color: var(--green-accent); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid rgba(251, 246, 236, .2);
}
.footer-brand .brand-name { color: var(--cream-soft); }
.footer-brand .brand-sub { color: var(--green-accent); }
.footer-grid h3 {
  font-family: var(--sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-accent);
  margin-bottom: .9rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: .45rem; }
.footer-note {
  padding-top: 1.6rem;
  color: rgba(251, 246, 236, .82);
  font-size: .85rem;
  max-width: 60rem;
}
.footer-warning {
  margin-top: 1.2rem;
  padding: .9rem 1.1rem;
  background: rgba(251, 246, 236, .08);
  border: 1px solid rgba(251, 246, 236, .22);
  border-radius: var(--radius-s);
  font-size: .85rem;
}
.footer-legalline {
  margin-top: 1.6rem;
  font-size: .8rem;
  color: rgba(251, 246, 236, .6);
}

/* ---------- 20. Barra CTA mobile ---------- */
.mobile-cta {
  display: none;
}
@media (max-width: 47em) {
  .mobile-cta {
    display: block;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 120;
    background: var(--green-deep);
    padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -6px 24px rgba(31, 58, 45, .35);
  }
  .mobile-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    min-height: 46px;
    background: var(--terracotta-deep);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border-radius: 999px;
  }
  .mobile-cta a:hover { background: var(--terracotta); color: #fff; }
  body { padding-bottom: 4.6rem; }
}

/* ---------- 21. Reveal on scroll (progressivo, precisa de .js) ---------- */
html.js .reveal {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity .7s ease, transform .7s ease;
}
html.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- 22. Página 404 / privacidade ---------- */
.page-simple {
  min-height: 60vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 4rem 0;
}
.page-simple .wrap { max-width: 38rem; }
.legal-body { padding: 3.5rem 0 4.5rem; }
.legal-body .wrap { max-width: var(--maxw-prose); }
.legal-body h2 { font-size: 1.4rem; margin-top: 2.2rem; }

/* ---------- 23. Print ---------- */
@media print {
  .site-header, .anchor-bar, .mobile-cta, .btn, .hero-blobs, .final-cta { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; padding-bottom: 0; }
  .section { padding: 1.2rem 0; }
  a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
  details.qa, details.qa .qa-body { display: block; }
  .answer-first { border-left-color: #000; background: #fff; }
  .section-dark { background: #fff; color: #000; }
  .section-dark h2, .section-dark h3, .section-dark p { color: #000; }
}


/* ---------- Botão flutuante de WhatsApp ----------
   Verde do WhatsApp escurecido para passar AA (4,58:1 com o glifo branco).
   O verde puro #25D366 daria 1,98:1 e reprovaria. */
.wa-fab {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 125;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 12px 28px -10px rgba(9, 74, 37, 0.6);
  transition: background-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.wa-fab:hover {
  background: var(--wa-dark);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px -10px rgba(9, 74, 37, 0.7);
}
.wa-fab:focus-visible { outline: 3px solid var(--wa-dark); outline-offset: 3px; }
.wa-fab svg { width: 1.75rem; height: 1.75rem; }

/* No celular a barra fixa ocupa a base — o FAB sobe para não cobri-la */
@media (max-width: 47em) {
  .wa-fab {
    bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
    width: 3.15rem;
    height: 3.15rem;
  }
  .wa-fab svg { width: 1.55rem; height: 1.55rem; }
}

/* Papéis/cenários em texto — substitui a tabela, ilegível no celular */
.scenarios {
  margin: 2rem 0 0;
  padding: 1.75rem clamp(1.15rem, 4vw, 2.25rem);
  border: 1px solid var(--terracotta-wash);
  border-radius: 18px;
  background: var(--cream-soft);
}
.scenarios h3 {
  margin: 1.75rem 0 .5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--terracotta-wash);
  font-family: var(--serif, inherit);
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--green);
}
.scenarios h3:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.scenarios p { margin: 0 0 .75rem; max-width: 68ch; }
.scenarios p:last-child { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) { .wa-fab { transition: none; } }
@media print { .wa-fab { display: none; } }
