/**
 * Product page: the header with the text on the left and the main screenshot
 * on the right, the short summary, the features as text and screenshot pairs,
 * the video. The blocks, the button and the typography come from role.css
 * and single.css.
 */

/* ------------------------------------------------------------ header */

.bmfaq-product__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 48px;
    align-items: center;
}

.bmfaq-product__hero--text {
    grid-template-columns: minmax(0, 1fr);
    max-width: 860px;
}

.bmfaq-sg .bmfaq-product__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.bmfaq-sg .bmfaq-product__tags li {
    margin: 0;
    padding: 5px 12px;
    border: 1px solid var(--sg-blue-bd);
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--sg-blue-dk);
    font-size: 13px;
    line-height: 1.3;
}

.bmfaq-sg a.bmfaq-product__cta {
    display: inline-block;
    min-width: 240px;
    margin-top: 28px;
}

.bmfaq-sg .bmfaq-product__shot {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--sg-line);
    border-radius: 16px;
    background: #FFFFFF;
    box-shadow: 0 18px 40px -24px rgba(1, 46, 184, 0.35);
}

.bmfaq-product__shot img {
    display: block;
    width: 100%;
    height: auto;
}

/* ------------------------------------------------------------ summary */

.bmfaq-sg .bmfaq-product__summary {
    margin: 40px 0 8px;
    padding: 22px 26px;
    border-left: 3px solid var(--sg-blue);
    border-radius: 0 12px 12px 0;
    background: var(--sg-blue-bg);
}

.bmfaq-sg .bmfaq-product__summary-label {
    margin: 0 0 6px;
    padding: 0;
    color: var(--sg-blue-dk);
    font-family: var(--sg-over);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.bmfaq-sg .bmfaq-product__summary p {
    margin: 0;
    color: var(--sg-text);
    font-size: 17px;
    line-height: 1.6;
}

.bmfaq-product__summary + .bmfaq-role__block {
    border-top: 0;
}

/* ------------------------------------------------------------ features */

.bmfaq-sg .bmfaq-features {
    display: flex;
    flex-direction: column;
    gap: 56px;
    margin-top: 32px;
}

.bmfaq-sg .bmfaq-feature {
    max-width: 760px;
}

.bmfaq-sg .bmfaq-feature--shot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
    max-width: none;
}

.bmfaq-sg .bmfaq-feature--flip .bmfaq-feature__text {
    order: 2;
}

.bmfaq-sg .bmfaq-feature__text h3 {
    margin: 0 0 10px;
    padding: 0;
    color: var(--sg-text);
    font-size: 22px;
    line-height: 1.3;
}

.bmfaq-sg .bmfaq-feature__text p {
    margin: 0;
}

.bmfaq-sg .bmfaq-sg__content .bmfaq-feature__shot {
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--sg-line);
    border-radius: 14px;
    background: var(--sg-surface);
}

.bmfaq-sg .bmfaq-sg__content .bmfaq-feature__shot img {
    display: block;
    width: auto;
    max-width: 100%;
    /* A tall chat screenshot stays about one screen high, centred on its background */
    max-height: 560px;
    margin: 0 auto;
    border-radius: 0;
}

/* An animation sits in the frame like a screenshot */
.bmfaq-sg .bmfaq-sg__content .bmfaq-feature__video {
    display: block;
    width: 100%;
    height: auto;
    /* The frame keeps its place before the video loads */
    aspect-ratio: 16 / 10;
}

/* A video inside the text (the setup of the widget) fills the column in a frame */
.bmfaq-sg .bmfaq-role__body figure:has(> video) {
    margin: 4px 0 24px;
    overflow: hidden;
    border: 1px solid var(--sg-line);
    border-radius: 14px;
    background: var(--sg-surface);
}

.bmfaq-sg .bmfaq-role__body figure > video {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
}

/* A phone screenshot inside the text stays phone sized */
.bmfaq-sg .bmfaq-role__block--mobile .bmfaq-role__body img {
    display: block;
    max-width: min(320px, 100%);
    margin: 8px auto 0;
    border: 1px solid var(--sg-line);
    border-radius: 24px;
}

/* ------------------------------------------------------------ text blocks */

/* How it works: numbered steps, like how to hire on a role page */

.bmfaq-sg .bmfaq-role__block--how-it-works .bmfaq-role__body > p:first-child {
    margin: 0 0 20px;
    color: var(--sg-muted);
}

.bmfaq-sg .bmfaq-role__block--how-it-works .bmfaq-role__body ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: bmfaq-step;
}

.bmfaq-sg .bmfaq-role__block--how-it-works .bmfaq-role__body ol > li {
    position: relative;
    margin: 0 0 14px;
    padding: 2px 0 0 44px;
    min-height: 30px;
    counter-increment: bmfaq-step;
}

.bmfaq-sg .bmfaq-role__block--how-it-works .bmfaq-role__body ol > li::before {
    content: counter(bmfaq-step);
    position: absolute;
    top: 0;
    left: 0;
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sg-blue-bg);
    color: var(--sg-blue);
    font-size: 14px;
    font-weight: 600;
}

/* A table in a scroll box: the box scrolls on a phone, the page does not */

.bmfaq-sg .bmfaq-sg__content .table-scroll {
    max-width: 100%;
    margin: 0 0 20px;
    overflow-x: auto;
    border: 1px solid var(--sg-line);
    border-radius: 12px;
    -webkit-overflow-scrolling: touch;
}

.bmfaq-sg .bmfaq-sg__content .table-scroll table {
    display: table;
    width: 100%;
    min-width: 640px;
    margin: 0;
    overflow: visible;
    border: 0;
    border-radius: 0;
}

.bmfaq-sg .bmfaq-sg__content .table-scroll tbody th {
    background: #FFFFFF;
    color: var(--sg-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    border-bottom: 1px solid var(--sg-line);
}

.bmfaq-sg .bmfaq-sg__content .table-scroll tr:last-child > th {
    border-bottom: 0;
}

/* ------------------------------------------------------------ video */

.bmfaq-product__video {
    position: relative;
    overflow: hidden;
    margin-top: 20px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    background: #000000;
}

.bmfaq-product__video iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ------------------------------------------------------------ smaller screens */

@media (max-width: 1024px) {
    .bmfaq-product__hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .bmfaq-sg .bmfaq-feature--shot {
        gap: 32px;
    }
}

@media (max-width: 767px) {
    .bmfaq-sg a.bmfaq-product__cta {
        display: block;
        min-width: 0;
    }

    .bmfaq-sg .bmfaq-product__summary {
        margin-top: 28px;
        padding: 18px 20px;
    }

    .bmfaq-sg .bmfaq-features {
        gap: 40px;
    }

    /* On a phone the screenshot goes under its text */
    .bmfaq-sg .bmfaq-feature--shot {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .bmfaq-sg .bmfaq-feature--flip .bmfaq-feature__text {
        order: 0;
    }

    .bmfaq-sg .bmfaq-feature__text h3 {
        font-size: 20px;
    }
}
