.page-products {
  --panel-line: rgba(157, 180, 196, 0.22);
  --glow: rgba(78, 240, 208, 0.16);
  background-color: var(--night);
  background-image:
    linear-gradient(rgba(32, 56, 74, 0.26) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32, 56, 74, 0.26) 1px, transparent 1px);
  background-size: 72px 72px;
  color: var(--paper);
  overflow-x: clip;
  padding-bottom: clamp(3rem, 8vw, 6rem);
}

.page-products .page-shell {
  position: relative;
}

.page-products .breadcrumb {
  margin: clamp(1rem, 2vw, 1.6rem) 0 0;
  color: var(--haze);
  font-family: var(--font-mono);
  font-size: 0.74rem;
}

.page-products .breadcrumb a {
  color: var(--paper);
}

.product-hero {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding: clamp(1.4rem, 4vw, 3.6rem) 0 clamp(2rem, 6vw, 4.5rem);
  border-bottom: var(--line);
  align-items: center;
}

.hero-copy .eyebrow {
  color: var(--cyan);
}

.product-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0.28em 0 0.3em;
  max-width: 13ch;
  text-wrap: balance;
}

.hero-copy .lede {
  max-width: 38rem;
  color: var(--haze);
  font-size: var(--step-body);
}

.device-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.4rem 0 1.1rem;
}

.device-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--lake);
  color: var(--paper);
  background: rgba(31, 111, 158, 0.14);
}

.device-tag.is-accent {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(78, 240, 208, 0.07);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.6rem;
  margin: 0;
  padding-top: 1.2rem;
  border-top: var(--line);
}

.fact-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding-left: 0.75rem;
  border-left: 2px solid var(--lake);
}

.fact-item dt {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  color: var(--haze);
  letter-spacing: 0.08em;
}

.fact-item dd {
  margin: 0;
  font-size: 0.95rem;
  color: var(--paper);
}

.fact-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cyan);
  margin-right: 0.12rem;
}

.hero-visual {
  position: relative;
  min-width: 0;
}

.hero-figure {
  margin: 0;
  border: 1px solid var(--panel-line);
  padding: 0.45rem;
  background: rgba(14, 48, 72, 0.5);
  box-shadow:
    14px 14px 0 rgba(75, 58, 107, 0.55),
    0 0 42px var(--glow);
}

.hero-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.hero-figure .media-caption {
  padding: 0.6rem 0.3rem 0.1rem;
  font-size: 0.72rem;
  color: var(--haze);
}

.download-section {
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-bottom: var(--line);
}

.section-heading {
  margin-bottom: clamp(1.2rem, 3vw, 2rem);
  min-width: 0;
}

.section-heading .eyebrow {
  color: var(--cyan);
}

.section-heading .section-title {
  margin: 0.35rem 0 0.6rem;
}

.section-heading p:not(.eyebrow) {
  max-width: 60ch;
  color: var(--haze);
  margin: 0;
}

.download-grid {
  display: grid;
  gap: 1.2rem;
}

.download-card {
  color: var(--ink);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
  box-shadow: 9px 9px 0 rgba(75, 58, 107, 0.7);
}

.download-card .device-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(16, 24, 32, 0.18);
  padding-bottom: 0.75rem;
  margin-bottom: 0.8rem;
}

.download-card h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  line-height: 1;
  margin: 0;
  letter-spacing: -0.01em;
}

.device-badge {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  padding: 0.28rem 0.45rem;
  background: var(--ink);
  color: var(--paper);
}

.download-list {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.download-list li {
  position: relative;
  padding-left: 1.1rem;
  margin: 0.6rem 0;
  font-size: 0.94rem;
  line-height: 1.65;
}

.download-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.45rem;
  height: 1px;
  background: var(--lake);
}

.download-card .btn-ghost {
  color: var(--ink);
  border-color: rgba(16, 24, 32, 0.45);
}

.download-note {
  margin: 1.2rem 0 0;
  color: var(--haze);
  font-size: 0.85rem;
  border-left: 2px solid var(--sand);
  padding-left: 0.8rem;
}

.schedule-section {
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-bottom: var(--line);
}

.schedule-body {
  min-width: 0;
}

.schedule-figure {
  margin: 0 0 1.5rem;
  border: 1px solid var(--panel-line);
}

.schedule-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.schedule-body > p {
  color: var(--haze);
  max-width: 66ch;
}

.schedule-list {
  list-style: none;
  margin: 1.2rem 0;
  padding: 0;
  border-top: 1px solid var(--panel-line);
}

.schedule-list li {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.9rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--panel-line);
}

.timeline-time {
  font-size: 0.72rem;
  color: var(--cyan);
  padding-top: 0.2rem;
}

.schedule-list strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.schedule-list p {
  margin: 0;
  color: var(--haze);
  font-size: 0.9rem;
  line-height: 1.6;
}

.data-section {
  position: relative;
  margin: clamp(2rem, 5vw, 4rem) 0;
  padding: clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(145deg, rgba(14, 48, 72, 0.96), rgba(7, 28, 46, 0.98) 70%);
  border: 1px solid rgba(78, 240, 208, 0.3);
  box-shadow:
    0 0 46px rgba(78, 240, 208, 0.12),
    inset 0 0 0 1px rgba(7, 28, 46, 0.6);
}

