/* Public/Choose: the application hub on the workspace shell
   (css/workspace-auth.css supplies the tokens, header and footer). */

.choose-main {
    flex: 1;
    padding-top: 44px;
}

/* ---------- Hero ---------- */

.choose-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(360px, .8fr);
    gap: 44px;
    align-items: center;
    min-height: 245px;
}

    .choose-hero h1 {
        max-width: 730px;
        margin: 20px 0 18px;
        color: var(--wa-ink);
        font-size: clamp(38px, 4vw, 56px);
        font-weight: 700;
        line-height: 1.14;
        letter-spacing: -.035em;
    }

.choose-sub {
    max-width: 545px;
    margin: 0;
    color: var(--wa-muted);
    font-size: 16px;
    line-height: 1.75;
}

.choose-art {
    position: relative;
    display: grid;
    place-items: center;
    height: 245px;
    user-select: none;
}

.choose-art-glow {
    position: absolute;
    width: 335px;
    height: 240px;
    background: radial-gradient(ellipse, rgba(37, 99, 235, .12), transparent 70%);
    filter: blur(10px);
}

.choose-art-ring {
    position: absolute;
    border: 1px solid rgba(37, 99, 235, .15);
    border-radius: 50%;
}

    .choose-art-ring.one { width: 385px; height: 164px; transform: rotate(-20deg); }
    .choose-art-ring.two { width: 320px; height: 215px; transform: rotate(24deg); }

.choose-art-card {
    position: relative;
    width: 210px;
    height: 170px;
    padding: 18px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .88), rgba(239, 246, 255, .6));
    border: 1px solid rgba(255, 255, 255, .85);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(30, 64, 175, .1), inset 0 1px rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    transform: rotate(-8deg);
}

[data-bs-theme="dark"] .choose-art-card {
    background: linear-gradient(145deg, rgba(38, 52, 73, .92), rgba(30, 41, 59, .78));
    border-color: var(--wa-hairline);
    box-shadow: 0 22px 60px rgba(0, 0, 0, .25);
}

.choose-art-head {
    display: flex;
    align-items: center;
    gap: 4px;
}

    .choose-art-head i {
        width: 6px;
        height: 6px;
        border-radius: 50%;
    }

        .choose-art-head i:nth-child(1) { background: var(--wa-mark-blue); }
        .choose-art-head i:nth-child(2) { background: var(--wa-mark-violet); }
        .choose-art-head i:nth-child(3) { background: var(--wa-mark-green); }

    .choose-art-head span {
        margin-left: auto;
        color: var(--wa-muted);
        font-size: 8px;
        font-weight: 700;
        letter-spacing: .11em;
    }

.choose-art-figure {
    position: relative;
    display: grid;
    place-items: center;
    height: 105px;
}

.choose-art-core {
    display: grid;
    place-items: center;
    width: 67px;
    height: 67px;
    background: linear-gradient(140deg, #eff6ff, #ffffff);
    border: 1px solid #dbeafe;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(37, 99, 235, .1);
}

[data-bs-theme="dark"] .choose-art-core {
    background: var(--wa-surface-subtle);
    border-color: var(--wa-hairline);
}

    .choose-art-core img {
        width: 39px;
        height: 39px;
    }

.choose-art-node {
    position: absolute;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .8);
}

[data-bs-theme="dark"] .choose-art-node {
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .08);
}

    .choose-art-node.one { top: 20px; left: 23px; background: var(--wa-mark-blue); }
    .choose-art-node.two { right: 20px; bottom: 21px; background: var(--wa-mark-pink); }

.choose-art .wa-float-chip.hr { left: 25px; top: 47px; rotate: -7deg; }
.choose-art .wa-float-chip.qa { right: 12px; top: 43px; rotate: 7deg; }
.choose-art .wa-float-chip.lms { right: 24px; bottom: 25px; rotate: -5deg; }

.choose-sparkle {
    position: absolute;
    color: #a5b4fc;
    font-size: 19px;
}

    .choose-sparkle.one { top: 37px; left: 90px; }
    .choose-sparkle.two { right: 61px; bottom: 70px; }

/* ---------- Section heading ---------- */

