.scroll-offer-bar,
.scroll-offer-popup {
  --offer-cream: #f9f0e2;
  --offer-ink: #22382a;
  --offer-red: #8d241f;
  --offer-rule: #5f44364a;
  position: fixed;
  z-index: 24;
  border: 1px solid var(--offer-rule);
  color: var(--offer-ink);
  background: var(--offer-cream);
  box-shadow: 0 8px 28px #281a1a33;
}

.scroll-offer-bar[hidden],
.scroll-offer-popup[hidden] {
  display: none;
}

.offer-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 7px 15px;
  border: 1px solid var(--offer-red);
  border-radius: 999px;
  background: var(--offer-red);
  color: #fffaf1;
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}

.offer-link:hover {
  background: #651b17;
  border-color: #651b17;
}

.scroll-offer-bar {
  display: none;
}

.scroll-offer-popup {
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  width: min(490px, calc(100vw - 40px));
  border-radius: 10px;
  overflow: hidden;
  animation: offer-enter .25s ease both;
}

.offer-popup-image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.offer-popup-copy {
  min-width: 0;
  padding: 22px 19px 18px;
}

.offer-popup-title {
  padding-right: 33px;
  color: var(--offer-red);
  font-weight: 780;
  font-size: .83rem;
  line-height: 1.2;
}

.offer-popup-price {
  margin-block: 7px 5px;
  color: var(--offer-ink);
  font: 800 clamp(1.9rem, 5vw, 2.65rem)/1 Inter, system-ui, sans-serif;
  letter-spacing: -.04em;
}

.offer-popup-note {
  margin-bottom: 10px;
  max-width: 27ch;
  font-size: .84rem;
  line-height: 1.35;
}

.offer-popup-close {
  position: absolute;
  inset: 4px 4px auto auto;
  width: 44px;
  min-height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--offer-ink);
  cursor: pointer;
}

.offer-popup-close:hover {
  background: #eadbc8;
}

.offer-popup-close:focus-visible {
  outline-offset: -4px !important;
}

.ev-home .studio-header h2 {
  font-size: clamp(45px, 8vw, 118px);
}

.ev-home .launch-preview h2 {
  font-size: clamp(47px, 7.5vw, 110px);
}

.ev-product .product-info h1 {
  font-size: clamp(46px, 5.2vw, 80px);
}

.ev-product .purchase-panel h2 {
  margin: 0 0 .6rem;
  font: 770 .9rem/1.3 Inter, system-ui, sans-serif;
  text-transform: none;
}

.ev-product .product-details h2 {
  margin-bottom: .55rem;
  font-size: clamp(32px, 5vw, 55px);
}

@keyframes offer-enter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 767px) {
  .scroll-offer-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    inset: auto 0 0;
    padding: 8px max(12px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    border-inline: 0;
    border-bottom: 0;
    box-shadow: 0 -4px 18px #281a1a2c;
  }

  .scroll-offer-bar p {
    display: grid;
    min-width: 0;
    gap: 2px;
  }

  .scroll-offer-bar strong {
    font-size: 1.32rem;
    line-height: 1.1;
  }

  .scroll-offer-bar span {
    font-size: .71rem;
    font-weight: 650;
    line-height: 1.2;
  }

  .scroll-offer-bar .offer-link {
    flex-shrink: 0;
  }

  .scroll-offer-popup {
    inset: auto max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    width: auto;
    grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  }

  .offer-popup-copy {
    padding: 16px 12px 13px;
  }

  .offer-popup-price {
    margin-block: 6px 5px;
  }

  .offer-popup-title {
    font-size: .78rem;
  }

  .offer-popup-note {
    font-size: .78rem;
    margin-bottom: 7px;
  }

  .ev-product .product-info h1 {
    font-size: clamp(40px, 10.4vw, 66px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-offer-popup { animation: none; }
}
