.page-products {
  --pdp-fire-deep: #B91C1C;
  --pdp-grid-line: rgba(245, 185, 66, 0.05);
  --pdp-card-bg: #1C1E22;
  --pdp-card-bg-soft: #25282E;
  --pdp-border: rgba(255, 255, 255, 0.08);
  --pdp-gold: #F5B942;
  --pdp-fire: #E8380F;
  --pdp-text: #E9E5DC;
  --pdp-mist: #8A8F98;
  position: relative;
  z-index: 1;
  overflow-x: clip;
  background-color: var(--hb-ash);
  background-image:
    linear-gradient(var(--pdp-grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--pdp-grid-line) 1px, transparent 1px);
  background-size: 28px 28px;
}

.page-products ::selection {
  background: rgba(232, 56, 15, 0.75);
  color: #fff;
}

.page-products .hb-breadcrumb {
  padding-top: 24px;
}

.page-products .hb-breadcrumb__link {
  color: var(--pdp-mist);
}

.page-products .hb-breadcrumb__link:hover,
.page-products .hb-breadcrumb__link:focus-visible {
  color: var(--pdp-gold);
}

/* ===== Hero ===== */
.pdp-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: 48px 0 56px;
  position: relative;
}

.pdp-hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: 20px;
  width: 260px;
  height: 420px;
  background: linear-gradient(135deg, rgba(232, 56, 15, 0.22), rgba(232, 56, 15, 0));
  clip-path: polygon(35% 0, 100% 0, 100% 100%, 0 100%);
  z-index: 0;
}

.pdp-hero__copy,
.pdp-hero__media {
  position: relative;
  z-index: 1;
}

