/* ============================================================================
   Modular smart meter product pages (DTZ1513 / shared)
   Brand: --clr-primary · Sora headings · Inter body
   ============================================================================ */

.smp-page {
  --smp-font-display: 'Sora', 'Inter', sans-serif;
  --smp-font-body: 'Inter', 'Segoe UI', sans-serif;
  --smp-section-y: clamp(3.25rem, 6.5vw, 5.25rem);
  --smp-radius: var(--radius-2xl, 12px);
  background: var(--clr-white);
  font-family: var(--smp-font-body);
  color: var(--clr-text-body);
}

.smp-page h1,
.smp-page h2,
.smp-page h3,
.smp-page h4 {
  font-family: var(--smp-font-display);
  color: var(--clr-black);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.smp-hero {
  position: relative;
  overflow: hidden;
  min-height: clamp(480px, calc(88vh - var(--header-h, 80px)), 760px);
  display: flex;
  align-items: flex-start;
  padding-top: clamp(5rem, 9vh, 7.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
  background: var(--clr-bg, #fff);
}

.smp-hero-wordmark {
  position: absolute;
  top: clamp(6%, 10vh, 14%);
  left: 0;
  right: 0;
  font-family: var(--smp-font-display);
  font-size: clamp(3.5rem, 12vw, 10rem);
  font-weight: 900;
  text-transform: uppercase;
  color: rgba(229, 26, 26, 0.045);
  letter-spacing: -0.05em;
  line-height: 0.82;
  z-index: 1;
  pointer-events: none;
  text-align: center;
  user-select: none;
}

.smp-hero-media-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.smp-hero-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.smp-hero-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 1) 0%,
    rgba(255, 255, 255, 0.94) 30%,
    rgba(255, 255, 255, 0.58) 50%,
    rgba(255, 255, 255, 0.14) 70%,
    rgba(255, 255, 255, 0) 84%
  );
}

.smp-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}

.smp-hero-content {
  max-width: 36rem;
}

