/* ==========================================================================
   Mapa da Operação — checkpoint T4 (F1, spec §3.1)
   Identidade herdada do site: escuro + ciano + Bricolage/Hanken/JetBrains.
   Mobile-first; SVG inline; animação = o mapa se desenhando. 2026-07-22
   ========================================================================== */

:root {
  --ink: #06080f;
  --panel: #0c1120;
  --panel-2: #101728;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #e8ecf4;
  --soft: #aab3c5;
  --mute: #6b7590;
  --cyan: rgb(52, 229, 196);
  --cyan-soft: rgba(52, 229, 196, .14);
  --amber: #ffb45a;
  --red: #ff5c5c; /* urgência — tier "automatizável agora" no veredito T8 (2026-07-28) */
  --display: "Bricolage Grotesque", sans-serif;
  --body: "Hanken Grotesk", sans-serif;
  --mono: "JetBrains Mono", monospace;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); color: var(--text); background: var(--ink);
  min-height: 100dvh; overflow-x: hidden;
  /* atmosfera: brilho ciano vindo do topo + vinheta — nunca cor sólida chapada */
  background-image:
    radial-gradient(90% 46% at 50% -6%, rgba(52, 229, 196, .09), transparent 60%),
    radial-gradient(120% 80% at 50% 110%, rgba(0, 0, 0, .5), transparent 60%);
  background-attachment: fixed;
}

/* ---- topo mínimo -------------------------------------------------------- */
.mtop {
  display: flex; align-items: center; justify-content: space-between;
  padding: .95rem clamp(1rem, 4vw, 2rem);
  border-bottom: 1px solid var(--line);
}
.mtop__brand {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: .98rem;
  color: var(--text); text-decoration: none; letter-spacing: -.01em;
}
.mtop__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(52, 229, 196, .8); }
.mtop__tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }

/* ---- cabeçalho da tela --------------------------------------------------- */
.mwrap { max-width: 560px; margin: 0 auto; padding: clamp(1.2rem, 4vw, 2rem) clamp(1rem, 4vw, 1.6rem) 7.5rem; text-align: center; }
.mkicker {
  display: block; font-family: var(--mono); font-size: .66rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: .9rem;
  animation: mIn .5s var(--ease) both;
}
.mh1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 6vw, 2.1rem);
  line-height: 1.12; letter-spacing: -.02em; animation: mIn .5s var(--ease) .08s both;
}
.mhl { color: var(--cyan); }
.msub { color: var(--soft); font-size: clamp(.95rem, 3.6vw, 1.05rem); line-height: 1.55; max-width: 40ch; margin: .8rem auto 0; animation: mIn .5s var(--ease) .16s both; }
@keyframes mIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---- o mapa (SVG) -------------------------------------------------------- */
.mstage { position: relative; margin: clamp(.6rem, 3vw, 1.4rem) auto 0; max-width: 440px; }
#mSvg { position: relative; width: 100%; height: auto; display: block; }
/* brilho ambiente que CRESCE conforme o mapa é preenchido (opacity via JS) — a página liga junto */
.mglow {
  position: absolute; inset: -8%; pointer-events: none; opacity: 0;
  background: radial-gradient(46% 46% at 50% 50%, rgba(52, 229, 196, .2), rgba(255, 180, 90, .05) 55%, transparent 72%);
  filter: blur(14px); transition: opacity .9s var(--ease);
}

/* linhas centro→área: nascem "desenhando" (dashoffset) e acendem quando a área liga */
.mlink {
  stroke: var(--line-2); stroke-width: 1.2; fill: none;
  stroke-dasharray: 170; stroke-dashoffset: 170;
  animation: mDraw .7s var(--ease) forwards;
  transition: stroke .35s;
}
/* linha LIGADA: energia fluindo da área pro núcleo (tracejado em movimento contínuo) */
.mlink.is-on {
  stroke: rgba(52, 229, 196, .6); stroke-dasharray: 3 9; stroke-dashoffset: 0;
  animation: mFlow 1.1s linear infinite;
}
@keyframes mDraw { to { stroke-dashoffset: 0; } }
@keyframes mFlow { to { stroke-dashoffset: -12; } }

