/* ════════ MONTE SEU PLANO — trilha de 4 passos ════════
   Usado por index.html e pelas propostas. Estilos escopados em .mp:
   não depende das variáveis da página que o hospeda. */
.mp {
  --mp-navy: #2D2547; --mp-navy-mid: #3d3562; --mp-coral: #C4697A; --mp-coral-soft: #D98A99;
  --mp-pale: #F5ECEE; --mp-cream: #FAF8F5; --mp-cream2: #F2EEE9; --mp-gold: #B5860A;
  --mp-warm: #726E67; --mp-char: #2C2825; --mp-mid: #4A4744;
  --mp-serif: 'Cormorant Garamond', Georgia, serif; --mp-sans: 'DM Sans', -apple-system, system-ui, sans-serif;
  --mp-ease: cubic-bezier(.22,1,.36,1);
  font-family: var(--mp-sans); color: var(--mp-char);
  background: #fff; border-radius: 24px; border: 1px solid rgba(45,37,71,.08);
  box-shadow: 0 30px 80px rgba(45,37,71,.10); overflow: hidden; text-align: left;
  max-width: 1040px; margin: 0 auto;
}
.mp *, .mp *::before, .mp *::after { box-sizing: border-box; }

/* trilha */
.mp__trail { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--mp-cream2); position: relative; }
.mp__trail::after { content: ''; position: absolute; left: 0; bottom: 0; height: 3px; background: var(--mp-coral); width: var(--mp-prog, 25%); transition: width .6s var(--mp-ease); }
.mp__tab { background: none; border: 0; font: inherit; padding: 16px 12px; display: flex; align-items: center; gap: 10px; color: var(--mp-warm); font-size: .84rem; cursor: pointer; text-align: left; }
.mp__tab:disabled { cursor: default; opacity: .55; }
.mp__tab i { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; display: grid; place-items: center; font-style: normal; font-size: .75rem; font-weight: 600; transition: background .3s, color .3s, border-color .3s; }
.mp__tab.cur { color: var(--mp-navy); font-weight: 600; }
.mp__tab.cur i { background: var(--mp-coral); border-color: var(--mp-coral); color: #fff; }
.mp__tab.done { color: var(--mp-navy); }
.mp__tab.done i { background: var(--mp-navy); border-color: var(--mp-navy); color: #fff; }

.mp__body { display: grid; grid-template-columns: 1fr 300px; min-height: 520px; }
.mp__stage { padding: clamp(22px, 3.5vw, 36px); position: relative; }
.mp__step { display: none; }
.mp__step.cur { display: block; animation: mpIn .55s var(--mp-ease); }
@keyframes mpIn { from { opacity: 0; transform: translateX(18px); filter: blur(4px); } }
.mp__q { font-family: var(--mp-serif); font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--mp-navy); line-height: 1.1; margin: 0 0 6px; font-weight: 600; }
.mp__hint { color: var(--mp-warm); font-size: .92rem; margin: 0 0 22px; line-height: 1.5; }

/* atalhos */
.mp__presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mp__preset { font: inherit; font-size: .8rem; border: 1px solid rgba(45,37,71,.18); background: #fff; border-radius: 99px; padding: 7px 14px; cursor: pointer; color: var(--mp-mid); transition: all .25s; }
.mp__preset:hover { border-color: var(--mp-coral); color: var(--mp-coral); }
.mp__preset.on { background: var(--mp-navy); border-color: var(--mp-navy); color: #fff; }

/* módulos */
.mp__mods { display: grid; gap: 12px; }
.mp__mod { border: 1.5px solid rgba(45,37,71,.12); border-radius: 16px; background: #fff; transition: border-color .3s, box-shadow .3s, transform .3s var(--mp-ease); }
.mp__mod:hover { transform: translateY(-2px); }
.mp__mod.on { border-color: var(--mp-coral); box-shadow: 0 12px 30px rgba(196,105,122,.16); background: linear-gradient(180deg, var(--mp-pale), #fff 70%); }
.mp__modhd { display: flex; gap: 14px; align-items: center; padding: 16px 18px; cursor: pointer; width: 100%; background: none; border: 0; font: inherit; text-align: left; color: inherit; }
.mp__ic { flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--mp-cream2); display: grid; place-items: center; transition: background .3s; }
.mp__mod.on .mp__ic { background: var(--mp-coral); }
.mp__ic svg { width: 22px; height: 22px; fill: none; stroke: var(--mp-coral); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.mp__mod.on .mp__ic svg { stroke: #fff; }
.mp__mt { flex: 1; min-width: 0; }
.mp__mt b { display: block; color: var(--mp-navy); font-size: 1rem; }
.mp__mt span { font-size: .84rem; color: var(--mp-warm); }
.mp__mp { text-align: right; white-space: nowrap; font-size: .8rem; color: var(--mp-warm); }
.mp__mp b { display: block; font-family: var(--mp-serif); font-size: 1.35rem; color: var(--mp-navy); }
.mp__tg { flex: none; width: 44px; height: 26px; border-radius: 99px; background: rgba(45,37,71,.16); position: relative; transition: background .3s; }
.mp__tg::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: transform .35s var(--mp-ease); }
.mp__mod.on .mp__tg { background: var(--mp-coral); }
.mp__mod.on .mp__tg::after { transform: translateX(18px); }
.mp__more { padding: 0 18px 14px 76px; }
.mp__more summary { font-size: .8rem; color: var(--mp-coral); cursor: pointer; list-style: none; font-weight: 500; }
.mp__more summary::-webkit-details-marker { display: none; }
.mp__more summary::after { content: ' +'; }
.mp__more[open] summary::after { content: ' −'; }
.mp__more ul { margin: 10px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.mp__more li { font-size: .86rem; color: var(--mp-mid); padding-left: 18px; position: relative; line-height: 1.45; }
.mp__more li::before { content: '✓'; position: absolute; left: 0; color: var(--mp-coral); font-weight: 600; font-size: .8rem; }
.mp__more li.soon::before { content: '◷'; color: var(--mp-gold); }

.mp__nudge { margin-top: 14px; border-radius: 14px; padding: 14px 16px; font-size: .88rem; line-height: 1.5; display: none; gap: 12px; align-items: center; justify-content: space-between; }
.mp__nudge.show { display: flex; animation: mpIn .5s var(--mp-ease); }
.mp__nudge--deal { background: var(--mp-navy); color: rgba(255,255,255,.88); }
.mp__nudge--deal b { color: var(--mp-coral-soft); }
.mp__nudge--warn { background: #FBF5E6; color: #6b5310; border: 1px solid rgba(181,134,10,.25); }
.mp__nudge button { flex: none; font: inherit; font-size: .8rem; font-weight: 600; background: var(--mp-coral); color: #fff; border: 0; border-radius: 99px; padding: 8px 14px; cursor: pointer; }

/* agendas */
.mp__count { display: flex; align-items: center; gap: 22px; margin: 10px 0 22px; }
.mp__cbtn { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid rgba(45,37,71,.2); background: #fff; font-size: 1.5rem; color: var(--mp-navy); cursor: pointer; transition: all .2s; }
.mp__cbtn:hover { border-color: var(--mp-coral); color: var(--mp-coral); }
.mp__cval { font-family: var(--mp-serif); font-size: 4rem; color: var(--mp-navy); min-width: 70px; text-align: center; line-height: 1; font-variant-numeric: tabular-nums; }
.mp__clab { color: var(--mp-warm); font-size: .9rem; }
.mp__docs { display: flex; gap: 8px; flex-wrap: wrap; min-height: 44px; margin-bottom: 18px; }
.mp__doc { width: 40px; height: 40px; border-radius: 50%; background: var(--mp-pale); display: grid; place-items: center; animation: mpPop .4s var(--mp-ease); }
.mp__doc svg { width: 20px; height: 20px; stroke: var(--mp-coral); fill: none; stroke-width: 1.8; }
@keyframes mpPop { from { transform: scale(0); } }
.mp__tip { background: var(--mp-cream2); border-radius: 12px; padding: 12px 14px; font-size: .86rem; color: var(--mp-mid); line-height: 1.5; }

/* resumo */
.mp__lines { list-style: none; padding: 0; margin: 0 0 16px; }
.mp__lines li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px dashed rgba(45,37,71,.16); font-size: .95rem; color: var(--mp-mid); }
.mp__lines li b { color: var(--mp-navy); white-space: nowrap; }
.mp__lines li s { color: var(--mp-warm); margin-right: 6px; font-size: .85rem; }
.mp__base { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.mp__base span { font-size: .76rem; background: var(--mp-cream2); color: var(--mp-mid); padding: 5px 10px; border-radius: 99px; }
.mp__fund { display: flex; gap: 12px; align-items: flex-start; border: 1.5px dashed var(--mp-gold); border-radius: 14px; padding: 14px 16px; margin-top: 16px; cursor: pointer; background: #FFFCF4; }
.mp__fund input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--mp-coral); flex: none; }
.mp__fund b { color: var(--mp-navy); display: block; margin-bottom: 2px; }
.mp__fund span { font-size: .85rem; color: var(--mp-mid); line-height: 1.45; }
.mp__small { font-size: .8rem; color: var(--mp-warm); line-height: 1.5; margin-top: 12px; }

/* formulário */
.mp__f { display: grid; gap: 4px; margin-bottom: 12px; }
.mp__f label { font-size: .8rem; font-weight: 500; color: var(--mp-mid); }
.mp__f input { font: inherit; font-size: 16px; padding: 11px 12px; border-radius: 10px; border: 1.5px solid rgba(45,37,71,.16); background: #fff; color: var(--mp-char); width: 100%; transition: border-color .2s; }
.mp__f input:focus { outline: none; border-color: var(--mp-coral); }
.mp__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mp__ok { display: flex; gap: 10px; font-size: .82rem; color: var(--mp-mid); line-height: 1.45; margin: 4px 0 6px; cursor: pointer; }
.mp__ok input { width: 18px; height: 18px; accent-color: var(--mp-coral); flex: none; margin-top: 2px; }
.mp__err { color: #a3343f; font-size: .84rem; min-height: 1.3em; margin: 6px 0; }

/* navegação */
.mp__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.mp__btn { font: inherit; font-weight: 600; font-size: .95rem; border-radius: 99px; padding: 14px 26px; cursor: pointer; border: 0; transition: transform .25s var(--mp-ease), box-shadow .25s, background .25s; }
.mp__btn:hover { transform: translateY(-2px); }
.mp__btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.mp__btn--go { background: var(--mp-coral); color: #fff; box-shadow: 0 10px 26px rgba(196,105,122,.35); margin-left: auto; }
.mp__btn--back { background: none; color: var(--mp-warm); padding-left: 0; }

/* coluna de total */
.mp__side { background: var(--mp-navy); color: #fff; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.mp__side::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--mp-coral); filter: blur(80px); opacity: .35; top: -90px; right: -110px; }
.mp__sl { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--mp-coral-soft); position: relative; }
.mp__sname { font-family: var(--mp-serif); font-size: 1.6rem; line-height: 1.1; position: relative; min-height: 1.1em; }
.mp__stot { position: relative; }
.mp__stot b { font-family: var(--mp-serif); font-size: 3.4rem; line-height: 1; font-variant-numeric: tabular-nums; }
.mp__stot span { color: rgba(255,255,255,.7); font-size: .9rem; }
.mp__sitems { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; position: relative; font-size: .86rem; color: rgba(255,255,255,.82); }
.mp__sitems li { display: flex; gap: 8px; animation: mpIn .4s var(--mp-ease); }
.mp__sitems li::before { content: '●'; color: var(--mp-coral-soft); font-size: .6rem; margin-top: 5px; }
.mp__sfoot { margin-top: auto; font-size: .76rem; color: rgba(255,255,255,.6); line-height: 1.5; position: relative; }

/* concluído */
.mp__done { text-align: center; padding: 30px 10px; }
.mp__done svg { width: 76px; height: 76px; }
.mp__done circle { stroke: var(--mp-coral); stroke-dasharray: 190; stroke-dashoffset: 190; animation: mpDraw .8s var(--mp-ease) forwards; }
.mp__done path { stroke: var(--mp-coral); stroke-dasharray: 40; stroke-dashoffset: 40; animation: mpDraw .45s .6s var(--mp-ease) forwards; }
@keyframes mpDraw { to { stroke-dashoffset: 0; } }
.mp__done h4 { font-family: var(--mp-serif); font-size: 2rem; color: var(--mp-navy); margin: 14px 0 8px; }
.mp__done p { color: var(--mp-warm); line-height: 1.6; max-width: 440px; margin: 0 auto 20px; }
.mp__done a { display: inline-block; background: var(--mp-navy); color: #fff; text-decoration: none; padding: 14px 26px; border-radius: 99px; font-weight: 600; }

@media (max-width: 860px) {
  .mp__body { grid-template-columns: 1fr; }
  .mp__side { position: sticky; bottom: 0; z-index: 2; padding: 14px 18px; flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
  .mp__side::before, .mp__sitems, .mp__sfoot, .mp__sl { display: none; }
  .mp__sname { font-size: 1.1rem; }
  .mp__stot b { font-size: 1.9rem; }
  .mp__tab span { display: none; }
  .mp__tab { justify-content: center; }
  .mp__more { padding-left: 18px; }
  .mp__row { grid-template-columns: 1fr; }
  .mp__mp b { font-size: 1.1rem; }
  .mp__modhd { gap: 10px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .mp *, .mp *::before, .mp *::after { animation: none !important; transition: none !important; } }

/* Médico Fundador: desconto e implantação isenta no resumo */
.mp [hidden] { display: none !important; }
.mp .mp__lines li.mp__lfund, .mp .mp__lines li.mp__lfund b { color: var(--mp-gold); }
.mp .mp__lines li small { display: block; font-size: .78rem; color: var(--mp-warm); font-weight: 400; margin-top: 2px; }
.mp .mp__fundoff { font-size: .85rem; color: var(--mp-warm); margin: 0 0 14px; }

/* contrato pronto na tela (contrato-nati.js) */
.mp .mp__done { text-align: left; }
.mp .mp__done > svg, .mp .mp__done > h4 { margin-left: auto; margin-right: auto; text-align: center; display: block; }
.mp .mp__done > p[data-donep] { text-align: center; }
.mp .mp__ct { max-height: 380px; overflow: auto; background: #fff; border: 1px solid rgba(45,37,71,.14); border-radius: 12px; padding: 22px 24px; margin: 16px 0 14px; font-size: .84rem; line-height: 1.55; color: #2C2825; text-align: justify; }
.mp .mp__ct:focus { outline: 2px solid var(--mp-coral, #C4697A); outline-offset: 2px; }
.mp .ct__num { font: 500 .7rem/1 'DM Mono', monospace; color: #8a93a0; text-align: right; margin: 0 0 8px; }
.mp .ct h4 { font: 600 1.25rem/1.2 'Cormorant Garamond', serif; color: #2D2547; margin: 0 0 2px; text-align: left; }
.mp .ct__sub { color: #726E67; margin: 0 0 10px; font-size: .78rem; text-align: left; }
.mp .ct h5 { font-size: .82rem; color: #2D2547; margin: 14px 0 4px; text-transform: none; letter-spacing: 0; }
.mp .ct p { margin: 0 0 6px; }
.mp .ct__fecha { margin-top: 14px !important; font-style: italic; }
.mp .ct__ass { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 40px; font-size: .78rem; font-weight: 600; text-align: left; }
.mp .ct__ass span { display: block; border-top: 1px solid #2C2825; margin-bottom: 6px; }
.mp .ct__ass small { display: block; font-weight: 400; color: #726E67; }
.mp .mp__ctbtns { display: flex; justify-content: center; margin-bottom: 6px; }
.mp .mp__gov { margin: 14px 0 12px; padding-left: 22px; font-size: .9rem; line-height: 1.5; }
.mp .mp__gov li { margin-bottom: 6px; }
.mp .mp__gov a { color: var(--mp-coral, #C4697A); font-weight: 600; }
.mp .mp__done > a[data-wa] { display: table; margin: 8px auto 0; }
@media (max-width: 600px) { .mp .mp__ct { padding: 16px; max-height: 320px; } .mp .ct__ass { grid-template-columns: 1fr; } }
.mp .mp__gov a { display: inline; background: none; padding: 0; border-radius: 0; }
.mp .mp__ct p { max-width: none; color: #2C2825; line-height: 1.55; margin: 0 0 6px; }
.mp .mp__ct .ct__sub { color: #726E67; }
.mp .mp__done p.mp__small, .mp .mp__done p.mp__err { max-width: none; text-align: center; margin: 4px auto 10px; }