.smp-hero-title {
  margin: 0.65rem 0 0;
  font-size: clamp(2.1rem, 4.8vw, 3.35rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.smp-hero-lead {
  margin: 1.15rem 0 0;
  max-width: 40ch;
  font-size: clamp(1rem, 0.35vw + 0.92rem, 1.125rem);
  line-height: 1.75;
  color: var(--clr-text-body);
}

.smp-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.smp-hero-actions .btn {
  min-height: 48px;
  border-radius: var(--radius-sm);
}

/* ── Section headers ─────────────────────────────────────────────────────── */

.smp-section-head {
  margin-bottom: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 42rem;
}

.smp-section-head--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.smp-section-head--center .section-label {
  justify-content: center;
}

.smp-section-head h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.028em;
  line-height: 1.2;
}

.smp-section-head p {
  margin: 0.85rem 0 0;
  font-size: clamp(0.98rem, 0.3vw + 0.92rem, 1.06rem);
  line-height: 1.7;
  color: var(--clr-text-body);
}

.smp-section-head--center p {
  margin-left: auto;
  margin-right: auto;
}

/* ── Overview ────────────────────────────────────────────────────────────── */

.smp-overview {
  padding: var(--smp-section-y) 0;
  border-bottom: 1px solid var(--clr-border-light);
}

.smp-overview-split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.smp-overview-copy {
  display: flex;
  flex-direction: column;
  max-width: 40rem;
}

.smp-overview-title {
  margin: 0.5rem 0 0;
  font-size: clamp(1.75rem, 3.6vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.smp-overview-lead {
  margin: 1.25rem 0 0;
  max-width: 52ch;
  font-size: clamp(1rem, 0.35vw + 0.94rem, 1.125rem);
  line-height: 1.75;
  color: var(--clr-text-body);
}

.smp-overview-lead + .smp-overview-lead {
  margin-top: 1rem;
}

.smp-variant-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  padding: 0.35rem;
  background: var(--clr-bg-alt, #f9f9f9);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--smp-radius);
  width: fit-content;
  max-width: 100%;
}

.smp-variant-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 1.15rem;
  border: 0;
  border-radius: calc(var(--smp-radius) - 2px);
  background: transparent;
  color: var(--clr-text-body);
  font-family: var(--smp-font-display);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.smp-variant-tab:hover {
  color: var(--clr-black);
}

.smp-variant-tab:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

.smp-variant-tab.is-active {
  background: var(--clr-white);
  color: var(--clr-primary);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.smp-variant-panel {
  display: none;
  margin-top: 1.25rem;
}

.smp-variant-panel.is-active {
  display: block;
}

.smp-feature-list {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.smp-feature-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
}

.smp-feature-list__mark {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0.45rem;
  background: var(--clr-primary);
  transform: rotate(45deg);
  flex-shrink: 0;
}

.smp-feature-list h3 {
  margin: 0 0 0.2rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.smp-feature-list p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--clr-text-body);
}

.smp-overview .product-doc-actions {
  justify-content: flex-start;
  margin-top: 2rem;
}

.smp-overview .product-doc-actions .btn {
  min-height: 48px;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.5rem;
}

.smp-overview-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  background: var(--clr-bg-alt, #f9f9f9);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--smp-radius);
}

.smp-stat strong {
  display: block;
  font-family: var(--smp-font-display);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 800;
  color: var(--clr-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}

.smp-stat span {
  display: block;
  font-size: clamp(0.78rem, 0.2vw + 0.72rem, 0.875rem);
  color: var(--clr-text-light);
  line-height: 1.45;
}

.smp-overview-visual {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
  position: sticky;
  top: calc(var(--header-h, 80px) + 1.25rem);
}

.smp-overview-media {
  overflow: hidden;
  border: 1px solid var(--clr-border-light);
  border-radius: 0 clamp(2rem, 5vw, 3.5rem) 0 clamp(2rem, 5vw, 3.5rem);
  box-shadow: 0 12px 36px -12px rgba(0, 0, 0, 0.14);
  background: linear-gradient(160deg, #f7f7f7 0%, #ececec 100%);
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.smp-overview-media img {
  display: block;
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
  padding: clamp(1.25rem, 3vw, 2.25rem);
  transition: opacity 0.35s ease;
}

.smp-overview-caption {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clr-text-light);
}

/* ── Product gallery ─────────────────────────────────────────────────────── */

.smp-gallery {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.smp-gallery__stage {
  min-height: clamp(20rem, 42vw, 28rem);
}

.smp-gallery__nav {
  position: absolute;
  inset: auto 0.75rem 0.85rem;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 2;
}

.smp-gallery__btn {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--clr-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--clr-text);
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.smp-gallery__btn:hover {
  border-color: var(--clr-primary);
  color: var(--clr-primary);
  background: #fff;
}

.smp-gallery__btn:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

.smp-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(4.25rem, 1fr));
  gap: 0.55rem;
}

.smp-gallery__thumb {
  display: block;
  padding: 0;
  margin: 0;
  border: 1.5px solid var(--clr-border);
  background: linear-gradient(160deg, #fafafa 0%, #f0f0f0 100%);
  cursor: pointer;
  overflow: hidden;
  min-height: 4.25rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.smp-gallery__thumb img {
  display: block;
  width: 100%;
  height: 4.25rem;
  object-fit: contain;
  padding: 0.35rem;
  background: transparent;
}

.smp-gallery__thumb:hover {
  border-color: #c8c8c8;
}

.smp-gallery__thumb:focus-visible {
  outline: 2px solid var(--clr-primary);
  outline-offset: 2px;
}

.smp-gallery__thumb.is-active {
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 1px var(--clr-primary);
}

/* ── Communication paths ─────────────────────────────────────────────────── */

.smp-paths {
  padding: var(--smp-section-y) 0;
  border-bottom: 1px solid var(--clr-border-light);
}

.smp-paths-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--clr-border);
  border-radius: var(--smp-radius);
  overflow: hidden;
  background: var(--clr-white);
}

.smp-path {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: 1px solid var(--clr-border);
}

.smp-path:last-child {
  border-right: none;
}

.smp-path__badge {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--smp-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-primary);
}

.smp-path h3 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.smp-path p {
  margin: 0;
  font-size: clamp(0.95rem, 0.25vw + 0.9rem, 1.02rem);
  line-height: 1.7;
  color: var(--clr-text-body);
  max-width: 42ch;
}

/* ── Capabilities ────────────────────────────────────────────────────────── */

.smp-capabilities {
  padding: var(--smp-section-y) 0;
  background: var(--clr-bg-alt, #f9f9f9);
  border-bottom: 1px solid var(--clr-border-light);
}

.smp-cap-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--clr-border);
  border-radius: var(--smp-radius);
  overflow: hidden;
  background: var(--clr-white);
}

.smp-cap-item {
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  border-right: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
  transition: background 0.25s ease;
}

.smp-cap-item:nth-child(3n) {
  border-right: none;
}

.smp-cap-item:nth-last-child(-n + 3) {
  border-bottom: none;
}

.smp-cap-item:hover {
  background: #fffafa;
}

.smp-cap-num {
  display: block;
  font-family: var(--smp-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--clr-primary);
  margin-bottom: 0.75rem;
}

.smp-cap-item h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.02rem, 1.4vw, 1.12rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.smp-cap-item p {
  margin: 0;
  font-size: clamp(0.92rem, 0.25vw + 0.86rem, 0.98rem);
  line-height: 1.7;
  color: var(--clr-text-body);
}

/* ── Standards strip ─────────────────────────────────────────────────────── */

.smp-standards {
  padding: clamp(1.75rem, 3vw, 2.25rem) 0;
  background: var(--clr-white);
  border-bottom: 1px solid var(--clr-border-light);
}

.smp-standards-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
}

.smp-standards-label {
  flex-shrink: 0;
  font-family: var(--smp-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--clr-text-light);
}

.smp-standards-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.smp-standards-list li {
  padding: 0.4rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--clr-black);
  background: var(--clr-bg-alt, #f9f9f9);
  border: 1px solid var(--clr-border-light);
  border-radius: var(--radius-pill, 999px);
  white-space: nowrap;
}

/* ── Datasheet spacing within page ───────────────────────────────────────── */

.smp-page .lvct-datasheet {
  border-bottom: 1px solid var(--clr-border-light);
}

.smp-page .product-doc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.smp-page .product-doc-actions__group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.smp-page .product-doc-actions__note {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.875rem;
  color: var(--clr-text-light);
}

/* ── CTA ─────────────────────────────────────────────────────────────────── */

.smp-cta {
  padding: 0 0 var(--smp-section-y);
  padding-top: var(--smp-section-y);
}

.smp-cta-inner {
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--clr-border);
  border-radius: var(--smp-radius);
  background: linear-gradient(135deg, #111 0%, #1c1c1c 100%);
  color: rgba(255, 255, 255, 0.88);
}

.smp-cta-inner h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  max-width: 30rem;
}

