.products-page {
  --product-ink: #f7f7f2;
  --product-muted: #aeb6b3;
  --product-green: #55f29a;
  --product-green-deep: #0fa85b;
  --product-panel: #171b20;
  --product-line: rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(circle at 84% 12%, rgba(41, 217, 129, 0.13), transparent 32rem),
    #0f1117;
  color: var(--product-ink);
  font-family: Inter, sans-serif;
}

.products-page .nav {
  border-bottom: 1px solid var(--product-line);
  background: rgba(15, 17, 23, 0.82);
}

.products-page .nav-links a[aria-current="page"] {
  color: var(--product-green);
}

.products-page .logo-img,
.products-page .footer-logo {
  filter: brightness(2.2) saturate(1.15);
}

.products-page h1,
.products-page h2,
.products-page h3 {
  color: var(--product-ink);
  font-family: "Bricolage Grotesque", sans-serif;
}

.products-hero {
  min-height: 76vh;
  overflow: hidden;
  padding: 190px 0 110px;
  position: relative;
}

.products-hero::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
  pointer-events: none;
  position: absolute;
}

.products-glow {
  border: 1px solid rgba(85, 242, 154, 0.32);
  border-radius: 50%;
  height: 46rem;
  position: absolute;
  right: -24rem;
  top: -10rem;
  transform: rotate(-18deg);
  width: 46rem;
}

.products-glow::before,
.products-glow::after {
  border: 1px solid rgba(85, 242, 154, 0.15);
  border-radius: inherit;
  content: "";
  inset: 4rem;
  position: absolute;
}

.products-glow::after {
  inset: 9rem;
}

.products-hero-inner {
  position: relative;
  z-index: 1;
}

.products-kicker {
  align-items: center;
  color: var(--product-green);
  display: flex;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  gap: 0.75rem;
  letter-spacing: 0.14em;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
}

.products-kicker::before {
  background: var(--product-green);
  content: "";
  height: 2px;
  width: 2.25rem;
}

.products-hero h1 {
  font-size: clamp(3.4rem, 8.5vw, 8.4rem);
  letter-spacing: -0.075em;
  line-height: 0.88;
  margin: 0;
  max-width: 12ch;
}

.products-hero h1 span {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(247, 247, 242, 0.68);
}

.products-intro {
  color: var(--product-muted);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.7;
  margin: 3rem 0 2.25rem auto;
  max-width: 38rem;
}

