:root{
  --bg:#F8F7F4;--panel:#fff;--text:#0D182A;--muted:#667085;--line:#DDD7CC;
  --brand:#0D182A;--brand2:#071423;--gold:#D4AF37;--gold2:#C79A2B;--silver:#C0C0C0;
  --danger:#B42318;--danger-bg:#FFF4F2;--positive:#176B4D;--shadow:0 14px 38px rgba(13,24,42,.08);
  --footer-h:46px;--topbar-h:64px;
}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;padding-bottom:calc(var(--footer-h) + 18px);font-family:"Montserrat","Aptos","Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--text);min-height:100vh}a{text-decoration:none;color:inherit}button,input,select{font:inherit}.wrap{width:min(1180px,calc(100% - 30px));margin:auto}
.topbar{position:sticky;top:0;z-index:80;height:var(--topbar-h);background:#071423;border-bottom:1px solid rgba(212,175,55,.8);box-shadow:0 7px 20px rgba(13,24,42,.12)}.topbar-inner{height:100%;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:16px;color:#fff;min-width:0}.brand img{width:154px;height:49px;object-fit:contain;display:block}.brand span{font-size:14px;font-weight:700;white-space:nowrap}.topbar nav{display:flex;align-items:center;gap:16px;color:#fff;font-size:12px}.topbar nav>a:first-child{opacity:.88}.cta-link{background:var(--gold);color:var(--brand);font-weight:900;padding:10px 14px;border-radius:7px}.cta-link:hover{background:#E0BE4B}
.hero{padding:28px 0 15px;display:grid;grid-template-columns:1.45fr .7fr;gap:34px;align-items:end}.eyebrow{margin:0 0 7px;font-size:11px;text-transform:uppercase;letter-spacing:.15em;color:#7E6950;font-weight:900}.hero h1{font-size:clamp(34px,4.1vw,52px);line-height:1.02;margin:0 0 10px;max-width:760px}.hero p{font-size:15px;line-height:1.58;color:var(--muted);margin:0;max-width:830px}.hero-note{border-left:3px solid var(--gold);padding:7px 0 7px 16px;display:grid;gap:6px}.hero-note strong{font-size:18px}.hero-note span{font-size:12px;color:var(--muted);line-height:1.45}.calculator-ready .hero{display:none}
.banner{position:sticky;top:calc(var(--topbar-h) + 7px);z-index:65;background:linear-gradient(100deg,#0D182A,#15263C);color:#fff;border:1px solid rgba(212,175,55,.42);border-radius:10px;padding:14px 18px;display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center;min-height:88px;box-shadow:0 10px 28px rgba(13,24,42,.12);overflow:hidden;transition:.16s ease}.banner:before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--gold)}.banner-content{min-width:0}.banner small{font-size:10px;color:#E5C85E;text-transform:uppercase;letter-spacing:.1em;font-weight:900}.banner h2{font-size:19px;line-height:1.2;margin:3px 0 4px}.banner p{font-size:12px;margin:0;color:#E7EBF0;line-height:1.4}.banner>a{background:var(--gold);color:var(--brand);padding:10px 13px;border-radius:7px;font-size:12px;font-weight:900;white-space:nowrap}.dots{position:absolute;right:10px;bottom:6px;display:flex;gap:4px}.dots button{width:6px;height:6px;border:0;border-radius:10px;background:rgba(255,255,255,.32);padding:0}.dots button.active{width:18px;background:var(--gold)}body.compact-banner .banner{top:var(--topbar-h);min-height:48px;padding:8px 14px;border-radius:0 0 9px 9px}body.compact-banner .banner small,body.compact-banner .banner p,body.compact-banner .dots{display:none}body.compact-banner .banner h2{font-size:15px;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}body.compact-banner .banner>a{padding:8px 11px;font-size:11px}
.panel{background:var(--panel);border:1px solid var(--line);border-radius:11px;margin-top:12px;padding:17px 18px;box-shadow:var(--shadow)}.section-title{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.section-title>div{display:flex;align-items:center;gap:9px}.section-title>div>span{display:grid;place-items:center;min-width:26px;height:26px;padding:0 7px;border-radius:999px;background:var(--brand);color:var(--gold);font-size:12px;font-weight:900}.section-title h2{font-size:18px;margin:0}.section-title p{font-size:11px;color:var(--muted);margin:0}.section-title.compact{margin-top:18px;margin-bottom:10px}.subsection-title{font-size:12px;font-weight:900;color:var(--brand);margin:14px 0 8px}.subsection-title small{font-weight:500;color:var(--muted);margin-left:6px}
.grid{display:grid;gap:10px}.purchase-grid{grid-template-columns:1.15fr .9fr .9fr .9fr}.credit-grid{grid-template-columns:repeat(4,1fr)}.sale-tax-grid{grid-template-columns:1.1fr repeat(4,1fr)}.interstate-grid{grid-template-columns:repeat(4,1fr) 1.25fr}.extra-grid{grid-template-columns:repeat(5,1fr)}.ecommerce-grid{grid-template-columns:repeat(4,1fr)}.xml-sale-grid{grid-template-columns:1.1fr repeat(5,1fr)}.compact-grid{grid-template-columns:repeat(2,1fr)}
label{font-size:11px;font-weight:750;color:#47505E;display:block;min-width:0}.label-title{display:block;margin-bottom:5px;min-height:14px}.label-line{display:flex;align-items:center;gap:5px;margin-bottom:5px}.label-line .label-title{margin:0;min-height:0}label em{font-style:normal;color:#9A958B;font-weight:500;font-size:9px;margin-left:3px}input,select{width:100%;height:38px;border:1px solid #CDC7BC;border-radius:7px;background:#fff;color:var(--text);padding:0 10px;outline:none;transition:.12s}input::placeholder{color:#AAA39A}input:focus,select:focus{border-color:var(--gold2);box-shadow:0 0 0 3px rgba(212,175,55,.13)}.info-dot{border:1px solid #DFD3B4;background:#FFF8E4;color:var(--brand);border-radius:50%;width:19px;height:19px;display:grid;place-items:center;font-weight:900;font-size:11px;line-height:1;cursor:pointer;padding:0}.check-label{display:flex;align-items:center;gap:8px;height:38px;padding:0 10px;border:1px solid #E1D8C6;border-radius:7px;background:#FBF9F4}.check-label input{width:16px;height:16px;padding:0}.check-label span{font-size:11px;font-weight:750}
.access-grid{display:grid;grid-template-columns:1.05fr 1.18fr 1fr 1fr .72fr;gap:10px;align-items:start}.field-error{display:block;min-height:13px;margin-top:3px;color:var(--danger);font-size:10px;visibility:hidden}.field-invalid .field-error{visibility:visible}.field-invalid input{border-color:var(--danger);background:var(--danger-bg);box-shadow:0 0 0 3px rgba(180,35,24,.08)}.actions{margin-top:12px;display:flex;align-items:center;gap:9px;flex-wrap:wrap}.access-actions{align-items:flex-start}.muted{font-size:10.5px;color:var(--muted);line-height:1.45;max-width:700px;padding-top:4px}.msg{font-size:11px;color:var(--danger);font-weight:700;min-height:14px;margin-top:6px}.honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important}.hidden{display:none!important}
.primary,.secondary,.mode,.footer-link{border:0;border-radius:7px;cursor:pointer;font-weight:850}.primary{background:var(--brand);color:#fff;padding:10px 14px;border:1px solid rgba(212,175,55,.35)}.secondary{background:#F0ECE4;color:var(--brand);padding:9px 13px;border:1px solid #DED6C8}.modebar{margin-top:12px;display:flex;gap:5px;background:#EDE9E2;border-radius:8px;padding:4px;width:max-content;max-width:100%}.mode{padding:9px 13px;background:transparent;color:#64615C}.mode.active{background:#fff;color:var(--brand);box-shadow:0 2px 8px rgba(13,24,42,.07);border-bottom:2px solid var(--gold2)}
.purchase-summary{margin-top:12px;display:grid;grid-template-columns:repeat(3,1fr);border:1px solid var(--line);border-radius:8px;overflow:hidden}.purchase-summary>div{padding:10px 13px;border-right:1px solid var(--line)}.purchase-summary>div:last-child{border-right:0}.purchase-summary span{display:block;font-size:10px;color:var(--muted);margin-bottom:3px}.purchase-summary strong{font-size:16px}.pricing-boxes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.pricing-box{border:1px solid #DED7CA;background:#FCFBF8;border-radius:9px;padding:10px}.pricing-box span{display:block;color:var(--brand);font-weight:900;margin-bottom:6px}.pricing-box input{height:40px;font-size:16px;font-weight:800}.pricing-box small{display:block;font-size:9.5px;color:var(--muted);margin-top:5px;font-weight:500}.pricing-source{font-size:10px;color:#7A746A;margin-top:7px}.interstate-box{margin-top:10px;padding:11px 12px;background:#FAF7F0;border:1px solid #E7DCC2;border-radius:8px}.interstate-head{display:flex;gap:9px;align-items:baseline;margin-bottom:9px}.interstate-head strong{font-size:12px}.interstate-head span{font-size:10px;color:var(--muted)}.extras{margin-top:11px;border-top:1px solid var(--line);padding-top:10px}.extras summary{cursor:pointer;font-size:11.5px;font-weight:850;color:var(--brand)}.extras summary::marker{color:var(--gold2)}.ecommerce-box{margin-top:13px;padding:2px 0 0;border-top:1px solid var(--line)}
.result-groups{display:grid;gap:12px}.result-group{border:1px solid var(--line);border-radius:9px;overflow:hidden}.result-group h3{margin:0;padding:8px 11px;background:#F5F2EB;font-size:12px;color:var(--brand)}.result-grid{display:grid}.result-grid.four{grid-template-columns:repeat(4,1fr)}.result-grid.five{grid-template-columns:repeat(5,1fr)}.result-grid>div{padding:11px 12px;border-right:1px solid var(--line)}.result-grid>div:last-child{border-right:0}.result-grid span{display:block;font-size:9.5px;color:var(--muted);margin-bottom:3px}.result-grid strong{font-size:18px}.result-grid .positive strong{color:var(--positive)}.result-grid .accent{background:#FFF8E2}.result-grid .accent strong{color:var(--brand)}.result-breakdown{margin-top:11px;background:#F8F6F1;border-left:3px solid var(--gold2);border-radius:6px;padding:10px 12px;font-size:11px;line-height:1.6;color:#4D5561}.breakdown-list{display:grid;grid-template-columns:repeat(4,1fr);gap:7px 14px}.breakdown-list span{color:var(--muted)}.breakdown-list b{color:var(--brand)}
.dropzone{border:2px dashed #C9C2B4;border-radius:9px;padding:22px;text-align:center;display:grid;place-items:center;gap:3px;cursor:pointer;background:#FCFBF8}.dropzone:hover,.dropzone.drag{border-color:var(--gold2);background:#FFF9E9}.dropzone input{display:none}.dropzone strong{font-size:16px;color:var(--brand)}.dropzone span,.dropzone small{font-size:10.5px;color:var(--muted);font-weight:500}.invoice-head{display:flex;gap:7px;flex-wrap:wrap;align-items:center;padding:11px 0;border-bottom:1px solid var(--line);font-size:11px}.invoice-head strong{margin-right:3px}.invoice-pill{background:#F5F1E9;border:1px solid #E4D9C3;border-radius:999px;padding:4px 8px;color:#47505E}.xml-toolbar{display:grid;grid-template-columns:1.6fr .8fr;gap:12px;margin:12px 0}.toolbar-block{border:1px solid var(--line);border-radius:9px;padding:10px;background:#FCFBF8}.toolbar-block>strong{display:block;font-size:11.5px;margin-bottom:8px}.xml-pricing-boxes{grid-template-columns:repeat(3,1fr)}.toolbar-block .secondary{margin-top:8px}.xml-list{display:grid;gap:9px;margin-top:12px}.xml-item{border:1px solid var(--line);border-radius:9px;background:#fff;overflow:hidden}.xml-item-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:10px 12px;background:#FAF8F3;border-bottom:1px solid var(--line)}.prod-name{font-size:12px;font-weight:900}.prod-meta{font-size:9.5px;color:var(--muted);margin-top:2px}.prod-badges{display:flex;gap:4px;flex-wrap:wrap;justify-content:flex-end}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:2px 7px;font-size:9px;font-weight:850;border:1px solid #E2DAC8;background:#F7F4EC;color:#4D5561}.badge.import{background:#EEF4FF;color:#143A6D;border-color:#BFD1F4}.badge.monofasico{background:#F5F1FF;color:#5C3CA6;border-color:#D7CAF6}.badge.entry12{background:#FFF5DE;color:#7C5A06;border-color:#ECD59A}.xml-item-grid{display:grid;grid-template-columns:1.05fr 1.35fr .95fr .95fr;gap:0}.xml-item-section{padding:10px 12px;border-right:1px solid var(--line)}.xml-item-section:last-child{border-right:0}.xml-item-section h4{font-size:10px;text-transform:uppercase;letter-spacing:.04em;color:#7A746A;margin:0 0 7px}.mini-line{display:flex;justify-content:space-between;gap:8px;font-size:10px;margin:4px 0}.mini-line span{color:var(--muted)}.mini-line b{color:var(--brand)}.xml-price-fields{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.xml-price-fields label{font-size:9px}.xml-price-fields input{height:32px;padding:0 7px;font-size:11px}.xml-result-main{font-size:17px;font-weight:900;color:var(--brand)}.xml-result-sub{font-size:10px;color:var(--muted);line-height:1.5;margin-top:4px}.xml-total{display:grid;grid-template-columns:repeat(5,1fr);border:1px solid var(--line);border-radius:9px;overflow:hidden;margin-top:11px}.xml-total>div{padding:10px 11px;border-right:1px solid var(--line)}.xml-total>div:last-child{border-right:0}.xml-total span{display:block;font-size:9.5px;color:var(--muted)}.xml-total strong{font-size:16px}.profit-neg{color:var(--danger)!important}.profit-pos{color:var(--positive)!important}
footer{position:fixed;left:0;right:0;bottom:0;z-index:75;height:var(--footer-h);background:#0D182A;border-top:1px solid var(--gold2);display:flex;align-items:center;box-shadow:0 -3px 15px rgba(13,24,42,.12)}.footer-inner{display:flex;justify-content:space-between;align-items:center;gap:16px;color:#EAE7E0;font-size:9.5px}.footer-brand{display:flex;align-items:center;gap:9px}.footer-brand strong{color:var(--gold)}.footer-brand span,.footer-contact{opacity:.82}.footer-inner>div:last-child{display:flex;gap:13px;align-items:center}.footer-link{padding:0;background:transparent;color:#fff;font-size:9.5px}.footer-inner a{color:var(--gold);font-weight:750}
.cookie-banner{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--footer-h) + 8px);z-index:90;width:min(900px,calc(100% - 24px));display:flex;justify-content:space-between;align-items:center;gap:14px;background:#fff;border:1px solid #D9CFBA;border-radius:9px;padding:12px 14px;box-shadow:0 18px 45px rgba(13,24,42,.18)}.cookie-banner>div:first-child{display:grid;gap:2px}.cookie-banner strong{font-size:12px}.cookie-banner span{font-size:9.8px;color:var(--muted);line-height:1.45}.cookie-actions{display:flex;gap:7px;white-space:nowrap}.help-popover{position:fixed;z-index:100;width:min(330px,calc(100% - 28px));background:#FFFDF7;border:1px solid #E4D6B5;border-radius:11px;box-shadow:0 18px 50px rgba(13,24,42,.22);padding:15px 16px 14px 50px}.help-popover>button{position:absolute;right:8px;top:7px;border:0;background:transparent;font-size:20px;color:#6B665D;cursor:pointer}.help-icon{position:absolute;left:14px;top:14px;width:26px;height:26px;border-radius:50%;background:var(--brand);color:var(--gold);display:grid;place-items:center;font-weight:900}.help-popover p{margin:0;font-size:11px;line-height:1.5;color:#4D5561}.modal-backdrop{position:fixed;inset:0;z-index:100;background:rgba(13,24,42,.72);display:grid;place-items:center;padding:18px}.privacy-modal{width:min(690px,100%);max-height:90vh;overflow:auto;background:#fff;border-radius:12px;box-shadow:0 28px 80px rgba(0,0,0,.28);position:relative}.modal-close{position:absolute;right:11px;top:9px;border:0;background:#EEEAE1;width:30px;height:30px;border-radius:50%;font-size:20px;cursor:pointer}.privacy-head{display:flex;align-items:center;gap:14px;padding:16px 20px 13px;background:#071423;color:#fff}.privacy-head img{width:150px;height:46px;object-fit:contain}.privacy-head small{color:#E4C357;font-size:9px;font-weight:900}.privacy-head h2{font-size:18px;margin:2px 0 0}.privacy-body{padding:15px 20px;font-size:12px;line-height:1.58;color:#4A525D}.privacy-body h3{font-size:13px;color:var(--brand);margin:14px 0 3px}.privacy-body p{margin:4px 0}.privacy-body a{color:#85620D;font-weight:800}.privacy-actions{padding:0 20px 18px;display:flex;justify-content:flex-end}
@media(max-width:1050px){.purchase-grid,.credit-grid,.sale-tax-grid,.extra-grid,.ecommerce-grid,.xml-sale-grid{grid-template-columns:repeat(2,1fr)}.interstate-grid{grid-template-columns:repeat(2,1fr)}.access-grid{grid-template-columns:repeat(2,1fr)}.xml-toolbar{grid-template-columns:1fr}.xml-item-grid{grid-template-columns:repeat(2,1fr)}.xml-item-section:nth-child(2){border-right:0}.xml-item-section:nth-child(-n+2){border-bottom:1px solid var(--line)}.result-grid.five{grid-template-columns:repeat(3,1fr)}.result-grid.four{grid-template-columns:repeat(2,1fr)}.xml-total{grid-template-columns:repeat(2,1fr)}.breakdown-list{grid-template-columns:repeat(2,1fr)}}
@media(max-width:760px){:root{--topbar-h:58px;--footer-h:48px}.wrap{width:min(100% - 18px,1180px)}.brand img{width:125px;height:40px}.brand span,.topbar nav>a:first-child{display:none}.cta-link{padding:8px 10px;font-size:11px}.hero{grid-template-columns:1fr;padding-top:20px}.hero-note{display:none}.hero h1{font-size:34px}.banner{grid-template-columns:1fr;top:calc(var(--topbar-h) + 5px)}.banner>a{width:max-content}.panel{padding:14px}.section-title{align-items:flex-start;flex-direction:column}.access-grid,.purchase-grid,.credit-grid,.sale-tax-grid,.interstate-grid,.extra-grid,.ecommerce-grid,.xml-sale-grid,.pricing-boxes,.xml-pricing-boxes,.compact-grid{grid-template-columns:1fr}.purchase-summary,.result-grid.four,.result-grid.five,.xml-total,.breakdown-list{grid-template-columns:1fr}.purchase-summary>div,.result-grid>div,.xml-total>div{border-right:0;border-bottom:1px solid var(--line)}.purchase-summary>div:last-child,.result-grid>div:last-child,.xml-total>div:last-child{border-bottom:0}.modebar{width:100%}.mode{flex:1;padding:8px 7px;font-size:11px}.xml-item-grid{grid-template-columns:1fr}.xml-item-section{border-right:0;border-bottom:1px solid var(--line)}.xml-item-section:last-child{border-bottom:0}.xml-item-section:nth-child(2){border-right:0}.xml-price-fields{grid-template-columns:1fr}.footer-brand span,.footer-contact{display:none}.cookie-banner{align-items:stretch;flex-direction:column}.cookie-actions{justify-content:flex-end}.privacy-head{align-items:flex-start;flex-direction:column}.privacy-head img{width:135px}}

/* V1.7 — identidade oficial e banner detalhado */
:root{--topbar-h:72px}
.topbar{background:#071423}
.brand{gap:15px}
.brand img{
  width:245px;
  height:60px;
  object-fit:contain;
  object-position:left center;
  border-radius:0;
  display:block;
}
.brand span{font-size:14px;font-weight:700}
.banner{
  min-height:112px;
  padding:17px 20px;
  background:#0D182A;
  isolation:isolate;
}
.banner-image,.banner-overlay{
  position:absolute;
  inset:0;
  pointer-events:none;
}
.banner-image{
  z-index:-2;
  background-size:cover;
  background-position:center;
  opacity:1;
}
.banner-overlay{
  z-index:-1;
  background:linear-gradient(90deg,rgba(13,24,42,.98) 0%,rgba(13,24,42,.92) 52%,rgba(13,24,42,.48) 100%);
}
.banner-content,.banner>a,.dots{position:relative;z-index:2}
.banner-content{max-width:790px}
.banner small{font-size:11px}
.banner h2{font-size:21px;margin:4px 0 5px}
.banner p{font-size:13px;max-width:760px}
body.compact-banner .banner{
  min-height:50px;
  padding:8px 14px;
}
body.compact-banner .banner-image{opacity:.35}

@media(max-width:760px){
  :root{--topbar-h:64px}
  .brand img{width:178px;height:50px}
  .banner{min-height:104px}
}

/* V1.8 — logo oficial transparente e rodapé institucional */
:root{
  --topbar-h:68px;
  --footer-h:56px;
}
.topbar{
  height:var(--topbar-h);
  background:linear-gradient(90deg,#081323,#0D182A 55%,#0A1320);
}
.topbar-inner{
  height:100%;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.brand{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}
.brand img,
.brand-logo-wrapper{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  box-shadow:none!important;
  padding:0!important;
}
.brand img{
  width:auto!important;
  height:44px!important;
  max-width:150px;
  object-fit:contain!important;
  object-position:left center;
  display:block;
  margin:0;
}
.brand span{
  font-size:14px;
  font-weight:700;
  color:#F8F7F4;
  white-space:nowrap;
}
footer{
  min-height:var(--footer-h);
  height:auto;
  padding:6px 0;
}
.footer-inner{
  display:grid;
  grid-template-columns:1fr auto 1.55fr;
  align-items:center;
  gap:18px;
  width:100%;
  color:#EAE7E0;
  font-size:9.5px;
  line-height:1.35;
}
.footer-left,
.footer-center,
.footer-right{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.footer-left strong{
  color:var(--gold);
  white-space:nowrap;
}
.footer-left span,
.footer-center span{
  opacity:.84;
}
.footer-center{
  justify-content:center;
  white-space:nowrap;
}
.footer-right{
  justify-content:flex-end;
  flex-wrap:wrap;
  text-align:right;
}
.footer-right span{
  white-space:nowrap;
}
.footer-right a{
  color:var(--gold);
  font-weight:800;
}
.footer-link{
  padding:0;
  background:transparent;
  color:#fff;
  font-size:9.5px;
  white-space:nowrap;
}
.privacy-head img{
  width:auto;
  height:50px;
  max-width:190px;
  object-fit:contain;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
}
@media(max-width:1050px){
  .footer-inner{grid-template-columns:1fr 1fr}
  .footer-center{display:none}
  .footer-right{justify-content:flex-end}
}
@media(max-width:760px){
  :root{--topbar-h:62px;--footer-h:72px}
  .brand img{height:36px!important;max-width:122px}
  .brand span{font-size:12px}
  footer{padding:7px 0}
  .footer-inner{grid-template-columns:1fr;gap:4px;text-align:center}
  .footer-left,.footer-right{justify-content:center;text-align:center;flex-wrap:wrap}
  .footer-left span{display:none}
  .footer-right span{white-space:normal}
  .footer-link{font-size:9px}
}
