.btwm-hbp,
.btwm-hbp * { box-sizing: border-box; }

.btwm-hbp {
  --btwm-ink: #15201c;
  --btwm-muted: #68736e;
  --btwm-border: #dfe7e2;
  --btwm-soft: #f3f7f5;
  --btwm-accent: #177a55;
  --btwm-accent-dark: #0f5d40;
  --btwm-warm: #fff8e7;
  --btwm-danger: #b42318;
  max-width: 1180px;
  margin: 32px auto;
  color: var(--btwm-ink);
  font-family: inherit;
}

.btwm-hbp__hero {
  position: relative;
  overflow: hidden;
  padding: 48px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0e4d37 0%, #177a55 55%, #23996d 100%);
  color: #fff;
  box-shadow: 0 20px 50px rgba(15, 93, 64, .18);
}

.btwm-hbp__hero::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  top: -90px;
  border-radius: 50%;
  border: 48px solid rgba(255,255,255,.08);
}

.btwm-hbp__eyebrow {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}

.btwm-hbp__hero h1 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 16px 0 10px;
  color: #fff;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.btwm-hbp__hero p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: rgba(255,255,255,.85);
  font-size: 17px;
  line-height: 1.7;
}

.btwm-hbp__trust {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  margin-top: 24px;
  font-size: 13px;
  font-weight: 700;
}

.btwm-hbp__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  gap: 24px;
  margin-top: 24px;
  align-items: start;
}

.btwm-hbp__form,
.btwm-hbp__results {
  border: 1px solid var(--btwm-border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 40px rgba(24, 48, 38, .07);
}

.btwm-hbp__form { padding: 30px; }
.btwm-hbp__results { position: sticky; top: 28px; min-height: 420px; padding: 26px; transition: opacity .2s ease; }
.btwm-hbp__results.is-loading { opacity: .55; pointer-events: none; }

.btwm-hbp__section-heading {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: 4px 0 18px;
}

.btwm-hbp__section-heading:not(:first-child) { margin-top: 32px; }

.btwm-hbp__section-heading > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  flex: 0 0 34px;
  border-radius: 10px;
  background: #e7f5ef;
  color: var(--btwm-accent-dark);
  font-weight: 800;
}

.btwm-hbp__section-heading h2 { margin: 0 0 2px; font-size: 19px; line-height: 1.2; }
.btwm-hbp__section-heading p { margin: 0; color: var(--btwm-muted); font-size: 13px; }

.btwm-hbp__grid { display: grid; gap: 16px; }
.btwm-hbp__grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.btwm-hbp__field { display: flex; flex-direction: column; gap: 7px; }
.btwm-hbp__field--wide { grid-column: 1 / -1; }
.btwm-hbp__field > span { font-size: 14px; font-weight: 750; }
.btwm-hbp__field small { min-height: 16px; margin-top: -4px; color: var(--btwm-muted); font-size: 11px; line-height: 1.4; }

.btwm-hbp__field input,
.btwm-hbp__field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid #cfd9d3;
  border-radius: 12px;
  background: #fff;
  color: var(--btwm-ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.btwm-hbp__field input:focus,
.btwm-hbp__field select:focus {
  border-color: var(--btwm-accent);
  box-shadow: 0 0 0 4px rgba(23, 122, 85, .12);
}

.btwm-hbp__optional {
  margin-top: 20px;
  border: 1px dashed #c6d5cd;
  border-radius: 14px;
  background: #fbfdfc;
}

.btwm-hbp__optional summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  cursor: pointer;
  font-weight: 750;
}

.btwm-hbp__optional summary span {
  color: var(--btwm-muted);
  font-size: 12px;
  font-weight: 600;
}

.btwm-hbp__optional[open] .btwm-hbp__grid { padding: 0 16px 16px; }

.btwm-hbp__submit {
  display: flex;
  width: 100%;
  min-height: 54px;
  margin-top: 22px;
  padding: 12px 18px;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 13px;
  background: var(--btwm-accent);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(23, 122, 85, .2);
  transition: transform .15s ease, background .15s ease;
}

.btwm-hbp__submit:hover { background: var(--btwm-accent-dark); transform: translateY(-1px); }
.btwm-hbp__submit:disabled { cursor: wait; opacity: .65; transform: none; }
.btwm-hbp__privacy { margin: 10px 0 0; text-align: center; color: var(--btwm-muted); font-size: 11px; }

.btwm-hbp__error {
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #f1b8b2;
  border-radius: 10px;
  background: #fff2f0;
  color: var(--btwm-danger);
  font-size: 13px;
  font-weight: 650;
}

.btwm-hbp__empty {
  display: grid;
  min-height: 365px;
  place-content: center;
  text-align: center;
}

.btwm-hbp__empty-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 22px;
  background: #eaf6f0;
  color: var(--btwm-accent);
  font-size: 38px;
}

.btwm-hbp__empty h2 { margin: 0 0 7px; font-size: 21px; }
.btwm-hbp__empty p { max-width: 280px; margin: 0 auto; color: var(--btwm-muted); font-size: 14px; line-height: 1.6; }

