/* Forró do Bibó: selo marrom-chocolate e creme, xilogravura, serifa macia e pesada.
   Claro = papel creme com tinta chocolate. Escuro = chocolate com letras creme, como o selo. */
:root {
  --bg: #f6eedd;
  --bg-2: #ecdfc4;
  --ink: #3f2414;
  --ink-soft: #6e5340;
  --brand: #4a2c1a;
  --cream: #f6eedd;
  --accent: #a8461a;
  --line: #d6c3a1;
  --display: "Fraunces", "Georgia", serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #2a170c; --bg-2: #3a2214; --ink: #f6eedd; --ink-soft: #d4c2a6;
    --brand: #f6eedd; --cream: #2a170c; --accent: #f08a4b; --line: #5a3a26; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #2a170c; --bg-2: #3a2214; --ink: #f6eedd; --ink-soft: #d4c2a6;
  --brand: #f6eedd; --cream: #2a170c; --accent: #f08a4b; --line: #5a3a26; color-scheme: dark;
}
* { box-sizing: border-box }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.6;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.wrap { max-width: 1040px; margin: 0 auto }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.05; text-wrap: balance; margin: 0; font-variation-settings: "SOFT" 100, "WONK" 1 }
p { margin: 0 }
a { color: var(--accent); text-underline-offset: 3px }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }
img { max-width: 100%; height: auto; display: block }

.nav { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; padding-block: 18px; border-bottom: 2px solid var(--brand) }
.nav a.home { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 20px }
.nav a.home img { width: 44px; height: 44px; border-radius: 50% }
.nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; font-weight: 500 }
.nav ul a { color: var(--ink); text-decoration: none }
.nav ul a[aria-current="page"] { color: var(--accent); text-decoration: underline }

.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center; padding-block: 48px 64px }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px }
.hero h1 { font-size: clamp(52px, 9vw, 104px); color: var(--brand) }
.hero .lead { font-size: clamp(19px, 2.2vw, 23px); margin-top: 18px; max-width: 32ch }
.when { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px }
.when span { border: 2px solid var(--brand); border-radius: 999px; padding: 6px 16px; font-weight: 700; font-size: 15px }
.when span:first-child { background: var(--brand); color: var(--cream) }
.seal { border-radius: 50%; box-shadow: 0 0 0 10px var(--bg-2), 0 0 0 12px var(--line) }

section { padding-block: 56px; border-top: 2px solid var(--brand) }
section h2 { font-size: clamp(32px, 5vw, 50px); color: var(--brand); margin-bottom: 16px }
.intro { max-width: 62ch; color: var(--ink-soft) }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 36px; margin-top: 28px }
.cols div { display: grid; gap: 6px; align-content: start; min-width: 0 }
.cols h3 { font-size: 22px }
.cols p { color: var(--ink-soft); font-size: 16px }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center }
.chat { background: var(--bg-2); border: 2px solid var(--brand); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.4; min-width: 0 }
.msg { max-width: 88%; padding: 8px 12px; border-radius: 12px; background: var(--bg); position: relative; white-space: pre-line }
.msg.bot { align-self: flex-start; border: 2px solid var(--brand) }
.msg.me { align-self: flex-end; background: var(--line) }
.msg b { display: block; font-size: 12px; color: var(--accent) }
.react { position: absolute; right: -6px; bottom: -11px; font-size: 13px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 0 5px }

.steps { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px }
.steps li { border: 2px solid var(--brand); border-radius: 14px; padding: 18px; display: grid; gap: 6px; align-content: start; background: var(--bg) }
.steps time { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .04em; text-transform: uppercase }
.steps h3 { font-size: 21px }
.steps p { font-size: 15px; color: var(--ink-soft) }

.cta { display: inline-block; margin-top: 22px; background: var(--brand); color: var(--cream); padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none }
.cta:hover { background: var(--accent); color: var(--cream) }

footer { border-top: 2px solid var(--brand); padding-block: 28px 44px; display: flex; flex-wrap: wrap; gap: 10px 32px; justify-content: space-between; font-size: 14px; color: var(--ink-soft) }

@media (max-width: 760px) {
  .hero, .split { grid-template-columns: 1fr; gap: 32px }
  .hero { padding-block: 28px 44px }
  .hero .seal { max-width: 260px; margin: 0 auto }
}
@media (prefers-reduced-motion: no-preference) {
  .seal { transition: transform .6s ease }
  .seal:hover { transform: rotate(-6deg) }
}

.nav ul { align-items: center }
.ig { display: inline-flex; color: var(--brand) }
.ig:hover { color: var(--accent) }
.insta { margin-top: 28px; display: grid; gap: 10px; justify-items: center }
.insta iframe { width: 100%; max-width: 540px; height: 640px; border: 2px solid var(--brand); border-radius: 14px; background: var(--bg-2) }
.insta-fallback { font-size: 14px; color: var(--ink-soft) }

