/* builder-rates.html: the ad landing page for builder rate buydown deals.
   Scoped under .br-page so nothing here reaches the rest of the site. */
.br-page { --br-forest: #293c34; --br-forest-2: #48604D; --br-copper: #C96B2E; --br-ember: #a8501a;
  --br-ink: #1C1C1A; --br-mid: #5A5955; --br-stone: #8A8880; --br-rule: #D8D5CE; --br-paper: #F5F3EE;
  --br-win: #E8F1EA; --br-win-ink: #1F5133; --br-warn: #FBF0E4; }
.br-page { background: var(--br-paper); color: var(--br-ink); }
.br-wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.br-main h1, .br-main h2, .br-main h3 { font-family: 'EB Garamond', Georgia, serif; font-weight: 500; color: var(--br-ink); }
.br-main h2 { font-size: 30px; line-height: 1.15; margin: 0 0 6px; }
.br-sub { color: var(--br-mid); margin: 0 0 20px; font-size: 15px; line-height: 1.65; }
.br-sub a { color: var(--br-forest); font-weight: 600; }

.br-hero { position: relative; padding: 118px 0 64px; margin-bottom: 44px; color: var(--br-paper);
  background: radial-gradient(120% 90% at 88% 0%, #3b5446 0%, var(--br-forest) 52%, #1f2e28 100%); overflow: hidden; }
.br-edge { position: absolute; left: 0; right: 0; top: 0; height: 8px; background: linear-gradient(90deg, var(--br-forest-2) 0 50%, #E07840 50% 100%); }
.br-hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.br-tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--br-win-ink); background: var(--br-win); padding: 5px 11px; border-radius: 999px; }
.br-hero .br-tag { background: rgba(240,196,157,.14); color: #F0C49D; border: 1px solid rgba(240,196,157,.35); }
.br-main .br-hero h1 { color: #FAF8F3; font-size: clamp(36px, 5vw, 58px); line-height: 1.04; margin: 18px 0 16px; letter-spacing: -.01em; }
.br-hero h1 em { color: #F0C49D; font-style: italic; }
.br-lede { font-size: 17px; line-height: 1.7; color: rgba(250,248,243,.82); max-width: 620px; margin: 0 0 28px; }
.br-lede b { color: #FAF8F3; }
.br-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.br-hero .br-btn-hero { background: #F0C49D; color: var(--br-forest); }
.br-hero .br-btn-hero:hover { background: #f5d3b5; color: var(--br-forest); }
.br-hero .br-ghost-hero { background: transparent; color: #FAF8F3; border: 1.5px solid rgba(250,248,243,.55); }
.br-hero .br-ghost-hero:hover { background: rgba(250,248,243,.1); color: #FAF8F3; }
.br-rate-card { background: rgba(250,248,243,.06); border: 1px solid rgba(250,248,243,.16); border-radius: 26px 8px 26px 8px; padding: 26px 28px; box-shadow: 0 30px 60px rgba(0,0,0,.25); }
.br-rate-card > small, .br-rate-vs small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(250,248,243,.6); }
.br-rate-big { font-family: 'EB Garamond', Georgia, serif; font-style: italic; font-weight: 600; font-size: clamp(96px, 12vw, 150px); line-height: .9; letter-spacing: -.03em; color: #F0C49D; margin: 4px 0 6px; text-shadow: 0 8px 30px rgba(0,0,0,.25); }
.br-rate-big span { font-size: .55em; }
.br-rate-apr { font-size: 15px; color: rgba(250,248,243,.8); margin: 0 0 18px; }
.br-rate-apr b { color: #FAF8F3; font-size: 18px; margin-right: 6px; }
.br-rate-vs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.br-rate-vs > div { border-radius: 14px; padding: 12px 14px; background: rgba(250,248,243,.06); border: 1px solid rgba(250,248,243,.14); }
.br-rate-vs s { font-family: 'EB Garamond', Georgia, serif; font-size: 30px; color: rgba(250,248,243,.7); text-decoration-color: #E07840; text-decoration-thickness: 2px; }
.br-rate-vs strong { font-family: 'EB Garamond', Georgia, serif; font-weight: 500; font-size: 20px; color: #F0C49D; line-height: 1.3; display: block; margin-top: 4px; white-space: nowrap; }
.br-rate-win { background: rgba(240,196,157,.1) !important; border-color: rgba(240,196,157,.4) !important; }
.br-rate-areas { font-size: 13px; letter-spacing: .04em; color: rgba(250,248,243,.72); margin: 14px 0 0; text-align: center; }
.br-rate-fine { font-size: 11px; line-height: 1.5; color: rgba(250,248,243,.55); margin: 12px 0 0; }

.br-btn { display: inline-block; background: var(--br-forest); color: #fff; font-family: 'DM Sans', system-ui, sans-serif; font-weight: 600; font-size: 15px; padding: 14px 22px; border-radius: 10px; border: 0; text-decoration: none; cursor: pointer; text-align: center; }
.br-btn:hover { background: #1f2f28; color: #fff; }
.br-btn:disabled { opacity: .6; cursor: wait; }
.br-ghost { background: transparent; color: var(--br-forest); border: 1.5px solid var(--br-forest); }
.br-ghost:hover { background: var(--br-forest); color: #fff; }
.br-light { background: #fff; color: var(--br-forest); }
.br-light:hover { background: var(--br-paper); color: var(--br-forest); }
.br-full { width: 100%; }

.br-card { background: #fff; border: 1px solid var(--br-rule); border-radius: 14px; padding: 22px; margin-bottom: 40px; }
.br-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0 0 40px; }
.br-step { background: #fff; border: 1px solid var(--br-rule); border-radius: 12px; padding: 16px; font-size: 14px; color: var(--br-mid); }
.br-step b { display: block; color: var(--br-ink); font-size: 15px; margin-bottom: 3px; }
.br-n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--br-copper); color: #fff; font-weight: 700; font-size: 13px; margin-bottom: 8px; }

.br-main label { display: block; font-size: 12.5px; font-weight: 600; color: var(--br-mid); margin-bottom: 5px; letter-spacing: 0; text-transform: none; }
.br-main input, .br-main select, .br-main textarea { width: 100%; font: inherit; font-size: 16px; color: var(--br-ink); background: #fff; border: 1px solid var(--br-rule); border-radius: 9px; padding: 11px 12px; }
.br-main .form-field { margin-bottom: 0; }
.br-calc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.br-result { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.br-stat { background: var(--br-paper); border-radius: 10px; padding: 14px; }
.br-stat small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--br-stone); }
.br-stat strong { font-family: 'EB Garamond', Georgia, serif; font-weight: 500; font-size: 30px; font-variant-numeric: tabular-nums; }
.br-win { background: var(--br-win); }
.br-win strong, .br-win span { color: var(--br-win-ink); }
.br-win span { display: block; font-size: 13px; font-weight: 600; }
.br-calc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; }
.br-calc-grid [hidden] { display: none; }
.br-calc-grid label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-calc-body { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; margin-top: 18px; }
.br-calc-body .br-table-wrap { margin-top: 0; }
.br-calc-body .br-result { grid-template-columns: 1fr; margin-top: 0; }
.br-table-wrap { overflow-x: auto; margin-top: 18px; }
.br-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.br-table th, .br-table td { padding: 9px 10px; border-bottom: 1px solid var(--br-rule); text-align: right; }
.br-table th[scope="row"], .br-table thead th:first-child { text-align: left; font-weight: 500; color: var(--br-mid); }
.br-table thead th { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--br-stone); }
.br-table tfoot th, .br-table tfoot td { font-weight: 700; color: var(--br-ink); border-bottom: 0; font-size: 17px; }
.br-table tfoot td:nth-child(2) { color: var(--br-win-ink); }
.br-result { grid-template-columns: repeat(2, 1fr); }
.br-stat-note { display: block; font-size: 12px; color: var(--br-stone); }
.br-fine { font-size: 12px; color: var(--br-stone); margin: 12px 0 0; }

.br-deals-section { margin-bottom: 40px; }
.br-gate { border: 2px solid var(--br-forest); margin-bottom: 18px; }
.br-gate h3 { font-size: 24px; margin: 0 0 4px; }
.br-gate > p { margin: 0 0 14px; color: var(--br-mid); font-size: 15px; }
.br-gate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.br-consent { font-size: 12px; line-height: 1.55; color: var(--br-stone); margin: 12px 0; }

.br-toolbar { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.br-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.br-chip { border: 1px solid var(--br-rule); background: #fff; color: var(--br-ink); padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; }
.br-chip.on { background: var(--br-forest); color: #fff; border-color: var(--br-forest); }
.br-main .br-sort { display: flex; align-items: center; gap: 8px; margin: 0; white-space: nowrap; }
.br-main .br-sort select { width: auto; padding: 7px 10px; font-size: 14px; }

.br-deals { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.br-deal { background: #fff; border: 1px solid var(--br-rule); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; }
.br-deal .br-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.br-builder { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--br-stone); }
.br-deal h3 { font-size: 22px; margin: 2px 0; line-height: 1.15; }
.br-city { font-size: 14px; color: var(--br-mid); }
.br-rate { text-align: right; }
.br-rate strong { font-family: 'EB Garamond', Georgia, serif; font-weight: 600; font-size: 34px; line-height: 1; color: var(--br-forest); }
.br-rate small { display: block; font-size: 11px; color: var(--br-stone); }
.br-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.br-facts span { font-size: 13px; background: var(--br-paper); padding: 4px 9px; border-radius: 6px; }
.br-perk { font-size: 14px; line-height: 1.55; margin: 0 0 12px; }
.br-homes { font-size: 14px; background: var(--br-paper); border-radius: 8px; padding: 8px 10px; margin: 0 0 12px; }
.br-homes a { color: var(--br-forest); font-weight: 600; }
.br-homes summary { cursor: pointer; }
.br-homes ul { list-style: none; margin: 8px 0 0; padding: 0; max-height: 260px; overflow-y: auto; }
.br-homes li { display: flex; flex-direction: column; padding: 6px 0; border-top: 1px solid var(--br-rule); font-size: 13px; }
.br-homes li { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.br-home-main { display: flex; flex-direction: column; min-width: 0; }
.br-home-main span { color: var(--br-mid); }
.br-home-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.br-kw { font-size: 13px; font-weight: 600; color: var(--br-forest); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.br-kw-none { font-size: 12px; color: var(--br-stone); }
.br-pick { font: inherit; font-size: 13px; font-weight: 600; color: var(--br-forest); background: #fff; border: 1.5px solid var(--br-forest); border-radius: 999px; padding: 6px 12px; cursor: pointer; white-space: nowrap; }
.br-pick.on { background: var(--br-forest); color: #fff; }
.br-page #picksWrap[hidden] { display: none; }
.br-picks { list-style: none; margin: 8px 0 0; padding: 0; }
.br-picks li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--br-rule); font-size: 14px; }
.br-picks li:first-child { border-top: 0; }
.br-picks button { font: inherit; font-size: 13px; color: var(--br-ember); background: transparent; border: 0; cursor: pointer; text-decoration: underline; padding: 0; }
@media (max-width: 560px) { .br-home-actions { width: 100%; justify-content: space-between; } }
.br-lender { font-size: 13px; color: var(--br-mid); background: var(--br-warn); border-radius: 8px; padding: 8px 12px; margin: 12px 0 0; }
.br-lender-tag { font-size: 13px; font-weight: 600; color: var(--br-forest); background: var(--br-win); padding: 6px 10px; border-radius: 8px; margin-bottom: 8px; }
.br-deadline { font-size: 13px; font-weight: 600; color: var(--br-ember); background: var(--br-warn); padding: 6px 10px; border-radius: 8px; margin-bottom: 12px; }
.br-deal .br-btn { margin-top: auto; padding: 12px; }
.br-fp { font-size: 11px; line-height: 1.5; color: var(--br-stone); margin: 10px 0 0; }

/* The info wall: blurred teaser cards until the unlock form is sent */
.br-page.locked .br-toolbar, .br-page:not(.locked) .br-gate { display: none; }
.br-page.locked .br-deals { max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent); pointer-events: none; user-select: none; }
.br-blur { filter: blur(6px); }

.br-why { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.br-why ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.6; }
.br-why li { margin-bottom: 10px; }

.br-lead { background: var(--br-forest); color: #fff; border-radius: 16px; padding: 28px; margin-bottom: 28px; }
.br-lead h2 { color: #fff; }
.br-lead .br-sub, .br-lead .br-consent { color: rgba(255,255,255,.8); }
.br-lead .br-sub a { color: #fff; }
.br-main .br-lead label { color: rgba(255,255,255,.88); }
.br-lead .br-picks li { color: #fff; border-color: rgba(255,255,255,.2); }
.br-lead .br-picks button { color: #F0C49D; }
.br-lead input, .br-lead select, .br-lead textarea { border-color: transparent; }
.br-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.br-span { grid-column: 1 / -1; }
.br-lead .form-success { background: #fff; color: var(--br-ink); border-left-color: var(--br-copper); font-size: 15px; line-height: 1.6; }
.br-lead .form-success p { margin: 0 0 6px; }
.br-lead .form-success ul { margin: 0; padding-left: 18px; }

.br-main .br-label { display: block; font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.88); margin-bottom: 6px; }
.br-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.br-main .br-checks label { display: flex; align-items: center; gap: 7px; margin: 0; background: rgba(255,255,255,.12); color: #fff; padding: 8px 12px; border-radius: 999px; font-weight: 500; cursor: pointer; }
.br-main .br-checks input { width: auto; margin: 0; }
.br-source { font-size: 13px; color: var(--br-mid); background: #fff; border: 1px dashed var(--br-rule); border-radius: 8px; padding: 8px 12px; margin: -8px 0 18px; }
.br-cta-banner { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: var(--br-win); border-radius: 12px; padding: 14px 16px; margin-bottom: 16px; font-size: 15px; }
.br-cta-banner .br-btn { padding: 11px 18px; }
.br-page.locked .br-cta-banner { display: none; }
.br-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 12px 0 0; }
.br-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.br-photos figcaption { grid-column: 1 / -1; font-size: 11px; color: var(--br-stone); }
.br-reviews { margin-bottom: 40px; }
.br-review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.br-review-grid figure { margin: 0; background: #fff; border: 1px solid var(--br-rule); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.br-review-grid blockquote { margin: 0; font-family: 'EB Garamond', Georgia, serif; font-size: 17px; line-height: 1.5; }
.br-review-grid figcaption { font-size: 12px; color: var(--br-stone); }
.br-field-error { font-size: 12.5px; font-weight: 600; color: #B4472F; margin: 5px 0 0; min-height: 0; }
.br-field-error:empty { display: none; }
.br-lead .br-field-error { color: #FFD7C7; }
.br-disclaimer { font-size: 12px; line-height: 1.6; color: var(--br-stone); margin: 0 0 40px; }
.br-sticky { display: none; }

@media (max-width: 980px) {
  .br-hero-grid { grid-template-columns: 1fr; }
  .br-rate-card { max-width: 560px; }
  .br-calc-grid { grid-template-columns: repeat(3, 1fr); }
  .br-calc-body { grid-template-columns: 1fr; }
  .br-calc-body .br-result { grid-template-columns: 1fr 1fr; }
}

/* The shared header and footer on phones, as assets/growth.css does for start.html */
@media (max-width: 768px) {
  .br-page > nav { height: 64px; padding: 0 1.25rem; }
  .br-page .nav-links { display: none; }
  .br-page .hamburger { display: flex; }
  .br-page .mobile-menu { top: 64px; max-height: calc(100dvh - 64px); overflow-y: auto; }
  .br-page .mobile-menu a { padding: 1rem 1.5rem; font-size: 18px; }
  .br-page .footer-top { grid-template-columns: 1fr; gap: 30px; }
  .br-page .footer-inner { padding: 40px 24px; }
  .br-page .footer-bottom { flex-direction: column; gap: 15px; align-items: start; }
}

@media (max-width: 760px) {
  .br-hero { padding: 92px 0 40px; }
  .br-hero-grid { grid-template-columns: 1fr; gap: 0; }
  .br-hero-text { display: contents; }
  .br-hero .br-tag { order: 1; justify-self: start; }
  .br-main .br-hero h1 { order: 2; }
  .br-rate-card { order: 3; margin: 4px 0 22px; padding: 20px 20px; }
  .br-lede { order: 4; }
  .br-cta { order: 5; }
  .br-rate-big { font-size: 104px; }
  .br-steps, .br-calc-grid, .br-result, .br-gate-grid, .br-why, .br-form-grid, .br-review-grid { grid-template-columns: 1fr; }
  .br-calc-body { grid-template-columns: 1fr; }
  .br-calc-body .br-result { grid-template-columns: 1fr; }
  .br-calc-grid label { white-space: normal; }
  .br-calc-grid { grid-template-columns: 1fr 1fr; }
  .br-sticky { display: block; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; box-shadow: 0 6px 20px rgba(0,0,0,.25); transition: opacity .2s; }
  .br-sticky.hide { opacity: 0; pointer-events: none; }
}
.br-main [id] { scroll-margin-top: 96px; }
