/* MAKE-ROOF public product pages — Precision Architectural Software */
.download-page,
.store-page {
  --page-bg: #0e1118;
  --page-section: #131821;
  --page-card: #181e29;
  --page-elevated: #202735;
  --page-hover: #252e3e;
  --page-text: #f5f7fb;
  --page-secondary: #a9b2c2;
  --page-muted: #8792a5;
  --page-brand: var(--mr-accent, #e9a778);
  --page-brand-hover: var(--mr-accent-hover, #f2bc91);
  --page-brand-soft: rgba(233, 167, 120, 0.12);
  --page-success: #53b483;
  --page-warning: #e5ad45;
  --page-border: #313a4c;
  --page-border-subtle: rgba(255, 255, 255, 0.07);
  --page-radius: 12px;
  --page-shadow: 0 18px 46px rgba(0, 0, 0, 0.22);
  background: var(--page-bg);
  color: var(--page-text);
}

html {
  scroll-padding-top: calc(var(--header-height) + 16px);
}

.download-page .navbar-custom,
.store-page .navbar-custom {
  z-index: 1050;
  min-height: 68px;
  padding-block: 10px !important;
  background: rgba(15, 18, 25, 0.97);
  border-bottom: 1px solid var(--page-border-subtle);
  backdrop-filter: blur(14px);
}

.download-page .navbar-custom .nav-link.active,
.store-page .navbar-custom .nav-link.active {
  position: relative;
  color: var(--page-brand) !important;
}

.download-page .navbar-custom .nav-link.active::after,
.store-page .navbar-custom .nav-link.active::after {
  position: absolute;
  right: 1.5rem;
  bottom: -10px;
  left: 1.5rem;
  height: 2px;
  content: '';
  background: var(--page-brand);
}

.download-page :is(a, button, [tabindex]):focus-visible,
.store-page :is(a, button, input, [tabindex]):focus-visible {
  outline: 3px solid rgba(142, 168, 255, 0.72);
  outline-offset: 3px;
}

.public-page-main {
  padding-top: 68px;
}

.public-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 330px;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--page-border-subtle);
  background:
    radial-gradient(circle at 78% 32%, rgba(233, 167, 120, 0.11), transparent 34%),
    linear-gradient(180deg, #121721 0%, var(--page-bg) 100%);
}

.public-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(90deg, #000, transparent 84%);
}

.public-hero-inner {
  width: min(100% - 48px, 1240px);
  margin-inline: auto;
  padding-block: 56px 48px;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--page-brand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-title {
  max-width: 820px;
  margin: 0;
  color: var(--page-text);
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.page-lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--page-secondary);
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  line-height: 1.7;
}

.tech-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 24px;
  color: var(--page-secondary);
  font-size: 0.82rem;
}

.tech-fact {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
}

.tech-fact i {
  color: var(--page-brand);
}

.public-section {
  padding-block: 68px;
}

.section-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.section-kicker {
  margin-bottom: 7px;
  color: var(--page-brand);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.public-section-title {
  margin: 0;
  color: var(--page-text);
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.section-copy {
  max-width: 62ch;
  margin: 8px 0 0;
  color: var(--page-secondary);
}

/* Download Center */
.download-shell {
  padding-block: 40px 68px;
}

.product-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  margin: 0 0 24px;
  padding: 5px;
  overflow: visible;
  border: 1px solid var(--page-border);
  border-radius: 14px;
  background: #111620;
}

.product-tab-btn {
  position: relative;
  display: grid;
  min-height: 70px;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  color: var(--page-secondary);
  text-align: left;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.product-tab-btn > i {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--page-muted);
  border: 1px solid var(--page-border-subtle);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.product-tab-copy {
  display: grid;
  gap: 1px;
}

.product-tab-copy strong {
  color: var(--page-text);
  font-size: 0.93rem;
}

.product-tab-copy small {
  color: var(--page-muted);
  font-size: 0.75rem;
}

.product-tab-btn:hover {
  color: var(--page-text);
  background: var(--page-hover);
}

.product-tab-btn.active {
  color: var(--page-text);
  border-color: rgba(233, 167, 120, 0.35);
  background: var(--page-elevated);
  box-shadow: inset 0 -2px var(--page-brand);
}

.product-tab-btn.active > i {
  color: var(--page-brand);
  border-color: rgba(233, 167, 120, 0.35);
  background: var(--page-brand-soft);
}

.release-panel {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 3.2vw, 40px);
  border: 1px solid var(--page-border);
  border-radius: var(--page-radius);
  background: var(--page-card);
  box-shadow: var(--page-shadow);
}

.release-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(300px, 5fr);
  align-items: center;
  gap: clamp(30px, 4vw, 54px);
}

