/**
 * BSMC app download fork (inc/app-fork.php).
 *
 * A centred dialog on wide screens, a bottom sheet on phones. Black on
 * black with the gold accent, like the rest of the marketing pages.
 */

.bsmc-fork {
    position: fixed;
    inset: 0;
    z-index: 100001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    font-family: "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #EDEADF;
}
.bsmc-fork[hidden] { display: none; }

.bsmc-fork__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
}

.bsmc-fork__dialog {
    position: relative;
    width: 100%;
    max-width: 760px;
    max-height: calc(100vh - 48px);
    overflow: auto;
    background: #141414;
    border: 1px solid rgba(200, 169, 110, 0.4);
    border-radius: 12px;
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.bsmc-fork__dialog:focus { outline: none; }

.bsmc-fork__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}
.bsmc-fork__kicker {
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #C8A96E;
}
.bsmc-fork__title {
    margin: 0 0 8px;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-weight: 400;
    font-size: 44px;
    line-height: 1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #EDEADF;
}
.bsmc-fork__body {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(237, 234, 223, 0.8);
    max-width: 560px;
}
.bsmc-fork__close {
    flex: none;
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 44px !important;
    height: 44px !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid rgba(237, 234, 223, 0.3) !important;
    border-radius: 50% !important;
    background: transparent !important;
    color: #EDEADF !important;
    line-height: 1;
    box-shadow: none !important;
    cursor: pointer;
}
.bsmc-fork__close svg { display: block; width: 16px; height: 16px; }
.bsmc-fork__close:hover { border-color: #C8A96E; color: #C8A96E; }

.bsmc-fork__plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.bsmc-fork__plan {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 22px;
    border: 1px solid rgba(237, 234, 223, 0.18);
    border-radius: 10px;
    background: #0E0E0E;
    color: #EDEADF;
    text-decoration: none !important;
}
.bsmc-fork__plan:hover { border-color: #C8A96E; color: #EDEADF; }
.bsmc-fork__plan--featured { border-color: #C8A96E; }
.bsmc-fork__plan-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(237, 234, 223, 0.6);
}
.bsmc-fork__plan-price {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: 40px;
    line-height: 1;
    letter-spacing: 0.02em;
}
.bsmc-fork__plan-price small {
    font-family: inherit;
    font-family: "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    color: rgba(237, 234, 223, 0.7);
}
.bsmc-fork__plan-terms {
    font-size: 14px;
    line-height: 1.4;
    color: rgba(237, 234, 223, 0.75);
}
.bsmc-fork__plan-button {
    margin-top: 8px;
    display: block;
    text-align: center;
    padding: 14px 18px;
    background: #C8A96E;
    color: #0E0E0E;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    border-radius: 6px;
}
.bsmc-fork__plan:hover .bsmc-fork__plan-button { background: #DFC08A; }

.bsmc-fork__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(237, 234, 223, 0.12);
}
.bsmc-fork__foot-text {
    margin: 0;
    font-size: 15px;
    color: rgba(237, 234, 223, 0.85);
}
.bsmc-fork__foot-text strong { color: #EDEADF; }
.bsmc-fork__signin {
    color: #C8A96E !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
    font-weight: 700;
}
.bsmc-fork__signin:hover { color: #DFC08A !important; }

/* The same cards at the top of the free Preview register page. */
.bsmc-fork-inline {
    margin: 0 0 32px;
    padding: 28px 28px 24px;
    background: #141414;
    border: 1px solid rgba(200, 169, 110, 0.4);
    border-radius: 12px;
    color: #EDEADF;
    font-family: "Proxima Nova", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.bsmc-fork-inline .bsmc-fork__kicker,
.bsmc-fork-inline .bsmc-fork__title,
.bsmc-fork-inline .bsmc-fork__body { margin-bottom: 0; }
.bsmc-fork-inline .bsmc-fork__title { font-size: 40px; }
.bsmc-fork-inline__or {
    margin: 4px 0 0;
    font-size: 15px;
    color: rgba(237, 234, 223, 0.8);
}
.bsmc-fork-inline__or a {
    color: #C8A96E !important;
    text-decoration: underline !important;
    text-underline-offset: 3px;
}

@media (max-width: 720px) {
    .bsmc-fork-inline { padding: 20px 18px; }
    .bsmc-fork-inline .bsmc-fork__title { font-size: 34px; }
    /* Inside the register page's narrower column the button goes under the text, not beside it. */
    .bsmc-fork-inline .bsmc-fork__plan {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "label" "price" "terms" "button";
        row-gap: 6px;
    }
    .bsmc-fork-inline .bsmc-fork__plan-button { margin-top: 6px; }
    .bsmc-fork__plan-price small { white-space: nowrap; }
    .bsmc-fork { padding: 0; align-items: flex-end; }
    .bsmc-fork__dialog {
        max-width: none;
        max-height: 92vh;
        border-radius: 16px 16px 0 0;
        border-width: 1px 0 0;
        padding: 20px 20px 28px;
        gap: 18px;
    }
    .bsmc-fork__title { font-size: 36px; }
    .bsmc-fork__body { font-size: 14px; }
    .bsmc-fork__plans { grid-template-columns: 1fr; gap: 12px; }
    .bsmc-fork__plan {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas: "label button" "price button" "terms button";
        align-items: center;
        column-gap: 12px;
        row-gap: 2px;
        padding: 16px 18px;
    }
    .bsmc-fork__plan-label { grid-area: label; }
    .bsmc-fork__plan-price { grid-area: price; font-size: 28px; }
    .bsmc-fork__plan-terms { grid-area: terms; font-size: 12px; }
    .bsmc-fork__plan-button { grid-area: button; margin: 0; padding: 10px 14px; font-size: 12px; white-space: nowrap; }
    .bsmc-fork__foot { padding-top: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
    .bsmc-fork__dialog { animation: bsmc-fork-in 160ms ease-out; }
    @keyframes bsmc-fork-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
