:root {
  color-scheme: light;
  --paper: #fafafa;
  --surface: #fffefa;
  --ink: #171817;
  --muted: #6d6d68;
  --line: #dcdad4;
  --accent: #b69872;
  --accent-dark: #8f7659;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', Arial, sans-serif;
  --display: 'Manrope', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
a { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #c49762; outline-offset: 3px; }
[hidden] { display: none !important; }

.skip-link { position: fixed; top: 12px; left: 16px; z-index: 10; padding: 10px 14px; color: #fff; background: var(--ink); transform: translateY(-150%); transition: transform 180ms ease; }
.skip-link:focus { transform: translateY(0); }
.site-header { width: min(100% - 48px, 1400px); min-height: 88px; margin: 0 auto; display: flex; align-items: center; justify-content: flex-start; border-bottom: 1px solid rgba(23,24,23,.12); background: var(--paper); position: relative; z-index: 2; }
.brand { display: inline-flex; align-items: center; }
.brand img { width: clamp(180px, 16vw, 230px); height: auto; display: block; mix-blend-mode: multiply; }

.eyebrow { margin: 0 0 21px; color: var(--accent-dark); font-family: var(--display); font-size: 10px; font-weight: 700; letter-spacing: .19em; }
h1, h2, h3, p { margin-top: 0; }
.simulator-copy h1, .results-title-wrap h2, .contact-copy h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.055em; }
.simulator-copy h1 em, .results-title-wrap h2 em, .contact-copy h3 em { font-family: var(--serif); font-weight: 400; letter-spacing: -.065em; }
.button { min-height: 54px; display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; border: 0; padding: 0 23px; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 700; cursor: pointer; transition: background .22s ease, color .22s ease, transform .22s ease; }
.button:hover:not(:disabled) { transform: translateY(-2px); }
.button-dark span { font-size: 15px; }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover:not(:disabled) { background: #343734; }
.button:disabled { cursor: wait; opacity: .58; }

.simulator-section { min-height: calc(100svh - 88px); padding: clamp(36px, 5vh, 72px) 0 clamp(38px, 5.5vh, 78px); display: flex; align-items: center; background: var(--paper); }
.simulator-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(430px, 510px); align-items: center; gap: clamp(48px, 7vw, 120px); width: min(100% - 48px, 1400px); margin: 0 auto; }
.simulator-copy { max-width: 620px; }
.simulator-copy .eyebrow { margin-bottom: 26px; }
.simulator-copy h1 { margin: 0 0 24px; font-family: 'Nunito Sans', 'Avenir Next Rounded', 'Avenir Next', Avenir, 'Helvetica Neue', Arial, sans-serif; font-size: clamp(48px, 5.15vw, 74px); line-height: .98; letter-spacing: -.075em; font-weight: 400; }
.simulator-copy h1 em { color: var(--accent-dark); }
.simulator-copy > p:not(.eyebrow) { max-width: 510px; margin-bottom: 0; color: #5f605b; font-size: 15px; line-height: 1.7; }
.copy-note { max-width: 430px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.copy-note-line { display: block; width: 32px; height: 2px; margin-bottom: 14px; background: var(--accent); }
.copy-note p { margin: 0; color: #77736c; font-size: 11px; line-height: 1.75; }
.simulator-form { width: 100%; background: var(--surface); padding: clamp(22px, 2.8vw, 32px); box-shadow: 0 18px 55px rgba(38,35,29,.07); animation: form-in 700ms 120ms both cubic-bezier(.2,.7,.2,1); }
.form-topline { display: flex; justify-content: space-between; color: #7f7b72; font-family: var(--display); font-size: 9px; font-weight: 700; letter-spacing: .16em; padding-bottom: 17px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.form-topline i { color: var(--accent); font-style: normal; padding: 0 5px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; row-gap: 14px; }
.field { display: flex; flex-direction: column; min-width: 0; gap: 6px; color: var(--ink); }
.field > span:first-child, .term-label label { font-family: var(--display); font-size: 11px; font-weight: 600; }
.field small { min-height: 12px; color: #85827b; font-size: 9px; line-height: 1.4; }
.field input, .field select { width: 100%; height: 42px; padding: 0 12px; color: #262725; border: 1px solid #d8d7d0; border-radius: 2px; background: #fffefa; font-size: 13px; transition: border-color .2s ease, box-shadow .2s ease; }
.field input:hover, .field select:hover { border-color: #b4a38d; }
.field input:focus, .field select:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(182,143,99,.12); outline: none; }
.field input::placeholder { color: #a7a49e; }
.field .input-wrap { height: 42px; display: flex; align-items: center; border: 1px solid #d8d7d0; border-radius: 2px; background: #fffefa; transition: border-color .2s ease, box-shadow .2s ease; }
.field .input-wrap:focus-within { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(182,143,99,.12); }
.field .input-wrap b { padding-left: 12px; color: #807b72; font-size: 12px; font-weight: 500; }
.field .input-wrap input { height: 40px; padding-left: 7px; border: 0; border-radius: 2px; outline: 0; box-shadow: none; background: transparent; }
.field-wide { grid-column: 1 / -1; }
.term-field { margin-top: 3px; }
.term-label { display: flex; justify-content: space-between; align-items: baseline; }
.term-label output { color: var(--accent-dark); font: 600 13px var(--display); }
.term-field input[type="range"] { appearance: none; width: 100%; height: 4px; margin: 15px 0 1px; border: 0; border-radius: 0; outline: 0; background: linear-gradient(90deg, #b69872 0%, #b69872 var(--slider-progress, 53%), #cfcbc3 var(--slider-progress, 53%), #cfcbc3 100%); cursor: pointer; }
.term-field input[type="range"]::-webkit-slider-thumb { appearance: none; width: 17px; height: 17px; border: 3px solid white; border-radius: 50%; background: var(--accent-dark); box-shadow: 0 0 0 1px var(--accent-dark); }
.term-field input[type="range"]::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid white; border-radius: 50%; background: var(--accent-dark); box-shadow: 0 0 0 1px var(--accent-dark); }
.range-limits { display: flex; justify-content: space-between; color: #8b877f; font-size: 9px; }
.form-footer { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-top: 19px; padding-top: 16px; border-top: 1px solid var(--line); }
.form-footer p { max-width: 190px; margin: 0; color: #747169; font-size: 10px; line-height: 1.5; }
.lock-icon { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-right: 5px; color: var(--accent-dark); border: 1px solid #cbbca9; border-radius: 50%; font-size: 11px; }
.simulator-form .button { min-height: 44px; gap: 20px; padding: 0 17px; border-radius: 2px; font-size: 11px; letter-spacing: 0; text-transform: none; }
.form-error { margin: 14px 0 0; color: #ad3f32; font-size: 12px; }
.results-section { width: min(100% - 48px, 1400px); margin: 0 auto; padding: clamp(78px, 9vw, 132px) 0 clamp(72px, 9vw, 124px); background: var(--paper); scroll-margin-top: 20px; }
.results-section.is-visible { animation: section-in .5s ease both; }
.results-header { margin: 0 auto 36px; }
.results-title-wrap { display: flex; justify-content: space-between; align-items: end; gap: 32px; }
.results-title-wrap h2 { margin: 0; font-size: clamp(37px, 4.4vw, 58px); line-height: 1.02; }
.results-title-wrap h2 em, .contact-copy h3 em { color: var(--accent-dark); }
.results-title-wrap .eyebrow { margin-bottom: 14px; }
.result-summary { padding: 15px 20px; min-width: 177px; border-left: 1px solid var(--line); }
.result-summary span, .result-summary small { display: block; color: #77736c; font-size: 9px; letter-spacing: .11em; }
.result-summary strong { display: block; padding: 3px 0 1px; font: 600 20px var(--display); letter-spacing: -.04em; }
.result-summary small { letter-spacing: 0; font-size: 10px; }
.rate-status { margin: 0 0 20px; color: #66645e; font-size: 11px; }
.rate-status.is-stale { color: #866642; }
.rate-status.is-error { color: #aa4237; }
.bank-results { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.bank-card { --card-index: 0; min-height: 360px; padding: 20px 17px 17px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid #e4e0d8; animation: card-in .42s calc(var(--card-index) * 75ms) both; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.bank-card:hover { transform: translateY(-3px); border-color: #c2aa8f; box-shadow: 0 12px 26px rgba(35,31,24,.055); }
.bank-card.is-unavailable { background: #f8f6f1; }
.bank-card-top { display: flex; align-items: center; gap: 9px; padding-bottom: 17px; margin-bottom: 17px; border-bottom: 1px solid #e9e6e0; }
.bank-card-top h3 { flex: 1; margin: 0; font: 700 11px/1.2 var(--display); }
.bank-mark { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 28px; border-radius: 50%; color: white; font: 800 12px var(--display); }
.bank-caixa { background: #1478a9; }
.bank-bb { background: #e0b900; color: #263a7c; }
.bank-itau { background: #ec6b25; }
.bank-santander { background: #d52430; }
.bank-bradesco { background: #c62031; }
.card-arrow { align-self: flex-start; color: #aaa49b; font-size: 11px; }
.installment { display: block; min-height: 35px; color: var(--ink); font: 800 clamp(16px, 1.4vw, 20px)/1.2 var(--display); letter-spacing: -.045em; white-space: nowrap; }
.installment span { display: inline-block; margin-left: 3px; color: #6c6a64; font: 400 9px var(--sans); letter-spacing: 0; }
.data-label { min-height: 28px; color: #77736c; font-size: 9px; }
.income-share { display: flex; justify-content: space-between; align-items: center; gap: 5px; min-height: 43px; margin: 9px 0 18px; padding: 7px 8px; background: #f5f2ed; }
.income-share span { max-width: 110px; color: #6c6961; font-size: 8px; line-height: 1.35; }
.income-share b { color: var(--accent-dark); font: 700 12px var(--display); white-space: nowrap; }
.rate-detail { margin-top: auto; padding: 12px 0 10px; border-top: 1px solid #e9e6e0; }
.rate-detail span, .rate-detail b, .rate-detail small { display: block; }
.rate-detail span { color: #77736c; font-size: 9px; }
.rate-detail b { margin: 3px 0; color: #343530; font-size: 10px; }
.rate-detail small { color: #827f77; font-size: 8px; line-height: 1.55; }
.bank-unavailable { min-height: 116px; padding: 12px 0; }
.bank-unavailable strong { color: #746b5d; font: 700 15px var(--display); }
.bank-unavailable p { margin: 8px 0; color: #77736c; font-size: 10px; line-height: 1.5; }
.age-note { min-height: 29px; margin: 0; color: #89857e; font-size: 8px; line-height: 1.45; }
.bank-link { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; padding-top: 11px; border-top: 1px solid #e9e6e0; color: #59452f; text-decoration: none; font-size: 9px; font-weight: 700; }
.bank-link:hover { color: #111; }
.results-disclaimer { max-width: 1000px; margin: 26px 0 0; color: #76736c; font-size: 10px; line-height: 1.75; }
.source-line { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin: 17px 0 0; color: #77736c; font-size: 9px; }
.source-line > span { font-weight: 700; letter-spacing: .12em; }
.source-line a, .text-button { color: #765c3e; font-weight: 700; text-decoration: none; }
.text-button { padding: 0; border: 0; background: none; font-size: inherit; cursor: pointer; }
.source-line a:hover, .text-button:hover { text-decoration: underline; }
.loading-state { grid-column: 1 / -1; min-height: 150px; display: flex; align-items: center; gap: 15px; padding: 30px; background: white; color: #6d6a63; font-size: 13px; }
.loading-state p { margin: 0; }
.loading-pulse { width: 18px; height: 18px; border: 2px solid #d6c8b7; border-top-color: var(--accent-dark); border-radius: 50%; animation: spin 1s linear infinite; }

.contact-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(35px, 8vw, 120px); margin-top: 91px; padding: 44px clamp(25px, 5.4vw, 76px); color: #fff; background: var(--ink); }
.contact-copy { align-self: center; }
.contact-copy .eyebrow { color: #d0af86; }
.contact-copy h3 { margin: 0 0 17px; font-size: clamp(28px, 3.4vw, 42px); line-height: 1.05; }
.contact-copy h3 em { color: #dfc39e; }
.contact-copy > p:last-child { max-width: 325px; margin: 0; color: #cad0cc; font-size: 12px; line-height: 1.75; }
.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; align-content: center; }
.lead-form .field { color: #fff; }
.lead-form .field > span:first-child { color: #e7e7e1; }
.lead-form .field input { color: var(--ink); }
.consent { grid-column: 1 / -1; display: flex; align-items: start; gap: 9px; color: #d1d7d2; font-size: 10px; line-height: 1.5; cursor: pointer; }
.consent input { width: 15px; height: 15px; accent-color: #c5a17a; }
.lead-form .button { grid-column: 1 / -1; justify-self: start; min-width: 175px; color: var(--ink); background: #f4eee4; }
.lead-form .button:hover:not(:disabled) { background: #e7dece; }
.lead-status { grid-column: 1 / -1; margin: 0; color: #e7d5bd; font-size: 11px; }
.lead-status.is-error { color: #ffc2b8; }
.lead-status.is-success { color: #c9e4c6; }

.site-footer { width: min(100% - 48px, 1400px); min-height: 84px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid rgba(23,24,23,.12); color: #85857e; font-size: 10px; }
.footer-logo { display: block; width: 142px; height: auto; mix-blend-mode: multiply; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in-view { opacity: 1; transform: translateY(0); }
@keyframes section-in { from { opacity: .25; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes card-in { from { opacity: 0; translate: 0 14px; } to { opacity: 1; translate: 0 0; } }
@keyframes form-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 920px) {
  .simulator-layout { grid-template-columns: minmax(0, 1fr) minmax(360px, .82fr); gap: 40px; }
  .simulator-copy h1 { font-size: clamp(42px, 5vw, 58px); }
  .bank-results { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bank-card { min-height: 330px; padding: 21px; }
  .installment { font-size: 22px; }
  .income-share span { max-width: 160px; font-size: 9px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 68px; }
  .site-header, .simulator-layout, .results-section, .site-footer { width: min(100% - 36px, 620px); }
  .site-header { min-height: 72px; }
  .brand img { width: 142px; }
  .simulator-section { min-height: auto; padding: 47px 0 58px; }
  .simulator-layout { grid-template-columns: 1fr; gap: 28px; }
  .simulator-copy { max-width: 520px; }
  .simulator-copy .eyebrow { margin-bottom: 15px; }
  .simulator-copy h1 { margin-bottom: 16px; font-size: clamp(41px, 11vw, 58px); }
  .simulator-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.65; }
  .copy-note { max-width: 100%; margin-top: 20px; padding-top: 15px; }
  .copy-note-line { margin-bottom: 10px; }
  .simulator-form { padding: 24px 22px; }
  .field-grid { column-gap: 12px; row-gap: 17px; }
  .field-grid > .field:not(.field-wide) { grid-column: 1 / -1; }
  .field input, .field select, .field .input-wrap { height: 48px; }
  .field .input-wrap input { height: 46px; }
  .form-footer { align-items: stretch; flex-direction: column; gap: 17px; margin-top: 23px; }
  .form-footer p { max-width: 100%; line-height: 1.6; }
  .simulator-form .button { width: 100%; justify-content: center; }
  .results-section { padding: 58px 0 55px; }
  .results-header { margin-bottom: 27px; }
  .results-title-wrap { align-items: start; flex-direction: column; gap: 20px; }
  .results-title-wrap .eyebrow { margin-bottom: 12px; }
  .results-title-wrap h2 { font-size: clamp(37px, 10vw, 52px); }
  .result-summary { min-width: 0; padding: 11px 16px; }
  .bank-results { grid-template-columns: 1fr; gap: 10px; }
  .bank-card { min-height: 0; padding: 17px 18px; }
  .bank-card-top { padding-bottom: 12px; margin-bottom: 14px; }
  .installment { font-size: 23px; }
  .income-share { margin: 8px 0 13px; }
  .income-share span { max-width: none; }
  .bank-unavailable { min-height: 76px; }
  .age-note { min-height: 0; }
  .results-disclaimer { font-size: 10px; }
  .source-line { gap: 12px 18px; line-height: 1.5; }
  .contact-section { grid-template-columns: 1fr; gap: 24px; margin-top: 56px; padding: 29px 21px; }
  .contact-copy h3 { font-size: 34px; }
  .lead-form { grid-template-columns: 1fr; }
  .consent, .lead-form .button, .lead-status { grid-column: 1; }
  .lead-form .button { width: 100%; }
  .site-footer { min-height: 100px; flex-wrap: wrap; padding: 22px 0; }
  .site-footer > span { order: 3; width: 100%; }
}
@media (max-width: 470px) {
  .site-header, .simulator-layout, .results-section, .site-footer { width: min(100% - 32px, 620px); }
  .simulator-copy h1 { font-size: clamp(39px, 12vw, 54px); }
  .simulator-form { padding: 21px 17px; }
  .form-topline { font-size: 8px; }
  .field-grid { grid-template-columns: 1fr; gap: 14px; }
  .field-wide { grid-column: auto; }
  .field-grid > .field:not(.field-wide) { grid-column: auto; }
  .form-footer { margin-top: 20px; padding-top: 17px; }
  .contact-section { padding: 29px 19px; }
  .contact-copy h3 { font-size: 31px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
