/* Shared readable foundation for every visual direction. */
:root { font-size: 16px; }
body { font-size: 16px; line-height: 1.65; background: #fff; color: #183d37; }
main { max-width: 1320px; padding-inline: 36px; }
header { max-width: 1392px; height: 100px; gap: 30px; padding-inline: 36px; }
header nav { font-size: 16px; gap: 25px; }
.canadian { font-size: 14px; white-space: nowrap; }
.brand-name { font-size: 22px; }
.brand-name > span { font-size: 11px; }
.brand-mark { width: 46px; height: 46px; font-size: 32px; }
.breadcrumb { font-size: 14px; gap: 13px; margin: 24px 0; flex-wrap: wrap; }
.design-switcher { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 24px; border: 1px solid #dfece5; border-radius: 18px; background: #fff; }
.switcher-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 1.8px; color: #667e72; }
.design-switcher > div > p { margin: 4px 0 0; font: 700 19px 'Manrope',sans-serif; letter-spacing: -.5px; }
.design-options { display: flex; gap: 9px; }
.design-options button { display: flex; align-items: center; gap: 11px; text-align: left; padding: 12px 14px; border: 1px solid #dfe8e2; border-radius: 12px; background: white; color: #355c4c; font-size: 15px; font-weight: 700; line-height: 1.4; min-height: 64px; }
.design-options small { display: block; font-size: 12px; font-weight: 400; color: #687e72; margin-top: 3px; }
.design-options button[aria-pressed=true] { border-color: #4a8968; box-shadow: 0 0 0 1px #4a8968; }
.theme-check { opacity: 0; font-size: 14px; margin-left: 3px; }
[aria-pressed=true] .theme-check { opacity: 1; }
.theme-swatch { width: 27px; height: 27px; border-radius: 50%; flex-shrink: 0; }
.swatch-sunshine { background: linear-gradient(135deg,#ffd75e 50%,#ff927d 50%); }
.swatch-sky { background: linear-gradient(135deg,#4b8cf1 50%,#c6b3f2 50%); }
.swatch-garden { background: linear-gradient(135deg,#46ca99 50%,#d4ef9e 50%); }
.intro { padding: 48px 0 42px; }
h1 { font-size: clamp(42px,4.2vw,60px); letter-spacing: -2.8px; line-height: 1.12; }
.intro p { font-size: 18px; line-height: 1.85; max-width: 780px; }
.eyebrow { font-size: 12px; letter-spacing: 1.6px; }
.intro-art { width: 240px; right: 20px; top: 50px; }
.art-caption { font-size: 14px; }
.trust { font-size: 14px; gap: 14px; }
.trust > span { padding: 7px 12px; }
.tool-heading { align-items: center; margin-bottom: 25px; }
.tool-tag { font-size: 12px; letter-spacing: 1.6px; }
.tool-heading h2 { font-size: 28px; letter-spacing: -.9px; line-height: 1.35; }
.tool-note { font-size: 15px; }
.calculator { grid-template-columns: minmax(0,440px) minmax(0,1fr); gap: 28px; }
.inputs { padding: 28px; }
.section-heading h2 { font-size: 22px; }
.tiny-icon { font-size: 25px; }
.small, .prepay-heading + .small { font-size: 15px; line-height: 1.8; }
label { font-size: 16px; margin-bottom: 10px; font-weight: 600; gap: 10px; line-height: 1.5; }
label span { font-size: 14px; line-height: 1.6; }
.input-wrap, select, .plain-input { min-height: 58px; height: 58px; border-radius: 10px; }
.input-wrap input, select, .plain-input { font-size: 19px; }
.input-wrap > span { font-size: 18px; }
.input-wrap input { font-variant-numeric: tabular-nums; }
.two-fields { gap: 16px; margin-block: 25px; }
.mode-switch { margin-bottom: 26px; padding: 5px; gap: 5px; }
.mode-switch button { font-size: 15px; padding: 12px 8px; min-height: 48px; }
.down-label { margin-top: 23px; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
#first-time-buyer + label { margin-top: 23px; }
.down-label > span { font-size: 13px; line-height: 1.8; }
.down-presets { gap: 8px; margin-block: 13px; }
.down-presets button { font-size: 14px; padding: 10px 6px; min-height: 44px; }
.loan-breakdown { padding: 17px; margin-top: 20px; }
.loan-breakdown > div { font-size: 14px; align-items: start; gap: 14px; line-height: 1.6; }
.loan-breakdown .loan-total { font-size: 16px; }
.field-help { font-size: 14px; line-height: 1.85; margin-top: 13px; }
.check-label { font-size: 15px; gap: 10px; }
.check-label input { min-width: 18px; min-height: 18px; }
#eligibility-row { padding: 17px; }
.term-field { margin-top: 23px; }
.prepay-heading { padding-top: 25px; margin-top: 28px; }
.prepay-heading h3 { font-size: 18px; }
.optional { font-size: 11px; letter-spacing: 1px; padding: 5px 7px; }
input[type=range] { margin: 28px 0 14px; height: 7px; }
.range-labels { font-size: 13px; }
.lump, .budget-inputs { padding-block: 20px; }
.lump summary, .budget-inputs summary { font-size: 15px; line-height: 1.6; }
.reset { font-size: 15px; min-height: 44px; }
.error, .result-status { font-size: 16px; line-height: 1.75; }
.results, .result-content { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.result-top { gap: 12px; flex-wrap: wrap; }
.result-top h2 { font-size: 21px; }
.live { font-size: 13px; }
.payment-card { padding: 28px 28px 0; }
.payment-card p { font-size: 17px; margin-bottom: 9px; }
.payment { font-size: clamp(40px,3.6vw,55px); line-height: 1.3; }
.payment-card span { font-size: 14px; }
.payment-bottom { gap: 14px; flex-wrap: wrap; padding-block: 21px; margin-top: 25px; }
.payment-bottom span { font-size: 13px; gap: 8px; flex-wrap: wrap; }
.payment-bottom strong { font-size: 15px; }
.savings-card { padding: 25px 28px 0; }
.savings-title h3 { font-size: 20px; line-height: 1.5; }
.savings-title > span { min-width: 34px; height: 34px; }
.savings-card p { font-size: 15px; line-height: 1.85; margin-top: 10px; }
.saving-metrics { gap: 16px; margin: 23px 0; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.saving-metrics span { font-size: 14px; line-height: 1.6; }
.saving-metrics strong { font-size: clamp(26px,2.65vw,38px); line-height: 1.4; }
.saving-metrics > div + div { padding-left: 20px; }
.savings-card .savings-insight { font-size: 14px; padding: 14px; }
.payoff { font-size: 14px; gap: 10px; padding-block: 18px; line-height: 1.7; }
.payoff strong { font-size: 16px; }
.payoff > span { font-size: 13px; }
.term-card, .chart-card, .budget-card { padding: 25px 28px; }
.chart-header { gap: 12px; flex-wrap: wrap; }
.chart-header h3 { font-size: 18px; line-height: 1.5; }
.chart-header > span { font-size: 13px; }
.term-metrics { gap: 18px; margin-top: 22px; }
.term-metrics span { font-size: 14px; line-height: 1.6; }
.term-metrics strong { font-size: 20px; }
.legend { font-size: 13px; flex-wrap: wrap; gap: 18px; margin: 20px 0 16px; }
.chart-foot { font-size: 14px; padding-bottom: 0; line-height: 1.8; margin-top: 12px; }
.budget-total { font-size: 38px; }
.budget-lines > div { font-size: 14px; padding-block: 9px; }
.comparison-section { margin-top: 38px; padding-block: 35px; }
.comparison-heading h2 { font-size: 29px; line-height: 1.4; }
.comparison-badge { font-size: 14px; }
.section-description { font-size: 16px; }
.comparison-grid { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.comparison-card { padding: 23px 19px; }
.comparison-card h3 { font-size: 18px; }
.comparison-card-heading > span { font-size: 13px; }
.comparison-payment { font-size: 30px; margin-top: 24px; }
.comparison-card > p { font-size: 14px; }
.comparison-card dl > div { font-size: 13px; flex-direction: column; gap: 3px; padding-block: 8px; }
.comparison-card dd { font-size: 15px; }
.comparison-card > button { font-size: 15px; min-height: 48px; margin-top: 22px; }
.comparison-card.unavailable p { font-size: 15px; }
.schedule-details { padding: 24px; }
.schedule-details > summary { font-size: 17px; }
.table-scroll table { font-size: 14px; }
.under-calculator { font-size: 14px; gap: 15px; flex-wrap: wrap; }
.under-calculator button { font-size: 15px; min-height: 44px; }
.learn { margin-top: 48px; padding-block: 40px; }
.learn .eyebrow { font-size: 12px; }
.learn > h2 { font-size: 32px; line-height: 1.4; }
.guide-grid { gap: 20px; }
.guide-grid article { padding: 26px; }
.guide-grid h3 { font-size: 18px; line-height: 1.5; }
.guide-grid p { font-size: 15px; line-height: 1.9; }
.guide-icon { width: 40px; height: 40px; font-size: 26px; }
.methodology h2 { font-size: 24px; line-height: 1.5; }
.methodology summary { font-size: 16px; padding-block: 4px; }
.methodology p { font-size: 15px; line-height: 1.9; }
.about { padding: 29px; }
.about h2 { font-size: 22px; line-height: 1.5; }
.about p { font-size: 15px; line-height: 1.8; }
.about > a { font-size: 15px; }
footer { max-width: 1320px; font-size: 14px; gap: 23px; padding: 32px 36px; }
footer .brand-name { font-size: 18px; }
footer .brand-name > span { font-size: 10px; }
footer > button { font-size: 14px; min-height: 44px; }
footer .disclaimer { font-size: 13px; line-height: 1.85; }
dialog { max-width: 560px; }
dialog h2 { font-size: 24px; }
dialog p { font-size: 16px; }
.empty-state { display: flex; align-items: center; flex-direction: column; text-align: center; padding: 60px 35px; background: #fff; border: 2px dashed #cddfd5; border-radius: 22px; min-height: 530px; justify-content: center; }
.empty-state-icon { width: 95px; height: 95px; padding: 12px; border-radius: 24px; color: #398765; background: #e7f6ed; margin-bottom: 24px; }
.empty-eyebrow { font-size: 12px; letter-spacing: 1.6px; color: #5b7c6a; font-weight: 700; }
.empty-state h3 { font: 700 30px/1.35 'Manrope',sans-serif; letter-spacing: -.8px; margin: 10px 0 14px; }
.empty-state > p { font-size: 17px; line-height: 1.9; max-width: 410px; color: #577362; }
.empty-checklist { display: flex; flex-direction: column; text-align: left; gap: 10px; font-size: 14px; margin-top: 15px; color: #52735e; }
[hidden] { display: none !important; }
@media(max-width:1150px) { .intro-art { display: none; } .intro p { max-width: 850px; } .term-metrics { grid-template-columns: 1fr 1fr; } .term-metrics > div:last-child { grid-column: 1/-1; } .design-switcher { flex-direction: column; align-items: flex-start; } .design-options { width: 100%; } .design-options button { flex: 1; justify-content: center; } }
@media(max-width:1000px) { header .canadian { display: none; } .calculator { grid-template-columns: 1fr; } .inputs { padding: 30px; } .comparison-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .result-content { gap: 23px; } .term-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); } .term-metrics > div:last-child { grid-column: auto; } .saving-metrics strong { font-size: 35px; } .comparison-card dl > div { flex-direction: row; flex-wrap: wrap; } .guide-grid { grid-template-columns: 1fr; } .guide-grid article { position: relative; padding: 25px 25px 25px 88px; } .guide-icon { position: absolute; left: 25px; top: 25px; } .intro p { max-width: 100%; } .intro p .desktop { display: none; } }
@media(max-width:640px) { main { padding-inline: 20px; } header { height: 90px; padding-inline: 20px; gap: 12px; } .brand-name { font-size: 18px; } .brand-name > span { font-size: 10px; } .brand-mark { width: 37px; height: 37px; font-size: 26px; } .breadcrumb { font-size: 12px; gap: 8px; } .design-switcher { padding: 18px 14px; gap: 15px; } .design-switcher > div > p { font-size: 19px; } .design-options { gap: 7px; } .design-options button { flex-direction: column; padding: 13px 7px; text-align: center; font-size: 14px; gap: 8px; position: relative; } .design-options small { display: none; } .theme-check { position: absolute; right: 5px; top: 4px; font-size: 11px; } .theme-swatch { width: 25px; height: 25px; } .intro { padding-block: 35px; } h1 { font-size: 43px; letter-spacing: -1.9px; } .intro p { font-size: 17px; } .eyebrow { font-size: 11px; } .trust { font-size: 12px; gap: 7px; } .trust > span { padding: 6px 8px; } .tool-heading h2 { font-size: 25px; max-width: none; } .tool-tag { font-size: 11px; } .inputs { padding: 24px 20px; } .section-heading h2 { font-size: 21px; } .two-fields { gap: 12px; } label { font-size: 16px; } label span { font-size: 13px; } .input-wrap { padding-inline: 12px; } .mode-switch button { font-size: 14px; } .down-label > span { font-size: 13px; } .loan-breakdown > div { font-size: 13px; } .loan-breakdown .loan-total { font-size: 16px; } .payment-card { padding: 25px 23px 0; } .payment { font-size: 44px; } .payment-bottom { gap: 12px; } .payment-bottom span { font-size: 13px; } .payment-bottom strong { font-size: 14px; } .result-top h2 { font-size: 20px; } .live { font-size: 12px; } .savings-card { padding: 23px 22px 0; } .savings-title h3 { font-size: 19px; } .saving-metrics { gap: 12px; } .saving-metrics strong { font-size: 28px; } .saving-metrics > div + div { padding-left: 13px; } .saving-metrics span { font-size: 13px; } .payoff > span { margin-left: 0; } .chart-card,.term-card,.budget-card { padding: 23px 20px; } .term-metrics { grid-template-columns: 1fr 1fr; } .term-metrics > div:last-child { grid-column: 1/-1; } .term-metrics strong { font-size: 20px; } .chart-header h3 { font-size: 18px; } .legend { font-size: 12px; gap: 12px; } .chart-foot { font-size: 14px; } .budget-lines > div { font-size: 14px; } .comparison-heading h2 { font-size: 26px; } .comparison-badge { display: none; } .comparison-grid { gap: 12px; } .comparison-card { padding: 20px 15px; } .comparison-payment { font-size: 27px; } .comparison-card dl > div { flex-direction: column; font-size: 13px; } .comparison-card dd { font-size: 15px; } .comparison-card h3 { font-size: 17px; } .comparison-card > button { font-size: 14px; } .schedule-details { padding: 20px; } .schedule-details > summary { font-size: 16px; } .learn > h2 { font-size: 28px; } .about { padding: 24px 20px; } .about h2 { font-size: 21px; } .about .brand-icon { font-size: 30px; } footer { padding: 28px 20px; font-size: 13px; } footer > span { max-width: none; font-size: 13px; } footer .disclaimer { font-size: 13px; } .empty-state { padding: 40px 24px; min-height: 470px; } .empty-state h3 { font-size: 28px; } }
@media(max-width:380px) { h1 { font-size: 37px; } main { padding-inline: 15px; } header { padding-inline: 15px; } .brand-name { font-size: 16px; } .brand { gap: 8px; } .saving-metrics { grid-template-columns: 1fr; gap: 20px; } .saving-metrics > div + div { border-left: 0; padding-left: 0; } .comparison-grid { grid-template-columns: 1fr; } .two-fields { grid-template-columns: 1fr; gap: 22px; } .down-inputs { grid-template-columns: minmax(0,1.4fr) minmax(0,1fr); } }