/* núcleo */
.mcore__ring { fill: none; stroke: rgba(52, 229, 196, .35); stroke-width: 1.4; }
.mcore__pulse { fill: none; stroke: rgba(52, 229, 196, .18); stroke-width: 1; animation: mPulse 3.2s ease-in-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes mPulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.14); opacity: .15; } }
.mcore__txt { font-family: var(--mono); font-size: 9.5px; letter-spacing: .14em; fill: var(--soft); text-transform: uppercase; }
.mcore__txt--b { fill: var(--text); font-size: 11px; }

/* nó de área */
.mnode { cursor: pointer; transform-origin: center; transform-box: fill-box; animation: mPop .5s var(--ease) both; }
@keyframes mPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.mnode__c {
  fill: var(--panel); stroke: var(--line-2); stroke-width: 1.2; stroke-dasharray: 3 3;
  transition: fill .35s, stroke .35s, filter .35s;
}
.mnode__t { font-family: var(--body); font-weight: 600; font-size: 12.5px; fill: var(--soft); transition: fill .3s; pointer-events: none; }
.mnode__n { font-family: var(--mono); font-size: 8px; letter-spacing: .1em; fill: var(--mute); pointer-events: none; }
.mnode__who { font-family: var(--mono); font-size: 7.5px; letter-spacing: .12em; fill: var(--mute); text-transform: uppercase; opacity: 0; transition: opacity .3s; pointer-events: none; }
.mnode__dots { opacity: 0; transition: opacity .3s; pointer-events: none; }
.mnode__dots circle { fill: var(--amber); }

