:root {
    --bg: #f6f7f3;
    --surface: #ffffff;

    --ink: #101522;
    --soft: #69717d;
    --muted: #9299a4;

    --line:
        rgba(16, 21, 34, 0.09);

    --primary: #315cf4;

    --green: #27845f;
    --green-soft: #e9fbf3;

    --red: #b54848;
    --red-soft: #fff0f0;
}


* {
    box-sizing: border-box;
}


body {
    margin: 0;

    background: var(--bg);
    color: var(--ink);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    -webkit-font-smoothing:
        antialiased;
}


a {
    color: inherit;
    text-decoration: none;
}


button,
input {
    font: inherit;
}


/* =========================================================
   SHARED BRAND
   ========================================================= */

.portal-brand {
    display: inline-flex;
    align-items: center;

    gap: 10px;
}


.portal-brand > span {
    width: 35px;
    height: 35px;

    display: grid;
    place-items: center;

    border-radius: 10px;

    background: var(--ink);
    color: #fff;

    font-size: 13px;
    font-weight: 800;
}


.portal-brand > div {
    display: flex;
    flex-direction: column;
}


.portal-brand strong {
    font-size: 13px;
}


.portal-brand small {
    color: var(--muted);

    font-size: 9px;
}


.portal-kicker {
    color: var(--primary);

    font-size: 10px;
    font-weight: 750;

    text-transform: uppercase;

    letter-spacing: .08em;
}


/* =========================================================
   LOGIN
   ========================================================= */

.portal-login-page {
    min-height: 100vh;

    display: grid;
    place-items: center;

    padding: 30px;
}


.portal-login-card {
    width:
        min(
            470px,
            100%
        );

    padding: 36px;

    border:
        1px solid var(--line);

    border-radius: 23px;

    background: #fff;

    box-shadow:
        0 30px 90px
        rgba(15, 21, 35, .1);
}


.portal-login-copy {
    margin-top: 40px;
}


.portal-login-copy h1 {
    margin:
        9px 0 0;

    font-size: 38px;
    line-height: 1.05;

    letter-spacing: -.055em;
}


.portal-login-copy p {
    margin:
        15px 0 0;

    color: var(--soft);

    font-size: 14px;
    line-height: 1.7;
}


.portal-login-form {
    display: grid;

    gap: 14px;

    margin-top: 30px;
}


.portal-login-form label {
    display: grid;

    gap: 7px;
}


.portal-login-form label > span {
    color: var(--soft);

    font-size: 10px;
    font-weight: 700;
}


.portal-login-form input {
    width: 100%;

    min-height: 50px;

    padding:
        0 14px;

    border:
        1px solid #dce1e6;

    border-radius: 11px;

    outline: 0;
}


.portal-login-form input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px
        rgba(49, 92, 244, .08);
}


.portal-primary-button {
    min-height: 50px;

    border: 0;

    border-radius: 11px;

    background: var(--ink);
    color: #fff;

    font-weight: 700;

    cursor: pointer;
}


.portal-back {
    display: inline-block;

    margin-top: 25px;

    color: var(--soft);

    font-size: 11px;
}


.portal-alert {
    margin-top: 20px;

    padding: 13px;

    border-radius: 11px;

    font-size: 11px;
    line-height: 1.6;
}


.portal-alert.success {
    background: var(--green-soft);
    color: var(--green);
}


.portal-alert.error {
    background: var(--red-soft);
    color: var(--red);
}


/* =========================================================
   HEADER
   ========================================================= */

.portal-header {
    height: 72px;

    border-bottom:
        1px solid var(--line);

    background: #fff;
}


.portal-header > div {
    width:
        min(
            calc(100% - 40px),
            1260px
        );

    height: 100%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-inline: auto;
}


.portal-header nav {
    display: flex;

    gap: 22px;
}


.portal-header nav a {
    color: var(--soft);

    font-size: 11px;
    font-weight: 650;
}


/* =========================================================
   MAIN
   ========================================================= */

