.bs-product {
    --bs-ink: #050b22;
    --bs-muted: #5a6479;
    --bs-line: #dfe5f2;
    --bs-blue: #3153ff;
    --bs-cyan: #19bdf2;
    --bs-pink: #c912ed;
    --bs-soft: #f5f7fc;
    color: var(--bs-ink);
    overflow: hidden;
}

.bs-product h1,
.bs-product h2,
.bs-product h3 {
    letter-spacing: 0;
}

.bs-product-hero {
    min-height: min(820px, calc(100vh - 72px));
    position: relative;
    isolation: isolate;
    background: #050b22;
    color: #fff;
}

.bs-product-hero__backdrop {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(5, 11, 34, .98) 0%, rgba(5, 11, 34, .9) 48%, rgba(5, 11, 34, .32) 100%),
        url("../images/bettersites-product-3.png") right 8% center / auto 112% no-repeat;
    opacity: .95;
}

.bs-product-hero__inner {
    min-height: min(820px, calc(100vh - 72px));
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
    align-items: center;
    gap: 4rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bs-product-hero__copy {
    max-width: 760px;
}

.bs-product-brand {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    font-size: 1.25rem;
    text-decoration: none;
}

.bs-product-brand img {
    width: 52px;
    height: 52px;
}

.bs-product-eyebrow,
.bs-product-kicker {
    margin: 1.5rem 0 .75rem;
    color: #36c7f4;
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.bs-product-hero h1 {
    max-width: 750px;
    margin: 0;
    color: #fff;
    font-size: clamp(2.6rem, 5.2vw, 5rem);
    line-height: 1.02;
}

.bs-product-lead {
    max-width: 690px;
    margin: 1.5rem 0 0;
    color: #d9e1f2;
    font-size: 1.18rem;
    line-height: 1.7;
}

.bs-product-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    margin-top: 2rem;
}

.bs-product-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .8rem 1.2rem;
    border: 1px solid transparent;
    border-radius: 6px;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none;
    transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.bs-product-button:hover {
    transform: translateY(-2px);
}

.bs-product-button--primary {
    background: #fff;
    color: var(--bs-ink);
}

.bs-product-button--primary:hover {
    background: #eef2ff;
}

.bs-product-button--ghost {
    border-color: rgba(255, 255, 255, .42);
    color: #fff;
}

.bs-product-button--ghost:hover {
    border-color: #fff;
}

.bs-product-note {
    margin-top: 1rem;
    color: #aeb8cf;
    font-size: .9rem;
}

.bs-product-hero__media {
    justify-self: center;
    margin: 0;
    filter: drop-shadow(0 35px 45px rgba(0, 0, 0, .35));
}

.bs-product-hero__media img {
    width: min(334px, 72vw);
    max-height: 650px;
    object-fit: contain;
}

.bs-product-platforms {
    border-bottom: 1px solid var(--bs-line);
    background: #fff;
}

.bs-product-platforms__inner {
    min-height: 76px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bs-product-platforms__label {
    margin-right: auto;
    color: var(--bs-muted);
    font-weight: 650;
}

.bs-product-platforms a,
.bs-product-text-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    color: var(--bs-ink);
    font-weight: 750;
    text-decoration: none;
}

.bs-product-platforms a:hover,
.bs-product-text-link:hover {
    color: var(--bs-blue);
}

.bs-product-section,
.bs-product-showcase,
.bs-product-africa,
.bs-product-comparison {
    padding: 6rem 0;
}

.bs-product-heading {
    max-width: 780px;
    margin-bottom: 3rem;
}

.bs-product-heading .bs-product-kicker,
.bs-product-africa .bs-product-kicker,
.bs-product-final .bs-product-kicker {
    margin-top: 0;
    color: var(--bs-blue);
}

.bs-product-heading h2,
.bs-product-africa h2,
.bs-product-final h2 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 3.3rem);
    line-height: 1.12;
}

.bs-product-heading > p:last-child,
.bs-product-africa p,
.bs-product-final p {
    margin: 1rem 0 0;
    color: var(--bs-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.bs-product-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bs-product-steps li {
    border-top: 3px solid var(--bs-blue);
    padding-top: 1.5rem;
}

.bs-product-steps span {
    color: var(--bs-blue);
    font-size: .82rem;
    font-weight: 800;
}

.bs-product-steps h3,
.bs-product-features h3,
.bs-product-audiences h3 {
    margin: .65rem 0 .5rem;
    font-size: 1.18rem;
}

.bs-product-steps p,
.bs-product-features p,
.bs-product-audiences p {
    margin: 0;
    color: var(--bs-muted);
    line-height: 1.7;
}

.bs-product-showcase {
    background: var(--bs-ink);
    color: #fff;
}

.bs-product-heading--light h2 {
    color: #fff;
}

.bs-product-heading--light > p:last-child {
    color: #b8c4da;
}

.bs-product-screens {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    align-items: end;
}

.bs-product-screens figure {
    margin: 0;
    text-align: center;
}

.bs-product-screens img {
    width: min(100%, 334px);
    height: auto;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 4px;
}

.bs-product-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--bs-line);
    border-left: 1px solid var(--bs-line);
}

