/* Final home page polish and lightweight cleanup layer. */

.home-hero-grid--mockup {
    position: relative;
    gap: clamp(14px, 2.4vw, 24px);
}

.home-hero-grid--mockup::after {
    content: '';
    position: absolute;
    right: clamp(10px, 3vw, 34px);
    top: clamp(10px, 3vw, 28px);
    width: clamp(90px, 14vw, 190px);
    height: clamp(90px, 14vw, 190px);
    border-radius: 999px;
    background: radial-gradient(circle, rgba(35, 88, 246, .14), transparent 66%);
    pointer-events: none;
    opacity: .78;
}

.home-quick-links--rail a {
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-quick-links--rail a::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    width: 16px;
    height: 16px;
    transform: translateY(-50%);
    background: url('/images/icons/ui-chevron-right.svg') center / contain no-repeat;
    opacity: .46;
}

.home-quick-links--rail a:hover {
    transform: translateY(-2px);
    border-color: rgba(35, 88, 246, .16);
    box-shadow: 0 14px 34px rgba(17, 26, 54, .08);
}

.home-social-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 16px;
}

.home-social-card {
    position: relative;
    overflow: hidden;
    min-height: 168px;
    padding: clamp(15px, 2vw, 20px);
    border-radius: 24px;
    background: linear-gradient(135deg, #fff, #f7f9ff);
    border: 1px solid rgba(17, 26, 54, .07);
    box-shadow: 0 14px 34px rgba(17, 26, 54, .065);
    color: #111a36;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.home-social-card::after {
    content: '';
    position: absolute;
    right: -44px;
    top: -48px;
    width: 130px;
    height: 130px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(35, 88, 246, .20), transparent 66%);
    pointer-events: none;
}

.home-social-card--instagram::after {
    background: radial-gradient(circle, rgba(255, 122, 0, .24), transparent 66%);
}

.home-social-card:hover {
    transform: translateY(-2px);
    border-color: rgba(35, 88, 246, .15);
    box-shadow: 0 18px 44px rgba(17, 26, 54, .10);
}

.home-social-card span {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(35, 88, 246, .08);
    color: #2358f6;
    font-size: 12px;
    font-weight: 950;
}

.home-social-card--instagram span {
    background: rgba(255, 122, 0, .10);
    color: #dd5f00;
}

.home-social-card span img {
    width: 15px;
    height: 15px;
}

.home-social-card b {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 18px;
    color: #111a36;
    font-size: clamp(21px, 2.2vw, 30px);
    line-height: 1;
    letter-spacing: -.05em;
}

.home-social-card small {
    position: relative;
    z-index: 1;
    display: block;
    max-width: 310px;
    margin-top: 9px;
    color: #5f6b84;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.4;
}

.section-head--compact {
    align-items: center;
    gap: 12px;
}

.section-head--compact a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(35, 88, 246, .07);
    color: #2358f6;
    font-weight: 950;
    text-decoration: none;
}

.section-head--compact a::after {
    content: '';
    width: 13px;
    height: 13px;
    background: url('/images/icons/ui-arrow-right.svg') center / contain no-repeat;
}

.categories--mockup,
.home-product-rail,
.home-trust-panel,
.home-picker-v2--mockup,
.ipodil-trade-banner {
    scroll-margin-top: 90px;
}

.categories--mockup > a,
.categories--mockup article,
.home-trust-panel__grid a {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.categories--mockup > a:hover,
.categories--mockup article:hover,
.home-trust-panel__grid a:hover {
    transform: translateY(-2px);
    border-color: rgba(35, 88, 246, .16);
    box-shadow: 0 16px 38px rgba(17, 26, 54, .09);
}

.home-product-rail {
    align-items: stretch;
}

.ipodil-trade-banner {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(17, 26, 54, .07);
    box-shadow: 0 18px 46px rgba(17, 26, 54, .09);
}

.ipodil-trade-banner::after {
    content: '';
    position: absolute;
    right: -70px;
    top: -70px;
    width: 210px;
    height: 210px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255, 122, 0, .26), transparent 66%);
    pointer-events: none;
}

.ipodil-trade-banner--readable .eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0;
    background: transparent;
}

.ipodil-trade-banner--readable .eyebrow span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #111a36;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-shadow: none;
    box-shadow: 0 8px 20px rgba(17, 26, 54, .12);
}

.ipodil-trade-banner .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ipodil-trade-banner .button::after {
    content: '';
    width: 16px;
    height: 16px;
    background: url('/images/icons/ui-arrow-right.svg') center / contain no-repeat;
    filter: brightness(0) invert(1);
}

.home-trust-panel {
    position: relative;
    overflow: hidden;
}

.home-trust-panel__grid a {
    position: relative;
    overflow: hidden;
}

.home-trust-panel__grid a::before {
    content: '';
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, #2358f6, #ff7a00);
    opacity: .78;
}

.home-trust-panel__grid a::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 12px;
    width: 18px;
    height: 18px;
    background: url('/images/icons/ui-chevron-right.svg') center / contain no-repeat;
    opacity: .36;
}

.home-picker-v2--mockup {
    border: 1px solid rgba(17, 26, 54, .07);
    box-shadow: 0 16px 42px rgba(17, 26, 54, .08);
}

.budget-picker a {
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.budget-picker a:hover {
    transform: translateY(-2px);
    border-color: rgba(35, 88, 246, .16);
    box-shadow: 0 14px 32px rgba(17, 26, 54, .085);
}

@media (max-width: 900px) {
    .home-social-grid {
        grid-template-columns: 1fr;
    }

    .home-social-card {
        min-height: 138px;
        border-radius: 22px;
    }
}

@media (max-width: 767px) {
    .home-hero-grid--mockup {
        gap: 12px;
    }

    .home-quick-links--rail a:hover,
    .categories--mockup > a:hover,
    .categories--mockup article:hover,
    .home-trust-panel__grid a:hover,
    .budget-picker a:hover,
    .home-social-card:hover {
        transform: none;
    }

    .section-head--compact {
        padding-inline: 2px;
    }

    .section-head--compact a {
        min-height: 32px;
        padding-inline: 10px;
        font-size: 12px;
    }

    .home-trust-panel__grid a {
        min-height: 104px;
    }

    .ipodil-trade-banner .button,
    .home-picker-v2--mockup .budget-picker a {
        min-height: 46px;
    }
}
