.tools-hub {
    background: #f5f8fb;
    color: var(--app-color-text, #282d33);
}

.tools-hub * {
    box-sizing: border-box;
}

.tools-hub a {
    color: inherit;
}

.tools-hub__eyebrow {
    margin: 0;
    color: var(--app-color-brand, #266c82);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
}

.tools-hub-hero {
    background:
        linear-gradient(135deg, #091c2e 0%, #123244 56%, #266c82 100%);
    color: #ffffff;
    padding-block: 3rem;
}

.tools-hub-hero__inner {
    display: block;
}

.tools-hub-hero__content {
    display: grid;
    gap: 1rem;
    max-width: 55rem;
}

.tools-hub-hero .tools-hub__eyebrow {
    color: #9de2c0;
}

.tools-hub-hero h1,
.tools-hub-section h2,
.tools-hub-final-cta h2 {
    margin: 0;
    line-height: 1.15;
    font-weight: 750;
}

.tools-hub-hero h1 {
    max-width: 14ch;
    font-size: 3rem;
}

.tools-hub-hero__intro {
    max-width: 44rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.1rem;
    line-height: 1.65;
}

.tools-hub-hero__actions,
.tools-hub-final-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tools-hub-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.72rem 1.1rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        color 160ms ease,
        transform 160ms ease;
}

.tools-hub-button:hover,
.tools-hub-button:focus-visible {
    transform: translateY(-1px);
}

.tools-hub-button:focus-visible,
.tools-hub-card:focus-visible,
.tools-hub-directory__links a:focus-visible,
.tools-hub-faq__item summary:focus-visible {
    outline: 3px solid rgba(96, 186, 141, 0.7);
    outline-offset: 3px;
}

.tools-hub-button--primary {
    background: #60ba8d;
    color: #091c2e;
}

.tools-hub-button--primary:hover,
.tools-hub-button--primary:focus-visible {
    background: #87cba9;
}

.tools-hub-button--secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.tools-hub-button--secondary:hover,
.tools-hub-button--secondary:focus-visible {
    background: rgba(255, 255, 255, 0.16);
}

.tools-hub-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    inline-size: 2.25rem;
    block-size: 2.25rem;
    border-radius: 8px;
    background: #e9f0f3;
    color: #266c82;
    font-size: 1rem;
}

.tools-hub-section {
    padding-block: 2.5rem;
}

.tools-hub-section--compact {
    padding-top: 2rem;
}

.tools-hub-section--directory {
    padding-block: 1.5rem;
}

.tools-hub-section--store {
    background: #ffffff;
}

.tools-hub-section--faq {
    background: #edf4f7;
}

.tools-hub-section__header {
    display: grid;
    gap: 0.5rem;
    max-width: 44rem;
    margin-bottom: 1.25rem;
}

.tools-hub-section__header--inline {
    margin-bottom: 0;
}

.tools-hub-section__header h2,
.tools-hub-final-cta h2 {
    color: #101c2e;
    font-size: 1.9rem;
}

.tools-hub-section__header p,
.tools-hub-final-cta p {
    margin: 0;
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
}

.tools-hub-card-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tools-hub-card-grid--popular {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tools-hub-card-grid--store {
    grid-template-columns: minmax(0, 28rem);
}

.tools-hub-card {
    display: grid;
    gap: 0.75rem;
    align-content: start;
    min-height: 100%;
    padding: 1rem;
    border: 1px solid #dde7ed;
    border-radius: 8px;
    background: #ffffff;
    color: inherit;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    text-decoration: none;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease,
        transform 160ms ease;
}

.tools-hub-card:hover,
.tools-hub-card:focus-visible {
    border-color: #93b6c1;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
    transform: translateY(-2px);
}

.tools-hub-card--compact {
    gap: 0.65rem;
}

.tools-hub-card--highlighted {
    border-color: rgba(96, 186, 141, 0.45);
    background:
        linear-gradient(180deg, #ffffff 0%, #f3fbf7 100%);
}

.tools-hub-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.tools-hub-card__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.5rem;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: #d7ede2;
    color: #123244;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.tools-hub-card h3 {
    margin: 0;
    color: #101c2e;
    font-size: 1.12rem;
    line-height: 1.25;
}

.tools-hub-card p {
    margin: 0;
    color: #4b5563;
    line-height: 1.55;
}

.tools-hub-directory {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
    align-items: start;
    padding-block: 1rem;
    border-block: 1px solid #dde7ed;
}

.tools-hub-directory__groups {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tools-hub-directory__group {
    display: grid;
    align-content: start;
    gap: 0.55rem;
}

.tools-hub-directory__group h3 {
    margin: 0;
    color: #101c2e;
    font-size: 0.92rem;
    font-weight: 750;
}

.tools-hub-directory__links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tools-hub-directory__links a {
    display: inline-flex;
    align-items: center;
    min-height: 2rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid #d7e2e8;
    border-radius: 999px;
    background: #ffffff;
    color: #233044;
    font-size: 0.92rem;
    font-weight: 650;
    text-decoration: none;
}

.tools-hub-directory__links a:hover,
.tools-hub-directory__links a:focus-visible {
    border-color: #93b6c1;
    color: #266c82;
}

.tools-hub-store {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(18rem, 28rem);
    gap: 2rem;
    align-items: start;
}

.tools-hub-faq {
    display: grid;
    grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
    gap: 2rem;
}

.tools-hub-faq__list {
    display: grid;
    gap: 0.75rem;
}

.tools-hub-faq__item {
    border: 1px solid #d7e2e8;
    border-radius: 8px;
    background: #ffffff;
    padding: 0.9rem 1rem;
}

.tools-hub-faq__item summary {
    cursor: pointer;
    color: #101c2e;
    font-weight: 750;
}

.tools-hub-faq__item p {
    margin: 0.75rem 0 0;
    color: #4b5563;
    line-height: 1.6;
}

.tools-hub-final-cta {
    padding-block: 2.5rem;
    background: #101c2e;
    color: #ffffff;
}

.tools-hub-final-cta .tools-hub__eyebrow {
    color: #9de2c0;
}

.tools-hub-final-cta h2 {
    color: #ffffff;
}

.tools-hub-final-cta p {
    color: rgba(255, 255, 255, 0.82);
}

.tools-hub-final-cta__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: center;
}

.tools-hub-final-cta__inner > div:first-child {
    display: grid;
    gap: 0.5rem;
    max-width: 48rem;
}

.tools-hub-final-cta__actions {
    justify-content: flex-end;
}

@media (max-width: 1100px) {
    .tools-hub-card-grid,
    .tools-hub-card-grid--popular {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .tools-hub-directory,
    .tools-hub-store,
    .tools-hub-faq,
    .tools-hub-final-cta__inner {
        grid-template-columns: 1fr;
    }

    .tools-hub-final-cta__actions {
        justify-content: flex-start;
    }

    .tools-hub-directory__groups {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .tools-hub-hero {
        padding-block: 2rem;
    }

    .tools-hub-hero h1 {
        font-size: 2.25rem;
    }

    .tools-hub-hero__intro {
        font-size: 1rem;
    }

    .tools-hub-card-grid,
    .tools-hub-card-grid--popular,
    .tools-hub-card-grid--store {
        grid-template-columns: 1fr;
    }

    .tools-hub-section {
        padding-block: 2rem;
    }

    .tools-hub-section__header h2,
    .tools-hub-final-cta h2 {
        font-size: 1.55rem;
    }

    .tools-hub-button {
        width: 100%;
    }

    .tools-hub-directory__groups {
        grid-template-columns: 1fr;
    }
}