.bs-product-features article {
    min-height: 230px;
    padding: 1.7rem;
    border-right: 1px solid var(--bs-line);
    border-bottom: 1px solid var(--bs-line);
    background: #fff;
}

.bs-product-feature-icon {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bs-blue);
    background: #eef1ff;
    border-radius: 6px;
}

.bs-product-africa {
    background: #eef8fb;
}

.bs-product-africa__grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 5rem;
    align-items: center;
}

.bs-product-africa__grid ul {
    margin: 0;
    padding: 2rem;
    border: 1px solid #cce5ec;
    background: #fff;
    list-style: none;
}

.bs-product-africa__grid li {
    display: flex;
    gap: .75rem;
    padding: .8rem 0;
    border-bottom: 1px solid #e5eef1;
    color: #26354a;
}

.bs-product-africa__grid li:last-child {
    border-bottom: 0;
}

.bs-product-africa__grid li svg {
    flex: 0 0 auto;
    color: #0d9a82;
}

.bs-product-text-link {
    margin-top: 1.5rem;
    color: var(--bs-blue);
}

.bs-product-audiences {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
}

.bs-product-audiences article {
    min-height: 170px;
    padding: 1.5rem;
    border-left: 3px solid var(--bs-pink);
    background: var(--bs-soft);
}

.bs-product-comparison {
    background: var(--bs-soft);
}

.bs-product-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--bs-line);
    background: #fff;
}

.bs-product-table-wrap table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    text-align: left;
}

.bs-product-table-wrap th,
.bs-product-table-wrap td {
    padding: 1.2rem;
    border-bottom: 1px solid var(--bs-line);
    vertical-align: top;
}

.bs-product-table-wrap thead th {
    background: var(--bs-ink);
    color: #fff;
}

.bs-product-table-wrap tbody th {
    width: 22%;
    color: var(--bs-ink);
}

.bs-product-table-wrap td {
    color: var(--bs-muted);
}

.bs-product-comparison__link {
    margin: 1.25rem 0 0;
    color: var(--bs-muted);
}

.bs-product-comparison__link a,
.bs-product-related a {
    color: var(--bs-blue);
    font-weight: 700;
}

.bs-product-faq__list {
    max-width: 860px;
}

.bs-product-faq details {
    border-bottom: 1px solid var(--bs-line);
    padding: 1.25rem 0;
}

.bs-product-faq summary {
    cursor: pointer;
    font-size: 1.08rem;
    font-weight: 750;
}

.bs-product-faq details p {
    max-width: 760px;
    margin: .9rem 0 0;
    color: var(--bs-muted);
    line-height: 1.75;
}

.bs-product-final {
    padding: 4rem 0;
    background: var(--bs-ink);
    color: #fff;
}

.bs-product-final__inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 2rem;
}

.bs-product-final h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.bs-product-final p {
    color: #b8c4da;
}

.bs-product-final__actions {
    display: grid;
    gap: .65rem;
    justify-items: center;
    min-width: 328px;
}

.bs-product-store-badges {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .55rem;
}

.bs-product-store-badges a {
    width: 154px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    overflow: hidden;
    transition: opacity .2s ease, transform .2s ease;
}

.bs-product-store-badges a:hover {
    opacity: .88;
    transform: translateY(-2px);
}

.bs-product-store-badges img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
}

/* Google's source badge includes transparent export padding. */
.bs-product-store-badges a:first-child img {
    width: 184px;
    height: 71px;
    max-width: none;
    flex: 0 0 auto;
}

.bs-product-related {
    padding: 2rem 0;
    background: #fff;
}

.bs-product-related p {
    margin: 0;
    color: var(--bs-muted);
    line-height: 1.7;
}

@media (max-width: 900px) {
    .bs-product-hero__inner,
    .bs-product-africa__grid {
        grid-template-columns: 1fr;
    }

    .bs-product-hero__inner {
        gap: 2.5rem;
    }

    .bs-product-hero__backdrop {
        background: linear-gradient(180deg, rgba(5, 11, 34, .98), rgba(5, 11, 34, .9));
    }

    .bs-product-hero__media {
        display: none;
    }

    .bs-product-features,
    .bs-product-audiences {
        grid-template-columns: repeat(2, 1fr);
    }

    .bs-product-final__inner {
        grid-template-columns: auto 1fr;
    }

    .bs-product-final__actions {
        grid-column: 1 / -1;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .bs-product-hero,
    .bs-product-hero__inner {
        min-height: auto;
    }

    .bs-product-hero__inner {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    .bs-product-hero h1 {
        font-size: 2.45rem;
    }

    .bs-product-platforms__inner {
        flex-wrap: wrap;
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

    .bs-product-platforms__label {
        width: 100%;
    }

    .bs-product-section,
    .bs-product-showcase,
    .bs-product-africa,
    .bs-product-comparison {
        padding: 4rem 0;
    }

    .bs-product-steps,
    .bs-product-screens,
    .bs-product-features,
    .bs-product-audiences {
        grid-template-columns: 1fr;
    }

    .bs-product-screens {
        gap: 1rem;
    }

    .bs-product-screens figure:nth-child(n+3) {
        display: none;
    }

    .bs-product-final__inner {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bs-product-button {
        transition: none;
    }
}