.choose-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin: 16px 0 18px;
}

    .choose-section-head h2 {
        margin: 0 0 5px;
        color: var(--wa-ink);
        font-size: 24px;
        font-weight: 700;
        letter-spacing: -.02em;
        line-height: 1.3;
    }

    .choose-section-head p {
        margin: 0;
        color: var(--wa-muted);
        font-size: 14px;
    }

.choose-availability {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 2px;
    color: var(--wa-muted);
    font-size: 13px;
    font-weight: 600;
}

    .choose-availability b {
        color: var(--wa-muted-strong);
    }

.choose-available-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wa-success);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, .14);
}

/* ---------- App cards ---------- */

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

.choose-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 350px;
    padding: 25px;
    overflow: hidden;
    background: var(--wa-surface);
    border: 1px solid var(--wa-hairline);
    border-radius: 20px;
    box-shadow: var(--wa-shadow);
    transition: transform .3s cubic-bezier(.2, .8, .2, 1), box-shadow .3s, border-color .3s;
}

@media (hover: hover) {
    .choose-card:hover {
        transform: translateY(-5px);
        border-color: rgba(37, 99, 235, .3);
        box-shadow: var(--wa-shadow-hover);
    }
}

.choose-card.is-primary {
    color: #fff;
    background: var(--wa-gradient-fill);
    border-color: rgba(255, 255, 255, .08);
    box-shadow: 0 20px 50px rgba(37, 99, 235, .22);
}

@media (hover: hover) {
    .choose-card.is-primary:hover {
        box-shadow: 0 28px 55px rgba(37, 99, 235, .3);
    }
}

.choose-card-aurora {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

    .choose-card-aurora::before {
        content: "";
        position: absolute;
        top: -175px;
        right: -112px;
        width: 300px;
        height: 300px;
        border: 1px solid rgba(255, 255, 255, .2);
        border-radius: 50%;
        box-shadow: 0 0 0 35px rgba(255, 255, 255, .045), 0 0 0 70px rgba(255, 255, 255, .035), 0 0 0 105px rgba(255, 255, 255, .025);
    }

    .choose-card-aurora::after {
        content: "";
        position: absolute;
        bottom: -150px;
        left: -60px;
        width: 220px;
        height: 210px;
        background: radial-gradient(circle, rgba(196, 181, 253, .32), transparent 65%);
    }

.choose-card-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}

.choose-app-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 54px;
    height: 54px;
    border-radius: 16px;
}

    .choose-app-icon svg {
        width: 26px;
        height: 26px;
    }

.is-primary .choose-app-icon {
    color: #fff;
    background: rgba(255, 255, 255, .19);
    border: 1px solid rgba(255, 255, 255, .19);
}

.is-qa .choose-app-icon {
    color: #7c3aed;
    background: #f5f3ff;
}

.is-lms .choose-app-icon {
    color: #db2777;
    background: #fdf2f8;
}

[data-bs-theme="dark"] .is-qa .choose-app-icon {
    color: #c4b5fd;
    background: rgba(139, 92, 246, .18);
}

[data-bs-theme="dark"] .is-lms .choose-app-icon {
    color: #f9a8d4;
    background: rgba(236, 72, 153, .16);
}

.choose-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    color: var(--wa-muted);
    background: var(--wa-surface-alt);
    border: 1px solid var(--wa-hairline);
    border-radius: 99px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

    .choose-status svg {
        width: 12px;
        height: 12px;
    }

.is-primary .choose-status {
    color: #fff;
    background: rgba(255, 255, 255, .13);
    border-color: rgba(255, 255, 255, .27);
}

.choose-status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #86efac;
}

.choose-card-body {
    position: relative;
    z-index: 1;
    flex: 1;
}

.choose-app-short {
    margin: 25px 0 6px;
    color: var(--wa-muted);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.is-primary .choose-app-short {
    color: #dbeafe;
}

.choose-card-body h3 {
    margin: 0 0 10px;
    color: inherit;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.25;
}

.choose-description {
    max-width: 310px;
    min-height: 44px;
    margin: 0 0 18px;
    color: var(--wa-muted);
    font-size: 14px;
    line-height: 1.7;
}

.is-primary .choose-description {
    color: #e0e7ff;
}

.choose-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 21px;
}

    .choose-pills span {
        padding: 6px 9px;
        color: var(--wa-muted-strong);
        background: var(--wa-surface-alt);
        border: 1px solid var(--wa-hairline);
        border-radius: 8px;
        font-size: 11px;
        font-weight: 600;
    }