/* área LIGADA: preenchimento em GRADIENTE ciano, glow respirando + pulso de confirmação */
.mnode.is-on .mnode__c {
  fill: url(#mGradOn); stroke: var(--cyan); stroke-dasharray: none;
  animation: mOn .5s var(--ease), mBreathe 3.4s ease-in-out 0.5s infinite;
}
@keyframes mOn {
  0% { filter: drop-shadow(0 0 2px rgba(52, 229, 196, .2)); }
  45% { filter: drop-shadow(0 0 24px rgba(52, 229, 196, .9)); }
  100% { filter: drop-shadow(0 0 9px rgba(52, 229, 196, .45)); }
}
@keyframes mBreathe {
  0%, 100% { filter: drop-shadow(0 0 7px rgba(52, 229, 196, .35)); }
  50% { filter: drop-shadow(0 0 14px rgba(52, 229, 196, .6)); }
}
/* dor forte: gradiente e respiração viram âmbar */
.mnode.is-hot .mnode__c { fill: url(#mGradHot); animation-name: mOn, mBreatheHot; }
@keyframes mBreatheHot {
  0%, 100% { filter: drop-shadow(0 0 7px rgba(255, 180, 90, .35)); }
  50% { filter: drop-shadow(0 0 15px rgba(255, 180, 90, .6)); }
}

/* IMPACTO ao inserir a área: anel que explode + faíscas + núcleo que "recebe" */
.mburst {
  fill: none; stroke: var(--cyan); stroke-width: 2.2; pointer-events: none;
  transform-origin: center; transform-box: fill-box;
  animation: mBurst .65s var(--ease) forwards;
}
.mburst--amber { stroke: var(--amber); }
@keyframes mBurst { from { opacity: .95; transform: scale(.45); } to { opacity: 0; transform: scale(2.3); } }
.mspark {
  fill: var(--cyan); pointer-events: none;
  transform-origin: center; transform-box: fill-box;
  animation: mSpark .6s var(--ease) forwards;
}
.mspark--amber { fill: var(--amber); }
@keyframes mSpark {
  from { opacity: 1; transform: translate(0, 0) scale(1); }
  to { opacity: 0; transform: translate(var(--sx, 0), var(--sy, 0)) scale(.25); }
}
.mcore.is-fed .mcore__ring {
  stroke: var(--cyan); filter: drop-shadow(0 0 16px rgba(52, 229, 196, .85));
}
.mcore.is-fed { animation: mFeed .55s var(--ease); transform-origin: center; transform-box: fill-box; }
@keyframes mFeed { 0% { transform: scale(1); } 40% { transform: scale(1.09); } 100% { transform: scale(1); } }
.mnode.is-on .mnode__t { fill: var(--text); }
.mnode.is-on .mnode__who { opacity: 1; }
.mnode.is-on .mnode__dots { opacity: 1; }

/* dor forte (2+ marcações): o glow ganha calor de âmbar */
.mnode.is-hot .mnode__c { stroke: var(--amber); filter: drop-shadow(0 0 10px rgba(255, 180, 90, .4)); }

/* feedback de toque */
.mnode:active .mnode__c { filter: brightness(1.25); }

/* ---- aviso modo solo ------------------------------------------------------ */
.msolo {
  margin: 1rem auto 0; max-width: 34ch; color: var(--amber);
  font-size: .88rem; line-height: 1.5; animation: mIn .4s var(--ease) both;
}

/* ---- barra fixa: progresso + continuar ----------------------------------- */
.mbar[hidden] { display: none; }   /* display:flex abaixo anula o [hidden] nativo — mesma lição do sheet. 2026-07-22 */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .9rem clamp(1rem, 4vw, 1.6rem) calc(.9rem + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, transparent, rgba(6, 8, 15, .92) 34%);
}
.mbar__prog { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; color: var(--mute); text-transform: uppercase; }
.mbar__go {
  font-family: var(--body); font-weight: 700; font-size: 1rem; color: #04211b;
  background: var(--cyan); border: 0; border-radius: 999px;
  padding: .8rem 1.7rem; min-height: 48px; cursor: pointer;
  box-shadow: 0 8px 26px -10px rgba(52, 229, 196, .55);
  transition: transform .2s var(--ease), opacity .25s, box-shadow .25s;
}
.mbar__go:disabled { opacity: .32; box-shadow: none; cursor: not-allowed; }
.mbar__go:not(:disabled):active { transform: scale(.97); }

/* ---- bottom sheet da área ------------------------------------------------- */
.msheet { position: fixed; inset: 0; z-index: 60; background: rgba(3, 5, 10, .6); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; }
.msheet[hidden] { display: none; }   /* display:flex acima anula o [hidden] nativo — restaura. 2026-07-22 */
.msheet__card {
  position: relative; width: 100%; max-width: 560px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2); border-bottom: 0;
  border-radius: 20px 20px 0 0;
  padding: 1.5rem clamp(1.1rem, 4vw, 1.6rem) calc(1.4rem + env(safe-area-inset-bottom));
  box-shadow: 0 -18px 60px -20px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .04);
  animation: mUp .35s var(--ease) both;
}
@keyframes mUp { from { transform: translateY(48px); opacity: 0; } to { transform: none; opacity: 1; } }
.msheet__close {
  position: absolute; top: .7rem; right: .8rem; width: 40px; height: 40px;
  background: none; border: 0; color: var(--mute); font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.msheet__title { font-family: var(--display); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; margin-bottom: .2rem; }
.msheet__q { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); margin: 1.1rem 0 .55rem; }
.mchips { display: flex; flex-wrap: wrap; gap: .5rem; }
.mchips--list { flex-direction: column; }          /* dores situacionais: 1 por linha, legível */
.mchips--list .mchip { width: 100%; text-align: left; border-radius: 12px; }
.mchip {
  font-family: var(--body); font-weight: 600; font-size: .92rem; color: var(--soft);
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); border-radius: 999px;
  padding: .6rem 1.05rem; min-height: 44px; cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .15s var(--ease);
  animation: mChipIn .32s var(--ease) both;        /* entram em cascata ao abrir o painel */
  animation-delay: calc(var(--i, 0) * 45ms);
}
@keyframes mChipIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mchip:active { transform: scale(.97); }
.mchip.is-sel { color: var(--text); border-color: var(--cyan); background: var(--cyan-soft); }
.mchip--amber.is-sel { border-color: var(--amber); background: rgba(255, 180, 90, .12); }
.msheet__acts { display: flex; align-items: center; gap: 1rem; margin-top: 1.4rem; }
.msheet__ok {
  flex: 1; font-family: var(--body); font-weight: 700; font-size: 1rem; color: #04211b;
  background: var(--cyan); border: 0; border-radius: 12px; padding: .85rem 1rem; min-height: 48px;
  cursor: pointer; transition: opacity .25s, transform .2s var(--ease);
}
.msheet__ok:disabled { opacity: .32; cursor: not-allowed; }
.msheet__ok:not(:disabled):active { transform: scale(.98); }
.msheet__rm { background: none; border: 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); cursor: pointer; }
.msheet__rm:active { color: var(--amber); }

