:root {
  --bmc-ink: #151613;
  --bmc-paper: #f7f5ee;
  --bmc-card: #ffffff;
  --bmc-green: #38c96f;
  --bmc-green-dark: #167642;
  --bmc-blue: #2f6bff;
  --bmc-muted: #686a63;
  --bmc-rule: rgba(21, 22, 19, 0.12);
}

.bmc-page {
  min-height: 100vh;
  color: var(--bmc-ink);
  background:
    radial-gradient(circle at 83% 6%, rgba(56, 201, 111, 0.1), transparent 28rem),
    var(--bmc-paper);
  font-family: var(--bmc-body), sans-serif;
}

.bmc-page main { overflow: hidden; }

.bmc-hero {
  width: min(1120px, calc(100% - 40px));
  min-height: 680px;
  margin: 0 auto;
  padding: 72px 0 82px;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(380px, 0.74fr);
  gap: 74px;
  align-items: center;
}

.bmc-hero__eyebrow,
.bmc-kicker {
  display: inline-block;
  color: var(--bmc-green-dark);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bmc-hero h1,
.bmc-tool-intro h2,
.bmc-method h2 {
  font-family: var(--bmc-display), sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.04em;
}

.bmc-hero h1 {
  max-width: 670px;
  margin: 18px 0 24px;
  font-size: clamp(4rem, 7.4vw, 6.8rem);
  line-height: 0.86;
}

.bmc-hero h1 span {
  display: block;
  color: var(--bmc-blue);
}

.bmc-hero__copy > p {
  max-width: 610px;
  margin: 0;
  color: var(--bmc-muted);
  font-size: clamp(1rem, 1.8vw, 1.17rem);
  line-height: 1.7;
}

.bmc-hero__cta {
  min-height: 56px;
  margin-top: 30px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border-radius: 10px;
  color: #fff;
  background: var(--bmc-ink);
  box-shadow: 0 10px 26px rgba(21, 22, 19, 0.16);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.bmc-hero__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(21, 22, 19, 0.22);
}

.bmc-hero__proof {
  margin-top: 24px;
  display: flex;
  gap: 10px 20px;
  flex-wrap: wrap;
  color: var(--bmc-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.bmc-hero__proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bmc-hero__proof span::before {
  content: "✓";
  color: var(--bmc-green-dark);
  font-weight: 900;
}

.bmc-hero__example {
  position: relative;
  width: min(100%, 430px);
  height: 555px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid var(--bmc-rule);
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(21, 22, 19, 0.14);
}

.bmc-hero__example > img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: top center;
}

.bmc-example-badge {
  position: absolute;
  top: 24px;
  z-index: 2;
  padding: 7px 10px;
  border-radius: 999px;
  color: #fff;
  background: rgba(10, 10, 10, 0.82);
  backdrop-filter: blur(8px);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bmc-example-badge.is-before { left: 7%; }
.bmc-example-badge.is-after { left: 56%; background: var(--bmc-green-dark); }

.bmc-example-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 15px 17px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-radius: 14px;
  color: #fff;
  background: rgba(15, 16, 14, 0.9);
  backdrop-filter: blur(12px);
}

.bmc-example-caption strong { font-size: 0.88rem; }
.bmc-example-caption span { color: rgba(255, 255, 255, 0.7); font-size: 0.7rem; }

.bmc-tool-shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 84px 0 100px;
  scroll-margin-top: 40px;
}

.bmc-tool-intro { max-width: 720px; margin-bottom: 28px; }

.bmc-tool-intro h2,
.bmc-method h2 {
  margin: 8px 0 14px;
  font-size: clamp(2.6rem, 5.8vw, 4.8rem);
  line-height: 0.93;
}

.bmc-tool-intro p {
  max-width: 650px;
  margin: 0;
  color: var(--bmc-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.bmc-step-strip {
  margin-bottom: 16px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  border: 1px solid var(--bmc-rule);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--bmc-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.bmc-step-strip span { display: flex; align-items: center; gap: 7px; }
.bmc-step-strip b {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--bmc-ink);
  font-size: 0.65rem;
}
.bmc-step-strip i { color: rgba(21, 22, 19, 0.28); font-style: normal; }

.bmc-tool-shell .btf-card {
  max-width: none;
  padding: clamp(20px, 4vw, 34px);
  border-radius: 22px;
  border-color: var(--bmc-rule);
  box-shadow: 0 24px 70px rgba(21, 22, 19, 0.1);
}

.bmc-tool-shell .btf-card-head-label { font-size: 1rem; }
.bmc-tool-shell .btf-card-head-meta { color: var(--bmc-green-dark); }
.bmc-tool-shell .btf-target { min-height: 340px; background: #f5f7f3; }
.bmc-tool-shell .btf-target-title { font-size: 1.08rem; }
.bmc-tool-shell .btf-target-sub { font-size: 0.78rem; }
.bmc-tool-shell .btf-submit { background: var(--bmc-ink); }
.bmc-tool-shell .btf-submit:not(:disabled):hover { background: #000; }
.bmc-tool-shell .btf-privacy { margin-bottom: 0; }

.bmc-photo-controls {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.bmc-estimate,
.bmc-adjust {
  padding: 24px;
  border: 1px solid var(--bmc-rule);
  border-radius: 16px;
  background: #fafaf7;
}

.bmc-step-label,
.bmc-generate-label {
  display: flex;
  align-items: center;
  gap: 13px;
}

.bmc-step-label > span,
.bmc-generate-label > span {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--bmc-ink);
  font-size: 0.72rem;
  font-weight: 900;
}

.bmc-step-label div,
.bmc-generate-label div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bmc-step-label strong,
.bmc-generate-label strong { font-size: 0.92rem; }
.bmc-step-label small,
.bmc-generate-label small { color: var(--bmc-muted); font-size: 0.7rem; line-height: 1.45; }

.bmc-estimate-loading,
.bmc-estimate-error {
  margin-top: 18px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  border-radius: 12px;
  background: #fff;
}

.bmc-estimate-loading > span {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 3px solid rgba(47, 107, 255, 0.18);
  border-top-color: var(--bmc-blue);
  border-radius: 50%;
  animation: bmc-spin 800ms linear infinite;
}

@keyframes bmc-spin { to { transform: rotate(360deg); } }

.bmc-estimate-loading div { display: flex; flex-direction: column; gap: 3px; }
.bmc-estimate-loading strong { font-size: 0.82rem; }
.bmc-estimate-loading small { color: var(--bmc-muted); font-size: 0.68rem; }

.bmc-estimate-result {
  margin-top: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 22px;
  align-items: center;
  border-radius: 14px;
  color: #fff;
  background: var(--bmc-ink);
}

.bmc-proportion-score {
  min-width: 138px;
  padding-right: 20px;
  display: flex;
  align-items: center;
  gap: 7px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.bmc-proportion-score > span {
  font-family: var(--bmc-display), sans-serif;
  font-size: 4rem;
  font-weight: 800;
  line-height: 0.9;
}

.bmc-proportion-score small {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.62rem;
  line-height: 1.35;
  text-transform: uppercase;
}

.bmc-estimate-notes { display: grid; gap: 8px; }
.bmc-estimate-notes p { margin: 0; color: rgba(255, 255, 255, 0.78); font-size: 0.72rem; line-height: 1.5; }
.bmc-estimate-notes p strong { color: #fff; }
.bmc-estimate-notes > span { color: var(--bmc-green); font-size: 0.62rem; text-transform: capitalize; }

.bmc-estimate-error { display: block; border: 1px solid rgba(230, 93, 50, 0.2); background: #fff7f2; }
.bmc-estimate-error strong { font-size: 0.78rem; }
.bmc-estimate-error p { margin: 5px 0 0; color: var(--bmc-muted); font-size: 0.7rem; line-height: 1.55; }

.bmc-area-picker {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.bmc-area-picker button {
  min-height: 48px;
  padding: 9px 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--bmc-rule);
  border-radius: 10px;
  color: var(--bmc-ink);
  background: #fff;
  font: 800 0.7rem/1 var(--bmc-body), sans-serif;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.bmc-area-picker button:hover { transform: translateY(-1px); border-color: rgba(21, 22, 19, 0.28); }
.bmc-area-picker button.is-selected { border-color: var(--bmc-green-dark); background: #e8f8ee; }
.bmc-area-picker button span {
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #a9aaa5;
  font-size: 0.68rem;
}
.bmc-area-picker button.is-selected span { background: var(--bmc-green-dark); }

.bmc-slider-list { margin-top: 16px; display: grid; gap: 10px; }

.bmc-change-slider {
  padding: 17px 18px 13px;
  border: 1px solid var(--bmc-rule);
  border-radius: 12px;
  background: #fff;
}

.bmc-change-slider__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.bmc-change-slider__head > span { display: flex; flex-direction: column; gap: 2px; }
.bmc-change-slider__head strong { font-size: 0.78rem; }
.bmc-change-slider__head small { color: var(--bmc-muted); font-size: 0.62rem; }
.bmc-change-slider__head b { color: var(--bmc-green-dark); font-size: 1.05rem; }
.bmc-change-slider__head b.is-smaller { color: var(--bmc-blue); }

.bmc-change-slider input[type="range"] {
  width: 100%;
  height: 24px;
  margin: 10px 0 0;
  accent-color: var(--bmc-green-dark);
  cursor: ew-resize;
}

.bmc-change-slider__scale {
  display: flex;
  justify-content: space-between;
  color: #92948e;
  font-size: 0.58rem;
}

.bmc-no-selection {
  margin: 0;
  padding: 14px;
  border-radius: 10px;
  color: var(--bmc-muted);
  background: #fff;
  font-size: 0.7rem;
  text-align: center;
}

.bmc-generate-label {
  padding: 4px 2px 0;
}
.bmc-generate-label > span { background: var(--bmc-green-dark); }

.bmc-method {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 90px 0 120px;
}

.bmc-method__grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.bmc-method article {
  min-height: 220px;
  padding: 27px;
  border: 1px solid var(--bmc-rule);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}

.bmc-method article > span { color: var(--bmc-green-dark); font: 800 1.2rem/1 var(--bmc-display), sans-serif; }
.bmc-method h3 { margin: 30px 0 9px; font: 800 1.3rem/1 var(--bmc-display), sans-serif; text-transform: uppercase; }
.bmc-method p { margin: 0; color: var(--bmc-muted); font-size: 0.78rem; line-height: 1.7; }

@media (max-width: 860px) {
  .bmc-hero { grid-template-columns: 1fr; gap: 44px; }
  .bmc-hero__example { width: min(100%, 450px); justify-self: start; }
  .bmc-area-picker { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 620px) {
  .bmc-hero,
  .bmc-tool-shell,
  .bmc-method { width: min(100% - 24px, 1120px); }
  .bmc-hero { min-height: 0; padding: 46px 0 62px; }
  .bmc-hero h1 { font-size: clamp(3.5rem, 19vw, 5rem); }
  .bmc-hero__cta { width: 100%; justify-content: center; }
  .bmc-hero__example { height: 470px; border-radius: 20px; }
  .bmc-example-badge { top: 18px; }
  .bmc-tool-shell { padding: 62px 0 78px; }
  .bmc-step-strip { justify-content: flex-start; gap: 8px; overflow-x: auto; }
  .bmc-step-strip span { white-space: nowrap; }
  .bmc-step-strip b { width: 20px; height: 20px; }
  .bmc-tool-shell .btf-card { padding: 18px; border-radius: 18px; }
  .bmc-tool-shell .btf-card-head { align-items: flex-start; flex-direction: column; }
  .bmc-tool-shell .btf-target { min-height: 300px; }
  .bmc-estimate,
  .bmc-adjust { padding: 18px 14px; }
  .bmc-estimate-result { grid-template-columns: 1fr; gap: 15px; }
  .bmc-proportion-score { padding: 0 0 15px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); }
  .bmc-area-picker { grid-template-columns: repeat(2, 1fr); }
  .bmc-change-slider { padding: 15px 13px 11px; }
  .bmc-method { padding: 70px 0 90px; }
  .bmc-method__grid { grid-template-columns: 1fr; }
  .bmc-method article { min-height: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bmc-page *,
  .bmc-page *::before,
  .bmc-page *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
