/* Platform choices above the existing Kwib individual download cards. */
.download-page .download-screen { display: block; height: auto; min-height: 0; padding-block: 24px 64px; }
.download-page .download-intro { padding-top: 24px; margin-bottom: 40px; }
.download-page .platform-picker { margin-bottom: 64px; }
.suite-overview { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; margin-bottom: 20px; color: var(--lime); }
.suite-overview h2 { margin: 0; font: 800 14px/1.4 var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.suite-overview .bundle-includes { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 0; font: 800 14px/1.4 var(--sans); }
.suite-overview .bundle-includes img { width: 19px; height: 19px; }
.platform-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.platform-card { position: relative; min-width: 0; padding: 48px 18px 20px; display: flex; flex-direction: column; color: var(--lime); border-right: 1px solid var(--line); }
.platform-card:last-child { border-right: 0; }
.platform-card.is-active { color: var(--ink); background: var(--lime); }
.device-badge { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); padding: 5px 9px; border-radius: 20px; color: var(--lime); background: var(--ink); font: 800 10px/1 var(--mono); text-transform: uppercase; white-space: nowrap; }
.device-badge[hidden] { display: none; }
.platform-heading { width: 100%; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 24px; border: 0; color: inherit; background: transparent; text-align: center; }
button.platform-heading { cursor: pointer; }
.platform-heading img, .platform-heading > svg { display: block; width: 44px; height: 44px; flex: none; object-fit: contain; }
.platform-heading img { filter: brightness(0) saturate(100%) invert(91%) sepia(25%) saturate(1204%) hue-rotate(35deg) brightness(95%) contrast(90%); }
.platform-card[data-platform="chrome"] .platform-heading img { filter: none; }
.platform-card.is-active .platform-heading img { filter: brightness(0) saturate(100%) invert(14%) sepia(22%) saturate(1055%) hue-rotate(96deg) brightness(88%) contrast(96%); }
.platform-heading > svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
.platform-heading strong, .platform-heading h3 { display: block; margin: 0; color: inherit; font-family: var(--display); font-size: 28px; font-weight: 900; line-height: 1; letter-spacing: -.035em; text-transform: uppercase; }
.platform-heading small { display: block; margin-top: 8px; font: 400 12px/1.5 var(--mono); }
.platform-chips { margin-top: 26px; }
.platform-chips > p { margin: 0 0 8px; text-align: center; font: 400 12px/1.5 var(--mono); }
.platform-card .arch-switch { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; padding: 3px; border: 1px solid currentColor; border-radius: 9px; }
.platform-card .arch-switch button { min-width: 0; min-height: 44px; padding: 8px 3px; border: 0; border-radius: 6px; color: inherit; font: 800 12px/1.2 var(--mono); }
.platform-card .arch-switch button.is-active { color: var(--ink); background: var(--lime); }
.platform-card.is-active .arch-switch button.is-active { color: var(--lime); background: var(--ink); }
.platform-card :focus-visible { outline-color: currentColor; outline-offset: 3px; }
.platform-variant { display: flex; flex: 1; flex-direction: column; min-height: 178px; }
.platform-variant[hidden] { display: none; }
.chip-help { margin: 12px 0 0; text-align: center; font: 400 12px/1.45 var(--sans); }
.platform-card .suite-note { margin: 12px 0 16px; color: inherit; text-align: center; font: 400 12px/1.45 var(--sans); }
.platform-download { display: flex; flex-direction: column; justify-content: center; gap: 7px; width: 100%; min-height: 65px; margin-top: auto; padding: 12px 8px; border: 1px solid currentColor; border-radius: 9px; color: inherit; text-align: center; }
.platform-download:hover { background: rgba(177,231,110,.08); }
.platform-download-label { display: flex; align-items: center; justify-content: center; gap: 9px; font: 800 12px/1.3 var(--mono); text-transform: uppercase; }
.platform-download-label svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: square; stroke-linejoin: miter; }
.platform-download small { font: 400 11px/1.3 var(--mono); }
.platform-card.is-active .platform-download { color: var(--lime); background: var(--ink); border-color: var(--ink); }
.platform-card.is-active .platform-download:hover { color: var(--ink); background: transparent; }
.platform-description { margin: 26px 0 20px; text-align: center; font: 400 14px/1.5 var(--sans); }
.platform-extra-action { margin-top: auto; }
.platform-unavailable { display: flex; align-items: center; justify-content: center; min-height: 65px; border: 1px solid var(--line); border-radius: 9px; color: var(--lime); font: 800 12px/1.4 var(--mono); text-transform: uppercase; }
.individual-heading { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.individual-heading h2 { margin: 0; font: 850 clamp(32px, 3.5vw, 48px)/.95 var(--sans); letter-spacing: -.055em; text-transform: uppercase; }
.individual-heading p { margin: 0; color: var(--lime); font: 800 14px/1.4 var(--mono); }
.download-page .package-group { display: block; padding: 0; }
.download-page .package-group[hidden] { display: none; }
.download-page .package-list { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); grid-template-rows: none; grid-auto-rows: 1fr; gap: 16px; }
.download-page .package-item { min-height: 220px; padding: 20px; display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.download-page .package-item > span:nth-child(2) { flex: 1; }
.download-page .package-item small { display: block; overflow: visible; white-space: normal; text-overflow: clip; font-size: 14px; line-height: 1.5; }
.download-page .package-row-action { margin-top: auto; width: 100%; justify-content: space-between; }
.download-page .package-icon-cta { min-height: 36px; gap: 6px; padding-inline: 10px; }
.download-page .package-icon-cta > span { max-width: none; opacity: 1; font: 800 10px/1.2 var(--mono); }
@media (max-width: 1100px) {
  .platform-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .platform-card { grid-column: span 2; }
  .platform-card:nth-child(3) { border-right: 0; }
  .platform-extra { grid-column: span 3; padding-top: 36px; border-top: 1px solid var(--line); }
  .platform-extra .platform-extra-action { width: min(100%, 320px); align-self: center; }
  .download-page .package-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .download-page .download-screen { padding-block: 8px 40px; }
  .download-page .download-intro { padding-top: 24px; margin-bottom: 28px; }
  .download-page .platform-picker { margin-bottom: 40px; }
  .suite-overview { gap: 10px; }
  .suite-overview h2 { width: 100%; }
  .suite-overview .bundle-includes { gap: 8px 14px; font-size: 12px; }
  .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-card { padding: 32px 18px 18px; grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .platform-card:nth-child(3) { border-bottom: 0; }
  .platform-card .platform-heading { flex-direction: row; gap: 16px; align-items: center; text-align: left; }
  .platform-heading img, .platform-heading > svg { width: 36px; height: 36px; }
  .platform-heading strong, .platform-heading h3 { font-size: 26px; }
  .platform-heading small { margin-top: 5px; }
  .device-badge { top: 10px; right: 18px; left: auto; transform: none; }
  .platform-chips { margin-top: 18px; }
  .platform-chips > p { text-align: left; }
  .platform-variant { min-height: 0; }
  .chip-help { margin-top: 10px; text-align: left; }
  .platform-card .suite-note { margin-top: 8px; text-align: left; }
  .platform-variant .platform-download { margin-top: 18px; }
  .platform-extra { grid-column: span 1; border-bottom: 0; }
  .platform-extra:nth-child(4) { border-right: 1px solid var(--line); }
  .platform-extra .platform-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .platform-description, .platform-card .suite-note { font-size: 12px; }
  .platform-description { text-align: left; margin: 18px 0; }
  .platform-extra .platform-download-label { gap: 4px; font-size: 10px; }
  .platform-extra .platform-download small { font-size: 10px; }
  .individual-heading { gap: 12px; }
  .individual-heading h2 { font-size: 32px; }
  .download-page .package-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .download-page .package-item { min-height: 190px; }
}
@media (max-width: 380px) {
  .platform-extra { grid-column: 1 / -1; }
  .platform-extra:nth-child(4) { border-right: 0; }
  .platform-extra .platform-heading { flex-direction: row; align-items: center; }
}
