/*==================================================
  Free Tools Landing Page
==================================================*/

.sv-page-free-tools {
    background: #f8fbff;
    color: var(--sv-text);
}

.sv-free-tools-main {
    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 46%,
            #ffffff 100%
        );
}

/*==================================================
  Section Header
==================================================*/

.sv-page-free-tools .sv-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 30px;
}

.sv-page-free-tools .sv-section-header--center {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    display: block;
}

.sv-page-free-tools .sv-section-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 10px;
    padding: 0 12px;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sv-page-free-tools .sv-section-title {
    margin: 0;
    color: #0f172a;
    font-size: 34px;
    line-height: 1.18;
    font-weight: 800;
}

.sv-page-free-tools .sv-section-description {
    max-width: 660px;
    margin: 10px 0 0;
    color: #64748b;
    font-size: 16px;
    line-height: 1.75;
}

/*==================================================
  Main Sections
==================================================*/

.sv-tools-section,
.sv-tool-categories,
.sv-how-it-works,
.sv-faq,
.sv-free-tools-newsletter {
    padding: 70px 0;
}

.sv-tools-section {
    padding-top: 76px;
}

/*==================================================
  How It Works
==================================================*/

.sv-how-it-works {
    background: #f1f7ff;
}

.sv-how-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.sv-how-card {
    min-height: 210px;
    padding: 26px;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.sv-how-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 12px;
    background: #0f172a;
    color: #ffffff;
    font-weight: 800;
}

.sv-how-card h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 19px;
    line-height: 1.3;
}

.sv-how-card p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    line-height: 1.7;
}

/*==================================================
  FAQ
==================================================*/

.sv-faq {
    background: #ffffff;
}

.sv-faq-list {
    max-width: 920px;
    margin: 34px auto 0;
    display: grid;
    gap: 14px;
}

.sv-faq-list details {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

.sv-faq-list summary {
    position: relative;
    cursor: pointer;
    list-style: none;
    padding: 20px 58px 20px 22px;
    color: #0f172a;
    font-weight: 800;
}

.sv-faq-list summary::-webkit-details-marker {
    display: none;
}

.sv-faq-list summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    color: #2563eb;
    font-size: 24px;
    line-height: 1;
}

.sv-faq-list details[open] summary::after {
    content: "-";
}

.sv-faq-list p {
    margin: 0;
    padding: 0 22px 20px;
    color: #64748b;
    line-height: 1.75;
}

/*==================================================
  Newsletter
==================================================*/

.sv-free-tools-newsletter {
    background: #f8fbff;
}

.sv-free-tools-newsletter__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
    gap: 32px;
    align-items: center;
    padding: 42px;
    border-radius: 16px;
    background:
        radial-gradient(
            circle at 88% 18%,
            rgba(14, 165, 233, 0.22),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #0f172a,
            #1d4ed8 58%,
            #0e7490
        );
    color: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.20);
}

.sv-free-tools-newsletter .sv-section-eyebrow {
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.12);
    color: #dbeafe;
}

.sv-free-tools-newsletter .sv-section-title,
.sv-free-tools-newsletter .sv-section-description {
    color: #ffffff;
}

.sv-free-tools-newsletter__form {
    display: flex;
    gap: 10px;
    min-width: 0;
}

.sv-free-tools-newsletter__input {
    flex: 1;
    min-width: 0;
    height: 54px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.96);
    color: #0f172a;
    font-size: 15px;
}

.sv-free-tools-newsletter__button {
    height: 54px;
    padding: 0 20px;
    border: 0;
    border-radius: 10px;
    background: #ffffff;
    color: #1d4ed8;
    font-weight: 800;
    cursor: pointer;
}

/*==================================================
  Free Tools - Category Cards
==================================================*/

.sv-tool-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
    align-items: stretch;
}

/* Individual category card */

