/* Hero: keep the product photograph at its natural ratio and reserve space for the benefits. */
.hero-notebook { display: none; }
.hero {
  --hero-peach: #f0d6c3;
  background: var(--hero-peach);
  position: relative;
  isolation: isolate;
  border-radius: 20px;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url('assets/hero-bg.webp') left center / cover no-repeat;
  opacity: .38;
}
.hero-layout {
  height: 520px;
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  align-items: center;
  padding-top: 28px;
  padding-bottom: 152px;
}
.hero-copy {
  padding: 0 0 0 48px;
  z-index: 2;
  max-width: 590px;
}
.hero .eyebrow {
  font-size: 13px;
  margin-bottom: 16px;
  letter-spacing: 2.5px;
}
.hero h1 {
  font-size: clamp(50px, 4.3vw, 64px);
  line-height: 1.04;
  letter-spacing: -1.8px;
}
.hero-description {
  font-size: 17px;
  line-height: 1.55;
  margin: 20px 0 24px;
  max-width: 410px;
}
.hero .pill {
  font-size: 13px;
  min-height: 48px;
  padding: 13px 24px;
  letter-spacing: .65px;
}
.hero-visual {
  position: absolute;
  right: -20px;
  top: 40px;
  bottom: auto;
  width: 58%;
  height: 420px;
  margin: 0;
  display: flex;
  align-items: center;
  mask-image: linear-gradient(to right, transparent, #000 15%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 15%, #000 93%, transparent);
  z-index: 0;
}
.hero-visual img {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  object-position: bottom right;
  mix-blend-mode: normal;
  mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 94%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 12%, #000 94%, transparent);
}
.hero-benefits {
  position: absolute;
  left: 80px;
  right: auto;
  bottom: 28px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 540px;
  max-width: 44%;
  gap: 12px;
  padding: 0;
  overflow: visible;
  z-index: 2;
}
.hero-benefits > div {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}
.hero-benefits > div:last-child { max-width: none; }
.hero-benefits svg { width: 28px; height: 32px; }
.hero-benefits span { font-size: 12px; line-height: 1.35; }
.hero-benefits strong {
  font-size: 12px;
  line-height: 1.3;
  min-height: 32px;
  margin-bottom: 3px;
  max-width: none;
}
@media (max-width: 1199px) {
  .hero-layout { height: 540px; padding-bottom: 144px; }
  .hero-copy { padding-left: 24px; max-width: none; }
  .hero h1 { font-size: 50px; }
  .hero-description { font-size: 16px; }
  .hero-description .desktop { display: none; }
  .hero-visual { width: 58%; height: 370px; right: -30px; top: 80px; bottom: auto; }
  .hero-benefits { left: 48px; bottom: 24px; max-width: 64%; gap: 16px; }
  .hero .pill { font-size: 11px; padding: 12px 18px; }
}
@media (max-width: 767px) {
  .hero { border-radius: 0 0 18px 18px; }
  .hero::before { background-size: auto 100%; opacity: .26; }
  .hero-layout {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    height: auto;
    padding: 0;
  }
  .hero-copy { padding: 36px 24px 0; max-width: none; }
  .hero .eyebrow { font-size: 12px; margin-bottom: 14px; }
  .hero h1 { font-size: clamp(42px, 8vw, 56px); line-height: 1.04; }
  .hero-description { font-size: 16px; margin: 18px 0 22px; max-width: 440px; }
  .hero .pill { font-size: 12px; min-height: 48px; padding: 13px 20px; }
  .hero-visual {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    padding-top: 12px;
    margin: 0;
    mask-image: none;
    -webkit-mask-image: none;
  }
  .hero-visual img {
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    mask-image: linear-gradient(to bottom, transparent, #000 20%, #000);
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000);
  }
  .hero-benefits {
    position: static;
    display: flex;
    width: 100%;
    max-width: none;
    gap: 24px;
    padding: 24px;
    overflow-x: auto;
    scrollbar-width: none;
    background: #f7e9de;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 20px;
  }
  .hero-benefits > div { flex: 0 0 96px; scroll-snap-align: start; }
  .hero-benefits strong { font-size: 12px; min-height: 32px; }
  .hero-benefits svg { width: 30px; height: 34px; }
}
@media (max-width: 479px) {
  .hero-copy { padding: 32px 20px 0; }
  .hero h1 { font-size: 43px; }
  .hero .pill { font-size: 11px; padding: 13px 18px; }
  .hero-benefits { padding: 20px; }
}
@media (max-width: 359px) {
  .hero h1 { font-size: 38px; }
  .hero .pill { font-size: 10px; padding: 12px 14px; }
}

/* The supplied notebook artwork is already complete. Display it without cropping. */
@media (min-width: 1024px) {
  .hero { background: none; }
  .hero::before, .hero-layout { display: none; }
  .hero-notebook { display: block; position: relative; }
  .hero-notebook > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1983 / 793;
  }
  .hero-art-cta {
    position: absolute;
    left: 5.5%;
    top: 59.77%;
    width: 25.05%;
    height: 9.08%;
    border-radius: 999px;
    background: transparent;
  }
  .hero-art-cta:hover { box-shadow: inset 0 0 0 2px #ffffff80; }
  .hero-art-cta:focus-visible { outline: 3px solid #17251e; outline-offset: 4px; }
}
