.plan-b {
  --b-navy: #12263f;
  --b-blue: #1e3a5f;
  --b-ink: #1b2b3b;
  --b-cyan: #6bc2e8;
  --b-light: #eef7fb;
  --b-line: #d3e4ec;
  --b-muted: #647484;
  color: var(--b-ink);
}

.b-hero {
  position: relative;
  height: 820px;
  min-height: min(820px, 100vh);
  overflow: hidden;
  color: #fff;
  background: var(--b-navy);
}

.b-slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}

.b-slide.is-active {
  visibility: visible;
  opacity: 1;
}

.b-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.035);
  transition: transform 6s ease-out;
}

.b-slide.is-active img {
  transform: scale(1);
}

.b-overlay {
  position: absolute;
  inset: 0;
  background: rgba(18,38,63,.46);
}

.b-header {
  position: absolute;
  top: 28px;
  right: var(--gutter);
  left: var(--gutter);
  z-index: 10;
  display: flex;
  height: 64px;
  align-items: center;
  justify-content: space-between;
}

.b-brand {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .06em;
}

.b-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 11px;
}

.b-header-cta {
  padding: 10px 18px;
  color: var(--b-navy);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
}

.b-menu {
  display: none;
  color: #fff;
  background: transparent;
  font-size: 11px;
}

.b-hero-copy {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  width: min(900px, calc(100% - 40px));
  text-align: center;
  transform: translate(-50%, -46%);
}

.b-hero-copy > p {
  margin-bottom: 90px;
  font-size: 10px;
  letter-spacing: .12em;
}

.b-hero-copy h1 {
  margin-bottom: 8px;
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 500;
  line-height: 1.35;
}

.b-hero-copy h2 {
  margin-bottom: 76px;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 400;
}

.b-hero-copy span {
  font-size: 9px;
  letter-spacing: .18em;
}

.b-slider-control {
  position: absolute;
  top: 70%;
  left: 50%;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(-50%);
}

.b-slider-control button {
  width: 22px;
  height: 3px;
  padding: 0;
  color: #fff;
  background: #9bcfe5;
}

.b-slider-control button:first-child,
.b-slider-control button:last-child {
  width: 32px;
  height: 32px;
  background: transparent;
  font-size: 18px;
}

.b-slider-control button.is-active {
  width: 52px;
  background: #fff;
}

.b-scroll {
  position: absolute;
  bottom: 42px;
  left: 50%;
  z-index: 5;
  font-size: 9px;
  letter-spacing: .1em;
  line-height: 2;
  text-align: center;
  transform: translateX(-50%);
}

.b-estimate {
  padding: 52px 0 70px;
  background: var(--b-light);
}

.b-estimate > .container > .eyebrow,
.b-services .eyebrow,
.b-company .eyebrow {
  color: var(--b-cyan);
}

.b-estimate > .container > h2 {
  margin-bottom: 28px;
  font-size: 34px;
  font-weight: 600;
}

.b-wizard {
  min-height: 500px;
  padding: 30px 32px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(18,38,64,.16);
}

.b-wizard-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
}

.b-wizard-head h3 {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
}

.b-wizard-head span {
  color: var(--b-blue);
  font-size: 10px;
  font-weight: 600;
}

.b-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 18px 0 24px;
}

.b-progress i {
  height: 5px;
  border-radius: 4px;
  background: var(--b-line);
  transition: background .25s ease;
}

.b-progress i.is-active {
  background: var(--b-cyan);
}

.b-wizard-panel > p {
  color: var(--b-muted);
  font-size: 14px;
}

.b-category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-block: 20px;
}

.b-category-grid button {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--b-line);
  border-radius: 6px;
  color: var(--b-ink);
  background: #f7fbfd;
  text-align: left;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.b-category-grid button:hover {
  transform: translateY(-2px);
}

.b-category-grid button.is-selected {
  border-color: var(--b-cyan);
  background: #e5f6fd;
  box-shadow: inset 0 0 0 1px var(--b-cyan);
}

