:root {
  --sale-ink: #103247;
  --sale-muted: #587080;
  --sale-teal: #139b73;
  --sale-teal-dark: #0d785b;
  --sale-sand: #f5eee5;
  --sale-line: #c9dcdf;
  --sale-paper: #ffffff;
}

.hm-project-sale-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 30px 26px 34px;
  overflow: hidden;
  border: 1px solid var(--sale-line);
  border-radius: 16px;
  background: linear-gradient(118deg, #f5eee5 0%, #fff 54%, #e9f6f2 100%);
  box-shadow: 0 16px 38px rgba(16, 50, 71, .08);
  color: var(--sale-ink);
  font-family: Montserrat, Inter, Arial, sans-serif;
}

.hm-project-sale-banner::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 8px;
  background: linear-gradient(180deg, #9c6845, var(--sale-teal));
}

.hm-project-sale-kicker {
  display: block;
  margin-bottom: 8px;
  color: #8b5e40;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hm-project-sale-banner h2,
.hm-project-sale-banner h3 {
  margin: 0;
  color: var(--sale-ink);
  font-size: clamp(24px, 3vw, 37px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
}

.hm-project-sale-banner p {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--sale-muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
}

.hm-project-sale-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hm-project-sale-price {
  white-space: nowrap;
  color: var(--sale-ink);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.hm-project-sale-price small {
  display: block;
  color: var(--sale-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: right;
  text-transform: uppercase;
}

.hm-project-sale-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: 10px;
  background: var(--sale-teal);
  box-shadow: 0 9px 20px rgba(19, 155, 115, .19);
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .02em;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease;
}

.hm-project-sale-button:hover,
.hm-project-sale-button:focus-visible {
  background: var(--sale-teal-dark);
  transform: translateY(-2px);
}

.hm-project-sale-slot {
  width: 100%;
  padding: 24px 0;
}

.hm-project-sale-slot .hm-project-sale-banner {
  max-width: none;
}

/* The app's legacy chart card is only a placement host for this banner. */
.hm-project-sale-host {
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.hm-project-sale-host .hm-loan-options-wrap,
.hm-project-sale-host .hm-affiliate-card-wrap,
.hm-project-sale-host .top_oversupply_box {
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.hm-project-sale-host .undernote {
  display: none !important;
}

.hm-loan-chart-slot .hm-project-sale-banner,
.hm-calendly-booking .hm-project-sale-banner,
.hm-sig-yield-container .hm-project-sale-banner {
  grid-template-columns: 1fr;
  min-height: 100%;
}

.hm-loan-chart-slot .hm-project-sale-actions,
.hm-calendly-booking .hm-project-sale-actions,
.hm-sig-yield-container .hm-project-sale-actions {
  justify-content: space-between;
}

@media (max-width: 820px) {
  .hm-project-sale-banner {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 24px 22px 24px 28px;
  }

  .hm-project-sale-actions {
    justify-content: space-between;
  }

  .hm-project-sale-price small { text-align: left; }
}

@media (max-width: 520px) {
  .hm-project-sale-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hm-project-sale-button { width: 100%; }
}

/* Project sale page */
.sale-page {
  margin: 0;
  background: #f6f9f8;
  color: var(--sale-ink);
  font-family: Montserrat, Inter, Arial, sans-serif;
}

.sale-page main { overflow: hidden; }

.sale-hero {
  position: relative;
  padding: 92px 24px 80px;
  background:
    radial-gradient(circle at 82% 20%, rgba(54, 190, 148, .22), transparent 34%),
    linear-gradient(135deg, #102f43 0%, #153f53 55%, #0b6c59 100%);
  color: #fff;
}

.sale-shell { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.sale-hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 60px; align-items: center; }
.sale-eyebrow { color: #8ee0c5; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.sale-page .sale-hero h1 {
  max-width: 800px;
  margin: 15px 0 20px;
  color: #fff;
  font-size: clamp(43px, 6vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
  text-shadow: 0 3px 24px rgba(0, 0, 0, .12);
}
.sale-hero-copy { max-width: 720px; margin: 0; color: #d5e2e5; font-size: clamp(17px, 2vw, 21px); line-height: 1.65; }
.sale-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.sale-button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 23px; border-radius: 10px; background: #32bc91; color: #092e28; font-size: 14px; font-weight: 800; text-decoration: none; }
.sale-button.secondary { border: 1px solid rgba(255,255,255,.42); background: rgba(255,255,255,.08); color: #fff; }
.sale-price-card { padding: 32px; border: 1px solid rgba(255,255,255,.18); border-radius: 22px; background: rgba(255,255,255,.09); box-shadow: 0 22px 60px rgba(0,0,0,.16); backdrop-filter: blur(8px); }
.sale-price-card span { display: block; color: #a9c3ca; font-size: 12px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.sale-price-card strong { display: block; margin: 9px 0 3px; font-size: clamp(44px, 6vw, 67px); letter-spacing: -.06em; }
.sale-price-card small { color: #d1e0e3; font-size: 13px; line-height: 1.5; }
.sale-price-list { display: grid; gap: 12px; margin: 25px 0 0; padding: 22px 0 0; border-top: 1px solid rgba(255,255,255,.16); }
.sale-price-list div { display: flex; gap: 10px; color: #e1ecee; font-size: 13px; font-weight: 650; }
.sale-price-list div::before { content: "\2713"; color: #5ce1b7; font-weight: 900; }

.sale-section { padding: 80px 0; }
.sale-section.white { background: #fff; }
.sale-section.sand { background: #f5eee5; }
.sale-section-head { max-width: 790px; margin-bottom: 36px; }
.sale-section-label { color: var(--sale-teal-dark); font-size: 11px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.sale-section h2 { margin: 10px 0 14px; font-size: clamp(31px, 4vw, 50px); line-height: 1.05; letter-spacing: -.045em; }
.sale-section-head p, .sale-copy { color: var(--sale-muted); font-size: 16px; line-height: 1.75; }
.sale-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sale-card { padding: 27px; border: 1px solid #dbe6e7; border-radius: 16px; background: #fff; box-shadow: 0 9px 27px rgba(16, 50, 71, .05); }
.sale-card .sale-card-no { color: #a36d49; font-size: 12px; font-weight: 900; letter-spacing: .1em; }
.sale-card h3 { margin: 13px 0 9px; font-size: 20px; letter-spacing: -.025em; }
.sale-card p { margin: 0; color: var(--sale-muted); font-size: 14px; line-height: 1.68; }
.sale-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px 28px; margin: 0; padding: 0; list-style: none; }
.sale-list li { position: relative; padding: 15px 18px 15px 44px; border: 1px solid rgba(16,50,71,.1); border-radius: 12px; background: rgba(255,255,255,.62); color: #365568; font-size: 14px; font-weight: 650; line-height: 1.55; }
.sale-list li::before { content: "\2713"; position: absolute; top: 15px; left: 17px; color: var(--sale-teal); font-weight: 900; }

.sale-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sale-stat { min-height: 145px; padding: 24px; border: 1px solid #d6e3e4; border-radius: 15px; background: #fff; }
.sale-stat strong { display: block; color: var(--sale-ink); font-size: 35px; letter-spacing: -.05em; }
.sale-stat span { display: block; margin-top: 6px; color: var(--sale-muted); font-size: 12px; font-weight: 800; line-height: 1.45; text-transform: uppercase; }
.sale-stat small { display: block; margin-top: 10px; color: #81939e; font-size: 11px; line-height: 1.45; }
.sale-analytics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.sale-chart-card { min-width: 0; padding: 24px 24px 18px; border: 1px solid #d6e3e4; border-radius: 16px; background: #f9fbfb; box-shadow: 0 9px 27px rgba(16,50,71,.045); }
.sale-chart-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.sale-chart-head span { color: #7d919b; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.sale-chart-head h3 { margin: 5px 0 0; color: var(--sale-ink); font-size: 22px; letter-spacing: -.035em; }
.sale-chart-head > strong { color: var(--sale-ink); font-size: 23px; line-height: 1; text-align: right; }
.sale-chart-head > strong small { display: block; margin-top: 5px; color: #82949e; font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.sale-chart { width: 100%; }
.sale-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.sale-chart-grid line { stroke: #dce6e7; stroke-width: 1; }
.sale-chart-grid text, .sale-chart-date { fill: #81949d; font-family: Montserrat, Inter, Arial, sans-serif; font-size: 10px; }
.sale-chart-grid text { text-anchor: end; }
.sale-chart-area { fill: rgba(50,188,145,.11); }
.sale-chart-line { fill: none; stroke: #16886d; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.sale-chart-points circle { fill: #fff; stroke: #16886d; stroke-width: 2; opacity: 0; transition: opacity .15s ease, r .15s ease; }
.sale-chart-points circle:hover, .sale-chart-points circle:focus { r: 6; opacity: 1; outline: none; }
.sale-stats-note { margin: 18px 0 0; padding-left: 14px; border-left: 3px solid #b9dcd2; color: #728791; font-size: 12px; line-height: 1.65; }
.sale-stats-note strong { color: #536d79; }
.sale-live-dot { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #32bc91; box-shadow: 0 0 0 5px rgba(50,188,145,.12); }

.sale-contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 45px; align-items: start; }
.sale-contact-copy h2 { margin-top: 8px; }
.sale-contact-copy p { color: var(--sale-muted); line-height: 1.7; }
.sale-contact-form { padding: 30px; border: 1px solid #d6e3e4; border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(16,50,71,.07); }
.sale-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.sale-field { margin-bottom: 16px; }
.sale-field label { display: block; margin-bottom: 7px; color: #456273; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sale-field input, .sale-field select, .sale-field textarea { width: 100%; padding: 13px 14px; border: 1px solid #cbdadd; border-radius: 9px; background: #fff; color: var(--sale-ink); font: inherit; font-size: 14px; }
.sale-field textarea { min-height: 135px; resize: vertical; }
.sale-field input:focus, .sale-field select:focus, .sale-field textarea:focus { border-color: var(--sale-teal); outline: 3px solid rgba(19,155,115,.12); }
.sale-form-note { margin: 12px 0 0; color: #7b8e98; font-size: 11px; line-height: 1.55; }
.sale-page-footer { padding: 28px 24px; background: #0e2d3e; color: #a9bec6; text-align: center; font-size: 12px; }
.sale-page-footer a { color: #cfe1e4; }

@media (max-width: 900px) {
  .sale-hero-grid, .sale-contact-grid { grid-template-columns: 1fr; }
  .sale-card-grid { grid-template-columns: 1fr 1fr; }
  .sale-stats-grid { grid-template-columns: 1fr 1fr; }
  .sale-analytics-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .sale-shell { width: min(100% - 32px, 1160px); }
  .sale-hero { padding: 68px 0 55px; }
  .sale-section { padding: 58px 0; }
  .sale-card-grid, .sale-list, .sale-stats-grid, .sale-form-row { grid-template-columns: 1fr; }
  .sale-contact-form { padding: 21px; }
}