.portal-main {
    width:
        min(
            calc(100% - 40px),
            1260px
        );

    margin-inline: auto;

    padding:
        55px 0 75px;
}


.portal-hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 50px;
}


.portal-hero h1 {
    margin:
        7px 0 0;

    font-size:
        clamp(
            40px,
            5vw,
            62px
        );

    line-height: 1;

    letter-spacing: -.06em;
}


.portal-hero p {
    max-width: 550px;

    margin:
        15px 0 0;

    color: var(--soft);

    font-size: 14px;
}


.workspace-status {
    min-width: 170px;

    padding: 15px;

    border:
        1px solid var(--line);

    border-radius: 13px;

    background: #fff;
}


.workspace-status span {
    display: block;

    color: var(--muted);

    font-size: 9px;
}


.workspace-status strong {
    display: block;

    margin-top: 4px;

    font-size: 12px;
}


/* =========================================================
   WORKSPACE LAYOUT
   ========================================================= */

.portal-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        360px;

    gap: 18px;

    margin-top: 38px;
}


.portal-layout > div {
    display: grid;

    gap: 18px;
}


.portal-layout aside {
    display: grid;

    align-content: start;

    gap: 18px;
}


.workspace-card {
    padding: 25px;

    border:
        1px solid var(--line);

    border-radius: 19px;

    background: #fff;
}


/* =========================================================
   PLATFORM SUMMARY
   ========================================================= */

.platform-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}


.summary-brand {
    display: flex;
    align-items: center;

    gap: 12px;
}


.summary-brand > span {
    width: 45px;
    height: 45px;

    display: grid;
    place-items: center;

    border-radius: 12px;

    color: #fff;

    font-weight: 800;
}


.summary-brand > div,
.summary-plan {
    display: flex;
    flex-direction: column;
}


.summary-brand small,
.summary-plan span {
    color: var(--muted);

    font-size: 9px;
}


.summary-brand strong {
    margin-top: 3px;

    font-size: 16px;
}


.summary-plan {
    align-items: flex-end;
}


.summary-plan strong {
    margin-top: 4px;

    padding:
        6px 9px;

    border-radius: 999px;

    background: #e9edff;
    color: #5266b7;

    font-size: 10px;
}


/* =========================================================
   CONFIGURATION
   ========================================================= */

.card-heading h2,
.next-step-card h2 {
    margin:
        7px 0 0;

    font-size: 26px;

    letter-spacing: -.04em;
}


.configuration-grid {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    margin-top: 25px;

    overflow: hidden;

    border:
        1px solid var(--line);

    border-radius: 13px;
}


.configuration-grid > div {
    padding: 15px;

    border-right:
        1px solid var(--line);

    border-bottom:
        1px solid var(--line);
}


.configuration-grid > div:nth-child(2n) {
    border-right: 0;
}


.configuration-grid > div:nth-last-child(-n+2) {
    border-bottom: 0;
}


.configuration-grid span {
    display: block;

    color: var(--muted);

    font-size: 9px;
}


.configuration-grid strong {
    display: block;

    margin-top: 4px;

    font-size: 11px;
}


.workspace-needs {
    margin-top: 24px;
}


.workspace-needs > span {
    color: var(--muted);

    font-size: 9px;
}


.workspace-needs > div {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-top: 8px;
}


.workspace-needs i {
    padding:
        6px 9px;

    border-radius: 999px;

    background: #eef1ff;
    color: #5264aa;

    font-style: normal;
    font-size: 9px;
    font-weight: 650;
}


/* =========================================================
   NEXT STEP
   ========================================================= */

.next-step-card > p {
    margin:
        12px 0 0;

    color: var(--soft);

    font-size: 12px;
    line-height: 1.65;
}


.stage-list {
    display: grid;

    gap: 8px;

    margin-top: 25px;
}


.stage-list > div {
    display: flex;
    align-items: center;

    gap: 9px;

    padding: 10px;

    border-radius: 10px;

    color: var(--muted);

    font-size: 11px;
    font-weight: 650;
}