.is-primary .choose-pills span {
    color: #fff;
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .16);
}

.choose-action {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    height: 46px;
    margin-top: auto;
    border: 0;
    border-radius: 11px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: transform .2s, background-color .2s;
}

    .choose-action svg {
        width: 17px;
        height: 17px;
        transition: transform .2s;
    }

a.choose-action {
    color: var(--wa-brand);
    background: #fff;
    box-shadow: 0 7px 15px rgba(15, 23, 42, .14);
}

    a.choose-action:hover {
        color: var(--wa-brand-hover);
    }

        a.choose-action:hover svg {
            transform: translateX(3px);
        }

    a.choose-action:focus-visible {
        outline-color: #fff;
    }

.choose-action:disabled {
    color: var(--wa-muted);
    background: var(--wa-surface-alt);
    border: 1px solid var(--wa-hairline);
    cursor: not-allowed;
}

    .choose-action:disabled svg {
        opacity: .75;
    }

.choose-learn {
    display: inline-flex;
    align-items: center;
    align-self: center;
    gap: 5px;
    margin-top: 11px;
    padding: 4px 0 0;
    color: var(--wa-muted);
    background: none;
    border: 0;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

    .choose-learn:hover {
        color: var(--wa-brand-text);
    }

    .choose-learn svg {
        width: 13px;
        height: 13px;
    }

/* ---------- Benefits ---------- */

.choose-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
    margin-top: 36px;
    padding: 23px 29px;
    background: var(--wa-frost);
    border: 1px solid var(--wa-hairline);
    border-radius: 18px;
}

.choose-benefit {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.choose-benefit-icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 36px;
    height: 36px;
    color: var(--wa-brand-text);
    background: var(--wa-brand-subtle);
    border: 1px solid var(--wa-hairline);
    border-radius: 11px;
}

    .choose-benefit-icon svg {
        width: 18px;
        height: 18px;
    }

.choose-benefit h4 {
    margin: 0 0 3px;
    color: var(--wa-ink);
    font-size: 13px;
    font-weight: 700;
}

.choose-benefit p {
    margin: 0;
    color: var(--wa-muted);
    font-size: 12px;
    line-height: 1.5;
}

/* ---------- "Explore the vision" dialog ---------- */

.choose-dialog {
    width: min(100% - 40px, 430px);
    padding: 32px;
    color: var(--wa-ink);
    background: var(--wa-surface);
    border: 1px solid var(--wa-hairline);
    border-radius: 22px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, .2);
}

    .choose-dialog::backdrop {
        background: rgba(15, 23, 42, .55);
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
    }

    .choose-dialog h3 {
        margin: 0 0 9px;
        font-size: 23px;
        font-weight: 700;
        letter-spacing: -.02em;
    }

    .choose-dialog p {
        margin: 0 0 18px;
        color: var(--wa-muted);
        font-size: 14px;
        line-height: 1.7;
    }

    .choose-dialog .wa-eyebrow {
        margin-bottom: 10px;
    }

.choose-dialog-close {
    position: absolute;
    top: 18px;
    right: 20px;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    padding: 0;
    color: var(--wa-muted);
    background: var(--wa-surface-alt);
    border: 1px solid var(--wa-hairline);
    border-radius: 50%;
    cursor: pointer;
}

    .choose-dialog-close svg {
        width: 16px;
        height: 16px;
    }

.choose-dialog .choose-app-icon {
    margin-bottom: 18px;
}

.choose-dialog-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 23px;
}

    .choose-dialog-features span {
        padding: 7px 9px;
        color: var(--wa-muted-strong);
        background: var(--wa-surface-alt);
        border: 1px solid var(--wa-hairline);
        border-radius: 8px;
        font-size: 12px;
        font-weight: 600;
    }