.products-jump {
  align-items: center;
  color: var(--product-ink);
  display: flex;
  font-size: 0.9rem;
  font-weight: 700;
  gap: 0.75rem;
  justify-content: flex-end;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.products-jump span {
  align-items: center;
  border: 1px solid var(--product-line);
  border-radius: 50%;
  display: inline-flex;
  height: 2.75rem;
  justify-content: center;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
  width: 2.75rem;
}

.products-jump:hover span {
  background: var(--product-green);
  border-color: var(--product-green);
  color: #07130d;
  transform: translateY(0.2rem);
}

.product-section {
  padding: 40px 0 120px;
  scroll-margin-top: 90px;
}

.checkout-cancelled {
  background: rgba(85, 242, 154, 0.1);
  border: 1px solid rgba(85, 242, 154, 0.45);
  border-radius: 0.75rem;
  color: var(--product-ink);
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
}

.product-offer {
  background: var(--product-panel);
  border: 1px solid var(--product-line);
  border-radius: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(20rem, 0.75fr);
  overflow: hidden;
  position: relative;
}

.product-offer::before {
  background: var(--product-green);
  content: "";
  height: 0.35rem;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.product-story {
  padding: clamp(2rem, 5vw, 5rem);
}

.product-meta {
  color: var(--product-muted);
  display: flex;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.13em;
  margin-bottom: 4rem;
  text-transform: uppercase;
}

.product-label {
  color: var(--product-green);
  font-family: monospace;
  font-size: 0.85rem;
  margin: 0 0 1rem;
}

.product-story h2 {
  font-size: clamp(2.65rem, 5.6vw, 5.75rem);
  letter-spacing: -0.06em;
  line-height: 0.95;
  margin: 0;
  max-width: 9.5ch;
}

.product-lede {
  color: #d7dcda;
  font-size: 1.12rem;
  line-height: 1.75;
  margin: 2.5rem 0 3.5rem;
  max-width: 42rem;
}

.product-includes {
  border-top: 1px solid var(--product-line);
  padding-top: 2rem;
}

.product-includes h3 {
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin: 0 0 0.75rem;
}

.product-includes ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-includes li {
  align-items: start;
  border-bottom: 1px solid var(--product-line);
  display: grid;
  gap: 1rem;
  grid-template-columns: 2.5rem 1fr;
  padding: 1.4rem 0;
}

.include-number {
  color: var(--product-green);
  font-family: monospace;
  font-size: 0.75rem;
  padding-top: 0.2rem;
}

.product-includes strong,
.product-includes li div span {
  display: block;
}

.product-includes strong {
  color: var(--product-ink);
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
}

.product-includes li div span,
.product-boundary {
  color: var(--product-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.product-boundary {
  margin: 2rem 0 0;
  max-width: 44rem;
}

.product-checkout {
  align-self: stretch;
  background:
    radial-gradient(circle at 50% 14%, rgba(85, 242, 154, 0.16), transparent 17rem),
    #101418;
  border-left: 1px solid var(--product-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(2rem, 4vw, 4rem);
  position: relative;
}

.price-scene {
  align-items: center;
  display: flex;
  height: 18rem;
  justify-content: center;
  margin-bottom: 1rem;
  overflow: hidden;
  position: relative;
}

.price-shadow,
.price-amount {
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: clamp(5rem, 9vw, 8rem);
  font-weight: 800;
  letter-spacing: -0.08em;
  line-height: 1;
}

.price-shadow {
  color: transparent;
  position: absolute;
  transform: translate(0.35rem, 0.45rem);
  -webkit-text-stroke: 1px rgba(85, 242, 154, 0.35);
}

.price-amount {
  color: var(--product-ink);
  position: relative;
}

.price-amount sup {
  color: var(--product-green);
  font-size: 0.3em;
  left: -0.5em;
  position: absolute;
  top: 0.3em;
}

.fishing-line {
  border: 1px solid rgba(85, 242, 154, 0.46);
  border-radius: 50%;
  height: 15rem;
  position: absolute;
  transform: rotate(-20deg);
  width: 20rem;
}

.line-bobber {
  animation: bobber 3.2s ease-in-out infinite;
  background: linear-gradient(to bottom, var(--product-green) 50%, var(--product-ink) 50%);
  border: 3px solid #101418;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(85, 242, 154, 0.5), 0 0 28px rgba(85, 242, 154, 0.32);
  height: 1.2rem;
  position: absolute;
  right: 10%;
  top: 24%;
  width: 1.2rem;
}

@keyframes bobber {
  0%, 100% { transform: translateY(0) rotate(8deg); }
  50% { transform: translateY(0.5rem) rotate(-8deg); }
}

.price-caption {
  color: var(--product-ink);
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  text-align: center;
}

.price-detail {
  color: var(--product-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0.65rem auto 1.75rem;
  max-width: 20rem;
  text-align: center;
}

.checkout-button {
  border: 0;
  display: flex;
  font-size: 1rem;
  justify-content: space-between;
  min-height: 3.75rem;
  width: 100%;
}

.checkout-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.checkout-error {
  background: rgba(255, 96, 112, 0.1);
  border: 1px solid rgba(255, 96, 112, 0.55);
  border-radius: 0.6rem;
  color: #ffc3ca;
  font-size: 0.85rem;
  margin-top: 1rem;
  padding: 0.8rem;
}

.checkout-note,
.refund-note {
  color: #818b87;
  font-size: 0.76rem;
  line-height: 1.55;
  margin: 1rem 0 0;
  text-align: center;
}

.refund-note {
  color: #aeb6b3;
  margin-top: 0.55rem;
}

.products-next {
  border-top: 1px solid var(--product-line);
  padding: 110px 0 130px;
}

.products-next-inner {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.2fr 0.8fr;
}

.products-next .products-kicker {
  grid-column: 1 / -1;
}

.products-next h2 {
  font-size: clamp(2.5rem, 5.2vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0;
}

.products-next p:not(.products-kicker) {
  color: var(--product-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 30rem;
}

.products-next .btn {
  justify-self: start;
}

.products-page .footer {
  border-top-color: var(--product-line);
}

.success-main {
  align-items: center;
  display: flex;
  min-height: 100vh;
  padding: 140px 1.25rem 80px;
}

.success-card {
  background: var(--product-panel);
  border: 1px solid var(--product-line);
  border-radius: 2rem;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.28);
  margin: auto;
  max-width: 46rem;
  overflow: hidden;
  padding: clamp(2rem, 7vw, 5rem);
  position: relative;
  text-align: center;
  width: 100%;
}

.success-card::before {
  background: var(--product-green);
  content: "";
  height: 0.35rem;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.success-card .products-kicker {
  justify-content: center;
}

.status-mark {
  align-items: center;
  border: 1px solid rgba(85, 242, 154, 0.45);
  border-radius: 50%;
  display: flex;
  height: 6rem;
  justify-content: center;
  margin: 0 auto 2rem;
  position: relative;
  width: 6rem;
}

.status-mark::before,
.status-mark::after {
  border: 1px solid rgba(85, 242, 154, 0.15);
  border-radius: inherit;
  content: "";
  inset: -0.65rem;
  position: absolute;
}

.status-mark::after {
  inset: -1.25rem;
}

.status-mark span {
  animation: status-pulse 1.3s ease-in-out infinite;
  background: var(--product-green);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(85, 242, 154, 0.7);
  height: 1.2rem;
  width: 1.2rem;
}

@keyframes status-pulse {
  50% { opacity: 0.4; transform: scale(0.7); }
}

.success-card[data-state="paid"] .status-mark span {
  animation: none;
  border-radius: 0;
  box-shadow: none;
  height: 1.15rem;
  transform: rotate(45deg);
  width: 0.6rem;
  border-bottom: 3px solid #07130d;
  border-right: 3px solid #07130d;
}

.success-card[data-state="failed"] .status-mark span,
.success-card[data-state="refunded"] .status-mark span,
.success-card[data-state="unknown"] .status-mark span,
.success-card[data-state="unavailable"] .status-mark span {
  animation: none;
  background: #ff6070;
  box-shadow: 0 0 25px rgba(255, 96, 112, 0.5);
}

.success-card h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 0.95;
  margin: 0 0 1.5rem;
}

.status-copy {
  color: var(--product-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 auto 2rem;
  max-width: 34rem;
}

.status-action {
  display: inline-flex;
}

@media (max-width: 900px) {
  .products-hero {
    min-height: auto;
    padding: 150px 0 90px;
  }

  .products-intro {
    margin-left: 0;
  }

  .products-jump {
    justify-content: flex-start;
  }

  .product-offer {
    grid-template-columns: 1fr;
  }

  .product-checkout {
    border-left: 0;
    border-top: 1px solid var(--product-line);
  }

  .products-next-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .products-hero {
    padding: 125px 0 72px;
  }

  .products-hero h1 {
    font-size: clamp(3rem, 15vw, 4.4rem);
    line-height: 0.92;
  }

  .products-glow {
    height: 28rem;
    right: -19rem;
    top: -4rem;
    width: 28rem;
  }

  .product-section {
    padding-bottom: 80px;
  }

  .product-offer,
  .success-card {
    border-radius: 1.25rem;
  }

  .product-story,
  .product-checkout {
    padding: 2rem 1.25rem;
  }

  .product-meta {
    margin-bottom: 2.75rem;
  }

  .product-story h2 {
    font-size: clamp(2.6rem, 13vw, 4rem);
  }

  .product-lede {
    font-size: 1rem;
    margin: 2rem 0 2.75rem;
  }

  .price-scene {
    height: 14rem;
  }

  .price-shadow,
  .price-amount {
    font-size: 5.5rem;
  }

  .products-next {
    padding: 80px 0;
  }

  .success-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .line-bobber,
  .status-mark span {
    animation: none;
  }

  .products-page .btn,
  .products-jump span {
    transition: none;
  }
}