.b-category-grid small {
  color: var(--b-cyan);
  font-size: 10px;
}

.b-category-grid strong {
  font-size: 16px;
}

.b-field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.b-field-grid label,
.b-note-field {
  display: grid;
  gap: 4px;
  padding: 8px 14px;
  border: 1px solid var(--b-line);
  border-radius: 5px;
  background: #fff;
}

.b-field-grid label > span,
.b-note-field > span {
  color: var(--b-blue);
  font-size: 10px;
  font-weight: 600;
}

.b-field-grid input,
.b-field-grid select,
.b-note-field textarea {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  color: var(--b-muted);
  background: transparent;
  font-size: 12px;
  resize: vertical;
}

.b-note-field {
  margin-top: 12px;
}

.b-wizard-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.b-wizard-actions small {
  margin-right: auto;
  color: var(--b-muted);
  font-size: 10px;
}

.b-primary {
  border-color: var(--b-navy);
  color: #fff;
  background: var(--b-navy);
}

.b-back {
  margin-right: auto;
  padding: 12px 0;
  color: var(--b-muted);
  background: transparent;
  font-size: 12px;
}

.b-summary {
  display: grid;
  grid-template-columns: 180px 1fr;
  margin-block: 24px;
  border-top: 1px solid var(--b-line);
}

.b-summary dt,
.b-summary dd {
  margin: 0;
  padding: 13px 10px;
  border-bottom: 1px solid var(--b-line);
}

.b-summary dt {
  color: var(--b-muted);
  font-size: 11px;
}

.b-summary dd {
  font-size: 13px;
}

.b-success {
  display: grid;
  min-height: 320px;
  place-items: center;
  align-content: center;
  text-align: center;
}

.b-success[hidden] {
  display: none;
}

.b-success > span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 50%;
  color: var(--b-navy);
  background: var(--b-cyan);
  font-size: 26px;
}

.b-success h3 {
  margin: 16px 0 8px;
  font-size: 24px;
}

.b-success p {
  max-width: 620px;
}

.b-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.b-service-grid article {
  overflow: hidden;
  background: var(--b-light);
}

.b-service-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform .6s ease;
}

.b-service-grid article:hover img {
  transform: scale(1.035);
}

.b-service-grid article > div {
  padding: 18px 20px 24px;
}

.b-service-grid span {
  color: var(--b-cyan);
  font-size: 10px;
}

.b-service-grid h3 {
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 600;
}

.b-flow {
  color: #fff;
  background: var(--b-navy);
}

.b-flow .eyebrow {
  color: var(--b-cyan);
}

.b-flow h2 {
  margin-bottom: 28px;
  font-size: 30px;
  font-weight: 600;
}

.b-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.b-flow-grid article {
  display: flex;
  min-height: 150px;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--b-blue);
}

.b-flow-grid span {
  color: var(--b-cyan);
  font-size: 10px;
}

.b-flow-grid strong {
  margin-top: auto;
  font-size: 15px;
}

.b-company {
  background: var(--b-light);
}

.b-company-grid {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(0, 1fr);
  align-items: center;
  gap: 44px;
}

.b-company figure {
  height: 340px;
  margin: 0;
  overflow: hidden;
}

.b-company img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.b-company h2 {
  margin-bottom: 18px;
  font-size: 29px;
  font-weight: 600;
}

.b-company p:not(.eyebrow) {
  color: var(--b-muted);
}

.b-company .button {
  margin-top: 10px;
  border-color: var(--b-line);
  background: #fff;
}

.b-faq h2 {
  margin-bottom: 24px;
  font-size: 28px;
  font-weight: 600;
}

.b-faq-list {
  border-bottom: 1px solid var(--b-line);
}

.b-faq-list article {
  border-top: 1px solid var(--b-line);
}

.b-faq-list button {
  display: flex;
  width: 100%;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  background: #fff;
  text-align: left;
}

