/* =========================================================
   Media, product gallery, credentials & store proof
   ========================================================= */

/* ---------- Video ---------- */

.video-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  align-items: center;
  gap: 46px 76px;
}

.video-copy .section-title {
  max-width: 560px;
}

.video-copy > p {
  max-width: 540px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.95;
}

.video-copy .check-list {
  margin-top: 22px;
}

.video-meta {
  margin-top: 18px;
  color: #6f7f78;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.video-card {
  width: min(100%, 360px);
  margin: 0;
  justify-self: end;
}

.video-shell {
  position: relative;
  padding: 9px;
  border: 1px solid rgba(92, 235, 192, 0.4);
  background: #081114;
  box-shadow: 0 26px 60px rgba(11, 17, 20, 0.28);
}

.video-shell::before,
.video-shell::after {
  content: "";
  position: absolute;
  z-index: 2;
  width: 18px;
  height: 18px;
  border-color: var(--brass);
  border-style: solid;
  pointer-events: none;
}

.video-shell::before {
  top: 4px;
  left: 4px;
  border-width: 1px 0 0 1px;
}

.video-shell::after {
  right: 4px;
  bottom: 4px;
  border-width: 0 1px 1px 0;
}

.video-shell video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  background: #000;
  object-fit: cover;
}

.video-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.video-card--compact .video-shell video {
  aspect-ratio: 4 / 5;
}

.video-card--compact {
  width: min(100%, 350px);
}

.video-card figcaption b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Storefront & licence ---------- */

.store-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: 22px;
  align-items: start;
}

.proof-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.proof-photo {
  position: relative;
  min-height: 0;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--ink);
}

.proof-photo > a {
  display: block;
  width: 100%;
  height: 100%;
}

.proof-photo img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center 32%;
  transition: transform 0.6s var(--ease);
}

.proof-info {
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.proof-info-row {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.7;
}

.proof-info-row:last-of-type {
  border-bottom: 0;
}

.proof-info-row svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex: 0 0 auto;
  color: var(--brass-deep);
}

.proof-info-row b {
  display: block;
  color: var(--ink);
  font-weight: 600;
}

.proof-info-row span {
  color: var(--muted);
}

.proof-info-row a {
  color: var(--brass-deep);
  font-weight: 600;
}

.proof-info-note {
  margin-top: 7px;
  color: #6f7f78;
  font-size: 9.5px;
  line-height: 1.65;
}

.proof-photo:hover img {
  transform: scale(1.025);
}

.proof-photo figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding: 42px 22px 18px;
  background: linear-gradient(transparent, rgba(5, 11, 13, 0.9));
  color: var(--paper);
  font-size: 11px;
}

.proof-photo figcaption b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
}

.proof-photo figcaption span {
  color: #b9c4be;
}

.proof-photo .proof-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  padding: 6px 9px;
  border: 1px solid rgba(148, 247, 217, 0.45);
  background: rgba(5, 11, 13, 0.68);
  color: var(--brass-2);
  font-size: 9px;
  letter-spacing: 0.14em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.license-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper-3);
}

.license-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.license-head h3 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  line-height: 1.35;
}

.license-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 107, 87, 0.65);
  border-radius: 50%;
  color: var(--vermilion);
  font-family: var(--serif);
  font-size: 10px;
  line-height: 1.5;
  text-align: center;
  transform: rotate(-7deg);
}

.license-image {
  display: block;
  padding: 7px;
  border: 1px solid var(--line);
  background: #fff;
}

.license-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #fff;
}

.license-facts {
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.license-facts > div {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.7;
}

.license-facts dt {
  color: var(--brass-deep);
  letter-spacing: 0.04em;
}

.license-facts dd {
  color: var(--muted);
}

.license-note {
  margin-top: 14px;
  color: #6f7f78;
  font-size: 9.5px;
  line-height: 1.7;
}

.license-note a {
  color: var(--brass-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Product gallery ---------- */

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-3);
  color: var(--ink);
  transition: transform 0.35s var(--ease), border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.product-card:hover,
.product-card:focus-visible {
  border-color: rgba(10, 143, 112, 0.6);
  box-shadow: 0 18px 36px rgba(11, 17, 20, 0.1);
  transform: translateY(-4px);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e8f4ef;
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
  transition: transform 0.6s var(--ease);
}

.product-card:hover .product-media img {
  transform: scale(1.035);
}

.product-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 8px;
  border: 1px solid rgba(11, 17, 20, 0.18);
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 17px 17px;
}

.product-model {
  color: var(--brass-deep);
  font-family: var(--serif);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.product-body h3 {
  margin-top: 6px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.45;
}

.product-body > p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.75;
}

.product-specs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 12px;
}

.product-specs li {
  position: relative;
  padding-left: 12px;
  color: #40514a;
  font-size: 10px;
  line-height: 1.65;
}

.product-specs li::before {
  content: "";
  position: absolute;
  top: 0.7em;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brass-deep);
}

.product-note {
  margin-top: 9px;
  color: #6f7f78;
  font-size: 9px;
  line-height: 1.6;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--brass-deep);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.product-link svg {
  width: 13px;
  height: 13px;
  transition: transform 0.25s var(--ease);
}

