/* Homepage category and buying support polish. */
.home-category-section {
  padding-top: clamp(2.25rem, 5vw, 4rem);
  padding-bottom: clamp(1.75rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 12% 10%, rgba(26, 115, 232, .09), transparent 28rem),
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
}

.home-category-showcase {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 2.8vw, 2rem);
  background: rgba(255, 255, 255, .88);
  border: 1px solid #dfe9f7;
  border-radius: 1.65rem;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .08);
}

.home-category-showcase::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(26, 115, 232, .08), transparent 38%),
    radial-gradient(circle at 88% 12%, rgba(56, 189, 248, .14), transparent 16rem);
  content: "";
}

.home-category-showcase > * {
  position: relative;
  z-index: 1;
}

.home-category-showcase-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
  text-align: left;
}

.home-category-showcase-heading .public-eyebrow {
  margin-bottom: .35rem;
  color: #1a73e8;
}

.home-category-showcase-heading h2 {
  margin: 0 0 .35rem;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.home-category-showcase-heading p {
  max-width: 36rem;
  color: #53627a;
  font-size: .95rem;
}

.home-category-showcase-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.home-category-tile {
  position: relative;
  display: grid;
  min-height: 12.6rem;
  align-content: start;
  gap: .95rem;
  padding: 1.15rem;
  color: #101828;
  text-decoration: none;
  background:
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  border: 1px solid #dfe7f2;
  border-radius: 1.35rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.home-category-tile::after {
  position: absolute;
  inset: auto 1rem 0 1rem;
  height: 3px;
  background: linear-gradient(90deg, #1a73e8, #38bdf8);
  border-radius: 999px 999px 0 0;
  opacity: 0;
  content: "";
  transition: opacity .18s ease;
}

.home-category-tile:hover,
.home-category-tile:focus {
  color: #0b3f90;
  border-color: #b9d5ff;
  box-shadow: 0 22px 46px rgba(26, 115, 232, .14);
  outline: 0;
  transform: translateY(-4px);
}

.home-category-tile:hover::after,
.home-category-tile:focus::after {
  opacity: 1;
}

.home-category-tile__visual {
  display: inline-flex;
  width: 5.45rem;
  height: 5.45rem;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(145deg, #eff6ff, #fff),
    #eff6ff;
  border: 1px solid #d8e8ff;
  border-radius: 1.25rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .75), 0 12px 28px rgba(26, 115, 232, .12);
}

.home-category-tile__visual img {
  width: 4.65rem;
  height: 4.65rem;
  object-fit: contain;
}

.home-category-tile__content {
  display: grid;
  gap: .38rem;
}

.home-category-tile__content small {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: .28rem .52rem;
  color: #1a73e8;
  background: #eef6ff;
  border: 1px solid #d7e9ff;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.home-category-tile__content strong {
  color: #101828;
  font-size: 1.02rem;
  font-weight: 850;
  line-height: 1.24;
}

.home-category-tile__arrow {
  position: absolute;
  right: 1rem;
  top: 1rem;
  display: inline-flex;
  gap: .25rem;
  min-width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  padding: 0 .55rem;
  color: #1a73e8;
  background: #eff6ff;
  border-radius: 999px;
  opacity: .72;
  transform: translateX(-.25rem);
  transition: opacity .18s ease, transform .18s ease;
}

.home-category-tile__arrow span {
  font-size: .72rem;
  font-weight: 800;
}

.home-category-tile:hover .home-category-tile__arrow,
.home-category-tile:focus .home-category-tile__arrow {
  opacity: 1;
  transform: translateX(0);
}

.home-buying-section {
  padding: 0 0 clamp(2.5rem, 5vw, 4rem);
  background: #f8fbff;
}

.home-buying-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: 1.15rem;
}

.home-buying-card {
  position: relative;
  overflow: hidden;
  min-height: 15rem;
  padding: clamp(1.35rem, 3vw, 2rem);
  color: #fff;
  border-radius: 1.4rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .14);
}

.home-buying-card::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .24), transparent 8rem),
    linear-gradient(135deg, rgba(255, 255, 255, .08), transparent 42%);
  content: "";
}

.home-buying-card > * {
  position: relative;
  z-index: 1;
}

.home-buying-card-primary {
  background: linear-gradient(135deg, #1a73e8 0%, #123a63 58%, #071429 100%);
}

.home-buying-card-support {
  background: linear-gradient(135deg, #0f766e 0%, #0b4f73 48%, #071429 100%);
}

.home-buying-badge {
  display: inline-flex;
  margin-bottom: 1rem;
  padding: .38rem .72rem;
  color: #dbeafe;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .02em;
}

.home-buying-card h2 {
  max-width: 34rem;
  margin: 0 0 .7rem;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.08;
}

.home-buying-card p {
  max-width: 34rem;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, .84);
  font-size: .95rem;
  line-height: 1.65;
}

.home-buying-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem;
}

.home-buying-card .btn {
  min-height: 2.7rem;
  padding: .68rem 1.1rem;
  font-size: .84rem;
}

.home-buying-card .btn-outline-light {
  color: #fff;
  border-color: rgba(255, 255, 255, .72);
  background: rgba(255, 255, 255, .04);
}

@media (max-width: 1199.98px) {
  .home-category-showcase-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .home-category-section {
    padding-top: 1.1rem;
    padding-bottom: 1.35rem;
  }

  .home-category-showcase {
    padding: 1rem;
    border-radius: 1.15rem;
  }

  .home-category-showcase-heading,
  .home-buying-grid {
    grid-template-columns: 1fr;
  }

  .home-category-showcase-heading {
    display: block;
    margin-bottom: .9rem;
  }

  .home-category-showcase-heading .public-eyebrow {
    margin-bottom: .2rem;
    font-size: .68rem;
  }

  .home-category-showcase-heading h2 {
    margin-bottom: .25rem;
    font-size: 1.45rem;
  }

  .home-category-showcase-heading p {
    margin-bottom: 0;
    font-size: .82rem;
    line-height: 1.4;
  }

  .home-category-showcase-grid {
    grid-template-columns: 1fr;
    gap: .65rem;
  }

  .home-category-tile {
    display: grid;
    grid-template-columns: 4.2rem 1fr 2rem;
    align-items: center;
    min-height: 5.5rem;
    gap: .8rem;
    padding: .72rem;
    border-radius: 1rem;
  }

  .home-category-tile__visual {
    width: 4.2rem;
    height: 4.2rem;
    border-radius: .9rem;
  }

  .home-category-tile__visual img {
    width: 3.55rem;
    height: 3.55rem;
  }

  .home-category-tile__content {
    gap: .22rem;
    min-width: 0;
  }

  .home-category-tile__content small {
    padding: .2rem .42rem;
    font-size: .62rem;
  }

  .home-category-tile__content strong {
    font-size: .92rem;
    line-height: 1.2;
  }

  .home-category-tile__arrow {
    position: static;
    width: auto;
    min-width: 3.85rem;
    height: 1.9rem;
    justify-self: end;
    transform: none;
  }

  .home-buying-grid {
    display: grid;
  }
}

@media (max-width: 420px) {
  .home-category-showcase-grid {
    grid-template-columns: 1fr;
  }

  .home-buying-actions .btn {
    width: 100%;
  }
}