.choose-dialog-ok {
    width: 100%;
    height: 44px;
    color: #fff;
    background: var(--wa-brand);
    border: 0;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

/* Tablets: three narrow cards, sized to their content so a portrait
   tablet (768x1024) still shows the whole hub on one screen. */
@media (max-width: 1000px) {
    .choose-main { padding-top: 24px; }
    .choose-hero { grid-template-columns: 1fr 260px; gap: 5px; min-height: 0; }
    .choose-art { height: 190px; transform: scale(.76); }
    .choose-apps { gap: 13px; }
    .choose-card { padding: 20px 18px; min-height: 0; }
    .choose-card-body h3 { font-size: 21px; }
    .choose-app-short { margin-top: 16px; }
    .choose-pills { gap: 5px; margin-bottom: 16px; }
    .choose-benefits { gap: 15px; margin-top: 20px; padding: 16px 18px; }
    .choose-main > .wa-footer { padding: 16px 0; }
}

@media (max-width: 740px) {
    .choose-main { padding-top: 32px; }
    .choose-hero { display: block; min-height: 0; }
    .choose-art { display: none; }
    .choose-hero h1 { font-size: clamp(34px, 7vw, 48px); margin: 16px 0; }
    .choose-sub { font-size: 15px; }
    .choose-section-head { margin: 40px 0 20px; }
    .choose-apps { grid-template-columns: 1fr; gap: 16px; }
    .choose-card { min-height: 330px; padding: 24px; }
    .choose-description { min-height: 0; }
    .choose-benefits { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
}

@media (max-width: 420px) {
    .choose-section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
    .choose-card { padding: 21px; }
}

/* Laptop-height desktops (1366x768, 1280x720, 1440x900 with browser
   chrome): the whole hub fits on one screen without scrolling. */
@media (min-width: 741px) and (max-height: 900px) {
    .choose-main { padding-top: clamp(12px, 2.2vh, 26px); }
    .choose-hero { min-height: 0; grid-template-columns: minmax(0, 1.3fr) minmax(300px, .7fr); }
    .choose-hero h1 { margin: 8px 0 8px; font-size: clamp(30px, 5vh, 46px); }
    .choose-sub { max-width: 620px; font-size: 14.5px; line-height: 1.6; }
    .choose-art { height: 160px; transform: scale(.68); }
    .choose-section-head { margin: 6px 0 10px; }
    .choose-section-head h2 { font-size: 22px; }
    .choose-card { min-height: 0; padding: 18px 20px; }
    .choose-app-icon { width: 42px; height: 42px; border-radius: 13px; }
    .choose-app-icon svg { width: 22px; height: 22px; }
    .choose-status { padding: 6px 9px; }
    .choose-app-short { margin-top: 12px; }
    .choose-card-body h3 { font-size: 22px; margin-bottom: 6px; }
    .choose-description { min-height: 0; margin-bottom: 10px; font-size: 13.5px; line-height: 1.6; }
    .choose-pills { margin-bottom: 12px; }
    .choose-action { height: 42px; }
    .choose-learn { margin-top: 4px; }
    .choose-benefits { margin-top: 12px; padding: 12px 22px; }
    .choose-benefit-icon { width: 32px; height: 32px; }
    .choose-main > .wa-footer { padding: 10px 0; }
}

@media (min-width: 741px) and (max-height: 800px) {
    .choose-benefit p { display: none; }
}

@media (min-width: 741px) and (max-height: 740px) {
    .choose-art { height: 130px; transform: scale(.56); }
    .choose-sub { font-size: 14px; }
    .choose-section-head h2 { font-size: 20px; }
    .choose-card { padding: 16px 18px; }
    .choose-app-short { margin-top: 8px; }
    .choose-description { margin-bottom: 8px; }
    .choose-pills { margin-bottom: 10px; }
    .choose-pills span { padding: 5px 8px; }
    .choose-benefits { margin-top: 10px; padding: 9px 20px; }
    .choose-main > .wa-footer { padding: 8px 0; }
}

/* Large screens: room to breathe, centred in the height available. */
@media (min-width: 1001px) and (min-height: 1000px) {
    .choose-main { display: flex; flex-direction: column; }
    .choose-main > .wa-footer { margin-top: auto; }
}
