.pricing-hero {
  align-items: start;
  display: grid;
  gap: clamp(38px, 6vw, 86px);
  grid-template-columns: .9fr 1.1fr;
  padding-bottom: 90px;
  padding-top: 100px;
}

.pricing-hero h1 {
  font-size: clamp(2.8rem, 5.4vw, 5.8rem);
}

.pricing-hero-copy > p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  margin-top: 28px;
  max-width: 690px;
}

.region-control {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px;
}

.pricing-hero-aside {
  display: grid;
  gap: 18px;
}

.product-gallery {
  margin: 0;
}

.product-gallery-stage {
  aspect-ratio: 1600 / 727;
  margin: 14px 22px 18px 0;
  position: relative;
}

.product-gallery-slide {
  background: var(--dark);
  border: 1px solid #30353d;
  box-shadow: 12px 14px 0 rgba(92, 92, 244, .12);
  inset: 0;
  opacity: 0;
  overflow: hidden;
  padding: 8px;
  pointer-events: none;
  position: absolute;
  transform: translateX(34px) scale(.94);
  transform-origin: center right;
  transition: opacity .24s ease, transform .32s cubic-bezier(.2,.8,.2,1);
}

.product-gallery-slide.is-active {
  box-shadow: 14px 16px 0 rgba(92, 92, 244, .18);
  opacity: 1;
  transform: translateX(0) scale(1);
  z-index: 3;
}

.product-gallery-slide.is-next {
  opacity: .58;
  transform: translate(18px, -12px) scale(.965);
  z-index: 2;
}

.product-gallery-slide.is-previous {
  opacity: .24;
  transform: translate(-8px, 10px) scale(.94);
  z-index: 1;
}

.product-gallery-slide.is-hidden {
  visibility: hidden;
}

.product-gallery-slide img {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: left top;
  width: 100%;
}

.product-gallery-arrow {
  align-items: center;
  background: var(--lime);
  border: 1px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 1.2rem;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background-color .18s ease, transform .18s ease;
  width: 42px;
  z-index: 5;
}

.product-gallery-prev { left: -14px; }
.product-gallery-next { right: -14px; }

.product-gallery figcaption {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: .74rem;
  gap: 9px;
  min-height: 22px;
}

.product-gallery figcaption span {
  color: var(--violet);
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.product-gallery figcaption strong {
  color: var(--ink);
}

.product-gallery figcaption small {
  margin-left: auto;
}

.region-control-label,
.agent-input-label {
  display: block;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

#agent-input {
  appearance: none;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 0;
  color: var(--ink);
  font-weight: 700;
  min-height: 58px;
  padding: 0 16px;
  width: 100%;
}


.region-control > strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  margin-top: 12px;
}

.region-control p {
  color: var(--violet);
  font-size: .78rem;
  font-weight: 700;
  margin-top: 14px;
}

.region-control small {
  color: var(--muted);
  display: block;
  font-size: .7rem;
  margin-top: 5px;
}

.price-builder {
  align-items: stretch;
  background: var(--violet);
  color: #fff;
  display: grid;
  gap: clamp(50px, 9vw, 130px);
  grid-template-columns: 1fr .72fr;
  max-width: none;
  padding-inline: max(32px, calc((100vw - var(--max))/2 + 32px));
}

.builder-input .eyebrow,
.builder-input > p:not(.eyebrow) {
  color: rgba(255, 255, 255, .74);
}

.edition-picker {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 30px;
  max-width: 700px;
}

.edition-choice {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 16px;
  color: #fff;
  cursor: pointer;
  display: grid;
  gap: 7px;
  min-height: 142px;
  padding: 20px;
  text-align: left;
  transition: background-color 160ms ease, border-color 160ms ease, transform 140ms var(--ease);
}

.edition-choice span { font-weight: 800; }
.edition-choice strong { color: var(--lime); font-size: 1.45rem; }
.edition-choice small { color: rgba(255, 255, 255, .72); line-height: 1.45; }
.edition-choice.active { background: #fff; border-color: #fff; color: var(--ink); }
.edition-choice.active strong { color: var(--violet); }
.edition-choice.active small { color: var(--muted); }
.edition-choice:active { transform: scale(.985); }

.builder-input h2 {
  max-width: 760px;
}

.builder-input > p:not(.eyebrow) {
  font-size: 1.02rem;
  line-height: 1.7;
  margin-top: 24px;
  max-width: 640px;
}

.agent-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 35px;
}

.agent-presets button {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .42);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  height: 48px;
  min-width: 64px;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 140ms var(--ease);
}

.agent-presets button.active {
  background: var(--lime);
  border-color: var(--lime);
  color: var(--ink);
  font-weight: 800;
}

.agent-presets button:active {
  transform: scale(.97);
}

.agent-input-label {
  color: rgba(255, 255, 255, .82);
  margin-top: 26px;
}

#agent-input {
  background: #fff;
  margin-top: 9px;
  max-width: 280px;
}

.price-summary {
  background: #fff;
  color: var(--ink);
  padding: clamp(28px, 4vw, 44px);
}

.summary-topline {
  color: var(--muted);
  display: flex;
  font-size: .7rem;
  font-weight: 800;
  justify-content: space-between;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.summary-price {
  align-items: end;
  display: flex;
  gap: 12px;
  margin-top: 30px;
}

.summary-price strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.25rem, 5vw, 5.6rem);
  letter-spacing: -.07em;
  line-height: .85;
}

.summary-price span,
.price-summary > p,
.price-summary > small {
  color: var(--muted);
}

