/* ==========================================================================
   MayFlow — página viva: universo em toda a página, tipografia da marca,
   demonstração colorida com notebook, origem, dor, API oficial, preço e rodapé.
   ========================================================================== */

/* ---------- universo atrás da página inteira ---------- */
body { background: #01050a; }
.uv-cosmos { position: fixed; inset: 0; z-index: -1; width: 100vw; height: 100vh; pointer-events: none; }
main#topo { background: none !important; }
/* seções escuras ficam translúcidas para o universo aparecer por trás */
.eco, .dark, .valor, .plano-lanc, .cta, .api, #pratica, #may {
  background:
    radial-gradient(45% 50% at 12% 18%, rgba(25, 199, 193, 0.09), transparent 70%),
    radial-gradient(45% 50% at 88% 82%, rgba(42, 125, 225, 0.11), transparent 70%),
    rgba(2, 8, 16, 0.5) !important;
}
footer { background: rgba(1, 5, 10, 0.78) !important; }

/* ---------- tipografia da marca ---------- */
.mf-marca { font-family: "Exo 2", var(--display), sans-serif; font-weight: 800; letter-spacing: 0.005em; white-space: nowrap; }
.mf-marca .mf-flow {
  background: linear-gradient(92deg, #2fd28a 0%, #19c7c1 45%, #2a7de1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.may-marca {
  font-family: "Exo 2", var(--display), sans-serif;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.06em;
  padding-right: 0.08em;
  background: linear-gradient(92deg, #5ce1e6 0%, #8f7dff 55%, #ff6fb5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px rgba(143, 125, 255, 0.35));
}
.soft .may-marca, .soft .mf-marca { filter: none; }

/* ---------- demonstração no escuro ---------- */
#pratica { color: #eaf4ff; }
#pratica .sec-head h2 { color: #f2f8ff; }
#pratica .sec-head p { color: rgba(219, 233, 247, 0.74); }
#pratica h2 .tx { background-image: var(--tx-grad-escuro); }

/* etapas coloridas 1–4 */
#pratica .flow { margin-bottom: 52px; }
#pratica .flow-step { opacity: 0.75; }
#pratica .flow-step.on { opacity: 1; }
#pratica .flow-step:nth-child(1) { --c1: #2fd28a; --c2: #9be27c; }
#pratica .flow-step:nth-child(2) { --c1: #19c7c1; --c2: #5ce1e6; }
#pratica .flow-step:nth-child(3) { --c1: #2a7de1; --c2: #6aa8ff; }
#pratica .flow-step:nth-child(4) { --c1: #8f7dff; --c2: #ff6fb5; }
#pratica .flow-step::before {
  top: 27px;
  left: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--c1), var(--c2));
  opacity: 0.45;
}
#pratica .flow-n {
  width: 56px;
  height: 56px;
  border: 0;
  font-size: 1.35rem;
  color: #04162b;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--c1) 18%, transparent), 0 0 30px color-mix(in srgb, var(--c1) 55%, transparent);
}
#pratica .flow-step.on .flow-n { background: linear-gradient(135deg, var(--c1), var(--c2)); box-shadow: 0 0 0 8px color-mix(in srgb, var(--c1) 26%, transparent), 0 0 44px color-mix(in srgb, var(--c1) 80%, transparent); }
#pratica .flow-step h3 { color: #fff; font-size: 1.15rem; }
#pratica .flow-step h3::after { content: ""; display: block; width: 28px; height: 3px; margin-top: 8px; border-radius: 3px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
#pratica .flow-step p { color: rgba(219, 233, 247, 0.7); }

