.section-compare {
  text-align: center;
}

.section-compare.section-content {
  overflow: hidden;
  position: relative;
  margin: 30px auto;
}

@media only screen and (max-width: 1068px) {
  .section-compare.section-content {
    margin: 20px auto;
  }
}

@media only screen and (max-width: 734px) {
  .section-compare.section-content {
    margin: 15px auto;
  }
}

.section-compare .wrapper {
  background: #fff;
  padding-top: 100px;
  padding-bottom: 82px;
}

@media only screen and (max-width: 1068px) {
  .section-compare .wrapper {
    padding-top: 105px;
    padding-bottom: 144px;
  }
}

@media only screen and (max-width: 734px) {
  .section-compare .wrapper {
    padding-top: 66px;
    padding-bottom: 67px;
  }
}

.section-compare .typography-compare-section-headline {
  margin-left: auto;
  margin-right: auto;
  max-width: 940px;
}

@media only screen and (max-width: 1068px) {
  .section-compare .typography-compare-section-headline {
    max-width: 550px;
  }
}

@media only screen and (max-width: 734px) {
  .section-compare .typography-compare-section-headline {
    max-width: 260px;
  }
}

.section-compare .typography-compare-section-cta {
  display: inline-block;
}

.section-compare .compare-links {
  margin-left: 0;
}

.section-compare .compare-links li {
  display: inline;
  margin: 0 0.8em;
}

.section-compare .compare-links li:first-child {
  margin-right: 0;
}

.section-compare .compare-links li:last-child {
  margin-left: 0;
}

@media only screen and (max-width: 734px) {
  .section-compare .compare-links li {
    margin: 0;
    display: block;
  }
}

@media only screen and (max-width: 734px) {
  .section-compare .compare-links li + li {
    margin-top: 0.4em;
  }
}

.section-compare .compare-grid {
  margin-top: 68px;
  margin-bottom: 73px;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, auto);
  grid-auto-flow: column;
}

@media only screen and (max-width: 1068px) {
  .section-compare .compare-grid {
    margin-top: 40px;
    margin-bottom: 76px;
    max-width: 500px;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(9, auto);
  }
}

@media only screen and (max-width: 1068px) {
  .section-compare .compare-grid .grid-cell {
    grid-column: 1/3;
  }
}

@media only screen and (max-width: 1068px) {
  .section-compare .compare-grid .grid-cell:nth-child(3n + 1):nth-child(even),
  .section-compare .compare-grid .grid-cell:nth-child(3n + 2):nth-child(odd),
  .section-compare .compare-grid .grid-cell:nth-child(3n + 3):nth-child(even) {
    grid-column: 3/5;
  }
}

@media only screen and (max-width: 1068px) {
  .section-compare
    .compare-grid
    .grid-cell:nth-child(3n + 1):nth-child(odd):nth-last-child(3),
  .section-compare
    .compare-grid
    .grid-cell:nth-child(3n + 2):nth-child(even):nth-last-child(2),
  .section-compare
    .compare-grid
    .grid-cell:nth-child(3n + 3):nth-child(odd):last-child {
    grid-column: 2/4;
  }
}

@media only screen and (max-width: 734px) {
  .section-compare .compare-grid {
    margin-top: 57px;
    margin-bottom: 44px;
  }
}

@media only screen and (max-width: 734px) and (max-width: 734px) {
  .section-compare .compare-grid {
    margin-left: auto;
    margin-right: auto;
    width: 87.5%;
  }
}

