.ca-home {
  --ca-ink: #17372a;
  --ca-muted: #435a4e;
  --ca-pine: #184534;
  --ca-sage: #e9f0e5;
  --ca-paper: #fbfaf6;
  --ca-line: #c7d5c9;
  color: var(--ca-ink);
  font-size: 16px;
  line-height: 1.55;
}
.ca-home, .ca-home * { box-sizing: border-box; }
/* The existing Loan Products section owns its own typography and contrast. */
.ca-home > :where(:not(.home-products)) :is(h1, h2, h3, p, figure) { margin: 0; }
.ca-home > :where(:not(.home-products)) :is(h1, h2, h3) { color: inherit; line-height: 1.12; text-wrap: balance; }
.ca-home > :where(:not(.home-products)) h2 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); letter-spacing: -.032em; font-weight: 750; }
.ca-home > :where(:not(.home-products)) h3 { font-size: 1.2rem; font-weight: 700; }
.ca-home > :where(:not(.home-products)) p { color: var(--ca-muted); font-size: 1rem; line-height: 1.55; }
.ca-home ::selection { background: #c8e2c9; color: var(--ca-ink); }
.ca-home :focus-visible { outline: 3px solid #427750; outline-offset: 4px; }
.ca-wrap { width: min(1170px, calc(100% - 52px)); margin-inline: auto; }
.ca-hero { background: var(--ca-sage); padding-block: clamp(2rem, 5vw, 4.5rem); }
.ca-hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; align-items: center; gap: clamp(1.8rem, 4vw, 4.25rem); }
.ca-hero h1 { font-size: clamp(2.65rem, 4.25vw, 3.45rem); font-weight: 760; letter-spacing: -.04em; }
.ca-hero h1 span { display: block; color: #385e48; font-size: .68em; margin-top: .12em; }
.ca-hero-copy > p { margin-top: 20px; max-width: 39ch; font-size: clamp(1rem, 1.35vw, 1.18rem); }
.ca-hero-copy .ca-role { margin-top: 16px; font-size: .9rem; }
.ca-hero-photo { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px; }
.ca-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 24px; }
.ca-button, .ca-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: .65em;
  min-height: 48px;
  font-size: .95rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.ca-button { padding: .75rem 1.05rem; border-radius: 8px; background: var(--ca-pine); color: #fff; }
.ca-home .ca-button:hover { color: #fff; background: #103729; }
.ca-secondary { color: var(--ca-pine); text-decoration: underline; text-underline-offset: .23em; }
.ca-secondary:hover { color: #102b20; }
.ca-section { padding-block: clamp(2.7rem, 6vw, 5.1rem); }
.ca-intro p, .ca-answers h2 + p { margin-top: .7rem; max-width: 62ch; }
.ca-calculator { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); margin-top: 24px; border: 1px solid var(--ca-line); border-radius: 16px; background: var(--ca-paper); }
.ca-inputs, .ca-results { min-width: 0; padding: clamp(1rem, 3vw, 2.1rem); }
.ca-inputs { display: grid; gap: 15px; align-content: start; }
.ca-input label { display: block; font-weight: 700; }
.ca-input p, .ca-home .ca-note, .ca-home .ca-source { font-size: .875rem; }
.ca-field { position: relative; margin-top: 5px; }
.ca-field span { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ca-muted); }
.ca-field input {
  width: 100%;
  min-height: 48px;
  padding: 8px 12px 8px 30px;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ca-ink);
  background: white;
  border: 1px solid #879d8c;
  border-radius: 7px;
  accent-color: var(--ca-pine);
}
.ca-field input[aria-invalid="true"] { border-color: #974130; }
.ca-results { background: #edf3eb; border-radius: 0 15px 15px 0; font-variant-numeric: tabular-nums; }
.ca-total { display: grid; gap: 4px; }
.ca-total span { color: var(--ca-muted); font-weight: 650; }
.ca-total strong { font-size: clamp(2rem, 5vw, 3.15rem); letter-spacing: -.035em; line-height: 1.15; overflow-wrap: anywhere; }
.ca-home .ca-chart { margin-top: 20px; }
.ca-chart figcaption { margin-bottom: 10px; font-weight: 700; }
.ca-bar-label { display: flex; justify-content: space-between; align-items: baseline; gap: 4px 10px; font-size: .875rem; }
.ca-bar { display: flex; height: 13px; margin: 4px 0 12px; border-radius: 5px; overflow: hidden; background: #d5e3d6; }
.ca-bar span { display: block; transition: width 180ms ease-out; }
#ca-principal-bar { width: 75%; background: #245340; }
#ca-fee-bar { width: 11.25%; background: #a16b38; }
#ca-budget-bar { width: 100%; background: #568063; }
.ca-legend { display: flex; flex-wrap: wrap; gap: 5px 16px; font-size: .82rem; color: var(--ca-muted); }
.ca-legend span::before { content: ""; display: inline-block; width: .6em; height: .6em; border-radius: 2px; margin-right: .38em; background: #245340; }
.ca-legend .ca-fee-key::before { background: #a16b38; }
.ca-home .ca-result { margin-top: 14px; padding-top: 11px; border-top: 1px solid var(--ca-line); color: var(--ca-ink); font-weight: 700; }
.ca-home .ca-result.ca-shortfall { color: #87301d; }
.ca-announcement { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ca-home .ca-source { margin-top: 12px; }
.ca-source a, .ca-faq p a { color: var(--ca-pine); text-decoration: underline; text-underline-offset: .17em; }
.ca-process { padding-block: clamp(2rem, 5vw, 4rem); background: var(--ca-sage); }
.ca-home .ca-process-intro { margin-top: .65rem; }
.ca-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 26px 0 0; padding: 0; }
.ca-steps li { position: relative; }
.ca-step-number { display: grid; place-items: center; width: 37px; height: 37px; position: relative; z-index: 1; border-radius: 50%; background: var(--ca-pine); color: white; font-weight: 700; }
.ca-steps li:not(:last-child)::after { content: ""; position: absolute; inset: 18px -24px auto 38px; height: 1px; background: #8fab94; }
.ca-steps h3 { margin-block: 12px 6px; }
.ca-steps p { max-width: 32ch; }
.ca-answers { display: grid; grid-template-columns: 1fr 1.45fr; gap: clamp(1.25rem, 4vw, 3.5rem); }
.ca-faq details { border-top: 1px solid var(--ca-line); }
.ca-faq details:last-child { border-bottom: 1px solid var(--ca-line); }
.ca-faq summary { padding-block: 14px; cursor: pointer; font-weight: 700; }
.ca-faq details p { padding-bottom: 14px; }
.ca-close { padding-block: clamp(1.8rem, 4vw, 3.3rem); background: #14392b; color: white; }
.ca-close .ca-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.ca-close p { color: #dceade; margin-top: 8px; }
.ca-close .ca-button { color: #17372a; background: #e8f0e5; }
.ca-home .ca-close .ca-button:hover { color: #17372a; background: white; }
.ca-close :focus-visible { outline-color: #bce0bc; }

@media (max-width: 820px) {
  .ca-hero-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .ca-hero h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); }
  .ca-hero-photo { aspect-ratio: 4 / 5; }
}
@media (max-width: 650px) {
  .ca-wrap { width: calc(100% - 36px); }
  .ca-hero-grid, .ca-calculator, .ca-answers { grid-template-columns: minmax(0, 1fr); }
  .ca-hero-photo { aspect-ratio: 16 / 10; }
  .ca-results { border-radius: 0 0 15px 15px; }
  .ca-steps { display: block; }
  .ca-steps li { padding: 3px 0 22px 51px; }
  .ca-steps li:last-child { padding-bottom: 0; }
  .ca-step-number { position: absolute; left: 0; top: 0; }
  .ca-steps li:not(:last-child)::after { inset: 37px auto 0 18px; width: 1px; height: auto; }
  .ca-steps h3 { margin-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ca-bar span { transition: none; }
}