.pdp-hero__title {
  font-family: var(--hb-heading-font);
  font-size: clamp(2.6rem, 8vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: -0.01em;
  font-weight: 900;
  color: var(--hb-text);
  margin: 14px 0 18px;
  padding-left: 0;
}

.pdp-hero__title span {
  display: inline-block;
  color: var(--pdp-fire);
  font-weight: 900;
}

.pdp-hero__lead {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(233, 229, 220, 0.8);
  max-width: 40em;
  margin-bottom: 28px;
}

.pdp-hero__stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pdp-stat {
  border-left: 3px solid var(--pdp-gold);
  background: rgba(28, 30, 34, 0.7);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pdp-stat strong {
  font-family: var(--hb-heading-font);
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--pdp-fire);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.pdp-stat span {
  font-size: 0.78rem;
  color: var(--pdp-mist);
}

.pdp-hero__media {
  display: flex;
  justify-content: center;
}

.pdp-hero__img {
  width: 280px;
  height: auto;
  max-height: 620px;
  object-fit: cover;
  border-radius: var(--hb-radius);
  box-shadow: var(--hb-shadow-lg);
  border: 1px solid rgba(245, 185, 66, 0.25);
  transform: rotate(2deg);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  background: #1C1E22;
}

.pdp-hero__img:hover {
  transform: rotate(0deg) scale(1.02);
}

/* ===== Split note ===== */
.page-products .hb-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.page-products .hb-split__note {
  order: -1;
}

.pdp-note {
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--pdp-mist);
  border-left: 2px solid rgba(232, 56, 15, 0.6);
  padding-left: 12px;
  margin-top: 8px;
}

/* ===== Card grid ===== */
.pdp-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

.pdp-fcard {
  padding: 20px 20px 18px;
  border: 1px solid var(--pdp-border);
  border-radius: var(--hb-radius);
  background: var(--pdp-card-bg);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.pdp-fcard:hover,
.pdp-fcard:focus-within {
  border-color: rgba(245, 185, 66, 0.7);
  box-shadow: 0 0 0 1px rgba(245, 185, 66, 0.35), 0 12px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(-3px);
}

.pdp-fcard h3 {
  font-family: var(--hb-heading-font);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--hb-text);
  margin: 12px 0 8px;
  letter-spacing: 0.01em;
}

.pdp-fcard p {
  font-size: 0.86rem;
  line-height: 1.66;
  color: rgba(233, 229, 220, 0.72);
  margin: 0;
}

.pdp-fcard__ico {
  display: block;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(232, 56, 15, 0.14);
  border: 1px solid rgba(232, 56, 15, 0.35);
  position: relative;
}

.pdp-fcard__ico::before,
.pdp-fcard__ico::after {
  content: "";
  position: absolute;
  background: var(--pdp-gold);
}

.pdp-fcard__ico--pos::before {
  left: 8px;
  right: 8px;
  top: 17px;
  height: 2px;
  box-shadow: 0 -7px 0 rgba(245, 185, 66, 0.55), 0 7px 0 rgba(245, 185, 66, 0.55);
}

.pdp-fcard__ico--pos::after {
  left: 17px;
  top: 8px;
  bottom: 8px;
  width: 2px;
}

.pdp-fcard__ico--rep::before {
  left: 8px;
  right: 8px;
  top: 12px;
  height: 2px;
  box-shadow: 0 7px 0 rgba(245, 185, 66, 0.5), 0 14px 0 rgba(245, 185, 66, 0.2);
}

.pdp-fcard__ico--live::before {
  width: 0;
  height: 0;
  border-left: 9px solid var(--pdp-fire);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  left: 14px;
  top: 12px;
  background: transparent;
}

.pdp-fcard__ico--cmp::before {
  left: 7px;
  right: 7px;
  height: 2px;
  top: 18px;
  background: var(--pdp-gold);
}

.pdp-fcard__ico--cmp::after {
  left: 14px;
  right: 14px;
  top: 11px;
  bottom: 11px;
  height: auto;
  width: auto;
  border: 2px solid rgba(245, 185, 66, 0.65);
  border-radius: 2px;
  background: transparent;
}

.pdp-fcard__ico--calc::before {
  left: 8px;
  right: 8px;
  top: 9px;
  height: 15px;
  border: 2px solid var(--pdp-gold);
  border-radius: 3px;
  background: transparent;
}

.pdp-fcard__ico--calc::after {
  left: 11px;
  right: 11px;
  top: 16px;
  height: 2px;
  box-shadow: 0 5px 0 rgba(245, 185, 66, 0.8);
}

.pdp-fcard__ico--arch::before {
  left: 9px;
  right: 9px;
  top: 12px;
  height: 2px;
  box-shadow: 0 6px 0 rgba(245, 185, 66, 0.3), 0 -6px 0 rgba(245, 185, 66, 0.3);
}

.pdp-fcard__ico--arch::after {
  left: 15px;
  top: 7px;
  width: 2px;
  bottom: 7px;
  background: var(--pdp-gold);
}

/* ===== Access section ===== */
.pdp-access__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}

.pdp-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: pdp-step;
  display: grid;
  gap: 12px;
}

.pdp-steps li {
  counter-increment: pdp-step;
  position: relative;
  padding: 14px 16px 14px 52px;
  background: var(--pdp-card-bg);
  border-right: 4px solid var(--pdp-fire);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(233, 229, 220, 0.85);
}

.pdp-steps li::before {
  content: counter(pdp-step, decimal-leading-zero);
  position: absolute;
  left: 12px;
  top: 14px;
  font-family: var(--hb-heading-font);
  font-weight: 900;
  font-size: 1.25rem;
  color: var(--pdp-gold);
  font-variant-numeric: tabular-nums;
}

.pdp-media-block {
  margin: 0;
}

.pdp-media-block img {
  width: 100%;
  height: auto;
  border-radius: var(--hb-radius);
  border: 1px solid var(--pdp-border);
  box-shadow: var(--hb-shadow);
  display: block;
}

/* ===== Tabs ===== */
.pdp-platform-switch {
  margin-top: 20px;
}

.pdp-tabs {
  border: 0;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 0;
  align-items: stretch;
}

.pdp-tabs legend {
  display: none;
}

