/* Application downloads: unboxed layout with a compact download action. */
.premium-apps { scroll-margin-top: 100px; }
.premium-apps [hidden] { display: none !important; }
.premium-section.premium-apps { padding-block: 24px; order: 1; }
.premium-apps-card {
    display: grid;
    grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
    align-items: center;
    gap: clamp(40px,7vw,100px);
    padding: 54px 28px;
    border-block: 1px solid #242323;
    border-radius: 0;
    background: none;
}
.premium-apps-copy { min-width: 0; }
.premium-apps-copy .premium-kicker { margin: 0 0 22px; color: #c6a787; font-size: 10px; font-weight: 600; letter-spacing: .18em; }
.premium-apps-copy h2 { margin: 0; color: #f4f0e9; font-size: clamp(34px,3.6vw,52px); font-weight: 500; line-height: 1.1; letter-spacing: -.05em; }
.premium-apps-copy h2 span { color: #b8b1a9; }
.premium-apps-lead { max-width: 330px; margin: 16px 0 0; color: #9e9b98; font-size: 15px; line-height: 1.65; }
.premium-apps-main { min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.premium-apps-tabs { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; max-width: 480px; }
.premium-apps-tab {
    position: relative; display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 7px;
    min-width: 0; min-height: 44px; padding: 8px 0 12px;
    color: #9a9793; background: none; border: 0; border-radius: 0; font: inherit; font-size: 13px; font-weight: 500;
    cursor: pointer; transition: color .18s ease; -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.premium-apps-tab::after { content: ''; position: absolute; height: 2px; bottom: -1px; left: 0; right: 0; background: #d3c5b4; opacity: 0; transition: opacity .18s ease; }
.premium-apps-tab:hover { color: #f3eee7; }
.premium-apps-tab.is-active { color: #eee7de; }
.premium-apps-tab.is-active::after { opacity: 1; }
.premium-apps-tab svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.premium-apps-tab > span { position: relative; }
.premium-apps-tab small { position: absolute; top: -9px; left: 23px; font-size: 8px; line-height: 1.2; color: #aaa19a; font-weight: 400; }
.premium-apps-panel { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.premium-apps-panel + .premium-apps-panel { border-top: 1px solid #302d2b; padding-top: 24px; }
.premium-apps.is-enhanced .premium-apps-panel:not(.is-active) { display: none; }
.premium-apps.is-enhanced .premium-apps-panel + .premium-apps-panel { padding-top: 0; border: 0; }
.premium-apps-panel-head h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; color: #f4f0e9; }
/* Selected platform is already announced by the accessible tab and download link. */
.premium-apps.is-enhanced .premium-apps-panel-head h3 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.premium-apps-panel-head p { margin: 0; color: #aaa5a0; font-size: 12px; line-height: 1.6; }
.premium-apps-detected { font-size: 10px; font-weight: 400; font-style: normal; color: #c6a787; }
.premium-apps-download { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.premium-apps .premium-apps-button {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: auto; min-width: 260px; min-height: 52px; padding: 14px 24px;
    border: 1px solid #e9e2d8; border-radius: 8px; box-shadow: none; background: #e9e2d8; color: #24211d;
    font: inherit; font-size: 15px; line-height: 1.4; font-weight: 600; text-decoration: none;
    transition: background-color .18s ease,border-color .18s ease;
}
.premium-apps .premium-apps-button:hover { background: #fff8ef; border-color: #fff8ef; transform: none; box-shadow: none; }
.premium-apps-download-icon { width: 19px; height: 19px; flex-shrink: 0; }
.premium-apps-meta { margin: 0; color: #938e89; font-size: 11px; line-height: 1.5; text-align: left; }
.premium-apps-help { margin-top: 2px; }
.premium-apps-help summary { display: flex; align-items: center; justify-content: flex-start; gap: 8px; min-height: 30px; color: #b5aca2; font-size: 12px; list-style: none; cursor: pointer; }
.premium-apps-help summary::-webkit-details-marker { display: none; }
.premium-apps-help summary:hover { color: #eee7de; }
.premium-apps-help summary svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s ease; }
.premium-apps-help[open] summary svg { transform: rotate(180deg); }
.premium-apps-hint { margin: 0; color: #aaa5a0; font-size: 12px; line-height: 1.7; }
.premium-apps-help .premium-apps-hint { margin-top: 16px; }
.premium-apps-hint code { font-family: ui-monospace,SFMono-Regular,monospace; font-size: 11px; overflow-wrap: anywhere; color: #d3ccc4; }
.premium-apps-sums { margin: 12px 0 0; font-size: 11px; }
.premium-apps-sums a { color: #b5aca2; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #514b45; }
.premium-apps .premium-apps-button--two { width: min(100%,360px); justify-content: space-between; gap: 18px; }
.premium-apps-button--two strong { font-size: 13px; font-weight: 600; }
.premium-apps-button--two span { font-size: 11px; font-weight: 400; text-align: right; }
.premium-apps .premium-apps-button.premium-button-outline,
.premium-apps .premium-apps-button.btn-ghost { color: #e4d3bd; background: transparent; border-color: #4e4338; }
.premium-apps .premium-apps-button.premium-button-outline:hover,
.premium-apps .premium-apps-button.btn-ghost:hover { border-color: #a58b6e; background: #1c1916; }
.premium-apps .premium-apps-button--disabled,
.premium-apps .premium-apps-button--disabled:hover { color: #aaa5a0; background: #1b1a19; border-color: #35312c; cursor: not-allowed; }
.premium-apps :is(a,button,summary):focus-visible { outline: 2px solid #ead0b2; outline-offset: 5px; }
.premium-apps--account .premium-apps-card { padding: 0; background: none; border: 0; border-radius: 0; gap: 32px; }
.premium-apps--account .premium-apps-copy h2 { font-size: 30px; }
.premium-apps--account .premium-apps-lead { font-size: 14px; }
.account-app-hint { margin: 0; color: rgba(216,219,226,.68); font-size: .86rem; line-height: 1.5; }
.account-app-hint a { color: #ffe2a2; text-decoration: underline; text-underline-offset: 3px; }
.account-other { display: grid; gap: 18px; margin-top: 12px; }
.account-other-head { margin: 0; }
@media(max-width:1000px) {
    .premium-apps-card { padding: 42px 20px; gap: 40px; }
    .premium-apps-copy h2 { font-size: 40px; }
    .premium-apps-tabs { gap: 10px; }
}
@media(max-width:760px) {
    .premium-apps-card { grid-template-columns: minmax(0,1fr); gap: 28px; padding: 34px 16px; }
    .premium-apps-copy h2 { font-size: 40px; }
    .premium-apps-lead { margin-top: 16px; max-width: none; font-size: 14px; }
    .premium-apps-copy .premium-kicker { margin-bottom: 18px; }
    .premium-apps-main { gap: 22px; }
    .premium-apps-tab { min-height: 46px; }
    .premium-apps-panel { gap: 16px; }
}
@media(max-width:480px) {
    .premium-section.premium-apps { padding-block: 8px; }
    .premium-apps-card { border-radius: 0; padding: 30px 8px; gap: 24px; }
    .premium-apps-copy h2 { font-size: 36px; }
    .premium-apps-copy .premium-kicker { font-size: 9px; }
    .premium-apps-lead { max-width: 260px; font-size: 13px; }
    .premium-apps-tabs { gap: 10px; }
    .premium-apps-tab { font-size: 11px; min-height: 44px; padding-bottom: 12px; gap: 5px; }
    .premium-apps-tab small { font-size: 7px; left: 18px; top: -8px; }
    .premium-apps-panel-head p { font-size: 11px; }
    .premium-apps .premium-apps-button { font-size: 14px; padding: 14px 18px; width: 100%; min-width: 0; }
    .premium-apps-download { align-items: stretch; }
    .premium-apps-meta { text-align: center; }
    .premium-apps-help summary { justify-content: center; }
    .premium-apps-button--two strong { font-size: 12px; }
    .premium-apps-button--two span { font-size: 10px; }
}
@media(prefers-reduced-motion:reduce) { .premium-apps *, .premium-apps *::after { transition: none !important; } }

/* Decorative glass concept: isolated from text, controls and account layout. */
.premium-section.premium-apps .premium-apps-card { position: relative; isolation: isolate; min-height: 368px; }
.premium-apps-artwork { position: absolute; z-index: -1; width: 420px; height: 420px; left: calc(32% - 210px); top: 50%; transform: translateY(-50%); pointer-events: none; user-select: none; opacity: .62; }
.premium-apps-artwork img { display: block; width: 100%; height: 100%; object-fit: contain; mask-image: linear-gradient(to bottom,#000 65%,transparent 99%); -webkit-mask-image: linear-gradient(to bottom,#000 65%,transparent 99%); }
@media(min-width:761px) and (max-width:1100px) {
    .premium-apps-artwork { width: 340px; height: 340px; left: calc(33% - 170px); opacity: .45; }
    .premium-section.premium-apps .premium-apps-copy h2 { max-width: 220px; }
    .premium-section.premium-apps .premium-apps-lead { max-width: 180px; }
}
@media(max-width:760px) {
    .premium-section.premium-apps .premium-apps-card { min-height: 0; }
    .premium-section.premium-apps .premium-apps-copy { min-height: 124px; padding-top: 12px; }
    .premium-apps-artwork { width: 190px; height: 190px; left: auto; right: 0; top: 8px; transform: none; opacity: .58; }
    .premium-section.premium-apps .premium-apps-copy h2 { max-width: calc(100% - 140px); }
    .premium-section.premium-apps .premium-apps-lead { max-width: calc(100% - 145px); }
}
@media(max-width:480px) {
    .premium-apps-artwork { right: -30px; top: 10px; width: 180px; height: 180px; }
    .premium-section.premium-apps .premium-apps-copy h2 { max-width: calc(100% - 84px); font-size: 32px; }
    .premium-section.premium-apps .premium-apps-lead { max-width: calc(100% - 100px); }
}