/* menu de áreas e painel em vidro escuro */
#pratica .tabs { background: rgba(6, 22, 40, 0.65); border-color: rgba(92, 225, 230, 0.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
#pratica .tab { color: rgba(219, 233, 247, 0.75); }
#pratica .tab svg { color: rgba(156, 239, 255, 0.6); }
#pratica .tab:hover { background: rgba(25, 199, 193, 0.1); color: #fff; }
#pratica .tab[aria-selected="true"] { color: #04162b; background: linear-gradient(90deg, #2fd28a, #5ce1e6); box-shadow: 0 10px 30px -10px rgba(25, 199, 193, 0.7); }
#pratica .tab[aria-selected="true"] svg { color: #04162b; }
#pratica .pane { background: rgba(6, 22, 40, 0.7); border-color: rgba(92, 225, 230, 0.16); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #eaf4ff; }
#pratica .pane h3 { color: #fff; }
#pratica .pane dl > div { background: rgba(255, 255, 255, 0.04) !important; border: 1px solid rgba(92, 225, 230, 0.14) !important; }
#pratica .pane dl > div:last-child { background: linear-gradient(135deg, rgba(47, 210, 138, 0.14), rgba(42, 125, 225, 0.1)) !important; border-color: rgba(47, 210, 138, 0.35) !important; }
#pratica .pane dt { color: #5ce1e6 !important; }
#pratica .pane dd { color: rgba(234, 244, 255, 0.86) !important; }
#pratica .legend { color: rgba(219, 233, 247, 0.65); }