.data-section::after {
  content: "";
  position: absolute;
  top: -1px;
  left: clamp(1.2rem, 4vw, 3rem);
  width: 114px;
  height: 2px;
  background: var(--cyan);
}

.data-section .section-title {
  margin: 0.35rem 0 0.8rem;
}

.data-intro {
  max-width: 65ch;
  color: var(--paper);
  font-size: var(--step-body);
  line-height: 1.8;
}

.metric-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  align-items: center;
  margin: 1.5rem 0 1rem;
}

.page-products .filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.page-products .filter-btn {
  min-height: 44px;
  border-color: rgba(157, 180, 196, 0.35);
  color: var(--paper);
  background: transparent;
}

.page-products .filter-btn[aria-pressed="true"] {
  background: var(--cyan);
  color: var(--ink);
  border-color: var(--cyan);
}

.filter-hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--haze);
}

.metric-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1px;
  background: rgba(157, 180, 196, 0.22);
  border: 1px solid rgba(157, 180, 196, 0.22);
}

.metric-card {
  background: var(--night);
  padding: 1rem;
  min-height: 9rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  outline: 1px solid transparent;
  transition:
    opacity 0.18s var(--ease),
    transform 0.18s var(--ease),
    outline-color 0.18s var(--ease);
}

.metric-card:hover {
  outline-color: var(--cyan);
}

.metric-name {
  margin: 0;
  font-weight: 500;
}

.metric-desc {
  margin: 0;
  font-size: 0.82rem;
  color: var(--haze);
  line-height: 1.55;
}

.metric-val {
  margin-top: auto;
  color: var(--cyan);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.page-products [data-tag][hidden] {
  display: none;
}

.data-figure {
  margin: 1.5rem 0 0;
  border: 1px solid var(--panel-line);
}

.data-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.data-footnote {
  color: var(--haze);
  font-size: 0.85rem;
  margin: 1rem 0 0;
}

.data-footnote a {
  color: var(--cyan);
}

.mobile-section {
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-bottom: var(--line);
}

.mobile-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.mobile-figure {
  margin: 0;
  max-width: 340px;
  justify-self: start;
  border: 1px solid var(--panel-line);
  box-shadow: 10px 10px 0 rgba(75, 58, 107, 0.55);
}

.mobile-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.mobile-copy .eyebrow {
  color: var(--cyan);
}

.mobile-copy > p {
  color: var(--haze);
  max-width: 60ch;
}

.record-list {
  list-style: none;
  margin: 1.2rem 0;
  padding: 0;
  border-top: 1px solid var(--panel-line);
}

.record-item {
  display: grid;
  grid-template-columns: 2.1rem 1fr;
  gap: 0.7rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--panel-line);
}

.record-item .mono {
  color: var(--cyan);
  font-size: 0.72rem;
  padding-top: 0.15rem;
}

.record-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.18rem;
}

.record-item p {
  margin: 0;
  color: var(--haze);
  font-size: 0.86rem;
  line-height: 1.6;
}

.focus-section {
  margin: clamp(2rem, 5vw, 4rem) 0;
  padding: clamp(1.4rem, 4vw, 2.6rem);
  background: var(--dusk-deep);
  border: 1px solid rgba(216, 180, 106, 0.35);
}

.focus-section .eyebrow {
  color: var(--sand);
}

.focus-section .section-title {
  color: var(--paper);
  margin: 0.35rem 0 0.7rem;
}

.focus-section > p {
  color: rgba(245, 241, 232, 0.78);
  max-width: 64ch;
}

.focus-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.4rem;
}

.focus-card {
  padding: 1rem 0 0;
  border-top: 1px solid rgba(216, 180, 106, 0.4);
}

.focus-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 1;
  color: var(--sand);
  margin-bottom: 0.4rem;
}

.focus-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.focus-card p {
  margin: 0;
  color: rgba(245, 241, 232, 0.75);
  font-size: 0.86rem;
  line-height: 1.6;
}

.version-section {
  padding: clamp(2rem, 5vw, 4rem) 0;
  border-top: var(--line);
}

.version-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.version-copy .eyebrow {
  color: var(--sand);
}

.version-copy > p {
  color: var(--haze);
  max-width: 62ch;
}

.switch-steps {
  margin: 1.2rem 0;
  border-top: 1px solid var(--panel-line);
}

.switch-step {
  border-bottom: 1px solid var(--panel-line);
}

.step-summary {
  display: flex;
  gap: 0.8rem;
  align-items: baseline;
  padding: 0.85rem 0;
  cursor: pointer;
  font-weight: 500;
  list-style: none;
}

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

.step-summary .mono {
  color: var(--cyan);
  font-size: 0.72rem;
}

.step-summary::after {
  content: "+";
  margin-left: auto;
  color: var(--cyan);
  font-family: var(--font-mono);
}

.switch-step[open] .step-summary::after {
  content: "−";
}

.step-body {
  padding: 0 0 1rem 2.1rem;
}

.step-body p {
  margin: 0;
  color: var(--haze);
  font-size: 0.9rem;
  line-height: 1.65;
  max-width: 56ch;
}

.version-figure {
  margin: 0;
  border: 1px solid var(--panel-line);
  padding: 0.4rem;
  background: rgba(14, 48, 72, 0.35);
}

.version-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.version-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

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

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .product-hero {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  }

  .mobile-layout {
    grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
  }

  .version-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

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