/**
 * D2 Software Hub — Layer 2 stylesheet
 *
 * Consumes Layer 1 design tokens from d2-tokens.css (globally enqueued by childtheme).
 * All selectors scoped under .d2-software-page to prevent leakage into other pages.
 *
 * Plugin:  d2-software-hub
 * Prefix:  .d2sh-
 * Version: 1.0.1
 *
 * DIVI NEUTRALIZATION:
 *   Plugin opts-in to central `.d2-fullbleed-page` body-class which is handled
 *   by d2-tokens.css v1.2.0+. No local Divi-resets needed here.
 */

/* ============================================================
   Body-scope inheritance defaults
   ============================================================ */

body.d2-software-page {
    font-family: var(--d2-font-body, Arial, Helvetica, sans-serif);
    color: var(--d2-ink-body, #292929);
    background: var(--d2-surface, #ffffff);
}

/* ============================================================
   Wrap
   ============================================================ */

.d2sh-wrap {
    max-width: 100%;
    margin: 0 auto;
    background: var(--d2-surface, #ffffff);
}

.d2sh-wrap *,
.d2sh-wrap *::before,
.d2sh-wrap *::after {
    box-sizing: border-box;
}

/* ============================================================
   Shared section heading pattern
   ============================================================ */

.d2sh-section-eyebrow {
    font-family: var(--d2-font-display, 'Montserrat', sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--d2-orange, #fc8902);
    margin: 0;
}

.d2sh-section-heading {
    margin: 10px 0 0;
    font-family: var(--d2-font-display, 'Montserrat', sans-serif);
    font-weight: 800;
    font-size: 24px;
    line-height: 1.12;
    letter-spacing: -0.022em;
    color: var(--d2-ink, #222222);
}

.d2sh-section-heading em {
    font-style: italic;
    color: var(--d2-orange, #fc8902);
}

/* ============================================================
   HERO
   ============================================================ */

.d2sh-hero {
    background: var(--d2-ink-strong, #1a1a1a);
    border-radius: var(--d2-radius-xl, 16px);
    padding: 32px 24px;
    margin: 14px 14px 0;
    color: #ffffff;
}

.d2sh-hero__eyebrow {
    font-family: var(--d2-font-display, 'Montserrat', sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--d2-orange, #fc8902);
    margin: 0;
}

.d2sh-hero__heading {
    margin: 14px 0 0;
    font-family: var(--d2-font-display, 'Montserrat', sans-serif);
    font-weight: 800;
    font-size: 30px;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.d2sh-hero__heading em {
    font-style: italic;
    color: var(--d2-orange, #fc8902);
}

.d2sh-hero__lead {
    margin: 14px 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.74);
}

.d2sh-hero__ctas {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================================
   SEGMENT (user type)
   ============================================================ */

.d2sh-segment {
    padding: 32px 20px 22px;
    background: var(--d2-surface, #ffffff);
}

.d2sh-segment__list {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.d2sh-segment__btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: var(--d2-surface, #ffffff);
    border: 1px solid var(--d2-line, #e8e8e8);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s var(--d2-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
    position: relative;
}

.d2sh-segment__btn:hover {
    border-color: var(--d2-orange, #fc8902);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
}

.d2sh-segment__icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--d2-orange-soft, rgba(252, 137, 2, 0.06));
    color: var(--d2-orange, #fc8902);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.d2sh-segment__icon svg {
    width: 20px;
    height: 20px;
}

.d2sh-segment__body {
    flex: 1;
    min-width: 0;
}

.d2sh-segment__title {
    font-family: var(--d2-font-display, 'Montserrat', sans-serif);
    font-weight: 800;
    font-size: 16px;
    color: var(--d2-ink, #222222);
    letter-spacing: -0.01em;
}

.d2sh-segment__sub {
    margin-top: 2px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12.5px;
    color: var(--d2-ink-muted, #444444);
    line-height: 1.35;
}

.d2sh-segment__arrow {
    color: var(--d2-orange, #fc8902);
    font-size: 18px;
    font-weight: 800;
    transition: transform 0.25s var(--d2-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}

.d2sh-segment__btn:hover .d2sh-segment__arrow {
    transform: translateX(3px);
}

.d2sh-segment__btn--other {
    padding: 14px 20px;
}

.d2sh-segment__btn--other .d2sh-segment__title {
    font-size: 14px;
    font-weight: 700;
}

/* ============================================================
   BRANDS
   ============================================================ */

.d2sh-brands {
    padding: 32px 20px 22px;
    background: var(--d2-surface-alt, #f7f7f7);
}

.d2sh-brands__grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.d2sh-brand-card {
    background: var(--d2-surface, #ffffff);
    border: 1px solid var(--d2-line, #e8e8e8);
    border-radius: 10px;
    padding: 16px 14px 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s var(--d2-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
    display: flex;
    flex-direction: column;
    min-height: 110px;
}

.d2sh-brand-card:hover {
    border-color: var(--d2-orange, #fc8902);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.d2sh-brand-card__logo {
    height: 30px;
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.d2sh-brand-card__name {
    font-family: var(--d2-font-display, 'Montserrat', sans-serif);
    font-weight: 800;
    font-size: 14px;
    letter-spacing: -0.01em;
    color: var(--d2-ink, #222222);
}

.d2sh-brand-card__desc {
    margin-top: auto;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11.5px;
    line-height: 1.4;
    color: var(--d2-ink-muted, #444444);
}

/* Brand-specific brand-color overrides on the name */
.d2sh-brand-techsmith   .d2sh-brand-card__name { color: #1a1a1a; }
.d2sh-brand-corel       .d2sh-brand-card__name { color: #00917a; }
.d2sh-brand-anydesk     .d2sh-brand-card__name { color: #ef443b; }
.d2sh-brand-bitdefender .d2sh-brand-card__name { color: #d2202a; }
.d2sh-brand-eset        .d2sh-brand-card__name { color: #006eb3; }
.d2sh-brand-abbyy       .d2sh-brand-card__name { color: #e30613; }
.d2sh-brand-sketchup    .d2sh-brand-card__name { color: #005f9e; }
.d2sh-brand-nordpass    .d2sh-brand-card__name { color: #1a1a1a; }

.d2sh-brands__more {
    margin-top: 18px;
    text-align: center;
}

.d2sh-brands__more a {
    font-family: var(--d2-font-display, 'Montserrat', sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--d2-orange, #fc8902);
    text-decoration: none;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.d2sh-brands__more a:hover {
    color: var(--d2-orange-hover, #e57a00);
}

.d2sh-brands__more a span {
    transition: transform 0.25s var(--d2-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}

.d2sh-brands__more a:hover span {
    transform: translateX(3px);
}

/* ============================================================
   CATEGORIES
   ============================================================ */

.d2sh-categories {
    padding: 32px 20px 22px;
    background: var(--d2-surface, #ffffff);
}

.d2sh-categories__grid {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.d2sh-category-card {
    background: var(--d2-surface, #ffffff);
    border: 1px solid var(--d2-line, #e8e8e8);
    border-radius: 12px;
    padding: 18px 14px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s var(--d2-ease, cubic-bezier(0.2, 0.8, 0.2, 1));
}

.d2sh-category-card:hover {
    border-color: var(--d2-orange, #fc8902);
    background: var(--d2-orange-soft, rgba(252, 137, 2, 0.06));
}

.d2sh-category-card__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--d2-orange-soft, rgba(252, 137, 2, 0.06));
    color: var(--d2-orange, #fc8902);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.d2sh-category-card__icon svg {
    width: 18px;
    height: 18px;
}

.d2sh-category-card__name {
    font-family: var(--d2-font-display, 'Montserrat', sans-serif);
    font-weight: 800;
    font-size: 13.5px;
    color: var(--d2-ink, #222222);
    letter-spacing: -0.005em;
}

.d2sh-category-card__brands {
    margin-top: 4px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
    color: var(--d2-ink-faint, #666666);
    line-height: 1.3;
}

/* ============================================================
   USP
   ============================================================ */

.d2sh-usps {
    padding: 32px 20px 24px;
    background: var(--d2-surface-alt, #f7f7f7);
}

.d2sh-usp__list {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.d2sh-usp__item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.d2sh-usp__icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--d2-orange-soft, rgba(252, 137, 2, 0.06));
    color: var(--d2-orange, #fc8902);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.d2sh-usp__icon svg {
    width: 19px;
    height: 19px;
}

.d2sh-usp__title {
    font-family: var(--d2-font-display, 'Montserrat', sans-serif);
    font-weight: 800;
    font-size: 14.5px;
    color: var(--d2-ink, #222222);
    letter-spacing: -0.005em;
}

.d2sh-usp__desc {
    margin-top: 3px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12.5px;
    line-height: 1.45;
    color: var(--d2-ink-muted, #444444);
}

/* ============================================================
   CTA
   ============================================================ */

.d2sh-cta {
    background: var(--d2-ink-strong, #1a1a1a);
    border-radius: var(--d2-radius-xl, 16px);
    padding: 32px 24px;
    margin: 22px 14px 14px;
    color: #ffffff;
    text-align: center;
}

.d2sh-cta__eyebrow {
    font-family: var(--d2-font-display, 'Montserrat', sans-serif);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--d2-orange, #fc8902);
    margin: 0;
}

.d2sh-cta__heading {
    margin: 12px 0 0;
    font-family: var(--d2-font-display, 'Montserrat', sans-serif);
    font-weight: 800;
    font-size: 26px;
    line-height: 1.12;
    letter-spacing: -0.022em;
    color: #ffffff;
}

.d2sh-cta__heading em {
    font-style: italic;
    color: var(--d2-orange, #fc8902);
}

.d2sh-cta__lead {
    margin: 12px 0 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13.5px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

.d2sh-cta__btns {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ============================================================
   Tablet (>= 720px)
   ============================================================ */

@media (min-width: 720px) {
    .d2sh-hero {
        padding: 48px 40px;
        margin: 20px 20px 0;
    }
    .d2sh-hero__heading {
        font-size: 42px;
        max-width: 700px;
    }
    .d2sh-hero__lead {
        font-size: 16px;
        max-width: 640px;
    }
    .d2sh-hero__ctas {
        flex-direction: row;
        gap: 12px;
    }

    .d2sh-segment,
    .d2sh-brands,
    .d2sh-categories,
    .d2sh-usps {
        padding: 48px 40px 28px;
    }

    .d2sh-section-heading {
        font-size: 32px;
    }

    .d2sh-brands__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .d2sh-categories__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .d2sh-usp__list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .d2sh-cta {
        padding: 48px 40px;
        margin: 28px 20px 20px;
    }
    .d2sh-cta__heading {
        font-size: 32px;
    }
    .d2sh-cta__btns {
        flex-direction: row;
        justify-content: center;
        gap: 12px;
    }
    .d2sh-cta__btns .d2-btn {
        flex: 0 0 auto;
        min-width: 200px;
    }
}

/* ============================================================
   Desktop (>= 1024px)
   ============================================================ */

@media (min-width: 1024px) {
    .d2sh-wrap {
        max-width: 1280px;
        margin: 0 auto;
    }

    .d2sh-hero {
        padding: 64px 60px;
        margin: 24px 0 0;
    }
    .d2sh-hero__heading {
        font-size: 52px;
        max-width: 840px;
    }

    .d2sh-segment,
    .d2sh-brands,
    .d2sh-categories,
    .d2sh-usps {
        padding: 64px 60px 36px;
    }

    .d2sh-section-heading {
        font-size: 36px;
    }

    .d2sh-segment__list {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .d2sh-segment__btn--other {
        grid-column: span 2;
    }

    .d2sh-brands__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 14px;
    }

    .d2sh-brand-card {
        padding: 22px 18px 18px;
        min-height: 130px;
    }
    .d2sh-brand-card__name { font-size: 16px; }
    .d2sh-brand-card__desc { font-size: 12.5px; }

    .d2sh-categories__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    .d2sh-cta {
        padding: 64px 60px;
        margin: 36px 0 24px;
    }
    .d2sh-cta__heading {
        font-size: 38px;
    }
}
