:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --paper: #f6f8f5;
  --white: #fff;
  --ink: #142920;
  --muted: #4d6156;
  --line: #d9e1da;
  --accent: #166448;
  --accent-light: #e8f2ea;
  --forest: #122f25;
  --mint: #dcffb6;
  --negative: #a8343b;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 1rem; }
body.infomoeda-app { margin: 0; padding: 0; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--paper); color: var(--ink); line-height: 1.55; }
a { color: var(--accent); text-underline-offset: .19em; }
a:hover { color: var(--ink); }
button, select, input { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
:focus-visible { outline: 3px solid #207955; outline-offset: 4px; }
.wrap { width: min(100% - 3rem, 68rem); margin-inline: auto; }
.skip-link { position: absolute; padding: .5rem 1rem; background: var(--white); transform: translateY(-200%); }
.skip-link:focus { z-index: 2; transform: none; }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.topbar, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; min-height: 4.5rem; }
.brand { display: inline-flex; align-items: center; color: var(--ink); font-size: 1.28rem; font-weight: 780; letter-spacing: -.055em; text-decoration: none; white-space: nowrap; }
.brand > span:last-child { color: var(--accent); }
.brand-mark { display: inline-flex; justify-content: center; align-items: end; gap: 3px; width: 2rem; height: 2rem; padding-bottom: .52rem; margin-right: .55rem; border-radius: .55rem; background: var(--forest); }
.brand-mark i { width: 3px; border-radius: 3px; background: var(--mint); height: .35rem; }
.brand-mark i:nth-child(2) { height: .55rem; }
.brand-mark i:nth-child(3) { height: .8rem; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 1.4rem; }
nav a { color: var(--muted); font-size: .875rem; text-decoration: none; }
nav a:hover, nav .nav-current { color: var(--accent); text-decoration: underline; }
.intro { padding-block: 3.7rem 2.6rem; }
.eyebrow { margin: 0 0 .5rem; font-size: .875rem; font-weight: 720; color: var(--accent); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 16ch; margin-bottom: .7rem; font-size: clamp(2.65rem, 7.5vw, 5.2rem); font-weight: 770; line-height: 1.03; letter-spacing: -.085em; }
h1 em { color: var(--accent); font-style: normal; }
.intro > p:last-child { max-width: 51ch; margin: 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.17rem); }
.workspace { display: grid; grid-template-columns: 1.07fr 1fr; gap: 1.125rem; align-items: start; }
.calculator, .result { min-width: 0; padding: clamp(1.1rem, 3vw, 1.85rem); border-radius: 1.3rem; }
.calculator { background: var(--white); border: 1px solid var(--line); }
.mode-picker { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; border-radius: .85rem; background: #edf1ed; padding: .25rem; margin-bottom: 1.3rem; }
.mode-picker button { border: 1px solid transparent; background: transparent; color: var(--muted); border-radius: .64rem; padding: .7rem .35rem; font-size: .89rem; font-weight: 660; line-height: 1.2; min-height: 2.65rem; }
.mode-picker button[aria-pressed="true"] { background: var(--white); color: var(--accent); border-color: var(--line); box-shadow: 0 1px 2px #14292012; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem; }
.field label { display: block; margin-bottom: .34rem; font-size: .875rem; font-weight: 670; }
.field input, .field select { display: block; width: 100%; min-width: 0; min-height: 2.95rem; border: 1px solid #c8d4cb; border-radius: .62rem; background: #fbfcfb; padding: .5rem .72rem; }
.field select { appearance: none; padding-right: 1.8rem; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-size: 5px 5px; background-position: calc(100% - 15px) center, calc(100% - 10px) center; background-repeat: no-repeat; }
.field input[aria-invalid="true"] { color: var(--negative); }
.input-unit { position: relative; }
.input-unit > span { position: absolute; top: 50%; left: .72rem; transform: translateY(-50%); color: var(--muted); white-space: nowrap; font-size: .84rem; pointer-events: none; }
.input-unit input { padding-left: 3.35rem; font-variant-numeric: tabular-nums; }
.input-unit.suffix > span { right: .72rem; left: auto; }
.input-unit.suffix input { padding-left: .72rem; padding-right: 7.1rem; }
#spread, #percent-fee, #manual-tax { padding-right: 2rem; }
#amount { font-weight: 720; }
.purpose { margin-top: .92rem; }
.field-hint, .form-message { margin: .28rem 0 0; font-size: .875rem; color: var(--muted); }
.form-message { color: var(--negative); margin-top: .72rem; }
.quote-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: .7rem; }
.text-button { min-height: 2rem; padding: 0; background: transparent; border: 0; color: var(--accent); font-size: .875rem; font-weight: 700; }
.text-button:hover { text-decoration: underline; }
.text-button:disabled { opacity: .65; cursor: default; }
.settings { margin-top: .58rem; padding-top: .7rem; border-top: 1px solid var(--line); }
summary { color: var(--ink); font-weight: 650; }
.settings summary { color: var(--accent); font-size: .91rem; }
.settings .fields { margin-top: .85rem; }
.result { position: relative; overflow: hidden; background: var(--forest); color: var(--white); }
.result::before { content: ""; position: absolute; top: -6.5rem; right: -9.5rem; width: 24rem; height: 24rem; pointer-events: none; border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 1.32rem, #dcffb61b 1.36rem 1.42rem); mask-image: linear-gradient(225deg, #000, transparent 74%); }
.result > * { position: relative; }
.result-kicker { margin: .1rem 0 .35rem; font-size: .96rem; font-weight: 630; color: #d8e8de; }
.result-amount { color: var(--mint); font-size: clamp(2.15rem, 4.9vw, 3.65rem); font-weight: 770; letter-spacing: -.07em; font-variant-numeric: tabular-nums; line-height: 1.08; overflow-wrap: anywhere; }
.result-amount.compact { font-size: clamp(1.8rem, 3.5vw, 2.55rem); }
.result-caption { margin: .6rem 0 0; color: #d8e8de; font-size: .89rem; }
.breakdown { margin: 1.4rem 0 0; padding-top: .55rem; border-top: 1px solid #ffffff38; font-size: .92rem; }
.breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; padding-block: .42rem; }
.breakdown dt { color: #d8e8de; }
.breakdown dd { margin: 0; text-align: right; font-weight: 640; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.result-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .35rem .65rem; margin: .9rem 0 0; padding-top: .85rem; border-top: 1px solid #ffffff38; font-size: .875rem; }
.result-foot span { color: #d8e8de; }
.result-foot a { color: var(--mint); }
.result-foot a:focus-visible { outline-color: var(--mint); }
.notice { margin: .8rem 0 0; color: var(--muted); font-size: .875rem; }
.notice strong { color: var(--ink); }
.section { margin-top: 3.05rem; }
.section-head { margin-bottom: 1.15rem; }
.section-head h2 { margin: 0 0 .35rem; font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 740; line-height: 1.15; letter-spacing: -.048em; }
.section-head p:last-child, .section-head > p:not(.eyebrow) { margin-bottom: 0; color: var(--muted); }
.comparison-grid, .provider-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .8rem; }
.scenario { display: flex; flex-direction: column; min-width: 0; padding: 1.03rem; background: var(--white); border: 1px solid var(--line); border-radius: .92rem; }
.scenario:first-child[data-ranked="true"] { background: #eff6eb; border-color: #9bc3a4; }
.scenario h3 { margin: 0 0 .15rem; font-size: 1rem; }
.scenario-cost, .scenario-delta, .scenario-source { margin: 0 0 .45rem; color: var(--muted); font-size: .875rem; }
.scenario-source a { font-weight: 620; }
.scenario-amount { margin: .35rem 0 .1rem; font-size: 1.35rem; font-weight: 760; letter-spacing: -.04em; overflow-wrap: anywhere; }
.scenario-delta.is-best { color: var(--accent); font-weight: 670; }
.scenario-delta.is-loss { color: var(--negative); }
.scenario button { align-self: start; min-height: 2.4rem; padding: .35rem .7rem; margin-top: auto; border-radius: .53rem; border: 1px solid #b9cbbd; background: var(--white); color: var(--accent); font-size: .875rem; font-weight: 650; }
.scenario button:hover { background: var(--accent-light); }
.provider-grid { margin: 0; padding: 0; list-style: none; }
.provider-grid a { display: flex; flex-direction: column; height: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--white); text-decoration: none; }
.provider-grid a:hover, .provider-grid a:focus-visible { border-color: var(--accent); }
.provider-grid span { font-size: .875rem; color: var(--muted); }
.guide, .faq, .legal { max-width: 48rem; }
.guide p, .legal p { margin-bottom: .9rem; }
.guide h3, .legal h2 { margin: 1.6rem 0 .5rem; font-size: 1.2rem; }
table { width: 100%; border-collapse: collapse; text-align: left; background: var(--white); margin-bottom: 1.1rem; }
table caption { text-align: left; color: var(--muted); font-size: .875rem; padding-bottom: .4rem; }
th, td { border: 1px solid var(--line); padding: .55rem .65rem; vertical-align: top; }
thead th { background: var(--accent-light); }
.references { color: var(--muted); font-size: .875rem; }
.faq details { padding: .8rem 0; border-top: 1px solid var(--line); }
.faq details p { margin: .6rem 0 0; }
.legal { padding-block: 2.7rem 0; }
.legal h1 { font-size: clamp(2rem, 6vw, 3.6rem); max-width: none; }
.legal a { overflow-wrap: anywhere; }
.site-footer { margin-top: 3rem; border-top: 1px solid var(--line); background: var(--white); }
.ad-slot { margin-block: 1.3rem; min-height: 100px; }
.ad-article { min-height: 250px; }
@media (max-width: 47rem) {
  .wrap { width: min(100% - 2rem, 68rem); }
  .intro { padding-block: 1.55rem 1.15rem; }
  .workspace { grid-template-columns: 1fr; }
  .comparison-grid, .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result-amount { font-size: clamp(2.25rem, 8vw, 3.6rem); }
  .section { margin-top: 2.35rem; }
  .footer-inner { align-items: flex-start; flex-direction: column; padding-block: 1rem; }
}
@media (max-width: 26rem) {
  .topbar { gap: .5rem; min-height: 3.8rem; }
  nav { gap: .65rem; }
  .brand { font-size: 1.15rem; }
  .comparison-grid { grid-template-columns: 1fr; }
  .calculator, .result { border-radius: 1rem; }
  .wrap { width: calc(100% - 1.5rem); }
  .topbar nav { justify-content: flex-end; }
  .fields { gap: .55rem; }
  .fields-amount .input-unit input { padding-left: 2.85rem; padding-right: .4rem; }
  .fields-amount .input-unit > span { left: .52rem; }
  .field select { padding-left: .52rem; padding-right: 1.35rem; font-size: .9rem; }
}
