@font-face {
  font-family: Montserrat;
  src: url("/montserrat-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #151d29;
  --muted: #455467;
  --navy: #00357a;
  --navy-deep: #002451;
  --orange: #ff6203;
  --gray: #abb1b8;
  --line: #dfdcd7;
  --paper: #f4f1ed;
  --white: #fdfdfd;
  font-family: Montserrat, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
.shell { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.header { border-top: 4px solid var(--orange); border-bottom: 1px solid var(--line); background: var(--white); }
.bar, .brand, .panel-heading, .actions, .field-row { display: flex; align-items: center; gap: 12px; }
.bar, .panel-heading { justify-content: space-between; }
.bar { min-height: 112px; }
a { color: var(--navy); }
.brand { text-decoration: none; }
.logo-frame { display: grid; place-items: center; width: 128px; height: 108px; overflow: hidden; }
.logo-frame img { display: block; width: 128px; height: 108px; object-fit: contain; transform: scale(1.38); }
.header-link { font-size: 14px; font-weight: 700; text-underline-offset: 5px; text-decoration-color: var(--orange); text-decoration-thickness: 2px; }
main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; margin-block: 32px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(270px, 340px);
  align-items: center;
  gap: clamp(20px, 5vw, 54px);
  padding: clamp(22px, 5vw, 56px);
  border-radius: 16px;
  color: var(--white);
  background: linear-gradient(136deg, transparent 66%, #ffffff0a 66%, #ffffff0a 81%, #ffffff12 81%),
    linear-gradient(110deg, var(--navy-deep), var(--navy));
}
h1, h2, p { margin: 0; }
h1 { font-size: clamp(35px, 5.3vw, 64px); font-weight: 750; line-height: 1.07; letter-spacing: -.052em; }
.hero h1 span { display: block; color: var(--orange); white-space: nowrap; }
h2 { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.hero-copy p { margin-top: 18px; max-width: 48ch; font-size: 16px; }
.hero-copy .scope { color: #dce5f0; font-size: 13px; }
.pricing { color: var(--ink); background: var(--white); border-radius: 12px; padding: clamp(18px, 3vw, 26px); border-top: 4px solid var(--orange); }
.pricing h2 { font-size: 16px; }
.price { font-size: 43px; font-weight: 800; color: var(--navy); letter-spacing: -.055em; line-height: 1.35; }
.pricing > button { width: 100%; margin-top: 17px; }
.pricing > button:not(:disabled) { background: var(--orange); border-color: var(--orange); color: #141414; }
.pricing > button:not(:disabled):hover { background: #ff8039; border-color: #ff8039; }
.signed-in .bar { min-height: 78px; }
.signed-in .logo-frame, .signed-in .logo-frame img { width: 92px; height: 74px; }
.panel { border: 1px solid var(--line); border-radius: 12px; padding: clamp(17px, 3vw, 28px); background: var(--white); }
.panel h1, .panel h2 { color: var(--navy); }
.panel-heading { align-items: flex-start; margin-bottom: 18px; }
.panel-heading p, #order-help { margin-top: 6px; color: var(--muted); }
#pos-compra h1 { font-size: clamp(28px, 4vw, 43px); }
#order-form { margin-top: 16px; }
.activate-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.field-row { align-items: end; }
.field-row > input { max-width: 420px; }
.consultation-wallet { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 22px; padding: 16px 20px; margin-bottom: 20px; border: 1px solid #d7e2ef; border-radius: 10px; background: #f0f5fb; }
.consultation-wallet[data-empty] { background: #fff5ec; border-color: #e9d2bd; }
.wallet-balance { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; color: var(--navy-deep); font-size: 15px; font-weight: 650; }
.wallet-balance strong { font-size: 42px; line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.wallet-action { text-align: right; }
.wallet-action .muted:not(:empty) { margin-top: 4px; }
.consultation-wallet > .status { grid-column: 1 / -1; margin: 0; }
.consultation-wallet > .status:empty { display: none; }
.query-fields { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.query-mode { margin: 0; padding: 0; border: 0; min-inline-size: 0; }
.query-mode legend { padding: 0; margin-bottom: 4px; font-size: 14px; font-weight: 650; }
.mode-options { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--gray); border-radius: 7px; background: var(--paper); }
.mode-options label { position: relative; flex: 1; margin: 0; }
.mode-options input { position: absolute; inset: 0; margin: 0; min-height: 0; opacity: 0; cursor: pointer; }
.mode-options span { display: block; padding: 7px 12px; border-radius: 5px; text-align: center; color: var(--navy); }
.mode-options input:checked + span { color: #fff; background: var(--navy); }
.mode-options input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 4px; }
input, select, button, .button { min-height: 44px; font: inherit; border-radius: 7px; }
input, select { padding: 8px 11px; width: 100%; border: 1px solid #858e99; color: var(--ink); background: var(--white); }
button, .button { cursor: pointer; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--navy); padding: 8px 14px; color: #fff; background: var(--navy); font-weight: 650; text-decoration: none; }
button:not(:disabled):hover, .button:hover { background: var(--navy-deep); color: #fff; }
button:disabled { cursor: default; background: #e9e8e5; color: var(--muted); border-color: var(--line); }
.secondary { background: var(--white); color: var(--navy); border-color: var(--gray); }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.hero :focus-visible { outline-color: var(--orange); }
.actions { flex-wrap: wrap; }
.muted { color: var(--muted); font-size: 13px; }
.status:not(:empty), .muted:not(:empty) { margin-top: 10px; }
.status[data-error] { color: #a0221c; }
.notice { background: #fff2e9; border-left: 3px solid var(--orange); padding: 10px 13px; margin-bottom: 14px; }
.orders { display: grid; gap: 10px; }
.order { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 18px; border: 1px solid var(--line); padding: 12px; border-radius: 8px; }
code { font-size: .95em; overflow-wrap: anywhere; }
details { margin-top: 10px; }
summary { cursor: pointer; }
#history-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 10px 8px; vertical-align: top; }
th { font-size: 13px; color: var(--navy); background: var(--paper); }
td { font-size: 14px; }
td p + p { margin-top: 4px; }
.report-subtitle, .simulator h3 { margin: 0; font-size: 17px; line-height: 1.35; color: var(--navy-deep); }
.report-subtitle { margin-top: 22px; }
.rate-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px; margin-bottom: 16px; }
.rate-card { display: grid; align-content: start; gap: 5px; min-width: 0; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: #f7f8fa; }
.rate-card--lowest { border-left: 4px solid var(--orange); background: #f0f5fb; }
.rate-label { font-size: 13px; font-weight: 700; color: var(--navy-deep); }
.rate-value { color: var(--navy); font-size: clamp(28px, 5vw, 44px); font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.08; }
.rate-value--unavailable { font-size: 21px; letter-spacing: -.015em; }
.rate-activity { font-weight: 650; font-size: 14px; }
.rate-treatment { font-size: 13px; color: var(--muted); }
.treatment-badge { display: inline-block; justify-self: start; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 750; color: #34445a; background: #e9edf2; }
.treatment-badge[data-treatment^="red"], .treatment-badge[data-treatment="zero"] { color: #16613f; background: #e3f3e9; }
.treatment-badge[data-treatment^="especifico"], .treatment-badge[data-treatment="misto"] { color: #744713; background: #f8eed9; }
.rate-card > .treatment-badge { margin: 2px 0 4px; }
td > .treatment-badge + .rate-treatment { margin-top: 5px; }
.rate-cell { font-weight: 750; font-variant-numeric: tabular-nums; }
.lowest-activity { background: #f3f7fc; }
.simulator { margin-top: 24px; padding: clamp(14px, 3vw, 20px); border: 1px solid var(--line); border-radius: 10px; background: #f7f8fa; }
.sim-fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 190px); gap: 12px; margin-top: 12px; }
.sim-values { margin: 10px 0 0; }
.sim-values:empty { display: none; }
.sim-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 8px 16px; border-bottom: 1px solid var(--line); padding-block: 8px; font-size: 14px; }
.sim-line dd { margin: 0; font-weight: 750; color: var(--navy-deep); font-variant-numeric: tabular-nums; }
.footer { padding: 0 0 28px; color: var(--muted); font-size: 13px; }
.footer p + p { margin-top: 7px; }
@media (max-width: 690px) {
  .shell { width: calc(100% - 28px); }
  .bar { min-height: 96px; }
  .logo-frame, .logo-frame img { width: 112px; height: 94px; }
  main { margin-block: 18px; }
  .hero, .activate-form { grid-template-columns: 1fr; }
  .panel-heading, .field-row { flex-wrap: wrap; }
  .query-fields { grid-template-columns: minmax(0, 1fr) auto; }
  .query-mode { grid-column: 1 / -1; }
  .activate-form > button { width: 100%; }
  table { min-width: 590px; }
}
@media (max-width: 430px) {
  .consultation-wallet, .query-fields { grid-template-columns: 1fr; }
  .wallet-action { text-align: left; }
  .wallet-action button { width: 100%; }
  .sim-fields, .sim-line { grid-template-columns: 1fr; }
  .sim-line { gap: 2px; }
}
@media print {
  body { background: #fff; }
  .hero, #pos-compra, #acesso, #consultas, .header-link, #print, .footer details { display: none !important; }
  .shell { width: 100%; }
  .bar { min-height: 80px; }
  .logo-frame, .logo-frame img { width: 96px; height: 76px; }
  .report { padding: 0; border: 0; }
  .table-wrap { overflow: visible; }
  table { min-width: 0; }
  tr { break-inside: avoid; }
  .rate-card, .simulator { break-inside: avoid; }
  .sim-fields, #sim-error { display: none !important; }
}