.b-faq-list button span {
  font-size: 14px;
  font-weight: 600;
}

.b-faq-list button b {
  color: var(--b-cyan);
  font-size: 18px;
  font-weight: 400;
}

.b-faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  color: var(--b-muted);
  transition: grid-template-rows .3s ease;
}

.b-faq-answer p {
  min-height: 0;
  margin: 0;
  overflow: hidden;
}

.b-faq-list article.is-open .b-faq-answer {
  grid-template-rows: 1fr;
}

.b-faq-list article.is-open .b-faq-answer p {
  padding: 0 0 22px;
}

.b-cta {
  padding: 54px 0 42px;
  color: #fff;
  background: var(--b-navy);
  text-align: center;
}

.b-cta h2 {
  margin-bottom: 8px;
  font-size: 28px;
}

.b-cta p,
.b-cta small {
  color: #c8d8e4;
  font-size: 11px;
}

.b-cta .button {
  margin: 14px 0 22px;
  border-color: var(--b-cyan);
  color: var(--b-navy);
  background: var(--b-cyan);
}

.b-cta hr {
  border: 0;
  border-top: 1px solid var(--b-blue);
}

@media (max-width: 767px) {
  .b-hero {
    height: 640px;
    min-height: 0;
  }

  .b-header {
    top: 20px;
    right: 20px;
    left: 20px;
  }

  .b-brand {
    font-size: 13px;
  }

  .b-header nav {
    display: none;
  }

  .b-menu {
    display: inline-block;
  }

  .b-slide img {
    object-position: 62% center;
  }

  .b-overlay {
    background: rgba(18,38,63,.52);
  }

  .b-hero-copy {
    transform: translate(-50%, -47%);
  }

  .b-hero-copy > p {
    margin-bottom: 84px;
  }

  .b-hero-copy h1 {
    font-size: 31px;
  }

  .b-hero-copy h2 {
    margin-bottom: 56px;
    font-size: 17px;
  }

  .b-slider-control {
    top: 67%;
  }

  .b-scroll {
    bottom: 42px;
  }

  .b-estimate {
    padding: 38px 0 30px;
  }

  .b-estimate > .container > h2 {
    font-size: 24px;
    line-height: 1.6;
  }

  .b-wizard {
    min-height: 770px;
    padding: 24px 20px;
  }

  .b-wizard-head h3 {
    font-size: 22px;
  }

  .b-category-grid,
  .b-field-grid {
    grid-template-columns: 1fr;
  }

  .b-category-grid {
    gap: 8px;
  }

  .b-category-grid button {
    min-height: 70px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
  }

  .b-category-grid small {
    width: 32px;
  }

  .b-wizard-actions {
    flex-wrap: wrap;
  }

  .b-wizard-actions small {
    width: 100%;
  }

  .b-wizard-actions .button {
    width: 100%;
  }

  .b-summary {
    grid-template-columns: 1fr;
  }

  .b-summary dt {
    padding-bottom: 2px;
    border-bottom: 0;
  }

  .b-summary dd {
    padding-top: 2px;
  }

  .b-service-grid,
  .b-flow-grid,
  .b-company-grid {
    grid-template-columns: 1fr;
  }

  .b-service-grid {
    gap: 12px;
  }

  .b-service-grid img {
    height: 160px;
  }

  .b-flow-grid {
    gap: 8px;
  }

  .b-flow-grid article {
    min-height: 82px;
    flex-direction: row;
    align-items: center;
  }

  .b-flow-grid strong {
    margin: 0;
  }

  .b-company-grid {
    gap: 28px;
  }

  .b-company figure {
    height: 240px;
  }

  .b-company h2 {
    font-size: 23px;
  }

  .b-faq h2 {
    font-size: 24px;
  }

  .b-faq-list button {
    min-height: 88px;
  }

  .b-faq-list button span {
    width: calc(100% - 32px);
    font-size: 13px;
  }
}
