
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { font-size: 16px; }
  /* Original Claude Design body was dark navy + flex-centered to fake the
     preview chrome. In production WordPress that bleeds onto the inner
     pages (refinance/contact/etc) which don't wrap their own background,
     and centers the homepage into a narrow column. Reset both. */
  body { font-family: 'DM Sans', sans-serif; background: #fff; min-height: 100vh; }
  /* Make the React mount points and site-content fill the viewport instead
     of sitting in the centered 1280px device-frame from the design preview. */
  #cbm-homepage-root, #cbm-refinance-root, #cbm-firsthome-root,
  #cbm-investment-root, #cbm-contact-root { width: 100%; display: block; }
  .site-content { width: 100% !important; min-width: 0 !important; }

  .stage-controls {
    width: 100%; display: flex; align-items: center; justify-content: center;
    gap: 12px; padding: 14px 24px; background: #111;
    position: sticky; top: 0; z-index: 1000;
    border-bottom: 1px solid #2a2a3a;
  }
  .stage-label { color: #666; font-size: 12px; font-family: 'DM Sans', sans-serif; letter-spacing: .05em; text-transform: uppercase; margin-right: 4px; }
  .stage-btn {
    background: #222; border: 1px solid #333; color: #aaa;
    padding: 5px 14px; border-radius: 6px; font-size: 12px; cursor: pointer;
    font-family: 'DM Sans', sans-serif; transition: all .15s;
  }
  .stage-btn:hover { background: #2a2a3a; color: #fff; border-color: #555; }
  .stage-btn.active { background: #3a5aff22; border-color: #5577ff; color: #7799ff; }
  .stage-sep { width: 1px; height: 20px; background: #2a2a3a; }

  .preview-wrap {
    display: flex; justify-content: center; align-items: flex-start;
    padding: 32px 24px; width: 100%;
  }
  .device-frame {
    background: #fff; overflow: hidden; transition: all .3s cubic-bezier(.4,0,.2,1);
    position: relative;
  }
  .device-frame.desktop { width: 1280px; border-radius: 8px; box-shadow: 0 40px 120px #0008, 0 0 0 1px #fff1; }
  .device-frame.mobile {
    width: 390px; border-radius: 44px; box-shadow: 0 40px 120px #0008, 0 0 0 10px #222, 0 0 0 11px #333;
    overflow: hidden;
  }
  .mobile-notch {
    position: absolute; top: 0; left: 50%; transform: translateX(-50%);
    width: 120px; height: 30px; background: #222; border-radius: 0 0 20px 20px; z-index: 99;
    display: none;
  }
  .device-frame.mobile .mobile-notch { display: block; }
  .device-frame.mobile .site-content { padding-top: 30px; }

  /* ===================== SITE STYLES ===================== */
  .site-content { position: relative; }

  /* NAV */
  .nav {
    position: sticky; top: 0; z-index: 50;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 48px; height: 68px;
    border-bottom: 1px solid transparent;
    transition: all .2s;
  }
  .nav.scrolled { backdrop-filter: blur(12px); border-bottom-color: var(--nav-border); }
  .nav-logo {
    display: flex; align-items: center; gap: 10px; text-decoration: none;
    font-family: 'DM Serif Display', serif; font-size: 22px; letter-spacing: -.3px;
  }
  .nav-logo-mark {
    width: 34px; height: 34px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-family: 'DM Serif Display', serif; font-size: 18px; font-weight: 400;
    flex-shrink: 0;
  }
  .nav-links { display: flex; align-items: center; gap: 32px; }
  .nav-link { font-size: 14px; font-weight: 500; text-decoration: none; opacity: .8; transition: opacity .15s; }
  .nav-link:hover { opacity: 1; }
  .nav-cta {
    padding: 9px 22px; border-radius: 8px; font-size: 14px; font-weight: 600;
    text-decoration: none; transition: all .15s; cursor: pointer; border: none;
  }
  .nav-phone { font-size: 14px; font-weight: 600; }
  .mobile-nav { display: none; }
  .hamburger { background: none; border: none; cursor: pointer; padding: 4px; }

  /* HERO */
  .hero {
    padding: 80px 48px 0;
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
    align-items: center; min-height: 560px;
    position: relative; overflow: hidden;
  }
  .hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
  }
  .hero-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
  .hero h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(36px, 4vw, 56px); line-height: 1.08; letter-spacing: -.5px;
    margin-bottom: 20px;
  }
  .hero-sub { font-size: 18px; line-height: 1.6; opacity: .75; margin-bottom: 36px; max-width: 420px; }
  .hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
  .btn-primary {
    padding: 14px 28px; border-radius: 10px; font-size: 15px; font-weight: 600;
    text-decoration: none; transition: all .15s; display: inline-flex; align-items: center; gap: 8px;
    cursor: pointer; border: none;
  }
  .btn-secondary {
    padding: 14px 24px; border-radius: 10px; font-size: 15px; font-weight: 500;
    text-decoration: none; transition: all .15s; display: inline-flex; align-items: center; gap: 6px;
    background: transparent; cursor: pointer; border: none;
  }
  .hero-trust { display: flex; align-items: center; gap: 20px; margin-top: 40px; padding-top: 32px; border-top: 1px solid; }
  .trust-item { display: flex; flex-direction: column; }
  .trust-num { font-family: 'DM Serif Display', serif; font-size: 28px; }
  .trust-label { font-size: 12px; opacity: .6; }

  /* CALCULATOR CARD */
  .calc-card {
    border-radius: 20px; padding: 36px; box-shadow: 0 24px 64px #0002;
    position: relative; overflow: hidden;
  }
  .calc-title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 24px; opacity: .6; }
  .calc-row { margin-bottom: 20px; }
  .calc-label { font-size: 13px; font-weight: 500; margin-bottom: 8px; display: block; opacity: .7; }
  .calc-slider-wrap { position: relative; }
  .calc-slider {
    width: 100%; -webkit-appearance: none; appearance: none;
    height: 4px; border-radius: 2px; outline: none; cursor: pointer;
  }
  .calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
    cursor: pointer; box-shadow: 0 2px 8px #0003;
  }
  .calc-amount-display {
    font-family: 'DM Serif Display', serif; font-size: 36px; text-align: right;
    margin-bottom: 4px;
  }
  .calc-amount-sub { font-size: 12px; opacity: .5; text-align: right; margin-bottom: 20px; }
  .calc-result {
    border-radius: 14px; padding: 24px; text-align: center; margin-top: 8px;
  }
  .calc-result-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; opacity: .7; }
  .calc-result-amount { font-family: 'DM Serif Display', serif; font-size: 52px; line-height: 1; margin-bottom: 4px; }
  .calc-result-sub { font-size: 13px; opacity: .6; }
  .calc-cta {
    width: 100%; margin-top: 20px; padding: 14px; border-radius: 10px;
    font-size: 15px; font-weight: 600; cursor: pointer; border: none;
    transition: all .15s;
  }
  .calc-segment { display: flex; border-radius: 8px; padding: 3px; gap: 2px; margin-bottom: 20px; }
  .calc-seg-btn {
    flex: 1; padding: 8px; border-radius: 6px; font-size: 12px; font-weight: 500;
    cursor: pointer; border: none; transition: all .15s; text-align: center;
  }

  /* WAVE DIVIDER */
  .wave { display: block; width: 100%; margin-bottom: -2px; }

  /* HOW IT WORKS */
  .section { padding: 96px 48px; }
  .section-eyebrow {
    font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    margin-bottom: 12px;
  }
  .section-title { font-family: 'DM Serif Display', serif; font-size: clamp(28px, 3vw, 44px); line-height: 1.1; margin-bottom: 16px; }
  .section-sub { font-size: 17px; line-height: 1.65; opacity: .65; max-width: 560px; }
  .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 64px; }
  .step-card { border-radius: 16px; padding: 32px; }
  .step-num { font-family: 'DM Serif Display', serif; font-size: 48px; line-height: 1; margin-bottom: 20px; }
  .step-title { font-size: 18px; font-weight: 600; margin-bottom: 10px; }
  .step-desc { font-size: 15px; line-height: 1.65; opacity: .65; }

  /* WHY US */
  .why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; }
  .why-item { border-radius: 16px; padding: 32px; display: flex; gap: 20px; align-items: flex-start; }
  .why-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 20px; }
  .why-content .why-title { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
  .why-content .why-desc { font-size: 14px; line-height: 1.65; opacity: .65; }

  /* LENDERS */
  .lenders-section { padding: 64px 48px; }
  .lenders-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 16px; margin-top: 40px; }
  .lender-badge {
    border-radius: 10px; padding: 16px 10px; text-align: center;
    font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
    transition: all .15s;
  }
  .lender-badge:hover { transform: translateY(-2px); }

  /* TESTIMONIALS */
  .testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 56px; }
  .testimonial-card { border-radius: 16px; padding: 28px; }
  .testimonial-quote { font-size: 15px; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
  .testimonial-author { display: flex; align-items: center; gap: 12px; }
  .testimonial-avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 16px; }
  .testimonial-name { font-size: 14px; font-weight: 600; }
  .testimonial-detail { font-size: 12px; opacity: .5; }
  .stars { color: #f59e0b; font-size: 14px; margin-bottom: 14px; }

  /* CTA BANNER */
  .cta-section { padding: 80px 48px; text-align: center; }
  .cta-section h2 { font-family: 'DM Serif Display', serif; font-size: clamp(28px, 3.5vw, 48px); margin-bottom: 16px; line-height: 1.1; }
  .cta-section p { font-size: 18px; opacity: .7; margin-bottom: 36px; }
  .cta-actions { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

  /* FOOTER */
  .footer { padding: 64px 48px 32px; }
  .footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid; }
  .footer-brand p { font-size: 14px; line-height: 1.65; opacity: .5; margin-top: 14px; max-width: 280px; }
  .footer-col h4 { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; opacity: .4; }
  .footer-col a { display: block; font-size: 14px; opacity: .6; text-decoration: none; margin-bottom: 10px; transition: opacity .15s; }
  .footer-col a:hover { opacity: 1; }
  .footer-bottom { padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: gap; gap: 12px; }
  .footer-bottom p { font-size: 12px; opacity: .35; line-height: 1.6; }
  .footer-links { display: flex; gap: 20px; }
  .footer-links a { font-size: 12px; opacity: .4; text-decoration: none; }
  .footer-links a:hover { opacity: .8; }

  /* COMPARE MODAL */
  .compare-overlay {
    position: relative; z-index: 200;
    display: flex; flex-direction: column;
    min-height: 100vh;
    animation: fadeUp .22s ease;
  }
  @keyframes fadeUp { from { opacity:0; transform:translateY(16px); } to { opacity:1; transform:none; } }
  .compare-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 48px; height: 68px; flex-shrink: 0;
    border-bottom: 1px solid;
  }
  .compare-header h2 { font-family:'DM Serif Display',serif; font-size:22px; }
  .compare-close {
    width:36px; height:36px; border-radius:8px; border:none; cursor:pointer;
    display:flex; align-items:center; justify-content:center; font-size:18px;
    transition: all .15s;
  }
  .compare-body { flex:1; overflow-y:auto; padding: 32px 48px 48px; }
  .compare-filters {
    display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
    padding: 24px; border-radius: 14px; margin-bottom: 28px;
  }
  .filter-group { display:flex; flex-direction:column; gap:6px; }
  .filter-label { font-size:11px; font-weight:600; letter-spacing:.07em; text-transform:uppercase; opacity:.5; }
  .filter-select {
    padding: 9px 14px; border-radius:8px; font-size:14px; font-family:'DM Sans',sans-serif;
    cursor:pointer; outline:none; border: 1px solid; min-width:140px;
    -webkit-appearance:none; appearance:none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat:no-repeat; background-position: right 12px center;
    padding-right:32px;
  }
  .filter-amount-wrap { display:flex; align-items:center; gap:0; }
  .filter-amount-prefix {
    padding: 9px 10px 9px 14px; border-radius:8px 0 0 8px; font-size:14px;
    border: 1px solid; border-right:none; font-weight:600;
  }
  .filter-amount {
    padding:9px 14px; border-radius:0 8px 8px 0; font-size:14px;
    font-family:'DM Sans',sans-serif; border: 1px solid; outline:none; width:110px;
  }
  .compare-table-wrap { border-radius:14px; overflow:hidden; border:1px solid; }
  .compare-table { width:100%; border-collapse:collapse; }
  .compare-table th {
    padding:12px 16px; text-align:left; font-size:11px; font-weight:600;
    letter-spacing:.07em; text-transform:uppercase; cursor:pointer;
    white-space:nowrap; user-select:none;
  }
  .compare-table th:hover { opacity:1; }
  .compare-table th .sort-icon { margin-left:4px; opacity:.4; font-style:normal; }
  .compare-table th.sorted .sort-icon { opacity:1; }
  .compare-table td { padding:16px; font-size:14px; border-top:1px solid; }
  .compare-table tr:hover td { }
  .lender-name { font-weight:700; font-size:15px; }
  .loan-type-tag {
    display:inline-block; padding:2px 8px; border-radius:4px;
    font-size:11px; font-weight:600; margin-top:4px;
  }
  .rate-cell { font-family:'DM Serif Display',serif; font-size:22px; font-weight:400; }
  .comp-rate { font-size:11px; opacity:.5; margin-top:2px; }
  .repayment-cell { font-size:15px; font-weight:600; }
  .repayment-sub { font-size:11px; opacity:.5; }
  .cashback-cell { font-family:'DM Serif Display',serif; font-size:20px; }
  .badge-best { display:inline-block; padding:3px 8px; border-radius:4px; font-size:10px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; margin-left:6px; vertical-align:middle; }
  .feature-tags { display:flex; gap:4px; flex-wrap:wrap; }
  .feature-tag { padding:3px 8px; border-radius:4px; font-size:11px; font-weight:500; }
  .get-loan-btn {
    padding:9px 18px; border-radius:8px; font-size:13px; font-weight:600;
    border:none; cursor:pointer; white-space:nowrap; transition:all .15s;
  }
  .compare-summary { display:flex; gap:16px; margin-bottom:20px; flex-wrap:wrap; }
  .compare-stat { padding:14px 20px; border-radius:10px; flex:1; min-width:160px; }
  .compare-stat-label { font-size:11px; opacity:.5; font-weight:600; letter-spacing:.05em; text-transform:uppercase; }
  .compare-stat-value { font-family:'DM Serif Display',serif; font-size:26px; margin-top:4px; }

  /* MOBILE OVERRIDES */
  @media (max-width: 480px) {
    .compare-header { padding: 0 20px; }
    .compare-body { padding: 20px; }
    .compare-filters { padding: 16px; gap:12px; }
    .compare-table-wrap { overflow-x: auto; }
    .compare-table th, .compare-table td { padding: 12px; }
  }
    .nav { padding: 0 20px; height: 60px; }
    .nav-links, .nav-phone { display: none; }
    .mobile-nav { display: flex; }
    .hero { grid-template-columns: 1fr; padding: 40px 20px 0; gap: 32px; min-height: unset; }
    .hero h1 { font-size: 34px; }
    .hero-sub { font-size: 16px; }

  /* ================================================================
   * INNER PAGE STYLES — scoped to the four React mount IDs so they
   * never leak onto the homepage's identically-named classes
   * (.hero, .section, .cta-section, .footer-top, etc.)
   * ================================================================ */
  .cbm-inner h1, .cbm-inner h2, .cbm-inner h3 { font-family: 'DM Serif Display', serif; font-weight: 400; line-height: 1.15; }
  .cbm-inner p { line-height: 1.65; }
  .cbm-inner a { color: #1a6e3e; text-decoration: none; }

  /* Apply .cbm-inner via the four mount IDs — this is the only place
     the global selector .hero etc. can be overridden by the inner pages. */
  #cbm-contact-root, #cbm-refinance-root, #cbm-firsthome-root, #cbm-investment-root {
    background: #fff; color: #0f2040; font-family: 'DM Sans', sans-serif;
  }

  /* Scope every rule below to the four mount IDs. Each rule is
     duplicated four times — verbose, but avoids a build step and
     guarantees nothing leaks onto the homepage. */
  #cbm-contact-root .hero, #cbm-refinance-root .hero, #cbm-firsthome-root .hero, #cbm-investment-root .hero,
  #cbm-contact-root .contact-hero {
    max-width: 1200px; margin: 0 auto;
    padding: 64px 32px 32px; text-align: center;
    display: block;
  }
  #cbm-contact-root .hero h1, #cbm-refinance-root .hero h1, #cbm-firsthome-root .hero h1, #cbm-investment-root .hero h1,
  #cbm-contact-root .contact-hero h1 { font-size: 56px; margin-bottom: 16px; color: #0f2040; }
  #cbm-contact-root .hero p, #cbm-refinance-root .hero p, #cbm-firsthome-root .hero p, #cbm-investment-root .hero p,
  #cbm-contact-root .contact-hero p,
  #cbm-contact-root .hero-sub, #cbm-refinance-root .hero-sub, #cbm-firsthome-root .hero-sub, #cbm-investment-root .hero-sub {
    font-size: 19px; opacity: .7; max-width: 720px; margin: 0 auto 28px;
  }
  #cbm-contact-root .hero-badge, #cbm-refinance-root .hero-badge, #cbm-firsthome-root .hero-badge, #cbm-investment-root .hero-badge {
    display: inline-block; padding: 6px 16px; border-radius: 100px;
    background: rgba(26,110,62,.1); color: #1a6e3e;
    font-size: 12px; font-weight: 600; letter-spacing: .05em;
    text-transform: uppercase; margin-bottom: 16px;
  }
  #cbm-contact-root .hero-actions, #cbm-refinance-root .hero-actions, #cbm-firsthome-root .hero-actions, #cbm-investment-root .hero-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px;
  }
  #cbm-contact-root .hero-trust, #cbm-refinance-root .hero-trust, #cbm-firsthome-root .hero-trust, #cbm-investment-root .hero-trust {
    display: flex; gap: 32px; justify-content: center; flex-wrap: wrap;
    margin: 32px auto 0; padding-top: 24px;
    border-top: 1px solid rgba(15,32,64,.08); max-width: 720px;
  }

  /* SECTIONS — scoped */
  #cbm-contact-root .section, #cbm-refinance-root .section, #cbm-firsthome-root .section, #cbm-investment-root .section {
    max-width: 1200px; margin: 0 auto; padding: 64px 32px;
  }
  #cbm-contact-root .section-eyebrow, #cbm-refinance-root .section-eyebrow, #cbm-firsthome-root .section-eyebrow, #cbm-investment-root .section-eyebrow {
    font-size: 12px; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: #1a6e3e; margin-bottom: 12px;
  }
  #cbm-contact-root .section-title, #cbm-refinance-root .section-title, #cbm-firsthome-root .section-title, #cbm-investment-root .section-title {
    font-family: 'DM Serif Display', serif; font-size: 40px; line-height: 1.15; color: #0f2040; margin-bottom: 16px;
  }
  #cbm-contact-root .section-sub, #cbm-refinance-root .section-sub, #cbm-firsthome-root .section-sub, #cbm-investment-root .section-sub {
    font-size: 17px; opacity: .65; max-width: 720px; line-height: 1.65; margin-bottom: 40px;
  }

  /* CONTACT — two-column body */
  #cbm-contact-root .contact-body {
    max-width: 1200px; margin: 0 auto;
    padding: 32px 32px 64px;
    display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px;
  }
  #cbm-contact-root .contact-info { display: flex; flex-direction: column; gap: 16px; }
  #cbm-contact-root .info-card {
    background: #f7f8fc; border: 1px solid rgba(15,32,64,.06);
    border-radius: 16px; padding: 24px;
  }
  #cbm-contact-root .info-card h3 { font-family: 'DM Serif Display', serif; font-size: 22px; margin-bottom: 8px; color: #0f2040; }
  #cbm-contact-root .info-card p { font-size: 15px; opacity: .75; }
  #cbm-contact-root .info-icon {
    width: 44px; height: 44px; border-radius: 10px;
    background: rgba(26,110,62,.1); color: #1a6e3e;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; margin-bottom: 12px;
  }
  #cbm-contact-root .hours-grid { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; column-gap: 24px; margin-top: 8px; }
  #cbm-contact-root .hours-item { display: contents; }
  #cbm-contact-root .hours-day { font-size: 14px; font-weight: 600; color: #0f2040; }
  #cbm-contact-root .hours-time { font-size: 14px; opacity: .65; text-align: right; }

  /* FORM CARD — scoped to all four roots since the form pattern shows up on more than one inner page */
  #cbm-contact-root .form-card, #cbm-refinance-root .form-card, #cbm-firsthome-root .form-card, #cbm-investment-root .form-card {
    background: #fff; border: 1px solid rgba(15,32,64,.08);
    border-radius: 20px; padding: 36px;
    box-shadow: 0 1px 0 rgba(15,32,64,.02), 0 12px 40px rgba(15,32,64,.05);
  }
  #cbm-contact-root .form-card h2, #cbm-contact-root .form-card h3,
  #cbm-refinance-root .form-card h2, #cbm-firsthome-root .form-card h2, #cbm-investment-root .form-card h2 {
    font-family: 'DM Serif Display', serif; font-size: 28px; color: #0f2040; margin-bottom: 4px;
  }
  #cbm-contact-root .form-card > p, #cbm-refinance-root .form-card > p, #cbm-firsthome-root .form-card > p, #cbm-investment-root .form-card > p {
    font-size: 15px; opacity: .65; margin-bottom: 24px;
  }
  #cbm-contact-root .form-row, #cbm-refinance-root .form-row, #cbm-firsthome-root .form-row, #cbm-investment-root .form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px;
  }
  #cbm-contact-root .form-group, #cbm-refinance-root .form-group, #cbm-firsthome-root .form-group, #cbm-investment-root .form-group {
    display: flex; flex-direction: column; margin-bottom: 16px;
  }
  #cbm-contact-root .form-group label, #cbm-refinance-root .form-group label, #cbm-firsthome-root .form-group label, #cbm-investment-root .form-group label,
  #cbm-contact-root .form-row label, #cbm-refinance-root .form-row label, #cbm-firsthome-root .form-row label, #cbm-investment-root .form-row label {
    font-size: 13px; font-weight: 600; color: #0f2040; margin-bottom: 6px;
  }
  #cbm-contact-root .form-input, #cbm-refinance-root .form-input, #cbm-firsthome-root .form-input, #cbm-investment-root .form-input,
  #cbm-contact-root .form-select, #cbm-refinance-root .form-select, #cbm-firsthome-root .form-select, #cbm-investment-root .form-select,
  #cbm-contact-root textarea, #cbm-refinance-root textarea, #cbm-firsthome-root textarea, #cbm-investment-root textarea {
    width: 100%; padding: 12px 14px;
    border: 1px solid rgba(15,32,64,.15); border-radius: 10px;
    font-size: 15px; font-family: 'DM Sans', sans-serif; color: #0f2040;
    background: #fff; transition: border-color .15s, box-shadow .15s;
  }
  #cbm-contact-root .form-input:focus, #cbm-refinance-root .form-input:focus, #cbm-firsthome-root .form-input:focus, #cbm-investment-root .form-input:focus,
  #cbm-contact-root .form-select:focus, #cbm-refinance-root .form-select:focus, #cbm-firsthome-root .form-select:focus, #cbm-investment-root .form-select:focus,
  #cbm-contact-root textarea:focus, #cbm-refinance-root textarea:focus, #cbm-firsthome-root textarea:focus, #cbm-investment-root textarea:focus {
    outline: none; border-color: #1a6e3e; box-shadow: 0 0 0 3px rgba(26,110,62,.12);
  }
  #cbm-contact-root textarea, #cbm-refinance-root textarea, #cbm-firsthome-root textarea, #cbm-investment-root textarea {
    min-height: 100px; resize: vertical;
  }
  #cbm-contact-root .submit-btn, #cbm-refinance-root .submit-btn, #cbm-firsthome-root .submit-btn, #cbm-investment-root .submit-btn,
  #cbm-contact-root .calc-cta-btn, #cbm-refinance-root .calc-cta-btn, #cbm-firsthome-root .calc-cta-btn, #cbm-investment-root .calc-cta-btn {
    width: 100%; padding: 14px 24px; margin-top: 8px;
    background: #1a6e3e; color: #fff;
    border: none; border-radius: 12px; cursor: pointer;
    font-size: 15px; font-weight: 600; font-family: 'DM Sans', sans-serif;
    transition: background .15s, transform .15s;
  }
  #cbm-contact-root .submit-btn:hover, #cbm-refinance-root .submit-btn:hover, #cbm-firsthome-root .submit-btn:hover, #cbm-investment-root .submit-btn:hover,
  #cbm-contact-root .calc-cta-btn:hover, #cbm-refinance-root .calc-cta-btn:hover, #cbm-firsthome-root .calc-cta-btn:hover, #cbm-investment-root .calc-cta-btn:hover {
    background: #145830; transform: translateY(-1px);
  }
  #cbm-contact-root .privacy-note, #cbm-refinance-root .privacy-note, #cbm-firsthome-root .privacy-note, #cbm-investment-root .privacy-note {
    font-size: 12px; opacity: .55; margin-top: 16px; line-height: 1.5;
  }

  /* SUCCESS state */
  #cbm-contact-root .success-msg { text-align: center; padding: 32px 16px; }
  #cbm-contact-root .success-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: #1a6e3e; color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; margin: 0 auto 16px;
  }
  #cbm-contact-root .success-msg h3 { font-family: 'DM Serif Display', serif; font-size: 26px; color: #0f2040; margin-bottom: 8px; }
  #cbm-contact-root .success-msg p { font-size: 15px; opacity: .7; margin-bottom: 16px; }

  /* WHY STRIP */
  #cbm-contact-root .why-strip, #cbm-refinance-root .why-strip, #cbm-firsthome-root .why-strip, #cbm-investment-root .why-strip {
    max-width: 1200px; margin: 0 auto;
    padding: 40px 32px;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
    border-top: 1px solid rgba(15,32,64,.08); border-bottom: 1px solid rgba(15,32,64,.08);
  }
  #cbm-contact-root .why-strip-item, #cbm-refinance-root .why-strip-item, #cbm-firsthome-root .why-strip-item, #cbm-investment-root .why-strip-item {
    text-align: center;
  }
  #cbm-contact-root .why-strip-item .num, #cbm-refinance-root .why-strip-item .num, #cbm-firsthome-root .why-strip-item .num, #cbm-investment-root .why-strip-item .num {
    font-family: 'DM Serif Display', serif; font-size: 36px; color: #1a6e3e; line-height: 1;
  }
  #cbm-contact-root .why-strip-item .lbl, #cbm-refinance-root .why-strip-item .lbl, #cbm-firsthome-root .why-strip-item .lbl, #cbm-investment-root .why-strip-item .lbl {
    font-size: 13px; opacity: .65; margin-top: 6px;
  }

  /* CALC CARD (first home buyer / investment) */
  #cbm-firsthome-root .calc-card, #cbm-investment-root .calc-card {
    background: #fff; border: 1px solid rgba(15,32,64,.08);
    border-radius: 20px; padding: 32px;
    box-shadow: 0 12px 40px rgba(15,32,64,.06);
    max-width: 460px;
  }
  #cbm-firsthome-root .calc-title, #cbm-investment-root .calc-title {
    font-family: 'DM Serif Display', serif; font-size: 26px; color: #0f2040; margin-bottom: 20px;
  }
  #cbm-firsthome-root .calc-label, #cbm-investment-root .calc-label {
    font-size: 13px; font-weight: 600; opacity: .65; display: block; margin-bottom: 6px;
  }
  #cbm-firsthome-root .calc-display, #cbm-investment-root .calc-display {
    font-family: 'DM Serif Display', serif; font-size: 32px; color: #0f2040; margin-bottom: 8px;
  }
  #cbm-firsthome-root .calc-slider, #cbm-investment-root .calc-slider {
    -webkit-appearance: none; appearance: none;
    width: 100%; height: 6px; border-radius: 3px;
    background: #e2e8f0; outline: none; cursor: pointer; margin-bottom: 16px;
  }
  #cbm-firsthome-root .calc-slider::-webkit-slider-thumb, #cbm-investment-root .calc-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 20px; height: 20px; border-radius: 50%;
    background: #1a6e3e; cursor: pointer; box-shadow: 0 2px 8px rgba(26,110,62,.3);
  }
  #cbm-firsthome-root .calc-result, #cbm-investment-root .calc-result {
    background: #0f2040; border-radius: 12px; padding: 20px; margin: 16px 0;
  }
  #cbm-firsthome-root .calc-result-amt, #cbm-investment-root .calc-result-amt {
    font-family: 'DM Serif Display', serif; font-size: 42px; color: #fff; line-height: 1;
  }
  #cbm-firsthome-root .calc-result-sub, #cbm-investment-root .calc-result-sub {
    font-size: 12px; color: rgba(255,255,255,.65); margin-top: 4px;
  }

  /* STEPS */
  #cbm-firsthome-root .steps, #cbm-investment-root .steps, #cbm-refinance-root .steps,
  #cbm-firsthome-root .steps-h, #cbm-investment-root .steps-h, #cbm-refinance-root .steps-h {
    display: grid; gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    margin-top: 32px;
  }
  #cbm-firsthome-root .step, #cbm-investment-root .step, #cbm-refinance-root .step {
    padding: 24px; background: #f7f8fc; border-radius: 16px; border: 1px solid rgba(15,32,64,.05);
  }
  #cbm-firsthome-root .step-num, #cbm-investment-root .step-num, #cbm-refinance-root .step-num {
    font-family: 'DM Serif Display', serif; font-size: 30px; color: #1a6e3e; line-height: 1; margin-bottom: 8px;
  }
  #cbm-firsthome-root .step-title, #cbm-investment-root .step-title, #cbm-refinance-root .step-title {
    font-size: 17px; font-weight: 600; color: #0f2040; margin-bottom: 6px;
  }
  #cbm-firsthome-root .step-desc, #cbm-investment-root .step-desc, #cbm-refinance-root .step-desc {
    font-size: 14px; opacity: .7; line-height: 1.6;
  }

  /* REASONS / WHY US (inner pages) */
  #cbm-firsthome-root .reasons-grid, #cbm-investment-root .reasons-grid, #cbm-refinance-root .reasons-grid {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 32px;
  }
  #cbm-firsthome-root .reason-card, #cbm-investment-root .reason-card, #cbm-refinance-root .reason-card {
    padding: 24px; background: #fff; border: 1px solid rgba(15,32,64,.08); border-radius: 16px;
  }
  #cbm-firsthome-root .reason-icon, #cbm-investment-root .reason-icon, #cbm-refinance-root .reason-icon { font-size: 32px; margin-bottom: 12px; }
  #cbm-firsthome-root .reason-title, #cbm-investment-root .reason-title, #cbm-refinance-root .reason-title {
    font-size: 17px; font-weight: 600; color: #0f2040; margin-bottom: 6px;
  }
  #cbm-firsthome-root .reason-desc, #cbm-investment-root .reason-desc, #cbm-refinance-root .reason-desc {
    font-size: 14px; opacity: .7; line-height: 1.6;
  }

  /* FEATURES */
  #cbm-firsthome-root .features-grid, #cbm-investment-root .features-grid, #cbm-refinance-root .features-grid {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    margin-top: 32px;
  }
  #cbm-firsthome-root .feature-card, #cbm-investment-root .feature-card, #cbm-refinance-root .feature-card {
    padding: 24px; background: #f7f8fc; border-radius: 16px; border: 1px solid rgba(15,32,64,.05);
  }
  #cbm-firsthome-root .feature-icon, #cbm-investment-root .feature-icon, #cbm-refinance-root .feature-icon { font-size: 32px; margin-bottom: 12px; }
  #cbm-firsthome-root .feature-title, #cbm-investment-root .feature-title, #cbm-refinance-root .feature-title {
    font-size: 17px; font-weight: 600; color: #0f2040; margin-bottom: 6px;
  }
  #cbm-firsthome-root .feature-desc, #cbm-investment-root .feature-desc, #cbm-refinance-root .feature-desc {
    font-size: 14px; opacity: .7; line-height: 1.6;
  }

  /* GRANTS (first home buyer) */
  #cbm-firsthome-root .grants-grid {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin-top: 32px;
  }
  #cbm-firsthome-root .grant-card {
    padding: 24px; background: #fff; border: 1px solid rgba(15,32,64,.08); border-radius: 16px;
  }
  #cbm-firsthome-root .grant-tag {
    display: inline-block; padding: 4px 10px; border-radius: 100px;
    background: rgba(26,110,62,.12); color: #1a6e3e;
    font-size: 11px; font-weight: 700; letter-spacing: .05em;
    text-transform: uppercase; margin-bottom: 10px;
  }
  #cbm-firsthome-root .grant-amount {
    font-family: 'DM Serif Display', serif; font-size: 32px; color: #1a6e3e; line-height: 1;
  }
  #cbm-firsthome-root .grant-title { font-size: 17px; font-weight: 600; color: #0f2040; margin: 8px 0 6px; }
  #cbm-firsthome-root .grant-desc { font-size: 14px; opacity: .7; line-height: 1.6; }

  /* LOAN TYPES (investment property) */
  #cbm-investment-root .loan-types {
    display: grid; gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    margin-top: 32px;
  }
  #cbm-investment-root .loan-type-title { font-size: 18px; font-weight: 600; color: #0f2040; margin-bottom: 6px; }
  #cbm-investment-root .loan-type-desc { font-size: 14px; opacity: .7; line-height: 1.6; margin-bottom: 12px; }
  #cbm-investment-root .loan-type-pros { font-size: 13px; line-height: 1.7; opacity: .8; }
  #cbm-investment-root .inv-card {
    padding: 24px; background: #f7f8fc; border-radius: 16px; border: 1px solid rgba(15,32,64,.05);
  }

  /* SAVINGS (refinance) */
  #cbm-refinance-root .savings-card {
    background: #fff; border: 1px solid rgba(15,32,64,.08);
    border-radius: 20px; padding: 32px;
    box-shadow: 0 12px 40px rgba(15,32,64,.06);
    max-width: 460px;
  }
  #cbm-refinance-root .savings-title {
    font-family: 'DM Serif Display', serif; font-size: 24px; color: #0f2040; margin-bottom: 20px;
  }
  #cbm-refinance-root .savings-row {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 0; border-bottom: 1px solid rgba(15,32,64,.06);
  }
  #cbm-refinance-root .savings-label { font-size: 14px; opacity: .75; }
  #cbm-refinance-root .savings-value { font-size: 15px; font-weight: 600; color: #0f2040; }
  #cbm-refinance-root .savings-value.highlight { color: #1a6e3e; font-family: 'DM Serif Display', serif; font-size: 20px; }

  /* FAQ */
  #cbm-firsthome-root .faq, #cbm-investment-root .faq, #cbm-refinance-root .faq { margin-top: 32px; }
  #cbm-firsthome-root .faq-item, #cbm-investment-root .faq-item, #cbm-refinance-root .faq-item {
    border-bottom: 1px solid rgba(15,32,64,.1);
  }
  #cbm-firsthome-root .faq-q, #cbm-investment-root .faq-q, #cbm-refinance-root .faq-q {
    width: 100%; text-align: left; padding: 18px 0;
    background: none; border: none; cursor: pointer;
    font-family: 'DM Sans', sans-serif; font-size: 16px;
    font-weight: 600; color: #0f2040;
    display: flex; justify-content: space-between; align-items: center;
  }
  #cbm-firsthome-root .faq-q span, #cbm-investment-root .faq-q span, #cbm-refinance-root .faq-q span { font-size: 22px; opacity: .55; }
  #cbm-firsthome-root .faq-a, #cbm-investment-root .faq-a, #cbm-refinance-root .faq-a {
    font-size: 15px; opacity: .75; line-height: 1.7; padding: 0 0 20px;
  }

  /* CTA (inner pages) */
  #cbm-firsthome-root .cta, #cbm-investment-root .cta, #cbm-refinance-root .cta, #cbm-contact-root .cta,
  #cbm-firsthome-root .cta-section, #cbm-investment-root .cta-section, #cbm-refinance-root .cta-section {
    max-width: 1200px; margin: 0 auto; padding: 64px 32px; text-align: center;
  }
  #cbm-firsthome-root .cta-actions, #cbm-investment-root .cta-actions, #cbm-refinance-root .cta-actions, #cbm-contact-root .cta-actions {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px;
  }
  #cbm-firsthome-root .btn-primary, #cbm-investment-root .btn-primary, #cbm-refinance-root .btn-primary, #cbm-contact-root .btn-primary,
  #cbm-firsthome-root .btn-secondary, #cbm-investment-root .btn-secondary, #cbm-refinance-root .btn-secondary, #cbm-contact-root .btn-secondary {
    display: inline-block; padding: 14px 28px; border-radius: 12px;
    font-size: 15px; font-weight: 600; font-family: 'DM Sans', sans-serif;
    text-decoration: none; cursor: pointer; border: none;
    transition: transform .15s, background .15s;
  }
  #cbm-firsthome-root .btn-primary, #cbm-investment-root .btn-primary, #cbm-refinance-root .btn-primary, #cbm-contact-root .btn-primary {
    background: #1a6e3e; color: #fff;
  }
  #cbm-firsthome-root .btn-primary:hover, #cbm-investment-root .btn-primary:hover, #cbm-refinance-root .btn-primary:hover, #cbm-contact-root .btn-primary:hover {
    background: #145830; transform: translateY(-1px);
  }
  #cbm-firsthome-root .btn-secondary, #cbm-investment-root .btn-secondary, #cbm-refinance-root .btn-secondary, #cbm-contact-root .btn-secondary {
    background: rgba(15,32,64,.06); color: #0f2040; border: 1px solid rgba(15,32,64,.12);
  }

  /* INNER PAGE FOOTER */
  #cbm-contact-root footer, #cbm-refinance-root footer, #cbm-firsthome-root footer, #cbm-investment-root footer {
    background: #0f2040; color: rgba(255,255,255,.7);
    padding: 64px 32px 24px; font-family: 'DM Sans', sans-serif;
  }
  #cbm-contact-root footer .footer-top, #cbm-refinance-root footer .footer-top, #cbm-firsthome-root footer .footer-top, #cbm-investment-root footer .footer-top {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px;
    padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,.1);
  }
  #cbm-contact-root footer .footer-brand p, #cbm-refinance-root footer .footer-brand p, #cbm-firsthome-root footer .footer-brand p, #cbm-investment-root footer .footer-brand p {
    font-size: 13px; opacity: .55; margin-top: 12px; max-width: 320px; line-height: 1.6;
  }
  #cbm-contact-root footer .footer-col h4, #cbm-refinance-root footer .footer-col h4, #cbm-firsthome-root footer .footer-col h4, #cbm-investment-root footer .footer-col h4 {
    font-family: 'DM Sans', sans-serif; font-size: 12px;
    font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255,255,255,.9); margin-bottom: 14px;
  }
  #cbm-contact-root footer .footer-col a, #cbm-refinance-root footer .footer-col a, #cbm-firsthome-root footer .footer-col a, #cbm-investment-root footer .footer-col a {
    display: block; color: rgba(255,255,255,.6); text-decoration: none; font-size: 14px; padding: 4px 0;
  }
  #cbm-contact-root footer .footer-col a:hover, #cbm-refinance-root footer .footer-col a:hover, #cbm-firsthome-root footer .footer-col a:hover, #cbm-investment-root footer .footer-col a:hover {
    color: #fff;
  }
  #cbm-contact-root footer .footer-bottom, #cbm-refinance-root footer .footer-bottom, #cbm-firsthome-root footer .footer-bottom, #cbm-investment-root footer .footer-bottom {
    max-width: 1200px; margin: 24px auto 0;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 16px; font-size: 12px; opacity: .55;
  }
  #cbm-contact-root footer .footer-links a, #cbm-refinance-root footer .footer-links a, #cbm-firsthome-root footer .footer-links a, #cbm-investment-root footer .footer-links a {
    color: rgba(255,255,255,.55); text-decoration: none; margin-left: 16px; font-size: 12px;
  }

  /* MOBILE — inner pages */
  @media (max-width: 768px) {
    #cbm-contact-root .contact-hero h1, #cbm-refinance-root .hero h1, #cbm-firsthome-root .hero h1, #cbm-investment-root .hero h1 { font-size: 36px; }
    #cbm-contact-root .contact-body { grid-template-columns: 1fr; padding: 24px 20px 48px; }
    #cbm-contact-root .form-row, #cbm-refinance-root .form-row, #cbm-firsthome-root .form-row, #cbm-investment-root .form-row { grid-template-columns: 1fr; }
    #cbm-contact-root .form-card, #cbm-refinance-root .form-card, #cbm-firsthome-root .form-card, #cbm-investment-root .form-card { padding: 24px; }
    #cbm-contact-root .why-strip, #cbm-refinance-root .why-strip, #cbm-firsthome-root .why-strip, #cbm-investment-root .why-strip {
      grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 20px;
    }
    #cbm-contact-root .section, #cbm-refinance-root .section, #cbm-firsthome-root .section, #cbm-investment-root .section { padding: 48px 20px; }
    #cbm-contact-root .section-title, #cbm-refinance-root .section-title, #cbm-firsthome-root .section-title, #cbm-investment-root .section-title { font-size: 30px; }
    #cbm-contact-root .contact-hero, #cbm-refinance-root .hero, #cbm-firsthome-root .hero, #cbm-investment-root .hero { padding: 48px 20px 24px; }
    #cbm-contact-root footer .footer-top, #cbm-refinance-root footer .footer-top, #cbm-firsthome-root footer .footer-top, #cbm-investment-root footer .footer-top {
      grid-template-columns: 1fr 1fr; gap: 24px;
    }
  }

  /* Inner-page hero-trust stat strip — 4 stats in a row.
     The JSX uses .hero-trust > .trust-item with .num + .lbl children
     (not the .why-strip / .why-strip-item pattern from the contact page),
     so we need a parallel set of rules. Override max-width since these
     labels run longer than the homepage version ("Avg. cashback on $600k"). */
  #cbm-contact-root .hero-trust, #cbm-refinance-root .hero-trust,
  #cbm-firsthome-root .hero-trust, #cbm-investment-root .hero-trust {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
    margin: 32px auto 0; padding-top: 24px;
    border-top: 1px solid rgba(15,32,64,.08); max-width: 900px;
    justify-items: center;
  }
  #cbm-contact-root .trust-item, #cbm-refinance-root .trust-item,
  #cbm-firsthome-root .trust-item, #cbm-investment-root .trust-item {
    display: flex; flex-direction: column; align-items: center; text-align: center;
  }
  #cbm-contact-root .trust-item .num, #cbm-refinance-root .trust-item .num,
  #cbm-firsthome-root .trust-item .num, #cbm-investment-root .trust-item .num {
    font-family: 'DM Serif Display', serif; font-size: 32px;
    color: #1a6e3e; line-height: 1;
  }
  #cbm-contact-root .trust-item .lbl, #cbm-refinance-root .trust-item .lbl,
  #cbm-firsthome-root .trust-item .lbl, #cbm-investment-root .trust-item .lbl {
    font-size: 13px; opacity: .65; margin-top: 6px; line-height: 1.4;
  }

  /* Mobile: stack to 2-up on narrow viewports */
  @media (max-width: 640px) {
    #cbm-contact-root .hero-trust, #cbm-refinance-root .hero-trust,
    #cbm-firsthome-root .hero-trust, #cbm-investment-root .hero-trust {
      grid-template-columns: 1fr 1fr; gap: 20px;
    }
  }