.purchase-button {
  background: var(--dark);
  border: 1px solid var(--dark);
  color: #fff;
  cursor: pointer;
  font: 700 1rem "Space Grotesk", sans-serif;
  margin-top: 10px;
}

.purchase-button:disabled,
#pay-with-razorpay:disabled {
  cursor: wait;
  opacity: .58;
}

.purchase-access {
  background: #fff;
  border: 1px solid var(--line);
  margin-top: 12px;
  padding: 22px;
  text-align: left;
}

.purchase-access h3 { font-size: 1.2rem; }
.purchase-access > p { color: var(--muted); line-height: 1.5; margin: 7px 0 16px; }
.purchase-access > label:not(.purchase-consent) { display: block; font-size: .78rem; font-weight: 800; margin: 18px 0 7px; }
.purchase-access > input { border: 1px solid #aeb1a9; font: inherit; padding: 12px; width: 100%; }
.purchase-access .quiet-link { display: inline-block; font-size: .76rem; margin-top: 10px; }

.purchase-consent {
  align-items: flex-start;
  display: flex;
  font-size: .78rem;
  gap: 8px;
  line-height: 1.4;
  margin: 16px 0;
}

.purchase-consent input { margin-top: 3px; }
.purchase-consent a { text-decoration: underline; }
.purchase-sign-out { background: transparent; border: 0; cursor: pointer; font: 700 .76rem "DM Sans", sans-serif; margin-top: 12px; text-decoration: underline; }
.purchase-status { font-size: .82rem; font-weight: 700; line-height: 1.4; margin-top: 12px; min-height: 1.2em; text-align: center; }
.purchase-status.error { color: #a12828; }
.purchase-status.success { color: #176c46; }

.price-summary > p {
  margin-top: 18px;
}

.price-summary dl {
  border-bottom: 1px solid var(--line);
  margin: 30px 0;
}

.price-summary dl div {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 15px 0;
}

.price-summary dt {
  color: var(--muted);
}

.price-summary dd {
  font-weight: 800;
  margin: 0;
  text-align: right;
}

.price-summary .included {
  color: #35744d;
}

.price-summary > small {
  display: block;
  font-size: .68rem;
  line-height: 1.5;
  margin-top: 14px;
  text-align: center;
}


.byoc-section {
  background: #eef0e7;
  display: grid;
  gap: clamp(50px, 8vw, 120px);
  grid-template-columns: .82fr 1.18fr;
  max-width: none;
  padding-inline: max(32px, calc((100vw - var(--max))/2 + 32px));
}

.byoc-intro {
  align-self: start;
  position: sticky;
  top: 120px;
}

.byoc-intro h2 {
  font-size: clamp(2.6rem, 4.8vw, 5rem);
}

.byoc-intro > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-top: 26px;
}

.installer-statement {
  background: var(--lime);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.35;
  margin-top: 34px;
  padding: 22px 24px;
}

.provider-paths {
  display: grid;
  gap: 12px;
}

.provider-paths article {
  background: #fff;
  border: 1px solid var(--line);
  padding: 30px;
}

.provider-paths article > span {
  color: var(--violet);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.provider-paths h3 {
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  margin-top: 26px;
}

.provider-paths p {
  color: var(--muted);
  line-height: 1.65;
  margin-top: 12px;
}

.provider-paths .provider-check {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.provider-check p {
  color: #bfc1bb;
}

.provider-check a {
  color: var(--lime);
  display: inline-block;
  font-weight: 800;
  margin-top: 20px;
}

.pricing-details {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  padding-top: 0;
}

.detail-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: clamp(30px, 4vw, 52px);
}

.detail-card > span {
  color: var(--violet);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.detail-card h2 {
  font-size: clamp(2.1rem, 3.7vw, 3.8rem);
  margin-top: 22px;
}

.detail-card ul {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
}

.detail-card li {
  border-top: 1px solid var(--line);
  padding: 13px 0 13px 24px;
  position: relative;
}

.detail-card li::before {
  color: var(--violet);
  content: "✓";
  font-weight: 800;
  left: 0;
  position: absolute;
}

.detail-card-dark {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
}

.detail-card-dark li {
  border-color: #3b3d39;
  color: #c5c7c1;
}

.detail-card-dark li::before {
  content: "—";
}

.detail-card-dark a {
  color: var(--lime);
  display: inline-block;
  font-weight: 800;
  margin-top: 26px;
}

@media (hover: hover) and (pointer: fine) {
  .product-gallery-arrow:hover {
    background: #d4ff45;
    transform: translateY(-50%) scale(1.08);
  }

  .agent-presets button:hover:not(.active) {
    border-color: #fff;
  }
}

@media (max-width: 900px) {
  .pricing-hero,
  .price-builder,
  .pricing-details,
  .byoc-section {
    grid-template-columns: 1fr;
  }

  .region-control {
    max-width: 600px;
  }

  .byoc-intro {
    position: static;
  }
}

@media (max-width: 680px) {
  .pricing-hero {
    padding-bottom: 70px;
    padding-top: 65px;
  }

  .price-builder {
    padding-inline: 20px;
  }

  .summary-price {
    align-items: start;
    flex-direction: column;
  }

  .product-gallery-stage {
    margin-right: 10px;
  }

  .product-gallery-arrow {
    height: 38px;
    width: 38px;
  }

  .product-gallery-prev { left: -9px; }
  .product-gallery-next { right: -9px; }

}

@media (prefers-reduced-motion: reduce) {
  .product-gallery-slide,
  .product-gallery-arrow {
    transition: none;
  }
}