.smp-cta-inner > p {
  margin: 0.85rem 0 0;
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
}

.smp-cta-inner .product-doc-actions {
  margin-top: 1.5rem;
}

.smp-cta-inner .product-doc-actions__note {
  color: rgba(255, 255, 255, 0.5);
}

.smp-cta-inner .btn-outline {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.smp-cta-inner .btn-outline:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .smp-cap-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .smp-cap-item:nth-child(3n) {
    border-right: 1px solid var(--clr-border);
  }

  .smp-cap-item:nth-child(2n) {
    border-right: none;
  }

  .smp-cap-item:nth-last-child(-n + 3) {
    border-bottom: 1px solid var(--clr-border);
  }

  .smp-cap-item:nth-last-child(-n + 2) {
    border-bottom: none;
  }
}

@media (max-width: 900px) {
  .smp-hero {
    min-height: auto;
    padding-top: clamp(4.5rem, 12vw, 6rem);
    padding-bottom: 2.5rem;
  }

  .smp-hero-overlay {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.97) 0%,
      rgba(255, 255, 255, 0.9) 55%,
      rgba(255, 255, 255, 0.58) 100%
    );
  }

  .smp-hero-media {
    object-position: center center;
  }

  .smp-overview-split {
    grid-template-columns: 1fr;
  }

  .smp-overview-visual {
    order: -1;
    position: static;
    max-width: 420px;
    margin: 0 auto;
    width: 100%;
  }

  .smp-overview-media {
    min-height: 280px;
  }

  .smp-gallery__thumbs {
    grid-template-columns: repeat(auto-fit, minmax(4.5rem, 1fr));
  }

  .smp-gallery__thumb,
  .smp-gallery__thumb img {
    min-height: 4.75rem;
    height: 4.75rem;
  }

  .smp-paths-grid {
    grid-template-columns: 1fr;
  }

  .smp-path {
    border-right: none;
    border-bottom: 1px solid var(--clr-border);
  }

  .smp-path:last-child {
    border-bottom: none;
  }
}

@media (max-width: 640px) {
  .smp-cap-grid {
    grid-template-columns: 1fr;
  }

  .smp-cap-item,
  .smp-cap-item:nth-child(3n),
  .smp-cap-item:nth-child(2n) {
    border-right: none;
    border-bottom: 1px solid var(--clr-border);
  }

  .smp-cap-item:last-child {
    border-bottom: none;
  }

  .smp-variant-tabs {
    width: 100%;
  }

  .smp-variant-tab {
    flex: 1 1 auto;
  }

  .smp-hero-actions .btn,
  .smp-overview .product-doc-actions .btn,
  .smp-cta-inner .product-doc-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .smp-standards-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .smp-cta-inner {
    padding: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .smp-cap-item,
  .smp-variant-tab,
  .smp-overview-media img {
    transition: none;
  }
}