.pdp-tabs input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pdp-tabs__label {
  display: inline-block;
  padding: 10px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--pdp-mist);
  background: rgba(37, 40, 46, 0.5);
  border: 1px solid var(--pdp-border);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: var(--hb-heading-font);
  letter-spacing: 0.06em;
}

.pdp-tabs__label:hover {
  color: var(--pdp-gold);
  border-color: rgba(245, 185, 66, 0.5);
}

.pdp-tabs__label:first-of-type {
  border-radius: 8px 0 0 8px;
}

.pdp-tabs__label:last-of-type {
  border-radius: 0 8px 8px 0;
}

.pdp-tabs input:focus-visible + .pdp-tabs__label {
  outline: 2px solid var(--hb-info);
  outline-offset: 2px;
}

.pdp-tabs input:checked + .pdp-tabs__label {
  color: var(--pdp-ink);
  background: var(--pdp-gold);
  border-color: var(--pdp-gold);
}

.pdp-tabs__panel {
  grid-column: 1 / -1;
  padding: 18px 18px;
  background: rgba(28, 30, 34, 0.7);
  border: 1px solid var(--pdp-border);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: rgba(233, 229, 220, 0.8);
}

.pdp-tabs__panel--android,
.pdp-tabs__panel--ios {
  display: none;
}

#pdp-os-android:checked ~ .pdp-tabs__panel--android {
  display: block;
}

#pdp-os-ios:checked ~ .pdp-tabs__panel--ios {
  display: block;
}

/* ===== Modules ===== */
.pdp-module {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: 22px 0 34px;
  border-bottom: 1px solid var(--pdp-border);
}

.pdp-module:first-of-type {
  padding-top: 8px;
}

.pdp-module__text h3 {
  font-family: var(--hb-heading-font);
  font-size: 1.9rem;
  font-weight: 900;
  color: var(--hb-text);
  margin: 10px 0 8px;
  letter-spacing: 0.01em;
}

.pdp-module__text p {
  font-size: 0.9rem;
  line-height: 1.72;
  color: rgba(233, 229, 220, 0.76);
  margin: 0 0 12px;
}

.pdp-module__facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pdp-module__facts li {
  position: relative;
  padding-left: 16px;
  font-size: 0.82rem;
  color: var(--pdp-mist);
  line-height: 1.6;
}

.pdp-module__facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  background: var(--pdp-fire);
  transform: rotate(45deg);
}

.pdp-module__media {
  margin: 0;
  align-self: center;
}

.pdp-module__media img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--pdp-border);
  filter: saturate(1.08) contrast(1.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  display: block;
}

/* ===== Legacy ===== */
.pdp-legacy {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.pdp-legacy details {
  background: var(--pdp-card-bg);
  border: 1px solid var(--pdp-border);
  border-left: 4px solid var(--pdp-gold);
  border-radius: 8px;
  padding: 0;
  transition: background 0.25s ease;
}

.pdp-legacy details[open] {
  background: var(--pdp-card-bg-soft);
}

.pdp-legacy summary {
  cursor: pointer;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--hb-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pdp-legacy summary::-webkit-details-marker {
  display: none;
}

.pdp-legacy summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  line-height: 1;
  color: var(--pdp-gold);
  transition: transform 0.25s ease;
}

.pdp-legacy details[open] summary::after {
  transform: rotate(45deg);
}

.pdp-legacy details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 0.86rem;
  line-height: 1.72;
  color: rgba(233, 229, 220, 0.75);
}

.pdp-legacy summary:hover {
  color: var(--pdp-gold);
}

.pdp-legacy summary:focus-visible {
  outline: 2px solid var(--hb-info);
  outline-offset: -2px;
  border-radius: 8px;
}

/* ===== Requirements ===== */
.page-products .hb-section--paper {
  background: var(--hb-paper);
  color: var(--hb-ink);
  border-radius: 14px;
  margin-top: 40px;
  padding: 40px 20px;
}