.release-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px 14px;
  margin-bottom: 17px;
  color: var(--page-secondary);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
}

.release-badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  color: #a7e2c3;
  border: 1px solid rgba(83, 180, 131, 0.34);
  border-radius: 6px;
  background: rgba(83, 180, 131, 0.1);
  font-family: var(--font-body);
  font-weight: 700;
}

.release-badge.pending {
  color: #f1c86f;
  border-color: rgba(229, 173, 69, 0.34);
  background: rgba(229, 173, 69, 0.1);
}

.release-title {
  margin: 0 0 13px;
  color: var(--page-text);
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.release-description {
  max-width: 68ch;
  margin-bottom: 22px;
  color: var(--page-secondary);
}

.release-subtitle {
  margin-bottom: 12px;
  color: var(--page-text);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.release-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 22px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}

.release-features li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  color: #dfe4ec;
  font-size: 0.84rem;
}

.release-features i {
  margin-top: 4px;
  color: var(--page-success);
}

.changelog-box {
  margin-bottom: 24px;
  padding: 13px 16px;
  color: var(--page-secondary);
  border-left: 3px solid var(--page-brand);
  background: #111620;
  font-size: 0.86rem;
}

.changelog-box strong {
  display: block;
  margin-bottom: 3px;
  color: var(--page-text);
}

.release-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.download-page .btn-download-primary,
.download-page .btn-download-secondary,
.download-page .release-secondary-action {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.download-page .btn-download-primary {
  color: #17130f !important;
  border: 1px solid var(--page-brand);
  background: var(--page-brand);
  box-shadow: none;
}

.download-page .btn-download-primary:hover {
  color: #17130f !important;
  background: var(--page-brand-hover);
  transform: translateY(-1px);
}

.download-page .release-secondary-action,
.download-page .btn-download-secondary {
  color: var(--page-text) !important;
  border: 1px solid var(--page-border);
  background: transparent;
}

.download-page .release-secondary-action:hover,
.download-page .btn-download-secondary:hover {
  color: var(--page-text) !important;
  border-color: rgba(233, 167, 120, 0.55);
  background: var(--page-brand-soft);
}

.release-media {
  display: grid;
  min-height: 370px;
  place-items: center;
  padding: 28px;
  text-align: center;
  border: 1px solid var(--page-border-subtle);
  border-radius: 11px;
  background: radial-gradient(circle at 50% 38%, rgba(233, 167, 120, 0.12), transparent 48%), #111620;
}

.release-media img {
  width: min(100%, 260px);
  max-height: 250px;
  object-fit: contain;
}

.release-media-name {
  margin-top: 14px;
  color: var(--page-text);
  font-size: 1rem;
  font-weight: 700;
}

.release-media-note {
  color: var(--page-muted);
  font-size: 0.76rem;
}

.support-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  border: 1px solid var(--page-border-subtle);
  border-radius: 10px;
  background: #111620;
}

.support-strip-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  padding: 15px 18px;
}

.support-strip-item + .support-strip-item {
  border-left: 1px solid var(--page-border-subtle);
}

.support-strip-item i {
  margin-top: 3px;
  color: var(--page-brand);
}

.support-strip-item strong,
.support-strip-item span {
  display: block;
}

.support-strip-item strong {
  color: var(--page-text);
  font-size: 0.8rem;
}

.support-strip-item span {
  color: var(--page-muted);
  font-size: 0.72rem;
}

.release-history {
  margin-top: 56px;
}

.history-list {
  overflow: hidden;
  border: 1px solid var(--page-border);
  border-radius: 11px;
  background: var(--page-card);
}

