/* Flat previews avoid resampling from rotation, perspective and hover zoom. */
.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.product-card,
.product-card:hover {
  transform: none;
}

.product-card .card-preview {
  height: 356px;
  padding: 38px 22px 36px;
}

.card-preview::after {
  display: none;
}

.product-card[data-product] .card-shot,
.product-card[data-product]:hover .card-shot {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  margin: 0;
  border: 0;
  border-radius: 3px;
  transform: none;
  filter: none;
  opacity: 1;
  object-fit: contain;
  transition: none;
}

.preview-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  color: #9aa3b2;
  font-size: 10px;
  letter-spacing: 1px;
}

.product-card .card-body {
  padding: 28px;
}

.product-card .card-type { font-size: 10px; }
.product-card .card-body h3 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.4;
  white-space: nowrap;
}
.product-card .card-edition {
  display: inline;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  color: var(--accent-light);
}
.product-card .card-description {
  margin-top: 18px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.9;
  color: #d5dbe5;
  min-height: 3.8em;
}
.product-card .card-tags > span { font-size: 11px; padding: 5px 8px; }
.product-card .card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  padding-top: 20px;
  border-top-color: #ffffff1a;
}
.product-card .card-detail {
  flex: 0 0 auto;
  min-height: 24px;
  font-size: 12px;
}
.product-card .card-download {
  flex: 0 0 auto;
  width: auto;
  margin-left: auto;
  min-height: 52px;
  padding: 14px 20px;
  gap: 12px;
  border: 1px solid #ff977a;
  border-radius: 6px;
  background: linear-gradient(135deg, #ff744e, #f34b32);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  box-shadow: 0 6px 20px #ff593d30;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.product-card .card-download svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  flex-shrink: 0;
}
.product-card .card-download:hover {
  border-color: #ffb69b;
  background: linear-gradient(135deg, #ff885f, #ff593d);
  box-shadow: 0 8px 24px #ff593d45;
}
.product-card .card-download:focus-visible {
  outline: 2px solid #ffd1bd;
  outline-offset: 4px;
}

@media (max-width: 380px) {
  .product-card .card-download {
    min-height: 48px;
    padding: 12px 14px;
    gap: 8px;
    font-size: 14px;
  }
  .product-card .card-download svg { width: 18px; height: 18px; }
}

/* Keep the first-screen composition, while making the interface itself flat. */
.hero-shot-front,
.hero-shot-front:hover,
.hero-shot-middle,
.hero-shot-middle:hover,
.hero-shot-back,
.hero-shot-back:hover {
  transform: none;
  filter: none;
}

.hero-shot-front img { padding: 0; }
.hero-shot-back { opacity: 1; }
.gallery-stage > img { border: 0; border-radius: 6px; }

/* Give the main interface more space and tighten the trailing screenshots. */
.hero-shot-front { width: 252px; left: 48px; }
.hero-shot-back { right: 24px; top: 141px; }

@media (max-width: 1150px) {
  .hero-shot-front { width: 228px; left: 8px; }
  .hero-shot-back { right: 16px; top: 140px; }
}

@media (max-width: 900px) {
  .hero-shot-front { left: 0; }
  .hero-shot-back { right: 10px; }
}

@media (max-width: 700px) {
  .hero-shot-front { width: 208px; left: 8px; }
  .hero-shot-middle { left: calc(100% - 202px); }
  .hero-shot-back { right: 0; top: 110px; }
}

@media (max-width: 360px) {
  .hero-shot-front { width: 188px; left: 0; }
  .hero-shot-middle { left: calc(100% - 170px); }
  .hero-shot-back { right: 0; top: 110px; }
}

@media (max-width: 700px) {
  .product-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .product-card .card-preview {
    height: 340px;
    padding: 34px 18px 34px;
  }

  .product-card .card-body { padding: 24px; }
  .product-card .card-type { font-size: 10px; }
  .product-card .card-body h3 { font-size: clamp(18px, 5.5vw, 24px); }
  .product-card .card-edition { font-size: inherit; }
  .product-card .card-description { min-height: 0; }
  .product-card .card-tags > span { font-size: 11px; }
}

/* Larger product filters requested in browser comments. */
.product-toolbar {
  flex-wrap: wrap;
  gap: 16px;
}

.product-toolbar .product-filters {
  padding: 6px;
  gap: 6px;
  max-width: 100%;
  border-radius: 8px;
}

.product-toolbar .filter-button {
  min-height: 48px;
  padding: 12px 24px;
  font-size: 14px;
  border-radius: 5px;
  white-space: nowrap;
}

.product-toolbar .filter-button > span {
  font-size: 11px;
  margin-left: 8px;
}

@media (max-width: 700px) {
  .product-toolbar .product-filters {
    display: inline-flex;
    width: auto;
    gap: 4px;
    padding: 5px;
  }

  .product-toolbar .filter-button {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 48px;
    padding: 12px;
    font-size: 14px;
  }

  .product-toolbar .filter-button > span {
    font-size: 10px;
    margin-left: 5px;
  }

  .product-toolbar .toolbar-note { display: none; }
}

/* Brand image and stronger download entry points. */
.brand-logo {
  display: block;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 0 0 1px #ffffff24;
}

.footer-main .brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 6px;
}

.site-header .header-download {
  min-height: 48px;
  padding: 12px 22px;
  gap: 16px;
  border-color: #525e70;
  font-size: 15px;
  font-weight: 700;
  box-shadow: inset 0 1px 0 #ffffff0a, 0 4px 14px #0002;
}

.site-header .header-download svg {
  width: 19px;
  height: 19px;
  stroke-width: 2;
}

.hero-copy .hero-actions {
  align-items: stretch;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

.hero-copy .hero-actions .button {
  min-height: 58px;
  padding: 0 25px;
  gap: 20px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
}

.hero-copy .hero-actions .button-primary {
  border: 1px solid #ff987d65;
  box-shadow: 0 9px 30px #ff593d38;
}

.hero-copy .hero-actions .button-primary svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
}

.hero-copy .hero-actions .button-text {
  border: 1px solid #495363;
  background: #171d2680;
  color: #eff2f7;
}

.hero-copy .hero-actions .button-text:hover {
  border-color: var(--accent-light);
  background: #252c38;
  color: #fff;
}

.product-card.featured .card-badge {
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-color: #b16a50;
  background: #492c24;
  color: #ffb198;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
}

@media (max-width: 700px) {
  .site-header .brand-logo {
    width: 38px;
    height: 38px;
  }

  .site-header .header-download {
    min-height: 44px;
    padding: 10px 15px;
    gap: 10px;
    font-size: 13px;
  }

  .site-header .header-download svg {
    width: 17px;
    height: 17px;
  }

  .hero-copy .hero-actions {
    gap: 12px;
    margin-top: 28px;
  }

  .hero-copy .hero-actions .button {
    min-height: 54px;
    padding: 0 18px;
    gap: 12px;
    font-size: 14px;
  }
}

@media (max-width: 420px) {
  .hero-copy .hero-actions .button {
    flex: 1 1 150px;
  }
}

@media (max-width: 360px) {
  .site-header .header-inner { gap: 10px; }
  .site-header .brand { gap: 8px; }
  .site-header .brand-logo { width: 32px; height: 32px; }
  .site-header .brand-wordmark { font-size: 15px; }
  .site-header .header-download {
    min-height: 42px;
    padding: 10px 11px;
    gap: 9px;
    font-size: 12px;
  }
}

/* Readable navigation and download rows with matching recommendations. */
.site-header .desktop-nav .nav-link {
  font-size: 17px;
  font-weight: 600;
}

.site-header .mobile-nav > a {
  font-size: 16px;
}

.downloads-section .download-table {
  border-color: #465263;
  background: #151c26;
}

.downloads-section .download-table-head,
.downloads-section .download-row {
  grid-template-columns: minmax(0, 1.9fr) .8fr .8fr 164px;
  gap: 20px;
}

.downloads-section .download-table-head {
  padding: 18px 28px;
  background: #222c3a;
  color: #c3cbd7;
  font-size: 12px;
  font-weight: 600;
}

.downloads-section .download-row {
  --download-highlight: #ff8a6d;
  padding: 26px 25px;
  border-top-color: #394454;
  border-left: 3px solid transparent;
}

.downloads-section .download-row.featured {
  border-left-color: var(--download-highlight);
  background: linear-gradient(90deg, #ff593d12, transparent 70%);
}

.downloads-section .download-row[data-product="obs"] {
  --download-highlight: #ffbe78;
  background: linear-gradient(90deg, #ffae5012, transparent 70%);
}

.downloads-section .download-product {
  gap: 14px;
}

.downloads-section .download-product-icon {
  width: 44px;
  height: 44px;
  border-radius: 9px;
  border-color: #505e72;
  color: #d0d9e7;
  background: #252f3d;
}

.downloads-section .download-row.featured .download-product-icon {
  border-color: var(--download-highlight);
  color: var(--download-highlight);
  background: #3b2a25;
}

.downloads-section .download-product-icon svg {
  width: 23px;
  height: 23px;
}

.downloads-section .download-product-copy {
  min-width: 0;
}

.downloads-section .download-product h3 {
  color: #f3f5f9;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
}

.downloads-section .download-row.featured .download-product h3 {
  color: var(--download-highlight);
}

.download-product-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 7px;
}

.downloads-section .download-product p {
  margin-top: 0;
  color: #a6b2c4;
  font-size: 10px;
  letter-spacing: 1px;
}

.download-recommendation {
  display: inline-flex;
  align-items: center;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 3px 8px;
  color: var(--download-highlight);
  background: #f5834612;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.downloads-section .download-scene {
  color: #bcc7d7;
  font-size: 14px;
}

.downloads-section .download-status {
  color: #b6c0cf;
  font-size: 13px;
  gap: 8px;
}

.downloads-section .download-status > i {
  width: 6px;
  height: 6px;
  background: #a6b2c4;
}

.downloads-section .download-status.available {
  color: #a1dfbd;
}

.downloads-section .download-status.available > i {
  background: #80cfa2;
}

.downloads-section .download-row-button {
  min-height: 46px;
  padding: 11px 14px;
  gap: 12px;
  border-color: #5e6e84;
  color: #f2f5fa;
  font-size: 14px;
  font-weight: 600;
}

.downloads-section .download-row-button:not(.available) {
  background: #283445;
}

.downloads-section .download-row-button.available {
  border-color: var(--accent);
}

.downloads-section .download-row-button svg {
  width: 17px;
  height: 17px;
}

.downloads-section .status-pill {
  font-size: 12px;
  padding: 10px 14px;
}

.downloads-section .download-note {
  font-size: 12px;
  color: #9da9bb;
}

@media (max-width: 1000px) and (min-width: 701px) {
  .downloads-section .download-table-head,
  .downloads-section .download-row {
    grid-template-columns: minmax(0, 1.8fr) .8fr 156px;
    gap: 16px;
  }
  .downloads-section .download-scene,
  .downloads-section .download-table-head > span:nth-child(2) { display: none; }
  .downloads-section .download-product h3 { font-size: 16px; }
}

@media (max-width: 700px) {
  .downloads-section .download-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 14px;
    padding: 24px 18px;
  }
  .downloads-section .download-product {
    grid-column: 1 / -1;
    gap: 12px;
  }
  .downloads-section .download-product h3 { font-size: 18px; }
  .downloads-section .download-status { padding-left: 0; }
  .downloads-section .download-row-button { padding-inline: 12px; }
}

@media (max-width: 380px) {
  .downloads-section .download-row { padding: 22px 14px; gap: 16px 10px; }
  .downloads-section .download-product-icon { width: 38px; height: 38px; }
  .downloads-section .download-product h3 { font-size: 15px; }
  .downloads-section .download-row-button { font-size: 13px; padding-inline: 10px; }
}