.hb-section--paper .hb-section-title,
.hb-section--paper h3 {
  color: var(--hb-ink);
}

.hb-section--paper .pdp-note {
  color: rgba(20, 20, 20, 0.62);
}

.page-products .hb-section--paper .hb-eyebrow {
  color: var(--hb-fire);
}

.pdp-req-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 20px;
}

.pdp-req-card {
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.1);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(20, 20, 20, 0.06);
}

.pdp-req-card h3 {
  font-family: var(--hb-heading-font);
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--hb-ink);
  margin: 0 0 10px;
}

.pdp-req-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.pdp-req-card li {
  position: relative;
  padding-left: 18px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(20, 20, 20, 0.78);
}

.pdp-req-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 2px;
  background: var(--hb-fire);
}

.pdp-security {
  margin-top: 24px;
  background: rgba(232, 56, 15, 0.06);
  border-left: 4px solid var(--hb-fire);
  border-radius: 0 10px 10px 0;
  padding: 20px;
}

.pdp-security h3 {
  font-family: var(--hb-heading-font);
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--hb-ink);
  margin: 0 0 10px;
}

.pdp-security ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.pdp-security li {
  padding-left: 22px;
  position: relative;
  font-size: 0.86rem;
  line-height: 1.66;
  color: rgba(20, 20, 20, 0.78);
}

.pdp-security li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 8px;
  width: 9px;
  height: 9px;
  background: var(--hb-fire);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ===== Floating index ===== */
.pdp-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  position: sticky;
  bottom: 14px;
  background: rgba(17, 18, 20, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--pdp-border);
  border-radius: 999px;
  padding: 8px 12px;
  margin: 48px auto 36px;
  width: max-content;
  max-width: 100%;
  box-shadow: var(--hb-shadow-lg);
  z-index: 5;
}

.pdp-index__item {
  font-size: 0.78rem;
  color: var(--pdp-mist);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: all 0.25s ease;
  font-family: var(--hb-heading-font);
  letter-spacing: 0.04em;
}

.pdp-index__item:hover,
.pdp-index__item:focus-visible {
  color: var(--pdp-ink);
  background: var(--pdp-gold);
}

/* ===== Reveal ===== */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .page-products *,
  .page-products *::before,
  .page-products *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .pdp-hero__img {
    transform: none;
  }
}

/* ===== Tablet ===== */
@media (min-width: 640px) {
  .pdp-hero {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: center;
    gap: 40px;
    padding-top: 56px;
  }

  .pdp-hero__media {
    justify-content: flex-end;
  }

  .pdp-hero__img {
    width: 340px;
  }

  .pdp-hero__stats {
    grid-template-columns: repeat(4, 1fr);
  }

  .pdp-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }

  .pdp-access__grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .pdp-module {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .pdp-module__text {
    order: 0;
  }

  .pdp-module__media {
    order: 0;
  }

  .pdp-req-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ===== Desktop ===== */
@media (min-width: 1024px) {
  .page-products .hb-split {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
  }

  .page-products .hb-split__note {
    order: 0;
    margin-top: 8px;
  }

  .pdp-hero {
    padding: 72px 0 80px;
  }

  .pdp-hero__title {
    font-size: 5.2rem;
  }

  .pdp-hero__lead {
    font-size: 1.05rem;
  }

  .pdp-hero__img {
    width: 400px;
  }

  .pdp-card-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .pdp-steps {
    grid-template-columns: 1fr;
  }

  .pdp-steps li {
    font-size: 0.94rem;
  }

  .pdp-module {
    padding-top: 18px;
    padding-bottom: 44px;
  }

  .pdp-module__text {
    max-width: 520px;
  }

  .pdp-module__media img {
    max-height: 420px;
    object-fit: cover;
  }

  .pdp-index {
    position: sticky;
    bottom: 24px;
    margin-top: 56px;
  }
}

.page-products {
  --pdp-ink: var(--hb-ink);
}