.version-history-card {
  display: grid;
  min-height: 80px;
  grid-template-columns: 100px 135px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin: 0;
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--page-border-subtle);
  border-radius: 0;
  background: transparent;
  transition: background-color 160ms ease;
}

.version-history-card:last-child {
  border-bottom: 0;
}

.version-history-card:hover {
  background: var(--page-hover);
  transform: none;
}

.history-version {
  color: var(--page-brand);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-weight: 700;
}

.history-date {
  color: var(--page-muted);
  font-size: 0.78rem;
}

.history-copy {
  color: var(--page-secondary);
  font-size: 0.84rem;
}

.install-section {
  border-top: 1px solid var(--page-border-subtle);
  background: var(--page-section);
}

.install-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.step-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--page-border-subtle);
  border-radius: 10px;
  background: var(--page-card);
}

.step-num {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 16px;
  place-items: center;
  color: #17130f;
  border-radius: 7px;
  background: var(--page-brand);
  font-size: 0.85rem;
  font-weight: 800;
}

/* Store */
.store-page .public-hero {
  min-height: 310px;
}

.store-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 40px;
}

.trial-cta-block {
  max-width: 360px;
  padding: 18px;
  border: 1px solid rgba(233, 167, 120, 0.28);
  border-radius: 11px;
  background: rgba(233, 167, 120, 0.07);
}

.trial-cta-block p {
  margin: 10px 0 0;
  color: var(--page-secondary);
  font-size: 0.75rem;
}

.store-page .store-trial-btn,
.store-page .store-buy-btn,
.store-page .store-detail-btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 700;
}

.store-page .store-trial-btn,
.store-page .store-buy-btn {
  color: #17130f;
  border: 1px solid var(--page-brand);
  background: var(--page-brand);
}

.store-page .store-trial-btn:hover,
.store-page .store-buy-btn:hover {
  color: #17130f;
  background: var(--page-brand-hover);
  transform: translateY(-1px);
}

.store-page .store-trial-btn {
  width: 100%;
}

.store-catalog {
  padding-block: 56px 72px;
}

.license-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.license-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--page-border);
  border-radius: var(--page-radius);
  background: var(--page-card);
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.license-card:hover {
  border-color: rgba(233, 167, 120, 0.5);
  background: #1b2230;
  transform: translateY(-3px);
}

