.page-products {
  --p-line-soft: rgba(42, 54, 84, 0.72);
  --p-card: linear-gradient(155deg, rgba(20, 30, 52, 0.96), rgba(13, 20, 36, 0.92));
  --p-cyan-soft: rgba(53, 240, 208, 0.14);
  --p-violet-soft: rgba(140, 92, 255, 0.18);
  --p-gold-soft: rgba(244, 198, 106, 0.16);
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-sans);
  overflow-x: clip;
}

.page-products img {
  max-width: 100%;
  height: auto;
}

.page-products .section {
  padding-block: clamp(44px, 7vw, 88px);
}

.page-products .p-section-head {
  max-width: 68ch;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.page-products .p-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(23px, 3.2vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin: 10px 0 14px;
}

.page-products .p-lead {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 64ch;
  margin: 0;
}

.page-products details > summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  list-style: none;
}

.page-products details > summary::-webkit-details-marker {
  display: none;
}

.page-products details > summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 1;
  color: var(--cyan);
  transition: color 0.2s var(--ease);
}

.page-products details[open] > summary::after {
  content: "−";
  color: var(--gold);
}

.page-products .p-details {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(42, 54, 84, 0.7);
}

.page-products .p-details-body {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}

.page-products .p-details-body ol {
  margin: 8px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}

.page-products .p-details-body p {
  margin: 10px 0 0;
}

.page-products .p-details-body a {
  color: var(--cyan);
}

/* Hero */
.page-products .p-hero {
  position: relative;
  padding-top: clamp(18px, 3vw, 28px);
  padding-bottom: clamp(48px, 8vw, 92px);
  background:
    radial-gradient(58% 68% at 84% 4%, var(--p-violet-soft), transparent 62%),
    radial-gradient(52% 60% at 8% 22%, var(--p-cyan-soft), transparent 66%),
    linear-gradient(180deg, var(--night) 0%, var(--ink) 100%);
  overflow: hidden;
}

.page-products .p-hero::after {
  content: "";
  position: absolute;
  left: -6%;
  right: -6%;
  bottom: -70px;
  height: 150px;
  background: linear-gradient(90deg, rgba(53, 240, 208, 0.1), rgba(140, 92, 255, 0.14));
  transform: skewY(-3.2deg);
  pointer-events: none;
  z-index: 0;
}

.page-products .p-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(26px, 4vw, 48px);
  margin-top: clamp(22px, 4vw, 40px);
}

.page-products .p-hero-copy {
  position: relative;
  z-index: 1;
}

.page-products .p-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(30px, 6vw, 56px);
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin: 12px 0 16px;
}

.page-products .p-hero-lead {
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.85;
  color: var(--muted);
  max-width: 56ch;
  margin: 0;
}

.page-products .p-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(20px, 3vw, 28px);
}

.page-products .p-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 34px);
  list-style: none;
  margin: clamp(22px, 3vw, 32px) 0 0;
  padding: 0;
}

.page-products .p-hero-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-left: 14px;
  border-left: 1px solid rgba(53, 240, 208, 0.42);
}

