.heloc-hero {
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
}

.eyebrow {
  color: #5b6b8c;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.max-w-800 {
  max-width: 800px;
}

.quick-note {
  background: #ffffff;
  border: 1px solid rgba(67, 97, 238, .12);
  box-shadow: 0 .75rem 2rem rgba(36, 54, 95, .08);
}

.heloc-tool-section {
  background: #ffffff;
}

.calculator-card,
.result-card,
.info-card,
.formula-card,
.comparison-table-wrap,
.final-cta {
  border: 1px solid rgba(46, 61, 91, .09);
  box-shadow: 0 .75rem 2rem rgba(36, 54, 95, .06);
}

.calculator-card {
  background: #ffffff;
}

.calculator-card .form-label {
  font-weight: 600;
  color: #24324a;
}

.calculator-card .form-control,
.calculator-card .input-group-text {
  min-height: 46px;
}

.calculator-card .form-control:focus {
  border-color: rgba(67, 97, 238, .7);
  box-shadow: 0 0 0 .2rem rgba(67, 97, 238, .12);
}

.result-card {
  position: relative;
  overflow: hidden;
  padding: 2rem;
  background: linear-gradient(155deg, #f7f9ff 0%, #ffffff 58%, #f7fbff 100%);
}

.result-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 16px;
  background: #e9edff;
  color: #4361ee;
  font-size: 1.4rem;
  font-weight: 800;
}

.metric-card {
  padding: 1rem;
  border: 1px solid rgba(67, 97, 238, .1);
  border-radius: .9rem;
  background: rgba(255, 255, 255, .85);
}

.credit-meter {
  padding: 1rem;
  border-radius: 1rem;
  background: #ffffff;
  border: 1px solid rgba(67, 97, 238, .1);
}

.credit-meter .progress {
  height: 10px;
  overflow: hidden;
  background: #e9eefb;
}

.credit-meter .progress-bar {
  background: linear-gradient(90deg, #4361ee, #6c7cff);
  transition: width .2s ease;
}

.result-callout {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1rem 1.1rem;
  border-left: 4px solid #4361ee;
  border-radius: .75rem;
  background: #ffffff;
  color: #36445e;
}

.section-heading {
  max-width: 820px;
}

.info-card,
.formula-card {
  height: 100%;
  padding: 1.35rem;
  border-radius: 1rem;
  background: #ffffff;
}

.step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #4361ee;
  color: #ffffff;
  font-weight: 700;
}

.mini-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  margin-top: .35rem;
  border-radius: 50%;
  background: #4361ee;
  box-shadow: 0 0 0 5px #e9edff;
}

.formula-box {
  margin: 0;
  padding: .85rem 1rem;
  overflow-x: auto;
  border-radius: .75rem;
  background: #f3f6ff;
  color: #304a9b;
  font-size: .9rem;
  white-space: pre-wrap;
}

.phase-card {
  position: relative;
  padding-top: 1.6rem;
}

.phase-line {
  position: absolute;
  top: 1.15rem;
  left: 1.35rem;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: #4361ee;
}

.comparison-table-wrap {
  overflow: hidden;
  border-radius: 1rem;
  background: #ffffff;
}

.comparison-table-wrap th {
  color: #26344d;
  background: #f3f6ff;
  white-space: nowrap;
}

.comparison-table-wrap td,
.comparison-table-wrap th {
  padding: 1rem;
  border-color: rgba(46, 61, 91, .08);
}

.limitations-copy {
  max-width: 900px;
  color: #4b5870;
  font-size: 1.02rem;
  line-height: 1.75;
}

.limitations-copy p:last-child {
  margin-bottom: 0;
}

.accordion-item {
  overflow: hidden;
  border: 1px solid rgba(46, 61, 91, .09);
  border-radius: .85rem !important;
  box-shadow: 0 .5rem 1.25rem rgba(36, 54, 95, .04);
}

.accordion-button {
  font-weight: 650;
  color: #24324a;
}

.accordion-button:not(.collapsed) {
  color: #2d43ad;
  background: #f3f6ff;
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: 0 0 0 .2rem rgba(67, 97, 238, .12);
}

.related-card {
  border-top: 3px solid #dce3ff;
}

.final-cta {
  background: linear-gradient(110deg, #f3f6ff 0%, #ffffff 100%);
}

@media (min-width: 992px) {
  .calculator-card {
    position: sticky;
    top: 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .result-card {
    padding: 1.35rem;
  }

  .result-card .display-5 {
    font-size: 2.35rem;
  }

  .comparison-table-wrap {
    font-size: .9rem;
  }
}