.license-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.product-family {
  color: var(--page-text);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.license-count {
  margin-top: 2px;
  color: var(--page-brand);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.license-card-media {
  display: grid;
  min-height: 210px;
  margin-block: 20px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--page-border-subtle);
  border-radius: 10px;
  background: radial-gradient(circle, rgba(233, 167, 120, 0.1), transparent 52%), #111620;
}

.license-card-media img {
  width: 190px;
  height: 190px;
  object-fit: contain;
}

.store-detail-btn {
  color: var(--page-text);
  border: 1px solid var(--page-border);
  background: rgba(14, 17, 24, 0.88);
}

.store-detail-btn:hover {
  color: var(--page-text);
  border-color: var(--page-brand);
  background: var(--page-elevated);
}

.license-description {
  min-height: 50px;
  margin-bottom: 16px;
  color: var(--page-secondary);
  font-size: 0.84rem;
}

.license-benefits {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  color: #dfe4ec;
  font-size: 0.82rem;
  list-style: none;
}

.license-benefits li {
  display: flex;
  align-items: center;
  gap: 9px;
}

.license-benefits i {
  color: var(--page-success);
}

.license-price {
  margin-top: auto;
  color: var(--page-text);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.035em;
}

.license-price small {
  color: var(--page-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
}

.license-card-actions {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 8px;
  margin-top: 18px;
}

.store-buy-btn {
  width: 100%;
}

.tools-section {
  margin-top: 64px;
  padding-top: 56px;
  border-top: 1px solid var(--page-border-subtle);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.tool-card {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(180px, 0.8fr) 1.2fr;
  overflow: hidden;
  border: 1px solid var(--page-border);
  border-radius: var(--page-radius);
  background: var(--page-card);
  transition: transform 160ms ease, border-color 160ms ease;
}

.tool-card:hover {
  border-color: rgba(233, 167, 120, 0.5);
  transform: translateY(-3px);
}

.tool-card-media {
  display: grid;
  min-height: 290px;
  place-items: center;
  border-right: 1px solid var(--page-border-subtle);
  background: radial-gradient(circle, rgba(233, 167, 120, 0.1), transparent 54%), #111620;
}

.tool-card-media img {
  width: min(78%, 190px);
  aspect-ratio: 1;
  object-fit: contain;
}

.tool-card-content {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.tool-card-content .license-description {
  min-height: 0;
}

.decision-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 48px;
  border: 1px solid var(--page-border-subtle);
  border-radius: 10px;
  background: #111620;
}

.decision-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
}

.decision-item + .decision-item {
  border-left: 1px solid var(--page-border-subtle);
}

.decision-item i {
  color: var(--page-brand);
}

.decision-item strong,
.decision-item small {
  display: block;
}

.decision-item strong {
  color: var(--page-text);
  font-size: 0.83rem;
}

.decision-item small {
  color: var(--page-muted);
  font-size: 0.72rem;
}

/* Premium Product Showcase Modal */
.store-page {
  --product-overlay: rgba(5, 8, 13, 0.84);
  --product-modal-bg: #171c26;
  --product-panel-bg: #10151e;
  --product-surface: #202735;
  --product-surface-hover: #273142;
  --product-text: var(--mr-text-primary);
  --product-text-secondary: var(--mr-text-secondary);
  --product-text-muted: var(--mr-text-muted);
  --product-brand: var(--mr-accent);
  --product-brand-hover: var(--mr-accent-hover);
  --product-brand-soft: var(--mr-accent-soft);
  --product-success: var(--mr-success);
  --product-border: var(--mr-border);
  --product-border-subtle: var(--mr-border-subtle);
  --product-focus: var(--mr-focus);
  --product-shadow: 0 36px 100px rgba(0, 0, 0, 0.52), 0 10px 32px rgba(0, 0, 0, 0.28);
}

.store-page .modal-backdrop.show {
  opacity: 1;
  background: var(--product-overlay);
  backdrop-filter: blur(8px);
}

.product-detail-overlay .product-detail-dialog {
  width: min(1280px, calc(100vw - 48px));
  max-width: none;
  height: min(820px, calc(100dvh - 48px));
  min-height: 0 !important;
  max-height: calc(100dvh - 48px);
  margin: 24px auto;
}

#productDetailsModal .product-detail-modal {
  display: flex;
  height: 100%;
  max-height: 100%;
  flex-direction: column;
  overflow: hidden;
  color: var(--product-text);
  border: 1px solid var(--product-border) !important;
  border-radius: 14px;
  background: var(--product-modal-bg) !important;
  box-shadow: var(--product-shadow);
}

.product-detail-overlay.fade .product-detail-dialog {
  transform: scale(0.985);
  transition: transform 180ms ease, opacity 180ms ease;
}

.product-detail-overlay.show .product-detail-dialog {
  transform: scale(1);
}

.product-detail-header {
  z-index: 5;
  display: flex;
  min-height: 78px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 22px 14px 26px;
  border-bottom: 1px solid var(--product-border-subtle);
  background: var(--product-modal-bg);
}

.product-detail-heading {
  min-width: 0;
}

.product-detail-eyebrow,
.product-info-eyebrow {
  margin-bottom: 3px;
  color: var(--product-brand);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.product-detail-title {
  max-width: min(70vw, 700px);
  margin: 0;
  overflow: hidden;
  color: var(--product-text);
  font-size: clamp(1rem, 1.7vw, 1.35rem);
  font-weight: 700;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-license-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 3px 8px;
  color: var(--product-brand);
  border: 1px solid rgba(233, 167, 120, 0.35);
  border-radius: 6px;
  background: var(--product-brand-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.product-detail-close {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid var(--product-border);
  border-radius: 8px;
  background-color: var(--product-panel-bg);
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f5f7fb'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 1 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") !important;
  background-size: 13px;
  box-shadow: none !important;
  filter: none !important;
  opacity: 0.85;
}

.product-detail-close:hover {
  border-color: rgba(233, 167, 120, 0.55);
  background-color: var(--product-surface);
  opacity: 1;
}

.product-detail-body {
  display: grid;
  min-height: 0;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 3fr) minmax(330px, 2fr);
  overflow: hidden;
}

.product-media-pane,
.product-information-pane {
  min-width: 0;
  min-height: 0;
  padding: 22px;
}

.product-media-pane {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--product-border-subtle);
  background: #121720;
}

.product-media-stage {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  overflow: hidden;
  border: 1px solid var(--product-border-subtle);
  border-radius: 11px;
  background: radial-gradient(circle at 50% 45%, rgba(233, 167, 120, 0.1), transparent 48%), #0c1017;
}

.product-media-stage:fullscreen {
  display: grid;
  place-items: center;
  padding: 24px;
  border: 0;
  border-radius: 0;
  background: #080b10;
}

.product-media-stage .carousel-item {
  padding: clamp(18px, 3vw, 42px);
}

.product-media-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-media-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #080b10;
}

.product-gallery-controls {
  position: absolute;
  z-index: 3;
  bottom: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--product-border);
  border-radius: 9px;
  background: rgba(12, 16, 23, 0.94);
  transform: translateX(-50%);
}