/* ---- card de fim do checkpoint ------------------------------------------- */
.mdone {
  margin: 1.4rem auto 0; max-width: 420px; text-align: center;
  border: 1px solid rgba(52, 229, 196, .3); border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 1.4rem 1.2rem; animation: mIn .4s var(--ease) both;
}
.mdone__ok { color: var(--cyan); font-weight: 700; }
.mdone__t { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: .4rem; }
.mdone__p { color: var(--soft); font-size: .92rem; line-height: 1.55; }

.mnoscript { margin-top: 2rem; color: var(--soft); }
.mnoscript a { color: var(--cyan); }

/* ---- máquina de telas (F1 completa, 2026-07-22) --------------------------- */
.mtela { animation: mIn .4s var(--ease) both; }

/* botões genéricos das telas */
.mbtn {
  font-family: var(--body); font-weight: 700; font-size: 1rem; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 12px; color: var(--soft);
  background: rgba(255, 255, 255, .03); padding: .8rem 1.4rem; min-height: 48px;
  margin-top: 1rem; transition: color .2s, border-color .2s, transform .15s var(--ease);
}
.mbtn:active { transform: scale(.98); }
.mbtn--primary {
  color: #04211b; background: var(--cyan); border: 0;
  box-shadow: 0 8px 26px -10px rgba(52, 229, 196, .55);
}
.mbtn--lg { font-size: 1.06rem; padding: .95rem 1.9rem; }
.mbtn--ghost { background: none; font-weight: 600; font-size: .9rem; }
.mbtn--ghost:active, .mbtn--ghost:hover { color: var(--cyan); border-color: var(--cyan); }

/* T0 — abertura */
.mstart { display: flex; flex-direction: column; align-items: center; gap: .4rem; margin-top: 1.4rem; }
.mstart__lead { color: var(--soft); font-size: 1rem; line-height: 1.55; max-width: 38ch; margin: 0 auto .4rem; }

/* T1/T2/T3 — cartões de escolha */
.mopts { display: flex; flex-direction: column; gap: .7rem; margin-top: 1.6rem; }
.mopts--grid { flex-direction: row; flex-wrap: wrap; justify-content: center; }
.mcard {
  position: relative; font-family: var(--body); font-weight: 600; font-size: 1.02rem;
  color: var(--text); text-align: left; cursor: pointer;
  background: radial-gradient(120% 140% at 50% 0%, rgba(52, 229, 196, .06), transparent 60%), var(--panel);
  border: 1px solid var(--line-2); border-radius: 14px;
  padding: 1.05rem 1.2rem; min-height: 56px; width: 100%;
  transition: border-color .2s, box-shadow .2s, transform .15s var(--ease);
  animation: mChipIn .32s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.mcard:not(:disabled):hover, .mcard:not(:disabled):focus-visible { border-color: var(--cyan); box-shadow: 0 0 0 1px rgba(52, 229, 196, .25); }
.mcard:not(:disabled):active { transform: scale(.98); }
.mopts--grid .mcard { width: calc(50% - .35rem); text-align: center; }
.mcard--off { opacity: .45; cursor: not-allowed; }
.mcard__tag {
  position: absolute; top: .5rem; right: .6rem;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute);
}

/* T2 — resposta à objeção */
.mresp {
  max-width: 46ch; margin: 1.2rem auto 0; text-align: left;
  border: 1px solid rgba(52, 229, 196, .3); border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 1.3rem 1.3rem; animation: mIn .4s var(--ease) both;
}
.mresp__q { font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.3; margin-bottom: .7rem; }
.mresp__a { color: var(--soft); font-size: .98rem; line-height: 1.65; }
/* resposta em parágrafos (rodada 3 de copy, 2026-07-28) */
.mresp__a + .mresp__a { margin-top: .65rem; }

/* T6/T7 — inputs */
.minput {
  display: block; width: 100%; max-width: 420px; margin: .9rem auto 0;
  font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255, 255, 255, .02); border: 1px solid var(--line-2); border-radius: 12px;
  padding: .85rem 1rem;
}
.minput:focus { outline: none; border-color: var(--cyan); }
.minput--area { resize: none; min-height: 90px; }
.merr { color: var(--amber); font-size: .88rem; margin-top: .6rem; }

