/* ==========================================================
   FFXIVPenumbra.com
   INSTALL PAGE
   Clean • Centered • Desktop Friendly • Responsive
   ========================================================== */


/* ==========================================================
   PAGE ROOT
========================================================== */

.install-page {
    position: relative;
    width: 100%;
    overflow: hidden;

    color: #0b2342;
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 44%,
            #f5faff 100%
        );

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


.install-container {
    width:
        min(
            1080px,
            calc(100% - 48px)
        );

    margin:
        0 auto;
}


/* ==========================================================
   INTRO
========================================================== */

.install-intro {
    position: relative;

    padding:
        66px 0
        38px;

    text-align: center;
}


.install-intro-inner {
    max-width: 820px;
}


/* Small label */

.install-kicker {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    min-height: 34px;

    padding:
        0 15px;

    margin-bottom: 14px;

    border:
        1px solid
        rgba(28, 143, 239, .15);

    border-radius: 100px;

    color: #0b8ef0;

    background:
        #eef8ff;

    font-size: 10px;
    line-height: 1;

    font-weight: 800;

    letter-spacing: .20em;
}


.install-kicker-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 12px;
}


/* ==========================================================
   PAGE H1
========================================================== */

.install-title {
    margin: 0;

    color: #081f3d;

    font-family:
        "Outfit",
        sans-serif;

    font-size:
        clamp(
            44px,
            5vw,
            64px
        );

    line-height: 1.03;

    font-weight: 800;

    letter-spacing: -.045em;
}


.install-title span {
    color: #0b8ff4;
}


/* ==========================================================
   INTRO DESCRIPTION
========================================================== */

.install-lead {
    max-width: 680px;

    margin:
        16px auto 0;

    color: #50647d;

    font-size: 17px;
    line-height: 1.65;

    font-weight: 500;
}


/* ==========================================================
   INTRO META
========================================================== */

.install-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap:
        16px 30px;

    margin-top: 25px;
}


.install-meta span {
    display: inline-flex;
    align-items: center;

    gap: 8px;

    color: #435a75;

    font-size: 13px;

    font-weight: 700;
}


.install-meta i {
    color: #0b91f5;
}


/* ==========================================================
   COMMON SECTIONS
========================================================== */

.install-downloads,
.install-before,
.install-steps-section,
.install-repository-section,
.install-next-section {
    padding:
        10px 0
        18px;
}


/* ==========================================================
   COMMON PANEL
========================================================== */

.install-panel {
    position: relative;

    width: 100%;

    padding:
        30px;

    border:
        1px solid
        #d8e8f7;

    border-radius:
        18px;

    background:
        rgba(255, 255, 255, .96);

    box-shadow:
        0 16px 50px
        rgba(23, 72, 118, .055);
}


/* ==========================================================
   SECTION HEADING
========================================================== */

.install-section-head {
    display: flex;
    align-items: flex-start;

    gap: 15px;

    margin-bottom: 23px;

    text-align: left;
}


.install-section-icon {
    width: 46px;
    height: 46px;

    flex:
        0 0 46px;

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

    border-radius: 13px;

    color: #078ff2;

    background:
        linear-gradient(
            145deg,
            #e9f6ff,
            #f6fbff
        );

    font-size: 20px;
}


.install-section-head > div {
    min-width: 0;
}


.install-section-label {
    display: block;

    margin-bottom: 4px;

    color: #168ee7;

    font-size: 9px;

    line-height: 1;

    font-weight: 800;

    letter-spacing: .18em;
}


.install-section-head h2 {
    margin: 0;

    color: #0b2342;

    font-family:
        "Outfit",
        sans-serif;

    font-size: 27px;

    line-height: 1.15;

    font-weight: 800;

    letter-spacing: -.025em;
}


.install-section-head p {
    max-width: 670px;

    margin:
        6px 0 0;

    color: #61738a;

    font-size: 13.5px;

    line-height: 1.6;
}


/* ==========================================================
   DOWNLOAD PANEL
========================================================== */

.install-download-panel {
    overflow: hidden;

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        );
}


/* ==========================================================
   VERSION ROW
========================================================== */

.install-version-row {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    width: fit-content;

    min-height: 31px;

    margin:
        -4px auto 22px;

    padding:
        0 13px;

    border-radius: 100px;

    background: #eff8ff;

    color: #52667e;

    font-size: 11px;

    font-weight: 700;
}


.install-version-row strong {
    color: #087fd7;

    font-size: 12px;
}


/* ==========================================================
   DOWNLOAD GRID
========================================================== */

.install-download-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}


/* ==========================================================
   DOWNLOAD CARD
========================================================== */

.install-download-card {
    position: relative;

    min-width: 0;

    padding: 22px;

    display: flex;
    flex-direction: column;

    border:
        1px solid
        #dbe8f5;

    border-radius:
        14px;

    background:
        #ffffff;

    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}


