/* Consórcio, explicado — Rafael Alves. Estilo explainer: papel, tinta e marca-texto. */

/* Fontes dentro do site (licença OFL em fonts/): nenhum pedido a serviços de fora. */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 600 900;
  font-display: swap;
  src: url("fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Caveat";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/caveat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #FBF8F1;
  --paper-2: #F3EEE2;
  --white: #FFFFFF;
  --ink: #141414;
  --ink-2: #3B3935;
  --muted: #6C675F;
  --line: #E4DED2;
  --yellow: #FFE14D;
  --yellow-soft: #FFF5C2;
  --wa: #0F7B40;
  --wa-dark: #0B6031;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --hand: "Caveat", "Bradley Hand", "Segoe Print", cursive;
  --radius: 6px;
  --gutter: 16px;
  --header: 56px;
  --ease: cubic-bezier(.25, .8, .25, 1);
  color-scheme: light;
}
@media (min-width: 760px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 759px) { body { padding-bottom: 88px; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 3px; }
p { margin: 0; }
b, strong { font-weight: 700; }
button { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 4px; }

.wrap { max-width: calc(960px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.fine { font-size: .82rem; line-height: 1.5; color: var(--muted); }

/* ---------- Tipografia ---------- */
.h1, .h2, .h3, .h4 { margin: 0; font-family: var(--serif); font-weight: 800; letter-spacing: -.018em; text-wrap: balance; }
.h1 { font-size: clamp(2.3rem, 8.6vw, 4.25rem); line-height: 1.02; font-weight: 850; }
.h2 { font-size: clamp(2rem, 6.8vw, 3.2rem); line-height: 1.05; }
.h3 { font-size: clamp(1.45rem, 4.9vw, 1.95rem); line-height: 1.12; letter-spacing: -.012em; }
.h4 { font-size: 1.25rem; line-height: 1.2; letter-spacing: -.01em; }
.kicker {
  display: flex; align-items: center; gap: .6em;
  margin: 0 0 .9rem;
  font: 700 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.kicker::before { content: ""; flex: none; width: .75em; height: .75em; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--ink); }
.lead { margin-top: .9rem; font-size: clamp(1.08rem, 3.4vw, 1.24rem); line-height: 1.55; color: var(--ink-2); }
.dek { margin: 1rem 0 1.4rem; max-width: 34rem; font-size: clamp(1.1rem, 3.6vw, 1.28rem); line-height: 1.5; color: var(--ink-2); }

/* Marca-texto: entra quando a frase aparece na tela. */
.hl {
  background-image: linear-gradient(var(--yellow), var(--yellow));
  background-repeat: no-repeat;
  background-position: 0 88%;
  background-size: 100% .56em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  padding-inline: .05em;
  margin-inline: -.05em;
}
.js .hl { background-size: 0% .56em; transition: background-size 1.1s var(--ease); }
.js .hl.is-on { background-size: 100% .56em; }
.part--dark .hl { background: none; color: var(--yellow); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.2em;
  border: 2px solid transparent; border-radius: 6px;
  font: 700 1rem/1.15 var(--sans); text-align: center; text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.25em; height: 1.25em; flex: none; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: var(--wa-dark); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { background: #2C2B29; }
.btn--ink:disabled { opacity: .45; cursor: default; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--yellow-soft); }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: #FFD81A; }
.btn--line-light { background: transparent; border-color: rgba(251, 248, 241, .45); color: var(--paper); }
.btn--line-light:hover { border-color: var(--paper); }
.btn--sm { min-height: 40px; padding: .5em .95em; font-size: .9rem; }
.btn--lg { min-height: 56px; padding: .9em 1.4em; font-size: 1.06rem; }
.btn--block { display: flex; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tag {
  display: inline-block; align-self: flex-start;
  padding: .5em .65em; border-radius: 3px;
  background: var(--yellow); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink);
  font: 700 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
}

/* ---------- Faixa de atendimento e topo ---------- */
.ribbon { padding: .55rem var(--gutter); background: var(--ink); color: #E9E4D8; font: 500 .78rem/1.4 var(--sans); text-align: center; }
.ribbon strong { color: var(--yellow); letter-spacing: .08em; text-transform: uppercase; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, .94);
  -webkit-backdrop-filter: saturate(1.3) blur(10px);
  backdrop-filter: saturate(1.3) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { height: var(--header); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: baseline; gap: .55em; min-width: 0; text-decoration: none; white-space: nowrap; }
.brand__name { font: 800 1.12rem/1 var(--serif); letter-spacing: -.01em; }
.brand__name span { background: linear-gradient(var(--yellow), var(--yellow)) no-repeat 0 88% / 100% .55em; }
.topbar__actions { display: flex; align-items: center; gap: clamp(10px, 2vw, 22px); }
.topbar__person {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  font: 700 .8rem/1.1 var(--sans);
  text-decoration: none;
}
.rafael-avatar {
  display: block;
  flex: none;
  width: 34px;
  height: 34px;
  overflow: hidden;
  border-radius: 50%;
}
.rafael-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(2);
  transform-origin: center 3%;
}
.topbar__cta { display: none; }
@media (min-width: 760px) {
  .topbar__person { gap: .55rem; font-size: .9rem; }
  .topbar__person .rafael-avatar { width: 40px; height: 40px; }
  .topbar__cta { display: inline-flex; }
}
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: 0 50%; }

/* ---------- Abertura ---------- */
.hero { padding: clamp(28px, 6vw, 64px) 0 clamp(56px, 9vw, 88px); }
.hero__grid { display: grid; gap: 12px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 32px; } }
.byline { display: flex; align-items: center; gap: 12px; font-size: .92rem; line-height: 1.4; }
.byline .rafael-avatar { width: 52px; height: 52px; box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.hero__art { margin: 8px 0 0; }
.hero__art img { width: 100%; max-width: 520px; margin-inline: auto; }
@media (min-width: 900px) { .hero__art { margin: 0; } }

.short {
  max-width: 720px; margin-top: clamp(20px, 4vw, 36px); padding: 20px 20px 22px;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}
.short__label {
  display: inline-block; margin-bottom: .75rem; padding: .55em .7em; border-radius: 3px;
  background: var(--ink); color: var(--paper);
  font: 700 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}
.short__text { font-size: clamp(1.06rem, 3.3vw, 1.2rem); line-height: 1.6; font-weight: 500; }

.toc { max-width: 720px; margin-top: clamp(36px, 6vw, 52px); }
.toc__label { margin-bottom: .7rem; font: 700 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.toc ol { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.toc a {
  display: grid; grid-template-columns: 2.25rem minmax(0, 1fr) auto; align-items: center; gap: 10px;
  padding: 14px 2px; border-bottom: 1px solid var(--line);
  font-weight: 600; line-height: 1.3; text-decoration: none;
}
.toc__n { font: 800 1.55rem/1 var(--serif); }
.toc em { display: block; margin-top: 2px; font-style: normal; font-weight: 500; font-size: .88rem; color: var(--muted); }
.toc svg { width: 20px; height: 20px; transition: transform .2s var(--ease); }
.toc a:hover .toc__t { text-decoration: underline; text-decoration-thickness: 2px; }
.toc a:hover svg { transform: translateX(4px); }

/* ---------- Partes ---------- */
.part { padding: clamp(56px, 10vw, 104px) 0; border-top: 1px solid var(--line); }
.part__head { max-width: 720px; margin-bottom: clamp(24px, 5vw, 40px); }
.part--tint { background: var(--paper-2); }
.part--dark { background: var(--ink); color: var(--paper); border-top: 0; }
.part--dark .lead { color: #D6D0C4; }
.part--dark .kicker::before { box-shadow: none; }
.part--dark .fine { color: #A9A296; }
.part--dark :focus-visible { outline-color: var(--yellow); }

/* ---------- Parte 1: cartões ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.card {
  display: grid; gap: 20px; padding: 24px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
}
.card__body { display: grid; gap: 14px; align-content: start; max-width: 720px; }
.card__art { order: -1; justify-self: center; width: min(190px, 62%); }
@media (min-width: 760px) {
  .card { padding: 36px 40px; }
  .card--art { grid-template-columns: minmax(0, 1fr) 220px; column-gap: 40px; align-items: center; }
  .card--art .card__art { order: 0; width: 100%; }
}
.card__lead { font-size: clamp(1.08rem, 3.4vw, 1.2rem); font-weight: 650; line-height: 1.45; }
.card__count { font: 700 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card__count b { margin-right: .35em; padding: .4em .55em; border-radius: 3px; background: var(--yellow); color: var(--ink); }

/* Cartão 1: o grupo de 12 pessoas */
.sim { padding-top: 20px; border-top: 1px dashed var(--line); }
.sim__intro { margin-bottom: 14px; font-weight: 600; }
.sim__dots { list-style: none; margin: 0; padding: 0; max-width: 400px; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px 6px; }
@media (min-width: 760px) { .sim__dots { max-width: none; grid-template-columns: repeat(12, minmax(0, 1fr)); } }
.dot { display: grid; justify-items: center; gap: 5px; font: 600 .72rem/1 var(--sans); color: var(--muted); }
.dot__who { font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.dot__c {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--white);
  transition: background-color .35s, transform .35s var(--ease);
}
.dot__c svg { width: 20px; height: 20px; }
.dot--you .dot__c { box-shadow: 0 0 0 3px var(--white), 0 0 0 5px var(--ink); }
.dot.is-won .dot__c { background: var(--yellow); transform: scale(1.08); }
.dot.is-won .dot__m { color: var(--ink); font-weight: 700; }
.sim__status { min-height: 3.2em; margin: 16px 0 14px; }

/* Cartão 2: custos */
.costs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.costs li { position: relative; padding-left: 22px; }
.costs li::before { content: ""; position: absolute; left: 0; top: .5em; width: 10px; height: 10px; background: var(--yellow); box-shadow: 0 0 0 1.5px var(--ink); }
.annot { display: flex; align-items: flex-start; gap: 6px; font: 700 1.38rem/1.05 var(--hand); transform: rotate(-1.2deg); transform-origin: left; }
.annot svg { width: 48px; height: 32px; flex: none; margin-top: -8px; }

/* Cartão 4: tipos de lance */
.defs { margin: 0; display: grid; gap: 8px; }
.defs > div { padding: 12px 14px; border-radius: 4px; background: var(--paper); }
@media (min-width: 560px) { .defs > div { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 12px; align-items: baseline; } }
.defs dt { font: 800 1.02rem/1.25 var(--serif); }
.defs dd { margin: 0; font-size: .96rem; line-height: 1.5; color: var(--ink-2); }

/* Cartão 5: parcela reduzida */
.mini { margin: 4px 0 0; padding: 14px 14px 12px; border-radius: 4px; background: var(--paper); }
.mini__notes { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font: 700 1.22rem/1 var(--hand); }
.mini__bars {
  position: relative; height: 110px;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: 100%; gap: 4px; align-items: end;
  border-bottom: 2px solid var(--ink);
}
.mini__bars span { height: calc(var(--h) * 100%); border-radius: 2px 2px 0 0; background: #D6CFC0; }
.mini__bars .up { background: var(--yellow); box-shadow: inset 0 0 0 1.5px var(--ink); }
.mini__bars::after { content: ""; position: absolute; left: 50%; top: -4px; bottom: -2px; border-left: 2px dashed var(--ink); }
.mini__axis { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: .8rem; line-height: 1.3; color: var(--muted); }
.mini__axis span:last-child { text-align: right; }

/* Cartão 6: mito */
.myth { display: flex; align-items: flex-start; gap: 12px; padding-top: 14px; border-top: 1px dashed var(--line); }
.myth__tag {
  flex: none; margin-top: .2em; padding: .55em .65em; border-radius: 3px;
  background: var(--ink); color: var(--yellow);
  font: 700 .68rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
}

/* Cartão 7: quando não fazer + golpe */
.nope { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.nope li { position: relative; padding-left: 34px; }
.nope li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 2.5l7 7M9.5 2.5l-7 7' stroke='%23FFE14D' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.alert { margin-top: 6px; padding: 18px 18px 16px; background: #FFF7D1; border: 2px solid var(--ink); border-radius: var(--radius); }
.alert__t { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 800 1.2rem/1.2 var(--serif); }
.alert__t svg { width: 22px; height: 22px; flex: none; }
.alert ol { margin: 0 0 12px; padding-left: 1.25em; display: grid; gap: 8px; }
.alert a { font-weight: 700; }

/* ---------- Parte 2: custo ---------- */
.calc {
  padding: 22px 18px 20px;
  background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--ink);
}
@media (min-width: 760px) { .calc { padding: 32px 36px 28px; } }
.calc__tag { margin-bottom: 16px; }
.calc__top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.calc__label { font: 700 .74rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.calc__value { font: 850 clamp(2.1rem, 9vw, 3.2rem)/1 var(--serif); letter-spacing: -.02em; }
.calc__scale { display: flex; justify-content: space-between; margin-top: 2px; font-size: .8rem; color: var(--muted); }

.range { --fill: 25%; -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 8px 0 0; background: transparent; cursor: pointer; }
.range:focus-visible { outline: none; }
.range::-webkit-slider-runnable-track { height: 10px; border-radius: 99px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / var(--fill) 100% no-repeat, #E8E2D6; }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 32px; height: 32px; margin-top: -11px;
  border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); box-shadow: 0 2px 0 var(--ink);
}
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--yellow-soft), 0 0 0 6px var(--ink); }
.range::-moz-range-track { height: 10px; border-radius: 99px; background: #E8E2D6; }
.range::-moz-range-progress { height: 10px; border-radius: 99px; background: var(--ink); }
.range::-moz-range-thumb { width: 26px; height: 26px; border: 3px solid var(--ink); border-radius: 50%; background: var(--yellow); }

.compare { display: grid; gap: 24px; margin: 28px 0 22px; }
.cmp__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.cmp__name { font: 800 1.3rem/1.1 var(--serif); }
.cmp__meta { font-size: .92rem; color: var(--ink-2); }
.cmp__track { height: 36px; margin: 10px 0 8px; overflow: hidden; border-radius: 4px; background: var(--paper-2); }
.cmp__bar { display: block; width: 0; height: 100%; border-radius: 4px; transition: width .7s var(--ease); }
.cmp--cons .cmp__bar { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); }
.cmp--fin .cmp__bar { background: var(--ink); }
.cmp__total { font-weight: 600; }
.cmp__total b { font: 800 1.25rem/1 var(--serif); }
.cmp__when { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: .92rem; color: var(--muted); }
.cmp__when svg { width: 16px; height: 16px; flex: none; }

/* ---------- Parte 3: gráfico ---------- */
.chart { margin: 0; padding: 18px 16px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 760px) { .chart { padding: 28px 32px 24px; } }
.chart__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px 16px; }
.chart__title { max-width: 30rem; font: 800 clamp(1.15rem, 3.8vw, 1.4rem)/1.25 var(--serif); letter-spacing: -.01em; }
.chart__title small { display: block; margin-top: 4px; font: 500 .86rem/1.4 var(--sans); letter-spacing: 0; color: var(--muted); }
.stat { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 18px 0 12px; }
.stat__n { font: 850 clamp(3.2rem, 14vw, 4.6rem)/.9 var(--serif); letter-spacing: -.03em; }
.stat__t { font-size: 1rem; line-height: 1.4; color: var(--ink-2); }
.meter-bar { height: 42px; overflow: hidden; border-radius: 4px; background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--ink); }
.meter-bar__fill { display: flex; align-items: center; width: var(--w); height: 100%; padding-left: 12px; overflow: hidden; white-space: nowrap; background: var(--yellow); border-right: 2px solid var(--ink); box-shadow: inset 0 0 0 2px var(--ink); font-size: .95rem; }
.meter-scale { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0 8px; font-size: .8rem; color: var(--muted); }
.chart__sub { margin: 28px 0 12px; font: 800 1.15rem/1.25 var(--serif); }
.duo { display: grid; gap: 12px; margin-bottom: 14px; }
.duo__row { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.duo__label { font-size: .92rem; color: var(--ink-2); }
.duo__track { height: 26px; overflow: hidden; border-radius: 3px; background: var(--paper-2); }
.duo__bar { display: block; width: var(--w); height: 100%; background: var(--ink); }
.duo__bar--y { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--ink); }
.duo b { font: 800 1.05rem/1 var(--serif); white-space: nowrap; }
@media (max-width: 520px) {
  .duo__row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .duo__track { grid-column: 1 / -1; grid-row: 2; }
}
.js .chart .meter-bar__fill, .js .chart .duo__bar { width: 0; transition: width 1s var(--ease); }
.js .chart.is-in .meter-bar__fill, .js .chart.is-in .duo__bar { width: var(--w); }
.cmp__base { margin-top: 6px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.realnote { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; padding: 12px 14px; border-radius: 4px; background: var(--paper); }
.strip { display: grid; gap: 34px; margin: 6px 0 22px; }
.strip__label { margin-bottom: 8px; font-size: .9rem; color: var(--ink-2); }
.strip__label b { color: var(--ink); }
.strip__track {
  position: relative; height: 44px; border-radius: 4px; background-color: var(--paper);
  background-image: linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line)), linear-gradient(var(--line), var(--line));
  background-size: 1px 100%; background-repeat: no-repeat; background-position: 14.29% 0, 50% 0, 85.71% 0;
}
.strip__dot { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--ink); opacity: .82; transform: translateY(var(--dy, 0)); }
.strip__dot--min { z-index: 1; width: 16px; height: 16px; margin: -8px 0 0 -8px; background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); opacity: 1; }
.strip__min { position: absolute; top: calc(100% + 4px); transform: translateX(-50%); white-space: nowrap; font: 700 1.12rem/1 var(--hand); }
.strip__axis { position: relative; height: 16px; font-size: .78rem; color: var(--muted); }
.strip__axis span { position: absolute; transform: translateX(-50%); }
.data { margin: 12px 0 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.data summary { padding: 12px 0; font-weight: 600; cursor: pointer; }
.data table { width: 100%; margin-bottom: 12px; border-collapse: collapse; font-size: .9rem; font-variant-numeric: tabular-nums; }
.data th, .data td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.data th { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tie { max-width: 720px; margin-top: 22px; font-size: 1.06rem; }

/* ---------- Quem explica ---------- */
.about { padding: clamp(56px, 10vw, 104px) 0; overflow: clip; background: var(--white); border-top: 1px solid var(--line); }
.about__grid { display: grid; gap: 36px; }
@media (min-width: 860px) { .about__grid { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; } }
.photo { position: relative; isolation: isolate; max-width: 420px; margin: 0; }
.photo::before { content: ""; position: absolute; z-index: -1; top: -18px; right: -18px; width: 46%; aspect-ratio: 1; border-radius: 50%; background: var(--yellow); }
.photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border: 3px solid var(--white); border-radius: var(--radius); box-shadow: 0 0 0 2px var(--ink); }
.photo figcaption { margin-top: 10px; font-size: .85rem; color: var(--muted); }
.about__p { max-width: 38rem; margin-top: 14px; }
.qa { margin: 24px 0; padding: 16px 18px; border-left: 5px solid var(--yellow); border-radius: 0 4px 4px 0; background: var(--paper); }
.qa__q { margin: 0; font: 800 1.3rem/1.25 var(--serif); }
.qa__src { margin: 2px 0 10px; font: 700 1.22rem/1.1 var(--hand); color: var(--muted); }
.facts { margin: 0; border-top: 2px solid var(--ink); }
.facts > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts dt { font: 700 .72rem/1.9 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 26px; }
.slot {
  aspect-ratio: 1; display: grid; place-items: center; padding: 8px;
  border: 2px dashed #CFC7B8; border-radius: 4px;
  font: 700 1.08rem/1.05 var(--hand); color: var(--muted); text-align: center;
}
.slots .fine { grid-column: 1 / -1; }

/* ---------- Parte 4: teste ---------- */
.quiz { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .quiz { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: start; }
  .result { position: sticky; top: calc(var(--header) + 20px); }
}
.q { min-width: 0; margin: 0; padding: 0; border: 0; }
.q + .q { margin-top: 26px; }
.q legend { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; padding: 0; font: 800 clamp(1.2rem, 4.2vw, 1.42rem)/1.25 var(--serif); letter-spacing: -.01em; }
.q__n {
  flex: none; display: inline-grid; place-items: center; width: 1.75rem; height: 1.75rem; transform: translateY(-.1em);
  border-radius: 50%; background: var(--ink); color: var(--paper); font: 700 .8rem/1 var(--sans);
  transition: background-color .2s;
}
.q.is-done .q__n { background: var(--yellow); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 46px; padding: .55em 1em;
  background: var(--white); border: 2px solid var(--ink); border-radius: 6px;
  font-size: .98rem; font-weight: 600; line-height: 1.2;
  transition: background-color .15s, box-shadow .15s, transform .15s;
}
.chip:hover span { background: var(--yellow-soft); }
.chip input:checked + span { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); transform: translate(-1px, -1px); }
.chip input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }

