/* Rust External product details. */
.detail-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.product-main { flex: 1; width: min(100%, 1120px); margin: 0 auto; padding: 112px 24px 64px; }
.product-breadcrumb { display: flex; flex-wrap: wrap; gap: 12px; color: var(--ink-mute); font-size: 12px; margin-bottom: 20px; }
.product-breadcrumb a:hover { color: var(--ink); }
.product-breadcrumb [aria-current] { color: var(--ink-dim); }
.product-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: start; }
.product-summary { padding-top: 8px; min-width: 0; }
.product-summary h1 { font-size: clamp(32px, 4vw, 46px); line-height: 1.15; font-weight: 600; letter-spacing: -.035em; }
.detail-description { margin-top: 10px; color: var(--ink-mute); font-size: 14px; line-height: 1.6; }
.detail-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 18px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 1px solid rgba(255,255,255,.08); }
.detail-facts > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; min-width: 0; }
.detail-facts dt { color: var(--ink-mute); font-size: 12px; }
.detail-facts dd { margin: 0; font-size: 12px; }
.product-back { display: inline-flex; gap: 9px; color: var(--ink-mute); font-size: 12px; margin-top: 36px; }
.product-back:hover { color: var(--ink); }
.detail-page footer { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .product-main { padding: 115px 20px 64px; }
  .product-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .product-summary { padding-top: 0; }
}

/* Licence duration cards. Savings compare each term to the 1-day licence. */
.licences { margin-top: 18px; }
.licence-heading { margin-bottom: 12px; }
.licence-heading h2 { font-size: 19px; font-weight: 500; letter-spacing: -.02em; }
.licence-heading p { color: var(--ink-mute); font-size: 11px; line-height: 1.5; margin-top: 4px; }
.licence-options { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; padding: 0; border: 0; min-width: 0; }
.licence-option { position: relative; display: block; min-width: 0; cursor: pointer; }
.licence-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.licence-card { display: flex; flex-direction: column; padding: 15px 16px; min-height: 128px; height: 100%; background: #10151d; border: 1px solid #ffffff16; border-radius: 12px; transition: background .18s,border-color .18s; }
.licence-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.licence-duration { color: #c5cfdd; font-size: 13px; font-weight: 500; }
.licence-radio { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #ffffff3d; flex: none; }
.licence-price { display: block; font-size: 25px; line-height: 1.15; letter-spacing: -.04em; color: #eff3f9; font-weight: 500; margin-top: 12px; }
.licence-daily { color: #7d8da3; font-size: 10px; line-height: 1.5; margin-top: 4px; }
.licence-value { margin-top: 10px; color: #a9c8ef; font-size: 9px; }
.licence-standard { color: #65758d; }
.licence-best .licence-card { border-color: #97bbeb48; background: #131c29; }
.licence-option:hover .licence-card { border-color: #a7c7ee70; }
.licence-option input:checked + .licence-card { border-color: #afcef4; background: #172333; box-shadow: inset 0 0 0 1px #afcef422; }
.licence-option input:checked + .licence-card .licence-radio { border-color: #afcef4; background: #afcef4; box-shadow: inset 0 0 0 3px #172333; }
.licence-option input:focus-visible + .licence-card { outline: 2px solid #c3dcff; outline-offset: 4px; }
.licence-trial { grid-column: 1 / -1; scroll-margin-top: 110px; }
.licence-trial .licence-card { min-height: 94px; }
.licence-trial .licence-duration { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.licence-alpha { font: 8px var(--mono); letter-spacing: .08em; border: 1px solid #a7c7ee30; border-radius: 4px; color: #a7c7ee; padding: 4px 6px; }
.licence-trial-bottom { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 20px; }
.licence-trial .licence-price { font-size: 23px; margin-top: 10px; }
.licence-selection { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0 10px; color: #8c9bb1; font-size: 11px; }
.licence-selection strong { font-size: 13px; color: #c5d5e9; font-weight: 500; }
.licence-unavailable { display: flex; justify-content: center; width: 100%; padding: 11px; opacity: .45; cursor: not-allowed; }
.licence-unavailable:hover { box-shadow: none; }
#licence-action { display: flex; width: 100%; justify-content: center; padding: 11px; }
.licence-availability { margin-top: 8px; font-size: 10px; line-height: 1.7; color: #67768c; }
.licence-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 761px) and (max-width: 1000px) { .product-layout { gap: 28px; grid-template-columns: 1fr 1.1fr; } .licence-card { padding: 14px; } }
@media (max-width: 380px) { .licence-card { padding: 14px 13px; } .licence-price { font-size: 25px; } .licence-trial-bottom .licence-daily { font-size: 9px; } }

@media (max-width: 380px) { .detail-facts > div { flex-direction: column; align-items: flex-start; gap: 6px; } }

/* Up to four product images, selected from a compact thumbnail strip. */
.detail-gallery { min-width: 0; margin: 0; }
.detail-gallery-main { aspect-ratio: 4 / 3; border: 1px solid #ffffff17; border-radius: 18px; overflow: hidden; background: #0b0f15; }
.detail-gallery-main > img { display: block; width: 100%; height: 100%; object-fit: contain; }
.detail-gallery-thumbs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; margin-top: 12px; }
.detail-gallery-thumb { position: relative; display: block; padding: 0; min-width: 0; aspect-ratio: 4 / 3; border: 1px solid #ffffff17; border-radius: 9px; overflow: hidden; background: #0b0f15; opacity: .58; transition: opacity .18s,border-color .18s; }
.detail-gallery-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.detail-gallery-thumb > span { position: absolute; right: 7px; bottom: 6px; color: #a2b7d3; font: 8px var(--mono); background: #0a0e15c9; padding: 3px 4px; border-radius: 3px; }
.detail-gallery-thumb.is-selected { border-color: #afcef4; opacity: 1; }
.detail-gallery-thumb:hover { opacity: 1; border-color: #afcef485; }
.detail-gallery-thumb:focus-visible { outline: 2px solid #c3dcff; outline-offset: 3px; }
.detail-gallery-caption { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; color: #65768d; font-size: 10px; }
.detail-gallery-caption > span:last-child { font: 9px var(--mono); }
@media (max-width: 760px) { .detail-gallery-main { aspect-ratio: 16 / 10; } }
@media (max-width: 420px) { .detail-gallery-thumbs { gap: 7px; } .detail-gallery-thumb { border-radius: 6px; } }

/* Feature-list placeholder below the gallery. */
.product-media { min-width: 0; }
.product-feature-list { margin-top: 24px; padding: 22px; border: 1px solid #ffffff14; border-radius: 14px; background: #0f141ceb; }
.product-feature-list header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.product-feature-list h2 { font-size: 17px; font-weight: 500; letter-spacing: -.02em; }
.product-feature-list header > span { color: #94a9c4; background: #a7c7ee08; border: 1px solid #a7c7ee20; padding: 5px 8px; border-radius: 5px; font-size: 9px; }
.product-feature-list p { font-size: 12px; line-height: 1.7; color: var(--ink-mute); margin-top: 14px; }

.licence-remaining { display: block; margin-top: 10px; color: #8eabc9; font-size: 10px; line-height: 1.5; }
.licence-remaining strong { color: #c6defb; font-weight: 500; }

/* Mobile product reading order: gallery, pricing, feature list. */
@media (max-width: 760px) {
  .product-layout > .product-media { display: contents; }
  .product-layout .detail-gallery { order: 0; }
  .product-layout > .product-summary { order: 1; }
  .product-layout .product-feature-list { order: 2; margin-top: 0; }
}