.install-download-card:hover {
    transform:
        translateY(-3px);

    border-color:
        #acd8f7;

    box-shadow:
        0 16px 32px
        rgba(19, 102, 168, .08);
}


/* Main package */

.install-download-primary {
    border-color:
        #9fd5f8;

    background:
        linear-gradient(
            155deg,
            #eef9ff,
            #ffffff 70%
        );
}


/* ==========================================================
   FILE ICON
========================================================== */

.install-file-icon {
    width: 48px;
    height: 48px;

    margin-bottom: 17px;

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

    border-radius: 12px;

    color: #078ef1;

    background:
        #e9f6ff;

    font-size: 22px;
}


/* ==========================================================
   FILE COPY
========================================================== */

.install-file-copy {
    flex: 1;
}


.install-file-tag {
    display: block;

    margin-bottom: 6px;

    color: #138ce3;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .16em;
}


.install-file-copy h3 {
    margin: 0;

    color: #0b2342;

    font-family:
        "Outfit",
        sans-serif;

    font-size: 19px;

    line-height: 1.2;

    font-weight: 800;
}


.install-file-version {
    margin:
        7px 0 0;

    color: #52667e;

    font-size: 12px;

    line-height: 1.4;

    font-weight: 700;
}


.install-file-version span {
    display: inline-flex;

    margin-left: 4px;

    padding:
        3px 7px;

    border-radius: 100px;

    color: #148757;

    background:
        #e8f8f0;

    font-size: 9px;
}


.install-file-description {
    margin:
        9px 0 0;

    color: #6c7d91;

    font-size: 12.5px;

    line-height: 1.55;
}


/* ==========================================================
   DOWNLOAD BUTTON
========================================================== */

.install-download-button {
    width: 100%;

    min-height: 45px;

    margin-top: 20px;

    padding:
        0 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border:
        1px solid
        #168fe6;

    border-radius: 9px;

    color: #087ed7;

    background:
        #ffffff;

    font-size: 12.5px;

    line-height: 1;

    font-weight: 800;

    text-decoration: none;

    transition:
        transform 160ms ease,
        color 160ms ease,
        background 160ms ease,
        box-shadow 160ms ease;
}


.install-download-button-primary {
    color: #ffffff;

    border-color:
        #078cf1;

    background:
        linear-gradient(
            135deg,
            #139cf8,
            #087bea
        );

    box-shadow:
        0 8px 20px
        rgba(0, 123, 234, .16);
}


.install-download-button:hover {
    transform:
        translateY(-1px);

    color: #ffffff;

    background:
        #078cf1;
}


/* ==========================================================
   DOWNLOAD NOTE
========================================================== */

.install-download-note {
    margin-top: 17px;

    padding:
        13px 16px;

    display: flex;
    align-items: flex-start;

    gap: 10px;

    border:
        1px solid
        #d9e8f5;

    border-radius:
        10px;

    color: #52677f;

    background:
        #f7fbff;
}


.install-note-icon {
    margin-top: 1px;

    color: #078cf0;

    font-size: 14px;
}


.install-download-note p {
    margin: 0;

    font-size: 12px;

    line-height: 1.55;
}


.install-download-note strong {
    color: #0b2342;
}


/* ==========================================================
   REQUIREMENTS GRID
========================================================== */

.install-requirements-grid {
    display: grid;

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

    gap: 14px;
}


/* ==========================================================
   REQUIREMENT
========================================================== */

.install-requirement {
    position: relative;

    min-height: 118px;

    padding: 19px;

    display: grid;

    grid-template-columns:
        43px 1fr;

    gap: 13px;

    border:
        1px solid
        #dfebf6;

    border-radius:
        13px;

    background:
        #fcfeff;
}


.install-requirement-icon {
    width: 43px;
    height: 43px;

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

    border-radius: 11px;

    color: #078cf0;

    background:
        #ebf7ff;

    font-size: 18px;
}


.install-requirement h3 {
    margin: 2px 0 0;

    color: #0b2342;

    font-family:
        "Outfit",
        sans-serif;

    font-size: 16px;

    font-weight: 800;
}


.install-requirement p {
    margin:
        5px 0 0;

    color: #65768c;

    font-size: 12px;

    line-height: 1.55;
}


.install-required-badge {
    position: absolute;

    right: 14px;
    bottom: 13px;

    padding:
        4px 8px;

    border-radius:
        100px;

    color: #19845a;

    background:
        #eaf8f1;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .08em;
}


/* ==========================================================
   INSTALLATION STEPS
========================================================== */

.install-steps {
    position: relative;

    display: flex;
    flex-direction: column;
}


/* Vertical guide line */