.result { padding: 22px 20px; background: var(--white); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); }
.result__wait { display: grid; gap: 12px; }
.meter { height: 8px; overflow: hidden; border-radius: 99px; background: var(--paper-2); }
.meter span { display: block; width: 0; height: 100%; background: var(--ink); transition: width .3s var(--ease); }
.result__label { display: block; font: 700 .7rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.result__verdict { margin: .35rem 0 .6rem; font: 850 clamp(1.6rem, 6vw, 2.1rem)/1.08 var(--serif); letter-spacing: -.015em; }
.result__text { color: var(--ink-2); }
.result__msg { margin-top: 22px; }
.bubble { position: relative; margin: 10px 0 6px; padding: 12px 14px 24px; border-radius: 14px 3px 14px 14px; background: #D9FDD3; box-shadow: 0 1px 0 rgba(0, 0, 0, .12); }
.bubble:focus-within { box-shadow: 0 0 0 3px var(--ink); }
.bubble textarea {
  display: block; width: 100%; min-height: 7.5em; padding: 0; overflow: hidden; resize: none;
  border: 0; outline: none; background: transparent; color: #111B21; font: 400 1rem/1.45 var(--sans);
}
.bubble__meta { position: absolute; right: 12px; bottom: 6px; font-size: .72rem; color: #667781; }
.link-btn { padding: 0; border: 0; background: none; color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.result .btn { margin-top: 16px; }
.result .fine { margin-top: 10px; }

/* ---------- Parte 5: já sou cliente ---------- */
.client { display: grid; gap: 16px; }
@media (min-width: 760px) { .client { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { display: flex; flex-direction: column; gap: 12px; padding: 22px 20px; background: #1E1D1B; border: 1px solid #34312C; border-radius: var(--radius); }
.tile__label { font: 700 .7rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #BDB6A9; }
.tile > .btn, .tile__actions { margin-top: auto; }
.tile > .btn { align-self: flex-start; }
.tile__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.date { display: flex; align-items: baseline; gap: 10px; }
.date__d { font: 850 4.4rem/.85 var(--serif); letter-spacing: -.03em; color: var(--yellow); }
.date__m { font: 800 1.6rem/1 var(--serif); text-transform: uppercase; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: passo; }
.steps li { display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 10px; align-items: start; line-height: 1.45; counter-increment: passo; }
.steps li::before {
  content: counter(passo); display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-top: .05em;
  border-radius: 50%; background: var(--yellow); color: var(--ink); font: 800 .8rem/1 var(--sans);
}
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checklist label { display: flex; align-items: flex-start; gap: 12px; line-height: 1.4; cursor: pointer; }
.checklist input {
  -webkit-appearance: none; appearance: none; flex: none; display: grid; place-items: center;
  width: 22px; height: 22px; margin: 0; border: 2px solid #D6D0C4; border-radius: 4px; cursor: pointer;
}
.checklist input::after { content: ""; width: 6px; height: 11px; border: solid var(--ink); border-width: 0 3px 3px 0; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.checklist input:checked { background: var(--yellow); border-color: var(--yellow); }
.checklist input:checked::after { opacity: 1; }
.checklist input:checked + span { color: #9C9588; text-decoration: line-through; text-decoration-thickness: 2px; }

/* ---------- Rodapé e barra fixa ---------- */
.foot { padding: 44px 0 56px; }
.foot__in { display: grid; gap: 12px; max-width: 720px; font-size: .92rem; color: var(--ink-2); }
.foot .brand__name { font-size: 1.3rem; color: var(--ink); }

.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to bottom, rgba(251, 248, 241, 0), var(--paper) 35%);
  transition: transform .35s var(--ease);
}
.js .dock { transform: translateY(120%); }
.js .dock.is-shown { transform: none; }
@media (min-width: 760px) { .dock { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Convite direto para conversar, junto da pergunta principal. */
.hero__actions { margin: 0 0 12px; align-items: center; }
.hero__link { font-size: .92rem; font-weight: 600; }
.hero__help { max-width: 32rem; margin: 0 0 24px; font-size: .9rem; color: var(--ink-2); }
@media (max-width: 759px) {
  .hero__actions { align-items: stretch; flex-direction: column; }
  .hero__link { padding: 8px 0; text-align: center; }
}

/* Explicações completas ficam a um toque, sem alongar a leitura inicial. */
.explainer { margin-top: 24px; border: 1px solid var(--line); border-radius: 6px; }
.explainer > summary { cursor: pointer; padding: 20px; font-weight: 700; background: var(--paper-2); }
.explainer > summary:hover { background: var(--yellow-soft); }
.explainer[open] > summary { border-bottom: 1px solid var(--line); }
.explainer .cards { margin: 20px 0 0; }
.explainer .chart { margin: 0; border: 0; }
.lance-summary { margin-top: 22px; max-width: 44rem; }