.product-card:hover .product-link svg {
  transform: translateX(3px);
}

.product-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-top: 28px;
  padding: 26px 30px;
  background: var(--ink);
  color: var(--paper);
}

.product-more h3 {
  margin-top: 5px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.product-more p {
  margin-top: 6px;
  color: #a8b4ae;
  font-size: 11px;
  line-height: 1.7;
}

.product-more .btn {
  flex: 0 0 auto;
}

/* ---------- Credentials ---------- */

.credentials-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: stretch;
  gap: 20px;
}

.credential-feature {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-3);
}

.credential-feature-image {
  display: block;
  padding: 12px;
  background: #f2fbf7;
}

.credential-feature-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: contain;
  background: #f2fbf7;
}

.credential-feature-body {
  padding: 20px 22px 22px;
}

.credential-feature-body .eyebrow {
  margin-bottom: 8px;
}

.credential-feature-body h3 {
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.45;
}

.credential-feature-body p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.8;
}

.credential-code {
  display: inline-flex;
  margin-top: 12px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  color: var(--brass-deep);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.credential-certs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.certificate-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-3);
  color: var(--ink);
}

.certificate-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f2fbf7;
}

.certificate-card.certificate-card--qr img {
  object-fit: contain;
  background: #fff;
}

.certificate-card-body {
  padding: 12px 14px 13px;
}

.certificate-card-body strong {
  display: block;
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.certificate-card-body span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.6;
}

.brand-strip {
  margin-top: 30px;
  padding: 14px;
  border: 1px solid rgba(92, 235, 192, 0.35);
  background: var(--ink);
}

.brand-strip img {
  width: 100%;
  height: auto;
}

.brand-strip figcaption {
  margin-top: 9px;
  color: #8f9b96;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-align: right;
}

.credential-note {
  max-width: 900px;
  margin-top: 20px;
  color: #6f7f78;
  font-size: 10px;
  line-height: 1.8;
}

.credential-note strong {
  color: var(--ink);
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(94vw, 920px);
  max-width: 920px;
  max-height: 92vh;
  padding: 0;
  border: 1px solid rgba(148, 247, 217, 0.4);
  background: var(--ink);
  color: var(--paper);
  overflow: auto;
}

.lightbox::backdrop {
  background: rgba(4, 9, 11, 0.88);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.lightbox-inner {
  position: relative;
  padding: 18px;
}

.lightbox img {
  width: auto;
  max-width: 100%;
  max-height: 76vh;
  margin: 0 auto;
  object-fit: contain;
}

.lightbox-caption {
  padding: 12px 44px 2px 2px;
  color: #b9c4be;
  font-size: 11px;
  line-height: 1.7;
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(5, 11, 13, 0.8);
  color: var(--paper);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.lightbox-close:hover {
  border-color: var(--brass-2);
  color: var(--brass-2);
}

/* ---------- Responsive ---------- */

@media (max-width: 1120px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .video-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .video-card {
    justify-self: start;
    width: min(100%, 330px);
  }

  .store-proof-grid {
    grid-template-columns: 1fr;
  }

  .proof-photo {
    min-height: 0;
  }

  .proof-photo img {
    min-height: 0;
  }

  .credentials-grid {
    grid-template-columns: 1fr;
  }

  .credential-feature {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
  }

  .credential-feature-image img {
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 720px) {
  .video-card {
    width: min(100%, 300px);
    justify-self: center;
  }

  .video-copy > p {
    font-size: 14px;
  }

  .proof-photo {
    min-height: 0;
  }

  .proof-photo img {
    min-height: 0;
  }

  .proof-photo figcaption {
    padding: 32px 16px 14px;
  }

  .proof-photo .proof-tag {
    display: none;
  }

  .proof-photo figcaption b {
    font-size: 18px;
  }

  .license-card {
    padding: 18px;
  }

  .license-head h3 {
    font-size: 21px;
  }

  .license-facts > div {
    grid-template-columns: 66px minmax(0, 1fr);
    font-size: 10px;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-card {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
  }

  .product-media {
    height: 100%;
    min-height: 290px;
    aspect-ratio: auto;
  }

  .product-media img {
    object-position: center;
  }

  .product-body {
    padding: 18px 16px;
  }

  .product-body h3 {
    font-size: 17px;
  }

  .product-specs li {
    font-size: 9.5px;
  }

  .product-more {
    align-items: flex-start;
    flex-direction: column;
    padding: 22px;
  }

  .product-more .btn {
    width: 100%;
  }

  .credentials-grid {
    gap: 14px;
  }

  .credential-feature {
    display: flex;
  }

  .credential-certs {
    grid-template-columns: 1fr;
  }

  .certificate-card {
    display: grid;
    grid-template-columns: 42% minmax(0, 1fr);
    align-items: center;
  }

  .certificate-card img {
    height: 100%;
    aspect-ratio: auto;
    min-height: 120px;
  }

  .certificate-card-body {
    padding: 12px;
  }

  .brand-strip {
    padding: 8px;
  }

  .lightbox-inner {
    padding: 12px;
  }

  .lightbox img {
    max-height: 70vh;
  }
}
