/* Fontes hospedadas no próprio site (licença SIL OFL, veja fonts/). */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/bricolage-grotesque.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("fonts/plus-jakarta-sans.woff2") format("woff2-variations");
}

:root {
  color-scheme: light;
  --canvas: #f7f6fb;
  --white: #fff;
  --ink: #110e33;
  --muted: #59577a;
  --line: #e5e2f2;
  --brand: #5a3ef0;
  --brand-dark: #3f26cf;
  --brand-tint: #f0ecff;
  --night: #120d38;
  --lime: #c9f26b;
  --lime-dark: #2f5a0c;
  --coral: #ff9f82;
  --radius: 22px;
  --shadow: 0 1px 2px #110e330a, 0 10px 30px #2b1d8f12;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  font-family: "Plus Jakarta Sans", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 88px; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
.wrap { width: min(1152px, calc(100% - 3rem)); margin-inline: auto; }
h1, h2, h3, p, dl { margin: 0; }
h1, h2, h3 { font-family: var(--display); }
h2, h3 { letter-spacing: -.025em; line-height: 1.12; font-weight: 700; }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.05rem); }
h3 { font-size: 1.15rem; }
h1 { font-size: clamp(2.6rem, 5.8vw, 4.9rem); font-weight: 750; letter-spacing: -.04em; line-height: 1; text-wrap: balance; }
h1 em { font-style: normal; color: var(--brand); }

