html[data-dims-page="pre-saves"] { background: #fff; }

.dims-presaves-hero {
  align-items: center;
  background: #fff;
  color: var(--dims-ink, #0f172a);
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  margin: 0 auto;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(7rem, 12vh, 9rem) max(20px, calc((100vw - 1220px) / 2)) clamp(3rem, 6vh, 5rem);
  text-align: left;
}

.dims-presaves-hero__copy {
  margin: 0 auto;
  max-width: 35rem;
  min-width: 0;
  padding: 0;
  text-align: center;
  width: 100%;
}

.dims-presaves-hero__title {
  font-family: "SF Pro Display Semibold", "SF Pro Display Semibold Placeholder", "SF Pro Display Medium", system-ui, sans-serif;
  font-size: clamp(2.35rem, 5.5vw, 4.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.98;
  margin: 0 auto;
  max-width: 12ch;
  text-wrap: balance;
}

@media (min-width: 810px) {
  .dims-presaves-hero__title {
    font-size: clamp(3.25rem, calc(4.5vw + 1rem), 4.75rem);
  }
}

.dims-presaves-hero__sub {
  color: rgb(15 23 42 / 0.68);
  font-family: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", system-ui, sans-serif;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.55;
  margin: 1.5rem auto 0;
  max-width: min(30rem, 90vw);
  text-wrap: balance;
}

.dims-presaves-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.dims-presaves-hero__media {
  align-items: flex-end;
  background: transparent;
  display: flex;
  justify-content: center;
  margin: 0;
  min-width: 0;
  min-height: clamp(34rem, 55vw, 46rem);
  overflow: visible;
  padding: 0;
  margin-inline: auto;
  width: min(100%, 52rem);
}

.dims-presaves-hero__media img {
  display: block;
  height: clamp(34rem, 58vw, 49rem);
  object-fit: contain;
  object-position: center bottom;
  width: auto;
}

@media (max-width: 809.98px) {
  .dims-presaves-hero {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    min-height: 0;
    overflow: hidden;
    padding-top: 5.75rem;
    text-align: center;
  }
  .dims-presaves-hero__copy { margin: 0 auto 1rem; padding: 0; }
  .dims-presaves-hero__title { margin: 0 auto; max-width: 15ch; }
  .dims-presaves-hero__sub { margin: 1rem auto 0; }
  .dims-presaves-hero__actions { justify-content: center; margin-top: 1.25rem; }
  .dims-presaves-hero__media {
    margin-top: -1rem;
    min-height: 32rem;
    padding: 0;
    width: 100%;
  }
  .dims-presaves-hero__media img { height: 32.3rem; max-width: none; }
}

.dims-presaves-story {
  background: #fff;
  color: var(--dims-ink, #0f172a);
  position: relative;
}

.dims-presaves-story__track { height: 240vh; }

.dims-presaves-story__sticky {
  align-items: center;
  display: grid;
  height: 100vh;
  justify-items: center;
  overflow: hidden;
  padding: 2rem;
  position: sticky;
  top: 0;
}

.dims-presaves-story__line {
  font-family: "SF Pro Display Semibold", "SF Pro Display Semibold Placeholder", system-ui, sans-serif;
  font-size: clamp(3rem, 7vw, 7rem);
  font-weight: 600;
  grid-area: 1 / 1;
  letter-spacing: -0.045em;
  line-height: 0.98;
  margin: 0;
  max-width: 13ch;
  opacity: 0;
  text-align: center;
  text-wrap: balance;
  transform: translate3d(0, 28px, 0);
  will-change: opacity, transform;
}

@media (max-width: 809.98px) {
  .dims-presaves-story__track { height: 200vh; }
  .dims-presaves-story__sticky { padding: 1.5rem; }
  .dims-presaves-story__line {
    font-family: "SF Pro Display Medium", "SF Pro Display Medium Placeholder", system-ui, sans-serif;
    font-size: 44px;
    font-weight: 500;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dims-presaves-story__track { height: auto; }
  .dims-presaves-story__sticky { gap: 3rem; height: auto; padding-block: 7rem; position: static; }
  .dims-presaves-story__line { grid-area: auto; opacity: 1 !important; transform: none !important; }
}

.dims-presaves-features {
  display: grid;
  gap: 1.5rem;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) 0 18vh;
  width: min(1100px, calc(100vw - 40px));
}

.dims-presaves-features__title {
  font-family: "SF Pro Display Medium", "SF Pro Display Medium Placeholder", system-ui, sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1;
  margin: 0 auto clamp(2rem, 5vw, 4rem);
  max-width: 14ch;
  text-align: center;
  text-wrap: balance;
}

.dims-presaves-feature {
  align-items: center;
  background: #f1f3f5;
  border-radius: 16px;
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 1.15fr);
  min-height: 34rem;
  min-width: 0;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 810px) {
  .dims-presaves-feature {
    position: sticky;
    top: 84px;
  }

  .dims-presaves-feature:nth-child(1) { z-index: 1; }
  .dims-presaves-feature:nth-child(2) { z-index: 2; }
  .dims-presaves-feature:nth-child(3) { z-index: 3; }
}

.dims-presaves-feature__copy { max-width: 23rem; padding: 0; }

.dims-presaves-feature__title {
  font-family: "SF Pro Display Medium", "SF Pro Display Medium Placeholder", system-ui, sans-serif;
  font-size: clamp(2.35rem, 4vw, 54px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  max-width: 12ch;
  text-wrap: balance;
}

.dims-presaves-feature__body {
  color: rgb(15 23 42 / 0.68);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  margin: 1.4rem 0 0;
  max-width: 23rem;
}

.dims-presaves-feature__media {
  --presaves-media-size: clamp(22rem, 32vw, 28rem);
  align-items: center;
  background: #f1f3f5;
  border-radius: 14px;
  display: flex;
  justify-content: center;
  contain: layout paint size;
  height: var(--presaves-media-size);
  min-height: 0;
  min-width: 0;
  justify-self: center;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: var(--presaves-media-size);
}

.dims-presaves-feature__media > .dims-bento__cell-media {
  bottom: 0;
  height: auto;
  left: 0;
  margin: 0;
  max-height: none;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: auto;
}
.dims-presaves-feature__media--presaves { align-items: stretch; }
.dims-presaves-feature__media--presaves > .dims-bento__cell-media { height: 100%; min-height: 100%; width: 100%; }
.dims-presaves-feature__media--presaves .dims-bento__presave-scroll { height: 100%; inset: 0; min-height: 100%; width: 100%; }
.dims-presaves-feature__media--presaves .dims-bento__presave-track { min-height: max-content; padding-inline: clamp(1rem, 3vw, 2rem); }

.dims-presaves-feature__media--email { background: #e5e7eb; }
.dims-presaves-feature__media--email > .dims-bento__cell-media { align-items: center; display: flex; justify-content: center; overflow: hidden; padding: clamp(1.25rem, 2.5vw, 2rem); }
.dims-presaves-feature__media--email .dims-bento__email-compose { flex: none; max-width: none; pointer-events: none; width: 100%; }
.dims-presaves-feature__media--email .dims-bento__email-compose-card { min-height: 0; width: 100%; }

.dims-presaves-feature__media--styles img {
  display: block;
  height: 96%;
  object-fit: contain;
  width: 96%;
}

@media (max-width: 809.98px) {
  .dims-presaves-features { gap: 1rem; width: calc(100vw - 24px); }
  .dims-presaves-features__title {
    font-size: 32px;
    margin-bottom: 1.5rem;
    max-width: 18ch;
    width: 100%;
  }
  .dims-presaves-feature { gap: 2rem; grid-template-columns: 1fr; min-height: 0; padding: 2rem 1.25rem; }
  .dims-presaves-feature__copy { justify-self: stretch; max-width: none; padding-inline: 0.75rem; width: 100%; }
  .dims-presaves-feature__title { font-size: 22px; max-width: none; }
  .dims-presaves-feature__body {
    font-family: "SF Pro Display Regular", "SF Pro Display Regular Placeholder", system-ui, sans-serif;
    font-size: 14px;
    margin-top: 0.6rem;
  }
  .dims-presaves-feature__media {
    --presaves-media-size: min(24rem, calc(100vw - 40px));
    height: var(--presaves-media-size);
    padding: 0;
    width: var(--presaves-media-size);
  }
}

@media (prefers-reduced-motion: reduce) {
  .dims-presaves-feature__media .dims-bento__presave-track { animation: none; }
}
