:root {
  --navy: var(--blue-900);
  --blue: var(--blue-700);
  --surface: var(--white);
  --green: #257a55;
  --yellow: #d7aa28;
  --orange: #d97825;
  --red: #b43b42;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--soft); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.5; }
button, input, select { font: inherit; }
main { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 46px 0 72px; }
.tool-site-header { min-height: 76px; }
.intro { max-width: 900px; margin-bottom: 28px; }
.eyebrow { margin: 0 0 6px; color: var(--blue-700); font-size: .78rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0; }
h1, h2 { margin: 0; color: var(--navy); line-height: 1.08; }
h1 { max-width: 900px; font-size: clamp(40px, 5vw, 64px); font-weight: 900; }
h2 { font-size: 1.8rem; font-weight: 850; }
.intro-lead { max-width: 760px; margin: 14px 0 0; color: var(--muted); font-size: 18px; }

.answers-panel { display: grid; grid-template-columns: .72fr 1.28fr; gap: 32px; align-items: center; margin-bottom: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.answers-panel h2 { max-width: 360px; font-size: 1.45rem; }
.answer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.answer-list p { display: grid; grid-template-columns: 34px 1fr; min-height: 80px; align-items: center; gap: 10px; margin: 0; padding: 14px 18px; color: var(--navy); background: #f5f8fb; border-left: 3px solid var(--gold); border-radius: 4px; }
.answer-list span { color: var(--blue); font-size: 12px; font-weight: 850; }
.answer-list strong { font-size: 16px; line-height: 1.3; }

.calculator { display: grid; grid-template-columns: minmax(480px, 1.02fr) minmax(0, .98fr); min-height: 700px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); overflow: hidden; }
.calculator-form, .result, .result-placeholder { padding: 32px; }
.calculator-form { display: flex; flex-direction: column; gap: 20px; }
.panel-heading { display: flex; gap: 12px; align-items: center; padding-bottom: 17px; border-bottom: 1px solid var(--line); }
.panel-heading strong { display: block; color: var(--navy); }
.panel-heading small { display: block; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-grid--three { grid-template-columns: repeat(3, 1fr); }
.field { display: grid; gap: 7px; color: var(--navy); font-size: 14px; font-weight: 800; }
.field input, .field select { width: 100%; min-height: 48px; padding: 10px 12px; color: var(--ink); background: #fff; border: 1px solid #b7c5d4; border-radius: 8px; }
.field input:focus, .field select:focus { outline: 3px solid rgba(23,79,122,.16); border-color: var(--blue); }
.amount-input, .suffix-input { display: flex; align-items: center; min-width: 0; border: 1px solid #b7c5d4; border-radius: 8px; overflow: hidden; }
.amount-input b, .suffix-input b { padding: 0 13px; color: var(--navy); font-size: 16px; white-space: nowrap; }
.amount-input input, .suffix-input input { min-width: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0; }
.suffix-input input { border-left: 0; border-right: 1px solid var(--line); }
.section-divider { display: flex; align-items: center; gap: 12px; color: var(--navy); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.section-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.tax-note { display: grid; gap: 3px; padding: 14px 16px; color: var(--navy); background: #f5f8fb; border-left: 3px solid var(--gold); }
.tax-note span { color: var(--muted); font-size: 13px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button { display: inline-grid; min-height: 50px; padding: 0 22px; place-items: center; border: 1px solid var(--navy); border-radius: 8px; font-weight: 850; text-align: center; text-decoration: none; cursor: pointer; }
.button--primary { color: #fff; background: var(--navy); }
.button--secondary { color: var(--navy); background: #fff; }
.button--light { color: var(--navy); background: #fff; border-color: #fff; }
.button--outline-light { color: #fff; background: transparent; border-color: rgba(255,255,255,.65); }
.button--whatsapp { color: #fff; background: #19754b; border-color: #19754b; }
.form-message { min-height: 22px; margin: 0; color: #a32835; font-weight: 700; }

.result-placeholder, .result { color: #fff; background: var(--navy); }
.result-placeholder { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.result-placeholder__mark { position: absolute; right: 32px; top: -65px; color: rgba(255,255,255,.05); font-size: 270px; font-weight: 900; }
.result-placeholder .eyebrow { position: relative; color: #efc45e; }
.result-placeholder h2 { position: relative; max-width: 430px; color: #fff; font-size: 36px; }
.privacy-note { position: relative; margin-top: 26px; color: #cddce8; font-size: 13px; }
.result { padding: 30px; }
.result-kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.result-kicker p { margin: 0; color: #efc45e; font-size: 12px; font-weight: 850; }
.result-hero { padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.2); }
.result-hero span { display: block; color: #cddce8; font-size: 14px; }
.result-hero strong { display: block; margin-top: 2px; font-size: clamp(38px,5vw,54px); line-height: 1; }
.result-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.result-columns section { padding: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; }
.result-columns h2 { color: #fff; font-size: 16px; }
.cost-list { margin: 10px 0 0; }
.cost-list div { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.cost-list dt { color: #cddce8; font-size: 12px; }
.cost-list dd { margin: 0; font-size: 13px; font-weight: 800; white-space: nowrap; }
.monthly-total { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; color: #fff; }
.monthly-total span { font-size: 13px; }
.monthly-total strong { font-size: 18px; }
.risk-card { display: grid; grid-template-columns: 18px 1fr; gap: 13px; margin-top: 16px; padding: 16px; color: #14243a; background: #fff8dd; border-radius: 8px; }
.traffic-light { width: 14px; height: 14px; margin-top: 4px; background: var(--yellow); border-radius: 50%; box-shadow: 0 0 0 5px rgba(215,170,40,.18); }
.risk-card > div > span, .risk-card small { display: block; color: #5e6570; font-size: 12px; }
.risk-card strong { display: block; margin: 2px 0 4px; color: var(--navy); font-size: 20px; }
.risk-card[data-level="optimal"] { background: #eaf6f0; }
.risk-card[data-level="optimal"] .traffic-light { background: var(--green); box-shadow: 0 0 0 5px rgba(37,122,85,.16); }
.risk-card[data-level="medium"] { background: #fff0df; }
.risk-card[data-level="medium"] .traffic-light { background: var(--orange); box-shadow: 0 0 0 5px rgba(217,120,37,.16); }
.risk-card[data-level="high"] { background: #fdebed; }
.risk-card[data-level="high"] .traffic-light { background: var(--red); box-shadow: 0 0 0 5px rgba(180,59,66,.16); }
.result-note { color: #cddce8; font-size: 12px; }
.share-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.business-cta { display: flex; justify-content: space-between; gap: 30px; align-items: center; margin-top: 30px; padding: 28px 32px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.business-cta h2 { font-size: 1.6rem; }
.business-cta p:not(.eyebrow) { margin: 7px 0 0; color: var(--muted); }
[hidden] { display: none !important; }

@media (max-width: 920px) {
  .calculator { grid-template-columns: 1fr; }
  .result-placeholder { min-height: 500px; }
}
@media (max-width: 760px) {
  main { width: min(100% - 28px,1180px); padding-top: 34px; }
  h1 { font-size: 39px; }
  .answers-panel { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .answer-list, .field-grid, .field-grid--three, .result-columns { grid-template-columns: 1fr; }
  .calculator-form, .result, .result-placeholder { padding: 24px 20px; }
  .business-cta { align-items: stretch; flex-direction: column; padding: 24px 20px; }
  .share-actions { grid-template-columns: 1fr; }
}
@media (max-width: 1060px) {
  .tool-site-header { grid-template-columns: auto auto; }
  .tool-site-header .tool-nav { display: none; }
  .tool-site-header .header-actions { display: flex; justify-self: end; }
  .tool-site-header .header-action { display: inline-flex; }
}