.page-products .p-stat-num {
  font-family: var(--font-mono);
  font-size: clamp(22px, 3vw, 28px);
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-products .p-stat-label {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.page-products .p-hero-visual {
  margin: 0;
  position: relative;
  z-index: 1;
}

.page-products .p-hero-visual img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(53, 240, 208, 0.24);
  box-shadow: 0 26px 60px rgba(2, 6, 16, 0.72);
}

.page-products .p-hero-visual figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .p-hero-mark {
  position: absolute;
  left: -2%;
  bottom: -3%;
  font-family: var(--font-mono);
  font-size: clamp(140px, 26vw, 320px);
  line-height: 0.76;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(53, 240, 208, 0.13);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Vendors */
.page-products .p-vendors {
  background: linear-gradient(180deg, rgba(13, 20, 36, 0.5) 0%, rgba(6, 10, 22, 0) 78%);
}

.page-products .p-vendor-split {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
}

.page-products .p-filters {
  background: var(--p-card);
  border: 1px solid var(--p-line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(16px, 2.6vw, 24px);
}

.page-products .p-filters-title {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
  margin: 0 0 14px;
}

.page-products .p-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-products .p-cat {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.page-products .p-cat-count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
}

.page-products .p-filters-note {
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px dashed rgba(42, 54, 84, 0.8);
}

.page-products .p-cat-figure {
  margin: 18px 0 0;
}

.page-products .p-cat-figure img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(140, 92, 255, 0.24);
  opacity: 0.86;
}

.page-products .p-vendor-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .p-vendor-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  background: var(--p-card);
  border: 1px solid var(--p-line-soft);
  border-radius: var(--radius-md);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.page-products .p-vendor-card:hover {
  transform: translateY(-3px);
  border-color: rgba(53, 240, 208, 0.55);
  box-shadow: 0 16px 34px rgba(2, 6, 16, 0.65);
}

.page-products .p-vendor-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.page-products .p-vendor-name {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.page-products .p-vendor-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
  white-space: nowrap;
}

.page-products .p-vendor-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

.page-products .p-vendor-fields {
  margin: 0;
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.page-products .p-vendor-fields div {
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  gap: 8px;
}

.page-products .p-vendor-fields dt {
  color: var(--muted);
}

.page-products .p-vendor-fields dd {
  margin: 0;
  color: var(--text);
}

.page-products .p-vendor-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  font-size: 13px;
  color: var(--cyan);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(53, 240, 208, 0.35);
}

.page-products .p-vendor-link::after {
  content: "→";
  transition: transform 0.2s var(--ease);
}

.page-products .p-vendor-link:hover {
  color: var(--gold);
  border-color: rgba(244, 198, 106, 0.6);
}

.page-products .p-vendor-link:hover::after {
  transform: translateX(3px);
}

.page-products .p-vendor-foot {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* Playbook */
.page-products .p-playbook {
  border-top: 1px solid var(--p-line-soft);
  border-bottom: 1px solid var(--p-line-soft);
  background:
    radial-gradient(64% 78% at 92% 6%, rgba(140, 92, 255, 0.16), transparent 62%),
    linear-gradient(180deg, var(--night) 0%, var(--ink) 100%);
}

.page-products .p-playbook-grid {
  display: grid;
  gap: clamp(24px, 4vw, 44px);
}

.page-products .p-playbook-figure {
  margin: clamp(20px, 3vw, 28px) 0 0;
}

.page-products .p-playbook-figure img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(53, 240, 208, 0.2);
}

.page-products .p-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-products .p-step {
  background: rgba(20, 30, 52, 0.72);
  border: 1px solid var(--p-line-soft);
  border-radius: var(--radius-md);
  padding: 16px;
}

.page-products .p-step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold);
  margin-bottom: 8px;
}

.page-products .p-step h3 {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 6px;
}

.page-products .p-step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0;
}

/* Small screen */
.page-products .p-screen {
  background: linear-gradient(135deg, rgba(140, 92, 255, 0.12) 0%, rgba(6, 10, 22, 0) 58%);
}

.page-products .p-screen-inner {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
}

.page-products .p-phone {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.page-products .p-phone img {
  display: block;
  width: 100%;
  max-width: 280px;
  border-radius: 30px;
  border: 1px solid rgba(53, 240, 208, 0.32);
  box-shadow: 0 0 0 6px rgba(20, 30, 52, 0.85), 0 22px 50px rgba(2, 6, 16, 0.7);
}

.page-products .p-phone figcaption {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  text-align: center;
  max-width: 30ch;
}

.page-products .p-points {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.page-products .p-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-products .p-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(53, 240, 208, 0.7);
}

.page-products .p-screen-extra {
  margin-top: clamp(18px, 3vw, 24px);
}

.page-products .p-qr-box {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: rgba(20, 30, 52, 0.66);
  border: 1px solid var(--p-line-soft);
  border-radius: var(--radius-md);
}

.page-products .p-qr {
  flex: none;
  width: 82px;
  height: 82px;
  border-radius: 10px;
  border: 5px solid var(--text);
  background-color: var(--panel);
  background-image: repeating-conic-gradient(from 0deg, var(--text) 0deg 90deg, transparent 90deg 180deg);
  background-size: 12px 12px;
  opacity: 0.72;
}

.page-products .p-qr-note {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* Records */
.page-products .p-records {
  border-top: 1px solid var(--p-line-soft);
}

.page-products .p-records-head {
  display: grid;
  gap: 20px;
}

.page-products .p-records-figure {
  margin: 0;
}

.page-products .p-records-figure img {
  display: block;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(244, 198, 106, 0.24);
}

.page-products .p-records-body {
  display: grid;
  gap: clamp(18px, 3vw, 28px);
  margin-top: clamp(22px, 3vw, 30px);
}

.page-products .p-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--p-line-soft);
  border-radius: var(--radius-md);
  background: rgba(20, 30, 52, 0.62);
}