.sv-tool-category-card {
    min-width: 0;
    min-height: 150px;
    height: auto;
    margin: 0;
    padding: 0;
    border: 1px solid #dbe5f0;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    box-sizing: border-box;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

/* Entire clickable area */

.sv-tool-category-card__link {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 16px;
    width: 100%;
    min-height: 150px;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
    text-decoration: none;
    color: inherit;
}

/*==================================================
  Category Icon
==================================================*/

.sv-tool-category-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 56px;
    height: 56px;

    min-width: 56px;
    min-height: 56px;

    flex: 0 0 56px;

    margin: 0;

    border-radius: 12px;
    background: #f8fbff;

    overflow: hidden;
}

.sv-tool-category-card__icon img {
    display: block;

    width: 56px;
    height: 56px;

    max-width: 56px;
    max-height: 56px;

    object-fit: contain;
}

.sv-tool-category-card__icon span {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    border-radius: 10px;

    background: #eff6ff;
    color: #2563eb;

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

/*==================================================
  Category Content
==================================================*/

.sv-tool-category-card__body {
    min-width: 0;
    flex: 1 1 auto;
    width: auto;
    padding: 2px 0 0;
}

.sv-tool-category-card__title {
    margin: 0 0 7px;
    padding: 0;

    color: #0f172a;

    font-size: 16px;
    line-height: 1.35;
    font-weight: 700;

    overflow-wrap: anywhere;
}

.sv-tool-category-card__title a {
    color: inherit;
    text-decoration: none;
}

.sv-tool-category-card__description {
    margin: 0;
    padding: 0;

    color: #64748b;

    font-size: 13px;
    line-height: 1.5;
}

/*==================================================
  Category Card Hover
==================================================*/

.sv-tool-category-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
}

.sv-tool-category-card__link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: -3px;
}

/*==================================================
  Tablet
==================================================*/

@media (max-width: 991px) {

    .sv-how-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sv-free-tools-newsletter__box {
        grid-template-columns: 1fr;
    }

    .sv-tool-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

/*==================================================
  Mobile
==================================================*/

@media (max-width: 767px) {

    .sv-page-free-tools .sv-section-header {
        display: block;
    }

    .sv-page-free-tools .sv-section-title {
        font-size: 28px;
    }

    .sv-tools-section,
    .sv-tool-categories,
    .sv-how-it-works,
    .sv-faq,
    .sv-free-tools-newsletter {
        padding: 52px 0;
    }

    .sv-how-grid {
        grid-template-columns: 1fr;
    }

    .sv-free-tools-newsletter__box {
        padding: 28px 20px;
        border-radius: 12px;
    }

    .sv-free-tools-newsletter__form {
        flex-direction: column;
    }

    .sv-free-tools-newsletter__button {
        width: 100%;
    }

    /* Category cards */

    .sv-tool-categories__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .sv-tool-category-card {
        min-height: 120px;
    }

    .sv-tool-category-card__link {
        min-height: 120px;
        padding: 16px;
        gap: 14px;
    }

    .sv-tool-category-card__icon {
        width: 52px;
        height: 52px;
        min-width: 52px;
        min-height: 52px;
        flex-basis: 52px;
    }

    .sv-tool-category-card__icon img {
        width: 52px;
        height: 52px;
        max-width: 52px;
        max-height: 52px;
    }

    .sv-tool-category-card__title {
        font-size: 15px;
        line-height: 1.35;
    }

    .sv-tool-category-card__description {
        font-size: 12px;
        line-height: 1.45;
    }

}

/*==================================================
  Very Small Mobile
==================================================*/

@media (max-width: 480px) {

    .sv-tool-category-card__link {
        gap: 12px;
        padding: 14px;
    }

    .sv-tool-category-card__icon {
        width: 48px;
        height: 48px;
        min-width: 48px;
        min-height: 48px;
        flex-basis: 48px;
    }

    .sv-tool-category-card__icon img {
        width: 48px;
        height: 48px;
        max-width: 48px;
        max-height: 48px;
    }

}
