/* Typography tokens for easier global tuning */
.overview-content {
  padding-bottom: 180px;

  --font-weight-light: 300;
  --font-weight-regular: 400;
  --font-weight-bold: 500;

  --e3: 36px;
  --c1: 28px;

  --H1-Size: 48px;
  --H1-Bold: 500;
  --H1-Line-Height: 60px;

  --H2-Size: 32px;
  --H2-Bold: 500;
  --H2-Line-Height: 43.2px;

  --H3-Size: 24px;
  --H3-Bold: 500;
  --H3-Line-Height: 33.6px;

  --Body1-Size: 18px;
  --Body1-Regular: 400;
  --Body1-Line-Height: 27px;

  --Body2-Size: 16px;

  --Callout-Size: 14px;

  @media (max-width: 736px) {
    --H1-Size: 30px;
    --H1-Line-Height: normal;
    --H2-Size: 23px;
    --H2-Bold: 500;
    --H2-Line-Height: normal;
    --H3-Size: 17px;
    --H3-Line-Height: 23.8px;
    --Body1-Size: 16px;
    --Body1-Line-Height: 24px;
    --Body2-Size: 15px;
    --Callout-Size: 14.3px;

    --e3: 13px;
  }

  @media (max-width: 375px) {
    --H1-Size: clamp(25.6px, 8vw, 30px);
    --H2-Size: clamp(23px, 66.91px - 11.71vw, 29.44px);
    --H3-Size: clamp(14.5px, 4.55vw, 17px);
    --Body1-Size: clamp(13.6px, 4.36vw - 0.36px, 16px);
    --Body2-Size: clamp(12.8px, 4vw, 15px);
    --Callout-Size: clamp(12.23px, 3.76vw + 0.19px, 14.3px);
  }

  &,
  & * {
    box-sizing: border-box;
  }

  img,
  video {
    max-width: 100%;
    height: auto;
    display: block;
  }

  section,
  .tp-section {
    --h-margin: 23.3px;
    margin-inline: auto;

    &.full-bleed {
      width: min(100%, 1920px);
    }

    &:not(.full-bleed) {
      width: min(calc(100% - 2 * var(--h-margin)), 1920px);

      @media (max-width: 736px) {
        max-width: 375px;
      }
    }
  }

  /* real sections have top margins. .tp-sections are nested for full bleed tricks, so not top margin */
  section {
    margin-top: 180px;

    @media (max-width: 736px) {
      margin-top: 87px;
    }
  }

  .w-container {
    max-width: 1200px;
    margin: 0 auto;
  }

  .text-container-center {
    max-width: 800px;
    margin-inline: auto;
    text-align: center;
    text-wrap: pretty;

    @media (max-width: 736px) {
      max-width: 375px;
      text-align: start;
    }
  }

  .tp-text-center {
    text-align: center;
  }

  .m\:tp-text-start {
    @media (max-width: 736px) {
      text-align: start;
    }
  }

  .tp-hyperlink {
    text-decoration: none;
    cursor: pointer;
    color: #155cc7;
  }

  .tp-mt-16 {
    margin-top: 16px;
  }

  .tp-mt-10 {
    margin-top: 10px;
  }

  .tp-mt-20 {
    margin-top: 20px;
  }

  .tp-mt-24 {
    margin-top: 24px;
  }

  .tp-m-32 {
    margin: 32px;
  }

  .tp-mt-32 {
    margin-top: 32px;
  }

  .tp-mt-48 {
    margin-top: 48px;
  }

  .tp-mt-40 {
    margin-top: 40px;
  }

  .tp-mt-80 {
    margin-top: 80px;
  }

  .m\:tp-mt-40 {
    @media (max-width: 736px) {
      margin-top: 40px;
    }
  }

  .tp-mt-64 {
    margin-top: 64px;
  }

  .tp-my-64 {
    margin-block: 64px;
  }

  .m\:tp-mx-20 {
    @media (max-width: 736px) {
      margin-inline: 20px;
    }
  }

  .tp-flex {
    display: flex;
  }

  .tp-items-center {
    align-items: center;
  }

  .tp-flex-col {
    flex-direction: column;
  }

  .tp-mt-auto {
    margin-top: auto;
  }

  .tp-gap-16 {
    gap: 16px;
  }
  .tp-gap-32 {
    gap: 32px;
  }

  .tp-justify-between {
    justify-content: space-between;
  }

  .tp-space-y-16 {
    > :not([hidden]) ~ :not([hidden]) {
      margin-top: 16px;
    }
  }

  @media (max-width: 736px) {
    .m-hide {
      display: none !important;
    }
  }

  @media (width > 736px) {
    .m-show {
      display: none !important;
    }
  }

  .tp-rounded-c1 {
    border-radius: var(--c1);
    overflow: hidden;
  }

  .tp-bg-light-gray {
    background: #e9f1f8;
  }

  /* Reusable Figma typography classes */
  .tp-h1 {
    font-size: var(--H1-Size);
    font-weight: var(--H1-Bold);
    line-height: var(--H1-Line-Height);
    margin-bottom: 16px;

    @media (max-width: 736px) {
      margin-bottom: 16px;
    }

    color: rgb(0 0 0 / 84%);
  }

  .tp-h2 {
    font-size: var(--H2-Size, 32px);
    font-style: normal;
    font-weight: var(--H2-Bold, 500);
    line-height: var(--H2-Line-Height, 43.2px);
  }

  .tp-body1 {
    font-size: var(--Body1-Size);
    font-weight: var(--Body1-Regular);
    line-height: var(--Body1-Line-Height);
    color: rgb(0 0 0 / 64%);
  }
  .tp-body2 {
    font-size: var(--Body2-Size);
    font-weight: var(--Body1-Regular);
    line-height: var(--Body1-Line-Height);
    color: rgb(0 0 0 / 64%);
  }
  .tp-h3 {
    font-size: var(--H3-Size);
    font-weight: var(--H3-Bold);
    line-height: var(--H3-Line-Height);
    color: rgb(0 0 0 / 72%);
  }
  .tp-light {
    font-weight: var(--font-weight-light);
  }
  @media (max-width: 736px) {
    .tp-h2 {
      font-size: var(--H2-Size, 25px);
      font-style: normal;
      font-weight: var(--H2-Bold, 700);
      line-height: var(--H2-Line-Height, 35.7px);
    }
  }

  .deco-be65-banner {
    width: min(100%, 1920px);
    margin: 0 auto;
    height: 960px;
    background: url(https://static-product.tp-link.com/deco-be4600_v1/img/hero.webp) 50% 0 no-repeat;
    background-size: cover;
    position: relative;
    color: #fff;
    padding-inline: var(--h-margin);

    @media (width > 736px) {
      .tp-h1 {
        color: rgb(255 255 255 / 96%);
      }

      .tp-h3 {
        color: rgb(255 255 255 / 84%);
      }

      .tp-body1 {
        color: rgb(255 255 255 / 88%);
      }
    }
  }
  .deco-be65-banner .w-container {
    height: 100%;
    position: relative;
  }

  @media (width > 736px) {
    .deco-be65-banner .text {
      padding: 0 81px;
      display: grid;
      align-content: center;
      justify-items: start;
      height: 100%;
    }
  }

  .hero__deco-logo {
    margin-bottom: 36px;
    @media (max-width: 736px) {
      margin-bottom: 19px;
    }
  }

  .hero__title {
    margin-bottom: 16px;
    @media (max-width: 736px) {
      margin-bottom: 11px;
    }
  }

  .hero__subtitle {
    margin-bottom: 16px;

    @media (max-width: 736px) {
      margin-bottom: 11px;
    }
  }

  .hero__model {
    font-weight: var(--font-weight-bold);
    margin-bottom: 36px;

    @media (max-width: 736px) {
      margin-bottom: 22px;
    }
  }

  .deco-be65-banner .hero__badges {
    display: flex;
    gap: var(--e3);
    align-items: center;
  }

  .deco-be65-banner .hero__badges img {
    width: 75px;
    height: 75px;
    object-fit: cover;
    display: block;
  }
  .deco-be65-banner .row > * {
    display: inline-block;
    vertical-align: middle;
  }
  .deco-be65-banner .row .tag-wifi7 {
    height: 3rem;
  }
  .deco-be65-banner .img img + img {
    margin-left: 16px;
  }
  .deco-be65-banner .img-1 img,
  .deco-be65-banner .img-2 img {
    height: 40px;
  }
  .deco-be65-banner .row-2 {
    position: absolute;
    right: 5rem;
    bottom: 4rem;
    display: flex;
    align-items: center;
  }

  @media (max-width: 736px) {
    .deco-be65-banner {
      background: url(./m/hero.webp) top/100% auto no-repeat;
      height: 133.4375vw;
    }
    .deco-be65-banner .w-container {
      padding-inline: 0;
    }
    .deco-be65-banner .text {
      padding: 40px 0 0 0;
      width: auto;
      color: #000;
    }
    .deco-be65-banner .row {
      margin-top: 16px;
    }
    .deco-be65-banner .hero__badges {
      gap: 10px;
      margin-top: 20px;
    }
    .deco-be65-banner .hero__badges img {
      width: 33px;
      height: 33px;
      filter: invert(1);
    }
    .deco-be65-banner .row-2 {
      left: var(--h-margin);
      right: auto;
      bottom: 30px;
      flex-direction: column;
      align-items: flex-start;
      row-gap: 8px;

      @media (max-width: 360px) {
        row-gap: 3px;
      }
    }
    .deco-be65-banner .row-2 > * {
      margin-right: 0;
    }
    .deco-be65-banner .row .tag-wifi7 {
      display: block;
      margin-top: 1.5rem;
      height: 2rem;
    }
    .deco-be65-banner .img img + img {
      margin-left: 0;
    }
    .deco-be65-banner .img-1 img,
    .deco-be65-banner .img-2 img {
      height: 2.5rem;

      @media (max-width: 736px) {
        height: 23.3px;
      }
    }
  }

  .deco-be65-selling-points .text {
    aspect-ratio: 2400 / 1690;
    background: url(https://static-product.tp-link.com/deco-be4600_v1/img/selling-points.webp) 50% / 100% 100% no-repeat;
    position: relative;
    margin: auto;
  }
  .deco-be65-selling-points .text .desc {
    position: absolute;
  }

  .deco-be65-selling-points .text .desc-1 {
    left: 3%;
    top: 3%;
  }
  .deco-be65-selling-points .text .desc-2 {
    left: 60%;
    top: 3%;
  }
  .deco-be65-selling-points .text .desc-3 {
    left: 3%;
    top: 55%;
  }
  .deco-be65-selling-points .text .desc-4 {
    left: 36.5%;
    top: 55%;
  }
  .deco-be65-selling-points .text .desc-5 {
    left: 70.5%;
    top: 55%;
    width: 30%;
  }

  @media (max-width: 736px) {
    .deco-be65-selling-points .text {
      background: url(./m/selling-points.webp) 50% / 100% 100% no-repeat;
      max-width: none;
      aspect-ratio: 985 / 2842;
    }
    .deco-be65-selling-points .text .desc-1 {
      left: 7%;
      top: 2%;
    }
    .deco-be65-selling-points .text .desc-2 {
      left: 7%;
      top: 26.5%;
    }
    .deco-be65-selling-points .text .desc-3 {
      left: 7%;
      top: 51%;

      br {
        display: none;
      }
    }
    .deco-be65-selling-points .text .desc-4 {
      left: 7%;
      top: 76%;
      max-width: 43%;
    }
    .deco-be65-selling-points .text .desc-5 {
      left: 58%;
      top: 76%;
      max-width: 43%;
    }
  }
  .compact-selling-points .w-container {
    background: #f5f5f7;
    border-radius: var(--c1);
    padding: 2.25rem 1.5rem;
  }
  .compact-selling-points .grid {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: space-around;
    column-gap: 20px;
    row-gap: 24px;
    font-size: var(--Body1-Size);
  }
  .compact-selling-points .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .compact-selling-points .item img {
    width: 48px;
    height: 48px;
    object-fit: contain;

    @media (max-width: 736px) {
      width: 42px;
      height: 42px;
    }
  }
  .compact-selling-points .item p {
    margin-top: 8px;
  }

  @media (max-width: 736px) {
    .compact-selling-points .grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      row-gap: 20px;
    }
  }

  .deco-wifi7 .links {
    margin-top: 16px;
    display: flex;
    margin-inline: auto;
    gap: 48px;
    justify-content: center;
  }
  .deco-wifi7 p.links a + a {
    margin-left: 16px;
  }
  @media (max-width: 736px) {
    .deco-wifi7 p {
      margin-inline: 0;
      text-align: left;
    }
    .deco-wifi7 p.links {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      gap: 12px;
      margin-top: 16px;
      margin-inline: 0;
    }
    .deco-wifi7 p.links a + a {
      margin-left: 0;
    }
  }

  .keep-up .text p {
    max-width: 48rem;
    margin: 16px auto 0;
  }

  .keep-up .keep-up-swiper {
    margin-top: 1.5rem;
    border-radius: 32px;
  }

  .swiper-controls {
    display: flex;
    align-items: center;
    margin-top: 1.5rem;
  }
  .swiper-controls .swiper-pagination {
    position: static;
    bottom: auto;
    width: auto;
    flex: 1;
    text-align: center;
  }
  .swiper-controls .swiper-nav-spacer {
    flex-shrink: 0;
    width: calc(2 * 50px + 8px);
  }
  .swiper-controls .swiper-nav-group {
    display: flex;
    gap: 20px;
    flex-shrink: 0;
  }
  .swiper-controls .swiper-nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #f8f8f8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;

    &:hover {
      background: #f0f0f0;
    }

    &:active {
      background: #d8d8d8;
    }
  }
  .swiper-controls .swiper-nav-btn img {
    width: 24px;
    height: 24px;
    display: block;
  }
  .keep-up .swiper-slide img {
    width: 100%;
    object-fit: cover;
  }
  .swiper-controls .swiper-pagination-bullet {
    display: inline-block;
    background: #d9d9d9;
    opacity: 1;
    width: 8px;
    height: 8px;
    margin: 0 20px;
  }
  .swiper-controls .swiper-pagination-bullet-active {
    background: #155cc7;
  }

  @media (max-width: 736px) {
    .keep-up .w-container {
      width: auto;
    }
    .keep-up .text {
      text-align: left;
      margin-bottom: 1.5rem;
    }
    .keep-up .text p {
      max-width: none;
      margin: 0.75rem 0 0;
    }
  }

  .ready-for-25-grid {
    display: grid;
    grid-template-columns: 41fr 59fr;
    gap: 24px;
    align-items: stretch;
  }

  .ready-for-25-hero {
    position: relative;

    @media (width > 736px) {
      --H3-Size: 30px;
    }
  }

  .ready-for-25-hero .label {
    position: absolute;
  }
  .ready-for-25-hero .label-1 {
    top: 7%;
    left: 7%;
  }
  .ready-for-25-hero .label-2 {
    left: 50%;
    bottom: 45%;
    transform: translateX(-50%);

    @media (max-width: 736px) {
      bottom: 41%;
    }
  }

  .ready-for-25-hero {
    .label-1__title {
      font-size: 32px;
      font-weight: bold;
      @media (max-width: 736px) {
        font-size: 23px;
      }
    }
    .label-1__subtitle {
      font-size: 16px;
    }
    .label-2__title {
      font-size: 24px;
      font-weight: bold;

      @media (max-width: 736px) {
        font-size: 17px;
      }
    }
    .label-2__subtitle {
      font-size: 16px;
    }
  }
  .ready-for-25-col {
    display: flex;
    flex-direction: column;
  }

  .ready-for-25__features {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 48px;
    justify-content: center;
    margin-block: auto;

    @media (max-width: 736px) {
      margin: 26px;
    }
  }

  .ready-for-25__features .item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    white-space: nowrap;

    img {
      max-width: 92px;
      width: min(80px, 100%);
    }
  }

  .ready-for-25__features .item p {
    margin-top: 8px;
  }

  @media (max-width: 736px) {
    .ready-for-25 .ready-for-25-grid {
      grid-template-columns: 1fr;
    }
  }

  .deco-backhaul .w-container {
    display: grid;
    max-width: 100%;

    > * {
      grid-row-start: 1;
      grid-column-start: 1;
    }

    @media (max-width: 736px) {
      display: block;
      overflow: visible;
      border-radius: 0;
    }
  }

  .deco-backhaul .video {
    width: 100%;
    overflow: hidden;
  }

  .deco-backhaul .video video {
    display: block;
    width: calc(100% + 10px);
    max-width: calc(100% + 10px);
    margin: -5px;
  }

  @media (width > 736px) {
    .deco-backhaul {
      margin-top: 128px;
    }

    .deco-backhaul .w-container {
      position: relative;
    }

    .deco-backhaul .text-container-center {
      position: absolute;
      bottom: 64%;
      left: 50%;
      transform: translateX(-50%);
      width: 800px;
    }

    .deco-backhaul .video {
      position: relative;
    }
  }

  @media (max-width: 736px) {
    .deco-backhaul .text-container-center {
      position: static;
      transform: none;
      width: calc(100% - 40px);
      margin-inline: auto;
    }

    .deco-backhaul .video {
      margin-top: 4rem;
    }

    .deco-backhaul .video video {
      width: calc(100% + 10px);
    }
  }

  .tp-bg-yellow-card {
    background-color: #f7f4e7;
  }

  .deco-extra {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 64px;
    margin-inline: auto;
    width: fit-content;

    @media (max-width: 736px) {
      gap: 16px;
      width: auto;

      grid-template-columns: 1fr;
    }
  }
  .deco-extra .li .info {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 8px;
    align-items: center;
  }
  .deco-extra .li .info .order {
    font-size: 0.75rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: solid 1px black;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hs-slide {
    display: grid;
    grid-template-columns: 6fr 4fr;
    align-items: center;
    width: min(calc(100% - 2 * var(--h-margin)), 1200px);
    border-radius: 32px;
    overflow: hidden;
    cursor: pointer;
  }

  .homeshield.full-bleed,
  .iot-network.full-bleed {
    @media (max-width: 736px) {
      width: min(calc(100% - 2 * var(--h-margin)), 1920px);
      max-width: 375px;
    }
  }

  .hs-slide__desc {
    padding: 4rem;

    & > * {
      margin-bottom: 16px;
    }
  }

  .hs-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    align-self: stretch;
  }

  .homeshield .w-container,
  .iot-network .w-container {
    @media (width > 736px) {
      width: min(calc(100% - 2 * var(--h-margin)), 1200px);
    }
  }

  .homeshield__logo {
    width: auto;
    max-height: 59px;

    @media (max-width: 736px) {
      max-height: 39px;
    }
  }

  .hs-swiper-outer {
    position: relative;
    padding-inline: var(--h-margin);
    overflow: hidden;
  }

  .hs-swiper {
    width: 100%;
    overflow: visible;
  }

  .hs-progress {
    position: relative;
    height: 4px;
    background: #d9d9d9;
    border-radius: 2px;
  }

  .hs-progress__thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 33.33%;
    height: 100%;
    background: #155cc7;
    border-radius: 2px;
    transition: left 0.35s ease;
    pointer-events: none;
  }

  .hs-mobile-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .top-card img {
    width: 100%;
    border-radius: var(--c1);
    display: block;
  }

  .top-card h3 {
    margin-top: 16px;
  }

  .top-card p {
    margin-top: 10px;
  }

  .cols-2-to-1 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;

    @media (max-width: 736px) {
      grid-template-columns: 1fr;
      gap: 32px;
    }
  }

  .private-home-wrap {
    margin-top: 128px;
    position: relative;
    line-height: 0;
    max-width: 1400px;
    margin-inline: auto;

    @media (max-width: 736px) {
      margin-top: 64px;
      transform: scale(1.12);
    }
  }

  .private-home-wrap > img:first-child {
    width: 100%;
    display: block;
  }

  .pulse-ring {
    position: absolute;
    width: 4%;
    aspect-ratio: 1;
    background: url("./img/wifi-signal.webp") center / contain no-repeat;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    -ms-transform: translate(-50%, -50%) scale(0);
    opacity: 1;
    animation: 1.5s ease-out infinite overview-content__circle-active;
  }

  .pulse-ring--delay {
    animation-delay: 0.5s;
  }

  @media (prefers-reduced-motion: reduce) {
    .pulse-ring {
      animation: none;
      transform: translate(-50%, -50%) scale(7);
      opacity: 0.4;
    }

    .pulse-ring--delay {
      display: none;
    }
  }
}

@keyframes overview-content__circle-active {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 1;
  }
  to {
    transform: translate(-50%, -50%) scale(10);
    opacity: 0;
  }
}