/* T8 — o rascunho É o mapa desenhado (tiers pintados nos nós) — 2026-07-23.
   Urgência (2026-07-28, pedido do dono): "agora" = VERMELHO (prioridade),
   "próximo passo" = âmbar (pode esperar); ciano não passava urgência. */
.mnode.is-res { cursor: default; }
.mnode--automatizavel_agora .mnode__c {
  fill: url(#mGradOn2); stroke: var(--red); stroke-dasharray: none;
  animation: mBreatheRed 3.4s ease-in-out infinite;
}
@keyframes mBreatheRed {
  0%, 100% { filter: drop-shadow(0 0 7px rgba(255, 92, 92, .4)); }
  50% { filter: drop-shadow(0 0 16px rgba(255, 92, 92, .65)); }
}
.mnode--automatizavel_agora .mnode__t { fill: var(--text); }
.mnode--proximo_passo .mnode__c {
  fill: url(#mGradHot2); stroke: var(--amber); stroke-dasharray: none;
  animation: mBreatheHot 3.8s ease-in-out infinite;
}
.mnode--proximo_passo .mnode__t { fill: var(--text); }
.mnode--nao_vale_ainda .mnode__c { fill: var(--panel-2); stroke: var(--line-2); stroke-dasharray: none; }
.mnode--nao_vale_ainda .mnode__t { fill: var(--soft); }
.mnode--fora { opacity: .35; cursor: default; }
.mnode__tier { font-family: var(--mono); font-size: 7.5px; letter-spacing: .1em; text-transform: uppercase; fill: var(--mute); }
.mnode--automatizavel_agora .mnode__tier { fill: var(--red); }
.mnode--proximo_passo .mnode__tier { fill: var(--amber); }
.mlegend { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-top: .6rem; }
.mlegend__it { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--mono); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); }
.mlegend__dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.mlegend__it--agora .mlegend__dot { background: var(--red); box-shadow: 0 0 8px rgba(255, 92, 92, .7); }
.mlegend__it--passo .mlegend__dot { background: var(--amber); }
.mlegend__it--frio .mlegend__dot { background: var(--mute); }

/* T8 — complemento do lead depois de ler o diagnóstico (pedido do dono,
   2026-07-28): bloco discreto entre a leitura e o CTA da agenda. */
.mcompl {
  max-width: 480px; margin: 1.2rem auto 0; text-align: left;
  border: 1px dashed var(--line-2); border-radius: 16px;
  padding: 1.1rem 1.3rem; animation: mIn .4s var(--ease) both;
}
.mcompl__q { font-family: var(--display); font-weight: 700; font-size: 1rem; }
.mcompl__why { color: var(--soft); font-size: .88rem; line-height: 1.55; margin-top: .35rem; }
.mcompl .minput { margin-left: 0; max-width: none; }
.mcompl .mbtn { margin-top: .8rem; }
.mcompl__ok { color: var(--cyan); font-size: .92rem; }

/* T9 — upsell com agenda ao vivo — 2026-07-23 */
.mscar { font-family: var(--mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-top: .9rem; }
.mag { margin-top: 1.2rem; display: flex; flex-direction: column; gap: .6rem; }
.mdia {
  border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; text-align: left;
  background: radial-gradient(120% 140% at 50% 0%, rgba(52, 229, 196, .05), transparent 60%), var(--panel-2);
  animation: mChipIn .32s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms);
}
.mdia--extra { display: none; }
.mag--all .mdia--extra { display: block; }
.mdia__head {
  display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; width: 100%;
  background: none; border: 0; color: var(--text); font: inherit; cursor: pointer;
  padding: .9rem 1.05rem; margin: 0;
}
.mdia__dow { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }
.mdia__data { font-family: var(--display); font-weight: 700; font-size: 1.1rem; }
.mdia__slots { display: none; flex-wrap: wrap; gap: .5rem; padding: 0 1.05rem 1.05rem; }
.mdia.is-open .mdia__slots { display: flex; }
.mslot {
  font: inherit; font-size: .88rem; color: var(--text); cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 999px; background: rgba(255, 255, 255, .02);
  padding: .5rem .75rem; min-height: 40px; margin: 0;
  transition: border-color .15s, background .15s;
}
.mslot--disponivel:hover, .mslot--disponivel:focus-visible { border-color: var(--cyan); background: var(--cyan-soft); }
.mslot--indisponivel { border-style: dashed; color: var(--mute); cursor: not-allowed; opacity: .45; }
.mslot--solicitado { border-color: rgba(255, 180, 90, .45); color: var(--soft); cursor: not-allowed; opacity: .7; }

