.product-page .site-header.is-scrolled {
  background: color-mix(in srgb, var(--surface) 90%, transparent);
}

.product-page .nav-shell {
  grid-template-columns: 1fr auto;
}

.button-buy {
  position: relative;
  isolation: isolate;
  background: #ff992e;
  color: #241536;
  box-shadow: 0 10px 24px rgba(255, 153, 46, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.button-buy:hover {
  background: #ffb45e;
}

.checkout-buy {
  background: #1769c2;
  color: #f5ecdd;
  box-shadow: 0 10px 24px rgba(23, 105, 194, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.checkout-buy:hover {
  background: #237bd7;
}

.button-buy.checkout-buy:not(.button-disabled)::after {
  border-color: rgba(35, 123, 215, 0.62);
}

@media (prefers-reduced-motion: no-preference) {
  .button-buy:not(.button-disabled)::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px;
    z-index: 1;
    border: 1px solid rgba(255, 153, 46, 0.58);
    border-radius: 50%;
    pointer-events: none;
    animation: buy-button-ring 4.6s cubic-bezier(0.16, 1, 0.3, 1) infinite;
  }
}

@keyframes buy-button-ring {
  0%,
  62%,
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
  72% {
    opacity: 0.48;
    transform: scale(1);
  }
  92% {
    opacity: 0;
    transform: scale(8.5);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .product-hero-copy.is-visible {
    animation: product-copy-enter 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .product-cover-wrap.is-visible {
    animation: product-cover-enter 900ms 100ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .product-cover-wrap.is-visible .product-cover-large {
    animation: product-cover-float 7s 1.1s ease-in-out infinite;
    will-change: transform;
  }

  .product-cover-wrap.is-visible .product-cover-glow {
    animation: product-glow-breathe 7s 1.1s ease-in-out infinite;
    transform-origin: center;
    will-change: transform, opacity;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .product-hero-copy h1 {
      animation: product-copy-scroll linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 70vh;
      will-change: transform, opacity;
    }

    .product-hero-copy .product-lead {
      animation: product-lead-scroll linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 62vh;
      will-change: transform, opacity;
    }

    .product-hero-copy .product-hero-actions {
      animation: product-actions-scroll linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 54vh;
      will-change: transform, opacity;
    }

    .product-cover-wrap.is-visible .product-cover-large {
      animation: product-cover-scroll linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 70vh;
    }

    .product-cover-wrap.is-visible .product-cover-glow {
      animation: product-glow-scroll linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 70vh;
    }
  }
}

@media (prefers-reduced-motion: no-preference) {
  .product-intro .product-section-heading.reveal.is-visible {
    animation: section-intro-heading 720ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .product-intro .product-intro-copy.reveal.is-visible {
    animation: section-intro-copy 760ms 120ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .product-benefits .product-section-heading.reveal.is-visible {
    animation: section-benefits-heading 620ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .product-benefits .benefit.reveal.is-visible {
    animation: section-benefit-enter 680ms calc(var(--item-index) * 100ms) cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .product-benefits .benefit:nth-child(1) {
    --item-index: 0;
  }

  .product-benefits .benefit:nth-child(2) {
    --item-index: 1;
  }

  .product-benefits .benefit:nth-child(3) {
    --item-index: 2;
  }

  .product-sample .sample-paper.reveal.is-visible {
    animation: section-sample-paper 820ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .product-sample .sample-aside.reveal.is-visible {
    animation: section-sample-aside 760ms 160ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .checkout-panel.reveal.is-visible {
    animation: section-checkout-enter 780ms cubic-bezier(0.16, 1, 0.3, 1) both;
  }
}

@keyframes section-intro-heading {
  from {
    opacity: 0;
    transform: translate3d(-34px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes section-intro-copy {
  from {
    opacity: 0;
    transform: translate3d(34px, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes section-benefits-heading {
  from {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes section-benefit-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes section-sample-paper {
  from {
    opacity: 0;
    transform: translate3d(0, 42px, 0) rotate(1.5deg);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
}

@keyframes section-sample-aside {
  from {
    opacity: 0;
    transform: translate3d(40px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes section-checkout-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes product-copy-scroll {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0.34;
    transform: translateY(-42px);
  }
}

@keyframes product-cover-scroll {
  from {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
  }
  to {
    transform: translate3d(34px, -92px, 0) scale(0.86) rotate(7deg);
  }
}

@keyframes product-glow-scroll {
  from {
    opacity: 0.82;
    transform: scale(0.98);
  }
  to {
    opacity: 0.08;
    transform: scale(0.62) translate(-20px, -18px);
  }
}

@keyframes product-lead-scroll {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0.48;
    transform: translate3d(-18px, -58px, 0);
  }
}

@keyframes product-actions-scroll {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0.7;
    transform: translate3d(-8px, -38px, 0);
  }
}

@keyframes product-copy-enter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes product-cover-enter {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-1deg);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotate(3deg);
  }
}

@keyframes product-cover-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes product-glow-breathe {
  0%,
  100% {
    opacity: 0.82;
    transform: scale(0.98);
  }
  50% {
    opacity: 1;
    transform: scale(1.04);
  }
}

.product-hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: 112px 0 72px;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 48%, rgba(42, 178, 200, 0.18), transparent 34%),
    radial-gradient(circle at 14% 78%, rgba(255, 153, 46, 0.14), transparent 32%),
    var(--surface);
}

.header-scroll-trigger {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  align-items: center;
  gap: 88px;
}

.product-hero-copy h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(3.5rem, 6vw, 6.2rem);
  letter-spacing: -0.055em;
  line-height: 0.96;
}

.product-lead {
  max-width: 560px;
  margin: 30px 0 26px;
  color: var(--text-soft);
  font-size: 1.2rem;
  line-height: 1.6;
}

.price-stack {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 0 0 24px;
}

.price-before {
  color: var(--text-dim);
  font-size: 0.95rem;
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.price-label {
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.price-now {
  color: #ff992e;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-style: italic;
  letter-spacing: -0.045em;
  line-height: 1;
}

.price-discount {
  padding: 5px 8px;
  border: 1px solid color-mix(in srgb, #ff992e 60%, transparent);
  border-radius: 999px;
  color: #ffb45e;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.product-hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.product-note {
  margin: 26px 0 0;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.product-cover-wrap {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
  transform: rotate(3deg);
}

.product-cover-glow {
  position: absolute;
  inset: 10% -14% -12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(42, 178, 200, 0.35), transparent 65%);
  filter: blur(20px);
}

.product-cover-large {
  position: relative;
  width: 100%;
  border: 1px solid rgba(245, 236, 221, 0.2);
  border-radius: var(--radius);
  box-shadow: 0 32px 76px var(--shadow);
}

.product-intro,
.product-sample {
  padding: 120px 0;
  background: var(--surface-raised);
  border-block: 1px solid var(--line);
}

.product-intro-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 96px;
  align-items: start;
}

.product-section-heading h2,
.checkout-panel h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(2.7rem, 4.8vw, 4.6rem);
  letter-spacing: -0.045em;
  line-height: 1;
}

.product-intro-copy {
  padding-top: 38px;
}

.product-intro-copy p {
  margin: 0 0 24px;
  color: var(--text-soft);
  font-size: 1.12rem;
  line-height: 1.75;
}

.product-benefits {
  padding: 112px 0;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 52px;
}

.benefit {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
}

.benefit span {
  color: var(--accent-strong);
  font-family: var(--mono);
  font-size: 0.75rem;
}

.benefit h3 {
  margin: 50px 0 10px;
  font-size: 1.75rem;
}

.benefit p,
.sample-aside p,
.checkout-panel p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.65;
}

.sample-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 78px;
  align-items: center;
}

.sample-paper {
  padding: 48px;
  border: 1px solid #ff992e;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--paper-ink);
  box-shadow: 0 28px 60px var(--shadow);
}

.sample-label,
.checkout-status {
  margin: 0 0 18px;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sample-paper h2 {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 3.4rem);
  letter-spacing: -0.04em;
  line-height: 1.04;
}

.sample-paper p:not(.sample-label):not(.sample-verse):not(.sample-ref) {
  color: var(--paper-ink);
  line-height: 1.7;
}

.sample-verse {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: 1.45rem;
  font-style: italic;
}

.sample-ref {
  margin: 0 0 22px;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: 0.78rem;
}

.sample-aside h3 {
  margin: 0 0 16px;
  font-family: var(--display);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
}

.sample-cta {
  margin-top: 28px;
}

.checkout-section {
  padding: 112px 0;
}

.checkout-panel {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 72px;
  align-items: center;
  padding: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-raised);
  box-shadow: 0 28px 68px var(--shadow);
}

.checkout-panel h2 {
  margin-bottom: 20px;
}

.checkout-action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
}

.checkout-status {
  margin: 0;
  color: var(--text-dim);
}

.checkout-action small {
  max-width: 290px;
  color: var(--text-dim);
  line-height: 1.5;
}

.button-disabled,
.button-disabled:hover {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}

@media (max-width: 980px) {
  .product-hero-grid,
  .product-intro-grid,
  .sample-grid,
  .checkout-panel {
    gap: 48px;
  }
}

@media (max-width: 767px) {
  .product-hero {
    padding: 112px 0 72px;
  }

  .product-hero-grid,
  .product-intro-grid,
  .benefit-grid,
  .sample-grid,
  .checkout-panel {
    grid-template-columns: 1fr;
  }

  .product-hero-copy h1 {
    font-size: clamp(3rem, 14vw, 4.8rem);
  }

  .product-hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-cover-wrap {
    width: min(82vw, 340px);
  }

  .product-intro,
  .product-sample,
  .product-benefits,
  .checkout-section {
    padding: 78px 0;
  }

  .product-intro-copy {
    padding-top: 0;
  }

  .benefit-grid {
    gap: 14px;
    margin-top: 34px;
  }

  .benefit {
    min-height: 0;
  }

  .benefit h3 {
    margin-top: 34px;
  }

  .sample-paper,
  .checkout-panel {
    padding: 30px 22px;
  }
}