.install-steps::before {
    content: "";

    position: absolute;

    left: 20px;
    top: 25px;
    bottom: 25px;

    width: 1px;

    background:
        #d7e8f6;
}


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

.install-step {
    position: relative;

    display: grid;

    grid-template-columns:
        42px 1fr;

    gap: 17px;

    min-height: 88px;

    padding:
        18px 0;

    border-bottom:
        1px solid
        #e5eef7;
}


.install-step:last-child {
    border-bottom: 0;
}


.install-step-number {
    position: relative;

    z-index: 2;

    width: 42px;
    height: 42px;

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

    border:
        4px solid
        #ffffff;

    border-radius: 50%;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #149df7,
            #087bea
        );

    box-shadow:
        0 5px 15px
        rgba(5, 128, 224, .16);

    font-size: 14px;

    font-weight: 800;
}


.install-step-content {
    padding-top: 2px;
}


.install-step-content h3 {
    margin: 0;

    color: #0b2342;

    font-family:
        "Outfit",
        sans-serif;

    font-size: 17px;

    line-height: 1.25;

    font-weight: 800;
}


.install-step-content p {
    margin:
        5px 0 0;

    color: #607189;

    font-size: 13px;

    line-height: 1.65;
}


.install-step-content strong {
    color: #173958;
}


/* ==========================================================
   REPOSITORY PANEL
========================================================== */

.install-repository-panel {
    background:
        linear-gradient(
            145deg,
            #f1f9ff,
            #ffffff 72%
        );
}


/* ==========================================================
   REPOSITORY COPY BOX
========================================================== */

.install-repository-copy {
    width: 100%;

    min-height: 58px;

    display: grid;

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

    align-items: stretch;

    overflow: hidden;

    border:
        1px solid
        #cbdfee;

    border-radius:
        11px;

    background:
        #ffffff;
}


.install-repository-url {
    min-width: 0;

    padding:
        0 19px;

    display: flex;
    align-items: center;

    overflow-x: auto;

    color: #163654;

    background:
        transparent;

    font-family:
        Consolas,
        Monaco,
        monospace;

    font-size: 12.5px;

    white-space: nowrap;

    scrollbar-width: none;
}


.install-repository-url::-webkit-scrollbar {
    display: none;
}


/* ==========================================================
   COPY BUTTON
========================================================== */

.install-copy-button {
    min-width: 135px;

    padding:
        0 20px;

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

    gap: 9px;

    border: 0;

    color: #ffffff;

    background:
        linear-gradient(
            135deg,
            #149df7,
            #087bea
        );

    font-family: inherit;

    font-size: 13px;

    font-weight: 800;

    cursor: pointer;

    transition:
        background 160ms ease,
        transform 160ms ease;
}


.install-copy-button:hover {
    background:
        #0774dc;
}


.install-copy-button:active {
    transform:
        scale(.98);
}


/* Copy success */

.install-copy-button.is-copied {
    background:
        #16895e;
}


.install-copy-status {
    min-height: 18px;

    margin-top: 7px;

    color: #15875c;

    font-size: 11px;

    font-weight: 700;

    text-align: right;
}


/* ==========================================================
   NEXT STEPS
========================================================== */

.install-next-section {
    padding-bottom: 70px;
}


.install-next-grid {
    display: grid;

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

    gap: 16px;
}


/* ==========================================================
   NEXT CARD
========================================================== */

.install-next-card {
    min-height: 190px;

    padding: 25px;

    display: grid;

    grid-template-columns:
        47px 1fr;

    gap: 15px;

    border-radius:
        15px;
}


.install-next-success {
    border:
        1px solid
        #c9eadc;

    background:
        linear-gradient(
            145deg,
            #f0fcf7,
            #ffffff
        );
}


.install-next-help {
    border:
        1px solid
        #d4e7f6;

    background:
        linear-gradient(
            145deg,
            #f1f9ff,
            #ffffff
        );
}


.install-next-icon {
    width: 47px;
    height: 47px;

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

    border-radius: 50%;

    font-size: 22px;
}


.install-next-success
.install-next-icon {
    color: #ffffff;

    background:
        #27bc83;
}


.install-next-help
.install-next-icon {
    color: #ffffff;

    background:
        #0b91f2;
}


.install-next-label {
    display: block;

    margin-bottom: 4px;

    color: #1583cf;

    font-size: 8px;

    font-weight: 800;

    letter-spacing: .15em;
}


.install-next-card h2 {
    margin: 0;

    color: #0b2342;

    font-family:
        "Outfit",
        sans-serif;

    font-size: 21px;

    font-weight: 800;
}


.install-next-card p {
    margin:
        7px 0 0;

    color: #617389;

    font-size: 12.5px;

    line-height: 1.6;
}


/* ==========================================================
   NEXT BUTTON
========================================================== */