/* Topo */
.top { position: sticky; top: 0; z-index: 20; background: #ffffffd9; backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid #e5e2f2b3; }
.top-inner, .spread { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.top-inner { min-height: 70px; }
.brand { display: flex; align-items: center; color: var(--ink); text-decoration: none; font-family: var(--display); font-size: 1.22rem; letter-spacing: -.035em; font-weight: 750; white-space: nowrap; }
.brand-suffix { color: var(--brand); margin-left: .22em; }
.mark { display: flex; align-items: end; justify-content: center; gap: 3px; width: 34px; height: 34px; padding: 8px; margin-right: 10px; border-radius: 10px; background: linear-gradient(145deg, #7a5cff, var(--brand-dark)); box-shadow: 0 4px 12px #5a3ef040; }
.mark i { width: 4px; height: 7px; background: #fff; border-radius: 2px; }
.mark i:nth-child(2) { height: 11px; opacity: .85; }
.mark i:nth-child(3) { height: 16px; background: var(--lime); }
.top-links { display: flex; gap: 4px; }
.top-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: .9rem; font-weight: 650; text-decoration: none; white-space: nowrap; transition: color .15s, background .15s; }
.top-links a:hover { color: var(--ink); background: #f1effa; }
.top-links a[aria-current="page"] { color: var(--brand-dark); background: var(--brand-tint); }
.entry-link { margin-top: 14px; color: var(--muted); font-size: .9rem; }

/* Faixa de abertura (página inicial) */
.hero-band { position: relative; overflow: hidden; color: #fff; background: var(--night); }
.hero-band::before { content: ""; position: absolute; inset: 0; background:
    radial-gradient(60% 70% at 85% 10%, #5a3ef0aa, transparent 70%),
    radial-gradient(45% 60% at 0% 100%, #2c6bff55, transparent 70%),
    linear-gradient(#ffffff0a 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, #ffffff0a 1px, transparent 1px) 0 0 / 44px 44px;
  mask-image: linear-gradient(#000 60%, transparent); pointer-events: none; }
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding-block: clamp(44px, 7vw, 96px) clamp(48px, 7vw, 100px);
}
.hero h1 { color: #fff; }
.hero h1 em { color: var(--lime); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 6px 12px; border-radius: 999px; background: #ffffff14; border: 1px solid #ffffff26; color: #e6e3ff; font-size: .84rem; font-weight: 650; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px #c9f26b33; }
.eyebrow.light { background: var(--brand-tint); border-color: #ddd5ff; color: var(--brand-dark); }
.eyebrow.light::before { background: var(--brand); box-shadow: 0 0 0 4px #5a3ef026; }
.hero-copy > p { max-width: 46ch; margin-top: 22px; color: #d2cff0; font-size: clamp(1.02rem, 1.5vw, 1.15rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 22px 0 0; padding: 0; list-style: none; color: #c9c5ec; font-size: .88rem; }
.hero-checks li { display: flex; align-items: center; gap: 7px; }
.hero-checks li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23110e33' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.hero .download-help { margin-top: 18px; }
.hero .download-help summary { color: #fff; }
.hero .download-help p { color: #d2cff0; }
.hero .download-help a { color: var(--lime); }

/* Cartão de exemplo */
.receipt-card {
  position: relative;
  min-width: 0;
  color: var(--ink);
  background: var(--white);
  padding: clamp(20px, 3vw, 30px);
  border-radius: 26px;
  box-shadow: 0 30px 60px #05031a59, 0 0 0 1px #ffffff1f;
  transform: rotate(1.2deg);
}
.receipt-card::after { content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1; border-radius: 26px; background: #ffffff14; border: 1px solid #ffffff1f; }
.example-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.example-top h2 { font-family: inherit; font-size: .95rem; letter-spacing: 0; font-weight: 700; }
.example-top h2 small { display: block; color: var(--muted); font-size: .8rem; font-weight: 550; }
.tag { display: inline-flex; align-items: center; max-width: 100%; padding: 4px 10px; border: 1px solid #d4e4dc; border-radius: 999px; background: #e6f5ee; color: #236348; font-size: .78rem; line-height: 1.35; font-weight: 700; }
.receipt-card .tag { background: var(--brand-tint); color: var(--brand-dark); border-color: #ddd5ff; }
.receipt { margin-top: 14px; }
.receipt div, #order-details dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; }
.receipt div + div { border-top: 1px dashed var(--line); }
.receipt dt { color: var(--muted); font-size: .92rem; }
.receipt .receipt-total { border-top: 1px solid var(--ink) !important; }
.receipt .receipt-total dt, .receipt .receipt-total dd { color: var(--ink); font-weight: 800; }
.receipt .debit { color: #b4432a; }
dd { margin: 0; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.receipt dd { white-space: nowrap; }
.receipt-result { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--night); color: #fff; }
.receipt-result span { color: #d2cff0; font-size: .88rem; font-weight: 650; }
.receipt-result strong { color: var(--lime); font-family: var(--display); font-size: clamp(1.8rem, 3.4vw, 2.4rem); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.receipt-bar { display: flex; gap: 3px; height: 10px; margin-top: 16px; }
.receipt-bar span { border-radius: 4px; }
.receipt-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; color: var(--muted); font-size: .78rem; font-weight: 600; }
.receipt-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; background: var(--c); }
.debit-key { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; background: var(--coral); }

/* Ferramentas (página inicial) */
.section-head { max-width: 640px; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 1.04rem; }
.tools { margin-top: clamp(48px, 7vw, 88px); }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 26px; }
.tool-card { position: relative; display: flex; flex-direction: column; align-items: flex-start; min-width: 0; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s, border-color .2s; }
.tool-card:hover { transform: translateY(-3px); border-color: #d3cbff; box-shadow: 0 1px 2px #110e330a, 0 18px 40px #2b1d8f1f; }
.tool-card h3 { margin-top: 18px; font-size: 1.25rem; }
.tool-card p { flex: 1; margin: 8px 0 20px; color: var(--muted); font-size: .95rem; }
.tool-card .tag { position: absolute; top: 24px; right: 24px; }
.tool-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-tint) center / 24px no-repeat; }
.icon-calc { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f26cf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='3' width='14' height='18' rx='2.5'/%3E%3Cpath d='M8.5 7h7M8.5 11h.01M12 11h.01M15.5 11h.01M8.5 14.5h.01M12 14.5h.01M15.5 14.5h.01M8.5 18h.01M12 18h3.5'/%3E%3C/svg%3E"); }
.icon-tag { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f26cf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4a1 1 0 0 1 1-1h8l9 9-9 9z'/%3E%3Ccircle cx='8' cy='8' r='1.5'/%3E%3C/svg%3E"); }
.icon-chart { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f26cf' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E"); }
.arrow-link { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.arrow-link::after { content: "→"; transition: transform .15s; }
.arrow-link:hover::after { transform: translateX(3px); }
.download-help { margin-top: 14px; }
.download-help p, .download-help a { font-size: .9rem; }
.download-help p { margin: 8px 0; color: var(--muted); }

/* Botões e campos */
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
a, summary, .link-button { color: var(--brand-dark); font-weight: 700; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.primary, .secondary, .ghost { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; min-height: 46px; padding: 10px 20px; border: 1px solid transparent; border-radius: 12px; font-size: .94rem; font-weight: 700; text-decoration: none; transition: background .15s, transform .15s, box-shadow .15s, border-color .15s; }
.primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px #5a3ef042, inset 0 1px #ffffff33; }
.primary:hover { background: var(--brand-dark); transform: translateY(-1px); }
.primary.lime { background: var(--lime); color: var(--ink); box-shadow: 0 8px 24px #c9f26b40, inset 0 1px #ffffff80; }
.primary.lime:hover { background: #d7f78c; }
.primary.big, .ghost.big { min-height: 54px; padding-inline: 26px; font-size: 1rem; border-radius: 14px; }
.secondary { background: var(--white); color: var(--brand-dark); border-color: #d3cbff; }
.secondary:hover, .secondary[aria-expanded="true"] { background: var(--brand-tint); border-color: var(--brand); }
.ghost { color: #fff; border-color: #ffffff40; background: #ffffff0f; }
.ghost:hover { background: #ffffff1f; border-color: #ffffff73; }
button:disabled { cursor: default; opacity: .5; transform: none; }
.link-button { border: 0; background: transparent; padding: 6px 0; font-size: .9rem; text-decoration: underline; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

.panel { margin-top: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(17px, 3vw, 31px); box-shadow: var(--shadow); }
.panel p { color: var(--muted); }
.report-head { align-items: flex-start; }
.report-head p, #file-info { margin-top: 7px; overflow-wrap: anywhere; }
.fields, .source-controls, .cost-fields, .overview { display: grid; gap: 14px; margin-block: 16px; }
.fields, .cost-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.source-controls, .order-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.overview { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.overview.order-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
label { display: block; min-width: 0; font-weight: 700; font-size: .9rem; }
select, input:not([type="file"]):not([type="checkbox"]) {
  display: block;
  width: 100%;
  min-height: 45px;
  margin-top: 5px;
  padding: 9px 11px;
  border: 1px solid #d9d4ec;
  border-radius: 11px;
  background: #fbfaff;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 500;
}
input::placeholder { color: #75738f; opacity: 1; }
select:hover, input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):hover { border-color: #bdb3ec; }
select:focus, input:not([type="file"]):not([type="checkbox"]):not([type="radio"]):focus { border-color: var(--brand); background: #fff; outline: none; box-shadow: 0 0 0 4px #5a3ef01f; }
select {
  appearance: none;
  padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 49%, #535e78 50%), linear-gradient(135deg, #535e78 49%, transparent 50%);
  background-position: right 16px center, right 11px center;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
input[type="checkbox"] { accent-color: var(--brand); }
.map-options { margin: 14px 0; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line); background: #fafbfe; }
.map-options > p { margin-block: 10px; }
.map-options .check { display: flex; align-items: flex-start; gap: 8px; margin-top: 14px; }
.map-options .check input { flex: none; margin-top: 5px; }
.notice, .note, .order-issue { padding: 11px 13px; border-radius: 8px; color: #6d4019 !important; background: #fff0df; }
.notice { margin-top: 18px; }
.order-issue { margin-block: 11px; }
.error { margin-block: 10px; color: #962d29 !important; }
[aria-invalid="true"] { border-color: #962d29 !important; }

.import-status { margin-top: 16px; padding: 14px 16px; border: 1px solid var(--line); border-left-width: 5px; border-radius: 11px; background: #f6f4ff; }
.import-status:focus { outline: none; }
.import-status strong { display: block; font-size: 1.02rem; line-height: 1.35; }
.import-status p { margin-top: 5px; font-size: .93rem; }
.import-ok { border-color: #cdeadd; border-left-color: #2f8a62; background: #effaf4; }
.import-ok strong { color: #176345; }
.import-warn { border-color: #efdcb3; border-left-color: #c98a1b; background: #fff8ea; }
.import-warn strong { color: #6b440d; }
.import-block { border-color: #d4d5f0; border-left-color: var(--brand); background: var(--brand-tint); }
.import-block strong { color: var(--brand-dark); }
.import-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 12px; }
.import-counts .metric strong { font-size: clamp(1.15rem, 2.4vw, 1.6rem); }
.preview { margin-top: 16px; }
.preview h3 { font-size: 1rem; }
.preview-caption { margin-top: 4px; font-size: .88rem; }
.preview-scroll { margin-top: 9px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.preview table { width: 100%; border-collapse: collapse; font-size: .87rem; }
.preview th, .preview td { padding: 7px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.preview th { background: #f6f4ff; font-weight: 750; vertical-align: bottom; }
.preview th small { display: block; color: var(--muted); font-weight: 500; font-size: .76rem; }
.preview tbody tr:last-child td { border-bottom: 0; }
.preview td.money { text-align: right; font-variant-numeric: tabular-nums; }
.preview td.line { color: var(--muted); font-variant-numeric: tabular-nums; }
.preview td.blank { color: var(--muted); font-style: italic; }
.preview td.invalid { color: #962d29; font-weight: 700; }
.repeat-check { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; padding: 11px 13px; border-radius: 10px; background: #fff8ea; font-weight: 600; }
.repeat-check input { flex: none; margin-top: 5px; }
#map-submit { margin-top: 4px; }

.manual-layout { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(230px, 1fr); gap: 20px; margin-top: 19px; }
.manual-layout #manual-form > .fields { margin-top: 0; }
.manual-layout #manual-help { font-size: .91rem; }
.manual-actions { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.manual-result-panel { align-self: start; border-radius: 20px; padding: 20px; background-image: radial-gradient(80% 60% at 100% 0%, #5a3ef066, transparent 70%); background: var(--night); color: #fff; }
.manual-result-panel p { color: #dfe1f7; }
.manual-empty { margin-top: 8px; }
.manual-result-panel:has(#manual-result:not([hidden])) .manual-empty { display: none; }
.manual-result .overview { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-block: 13px; }
.manual-result .metric { background: #ffffff14; border-color: #ffffff42; }
.manual-result .metric span { color: #dddfff; }
.manual-result .metric.profit { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.manual-result .metric.profit span { color: #2a3a10; }

.metric { min-width: 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #faf9fe; }
.metric span { display: block; color: var(--muted); font-size: .88rem; font-weight: 700; line-height: 1.3; }
.metric strong { display: block; margin-top: 4px; color: inherit; font-family: var(--display); font-size: clamp(1.2rem, 3vw, 1.9rem); font-weight: 790; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.15; overflow-wrap: anywhere; }
.profit { background: #e7f7ef; border-color: #cdeadd; color: #176345; }

.report-actions { align-items: end; margin-block: 19px 13px; padding-top: 13px; border-top: 1px solid var(--line); }
.report-layout { display: grid; grid-template-columns: minmax(235px, .75fr) minmax(0, 1.75fr); align-items: start; gap: 15px; }
.detail-grid, .order-browser { min-width: 0; }
.detail-grid { display: grid; gap: 13px; }
.order-browser, .breakdown, .cost-card { padding: 15px; border: 1px solid var(--line); border-radius: 13px; }
.order-browser { background: #f7f5ff; }
.order-list { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 7px; margin-top: 12px; max-height: 565px; overflow: auto; overscroll-behavior: contain; padding: 4px; scrollbar-color: #a7abcd #f7f5ff; }
.order-card { padding: 9px 11px; text-align: left; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #fff; overflow-wrap: anywhere; }
.order-card:hover, .order-card[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-tint); }
.order-card[aria-pressed="true"] { box-shadow: inset 3px 0 var(--brand); }
.order-card span { display: block; font-size: .88rem; }
.order-card span:last-child { color: var(--muted); font-size: .82rem; }
.order-pages { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; margin-top: 12px; gap: 5px; }
.order-pages span { font-size: .82rem; color: var(--muted); }
.order-pages button { min-height: 36px; padding: 5px 8px; font-size: .83rem; }
.breakdown { overflow-wrap: anywhere; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.status-pending, .status-insufficient, .status-grouped { color: #6b440d; background: #fff0cf; border-color: #efce89; }
.status-reversal, .status-canceled, .status-mismatch, .status-negative { color: #873527; background: #fce7e0; border-color: #edc3b7; }
#order-details dl div { border-top: 1px solid var(--line); font-size: .93rem; }
#order-details dt { color: var(--muted); }
#order-details dl div.sub { padding-block: 4px; border-top-style: dashed; font-size: .87rem; }
#order-details dl div.sub dt { padding-left: 14px; }
#order-details dl div.sub dd { font-weight: 600; color: var(--muted); }
.payout-note { margin-top: 10px; font-size: .87rem; }
#entry-details { margin: 8px 0; padding-left: 20px; }
#entry-details li { margin-block: 8px; }
#entry-details span { display: block; font-size: .9rem; }
.cost-card { background: #f5f8fe; }
.cost-card > p { margin-top: 6px; }


.entry-card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow); }

/* Seções de apresentação da página inicial */
.info-section { margin-top: clamp(56px, 8vw, 100px); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; padding: 26px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.step-number { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px; border-radius: 12px; background: var(--night); color: var(--lime); font-family: var(--display); font-size: 1.1rem; font-weight: 750; }
.steps strong { display: block; font-family: var(--display); font-size: 1.2rem; letter-spacing: -.02em; }
.steps p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.trust { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px; padding: clamp(26px, 4vw, 44px); border-radius: 28px; color: #fff; background: radial-gradient(70% 120% at 100% 0%, #5a3ef0, transparent 65%), var(--night); }
.trust h2 { font-size: clamp(1.35rem, 2.6vw, 1.85rem); }
.trust p { max-width: 64ch; margin-top: 8px; color: #d2cff0; }
.trust-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--lime) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23110e33' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / 28px no-repeat; }
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 20px 48px; align-items: start; }
.faq-list details { margin-top: 10px; padding: 0 20px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, box-shadow .15s; }
.faq-list details:first-child { margin-top: 0; }
.faq-list details[open] { border-color: #d3cbff; box-shadow: var(--shadow); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; color: var(--ink); font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--brand-tint); color: var(--brand-dark); font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; color: var(--muted); }
.cta-band { position: relative; overflow: hidden; margin-top: clamp(56px, 8vw, 100px); padding: clamp(34px, 6vw, 64px); border-radius: 32px; text-align: center; color: #fff; background: radial-gradient(50% 90% at 50% 0%, #7a5cff, transparent 70%), linear-gradient(160deg, #3f26cf, var(--night) 70%); }
.cta-band h2 { max-width: 20ch; margin-inline: auto; font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.035em; }
.cta-band p { max-width: 50ch; margin: 12px auto 0; color: #d9d5ff; }
.cta-band .hero-actions { justify-content: center; }

/* Rodapé */
.site-footer { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 24px 32px; margin-top: clamp(48px, 7vw, 80px); padding: 34px 0 36px; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.footer-brand p { max-width: 34ch; margin-top: 12px; }
.footer-links { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.footer-links strong { color: var(--ink); font-size: .85rem; }
.footer-links a { color: var(--muted); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--brand-dark); }
.footer-legal { grid-column: 1 / -1; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; }
.footer-seller { grid-column: 1 / -1; margin-top: -8px; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.footer-seller a { color: inherit; }
.moved-notice { background: #fff6dd; border-bottom: 1px solid #ecd9a0; color: #4a3b10; font-size: .9rem; }
.moved-notice .wrap { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; padding-top: 10px; padding-bottom: 10px; }
.moved-notice a { color: inherit; font-weight: 600; }

/* Páginas de texto (privacidade) */
.legal { max-width: 760px; margin: clamp(24px, 5vw, 48px) auto 0; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.legal-date { margin-top: 8px; color: var(--muted); font-size: .9rem; }
.legal h2 { margin-top: 30px; font-size: 1.3rem; }
.legal p { margin-top: 8px; color: #3a3858; }

@media (max-width: 900px) {
  .tool-grid, .steps { grid-template-columns: minmax(0, 1fr); }
  .faq { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 850px) {
  .manual-layout { grid-template-columns: minmax(0, 1fr); }
  .manual-result-panel:has(#manual-result[hidden]) { display: none; }
  .manual-result .overview { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
  .report-layout { grid-template-columns: minmax(0, 1fr); }
  .order-list { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 320px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .receipt-card { max-width: 480px; transform: none; }
}
@media (max-width: 650px) {
  .wrap { width: calc(100% - 1.5rem); }
  .top-inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 10px; }
  .top-links { width: calc(100% + 1.5rem); margin-inline: -.75rem; padding: 8px .75rem; overflow-x: auto; scrollbar-width: none; }
  .top-links a { padding: 6px 12px; font-size: .86rem; }
  .nav-extra { display: none; }
  .footer-links .nav-extra { display: inline; }
  .site-footer { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .fields, .overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .receipt-card::after { display: none; }
  .hero-actions > * { flex: 1 1 100%; }
  .cta-band { border-radius: 24px; }
}
@media (max-width: 430px) {
  .brand { font-size: 1.08rem; }
  .source-controls, .cost-fields { grid-template-columns: minmax(0, 1fr); }
  .entry-card > button, .tool-card > button { width: 100%; }
  .report-actions { flex-wrap: wrap; align-items: stretch; }
  .report-actions > * { width: 100%; }
  .import-actions > .primary, .import-actions > .secondary, #map-submit { width: 100%; }
  .order-list { grid-template-columns: minmax(0, 1fr); }
  .metric { padding: 10px; }
}
@media (max-width: 360px) {
  .fields { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .receipt-card { transform: none; }
}

/* Página "Como calculamos" */
.method-hero { max-width: 760px; padding-block: clamp(36px, 6vw, 72px) clamp(20px, 3vw, 32px); }
.method-hero p:last-child { margin-top: 18px; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.15rem); }
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.principles div { padding: 24px; border-radius: var(--radius); background: var(--night); color: #fff; }
.principles strong { display: block; font-family: var(--display); font-size: 1.15rem; letter-spacing: -.02em; }
.principles strong::before { content: ""; display: block; width: 28px; height: 4px; margin-bottom: 14px; border-radius: 2px; background: var(--lime); }
.principles p { margin-top: 8px; color: #d2cff0; font-size: .93rem; }
.method-index { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-block: 16px; }
.method-index strong { color: var(--ink); font-size: .9rem; }
.method-index a { font-size: .9rem; text-decoration: none; }
.method-index a:hover { text-decoration: underline; }
.method section + section { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--line); }
.method h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.method h3 { margin-top: 26px; }
.method p { margin-top: 10px; color: #3a3858; max-width: 72ch; }
.formula { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 18px 0 6px; padding: 18px 20px; border-radius: 16px; background: var(--night); color: #fff; font-weight: 650; font-size: .95rem; }
.formula span { padding: 6px 11px; border-radius: 9px; background: #ffffff14; }
.formula .op { padding: 0; background: none; color: #b9a8ff; font-size: 1.15rem; }
.formula .formula-result { background: var(--lime); color: var(--ink); font-weight: 800; }
.example { margin-top: 16px; padding: 16px 18px; border-left: 4px solid var(--brand); border-radius: 0 12px 12px 0; background: var(--brand-tint); }
.example p { margin-top: 6px; }
.flag-list { margin-top: 16px; }
.flag-list div { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 6px 20px; align-items: start; padding: 13px 0; border-top: 1px solid var(--line); }
.flag-list dd { margin: 0; color: #3a3858; font-weight: 500; text-align: left; }
.flag { display: inline-block; padding: 4px 10px; border: 1px solid; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.flag.warn { color: #6b440d; background: #fff0cf; border-color: #efce89; }
.flag.bad { color: #873527; background: #fce7e0; border-color: #edc3b7; }
.method-table { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.method-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.method-table th, .method-table td { padding: 10px 14px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
.method-table th { background: #f6f4ff; }
.method-table tbody tr:last-child td { border-bottom: 0; }
.method-list { margin: 14px 0 0; padding-left: 20px; color: #3a3858; }
.method-list li { max-width: 72ch; }
.method-list li + li { margin-top: 9px; }
.method-source { font-size: .88rem; }
.method-cta { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 24px; }
.method-cta h2 { font-size: 1.3rem; }
.method-cta p { margin-top: 6px; color: var(--muted); }
.method-cta .primary { flex: none; }
@media (max-width: 760px) {
  .principles { grid-template-columns: minmax(0, 1fr); }
  .flag-list div { grid-template-columns: minmax(0, 1fr); }
  .method-cta { flex-direction: column; align-items: stretch; }
}

/* Link da conta no topo */
.top-links { margin-left: auto; }
.account-link { display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border: 1px solid #d3cbff; border-radius: 999px; color: var(--brand-dark); background: var(--white); font-size: .9rem; font-weight: 700; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.account-link::before { content: ""; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f26cf' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center / contain no-repeat; }
.account-link:hover, .account-link[aria-current="page"] { background: var(--brand-tint); border-color: var(--brand); }

/* Entrar e criar conta */
.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: start; gap: clamp(28px, 6vw, 80px); padding-top: clamp(28px, 6vw, 72px); }
.auth h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.auth-intro > p:not(.eyebrow) { max-width: 46ch; margin-top: 18px; color: var(--muted); font-size: 1.06rem; }
.auth-points { margin: 22px 0 0; padding: 0; list-style: none; color: #3a3858; }
.auth-points li { position: relative; padding-left: 28px; }
.auth-points li + li { margin-top: 10px; }
.auth-points li::before { content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233f26cf' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.auth-card { margin-top: 0; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 13px; background: #f1effa; }
.auth-tabs button { min-height: 42px; border: 0; border-radius: 10px; background: none; color: var(--muted); font-weight: 700; }
.auth-tabs button[aria-selected="true"] { background: var(--white); color: var(--brand-dark); box-shadow: 0 1px 3px #110e331f; }
.auth-card form { display: grid; gap: 14px; }
.auth-card form .primary { width: 100%; margin-top: 4px; }
.field-hint { margin-top: -8px; font-size: .84rem; }
.auth-help { font-size: .86rem; }

/* Minha conta */
.account-loading { padding-block: 60px; text-align: center; }
.account-head { padding-top: clamp(28px, 6vw, 64px); }
.account-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); overflow-wrap: anywhere; }
.account-head > p:last-child { margin-top: 10px; color: var(--muted); overflow-wrap: anywhere; }
.account-section { max-width: 760px; }
.account-section h2 { font-size: 1.3rem; }
.account-section > p { margin-top: 6px; }
.store-list { margin: 18px 0 0; padding: 0; list-style: none; }
.store-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.store-list p { grid-column: 1 / -1; font-size: .9rem; }
.store-name { font-weight: 750; }
.tag.tag-wait { background: #fff0cf; color: #6b440d; border-color: #efce89; }
.tag.tag-soon { background: #f1effa; color: var(--muted); border-color: var(--line); }
.account-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.account-form .error, .account-form .ok, .account-form button { grid-column: 1 / -1; justify-self: start; }
.ok { color: var(--lime-dark) !important; font-weight: 650; }
.danger-zone { border-color: #edc3b7; }
.danger-zone summary { margin-top: 14px; color: #962d29; font-weight: 700; }
.danger-zone .account-form { grid-template-columns: minmax(0, 1fr); max-width: 380px; }
.danger { min-height: 46px; padding: 10px 20px; border: 1px solid #962d29; border-radius: 12px; background: #b3372f; color: #fff; font-weight: 700; }
.danger:hover { background: #962d29; }
@media (max-width: 900px) {
  .top-links .nav-extra { display: none; }
}
@media (max-width: 850px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-card { max-width: 480px; }
}
@media (max-width: 650px) {
  .top-inner { padding-bottom: 2px; }
  .top-links { order: 3; margin-left: -.75rem; }
  .account-link { padding: 6px 12px; font-size: .86rem; }
  .account-form { grid-template-columns: minmax(0, 1fr); }
  .account-form button { width: 100%; }
}

/* Página não encontrada */
.not-found { max-width: 640px; margin-inline: auto; padding-block: clamp(48px, 9vw, 110px) clamp(20px, 4vw, 40px); text-align: center; }
.not-found-code { font-family: var(--display); font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.06em; background: linear-gradient(135deg, #7a5cff, var(--brand-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.not-found h1 { margin-top: 10px; font-size: clamp(2rem, 5vw, 3rem); }
.not-found > p:not(.not-found-code) { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }
.not-found-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
@media (max-width: 430px) {
  .not-found-links > * { width: 100%; }
}

/* Integrações (Minha conta) */
.store-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 8px; }
.store-actions label { flex: 0 1 220px; }
.store-progress { flex-basis: 100%; font-size: .9rem; color: var(--brand-dark) !important; font-weight: 650; }
.link-button { min-height: 46px; padding: 10px 6px; border: 0; background: none; color: var(--muted); font-weight: 650; text-decoration: underline; }
.link-button:hover { color: #962d29; }
#integracoes > .ok, #integracoes > .error { margin-top: 12px; }
@media (max-width: 430px) {
  .store-actions label, .store-actions .primary { flex-basis: 100%; width: 100%; }
}

/* Assinatura: convite, planos e gestão fechada */
.paywall { width: min(460px, calc(100% - 2rem)); padding: 30px; border: 0; border-radius: var(--radius); box-shadow: 0 30px 80px #110e3359; color: var(--ink); }
.paywall::backdrop { background: #120d38a6; backdrop-filter: blur(3px); }
.paywall h2 { margin-top: 4px; font-size: 1.5rem; }
.paywall > p:not(.eyebrow) { margin-top: 10px; color: var(--muted); }
.paywall .primary { width: 100%; margin-top: 20px; }
.paywall-fechar { position: absolute; top: 12px; right: 12px; }
.paywall-fechar button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1effa; color: var(--muted); font-size: 1.3rem; line-height: 1; }
.paywall-lista, .plan ul { margin: 16px 0 0; padding: 0; list-style: none; }
.paywall-lista li, .plan li { position: relative; padding-left: 26px; color: #3a3858; }
.paywall-lista li + li, .plan li + li { margin-top: 8px; }
.paywall-lista li::before, .plan li::before { content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px; border-radius: 50%; background: var(--brand-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%233f26cf' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.paywall-nota, .plan-note { margin-top: 12px; color: var(--muted); font-size: .84rem; text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 860px; margin-top: 26px; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.plan ul { flex: 1; margin-bottom: 22px; }
.plan-main { color: #fff; background: radial-gradient(80% 90% at 100% 0%, #5a3ef0, transparent 70%), var(--night); border-color: transparent; }
.plan-main li { color: #e6e3ff; }
.plan-main li::before { background-color: var(--lime); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23110e33' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E"); }
.plan-main .plan-note { color: #c9c5ec; }
.plan .tag { position: absolute; top: 24px; right: 24px; background: var(--lime); color: var(--ink); border-color: var(--lime); }
.plan-price { margin-top: 6px; font-family: var(--display); font-size: 2.4rem; font-weight: 750; letter-spacing: -.03em; }
.plan-price small { font-family: inherit; font-size: .95rem; font-weight: 600; letter-spacing: 0; opacity: .75; }
.g-paywall { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.g-paywall h2 { font-size: 1.4rem; }
.acesso-bloqueado #g-store-form, .acesso-bloqueado #g-context, .acesso-bloqueado #g-backup-restore, .acesso-bloqueado #g-empty,
.acesso-bloqueado #g-workspace, .acesso-bloqueado #g-example, .acesso-bloqueado #g-status, .acesso-bloqueado #g-backup-preview { display: none !important; }
.subscription-box { margin-top: 16px; padding: 18px; border-radius: 16px; background: #f6f4ff; }
.subscription-box .plan-price { font-size: 1.9rem; }
.subscription-actions { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 14px; }
.subscription-actions label { flex: 1 1 260px; }
@media (max-width: 650px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .subscription-actions > * { width: 100%; }
}
.subscription-box .plan-price { color: var(--ink); }
.subscription-box .field-hint { margin-top: 12px; }
