/* =========================================================
   FUNAAB 101 TOOLS
   CLEAN COMPLETE STYLESHEET
   ========================================================= */


/* =========================================================
   TOOLS LANDING HERO
   ========================================================= */

.tools-hero {
    padding: 95px 0 75px;
    background:
        linear-gradient(
            135deg,
            #063d20,
            #075c2d
        );

    color: #ffffff;
}


.tools-hero-content {
    max-width: 850px;
}


.tools-kicker {
    display: block;

    margin-bottom: 14px;

    color: #cfe7d6;

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.12em;
    text-transform: uppercase;
}


.tools-hero h1 {
    max-width: 850px;

    margin: 0;

    color: #ffffff;

    font-size: clamp(
        3rem,
        7vw,
        6rem
    );

    line-height: 0.95;

    letter-spacing: -0.06em;
}


.tools-hero p {
    max-width: 620px;

    margin-top: 22px;

    color: #d6e7db;

    font-size: 1rem;

    line-height: 1.7;
}



/* =========================================================
   TOOLS DIRECTORY
   ========================================================= */

.tools-directory {
    padding: 85px 0 100px;

    background: var(--cream);
}


.tools-directory-head {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 50px;

    padding-bottom: 38px;

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


.tools-directory-head > div:first-child {
    max-width: 760px;
}


.tools-small-label {
    display: block;

    margin-bottom: 12px;

    color: var(--green);

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.tools-directory-head h2 {
    margin: 0;

    font-size: clamp(
        2.7rem,
        5.5vw,
        5rem
    );

    line-height: 0.98;

    letter-spacing: -0.055em;
}


.tools-directory-head p {
    max-width: 650px;

    margin-top: 18px;

    color: var(--muted);

    font-size: 0.98rem;

    line-height: 1.7;
}



/* =========================================================
   PRIVACY NOTE
   ========================================================= */

.tools-private-note {
    display: flex;

    align-items: center;

    gap: 14px;

    min-width: 280px;

    padding: 17px 20px;

    background: #edf6ef;

    border: 1px solid #d7e7db;

    border-radius: 16px;
}


.tools-private-icon {
    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: grid;

    place-items: center;

    background: var(--green);

    color: #ffffff;

    border-radius: 50%;

    font-size: 0.85rem;
    font-weight: 800;
}


.tools-private-note strong {
    display: block;

    margin-bottom: 3px;

    color: var(--ink);

    font-size: 0.85rem;
}


.tools-private-note span {
    display: block;

    color: var(--muted);

    font-size: 0.72rem;
}



/* =========================================================
   TOOL DIRECTORY LIST
   ========================================================= */

.tools-directory-list {
    width: 100%;
}


.directory-tool-row {
    display: grid;

    grid-template-columns:
        82px
        72px
        minmax(0, 1fr)
        56px;

    align-items: center;

    gap: 25px;

    min-height: 150px;

    padding: 28px 16px;

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

    color: inherit;

    text-decoration: none;

    transition:
        background 0.22s ease,
        padding 0.22s ease;
}


.directory-tool-row:hover {
    padding-left: 28px;
    padding-right: 28px;

    background: #edf6ef;
}



/* =========================================================
   DIRECTORY NUMBER
   ========================================================= */

.directory-number {
    color: rgba(
        7,
        92,
        45,
        0.18
    );

    font-family: Manrope, sans-serif;

    font-size: 3.15rem;
    font-weight: 800;

    line-height: 1;
}



/* =========================================================
   DIRECTORY ICON
   ========================================================= */

.directory-icon {
    width: 66px;
    height: 66px;

    display: grid;

    place-items: center;

    background: #e6f2e9;

    border: 1px solid #d9e9dd;

    border-radius: 14px;

    color: var(--green);

    font-size: 0.67rem;
    font-weight: 900;

    letter-spacing: 0.05em;
}



/* =========================================================
   DIRECTORY CONTENT
   ========================================================= */

.directory-content {
    min-width: 0;
}


.directory-content h3 {
    margin: 0 0 7px;

    color: var(--ink);

    font-size: clamp(
        1.3rem,
        2vw,
        1.75rem
    );

    letter-spacing: -0.03em;
}


.directory-content p {
    max-width: 720px;

    margin: 0;

    color: var(--muted);

    font-size: 0.9rem;

    line-height: 1.6;
}



/* =========================================================
   DIRECTORY TAGS
   ========================================================= */

.directory-tags {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 13px;
}


.directory-tags span {
    display: inline-flex;

    align-items: center;

    padding: 5px 10px;

    background: #e8f3eb;

    border-radius: 999px;

    color: var(--green);

    font-size: 0.67rem;
    font-weight: 700;
}



/* =========================================================
   DIRECTORY ARROW
   ========================================================= */

.directory-arrow {
    width: 50px;
    height: 50px;

    display: grid;

    place-items: center;

    justify-self: end;

    background: var(--green);

    border-radius: 50%;

    color: #ffffff;

    font-size: 1.4rem;

    transition:
        transform 0.2s ease,
        background 0.2s ease;
}


.directory-tool-row:hover
.directory-arrow {
    transform: translateX(5px);

    background: var(--deep);
}



/* =========================================================
   STUDENT PROBLEM SECTION
   ========================================================= */

.tools-problem-section {
    position: relative;

    overflow: hidden;

    padding: 85px 0;

    background:
        linear-gradient(
            135deg,
            var(--deep),
            var(--green)
        );

    color: #ffffff;
}


.tools-problem-section::before {
    content: "";

    position: absolute;

    width: 470px;
    height: 470px;

    right: -160px;
    bottom: -260px;

    background:
        rgba(
            255,
            255,
            255,
            0.04
        );

    border-radius: 50%;
}


.tools-problem-grid {
    position: relative;

    display: grid;

    grid-template-columns:
        1.05fr
        0.95fr;

    align-items: center;

    gap: 80px;
}


.tools-problem-label {
    display: block;

    margin-bottom: 14px;

    color: #cae2d1;

    font-size: 0.72rem;
    font-weight: 800;

    letter-spacing: 0.13em;

    text-transform: uppercase;
}


.tools-problem-copy h2 {
    max-width: 560px;

    margin: 0;

    color: #ffffff;

    font-size: clamp(
        3rem,
        6vw,
        5.4rem
    );

    line-height: 0.94;

    letter-spacing: -0.06em;
}


.tools-problem-copy p {
    max-width: 560px;

    margin-top: 23px;

    color: #d8e7dc;

    font-size: 0.95rem;

    line-height: 1.75;
}



/* =========================================================
   PROBLEM VISUAL
   ========================================================= */

.tools-problem-visual {
    padding: 30px;

    background:
        rgba(
            255,
            255,
            255,
            0.06
        );

    border: 1px solid
        rgba(
            255,
            255,
            255,
            0.13
        );

    border-radius: 24px;
}


.file-size-demo {
    display: flex;

    align-items: center;

    justify-content: center;

    gap: 28px;
}


.file-demo-box {
    min-width: 130px;

    padding: 22px;

    text-align: center;

    background:
        rgba(
            255,
            255,
            255,
            0.09
        );

    border-radius: 18px;
}


.file-demo-icon {
    width: 50px;
    height: 60px;

    display: grid;

    place-items: center;

    margin: 0 auto 10px;

    background: #ffffff;

    border-radius: 8px;

    color: var(--green);

    font-size: 0.63rem;
    font-weight: 900;
}


.file-demo-box strong {
    display: inline-block;

    padding: 4px 9px;

    background: #b84b3c;

    border-radius: 7px;

    color: #ffffff;

    font-size: 0.85rem;
}


.file-demo-small strong {
    background: #169255;
}


.file-demo-arrow {
    color: #ffffff;

    font-size: 2.5rem;
}



/* =========================================================
   BENEFITS
   ========================================================= */

.tools-benefits {
    display: flex;

    flex-wrap: wrap;

    justify-content: center;

    gap: 22px;

    margin-top: 28px;

    padding-top: 22px;

    border-top: 1px solid
        rgba(
            255,
            255,
            255,
            0.12
        );
}


.tools-benefits span {
    color: #e4efe7;

    font-size: 0.74rem;
    font-weight: 700;
}



/* =========================================================
   INDIVIDUAL TOOL PAGES
   ========================================================= */

.tool-page {
    padding: 65px 0 100px;

    background: var(--cream);
}


.tool-back {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 34px;

    color: var(--green);

    font-size: 0.82rem;
    font-weight: 800;

    text-decoration: none;
}


.tool-intro {
    max-width: 800px;

    margin-bottom: 38px;
}


.tool-label {
    display: block;

    margin-bottom: 11px;

    color: var(--green);

    font-size: 0.7rem;
    font-weight: 800;

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.tool-intro h1 {
    margin: 0;

    font-size: clamp(
        3rem,
        6vw,
        5.2rem
    );

    line-height: 0.98;

    letter-spacing: -0.055em;
}


.tool-intro p {
    max-width: 650px;

    margin-top: 18px;

    color: var(--muted);

    line-height: 1.7;
}



/* =========================================================
   TOOL WORKSPACE
   ========================================================= */

.tool-workspace {
    max-width: 900px;

    padding: 28px;

    background: #ffffff;

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

    border-radius: 18px;

    box-shadow:
        0 10px 35px
        rgba(
            8,
            48,
            27,
            0.05
        );
}



/* =========================================================
   DROPZONE
   ========================================================= */

.tool-dropzone {
    min-height: 250px;

    display: grid;

    place-items: center;

    padding: 38px 24px;

    text-align: center;

    background: #fafbf8;

    border: 1.5px dashed #adb7af;

    border-radius: 15px;

    transition:
        background 0.2s ease,
        border 0.2s ease;
}


.tool-dropzone.drag-active {
    background: #edf6ef;

    border-color: var(--green);
}


.tool-upload-icon {
    width: 52px;
    height: 52px;

    display: grid;

    place-items: center;

    margin: 0 auto 17px;

    background: #e8f3eb;

    border-radius: 50%;

    color: var(--green);

    font-size: 1.25rem;
    font-weight: 800;
}


.tool-dropzone h3 {
    margin: 0 0 7px;
}


.tool-dropzone p {
    margin: 0 0 18px;

    color: var(--muted);

    font-size: 0.87rem;
}


.tool-file-input {
    display: none;
}


.tool-drop-hint {
    display: block;

    margin-top: 11px;

    color: #89928b;

    font-size: 0.74rem;
}



/* =========================================================
   SELECTED FILE
   ========================================================= */

.tool-selected-file {
    display: none;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding-top: 18px;
}


.tool-selected-file.show {
    display: flex;
}


.tool-file-details {
    display: flex;

    align-items: center;

    gap: 13px;

    min-width: 0;
}


.tool-file-badge {
    min-width: 48px;
    height: 48px;

    display: grid;

    place-items: center;

    background: #e8f3eb;

    border-radius: 11px;

    color: var(--green);

    font-size: 0.65rem;
    font-weight: 800;
}


.tool-file-copy {
    min-width: 0;
}


.tool-file-name {
    display: block;

    max-width: 540px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-weight: 700;
}


.tool-file-size {
    display: block;

    margin-top: 3px;

    color: var(--muted);

    font-size: 0.77rem;
}


.tool-remove {
    border: 0;

    background: transparent;

    color: var(--muted);

    font-size: 1.5rem;

    cursor: pointer;
}



/* =========================================================
   SETTINGS
   ========================================================= */

.tool-settings {
    display: none;

    margin-top: 24px;

    padding-top: 27px;

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


.tool-settings.show {
    display: block;
}


.tool-settings-head {
    margin-bottom: 18px;
}


.tool-settings-head h3 {
    margin: 0 0 5px;
}


.tool-settings-head p {
    margin: 0;

    color: var(--muted);

    font-size: 0.84rem;
}



/* =========================================================
   OPTION BOXES
   ========================================================= */

.tool-options {
    display: grid;

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

    gap: 12px;
}


.tool-option {
    cursor: pointer;
}


.tool-option input {
    position: absolute;

    opacity: 0;

    pointer-events: none;
}


.tool-option-box {
    min-height: 118px;

    display: flex;

    flex-direction: column;

    padding: 17px;

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

    border-radius: 13px;

    transition:
        background 0.2s ease,
        border 0.2s ease;
}


.tool-option-box strong {
    margin-bottom: 7px;
}


.tool-option-box small {
    color: var(--muted);

    line-height: 1.5;
}


.tool-option input:checked
+
.tool-option-box {
    background: #edf6ef;

    border-color: var(--green);
}



/* =========================================================
   TOOL CONTROLS
   ========================================================= */

.tool-controls {
    display: grid;

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

    gap: 14px;

    margin-top: 22px;
}


.tool-control label {
    display: block;

    margin-bottom: 7px;

    font-size: 0.78rem;
    font-weight: 800;
}


.tool-control select,
.tool-control input[type="number"],
.tool-control input[type="text"] {
    width: 100%;

    padding: 12px 13px;

    background: #ffffff;

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

    border-radius: 10px;

    color: var(--ink);

    font: inherit;

    outline: none;
}


.tool-control select:focus,
.tool-control input:focus {
    border-color: var(--green);

    box-shadow:
        0 0 0 3px
        rgba(
            7,
            92,
            45,
            0.08
        );
}


.tool-filename-control {
    margin-bottom: 20px;
}


.tool-input-hint {
    display: block;

    margin-top: 7px;

    color: #89928b;

    font-size: 0.73rem;
}



/* =========================================================
   TOOL ACTION
   ========================================================= */

.tool-action {
    margin-top: 22px;
}



/* =========================================================
   PROCESSING STATE
   ========================================================= */

.tool-processing {
    display: none;

    padding: 70px 20px;

    text-align: center;
}


.tool-processing.show {
    display: block;
}


.tool-spinner {
    width: 43px;
    height: 43px;

    margin: 0 auto 18px;

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

    border-top-color: var(--green);

    border-radius: 50%;

    animation:
        tool-spin
        0.75s
        linear
        infinite;
}


@keyframes tool-spin {

    to {
        transform: rotate(360deg);
    }

}


.tool-processing h3 {
    margin: 0 0 7px;
}


.tool-processing p {
    margin: 0;

    color: var(--muted);

    font-size: 0.84rem;
}



/* =========================================================
   RESULT
   ========================================================= */

.tool-result {
    display: none;

    margin-top: 23px;

    padding: 25px;

    background: #edf6ef;

    border: 1px solid #cee0d2;

    border-radius: 15px;
}


.tool-result.show {
    display: block;
}


.tool-result-label {
    display: block;

    margin-bottom: 8px;

    color: var(--green);

    font-size: 0.66rem;
    font-weight: 800;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.tool-result h3 {
    margin: 0;

    font-size: 1.45rem;
}


.tool-metrics {
    display: flex;

    flex-wrap: wrap;

    gap: 32px;

    margin: 21px 0;
}


.tool-metric span {
    display: block;

    margin-bottom: 3px;

    color: var(--muted);

    font-size: 0.71rem;
}


.tool-metric strong {
    font-size: 1.2rem;
}


.tool-again {
    display: block;

    margin-top: 15px;

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--green);

    font-weight: 800;

    cursor: pointer;
}



/* =========================================================
   FILE LIST
   ========================================================= */

.tool-file-list {
    display: none;

    margin-top: 20px;

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


.tool-file-list.show {
    display: block;
}


.tool-file-list-item {
    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 14px;

    padding: 13px 0;

    border-bottom: 1px solid #edf0ed;
}


.tool-file-list-item div {
    min-width: 0;
}


.tool-file-list-item strong {
    display: block;

    max-width: 620px;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;
}


.tool-file-list-item small {
    color: var(--muted);
}



/* =========================================================
   PDF TO IMAGES DOWNLOADS
   ========================================================= */

#imageDownloads {
    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 20px;
}


.tool-page-download {
    display: inline-flex;
}



/* =========================================================
   AD BLOCK
   ========================================================= */

.tools-ad {
    max-width: 900px;

    min-height: 105px;

    display: grid;

    place-items: center;

    margin: 34px 0;

    background: #efefe9;

    border: 1px dashed #c5cbc6;

    color: #8a918c;

    font-size: 0.64rem;
    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}



/* =========================================================
   TOOL INFORMATION
   ========================================================= */

.tool-information {
    max-width: 780px;

    padding: 42px 0;
}


.tool-information
+
.tool-information {
    border-top: 1px solid var(--line);
}


.tool-information h2 {
    margin: 0 0 12px;

    font-size: clamp(
        1.7rem,
        3vw,
        2.3rem
    );

    letter-spacing: -0.035em;
}


.tool-information p {
    margin: 0;

    color: var(--muted);

    line-height: 1.8;
}



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

@media (
    max-width: 950px
) {

    .tools-directory-head {
        align-items: flex-start;

        flex-direction: column;
    }


    .tools-private-note {
        min-width: 0;
    }


    .tools-problem-grid {
        grid-template-columns: 1fr;

        gap: 45px;
    }

}



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

@media (
    max-width: 760px
) {

    .tools-hero {
        padding:
            70px
            0
            56px;
    }


    .tools-hero h1 {
        font-size:
            clamp(
                2.7rem,
                13vw,
                4.2rem
            );
    }



    /* DIRECTORY */

    .tools-directory {
        padding:
            58px
            0
            70px;
    }


    .tools-directory-head {
        display: block;

        padding-bottom: 28px;
    }


    .tools-directory-head h2 {
        font-size:
            clamp(
                2.5rem,
                12vw,
                3.8rem
            );
    }


    .tools-private-note {
        width: 100%;

        margin-top: 25px;
    }


    .directory-tool-row {
        grid-template-columns:
            40px
            52px
            minmax(
                0,
                1fr
            );

        gap: 13px;

        min-height: auto;

        padding:
            24px
            0;
    }


    .directory-tool-row:hover {
        padding:
            24px
            0;

        background: transparent;
    }


    .directory-number {
        font-size: 2rem;
    }


    .directory-icon {
        width: 50px;
        height: 50px;

        border-radius: 11px;

        font-size: 0.56rem;
    }


    .directory-arrow {
        display: none;
    }


    .directory-content h3 {
        font-size: 1.15rem;
    }


    .directory-content p {
        font-size: 0.8rem;

        line-height: 1.55;
    }


    .directory-tags {
        gap: 5px;

        margin-top: 10px;
    }


    .directory-tags span {
        padding:
            4px
            8px;

        font-size: 0.58rem;
    }



    /* PROBLEM SECTION */

    .tools-problem-section {
        padding:
            62px
            0;
    }


    .tools-problem-copy h2 {
        font-size:
            clamp(
                3rem,
                14vw,
                4.2rem
            );
    }


    .tools-problem-visual {
        padding: 20px;

        border-radius: 18px;
    }


    .file-size-demo {
        gap: 14px;
    }


    .file-demo-box {
        min-width: 95px;

        padding: 15px;
    }


    .file-demo-icon {
        width: 42px;
        height: 52px;
    }


    .file-demo-arrow {
        font-size: 1.7rem;
    }


    .tools-benefits {
        justify-content: flex-start;

        gap: 15px;
    }



    /* TOOL PAGES */

    .tool-page {
        padding:
            48px
            0
            75px;
    }


    .tool-intro h1 {
        font-size:
            clamp(
                2.8rem,
                13vw,
                4.2rem
            );
    }


    .tool-workspace {
        padding: 17px;

        border-radius: 15px;
    }


    .tool-dropzone {
        min-height: 215px;

        padding:
            29px
            15px;
    }


    .tool-options {
        grid-template-columns: 1fr;
    }


    .tool-controls {
        grid-template-columns: 1fr;
    }


    .tool-option-box {
        min-height: auto;
    }


    .tool-selected-file {
        align-items: flex-start;
    }


    .tool-file-name {
        max-width: 185px;
    }


    .tool-result {
        padding: 19px;
    }


    .tool-metrics {
        gap: 20px;
    }


    #imageDownloads {
        flex-direction: column;
    }


    .tool-page-download {
        width: 100%;

        justify-content: center;
    }

}