/* a captura vira um notebook */
#pratica .shot { position: relative; }
#pratica .shot-frame {
  padding: 9px 9px 13px;
  border-radius: 14px 14px 4px 4px;
  background: linear-gradient(160deg, #3d4a5d 0%, #1a2231 35%, #0a0f17 100%);
  box-shadow: 0 0 0 1px rgba(205, 225, 245, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 60px -10px rgba(92, 225, 230, 0.55);
}
#pratica .shot-bar { display: none; }
#pratica .shot-view { aspect-ratio: 1366 / 768; border-radius: 4px; border: 0; }
#pratica .shot::after {
  content: "";
  display: block;
  height: 14px;
  margin: 0 -7%;
  border-radius: 2px 2px 16px 16px;
  background: linear-gradient(180deg, #c9d6e6 0%, #7b8aa0 24%, #39465a 62%, #1a2230 100%);
  box-shadow: 0 18px 30px -10px rgba(0, 0, 0, 0.85), 0 8px 30px -6px rgba(92, 225, 230, 0.4);
}
#pratica .shot::before {
  /* reentrância do notebook */
  content: "";
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 1;
  width: 16%;
  height: 6px;
  translate: -50% 0;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #5a6a80, #8b9bb0);
}
@media (prefers-reduced-motion: no-preference) {
  #pratica .pane.swap .shot-view img { animation: pv-tela 0.7s cubic-bezier(0.19, 1, 0.22, 1) both; }
  #pratica .flow-n { animation: pv-pulso 3s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 0.4s); }
  #pratica .flow-step:nth-child(2) .flow-n { --i: 1; }
  #pratica .flow-step:nth-child(3) .flow-n { --i: 2; }
  #pratica .flow-step:nth-child(4) .flow-n { --i: 3; }
}
@keyframes pv-tela { from { opacity: 0; transform: translateX(5%) scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes pv-pulso { 0%, 100% { scale: 1; } 50% { scale: 1.08; } }

.demo-prox {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 22px auto 0;
  padding: 12px 20px;
  border: 1px solid rgba(92, 225, 230, 0.5);
  border-radius: 999px;
  font: 600 0.95rem/1 var(--body);
  color: #eaf4ff;
  background: rgba(6, 22, 40, 0.7);
  box-shadow: 0 0 30px -8px rgba(92, 225, 230, 0.6);
  cursor: pointer;
  transition: background 0.3s, gap 0.4s;
}
.demo-prox:hover { background: rgba(25, 199, 193, 0.2); gap: 16px; }
.demo-prox svg { width: 18px; height: 18px; }

/* ---------- origem: frase de destaque e cartões ---------- */
#historia .quote {
  position: relative;
  padding: 26px 30px !important;
  border: 0;
  border-radius: 20px;
  font-family: var(--tx-serif, "Instrument Serif"), Georgia, serif !important;
  font-style: italic;
  font-weight: 400 !important;
  font-size: clamp(1.6rem, 2.4vw, 2.2rem) !important;
  line-height: 1.2;
  background: rgba(6, 22, 40, 0.6);
  isolation: isolate;
}
#historia .quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--pv-ang, 0deg), #2fd28a, #5ce1e6, #2a7de1, #8f7dff, #2fd28a);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
#historia .quote .mf-marca { font-style: normal; font-size: 0.82em; }
#historia .quote { -webkit-text-fill-color: initial; }
#historia .quote > :not(.mf-marca), #historia .quote { color: #fff !important; }

#historia .pillar {
  position: relative;
  padding: 28px 26px;
  border: 0;
  border-radius: 22px;
  background: rgba(6, 22, 40, 0.65);
  isolation: isolate;
  transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1), box-shadow 0.6s;
}
#historia .pillar:nth-child(1) { --c1: #2fd28a; --c2: #5ce1e6; }
#historia .pillar:nth-child(2) { --c1: #19c7c1; --c2: #2a7de1; }
#historia .pillar:nth-child(3) { --c1: #8f7dff; --c2: #ff6fb5; }
#historia .pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--c1), transparent 45%, transparent 60%, var(--c2));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
#historia .pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  border-radius: inherit;
  background: radial-gradient(70% 60% at 20% 0%, color-mix(in srgb, var(--c1) 22%, transparent), transparent 70%);
}
#historia .pillar svg {
  width: 52px;
  height: 52px;
  padding: 12px;
  border-radius: 14px;
  color: #04162b;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 0 28px color-mix(in srgb, var(--c1) 60%, transparent);
}
#historia .pillar h3 { font-size: 1.15rem; }
@media (hover: hover) {
  #historia .pillar:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c1) 70%, transparent); }
}
@media (prefers-reduced-motion: no-preference) {
  #historia .quote::before { animation: pv-gira 8s linear infinite; }
  #historia .pillar svg { animation: pv-boia 6s ease-in-out infinite; }
  #historia .pillar:nth-child(2) svg { animation-delay: -2s; }
  #historia .pillar:nth-child(3) svg { animation-delay: -4s; }
}
@property --pv-ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes pv-gira { to { --pv-ang: 360deg; } }
@keyframes pv-boia { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ---------- comparação: a dor ---------- */
.dor {
  display: grid;
  justify-items: center;
  gap: 6px;
  max-width: 900px;
  margin: 0 auto 44px;
  padding: 30px 32px;
  border-radius: 24px;
  text-align: center;
  color: #eaf4ff;
  background: radial-gradient(70% 90% at 50% 0%, rgba(25, 199, 193, 0.22), transparent 70%), linear-gradient(160deg, #0a1f3c, #061427);
  box-shadow: 0 30px 70px -36px rgba(10, 31, 60, 0.8);
}
.dor p { margin: 0; }
.dor__pergunta { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 600; line-height: 1.3; }
.dor__pergunta b { color: #ff8fa3; }
.dor__vs { font-family: var(--tx-serif, Georgia), serif; font-style: italic; font-size: 1.6rem; color: #5ce1e6; }
.dor__resposta { font-family: var(--display); font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 600; line-height: 1.3; }
.dor__resposta em { font-family: var(--tx-serif, Georgia), serif; font-weight: 400; font-size: 1.15em; background: var(--tx-grad-escuro); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.dor__resposta b { color: #7ff0bd; }

/* ---------- API oficial ---------- */
.api { color: #eaf4ff; overflow: hidden; }
.api__grade { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.api__selo { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border: 1px solid rgba(240, 207, 124, 0.5); border-radius: 999px; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #f0cf7c; background: rgba(240, 207, 124, 0.08); }
.api__selo i { width: 8px; height: 8px; border-radius: 50%; background: #f0cf7c; }
.api h2 { margin-top: 16px; color: #f2f8ff; }
.api h2 .tx { background-image: var(--tx-grad-escuro); }
.api__lead { margin: 16px 0 0; font-size: 1.08rem; line-height: 1.6; color: rgba(219, 233, 247, 0.8); max-width: 56ch; }
.api__lista { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; }
.api__lista li { position: relative; padding-left: 30px; color: rgba(234, 244, 255, 0.88); }
.api__lista li::before { content: "✓"; position: absolute; left: 0; top: 0.1em; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 0.72rem; font-weight: 700; color: #04162b; background: linear-gradient(135deg, #2fd28a, #5ce1e6); }
.api__lista b { color: #fff; }
.api__nota { margin: 18px 0 0; font-size: 0.82rem; color: rgba(240, 207, 124, 0.85); }
.api__cena { position: relative; display: grid; place-items: center; min-height: 460px; }
.api__celular {
  position: relative;
  z-index: 2;
  width: 250px;
  aspect-ratio: 9 / 18.5;
  padding: 10px;
  border-radius: 38px;
  background: linear-gradient(160deg, #3d4a5d, #0b111a);
  box-shadow: 0 0 0 1px rgba(205, 225, 245, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 80px -10px rgba(47, 210, 138, 0.55);
}
.api__tela { height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 14px 12px; border-radius: 30px; background: linear-gradient(180deg, #0b1a24, #071016); overflow: hidden; }
.api__topo { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.78rem; color: #eaf4ff; }
.api__topo img { width: 30px; height: 30px; }
.api__topo small { display: block; color: #7ff0bd; font-size: 0.66rem; }
.api__msg { max-width: 88%; padding: 9px 11px; border-radius: 12px 12px 12px 4px; font-size: 0.74rem; line-height: 1.35; color: #eaf4ff; background: #1b2a33; }
.api__msg--3 { align-self: flex-end; border-radius: 12px 12px 4px 12px; color: #04162b; background: linear-gradient(135deg, #2fd28a, #5ce1e6); }
.api__onda { position: absolute; z-index: 1; width: 300px; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(92, 225, 230, 0.4); }
@media (prefers-reduced-motion: no-preference) {
  .api__onda { animation: pv-onda 4.5s ease-out infinite; }
  .api__onda--2 { animation-delay: 1.5s; }
  .api__onda--3 { animation-delay: 3s; }
  .api__msg { animation: pv-msg 9s ease-in-out infinite both; }
  .api__msg--2 { animation-delay: 1.2s; }
  .api__msg--3 { animation-delay: 2.4s; }
  .api__celular { animation: pv-boia 7s ease-in-out infinite; }
}
@keyframes pv-onda { from { scale: 0.6; opacity: 0.9; } to { scale: 1.9; opacity: 0; } }
@keyframes pv-msg { 0% { opacity: 0; translate: 0 12px; } 8%, 85% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }

/* ---------- preço ---------- */
.pl__de { margin: 18px 0 0; font-size: 1rem; color: rgba(219, 233, 247, 0.7); }
.pl__de s { color: #ff8fa3; text-decoration-thickness: 2px; }
.pl .pl__preco { margin-top: 4px; }
.pl__vagas { margin: 12px auto 0; max-width: 40ch; padding: 10px 14px; border-radius: 12px; font-size: 0.86rem; color: #f6e2ae; background: rgba(240, 207, 124, 0.1); border: 1px solid rgba(240, 207, 124, 0.35); }
.pl__vagas b { color: #ffd98e; }

/* ---------- rodapé: logo oficial com circuitos acendendo ---------- */
.foot-logo--viva { position: relative; max-width: 360px; background: none !important; padding: 0 !important; box-shadow: none !important; }
.foot-logo--viva img { display: block; width: 100%; height: auto; filter: drop-shadow(0 0 18px rgba(92, 225, 230, 0.35)); }
.foot-logo__brilho {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 0 40%, rgba(255, 255, 255, 0.95) 48%, rgba(170, 255, 240, 0.8) 52%, transparent 60% 100%);
  background-size: 260% 100%;
  -webkit-mask: url("mayflow-logo-circuito.webp") center / 100% 100% no-repeat;
  mask: url("mayflow-logo-circuito.webp") center / 100% 100% no-repeat;
  mix-blend-mode: screen;
}
@media (prefers-reduced-motion: no-preference) { .foot-logo__brilho { animation: hd-varre 6s ease-in-out infinite; } }
@keyframes hd-varre { 0% { background-position: 120% 0; } 70%, 100% { background-position: -20% 0; } }

/* ---------- responsivo ---------- */
@media (max-width: 940px) {
  .api__grade { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .api__cena { min-height: 420px; }
}
@media (max-width: 760px) {
  #pratica .flow-n { width: 46px; height: 46px; font-size: 1.1rem; }
  .dor { padding: 24px 18px; }
}
/* a marca nunca quebra em blocos, mesmo dentro de regras antigas de "span" */
.mf-marca, .mf-marca > span, .may-marca { display: inline !important; margin: 0 !important; font-size: inherit !important; }
.mf-marca > span { color: inherit; }
.mf-marca > .mf-flow { color: transparent; }
/* "Conheça a MAY" com mais presença */
#may h2 { font-size: clamp(2.3rem, 4.4vw, 3.6rem) !important; line-height: 1.05; }
#may h2 .may-marca { font-size: 1.15em !important; }