.section-compare .device {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.section-compare .typography-compare-copy {
  flex-basis: auto;
}

@media only screen and (max-width: 734px) {
  .section-compare .typography-compare-copy {
    max-width: 140px;
    margin-left: auto;
    margin-right: auto;
  }
}

.section-compare .caption {
  color: #6e6e73;
}

.section-compare .device .image-wrap {
  min-height: 191px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-direction: column;
  margin-top: 0;
  margin-bottom: 23px;
}

@media only screen and (max-width: 1068px) {
  .section-compare .device .image-wrap {
    margin-top: 30px;
    margin-bottom: 16px;
  }
}

@media only screen and (max-width: 734px) {
  .section-compare .device .image-wrap {
    min-height: 139px;
    margin-top: 7px;
    margin-bottom: 17px;
  }
}

.section-compare .device .violator-frameless {
  position: absolute;
  top: -24px;
  left: 50%;
  transform: translatex(-50%);
}

@media only screen and (max-width: 1068px) {
  .section-compare .device .violator-frameless {
    top: -23px;
  }
}

.section-compare .device .image-swatches {
  margin-bottom: 31px;
}

@media only screen and (max-width: 1068px) {
  .section-compare .device .image-swatches {
    margin-bottom: 30px;
  }
}

.section-compare .device .product {
  position: relative;
  order: 3;
}

.section-compare .device .generation {
  display: block;
  margin-top: 1px;
}

@media only screen and (max-width: 734px) {
  .section-compare .device .generation {
    max-width: 130px;
    margin-top: 5px;
  }
}

.section-compare .tagline {
  margin-top: 5px;
}

@media only screen and (max-width: 734px) {
  .section-compare .tagline {
    max-width: 200px;
    margin-top: 4px;
    margin-left: auto;
    margin-right: auto;
  }
}

.section-compare .tagline .typography-compare-tagline {
  margin: 0 auto;
}

@media only screen and (min-width: 735px) and (max-width: 1068px) {
  .section-compare .tagline.ipad-mini .typography-compare-tagline {
    max-width: 190px;
  }
}

.section-compare .buy {
  padding-bottom: 30px;
  margin-top: 16px;
  border-bottom: 1px solid #d2d2d7;
}

@media only screen and (max-width: 1068px) {
  .section-compare .buy {
    padding-bottom: 49px;
    margin-top: 10px;
  }
}

@media only screen and (max-width: 734px) {
  .section-compare .buy {
    padding-bottom: 35px;
    margin-top: 13px;
    margin-bottom: 0;
  }
}

.section-compare .buy .button {
  margin-top: 14px;
  margin-bottom: 12px;
}

@media only screen and (min-width: 735px) and (max-width: 1068px) {
  .section-compare .buy .button {
    margin-top: 13px;
    margin-bottom: 13px;
  }
}

.typography-compare-section-cta {
  font-size: 21px;
  line-height: 1.381;
  font-weight: 400;
  letter-spacing: 0.011em;
  font-family: "SF Pro Display", "SF Pro Icons", "Helvetica Neue", "Helvetica",
    "Arial", sans-serif;
}

.typography-compare-section-cta:lang(ar) {
  line-height: 1.52381;
  font-family: "SF Pro AR", "SF Pro Gulf", "SF Pro Display", "SF Pro Icons",
    "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

@media only screen and (max-width: 734px) {
  .typography-compare-section-cta {
    font-size: 17px;
    line-height: 1.47059;
    font-weight: 400;
    letter-spacing: -0.022em;
    font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica",
      "Arial", sans-serif;
  }
}

@media only screen and (max-width: 734px) {
  .typography-compare-section-cta:lang(ar) {
    line-height: 1.58824;
    letter-spacing: 0;
    font-family: "SF Pro AR", "SF Pro Gulf", "SF Pro Text", "SF Pro Icons",
      "Helvetica Neue", "Helvetica", "Arial", sans-serif;
  }
}

.section-compare .typography-compare-section-cta {
  display: inline-block;
}

.typography-family-violator {
  font-size: 12px;
  line-height: 2.08337;
  font-weight: 400;
  letter-spacing: -0.011em;
  font-family: "SF Pro Text", "SF Pro Icons", "Helvetica Neue", "Helvetica",
    "Arial", sans-serif;
}

.typography-family-violator:lang(ar) {
  letter-spacing: 0;
  font-family: "SF Pro AR", "SF Pro Gulf", "SF Pro Text", "SF Pro Icons",
    "Helvetica Neue", "Helvetica", "Arial", sans-serif;
}

.hero-section .typography-family-violator {
  position: absolute;
  width: 100%;
  top: -25px;
}

@media only screen and (max-width: 1068px) {
  .hero-section .typography-family-violator {
    top: -28px;
  }
}

.compare-grid.not-available .ipad-pro .typography-compare-link.learn-more-cta,
.compare-grid.not-available .ipad-10-9 .typography-compare-link.learn-more-cta {
  margin-top: 50px;
}

@media only screen and (min-width: 735px) and (max-width: 1068px) {
  .section-compare {
    --compare-content-padding-top: 105px;
    --compare-content-padding-bottom: 70px;
    --compare-grid-margin-top: 40px;
  }
}