.page-products .p-table {
  width: 100%;
  min-width: 480px;
  border-collapse: collapse;
  font-size: 14px;
}

.page-products .p-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: rgba(13, 20, 36, 0.95);
  border-bottom: 1px solid var(--p-line-soft);
  white-space: nowrap;
}

.page-products .p-table td {
  padding: 12px 16px;
  color: var(--text);
  border-top: 1px solid rgba(42, 54, 84, 0.6);
}

.page-products .p-table td:first-child {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.page-products .p-table tbody tr:nth-child(even) {
  background: rgba(238, 244, 255, 0.03);
}

.page-products .p-table-note {
  margin: 0;
  padding: 10px 16px 12px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px dashed rgba(42, 54, 84, 0.8);
}

.page-products .p-export {
  background: var(--p-card);
  border: 1px solid var(--p-line-soft);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius-md);
  padding: clamp(16px, 2.4vw, 22px);
}

.page-products .p-export h3 {
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 12px;
}

.page-products .p-export ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.page-products .p-export li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding-bottom: 9px;
  border-bottom: 1px dashed rgba(42, 54, 84, 0.7);
}

.page-products .p-export li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.page-products .p-export li span:first-child {
  color: var(--muted);
}

.page-products .p-export li span:last-child {
  font-family: var(--font-mono);
  color: var(--text);
}

/* Tips */
.page-products .p-tips {
  background:
    radial-gradient(50% 60% at 6% 10%, rgba(53, 240, 208, 0.1), transparent 62%),
    linear-gradient(180deg, var(--night) 0%, var(--ink) 100%);
  border-top: 1px solid var(--p-line-soft);
}

.page-products .p-tips-grid {
  display: grid;
  gap: clamp(24px, 4vw, 40px);
}

.page-products .p-faq {
  display: grid;
  gap: 10px;
  margin-top: clamp(18px, 3vw, 24px);
}

.page-products .p-faq details {
  background: rgba(20, 30, 52, 0.64);
  border: 1px solid var(--p-line-soft);
  border-radius: var(--radius-md);
  padding: 14px 16px;
}

.page-products .p-faq details[open] {
  border-color: rgba(53, 240, 208, 0.4);
}

.page-products .p-faq p {
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}

.page-products .p-aside {
  background: var(--p-card);
  border: 1px solid var(--p-line-soft);
  border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 26px);
}

.page-products .p-updates {
  list-style: none;
  margin: 16px 0 20px;
  padding: 0;
  display: grid;
  gap: 14px;
}

.page-products .p-updates li {
  display: grid;
  gap: 5px;
  padding-left: 14px;
  border-left: 2px solid rgba(140, 92, 255, 0.55);
}

.page-products .p-update-when {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--gold);
}

.page-products .p-update-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
}

.page-products .p-aside-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-products .p-aside-note {
  margin: 16px 0 0;
  font-size: 13px;
  line-height: 1.75;
  color: var(--muted);
}

.page-products .p-aside-note a {
  color: var(--cyan);
}

@media (min-width: 640px) {
  .page-products .p-vendor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-products .p-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .page-products .p-screen-inner {
    grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  }

  .page-products .p-hero-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
  }

  .page-products .p-records-head {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: end;
    gap: 28px;
  }
}

@media (min-width: 960px) {
  .page-products .p-vendor-split {
    grid-template-columns: minmax(232px, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .page-products .p-filters {
    position: sticky;
    top: 96px;
  }

  .page-products .p-playbook-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: start;
  }

  .page-products .p-records-body {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }

  .page-products .p-tips-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
  }
}

@media (min-width: 1180px) {
  .page-products .p-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-products .p-vendor-card,
  .page-products .p-vendor-link::after,
  .page-products details > summary::after {
    transition: none;
  }

  .page-products .p-vendor-card:hover {
    transform: none;
  }
}