.stage-list > div > span {
    width: 25px;
    height: 25px;

    display: grid;
    place-items: center;

    border:
        1px solid var(--line);

    border-radius: 8px;

    font-size: 9px;
}


.stage-list .complete {
    color: var(--green);
}


.stage-list .complete span {
    border-color: transparent;

    background: var(--green-soft);
}


.stage-list .current {
    background: #f5f6f3;
    color: var(--ink);
}


.stage-list .current span {
    border-color: transparent;

    background: var(--ink);
    color: #fff;
}


/* =========================================================
   REFERENCE
   ========================================================= */

.reference-card > span {
    color: var(--muted);

    font-size: 9px;
}


.reference-card > strong {
    display: block;

    margin-top: 5px;

    font-size: 14px;
}


.reference-card > small {
    display: block;

    margin-top: 9px;

    color: var(--soft);

    font-size: 10px;
    line-height: 1.55;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 850px) {

    .portal-layout {
        grid-template-columns: 1fr;
    }


    .portal-layout aside {
        grid-template-columns:
            repeat(2, 1fr);
    }

}


@media (max-width: 600px) {

    .portal-header > div,
    .portal-main {
        width:
            calc(100% - 28px);
    }


    .portal-header nav a:first-child {
        display: none;
    }


    .portal-main {
        padding-top: 38px;
    }


    .portal-hero {
        flex-direction: column;
        align-items: flex-start;

        gap: 22px;
    }


    .workspace-status {
        width: 100%;
    }


    .platform-summary {
        align-items: flex-start;
        flex-direction: column;
    }


    .summary-plan {
        align-items: flex-start;
    }


    .configuration-grid {
        grid-template-columns: 1fr;
    }


    .configuration-grid > div {
        border-right: 0;

        border-bottom:
            1px solid var(--line) !important;
    }


    .configuration-grid > div:last-child {
        border-bottom: 0 !important;
    }


    .portal-layout aside {
        grid-template-columns: 1fr;
    }


    .portal-login-card {
        padding: 27px;
    }


    .portal-login-copy h1 {
        font-size: 34px;
    }

}

/* =========================================================
   V8 — CHECKOUT / BILLING
   ========================================================= */

.checkout-alert {
    margin-bottom: 25px;
}

.portal-alert.neutral {
    background: #f0f2ef;
    color: #5f6874;
}

.purchase-card h2,
.billing-card h2 {
    margin: 8px 0 0;

    font-size: 29px;

    letter-spacing: -0.045em;
}

.purchase-card > p {
    margin: 12px 0 0;

    color: var(--soft);

    font-size: 12px;
    line-height: 1.65;
}

.test-mode-badge {
    display: inline-flex;

    margin-top: 12px;

    padding: 5px 8px;

    border-radius: 999px;

    background: #fff2e5;
    color: #a36528;

    font-size: 8px;
    font-weight: 700;
}

.price-stack {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    margin-top: 23px;

    overflow: hidden;

    border:
        1px solid var(--line);

    border-radius: 13px;
}

.price-stack > div {
    padding: 16px;
}

.price-stack > div:first-child {
    border-right:
        1px solid var(--line);
}

.price-stack span,
.billing-data span {
    display: block;

    color: var(--muted);

    font-size: 8px;
}

.price-stack strong {
    display: block;

    margin-top: 5px;

    font-size: 22px;

    letter-spacing: -0.04em;
}

.price-stack small {
    display: block;

    margin-top: 2px;

    color: var(--muted);

    font-size: 8px;
}

.first-payment {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-top: 10px;

    padding: 13px;

    border-radius: 11px;

    background: var(--bg);
}

.first-payment span {
    color: var(--soft);

    font-size: 10px;
}

.first-payment strong {
    font-size: 15px;
}

.purchase-copy {
    margin: 14px 0 18px !important;

    font-size: 10px !important;
}

