/* GERADO por scripts/gerar-tema.mjs (style.css + portal.css). Não editar à mão: node scripts/gerar-tema.mjs */

/* ===== Tema claro (suavizado) ===== */
html:not([data-theme="dark"]){--bg:#f1f4f9;--bg-soft:#f6f8fb;--accent-2:#e8f0fc}
html:not([data-theme="dark"]) body{background:linear-gradient(180deg,#f1f5fb 0%,#eef2f9 100%)}
html:not([data-theme="dark"]) .nav-wrap{background:rgba(241,245,251,0.82);border-bottom:1px solid rgba(223,230,241,0.9)}
html:not([data-theme="dark"]) .menu-btn{background:#f6f8fb}
html:not([data-theme="dark"]) .btn-secondary{background:#f6f8fb}
html:not([data-theme="dark"]) .trust-row div{background:#f6f8fb}
html:not([data-theme="dark"]) .float-card{background:#f6f8fb;border:1px solid rgba(223,230,241,0.9)}
html:not([data-theme="dark"]) .float-card span{background:#eaf1fc}
html:not([data-theme="dark"]) .logo-strip{background:#f6f8fb}
html:not([data-theme="dark"]) .feature-card{background:#f6f8fb}
html:not([data-theme="dark"]) .feature-card.featured{background:#eaf1fc}
html:not([data-theme="dark"]) .feature-card .icon{background:#eaf1fc}
html:not([data-theme="dark"]) .mock-line span{background:#d9e4fc}
html:not([data-theme="dark"]) .price-card{background:#f6f8fb}
html:not([data-theme="dark"]) .tag{background:#eaf1fc}
html:not([data-theme="dark"]) .price-card li:before{background:#eaf1fc}
html:not([data-theme="dark"]) .pricing-note{background:#f6f8fb}
html:not([data-theme="dark"]) .cta-section{background:linear-gradient(180deg,#e8f1fc 0%,#e4f5f6 100%)}
html:not([data-theme="dark"]) .contact-points span{background:rgba(246,248,251,0.9);border:1px solid rgba(223,230,241,0.8)}
html:not([data-theme="dark"]) .lead-form{background:#f6f8fb}
html:not([data-theme="dark"]) .lead-form input,
html:not([data-theme="dark"]) .lead-form select{background:#f6f8fb}
html:not([data-theme="dark"]) .form-success{background:#eaf1fc}
html:not([data-theme="dark"]) .sibling-product{background:#f6f8fb}
html:not([data-theme="dark"]) .faq-list details{background:#f6f8fb}
html:not([data-theme="dark"]) .use-case-grid article,
html:not([data-theme="dark"]) .business-cards article,
html:not([data-theme="dark"]) .security-grid article,
html:not([data-theme="dark"]) .billing-products article{background:#f6f8fb}
html:not([data-theme="dark"]) .today-panel,
html:not([data-theme="dark"]) .revenue-panel,
html:not([data-theme="dark"]) .product-shell,
html:not([data-theme="dark"]) .product-browser,
html:not([data-theme="dark"]) .billing-console{background:#f6f8fb}
html:not([data-theme="dark"]) .status-pill{background:#eaf1fc}
html:not([data-theme="dark"]) .product-browser{background:#f6f8fb}
html:not([data-theme="dark"]) .product-browser-bar{background:#f1f4fb}
html:not([data-theme="dark"]) .browser-url{background:#f6f8fb}
html:not([data-theme="dark"]) .demo-chip{background:#e7effc}
html:not([data-theme="dark"]) .product-shell{background:#f2f5fa !important}
html:not([data-theme="dark"]) .product-stats>div{background:#f6f8fb}
html:not([data-theme="dark"]) .studio-page{--accent-2:#f8eef3}
html:not([data-theme="dark"]) .studio-page .feature-card.featured{background:#f8eef3}
html:not([data-theme="dark"]) .studio-page .feature-card .icon{background:#f8eef4}
html:not([data-theme="dark"]) .studio-page .cta-section{background:linear-gradient(180deg,#f8f1f5,#f8e7ee)}
html:not([data-theme="dark"]) .business-cards article{background:#f6f8fb !important}
html:not([data-theme="dark"]) .billing-flow article{background:#f6f8fb}
html:not([data-theme="dark"]) .customer-page{background:#f1f4f9}
html:not([data-theme="dark"]) .portal-card{background:#f6f8fb}
html:not([data-theme="dark"]) .portal-form input,
html:not([data-theme="dark"]) .portal-form select,
html:not([data-theme="dark"]) #invite-url{background:#f6f8fb}
html:not([data-theme="dark"]) .portal-form input:focus,
html:not([data-theme="dark"]) .portal-form select:focus,
html:not([data-theme="dark"]) #invite-url:focus{outline:3px solid #dce9fb}
html:not([data-theme="dark"]) .portal-message{background:#ebf2fc}
html:not([data-theme="dark"]) .portal-message.error{background:#f8eef2;border-color:#f7d2d9}
html:not([data-theme="dark"]) .portal-notice{background:#f8f4e9}
html:not([data-theme="dark"]) .invoice-status{background:#f8f0dc}
html:not([data-theme="dark"]) .invoice-status.paid{background:#e3f3ee}
html:not([data-theme="dark"]) .invoice-status.review,
html:not([data-theme="dark"]) .invoice-status.refunded{background:#f8e4e8}
html:not([data-theme="dark"]) .dialog-close{background:#edf1f7}
@media (max-width:860px){
html:not([data-theme="dark"]) .nav-links{background:rgba(246,248,251,0.98)}
}
@media(max-width:1200px){
html:not([data-theme="dark"]) .nav-links{background:#f6f8fb}
}

/* ===== Tema escuro ===== */
html[data-theme="dark"]{--bg:#171d28;--bg-soft:#1b212f;--text:#d8dce8;--muted:#868fa3;--line:#2d3747;--accent-2:#151b23;--shadow:0 20px 60px rgba(0,0,0,0.26)}
html[data-theme="dark"] body{background:linear-gradient(180deg,#19212b 0%,#161c26 100%)}
html[data-theme="dark"] .nav-wrap{background:rgba(25,33,43,0.82);border-bottom:1px solid rgba(45,55,71,0.9)}
html[data-theme="dark"] .nav-links{color:#8e9cb6}
html[data-theme="dark"] .menu-btn{background:#1b212f}
html[data-theme="dark"] .btn-secondary{background:#1b212f}
html[data-theme="dark"] .eyebrow{color:#8fa0ba}
html[data-theme="dark"] .trust-row div{background:#1b212f;box-shadow:0 8px 26px rgba(0,0,0,0.18)}
html[data-theme="dark"] .dashboard-card{box-shadow:0 32px 80px rgba(0,0,0,0.6)}
html[data-theme="dark"] .dash-top small,
html[data-theme="dark"] .chart-head small{color:#7382a5}
html[data-theme="dark"] .float-card{background:#1b212f;box-shadow:0 18px 34px rgba(0,0,0,0.312);border:1px solid rgba(45,55,71,0.9)}
html[data-theme="dark"] .float-card span{background:#161b25;color:#87a8f9}
html[data-theme="dark"] .metric small,
html[data-theme="dark"] .metric em{color:#7382a5}
html[data-theme="dark"] .chart-head span{color:#7083a9}
html[data-theme="dark"] .logo-strip{background:#1b212f}
html[data-theme="dark"] .logo-strip-inner{color:#8995ae}
html[data-theme="dark"] .section-head.light p,
html[data-theme="dark"] .dark-section .step p,
html[data-theme="dark"] .dark-section .food-flow p{color:#7383a6}
html[data-theme="dark"] .feature-card{background:#1b212f;box-shadow:0 10px 26px rgba(0,0,0,0.18)}
html[data-theme="dark"] .feature-card.featured{background:#151b25}
html[data-theme="dark"] .feature-card .icon{background:#161b25}
html[data-theme="dark"] .mock-line span{background:#1d2841}
html[data-theme="dark"] .price-card{background:#1b212f;box-shadow:0 12px 28px rgba(0,0,0,0.18)}
html[data-theme="dark"] .price-card.popular{border-color:#263755}
html[data-theme="dark"] .tag{background:#151b25;color:#5e89ea}
html[data-theme="dark"] .price-card li{color:#c0c8d9}
html[data-theme="dark"] .price-card li:before{background:#151b25;color:#7098f2}
html[data-theme="dark"] .pricing-note{background:#1b212f}
html[data-theme="dark"] .cta-section{background:linear-gradient(180deg,#151b23 0%,#1c3f3d 100%)}
html[data-theme="dark"] .contact-points span{background:rgba(27,33,47,0.9);border:1px solid rgba(45,55,71,0.8)}
html[data-theme="dark"] .lead-form{background:#1b212f}
html[data-theme="dark"] .lead-form label{color:#afbacf}
html[data-theme="dark"] .lead-form input,
html[data-theme="dark"] .lead-form select{background:#1b212f}
html[data-theme="dark"] .form-success{background:#151b25;color:#4d7adb}
html[data-theme="dark"] .sibling-product{background:#1b212f}
html[data-theme="dark"] .footer-inner{color:#7e8ba2}
html[data-theme="dark"] .faq-list details{background:#1b212f}
html[data-theme="dark"] .use-case-grid article,
html[data-theme="dark"] .business-cards article,
html[data-theme="dark"] .security-grid article,
html[data-theme="dark"] .billing-products article{background:#1b212f}
html[data-theme="dark"] .today-panel,
html[data-theme="dark"] .revenue-panel,
html[data-theme="dark"] .product-shell,
html[data-theme="dark"] .product-browser,
html[data-theme="dark"] .billing-console{background:#1b212f}
html[data-theme="dark"] .status-pill{background:#161b25;color:#4d7adb}
html[data-theme="dark"] .wordmark span{color:#7ec7f8}
html[data-theme="dark"] .studio-wordmark span{color:#f296b0}
html[data-theme="dark"] .product-browser{background:#1b212f;box-shadow:0 26px 70px rgba(0,0,0,0.312)}
html[data-theme="dark"] .product-browser-bar{background:#191e2b}
html[data-theme="dark"] .traffic i{background:#303a4c}
html[data-theme="dark"] .browser-url{color:#7b879e;background:#1b212f}
html[data-theme="dark"] .demo-chip{color:#4d7adb;background:#141a23}
html[data-theme="dark"] .product-shell{background:#181e29 !important}
html[data-theme="dark"] .product-sidebar a{color:#7084a9}
html[data-theme="dark"] .product-stats>div{background:#1b212f}
html[data-theme="dark"] .product-stats span{color:#36d791}
html[data-theme="dark"] .product-stats .warn{color:#eca04c}
html[data-theme="dark"] .today-panel p span{color:#909db3}
html[data-theme="dark"] .use-case-grid article span{color:#7098f2}
html[data-theme="dark"] .studio-page{--accent-2:#26161b}
html[data-theme="dark"] .studio-page .glow-b{background:rgba(78,35,45,0.24)}
html[data-theme="dark"] .studio-page .feature-card.featured{background:#26161b}
html[data-theme="dark"] .studio-page .feature-card .icon{background:#27171b}
html[data-theme="dark"] .studio-page .cta-section{background:linear-gradient(180deg,#29181b,#3c1b23)}
html[data-theme="dark"] .studio-day-head{color:#7383a5}
html[data-theme="dark"] .appointment-list time{color:#7484a5}
html[data-theme="dark"] .appointment-list p small{color:#7785a2}
html[data-theme="dark"] .studio-kpis small{color:#7785a2}
html[data-theme="dark"] .studio-flow p{color:#7083a8 !important}
html[data-theme="dark"] .business-cards article{background:#1b212f !important}
html[data-theme="dark"] .clinic-page .dark-section .food-flow p,
html[data-theme="dark"] .food-page .dark-section .food-flow p{color:#7387a5 !important}
html[data-theme="dark"] .dark-section .security-grid p{color:#7084a9}
html[data-theme="dark"] .billing-flow article{background:#1b212f}
html[data-theme="dark"] .customer-page{background:#171d28}
html[data-theme="dark"] .portal-card{background:#1b212f}
html[data-theme="dark"] .portal-form input,
html[data-theme="dark"] .portal-form select,
html[data-theme="dark"] #invite-url{border:1px solid #364354;background:#1b212f}
html[data-theme="dark"] .portal-form input:focus,
html[data-theme="dark"] .portal-form select:focus,
html[data-theme="dark"] #invite-url:focus{outline:3px solid #1d2c41}
html[data-theme="dark"] .portal-message{border:1px solid #21344a;background:#161d26;color:#4065de}
html[data-theme="dark"] .portal-message.error{background:#271718;border-color:#461f24;color:#c49ca7}
html[data-theme="dark"] .portal-notice{background:#3c331b;border:1px solid #534325;color:#d6cdbb}
html[data-theme="dark"] .invoice-status{background:#42371e;color:#cfc6af}
html[data-theme="dark"] .invoice-status.paid{background:#1d402f;color:#bcd7c6}
html[data-theme="dark"] .invoice-status.review,
html[data-theme="dark"] .invoice-status.refunded{background:#3d1c1e;color:#c49ca7}
html[data-theme="dark"] .payment-dialog::backdrop{background:rgba(255,255,255,0.55)}
html[data-theme="dark"] .dialog-close{background:#151c23}
html[data-theme="dark"] #payment-status{color:#c49ca7}
html[data-theme="dark"] .checkout-card summary{border:1px solid #364354}
html[data-theme="dark"] .secure-card-field{border:1px solid #364354}
@media (max-width:860px){
html[data-theme="dark"] .nav-links{background:rgba(27,33,47,0.98)}
}
@media(max-width:1200px){
html[data-theme="dark"] .nav-links{background:#1b212f}
}

/* ---- complementos (não gerados) ---- */
html[data-theme="dark"]{color-scheme:dark}
html:not([data-theme="dark"]){color-scheme:light}
html[data-theme="dark"] img:not([src$=".svg"]){filter:brightness(.92)}
html[data-theme="dark"] ::selection{background:rgba(96,140,255,.35)}
html[data-theme="dark"] input,html[data-theme="dark"] select,html[data-theme="dark"] textarea{color:inherit}
html[data-theme="dark"] input::placeholder,html[data-theme="dark"] textarea::placeholder{color:#7d8aa3}
html[data-theme="dark"] dialog::backdrop{background:rgba(0,0,0,.6)}
html.tema-transicao,html.tema-transicao *,html.tema-transicao *::before,html.tema-transicao *::after{transition:background-color .25s ease,color .25s ease,border-color .25s ease,box-shadow .25s ease,fill .25s ease!important}
@media (prefers-reduced-motion:reduce){html.tema-transicao,html.tema-transicao *{transition:none!important}}

/* ---- botão de tema ---- */
.nav-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.theme-toggle{display:inline-grid;place-items:center;width:44px;height:44px;flex:0 0 auto;border-radius:14px;border:1px solid var(--line);background:var(--bg-soft,#fff);color:var(--text);cursor:pointer;padding:0;transition:transform .18s ease,box-shadow .18s ease,background .18s ease}
.theme-toggle:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(15,27,61,.10)}
.theme-toggle:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.theme-toggle svg{width:20px;height:20px;display:block}
.theme-toggle .tema-sol{display:none}
html[data-theme="dark"] .theme-toggle .tema-sol{display:block}
html[data-theme="dark"] .theme-toggle .tema-lua{display:none}
.theme-toggle.flutuante{position:fixed;right:max(18px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));z-index:80;box-shadow:0 10px 30px rgba(15,27,61,.16)}
@media (max-width:1200px){.nav-actions>.btn{display:none}}