.niveis { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 28px }
.nivel h3 { font-size: 28px; color: var(--brand) }
.nivel .sub { color: var(--ink-soft); font-size: 15px; margin-top: 2px }
.passos { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px }
.passo { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 4px 12px; align-items: center; border: 2px solid var(--brand); border-radius: 12px; padding: 10px 14px; background: var(--bg) }
.passo .num { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--cream); display: grid; place-items: center; font-family: var(--display); font-weight: 800 }
.passo h4 { margin: 0; font-family: var(--display); font-size: 19px; font-weight: 700 }
.acoes { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px }
.ver { font: inherit; font-weight: 700; color: var(--brand); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px }
.ver:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }
.passo iframe { grid-column: 1 / -1; width: 100%; height: 620px; border: 0; border-radius: 10px; background: var(--bg-2); margin-top: 8px }

.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px }
.ctas .cta { margin-top: 0 }
.cta-alt { background: transparent; color: var(--brand); border: 2px solid var(--brand) }
.cta-alt:hover { background: var(--brand); color: var(--cream) }
.how { margin-top: 14px; font-weight: 700 }
.exemplos { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 28px }
.exemplo { display: flex; flex-direction: column; gap: 8px; background: var(--bg-2); border: 2px solid var(--brand); border-radius: 16px; padding: 14px; font-size: 15px; line-height: 1.4; min-width: 0 }
.exemplo h3 { font-size: 19px; margin-bottom: 4px }

.aviso { margin-top: 18px; padding: 10px 14px; border-left: 5px solid var(--accent); background: var(--bg-2); font-weight: 500; max-width: 46ch }
.steps-1col { grid-template-columns: 1fr }
.split .seal { max-width: 360px; justify-self: center }

:root[data-theme="dark"] .cta:hover { color: #2a170c }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cta:hover { color: #2a170c } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap }

/* Proposta do bibot: índice, calculadora da mensalidade e cartões de opção */
.indice { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 10px }
.indice a { display: inline-block; border: 2px solid var(--brand); border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 15px; color: var(--brand); text-decoration: none }
.indice a:hover { background: var(--brand); color: var(--cream) }
.calc { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; margin-top: 28px; background: var(--bg-2); border: 2px solid var(--brand); border-radius: 18px; padding: 20px }
.calc-form { display: grid; gap: 10px; align-content: start; min-width: 0 }
.calc label { font-weight: 700 }
.calc select { font: inherit; color: var(--ink); background: var(--bg); border: 2px solid var(--brand); border-radius: 10px; padding: 8px 12px; max-width: 100% }
.calc-dica { font-size: 14px; color: var(--ink-soft) }
.domingos { display: flex; flex-wrap: wrap; gap: 8px }
.domingos button { font: inherit; font-family: var(--display); font-weight: 800; font-size: 18px; width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--brand); background: var(--brand); color: var(--cream); cursor: pointer }
.domingos button[aria-pressed="true"] { background: var(--bg); color: var(--ink-soft); text-decoration: line-through }
.domingos button:focus-visible, .calc select:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }
.calc-total { display: grid; gap: 4px; align-content: center; min-width: 0 }
.calc-num { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 8vw, 72px); line-height: 1; color: var(--accent); font-variation-settings: "SOFT" 100, "WONK" 1 }
.calc-obs { font-size: 14px; color: var(--ink-soft); margin-top: 8px }
.opcoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 24px }
.opcao { border: 2px solid var(--brand); border-radius: 14px; padding: 18px; display: grid; gap: 6px; align-content: start; background: var(--bg); min-width: 0 }
.opcao h3 { font-size: 21px }
.opcao p:not(.tag) { font-size: 15px; color: var(--ink-soft) }
/* mesma pílula das .when da home */
.tag { justify-self: start; border: 2px solid var(--brand); border-radius: 999px; padding: 2px 12px; font-weight: 700; font-size: 14px; color: var(--brand) }
.sub-h { font-size: 24px; margin-top: 40px }
.regra { margin-top: 24px; padding: 10px 14px; border-left: 5px solid var(--accent); background: var(--bg-2); font-weight: 500; max-width: 62ch }
#comprovante .exemplos { margin-top: 28px }
@media (max-width: 760px) { .calc { grid-template-columns: 1fr } }
#comprovante .steps, #etapas .steps { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) }

/* Preferência de tema de quem visita */
.nav button.tema { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 2px solid var(--brand); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer }
.nav button.tema:hover { background: var(--brand); color: var(--bg) }