.product-gallery-button,
.product-fullscreen-button,
.product-thumbnail {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  place-items: center;
  color: var(--product-text);
  border: 1px solid var(--product-border);
  border-radius: 8px;
  background: var(--product-panel-bg);
}

.product-thumbnail-play {
  position: absolute;
  inset: 50% auto auto 50%;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #17130f;
  border-radius: 50%;
  background: var(--product-brand);
  font-size: 0.65rem;
  transform: translate(-50%, -50%);
}

.product-gallery-button:hover,
.product-fullscreen-button:hover {
  color: var(--product-brand);
  border-color: rgba(233, 167, 120, 0.55);
  background: var(--product-surface);
}

.product-gallery-counter {
  min-width: 52px;
  color: var(--product-text-secondary);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.74rem;
  text-align: center;
}

.product-gallery-progress {
  display: flex;
  width: min(18vw, 150px);
  gap: 4px;
}

.product-gallery-progress span {
  height: 3px;
  flex: 1;
  border-radius: 3px;
  background: var(--product-border);
}

.product-gallery-progress span.active {
  background: var(--product-brand);
}

.product-fullscreen-button {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 14px;
}

.product-thumbnail-rail {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  margin-top: 12px;
  padding-bottom: 3px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
}

.product-thumbnail {
  width: 70px;
  height: 70px;
  flex-basis: 70px;
  overflow: hidden;
  padding: 3px;
  scroll-snap-align: start;
}

.product-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-thumbnail.active {
  border-color: var(--product-brand);
  box-shadow: inset 0 0 0 1px var(--product-brand);
}

.product-information-pane {
  overflow-y: auto;
  scrollbar-color: var(--product-border) transparent;
  background: var(--product-modal-bg);
}

.product-information-pane::-webkit-scrollbar,
.product-detail-body::-webkit-scrollbar,
.product-thumbnail-rail::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.product-information-pane::-webkit-scrollbar-track,
.product-detail-body::-webkit-scrollbar-track,
.product-thumbnail-rail::-webkit-scrollbar-track {
  background: var(--product-panel-bg);
}

.product-information-pane::-webkit-scrollbar-thumb,
.product-detail-body::-webkit-scrollbar-thumb,
.product-thumbnail-rail::-webkit-scrollbar-thumb {
  border: 2px solid var(--product-panel-bg);
  border-radius: 8px;
  background: var(--product-border);
}