.install-next-button {
    width: fit-content;

    min-height: 40px;

    margin-top: 16px;

    padding:
        0 14px;

    display: inline-flex;
    align-items: center;

    gap: 9px;

    border:
        1px solid
        #168fe6;

    border-radius:
        8px;

    color: #087cd3;

    background:
        #ffffff;

    font-size: 11.5px;

    font-weight: 800;

    text-decoration: none;

    transition:
        color 160ms ease,
        background 160ms ease;
}


.install-next-button:hover {
    color: #ffffff;

    background:
        #078cf0;
}


/* ==========================================================
   FOCUS
========================================================== */

.install-page a:focus-visible,
.install-page button:focus-visible {
    outline:
        3px solid
        rgba(10, 145, 240, .28);

    outline-offset: 3px;
}


/* ==========================================================
   1366px DESKTOP OPTIMIZATION
========================================================== */

@media
(min-width: 981px)
and
(max-width: 1400px) {

    .install-container {
        width:
            min(
                1000px,
                calc(100% - 46px)
            );
    }


    .install-intro {
        padding:
            53px 0
            31px;
    }


    .install-title {
        font-size:
            clamp(
                42px,
                4.5vw,
                57px
            );
    }


    .install-panel {
        padding: 27px;
    }


    .install-download-card {
        padding: 20px;
    }


    .install-next-section {
        padding-bottom: 58px;
    }

}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 980px) {

    .install-container {
        width:
            min(
                760px,
                calc(100% - 36px)
            );
    }


    .install-intro {
        padding:
            52px 0
            31px;
    }


    .install-title {
        font-size:
            clamp(
                39px,
                7vw,
                52px
            );
    }


    .install-download-grid {
        grid-template-columns:
            1fr
            1fr;
    }


    .install-download-primary {
        grid-column:
            1 / -1;
    }


    .install-download-primary
    .install-download-button {
        max-width: 360px;
    }


    .install-requirements-grid {
        grid-template-columns:
            1fr;
    }


    .install-next-grid {
        grid-template-columns:
            1fr;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 680px) {

    .install-container {
        width:
            calc(100% - 28px);
    }


    .install-intro {
        padding:
            40px 0
            25px;
    }


    .install-kicker {
        margin-bottom: 12px;
    }


    .install-title {
        font-size: 36px;
    }


    .install-lead {
        font-size: 14px;
    }


    .install-meta {
        gap:
            10px 18px;

        margin-top: 20px;
    }


    .install-meta span {
        font-size: 11px;
    }


    .install-panel {
        padding: 20px;

        border-radius: 14px;
    }


    .install-section-head {
        gap: 11px;

        margin-bottom: 20px;
    }


    .install-section-icon {
        width: 40px;
        height: 40px;

        flex-basis: 40px;

        font-size: 17px;
    }


    .install-section-head h2 {
        font-size: 22px;
    }


    .install-section-head p {
        font-size: 12.5px;
    }


    .install-download-grid {
        grid-template-columns:
            1fr;
    }


    .install-download-primary {
        grid-column:
            auto;
    }


    .install-download-card {
        padding: 19px;
    }


    .install-download-primary
    .install-download-button {
        max-width: none;
    }


    .install-version-row {
        margin-bottom: 17px;
    }


    .install-download-note {
        padding:
            12px 13px;
    }


    .install-requirement {
        grid-template-columns:
            38px 1fr;

        min-height: 126px;

        padding:
            16px;
    }


    .install-requirement-icon {
        width: 38px;
        height: 38px;
    }


    .install-step {
        grid-template-columns:
            38px 1fr;

        gap: 13px;
    }


    .install-steps::before {
        left: 18px;
    }


    .install-step-number {
        width: 38px;
        height: 38px;
    }


    .install-step-content h3 {
        font-size: 16px;
    }


    .install-step-content p {
        font-size: 12.5px;
    }


    .install-repository-copy {
        grid-template-columns:
            1fr;
    }


    .install-repository-url {
        min-height: 55px;

        padding:
            0 14px;

        font-size: 11px;
    }


    .install-copy-button {
        width: 100%;

        min-height: 47px;
    }


    .install-copy-status {
        text-align: left;
    }


    .install-next-card {
        min-height: 0;

        padding: 20px;

        grid-template-columns:
            42px 1fr;
    }


    .install-next-icon {
        width: 42px;
        height: 42px;

        font-size: 19px;
    }


    .install-next-section {
        padding-bottom: 45px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 390px) {

    .install-title {
        font-size: 32px;
    }


    .install-meta {
        flex-direction: column;

        align-items: center;

        gap: 8px;
    }


    .install-panel {
        padding: 17px;
    }


    .install-section-head {
        align-items: flex-start;
    }


    .install-section-head h2 {
        font-size: 20px;
    }


    .install-next-card {
        grid-template-columns:
            1fr;
    }

}