/* T8 — rascunho (leitura + tiers) */
.mleitura {
  max-width: 480px; margin: 1.2rem auto 0; text-align: left;
  border: 1px solid var(--line-2); border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 1.3rem; animation: mIn .4s var(--ease) both;
}
.mleitura__txt { color: var(--text); font-size: 1rem; line-height: 1.7; }
.mtiers { display: flex; flex-direction: column; gap: .5rem; margin-top: 1.1rem; }
.mtier {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  border: 1px solid var(--line); border-radius: 10px; padding: .6rem .8rem;
  animation: mChipIn .3s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms);
}
.mtier__area { font-weight: 600; font-size: .95rem; }
.mtier__tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.mtier--automatizavel_agora { border-color: rgba(255, 92, 92, .4); }
.mtier--automatizavel_agora .mtier__tag { color: var(--red); }
.mtier--proximo_passo { border-color: rgba(255, 180, 90, .35); }
.mtier--proximo_passo .mtier__tag { color: var(--amber); }
.mtier--nao_vale_ainda .mtier__tag { color: var(--mute); }

/* saída dos fechos: link de volta ao site (anchor com cara de botão) */
.mvoltar { display: inline-block; text-decoration: none; margin-top: 1.2rem; text-align: center; }

/* avisos de rede */
.mnote { margin: 1.2rem auto 0; max-width: 40ch; }
.mnote__t { color: var(--soft); font-size: .95rem; line-height: 1.55; }

/* ---- saída discreta (todas as telas) + confirmação — 2026-07-27 ----------- */
.mtop__sair {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--mute); text-decoration: none; padding: .5rem .2rem .5rem .8rem;
}
.mtop__sair:hover, .mtop__sair:focus-visible { color: var(--soft); }
.mconf {
  position: fixed; inset: 0; z-index: 70; background: rgba(3, 5, 10, .6); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 1.2rem;
}
.mconf__card {
  width: 100%; max-width: 380px; text-align: center;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line-2); border-radius: 16px;
  padding: 1.4rem 1.3rem 1.3rem;
  box-shadow: 0 18px 60px -20px rgba(0, 0, 0, .8);
  animation: mIn .3s var(--ease) both;
}
.mconf__t { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: .5rem; }
.mconf__p { color: var(--soft); font-size: .92rem; line-height: 1.55; margin-bottom: 1.1rem; }
.mconf__card .mbtn { display: block; width: 100%; margin-top: .55rem; }

/* ---- T5 — card do enriquecimento por CNPJ (momento-demo) — 2026-07-27 ----- */
.mcnpj {
  max-width: 46ch; margin: 1.2rem auto 0; text-align: left;
  border: 1px solid rgba(52, 229, 196, .3); border-radius: 16px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 1.2rem 1.3rem; animation: mIn .4s var(--ease) both;
}
.mcnpj__razao {
  font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.3;
  margin-bottom: .8rem;
}
.mcnpj__row {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .45rem 0; border-top: 1px solid var(--line);
}
.mcnpj__k { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); padding-top: .15rem; white-space: nowrap; }
.mcnpj__v { color: var(--soft); font-size: .92rem; line-height: 1.45; text-align: right; }

/* ---- reduced motion ------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .mkicker, .mh1, .msub, .mnode, .msheet__card, .msolo, .mdone, .mchip,
  .mtela, .mcard, .mresp, .mleitura, .mtier, .mconf__card, .mcnpj { animation: none; }
  .mlink, .mlink.is-on { animation: none; stroke-dashoffset: 0; stroke-dasharray: none; }
  .mcore__pulse { animation: none; }
  .mnode.is-on .mnode__c, .mnode.is-hot .mnode__c { animation: none; }
  .mburst, .mspark { display: none; }
  .mcore.is-fed { animation: none; }
  .mglow { transition: none; }
}
