.flow {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow-card {
  position: relative;
}

.flow-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: linear-gradient(135deg, #e7fbff, #eaf2ff);
  color: #0b62a4;
}

.flow-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow-step-no {
  position: absolute;
  right: 14px;
  top: 14px;
  color: #9aa8b8;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.rebate-table tbody td,
.rebate-table tbody th {
  position: relative;
  isolation: isolate;
  background-clip: padding-box;
  transition: box-shadow 0.16s ease, filter 0.16s ease;
}

.rebate-table tbody td::after,
.rebate-table tbody th::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle 115px at var(--mx, 50%) var(--my, 50%),
    rgba(64, 224, 246, 0.38) 0%,
    rgba(22, 184, 215, 0.17) 34%,
    rgba(22, 184, 215, 0) 72%
  );
  transition: opacity 0.14s ease;
}

.rebate-table tbody td:hover::after,
.rebate-table tbody th:hover::after {
  opacity: 1;
}

.rebate-table tbody td:hover,
.rebate-table tbody th:hover {
  z-index: 5;
  box-shadow: inset 0 0 0 2px rgba(22, 184, 215, 0.68),
    0 8px 24px rgba(8, 84, 139, 0.16);
  filter: brightness(1.035);
}

.rebate-table tbody td > *,
.rebate-table tbody th > * {
  position: relative;
  z-index: 1;
}

.top-rebate:hover {
  box-shadow: inset 0 0 0 2px #f4b942,
    0 8px 28px rgba(244, 185, 66, 0.24) !important;
}

@media (min-width: 1280px) {
  .container {
    width: min(1240px, 90vw);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
    gap: 40px;
  }

  .rebate-shell {
    padding: 28px 30px;
  }

  .calc-layout {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 22px;
  }
}

@media (min-width: 1700px) {
  .container {
    width: min(1240px, 86vw);
  }
}

@media (max-width: 1000px) {
  .flow {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .flow {
    grid-template-columns: 1fr;
  }
}

/* Conversion-focused home layout. Legacy sections stay in the document for an easy rollback. */
#who,
#rebate,
#how,
#platforms,
#why {
  display: none;
}

.hero-copy > .hero-promise {
  display: block;
  margin: 0;
  color: #ffd879;
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 900;
}

.hero-safety {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
  color: #b8cae3;
  font-size: 12px;
  font-weight: 800;
}

.hero-rate {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-rate > span {
  margin: 0 0 10px;
  color: #9eeaf5;
  font-weight: 900;
}

.hero-rate b {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.hero-rate b small {
  color: #9eeaf5;
  font-size: 11px;
}

.hero-rate > small {
  margin-top: 10px;
  color: #aebed5;
  font-size: 11px;
}

.hero-rate-note {
  grid-column: 1 / -1;
  margin: 0 !important;
  color: #91a6c4 !important;
  font-size: 11px !important;
}

.hero .hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  gap: 46px;
}

.hero .hero-proof {
  order: 2;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 500px;
  justify-self: end;
}

.hero .hero-proof .metric:first-child {
  grid-column: auto;
}

.hero .hero-copy {
  order: 1;
  max-width: 760px;
}

.hero .hero-copy h1 {
  margin-top: 0;
}

.hero .hero-proof .metric {
  min-height: 164px;
  padding: 25px 28px;
}

.hero .hero-proof .metric b {
  font-size: clamp(54px, 5vw, 76px);
}

.hero .hero-proof .hero-rate b > span {
  display: inline;
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.hero .hero-proof .metric:not(.hero-rate) {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.account-paths {
  padding: 62px 0;
  background: #f4f7fb;
}

.account-paths .section-head {
  text-align: center;
  margin-right: auto;
  margin-left: auto;
}

.paths-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #079bb9;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.18em;
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 26px;
}

.path-card {
  padding: 24px;
  border: 1px solid #dbe3ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px #061a440a;
}

.path-card > span {
  color: #0aa8c6;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.12em;
}

.path-card h3 {
  margin: 14px 0 7px;
  color: #061a44;
}

.path-card p {
  min-height: 44px;
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.path-card a {
  display: inline-block;
  margin-top: 18px;
  color: #087da7;
  font-size: 13px;
  font-weight: 900;
}

.path-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 3px 14px;
  align-items: center;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 12px;
  background: #061a44;
  color: #fff;
}

.path-note strong {
  grid-row: 1 / 3;
  padding: 6px 9px;
  border-radius: 7px;
  background: #e2b23f;
  color: #302300;
  font-size: 11px;
}

.path-note span {
  font-size: 13px;
  font-weight: 850;
}

.path-note small {
  color: #aebed5;
}

@media (max-width: 980px) {
  .hero .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero .hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

@media (max-width: 760px) {
  .hero-safety {
    gap: 8px 12px;
  }

  .hero .hero-proof {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .path-grid {
    grid-template-columns: 1fr;
  }

  .path-card p {
    min-height: 0;
  }

  .path-note {
    grid-template-columns: 1fr;
  }

  .path-note strong {
    grid-row: auto;
    width: max-content;
    margin-bottom: 6px;
  }
}

@media (max-width: 430px) {
  .hero .hero-proof {
    grid-template-columns: 1fr;
  }
}