.btwm-hbp__result-head { display: grid; gap: 14px; }
.btwm-hbp__score { display: flex; gap: 15px; align-items: center; padding: 18px; border-radius: 16px; background: var(--btwm-soft); }
.btwm-hbp__score-ring { display: flex; width: 76px; height: 76px; align-items: baseline; justify-content: center; flex-direction: column; padding-left: 17px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 7px #dfece6; }
.btwm-hbp__score-ring strong { font-size: 25px; line-height: 1; }
.btwm-hbp__score-ring span { color: var(--btwm-muted); font-size: 11px; }
.btwm-hbp__score > div:last-child span { color: var(--btwm-muted); font-size: 12px; }
.btwm-hbp__score h2 { margin: 3px 0 0; font-size: 22px; }
.btwm-hbp__score.is-strong .btwm-hbp__score-ring,
.btwm-hbp__score.is-stable .btwm-hbp__score-ring { box-shadow: inset 0 0 0 7px #90d1b5; }
.btwm-hbp__score.is-warning .btwm-hbp__score-ring { box-shadow: inset 0 0 0 7px #f3c969; }
.btwm-hbp__score.is-critical .btwm-hbp__score-ring { box-shadow: inset 0 0 0 7px #ef9d95; }

.btwm-hbp__balance { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-radius: 12px; background: #f8faf9; }
.btwm-hbp__balance span { color: var(--btwm-muted); font-size: 13px; }
.btwm-hbp__balance strong { font-size: 20px; }
.btwm-hbp__balance.is-positive strong { color: var(--btwm-accent-dark); }
.btwm-hbp__balance.is-negative strong { color: var(--btwm-danger); }

.btwm-hbp__metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.btwm-hbp__metrics > div { padding: 13px; border: 1px solid var(--btwm-border); border-radius: 12px; }
.btwm-hbp__metrics span { display: block; margin-bottom: 4px; color: var(--btwm-muted); font-size: 11px; }
.btwm-hbp__metrics strong { font-size: 17px; }

.btwm-hbp__fund { margin-top: 14px; padding: 17px; border: 1px solid var(--btwm-border); border-radius: 14px; }
.btwm-hbp__fund-head,
.btwm-hbp__fund-foot { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.btwm-hbp__fund-head span,
.btwm-hbp__fund-foot { color: var(--btwm-muted); font-size: 11px; }
.btwm-hbp__fund-head strong { display: block; margin-top: 3px; font-size: 16px; }
.btwm-hbp__progress { height: 8px; margin: 14px 0 9px; overflow: hidden; border-radius: 99px; background: #e5ece8; }
.btwm-hbp__progress span { display: block; height: 100%; border-radius: inherit; background: var(--btwm-accent); }

.btwm-hbp__goal { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--btwm-warm); }
.btwm-hbp__goal span:first-child { display: block; color: var(--btwm-muted); font-size: 11px; }
.btwm-hbp__goal strong { display: block; margin-top: 3px; font-size: 16px; }
.btwm-hbp__pill { padding: 6px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.btwm-hbp__pill.is-positive { background: #dff4e9; color: #0f6847; }
.btwm-hbp__pill.is-warning { background: #fff0c8; color: #805700; }

.btwm-hbp__recommendations { margin-top: 18px; }
.btwm-hbp__recommendations h3 { margin: 0 0 10px; font-size: 16px; }
.btwm-hbp__recommendations ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.btwm-hbp__recommendations li { display: flex; gap: 9px; align-items: flex-start; padding: 10px 11px; border-radius: 10px; background: #f7faf8; }
.btwm-hbp__recommendations li > span { display: grid; width: 19px; height: 19px; place-items: center; flex: 0 0 19px; border-radius: 50%; background: #dff2e9; color: var(--btwm-accent-dark); font-size: 10px; font-weight: 900; }
.btwm-hbp__recommendations p { margin: 0; color: #4f5e57; font-size: 12px; line-height: 1.55; }

.btwm-hbp__disclaimer { margin: 18px 4px 0; padding: 14px 16px; border-left: 3px solid #e2b94d; background: #fffaf0; color: #625a43; font-size: 12px; line-height: 1.6; }

.btwm-tools-directory { max-width: 900px; margin: 24px auto; }
.btwm-tool-card { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid #dfe7e2; border-radius: 16px; background: #fff; color: #15201c; text-decoration: none; box-shadow: 0 10px 30px rgba(24, 48, 38, .06); transition: transform .15s ease, box-shadow .15s ease; }
.btwm-tool-card:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(24, 48, 38, .1); }
.btwm-tool-card__icon { display: grid; width: 46px; height: 46px; place-items: center; flex: 0 0 46px; border-radius: 13px; background: #e6f5ed; color: #0f6847; font-weight: 900; }
.btwm-tool-card strong { display: block; margin-bottom: 4px; font-size: 18px; }
.btwm-tool-card small { display: block; color: #68736e; line-height: 1.5; }
.btwm-tool-card__arrow { margin-left: auto; font-size: 24px; }

@media (max-width: 920px) {
  .btwm-hbp__layout { grid-template-columns: 1fr; }
  .btwm-hbp__results { position: static; }
}

@media (max-width: 620px) {
  .btwm-hbp { margin: 16px auto; }
  .btwm-hbp__hero { padding: 30px 22px; border-radius: 18px; }
  .btwm-hbp__hero h1 { font-size: 36px; }
  .btwm-hbp__hero p { font-size: 15px; }
  .btwm-hbp__form,
  .btwm-hbp__results { padding: 19px; border-radius: 16px; }
  .btwm-hbp__grid--2 { grid-template-columns: 1fr; }
  .btwm-hbp__field--wide { grid-column: auto; }
  .btwm-hbp__trust { flex-direction: column; gap: 7px; }
  .btwm-hbp__fund-head,
  .btwm-hbp__fund-foot,
  .btwm-hbp__goal { align-items: flex-start; flex-direction: column; }
}
