/* =====================================================================
   NICHE LP — shared styles for niche ad landings (/lp/ua/beauty/v2/, /lp/ua/school/v1/).
   Scoped under body.niche-lp. Builds on beauty-lp.css (offer, announce)
   and global tokens from index-inline.css (--global-gradient, --main-black).
   New sections only: pains, migration, key features, form qualifiers.
   ===================================================================== */

.niche-lp .bs-section {
    padding: 6.25rem 15.625rem 0;
}

.niche-lp .bs-title {
    margin: 0 auto 1rem;
    max-width: 52rem;
    text-align: center;
    font-size: 3rem;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--main-black, #0b0b0b);
}

.niche-lp .bs-subtitle {
    margin: 0 auto 3rem;
    max-width: 44rem;
    text-align: center;
    font-size: 1.125rem;
    line-height: 1.5;
    opacity: 0.7;
}

.niche-lp .bs-accent {
    background: var(--global-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- Hero migration note --- */
.niche-lp .bs-hero-migrate {
    display: flex;
    align-self: center;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.25rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    background: rgba(17, 35, 54, 0.06);
    font-size: 0.9375rem;
}

.niche-lp .bs-hero-migrate b {
    font-weight: 700;
}

/* --- Pains → solutions --- */
.niche-lp .bs-pains {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.niche-lp .bs-pain {
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.5rem;
    background: #fff;
    overflow: hidden;
}

.niche-lp .bs-pain__before {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem 1.75rem;
    background: #f6f5f2;
    font-size: 1.0625rem;
    line-height: 1.45;
    color: #52514e;
}

.niche-lp .bs-pain__before::before {
    content: "✕";
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: #fbe5e5;
    color: #c93434;
    font-size: 0.75rem;
    font-weight: 700;
}

.niche-lp .bs-pain__after {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem 1.75rem 1.75rem;
    font-size: 1.0625rem;
    line-height: 1.45;
}

.niche-lp .bs-pain__after::before {
    content: "✓";
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    background: var(--global-gradient);
    color: #000;
    font-size: 0.8125rem;
    font-weight: 800;
}

.niche-lp .bs-pain__after b {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

/* --- Migration --- */
.niche-lp .bs-migrate {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 2.5rem;
    align-items: start;
    padding: 3rem;
    border-radius: 2rem;
    background: #112336;
    color: #fff;
}

.niche-lp .bs-migrate .bs-title,
.niche-lp .bs-migrate .bs-subtitle {
    margin-left: 0;
    text-align: left;
    color: #fff;
}

.niche-lp .bs-migrate .bs-subtitle {
    margin-bottom: 2rem;
    opacity: 0.75;
}

.niche-lp .bs-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: bs-step;
}

.niche-lp .bs-steps li {
    position: relative;
    padding: 0 0 1.5rem 3.25rem;
    counter-increment: bs-step;
    font-size: 1.0625rem;
    line-height: 1.45;
}

.niche-lp .bs-steps li::before {
    content: counter(bs-step);
    position: absolute;
    left: 0;
    top: -0.125rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--global-gradient);
    color: #000;
    font-weight: 800;
}

.niche-lp .bs-steps li b {
    display: block;
    font-weight: 700;
}

.niche-lp .bs-steps li span {
    opacity: 0.75;
}

.niche-lp .bs-migrate__cta {
    display: inline-flex;
    margin-top: 0.5rem;
    padding: 1rem 1.75rem;
    border-radius: 0.875rem;
    background: var(--global-gradient);
    color: #000;
    font-weight: 700;
    text-decoration: none;
}

.niche-lp .bs-quotes {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.niche-lp .bs-quote {
    margin: 0;
    padding: 1.5rem;
    border-radius: 1.25rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.niche-lp .bs-quote p {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
}

.niche-lp .bs-quote cite {
    font-style: normal;
    font-size: 0.875rem;
    opacity: 0.6;
}

.niche-lp .bs-systems {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.niche-lp .bs-systems span {
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
}

/* --- Key features --- */
.niche-lp .bs-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.niche-lp .bs-feature {
    padding: 1.75rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 1.5rem;
    background: #fff;
}

.niche-lp .bs-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: 1rem;
    border-radius: 0.875rem;
    background: var(--global-gradient);
    font-size: 1.25rem;
}

.niche-lp .bs-feature h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
    line-height: 1.25;
    font-weight: 700;
}

.niche-lp .bs-feature p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.7;
}

.niche-lp .bs-features__more {
    margin: 1.5rem 0 0;
    text-align: center;
    opacity: 0.7;
}

/* --- Form qualifiers (select) --- */
.niche-lp .form-item__select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #52514e 50%), linear-gradient(135deg, #52514e 50%, transparent 50%);
    background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.9rem) 50%;
    background-size: 0.35rem 0.35rem;
    background-repeat: no-repeat;
    cursor: pointer;
}

/* --- Responsive --- */
@media screen and (max-width: 991px) {
    .niche-lp .bs-section {
        padding: 4.5rem 2.5rem 0;
    }

    .niche-lp .bs-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .niche-lp .bs-migrate {
        grid-template-columns: 1fr;
        padding: 2.25rem;
    }
}

@media screen and (max-width: 767px) {
    .niche-lp .bs-section {
        padding: 3.5rem 1rem 0;
    }

    .niche-lp .bs-title {
        font-size: 2rem;
    }

    .niche-lp .bs-subtitle {
        margin-bottom: 2rem;
        font-size: 1rem;
    }

    .niche-lp .bs-pains,
    .niche-lp .bs-features {
        grid-template-columns: 1fr;
    }

    .niche-lp .bs-migrate {
        padding: 1.75rem 1.25rem;
        border-radius: 1.5rem;
    }

    .niche-lp .bs-pain__before,
    .niche-lp .bs-pain__after {
        padding: 1.25rem;
        font-size: 1rem;
    }
}

/* --- Pricing: niche/ad pages target teams, Free plan out of focus (homepage keeps it) --- */
.niche-lp.beauty-lp .plans-card[data-plan="free"],
.niche-lp.beauty-lp .plans-tabs__tab[data-plan="free"] {
    display: none;
}

/* --- Case block (single client story, e.g. /lp/ua/school/v1/) --- */
.niche-lp .bs-case {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.niche-lp .bs-case__facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.niche-lp .bs-case__quote {
    margin: 0;
    padding: 2rem 2.25rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
}

.niche-lp .bs-case__quote--main {
    background: #112336;
    color: #fff;
}

.niche-lp .bs-case__quote p {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    line-height: 1.35;
    font-weight: 600;
}

.niche-lp .bs-case__quote cite {
    font-style: normal;
    font-size: 0.9375rem;
    opacity: 0.65;
}

.niche-lp .bs-case__fact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    font-size: 1rem;
    line-height: 1.5;
}

.niche-lp .bs-case__fact b {
    font-size: 1.125rem;
    font-weight: 700;
}

.niche-lp .bs-case__fact span {
    opacity: 0.75;
}

@media screen and (max-width: 767px) {
    .niche-lp .bs-case__facts {
        grid-template-columns: 1fr;
    }

    .niche-lp .bs-case__quote {
        padding: 1.5rem;
    }

    .niche-lp .bs-case__quote p {
        font-size: 1.1875rem;
    }
}

.niche-lp .bs-case__link {
    align-self: center;
    padding: 0.875rem 1.5rem;
    border-radius: 0.875rem;
    background: var(--main-black, #0b0b0b);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
