:root {
  --ink: #353535;
  --ink-2: #5e5e5e;
  --paper: #ffffff;
  --canvas: #f5f5f5;
  --card: #ffffff;
  --line: #e3e4e6;
  --muted: #868686;
  --lime: #8bc34a;
  --lime-deep: #629045;
  --mint: #eafce3;
  --orange: #ffb100;
  --red: #b63c38;
  --blue: #fff6e0;
  --shadow: 0 10px 28px rgba(53, 53, 53, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.store-strip { min-height: 32px; background: var(--ink); color: #fff; font-size: 10px; letter-spacing: .02em; }
.store-strip-inner { max-width: 1440px; min-height: 32px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 0 clamp(20px, 4vw, 70px); }
.store-strip-message { flex: 1; color: #d7d7d7; }
.store-strip a { color: var(--lime); font-weight: 800; text-decoration: none; }
.topbar { position: sticky; top: 0; z-index: 20; height: 76px; display: flex; align-items: center; gap: 28px; padding: 0 clamp(20px, 4vw, 70px); background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(53,53,53,.05); }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.wap-logo { width: 58px; height: auto; display: block; }
.brand-divider { width: 1px; height: 28px; background: var(--line); }
.brand-app { font-size: 17px; letter-spacing: -.5px; font-weight: 800; }
.brand-dot { color: var(--lime-deep); }
.main-nav { display: flex; gap: 4px; flex: 1; }
.nav-link, .text-button { border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 750; padding: 9px 10px; }
.nav-link:hover, .nav-link.is-active, .text-button:hover { color: var(--ink); }
.nav-link.is-active { color: var(--ink); text-decoration: underline 3px var(--lime); text-underline-offset: 7px; }
.nav-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 9px; padding: 0 5px; margin-left: 3px; background: var(--lime); color: var(--ink); font-size: 10px; }
.top-actions { display: flex; gap: 8px; }
.button { min-height: 38px; border-radius: 8px; padding: 0 14px; border: 1px solid transparent; font-size: 13px; font-weight: 760; }
.button-primary { background: var(--ink); color: white; box-shadow: 0 3px 0 #1f1f1f; transform: translateY(-2px); }
.button-primary:active { transform: translateY(1px); box-shadow: none; }
.button-quiet { background: transparent; color: var(--ink-2); }
.button-outline { background: white; border-color: var(--ink); color: var(--ink); }

main { max-width: 1440px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 70px) 60px; }
.hero { display: flex; justify-content: space-between; align-items: end; gap: 40px; padding: 64px 0 34px; }
.eyebrow { margin: 0 0 13px; color: var(--lime-deep); font-size: 10px; font-weight: 850; letter-spacing: 1.5px; }
h1, h2, p { margin-top: 0; }
h1 { max-width: 730px; margin-bottom: 16px; font-size: clamp(42px, 5vw, 74px); line-height: .98; letter-spacing: -3.1px; font-weight: 760; }
h1 em { color: #166534; font-weight: 800; }
.hero-copy { max-width: 630px; margin-bottom: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.hero-status { display: flex; gap: 10px; align-items: flex-start; width: 275px; padding: 14px 0; border-top: 1px solid var(--ink); }
.hero-status strong { display: block; font-size: 13px; }.hero-status small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.4; }
.status-pulse { width: 8px; height: 8px; flex: 0 0 auto; margin-top: 4px; border-radius: 50%; background: #78ab16; box-shadow: 0 0 0 5px rgba(120,171,22,.18); }

.scenario-strip { display: flex; align-items: center; gap: 22px; min-height: 78px; padding: 13px 18px; background: var(--ink); color: white; border-radius: 8px 8px 0 0; }
.scenario-selector { min-width: 300px; }.field-label { display: block; margin-bottom: 4px; color: #aec0b7; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .9px; }
.scenario-strip select { width: 100%; border: 0; border-bottom: 1px solid #547064; padding: 3px 24px 6px 0; background: transparent; color: white; outline: none; font-size: 15px; font-weight: 750; }.scenario-strip option { color: var(--ink); }
.scenario-meta { flex: 1; color: #bfd1c8; font-size: 12px; }.meta-separator { margin: 0 6px; color: #587064; }.scenario-actions { display: flex; }.scenario-strip .text-button { color: #e6eee9; }.scenario-strip .danger { color: #ffaea8; }

.workspace { display: grid; grid-template-columns: minmax(295px, .86fr) minmax(0, 1.5fr); background: var(--card); box-shadow: var(--shadow); }
.control-panel { padding: 30px; border-right: 1px solid var(--line); background: #fcfcfa; }.panel-heading { display: flex; gap: 12px; margin-bottom: 22px; }.panel-heading > span, .section-index { color: #71980e; font-size: 11px; font-weight: 850; letter-spacing: 1px; }.panel-heading h2, .section-title h2, .tax-settings h2 { margin: 0; font-size: 19px; letter-spacing: -.6px; }.panel-heading p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.input-group { border-top: 1px solid var(--line); }.input-group:last-child { border-bottom: 1px solid var(--line); }.input-group summary { display: flex; align-items: center; justify-content: space-between; padding: 17px 0; list-style: none; color: var(--ink); font-size: 13px; font-weight: 800; }.input-group summary::-webkit-details-marker { display: none; }.input-group[open] summary span { transform: rotate(45deg); }.input-group .input-grid { padding-bottom: 18px; }
.input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }.input-grid label { min-width: 0; }.input-grid label.full { grid-column: 1/-1; }.input-grid label > span { display: block; margin: 0 0 6px; color: var(--ink-2); font-size: 10px; font-weight: 780; line-height: 1.2; }.input-grid small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.2; }
input, select { width: 100%; height: 37px; border: 1px solid #d7ddd7; border-radius: 6px; padding: 0 10px; background: white; color: var(--ink); font-size: 12px; font-weight: 650; outline: none; }input:focus, select:focus { border-color: #77a12d; box-shadow: 0 0 0 3px rgba(174,218,75,.22); }.input-wrap { position: relative; }.input-wrap input { padding-right: 31px; }.input-wrap::after { position: absolute; right: 9px; top: 10px; color: var(--muted); font-size: 10px; font-weight: 750; pointer-events: none; }.currency::after { content: "R$"; left: 9px; right: auto; }.currency input { padding-left: 29px; padding-right: 10px; }.percent::after { content: "%"; }.days::after { content: "dias"; }
.catalog-search { margin: 4px 0 8px; }.catalog-search-label { display: block; margin: 0 0 6px; color: var(--muted); font-size: 10px; font-weight: 750; }.catalog-search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }.catalog-search-row input { min-width: 0; }.catalog-search-button, .catalog-clear-button { min-height: 37px; border: 1px solid var(--ink); border-radius: 6px; padding: 0 12px; background: var(--ink); color: white; font-size: 11px; font-weight: 800; }.catalog-clear-button { background: white; color: var(--ink); }.catalog-search small { display: block; min-height: 14px; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.3; }

.results-panel { min-width: 0; padding: 30px; background: white; }.result-hero-card { padding: 23px 24px; background: var(--ink); color: white; overflow: hidden; position: relative; }.result-hero-card::after { content: ""; position: absolute; right: -66px; bottom: -86px; width: 200px; height: 200px; border: 36px solid var(--lime); border-radius: 50%; opacity: .9; }.result-card-top, .result-card-bottom { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }.result-card-top p { margin: 0; color: #b8c9c0; font-size: 10px; font-weight: 800; letter-spacing: 1px; }.result-hero-card > strong { display: block; position: relative; z-index: 1; margin: 11px 0 18px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(42px, 5vw, 68px); line-height: .9; letter-spacing: -3px; font-weight: 500; }.result-card-bottom { color: #cae2d5; font-size: 12px; }.result-chip { border: 1px solid rgba(205,248,75,.6); border-radius: 20px; padding: 4px 8px; color: var(--lime); font-size: 10px; font-weight: 760; }.icon-button { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #5b7469; border-radius: 50%; background: transparent; color: white; font-size: 18px; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }.metric-card { min-height: 116px; padding: 16px; background: #f3f5f0; }.metric-card:nth-child(2) { background: var(--mint); }.metric-card:nth-child(3) { background: var(--blue); }.metric-card p { margin-bottom: 16px; color: var(--ink-2); font-size: 10px; font-weight: 750; }.metric-card strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 25px; line-height: 1; font-weight: 500; letter-spacing: -1px; }.metric-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }
.formula-card { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }.section-title { display: flex; justify-content: space-between; gap: 16px; align-items: center; }.section-title > div { display: flex; gap: 10px; align-items: baseline; }.waterfall { display: grid; gap: 0; margin: 19px 0 12px; border: 1px solid var(--line); }.waterfall-row { display: grid; grid-template-columns: 1fr auto; gap: 15px; padding: 11px 13px; border-bottom: 1px solid var(--line); font-size: 12px; }.waterfall-row:last-child { border-bottom: 0; background: #eef7de; font-weight: 800; }.waterfall-row span:first-child { color: var(--ink-2); }.waterfall-row.negative span:last-child { color: var(--red); }.formula-note { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.5; }
.alert-stack { display: grid; gap: 8px; margin-top: 18px; }.alert { padding: 11px 13px; border-left: 3px solid var(--orange); background: #fff6e9; color: #71401b; font-size: 11px; line-height: 1.4; }.alert.error { border-left-color: var(--red); background: #fff0ee; color: #7c2724; }

.tax-section { display: grid; grid-template-columns: .72fr 1.6fr; gap: 45px; padding: 76px 0 60px; }.tax-intro h2, .source-section h2 { margin-bottom: 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 3.5vw, 48px); line-height: .98; font-weight: 500; letter-spacing: -2px; }.tax-intro p:last-child { color: var(--ink-2); font-size: 14px; line-height: 1.6; }.tax-workbench { display: grid; grid-template-columns: minmax(190px,.75fr) minmax(0,1.25fr); align-items: stretch; box-shadow: var(--shadow); }.profile-list { display: grid; background: var(--ink); }.profile-option { width: 100%; border: 0; border-bottom: 1px solid #3d534a; padding: 14px 16px; text-align: left; background: transparent; color: #e5eee8; transition: .18s; }.profile-option:hover { background: #20362d; }.profile-option.is-selected { background: var(--lime); color: var(--ink); }.profile-option strong, .profile-option span { display: block; }.profile-option strong { font-size: 12px; }.profile-option span { margin-top: 3px; color: inherit; opacity: .75; font-size: 9px; line-height: 1.25; }.tax-settings { padding: 24px; background: white; }.tax-settings-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 22px; }.tax-settings-head > div { display: flex; gap: 10px; align-items: baseline; }.source-pill { border-radius: 20px; padding: 5px 8px; background: #f0f5e6; color: #557314; font-size: 9px; font-weight: 800; white-space: nowrap; }.tax-inputs { grid-template-columns: repeat(2, 1fr); }.official-actions { display: flex; gap: 12px; align-items: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }.official-actions span { color: var(--muted); font-size: 10px; line-height: 1.3; }

.comparison-section { margin: 0 -20px; padding: 36px 20px 42px; background: #dce5d2; }.comparison-control { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 11px; font-weight: 700; }.comparison-control select { width: 210px; height: 33px; background: rgba(255,255,255,.7); }.comparison-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 21px; }.comparison-card { padding: 15px; background: rgba(255,255,255,.7); }.comparison-card p { margin-bottom: 8px; color: var(--ink-2); font-size: 10px; font-weight: 780; }.comparison-card strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 500; letter-spacing: -1px; }.comparison-card small { display: block; margin-top: 7px; color: var(--muted); font-size: 10px; }.delta-positive { color: #427600; }.delta-negative { color: var(--red); }

.source-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 50px; padding: 68px 0 20px; }.source-copy { align-self: end; }.source-copy p { max-width: 620px; color: var(--ink-2); font-size: 14px; line-height: 1.65; }.source-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }.source-links a { border: 1px solid var(--line); border-radius: 22px; padding: 8px 11px; background: white; text-decoration: none; font-size: 11px; font-weight: 720; }.source-links a:hover { border-color: var(--ink); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 40; max-width: 320px; padding: 12px 15px; border-radius: 8px; background: var(--ink); color: white; font-size: 12px; font-weight: 700; opacity: 0; transform: translateY(16px); pointer-events: none; transition: .2s; }.toast.is-visible { opacity: 1; transform: translateY(0); }.danger { color: var(--red); }

@media (max-width: 900px) { .topbar { gap: 18px; }.main-nav { display: none; }.top-actions { margin-left: auto; }.hero { align-items: flex-start; flex-direction: column; }.hero-status { width: 100%; }.workspace, .tax-section, .source-section { grid-template-columns: 1fr; }.control-panel { border-right: 0; border-bottom: 1px solid var(--line); }.tax-workbench { grid-template-columns: 1fr; }.profile-list { grid-template-columns: repeat(2, 1fr); }.source-section { gap: 12px; }.comparison-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .store-strip-message { display: none; }.store-strip-inner { justify-content: space-between; padding: 0 16px; }.topbar { height: 62px; padding: 0 16px; gap: 8px; }.wap-logo { width: 52px; }.brand-divider { height: 24px; }.brand-app { font-size: 15px; }.button-quiet { display: none; }main { padding: 0 14px 36px; }.hero { padding: 38px 0 26px; gap: 18px; }h1 { font-size: 42px; letter-spacing: -2.1px; }.scenario-strip { flex-wrap: wrap; gap: 10px 16px; padding: 13px; }.scenario-selector { min-width: 100%; }.scenario-meta { flex: 1; }.workspace { margin: 0 -14px; }.control-panel, .results-panel { padding: 20px 14px; }.input-grid, .tax-inputs { grid-template-columns: 1fr 1fr; gap: 12px 9px; }.metrics-grid { grid-template-columns: 1fr; }.metric-card { min-height: 88px; }.result-hero-card > strong { font-size: 47px; }.tax-section { padding: 48px 0 38px; }.profile-list { grid-template-columns: 1fr; }.tax-settings { padding: 19px 14px; }.tax-settings-head { display: block; }.source-pill { display: inline-block; margin-top: 10px; }.official-actions { align-items: flex-start; flex-direction: column; }.comparison-section { margin: 0 -14px; padding: 28px 14px; }.section-title { align-items: flex-start; flex-direction: column; }.comparison-grid { grid-template-columns: 1fr 1fr; }.source-section { padding-top: 48px; }.source-links { gap: 6px; } }

@media (max-width: 600px) { .catalog-search-row { grid-template-columns: 1fr 1fr; }.catalog-search-row input { grid-column: 1 / -1; }.catalog-search-button, .catalog-clear-button { width: 100%; } }


.client-section { margin-top: 12px; padding: 34px 30px 30px; background: var(--blue); }.client-intro { max-width: 680px; margin-bottom: 24px; }.client-intro h2 { max-width: 620px; margin: 5px 0 10px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 50px); line-height: .98; letter-spacing: -1.8px; font-weight: 500; }.client-intro > p:not(.eyebrow) { max-width: 620px; color: var(--ink-2); font-size: 13px; line-height: 1.55; }.client-reference { display: inline-flex; align-items: center; gap: 12px; margin-top: 14px; padding: 9px 12px; border: 1px solid rgba(20, 47, 40, .22); background: rgba(255, 255, 255, .55); color: var(--ink-2); font-size: 11px; }.client-reference strong { color: var(--ink); font-size: 13px; }.client-workbench { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); background: white; box-shadow: var(--shadow); }.client-profile-card, .client-load-card { min-width: 0; padding: 28px; }.client-profile-card { border-right: 1px solid var(--line); }.client-input-grid { margin-top: 22px; }.client-kpi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }.client-kpi { min-height: 96px; padding: 13px; background: #f3f5f0; }.client-kpi:nth-child(2) { background: var(--mint); }.client-kpi span { display: block; color: var(--muted); font-size: 10px; font-weight: 750; }.client-kpi strong { display: block; margin-top: 12px; color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 500; }.client-kpi small { display: block; margin-top: 5px; color: var(--muted); font-size: 9px; line-height: 1.3; }.client-kpi-highlight { background: #eef7de; }.client-kpi.client-positive strong { color: #3d6c13; }.client-kpi.client-negative strong { color: var(--red); }.client-count { color: var(--muted); font-size: 11px; font-weight: 750; }.client-product-add { display: grid; grid-template-columns: minmax(180px, 1fr) minmax(220px, 1.35fr) auto; gap: 10px; align-items: end; margin-top: 22px; }.client-product-add label > span { display: block; margin-bottom: 6px; color: var(--ink-2); font-size: 10px; font-weight: 780; }.client-product-add select { min-width: 0; }.client-catalog-status { display: block; min-height: 15px; margin: 7px 0 13px; color: var(--muted); font-size: 10px; }.client-product-list { display: grid; gap: 10px; }.client-empty { padding: 22px 16px; border: 1px dashed #cfd8cf; color: var(--muted); font-size: 12px; line-height: 1.45; text-align: center; }.client-product-row { padding: 15px; border: 1px solid var(--line); background: #fcfcfa; }.client-product-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }.client-product-heading strong { display: block; color: var(--ink); font-size: 12px; line-height: 1.35; }.client-product-heading small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; line-height: 1.3; }.client-line-grid { display: grid; grid-template-columns: repeat(4, minmax(88px, 1fr)) auto; gap: 9px; align-items: end; margin-top: 14px; }.client-line-grid label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; font-weight: 750; }.client-line-grid input { height: 34px; font-size: 11px; }.client-exclusive-toggle { display: flex; align-items: center; gap: 6px; height: 34px; min-width: 92px; }.client-exclusive-toggle input { width: 15px; height: 15px; accent-color: var(--lime); }.client-exclusive-toggle span { margin: 0 !important; color: var(--ink-2) !important; font-size: 10px !important; line-height: 1.2; }.client-load-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; padding: 17px; background: var(--ink); color: white; }.client-load-summary > div { min-width: 0; }.client-load-summary span { display: block; color: #b9ccc1; font-size: 10px; font-weight: 750; }.client-load-summary strong { display: block; margin-top: 7px; color: var(--lime); font-family: Georgia, "Times New Roman", serif; font-size: 28px; font-weight: 500; }.client-load-summary small { display: block; margin-top: 6px; color: #c6d7ce; font-size: 10px; line-height: 1.35; }.client-preferred-vehicle { padding-left: 17px; border-left: 1px solid #49645a; }.client-preferred-vehicle label { display: block; max-width: 210px; }.client-preferred-vehicle select { height: 31px; margin-top: 6px; border-color: #5b7469; background: #203d32; color: white; font-size: 10px; }.client-vehicle-table { margin-top: 14px; border: 1px solid var(--line); }.client-vehicle-table-head, .client-vehicle-row { display: grid; grid-template-columns: 1fr 100px 120px; gap: 12px; align-items: center; padding: 10px 12px; font-size: 11px; }.client-vehicle-table-head { background: #f3f5f0; color: var(--muted); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; }.client-vehicle-row { border-top: 1px solid var(--line); color: var(--ink-2); }.client-vehicle-row strong { color: var(--ink); font-size: 11px; }.client-vehicle-row.is-preferred { background: #eef7de; }.client-note { margin: 16px 0 0; color: var(--ink-2); font-size: 11px; line-height: 1.5; }
@media (max-width: 1000px) { .client-workbench { grid-template-columns: 1fr; }.client-profile-card { border-right: 0; border-bottom: 1px solid var(--line); }.client-product-add { grid-template-columns: 1fr 1fr; }.client-product-add .button { grid-column: 1 / -1; justify-self: start; } }
@media (max-width: 680px) { .client-section { padding: 26px 16px 22px; }.client-profile-card, .client-load-card { padding: 22px 16px; }.client-product-add, .client-line-grid, .client-load-summary { grid-template-columns: 1fr; }.client-product-add .button { grid-column: auto; width: 100%; }.client-preferred-vehicle { padding: 15px 0 0; border-top: 1px solid #49645a; border-left: 0; }.client-preferred-vehicle label { max-width: none; }.client-vehicle-table-head, .client-vehicle-row { grid-template-columns: 1fr 75px 90px; gap: 7px; padding: 9px 8px; font-size: 10px; }.client-kpi-grid { grid-template-columns: 1fr 1fr; }.client-product-heading { gap: 8px; }.client-product-heading .text-button { flex-shrink: 0; padding: 0; } }