.product-info-title {
  margin: 0 0 10px;
  color: var(--product-text);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.product-value-line {
  margin-bottom: 16px;
  color: #dde3ec;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
}

.product-detail-description {
  margin-bottom: 22px;
  color: var(--product-text-secondary);
  font-size: 0.85rem;
  line-height: 1.65;
  white-space: pre-line;
}

.product-benefit-section {
  padding-top: 18px;
  border-top: 1px solid var(--product-border-subtle);
}

.product-benefit-section h4 {
  margin-bottom: 12px;
  color: var(--product-text);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.product-benefit-list {
  display: grid;
  gap: 2px;
  margin: 0;
}

.product-benefit-list > div {
  display: grid;
  grid-template-columns: minmax(115px, 0.8fr) minmax(0, 1.2fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--product-border-subtle);
}

.product-benefit-list dt,
.product-benefit-list dd {
  margin: 0;
  font-size: 0.8rem;
}

.product-benefit-list dt {
  color: var(--product-text-muted);
  font-weight: 500;
}

.product-benefit-list dt i {
  margin-right: 7px;
  color: var(--product-success);
}

.product-benefit-list dd {
  color: var(--product-text);
  font-weight: 650;
}

.product-technical-block {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.product-technical-block > div {
  padding: 11px;
  border: 1px solid var(--product-border-subtle);
  border-radius: 8px;
  background: var(--product-panel-bg);
}

.product-technical-block span,
.product-technical-block strong {
  display: block;
}

.product-technical-block span {
  margin-bottom: 3px;
  color: var(--product-text-muted);
  font-size: 0.68rem;
}

.product-technical-block strong {
  color: var(--product-text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.75rem;
}

.product-purchase-footer {
  z-index: 5;
  display: flex;
  min-height: 92px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
  border-top: 1px solid var(--product-border);
  background: #141923;
}

.product-copy-link,
.product-modal-buy {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 10px 17px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}

.product-copy-link {
  color: var(--product-text-secondary);
  border: 1px solid var(--product-border);
  background: transparent;
}

.product-copy-link:hover {
  color: var(--product-text);
  border-color: rgba(233, 167, 120, 0.5);
  background: var(--product-brand-soft);
}

.product-copy-link-mobile {
  display: none;
  align-self: flex-start;
  margin-top: 14px;
}

.product-purchase-action {
  display: flex;
  align-items: center;
  gap: 22px;
}

.product-modal-price span,
.product-modal-price strong {
  display: block;
  text-align: right;
}

.product-modal-price span {
  margin-bottom: 2px;
  color: var(--product-text-muted);
  font-size: 0.68rem;
}

.product-modal-price strong {
  color: var(--product-text);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  line-height: 1.1;
  white-space: nowrap;
}

.product-modal-buy {
  min-width: 190px;
  color: #17130f;
  border: 1px solid var(--product-brand);
  background: var(--product-brand);
}

.product-modal-buy:hover {
  color: #17130f;
  background: var(--product-brand-hover);
  transform: translateY(-1px);
}

@media (max-width: 1099.98px) and (min-width: 768px) {
  .product-detail-overlay .product-detail-dialog {
    width: calc(100vw - 32px);
    height: calc(100dvh - 32px);
    max-height: calc(100dvh - 32px);
    margin: 16px auto;
  }

  .product-detail-body {
    grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  }

  .product-media-pane,
  .product-information-pane {
    padding: 16px;
  }

  .product-benefit-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 767.98px) {
  .product-detail-overlay {
    padding: 0 !important;
  }

  .product-detail-overlay .product-detail-dialog {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    margin: 0;
  }

  #productDetailsModal .product-detail-modal {
    border: 0 !important;
    border-radius: 0;
  }

  .product-detail-header {
    position: sticky;
    top: 0;
    min-height: 68px;
    padding: 10px 12px 10px 16px;
  }

  .product-detail-title {
    max-width: calc(100vw - 92px);
  }

  .product-license-badge {
    display: none;
  }

  .product-detail-body {
    display: block;
    overflow-y: auto;
    padding-bottom: calc(94px + env(safe-area-inset-bottom));
  }

  .product-media-pane,
  .product-information-pane {
    padding: 14px 16px;
  }

  .product-media-pane {
    border-right: 0;
    border-bottom: 1px solid var(--product-border-subtle);
  }

  .product-media-stage {
    height: auto;
    aspect-ratio: 1 / 1;
    flex: none;
  }

  .product-media-stage .carousel-item {
    padding: 18px;
  }

  .product-fullscreen-button {
    right: 10px;
    bottom: 10px;
  }

  .product-gallery-controls {
    bottom: 10px;
  }

  .product-gallery-progress {
    display: none;
  }

  .product-copy-link-mobile {
    display: inline-flex;
  }

  .product-information-pane {
    overflow: visible;
  }

  .product-purchase-footer {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    min-height: 82px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .product-copy-link-desktop {
    display: none;
  }

  .product-purchase-action {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .product-modal-price span,
  .product-modal-price strong {
    text-align: left;
  }

  .product-modal-price strong {
    font-size: clamp(1rem, 5vw, 1.3rem);
  }

  .product-modal-buy {
    min-width: 158px;
    padding-inline: 13px;
    font-size: 0.74rem;
  }
}

@media (max-width: 380px) {
  .product-detail-eyebrow {
    display: none;
  }

  .product-detail-close {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .product-technical-block {
    grid-template-columns: 1fr;
  }

  .product-modal-buy {
    min-width: 148px;
  }
}

@media (max-width: 991.98px) {
  .download-page .navbar-custom .nav-link.active::after,
  .store-page .navbar-custom .nav-link.active::after {
    display: none;
  }

  .release-grid,
  .store-hero-grid {
    grid-template-columns: 1fr;
  }

  .release-media {
    min-height: 300px;
  }

  .trial-cta-block {
    max-width: 520px;
  }

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

  .license-card:last-child {
    grid-column: 1 / -1;
    width: calc(50% - 8px);
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .download-page .navbar-custom .nav-link,
  .store-page .navbar-custom .nav-link {
    padding-inline: 0.65rem !important;
    letter-spacing: 1px;
  }

  .download-page .navbar-brand,
  .store-page .navbar-brand {
    margin-right: 0.6rem;
  }

  .download-page .navbar-custom .nav-link.active::after,
  .store-page .navbar-custom .nav-link.active::after {
    right: 0.65rem;
    left: 0.65rem;
  }
}

@media (max-width: 767.98px) {
  .public-hero,
  .store-page .public-hero {
    min-height: 0;
  }

  .public-hero-inner {
    width: min(100% - 32px, 1240px);
    padding-block: 44px 40px;
  }

  .public-section,
  .store-catalog {
    padding-block: 48px;
  }

  .product-tabs {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .product-tab-btn {
    min-width: 235px;
    flex: 0 0 235px;
    scroll-snap-align: start;
  }

  .release-features,
  .support-strip,
  .install-grid,
  .license-grid,
  .decision-strip {
    grid-template-columns: 1fr;
  }

  .release-media {
    min-height: 270px;
  }

  .support-strip-item + .support-strip-item,
  .decision-item + .decision-item {
    border-top: 1px solid var(--page-border-subtle);
    border-left: 0;
  }

  .version-history-card {
    grid-template-columns: 1fr auto;
    gap: 8px 14px;
    padding: 16px;
  }

  .history-copy {
    grid-column: 1 / -1;
  }

  .version-history-card .btn-download-secondary {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .license-card:last-child {
    grid-column: auto;
    width: auto;
  }

  .tool-card {
    grid-template-columns: 1fr;
  }

  .tool-card-media {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--page-border-subtle);
  }
}

@media (max-width: 430px) {
  .public-page-main {
    padding-top: 66px;
  }

  .page-title {
    font-size: 2.25rem;
  }

  .download-page .navbar-brand img,
  .store-page .navbar-brand img {
    width: 34px;
    height: 34px;
    margin-right: 8px !important;
  }

  .download-page .navbar-brand > div > .text-secondary,
  .store-page .navbar-brand > div > .text-secondary {
    display: none;
  }

  .download-page .navbar-brand > div > .fw-bold,
  .store-page .navbar-brand > div > .fw-bold {
    font-size: 1.05rem !important;
  }

  .download-page .navbar-custom,
  .store-page .navbar-custom {
    min-height: 66px;
  }

  .release-panel,
  .license-card,
  .tool-card-content {
    padding: 20px;
  }

  .release-actions,
  .release-actions > *,
  .license-card-actions {
    width: 100%;
  }

  .release-actions > *,
  .license-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .license-card-media {
    min-height: 190px;
  }

  .license-card-media img {
    width: 170px;
    height: 170px;
  }
}

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