.full {
    width: 100%;
}

.stripe-note {
    margin-top: 10px;

    color: var(--muted);

    font-size: 8px;

    text-align: center;
}

.price-custom {
    margin-top: 23px;

    padding: 20px;

    border:
        1px solid var(--line);

    border-radius: 13px;

    background: var(--bg);

    font-size: 19px;
    font-weight: 750;
}

.pricing-note {
    margin-top: 12px;

    color: var(--soft);

    font-size: 10px;
    line-height: 1.6;
}

.billing-status-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 15px;
}

.billing-badge {
    padding: 5px 8px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 700;
}

.billing-active {
    background: var(--green-soft);
    color: var(--green);
}

.billing-past_due {
    background: #fff2e5;
    color: #a36528;
}

.billing-canceled {
    background: var(--red-soft);
    color: var(--red);
}

.billing-processing,
.billing-checkout_open {
    background: #eef1ff;
    color: #5264aa;
}

.billing-data {
    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    margin: 22px 0 15px;

    overflow: hidden;

    border:
        1px solid var(--line);

    border-radius: 12px;
}

.billing-data > div {
    padding: 14px;
}

.billing-data > div:first-child {
    border-right:
        1px solid var(--line);
}

.billing-data strong {
    display: block;

    margin-top: 4px;

    font-size: 11px;
}

.portal-secondary-button {
    min-height: 48px;

    padding: 0 15px;

    border:
        1px solid var(--line);

    border-radius: 11px;

    background: #fff;
    color: var(--ink);

    font-weight: 700;

    cursor: pointer;
}


@media (max-width: 600px) {

    .price-stack,
    .billing-data {
        grid-template-columns: 1fr;
    }

    .price-stack > div:first-child,
    .billing-data > div:first-child {
        border-right: 0;
        border-bottom:
            1px solid var(--line);
    }

}


/* =========================================================
   V9 — LAUNCH CENTER
   ========================================================= */

.launch-center-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-top: 7px;
}


.launch-center-head h2 {
    margin: 0;

    font-size: 27px;

    letter-spacing: -0.04em;
}


.launch-center-head small {
    display: block;

    margin-top: 4px;

    color: var(--muted);

    font-size: 8px;
}


.launch-status-badge {
    padding: 6px 9px;

    border-radius: 999px;

    font-size: 8px;
    font-weight: 700;
}


.launch-status-preparing {
    background: #eef1ff;
    color: #5264aa;
}


.launch-status-blocked {
    background: #fff2e5;
    color: #a36528;
}


.launch-status-launched {
    background: var(--green-soft);
    color: var(--green);
}


.launch-task-list {
    display: grid;

    gap: 7px;

    margin-top: 23px;
}


.launch-task {
    display: flex;
    align-items: center;

    gap: 10px;

    padding: 10px;

    border-radius: 10px;

    color: var(--muted);
}


.launch-task > span {
    width: 26px;
    height: 26px;

    flex: 0 0 26px;

    display: grid;
    place-items: center;

    border: 1px solid var(--line);

    border-radius: 8px;

    font-size: 9px;
    font-weight: 700;
}


.launch-task > div {
    display: flex;
    flex-direction: column;

    gap: 2px;
}


.launch-task strong {
    color: var(--ink);

    font-size: 10px;
}


.launch-task small {
    color: var(--muted);

    font-size: 8px;
}


.launch-task-complete {
    background: #f5fbf8;
}


.launch-task-complete > span {
    border-color: transparent;

    background: var(--green-soft);
    color: var(--green);
}


.launch-task-ready {
    background: #f5f6f3;
}


.launch-task-ready > span {
    border-color: transparent;

    background: var(--ink);
    color: #fff;
}


.launch-task-blocked {
    background: #fff7ef;
}


.launch-task-blocked > span {
    border-color: transparent;

    background: #fff2e5;
    color: #a36528;
}


.launch-open-button {
    display: flex;

    margin-top: 18px;

    text-decoration: none;
}