/* DM Flow — extras sobre o build original:
   1) cards clicáveis em "Nossas Soluções"
   2) botão de tema claro/escuro
   3) tema claro (padrão) para o site principal; o tema escuro é o visual original do build */

/* ---------- 1. Cards das soluções ---------- */
.dmf-card{display:flex;flex-direction:column;color:inherit;text-decoration:none;cursor:pointer;transition:border-color .3s,background-color .3s,box-shadow .3s}
.dmf-card:hover{border-color:#8b5cf666;background:#8b5cf60f}
.dmf-more{margin-top:auto;padding-top:1.5rem;font-size:.875rem;font-weight:600;color:#8b5cf6}
.dmf-card:hover .dmf-more{text-decoration:underline;text-underline-offset:4px}

/* ---------- 2. Botão de tema ---------- */
.dmf-theme{height:40px;flex:none;gap:.5rem;padding:0 .9rem;border-radius:999px;border:1px solid #ffffff26;background:transparent;color:inherit;font:600 .8rem/1 Inter,ui-sans-serif,system-ui,sans-serif;white-space:nowrap;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background-color .2s,border-color .2s}
.dmf-theme:after{content:"Modo escuro"}
:root[data-theme=dark] .dmf-theme:after{content:"Modo claro"}
@media (max-width:380px){.dmf-theme{width:40px;padding:0}.dmf-theme:after{display:none}}
.dmf-theme:hover{background:#ffffff14}
.dmf-theme:focus-visible{outline:2px solid #8b5cf6;outline-offset:2px}
.dmf-theme:before{content:"";width:18px;height:18px;background:currentColor;
  /* lua: mostrada no tema claro (clique leva ao escuro) */
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E") center/contain no-repeat;
          mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3a6 6 0 0 0 9 9 9 9 0 1 1-9-9Z'/%3E%3C/svg%3E") center/contain no-repeat}
:root[data-theme=dark] .dmf-theme:before{
  /* sol: mostrado no tema escuro (clique leva ao claro) */
  -webkit-mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E");
          mask-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Cpath d='M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41'/%3E%3C/svg%3E")}
:root:not([data-theme=dark]) .dmf-theme{border-color:#00000026}
:root:not([data-theme=dark]) .dmf-theme:hover{background:#0000000d}

/* ---------- 3. Tema claro do site principal ---------- */
:root:not([data-theme=dark]){color-scheme:light}
:root[data-theme=dark]{color-scheme:dark}
:root:not([data-theme=dark]) body{background-color:#f7f7fb;color:#0a0a0a}
body{transition:background-color .3s,color .3s}

/* Textos */
:root:not([data-theme=dark]) .text-white{color:#0a0a0a}
:root:not([data-theme=dark]) .text-white\/90{color:#0a0a0ae6}
:root:not([data-theme=dark]) .text-white\/70{color:#3f3f46}
:root:not([data-theme=dark]) .text-white\/60{color:#52525b}
:root:not([data-theme=dark]) .text-white\/50{color:#52525b}
:root:not([data-theme=dark]) .text-white\/40{color:#71717a}
:root:not([data-theme=dark]) .text-white\/20{color:#00000040}
:root:not([data-theme=dark]) .text-white\/10{color:#00000026}
:root:not([data-theme=dark]) .hover\:text-white:hover,
:root:not([data-theme=dark]) .group:hover .group-hover\:text-white{color:#0a0a0a}

/* Fundos e bordas */
:root:not([data-theme=dark]) .bg-white\/5{background-color:#0000000a}
:root:not([data-theme=dark]) .bg-white\/10{background-color:#00000012}
:root:not([data-theme=dark]) .hover\:bg-white\/5:hover{background-color:#0000000a}
:root:not([data-theme=dark]) .hover\:bg-white\/10:hover{background-color:#00000012}
:root:not([data-theme=dark]) .border-white\/5{border-color:#0000000d}
:root:not([data-theme=dark]) .border-white\/10{border-color:#00000017}
:root:not([data-theme=dark]) .border-white\/20{border-color:#00000026}
:root:not([data-theme=dark]) .hover\:border-white\/10:hover{border-color:#00000017}
:root:not([data-theme=dark]) .bg-zinc-950{background-color:#efeff5}
:root:not([data-theme=dark]) .bg-zinc-950\/50{background-color:#efeff599}
:root:not([data-theme=dark]) .bg-zinc-900\/50{background-color:#e4e4e799}
:root:not([data-theme=dark]) .bg-zinc-800{background-color:#e4e4e7}
:root:not([data-theme=dark]) .glass-card{background:#ffffffcc;border-color:#0000000f;box-shadow:0 1px 2px #0000000a,0 12px 32px -16px #00000026}

/* Menu: barra fixa e menu mobile claros (o fundo escuro do modal continua escuro) */
:root:not([data-theme=dark]) nav .bg-black\/80,
:root:not([data-theme=dark]) nav.bg-black\/80{background-color:#ffffffd9}
:root:not([data-theme=dark]) .bg-black\/95{background-color:#fffffff2}
:root:not([data-theme=dark]) .bg-black\/80:not(nav){background-color:#0000008c}

/* Exceções que ficam iguais nos dois temas */
/* - botões roxos e o botão preto da faixa final mantêm texto branco */
:root:not([data-theme=dark]) .bg-brand-primary.text-white,
:root:not([data-theme=dark]) .bg-brand-primary .text-white,
:root:not([data-theme=dark]) button.bg-brand-primary,
:root:not([data-theme=dark]) a.bg-brand-primary,
:root:not([data-theme=dark]) .bg-black.text-white{color:#fff}
/* - celular simulando o WhatsApp continua escuro, como um app real */
:root:not([data-theme=dark]) .bg-\[\#0b141a\]{color:#fff}
:root:not([data-theme=dark]) .bg-\[\#0b141a\] .text-white{color:#fff}
:root:not([data-theme=dark]) .bg-\[\#0b141a\] .text-white\/90{color:#ffffffe6}
:root:not([data-theme=dark]) .bg-\[\#0b141a\] .text-white\/70{color:#ffffffb3}
:root:not([data-theme=dark]) .bg-\[\#0b141a\] .text-white\/60{color:#fff9}
:root:not([data-theme=dark]) .bg-\[\#0b141a\] .text-white\/50{color:#ffffff80}
:root:not([data-theme=dark]) .bg-\[\#0b141a\] .text-white\/40{color:#fff6}
:root:not([data-theme=dark]) .bg-\[\#0b141a\] .bg-white\/5{background-color:#ffffff0d}
:root:not([data-theme=dark]) .bg-\[\#0b141a\] .bg-white\/10{background-color:#ffffff1a}
:root:not([data-theme=dark]) .bg-\[\#0b141a\] .border-white\/5,
:root:not([data-theme=dark]) .bg-\[\#0b141a\].border-white\/5{border-color:#ffffff0d}
:root:not([data-theme=dark]) .bg-\[\#0b141a\] .border-white\/10{border-color:#ffffff1a}
:root:not([data-theme=dark]) .bg-\[\#0b141a\] .bg-zinc-800{background-color:#27272a}

/* Logo "DM Flow" clicável (volta ao início) */
.dmf-home{color:inherit;text-decoration:none;cursor:pointer}
.dmf-home:focus-visible{outline:2px solid #8b5cf6;outline-offset:4px;border-radius:8px}
.dmf-home span{white-space:nowrap}
