*{box-sizing:border-box} :root{--bg:#f5f7f8;--surface:#fff;--ink:#183332;--muted:#697b7b;--line:#e1e9e7;--accent:#087d68;--soft:#eaf6f1;--input:#fcfdfd;--bad:#b34b43;--shadow:0 8px 32px #173f3510} [data-theme=dark]{--bg:#111d20;--surface:#1b2a2d;--ink:#e4efeb;--muted:#a0b2ae;--line:#34474a;--accent:#5cdbb9;--soft:#203d36;--input:#152326;--bad:#ffaaa1;--shadow:none;color-scheme:dark}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 'Segoe UI',Arial,sans-serif}button,input,select{font:inherit}button,a,input,select,summary{ -webkit-tap-highlight-color:transparent}button{border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:9px;padding:9px 14px;cursor:pointer;font-weight:600}button:hover{border-color:var(--accent);color:var(--accent)}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid var(--accent);outline-offset:3px}header{background:var(--surface);border-bottom:1px solid var(--line);padding:22px max(5%,calc((100% - 1240px)/2));display:flex;align-items:center;justify-content:space-between;gap:20px}.brand{display:flex;gap:12px;color:var(--ink);text-decoration:none;font-size:23px;align-items:center;line-height:1.2}.logo{display:grid;place-items:center;background:var(--accent);color:var(--surface);height:44px;width:44px;border-radius:13px;font-size:32px}.brand small{display:block;font-size:9px;letter-spacing:2px;margin-top:6px;color:var(--muted)}.plus{color:var(--accent)}nav{display:flex;gap:8px}nav button{border:0;background:transparent}main{max-width:1240px;margin:auto;padding:40px 24px 0}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.eyebrow{font-size:10px;letter-spacing:1.8px;font-weight:750;color:var(--accent)}h1{font-size:36px;line-height:1.25;letter-spacing:-1px;margin:10px 0}h1 span{color:var(--accent)}p{margin:8px 0}.intro p,.local small{color:var(--muted)}.local{font-size:13px}.local>span{color:var(--accent);margin-right:6px}.local small{display:block;font-size:11px;margin-top:5px}.welcome{border:1px solid var(--line);background:var(--soft);padding:17px 22px;border-radius:12px;display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;font-size:13px}.welcome p{margin:4px 0;color:var(--muted)}.welcome button{border:0;background:transparent;font-size:24px}.workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr);gap:26px;align-items:start}.editor,.saved{padding:28px;background:var(--surface);border:1px solid var(--line);border-radius:16px;box-shadow:var(--shadow)}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:25px}h2{font-size:20px;letter-spacing:-.4px;margin:4px 0}h3{font-size:15px;margin:0}.row{display:flex;gap:16px}.grow{flex:1;min-width:0}label{display:flex;flex-direction:column;gap:7px;font-size:12px;font-weight:600;color:var(--muted)}input,select{width:100%;min-width:0;padding:11px 12px;border:1px solid var(--line);background:var(--input);color:var(--ink);border-radius:8px;outline:none}input:focus,select:focus{border-color:var(--accent);box-shadow:0 0 0 3px var(--soft)}fieldset{border:0;padding:0;margin:22px 0 0}legend{font-size:12px;color:var(--muted);font-weight:600;margin-bottom:9px}.segmented{display:flex;gap:4px;background:var(--bg);padding:5px;border:1px solid var(--line);border-radius:10px}.segmented button{flex:1;border-color:transparent;background:transparent;font-size:12px;padding:10px 5px}.segmented button.active{color:var(--accent);background:var(--surface);border-color:var(--line);box-shadow:0 2px 5px #00000008}.step{display:flex;align-items:center;gap:10px;margin:27px 0 16px}.step>span{background:var(--soft);color:var(--accent);font-size:10px;font-weight:700;border-radius:7px;padding:6px 8px}.step small{margin-left:auto;color:var(--muted);font-size:11px}.fields{display:grid;grid-template-columns:1fr 1fr;gap:16px}.help{padding:0;border-radius:50%;width:17px;height:17px;font-size:10px;line-height:15px;vertical-align:middle;color:var(--muted);margin-left:3px}.hint{color:var(--muted);font-size:11px;line-height:1.6}.conversion{margin-top:20px;border:1px dashed var(--line);padding:12px;border-radius:8px;font-size:12px}summary{cursor:pointer;color:var(--accent);font-weight:600}.conversion .fields{margin:12px 0}.goal{margin-top:16px}.actions{display:flex;gap:12px;align-items:center;margin-top:24px}.primary{background:var(--accent);color:var(--surface);border-color:var(--accent)}.primary:hover{opacity:.86;color:var(--surface)}#saveState{font-size:10px;color:var(--muted)}.results{position:sticky;top:24px}.result-card{background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--accent);padding:28px;border-radius:16px;box-shadow:var(--shadow)}.result-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:25px}.badge{font-size:10px;background:var(--soft);color:var(--accent);padding:5px 8px;border-radius:20px}#priceTitle{color:var(--muted);font-size:13px}.hero-number{font-size:42px;font-weight:750;letter-spacing:-1.5px;overflow-wrap:anywhere}.profit-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:8px;background:var(--soft);border-radius:10px;padding:18px;margin:20px 0 26px}.profit-grid span{font-size:11px;color:var(--muted);display:block}.profit-grid strong{font-size:23px;color:var(--accent);display:block;margin-top:5px;overflow-wrap:anywhere}.loss .profit-grid strong,.loss #net{color:var(--bad)}dl{margin:16px 0}dl>div{display:flex;justify-content:space-between;gap:15px;padding:8px 0;font-size:12px}dt{color:var(--muted)}dd{margin:0;font-variant-numeric:tabular-nums;text-align:right}dl .total{border-top:1px solid var(--line);margin-top:8px;padding-top:16px;font-weight:700;font-size:14px}dl .total dt{color:var(--ink)}#net{color:var(--accent)}.markup{display:flex;justify-content:space-between;gap:10px;padding:15px 0;border-top:1px solid var(--line);font-size:11px}.note{display:flex;gap:14px;padding:20px;color:var(--muted);font-size:12px}.note>span{font-size:26px;color:var(--accent)}.note strong{display:block;color:var(--ink);margin-bottom:5px}.saved{margin-top:28px}.saved .section-heading{margin-bottom:18px}.saved button{font-size:12px}#count{color:var(--muted);font-weight:400;font-size:15px}.empty{text-align:center;padding:26px;color:var(--muted);font-size:13px}.scenario{display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid var(--line);padding:18px 0}.scenario h3{font-size:14px;overflow-wrap:anywhere}.scenario small{color:var(--muted);font-size:11px}.scenario .scenario-actions{display:flex;gap:6px;flex-wrap:wrap}footer{padding:25px 0;display:flex;justify-content:space-between;font-size:10px;color:var(--muted)}dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:16px;padding:28px;max-width:460px;width:90%}dialog::backdrop{background:#0b242d88}dialog p{white-space:pre-line;font-size:14px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--surface);padding:12px 20px;border-radius:10px;display:none;z-index:10;font-size:13px}#error{color:var(--bad);background:var(--bg);border-radius:10px;padding:18px;font-size:14px}[hidden]{display:none!important}@media(max-width:850px){.workspace{grid-template-columns:1fr}.results{position:static}.local{display:none}main{padding:26px 16px 0}header{padding:18px 16px}.brand{font-size:19px}nav button{font-size:11px;padding:7px}h1{font-size:30px}.editor,.saved,.result-card{padding:22px}.saved .section-heading{align-items:flex-start;flex-direction:column}.scenario{align-items:flex-start;flex-direction:column}}@media(max-width:480px){header{align-items:flex-start;flex-direction:column;gap:12px}.row{flex-direction:column}.fields{gap:12px}.hero-number{font-size:36px}.profit-grid strong{font-size:20px}.actions{align-items:flex-start;flex-direction:column}footer{gap:12px}.segmented button{font-size:11px}}
/* Commercial identity v1.1: neutral palette and accessible touch dimensions. */

/* v1.1 — shared desktop/mobile design tokens */
:root{--bg:#f5f5f4;--surface:#ffffff;--ink:#191919;--muted:#626262;--line:#dededb;--accent:#171717;--soft:#f0f0ee;--input:#ffffff;--bad:#a62e29;--shadow:0 6px 24px #00000006;color-scheme:light}
[data-theme=dark]{--bg:#141414;--surface:#202020;--ink:#f4f4f2;--muted:#b9b9b5;--line:#41413e;--accent:#f4f4f2;--soft:#2b2b29;--input:#191919;--bad:#ffaaa3;--shadow:none;color-scheme:dark}
body{font-family:system-ui,-apple-system,'Segoe UI',sans-serif;font-size:16px;line-height:1.55}body,main,section,aside,form,fieldset,.row>*{min-width:0}button,input,select,textarea{font-size:16px}button{min-height:44px;padding:10px 14px;line-height:1.35}button:disabled{cursor:default;opacity:.5}input,select,textarea{min-height:48px}textarea{width:100%;resize:vertical;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--input);color:var(--ink);font-family:inherit}input:focus,select:focus,textarea:focus{outline:2px solid var(--accent);outline-offset:2px}header{flex-wrap:wrap}nav{flex-wrap:wrap}nav button{font-size:14px}.brand small{font-size:10px}.eyebrow{font-size:11px;letter-spacing:1.3px}h1{font-size:clamp(30px,3.2vw,42px);line-height:1.18}h2{font-size:22px}h3{font-size:17px}.local{font-size:14px}.local small{font-size:12px}.welcome{font-size:14px}.welcome button{flex-shrink:0}label,legend{font-size:14px;color:var(--ink);font-weight:600}.step small,.step>span{font-size:12px}.segmented button{font-size:14px;min-height:46px;padding:10px}.hint{font-size:13px;line-height:1.65}.conversion{font-size:14px}.conversion summary{min-height:44px;display:flex;align-items:center}.help{width:30px;height:30px;min-height:30px;line-height:26px;font-size:13px;padding:0}.profit-grid span{font-size:13px}.profit-grid strong{font-size:clamp(21px,2.2vw,28px)}.hero-number{font-size:clamp(32px,3.7vw,46px);line-height:1.2}.result-card h3{font-size:16px}.result-top{gap:10px;flex-wrap:wrap}.badge{font-size:12px}#priceTitle{font-size:14px}dl>div{font-size:14px}dl .total{font-size:16px}.markup{font-size:13px;align-items:center}.note{font-size:14px}.actions{flex-wrap:wrap}#saveState{font-size:12px}.saved button{font-size:14px}.scenario h3{font-size:16px}.scenario small{font-size:13px;display:block;line-height:1.7}.scenario>div{min-width:0}.scenario-actions{flex-shrink:0}.backup-actions{display:flex;gap:10px;flex-wrap:wrap}.backup-actions>button{min-width:164px;font-size:13px;text-transform:uppercase;letter-spacing:.4px;font-weight:650}.empty{font-size:14px}footer{font-size:12px;flex-wrap:wrap;gap:12px}dialog{max-width:540px;max-height:90dvh;overflow:auto;padding:24px}dialog p{font-size:15px}dialog .section-heading{margin-bottom:12px}dialog .actions{justify-content:flex-end}.registration-banner{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 24px;margin-bottom:16px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.registration-banner p{font-size:14px;color:var(--muted);margin:4px 0}.registration-banner button{flex-shrink:0}.update-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 26px;font-size:12px;color:var(--muted)}.update-bar button{font-size:13px}.empty-result{padding:30px 0 42px;text-align:center;color:var(--muted)}.empty-result h3{color:var(--ink);margin:16px 0 10px}.empty-result p{font-size:14px}.empty-symbol{display:inline-grid;place-items:center;width:64px;height:64px;background:var(--soft);border-radius:20px;font-size:36px;color:var(--ink)}.skip-link{position:absolute;left:16px;top:-100px;padding:12px;background:var(--surface);color:var(--ink);z-index:20}.skip-link:focus{top:12px}#toast{max-width:calc(100vw - 32px);width:max-content;font-size:14px;text-align:center}#form[aria-disabled=true]{opacity:.55}#resultContent dd,.markup strong{overflow-wrap:anywhere}.profit-grid>div{min-width:0}.workspace{grid-template-columns:minmax(0,1.3fr) minmax(340px,1fr)}
@media(max-width:1000px){.workspace{grid-template-columns:1fr}.results{position:static}.result-card{max-width:none}.local{display:none}.saved .section-heading{align-items:flex-start;flex-direction:column}.scenario{align-items:flex-start;flex-direction:column}}
@media(max-width:600px){main{padding:20px 12px 0}header{padding:16px;gap:14px}nav{gap:4px;width:100%;display:grid;grid-template-columns:1fr 1fr}nav button{text-align:center;font-size:14px;border:1px solid var(--line)}.brand{font-size:22px}.editor,.saved,.result-card{padding:20px 16px;border-radius:12px}.intro{margin-bottom:22px}.intro p{font-size:15px}.row{flex-direction:column}.fields{grid-template-columns:1fr;gap:18px}.step{margin-top:28px;flex-wrap:wrap;gap:8px}.step small{width:100%;margin-left:0}.segmented{gap:3px}.segmented button{font-size:14px;padding:9px 6px}.welcome{padding:16px;align-items:flex-start}.section-heading{gap:12px}h2{font-size:21px}.section-heading>div{min-width:0}.actions{align-items:stretch;flex-direction:column}.actions .primary{width:100%}.backup-actions{width:100%;display:grid;grid-template-columns:1fr}.backup-actions>button{width:100%;min-width:0}.saved .section-heading{width:100%}.scenario-actions{display:grid!important;grid-template-columns:1fr 1fr 1fr;width:100%;gap:6px!important}.scenario-actions button{padding:10px 6px}.registration-banner{flex-direction:column;align-items:stretch;padding:18px}.registration-banner button{width:100%}.profit-grid{padding:16px 12px;gap:12px}.result-top{margin-bottom:20px}.note{padding:18px 6px}.help{width:44px;height:44px;min-height:44px;line-height:40px;font-size:14px}dialog{padding:20px;width:calc(100% - 24px);max-height:90dvh}dialog .actions{flex-direction:column-reverse}.update-bar{align-items:flex-start;flex-direction:column}}
@media(max-width:360px){.profit-grid{grid-template-columns:1fr}.profit-grid>div+div{padding-top:12px;border-top:1px solid var(--line)}#kinds,#modes{flex-direction:column}.hero-number{font-size:34px}.markup{align-items:flex-start;flex-direction:column}.intro h1{font-size:29px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.fx-panel{margin:0 0 24px;padding:20px;border:1px solid var(--line);border-radius:16px}.fx-panel .section-heading{align-items:end}.fx-panel select{min-width:180px}.fx-panel button{margin-top:8px}.fx-panel .hint{margin:10px 0}.fx-panel details{margin-top:12px}

/* MaisNex: reuse the existing palette and controls. */
[hidden]{display:none!important}.check{flex-direction:row;align-items:flex-start;gap:12px;margin:18px 0;line-height:1.5}.check input{width:22px;min-width:22px;height:22px;margin-top:2px}#registrationForm{margin-top:16px}#registrationForm .fields{margin-bottom:16px}#registrationForm input{font-size:16px}#privacyDialog{max-width:760px}#privacyDialog p{margin:16px 0}header nav{flex-wrap:wrap}.catalog-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px;margin-top:24px}.catalog-product{padding:20px;border:1px solid var(--line);border-radius:12px;background:var(--surface)}.catalog-icon{font-size:30px;color:var(--accent)}.catalog-product p{margin:14px 0}.catalog-product a{color:var(--accent);font-weight:600}.catalog-product a:focus-visible{outline:3px solid var(--accent)}footer button{font-size:12px}#registrationFeedback{overflow-wrap:anywhere}@media(max-width:600px){button,input,select,summary{min-height:44px}.fx-panel .section-heading{flex-wrap:wrap}.scenario-actions{grid-template-columns:repeat(auto-fit,minmax(100px,1fr))!important}.scenario-actions button{overflow-wrap:anywhere}#solutionsHeading{font-size:28px}.brand{max-width:100%}header{flex-wrap:wrap}#registrationForm .check input{min-height:22px}dialog{overflow-y:auto}}

@media(max-width:600px){input,select,textarea{font-size:16px}}@media(pointer:coarse){button,input,select,summary{min-height:44px}.check input{min-height:22px}}

.catalog-featured{display:inline-block;color:var(--accent);font-size:12px;margin-bottom:12px}.catalog-product ul{padding-left:20px}.catalog-product small{display:block}#registrationFeedback{overflow-wrap:anywhere}

/* Identification is private to the existing registration dialog. */
#registrationDialog #registrationIdentity{margin:16px 0}
#registrationDialog #registrationIdentity dl{margin:0}
#registrationDialog #registrationIdentity dl>div{display:grid;grid-template-columns:64px minmax(0,1fr);gap:8px;padding:4px 0;font-size:15px}
#registrationDialog #registrationIdentity dt{color:var(--muted)}
#registrationDialog #registrationIdentity dd{text-align:left;white-space:normal;overflow-wrap:anywhere}

/* Paleta Plus e superfícies móveis do piloto. */
:root {
  --bg:#e8eff5; --surface:#fff; --ink:#20394b; --muted:#4e6275;
  --line:#b3c5d5; --accent:#15547a; --soft:#e6f0f7; --input:#f1f5f9;
  --plus-action-text:#fff; --plus-lift:0 2px 0 #aec4d7,0 6px 13px #27445f24;
  --plus-card:0 3px 0 #b8ccdb,0 8px 18px #27445f22;
}
[data-theme=dark] {
  --bg:#101722; --surface:#1d2938; --ink:#e7eff7; --muted:#afbfce;
  --line:#50667d; --accent:#9cc5db; --soft:#2e475c; --input:#101c2a;
  --plus-action-text:#183246; --plus-lift:0 2px 0 #0d1420,0 5px 9px #0509127a;
  --plus-card:0 3px 0 #0c131f,0 7px 16px #04080e82;
}
.demo-notice {margin:0 0 14px;color:var(--muted);padding:8px 12px;border-inline-start:3px solid var(--accent);background:var(--soft)}
button.primary {background:var(--accent);color:var(--plus-action-text)}
:where(button,input,select,textarea,a):focus-visible {outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:760px), (max-width:950px) and (orientation:landscape) and (pointer:coarse) {
  :is(.editor,.saved,.result-card,.catalog-product) {box-shadow:var(--plus-card)}
  button:enabled:not(.help) {box-shadow:var(--plus-lift)}
  button:enabled:active {box-shadow:none}
  nav button[aria-pressed=true],.segmented button.active {background:var(--soft);border-color:var(--accent);color:var(--ink)}
}

#assistDemo {width:min(580px,calc(100% - 24px));max-height:85dvh;overflow:auto}
#assistDemo form {margin:0}
#assistReply {background:var(--soft);padding:12px;border-inline-start:4px solid var(--accent);margin-block:12px;border-radius:8px}
#assistReply h3 {margin-block:0 6px}
#assistReply p {color:var(--muted)}
.demo-topics {display:grid;gap:8px;margin-block:12px 4px}
.demo-topics button {text-align:start;background:var(--input);box-shadow:var(--plus-lift)}
.demo-topics button[aria-pressed=true] {background:var(--soft);border-color:var(--accent)}