/* ============================================================================
   Styles for the public AI brand monitor page.

   Loaded only by that page. It borrows the tokens and the form card from
   content-generator.css, which the view loads first, and adds the sections
   that are specific to this page.
   ========================================================================= */

.bm-page {
    --bm-ink: #1d2430;
    --bm-muted: #6f7480;
    --bm-line: #e8eaee;
    --bm-surface: #fff;
    --bm-soft: #f6f7f9;
    --bm-dark: #0e243a;
    --bm-radius: 16px;
    --bm-measure: 1340px;
}

.bm-page section > .container-fluid {
    max-width: var(--bm-measure);
    margin-inline: auto;
}

.bm-page .head-section-title {
    margin-bottom: 48px;
}

.bm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: rgba(201, 29, 19, 0.08);
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 600;
}

/* ------------------------------------------------------------------ hero -- */

.bm-hero {
    padding: 55px 0 50px;
}

.bm-hero-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 44px;
}

.bm-hero-copy {
    flex: 1 1 460px;
}

.bm-hero-title {
    font-size: 40px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--bm-ink);
    margin: 0 0 20px;
}

.bm-hero-title .colored-text {
    color: var(--primary-color);
}

.bm-hero-text {
    font-size: 16px;
    line-height: 34px;
    color: var(--bm-muted);
    margin: 0 0 26px;
}

.bm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

.bm-btn-primary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 12px;
    background: var(--primary-color);
    color: #fff !important;
    font-size: 16px;
    font-weight: 600;
}

.bm-btn-primary:hover {
    background: var(--primary-color-hover);
    color: #fff !important;
}

.bm-hero-note {
    font-size: 14px;
    line-height: 26px;
    color: var(--bm-muted);
}

/* the mocked assistant answer */
.bm-hero-figure {
    flex: 1 1 400px;
}

.bm-answer-card {
    padding: 24px;
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
    background: var(--bm-surface);
    box-shadow: 0 24px 60px -34px rgba(19, 26, 41, 0.45);
}

.bm-answer-label {
    display: inline-block;
    padding: 5px 12px;
    margin-bottom: 16px;
    border-radius: 999px;
    background: var(--bm-soft);
    color: var(--bm-muted);
    font-size: 12px;
    font-weight: 600;
}

.bm-answer-question {
    font-size: 15px;
    line-height: 28px;
    color: var(--bm-ink);
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid var(--bm-line);
}

.bm-answer-caption {
    font-size: 13px;
    color: var(--bm-muted);
    margin-bottom: 14px;
}

.bm-answer-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px dashed var(--bm-line);
    /* Each row rises in after the one above it. The stagger comes from the
       view as --bm-delay so the timing still works if the list length changes.
       The fill is "both" rather than "forwards" with a hidden base rule: the
       backwards half hides the row during its delay, and a row still shows if
       the animation never runs at all. */
    animation: bmAnswerRise 0.5s ease both;
    animation-delay: var(--bm-delay, 0s);
}

.bm-answer-row:last-child {
    border-bottom: 0;
}

@keyframes bmAnswerRise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bm-answer-row {
        animation: none;
    }
}

.bm-answer-rank {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bm-soft);
    color: var(--bm-muted);
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bm-answer-brand {
    flex: 1 1 auto;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--bm-ink);
}

.bm-answer-share {
    font-size: 13px;
    color: var(--bm-muted);
    white-space: nowrap;
}

.bm-answer-row.is-you .bm-answer-rank {
    background: rgba(201, 29, 19, 0.10);
    color: var(--primary-color);
}

.bm-answer-row.is-you .bm-answer-brand,
.bm-answer-row.is-you .bm-answer-share {
    color: var(--primary-color);
}

/* --------------------------------------------------------------- problem -- */

.bm-problem {
    padding: 50px 0;
    background: var(--bm-soft);
}

.bm-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 22px;
}

.bm-card {
    padding: 28px 26px;
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
    background: var(--bm-surface);
}

.bm-card h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--bm-ink);
    margin: 0 0 12px;
}

.bm-card p {
    font-size: 15px;
    line-height: 30px;
    color: var(--bm-muted);
    margin: 0;
}

/* ------------------------------------------------------------------- why -- */

.bm-why {
    padding: 60px 0;
}

.bm-why-lead {
    max-width: 900px;
    margin: 0 auto 50px;
    text-align: center;
}

.bm-why-lead h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--bm-ink);
    margin: 0 0 16px;
}

.bm-why-lead p {
    font-size: 16px;
    line-height: 34px;
    color: var(--bm-muted);
    margin: 0;
}

.bm-compare {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
    overflow: hidden;
}

.bm-compare th,
.bm-compare td {
    padding: 16px 20px;
    font-size: 15px;
    line-height: 28px;
    text-align: start;
    border-bottom: 1px solid var(--bm-line);
    vertical-align: top;
}

.bm-compare tr:last-child th,
.bm-compare tr:last-child td {
    border-bottom: 0;
}

.bm-compare thead th {
    background: var(--bm-soft);
    font-size: 15px;
    font-weight: 700;
    color: var(--bm-ink);
}

.bm-compare tbody th {
    width: 22%;
    font-weight: 600;
    color: var(--bm-ink);
    background: rgba(246, 247, 249, 0.6);
}

.bm-compare td {
    color: var(--bm-muted);
}

.bm-compare .bm-compare-geo {
    color: var(--bm-ink);
    background: rgba(51, 168, 83, 0.05);
}

.bm-compare-scroll {
    overflow-x: auto;
}

/* ------------------------------------------------------------------ form -- */

.bm-start {
    padding: 60px 0;
    background: var(--bm-soft);
}

.bm-start-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 40px;
}

.bm-start-form {
    flex: 1 1 420px;
}

.bm-start-list {
    flex: 1 1 460px;
}

.bm-start-list h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--bm-ink);
    margin: 0 0 12px;
}

.bm-start-list > p {
    font-size: 15px;
    line-height: 32px;
    color: var(--bm-muted);
    margin: 0 0 24px;
}

.bm-get {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: bm-get;
}

.bm-get li {
    position: relative;
    padding-inline-start: 52px;
    margin-bottom: 22px;
}

.bm-get li:last-child {
    margin-bottom: 0;
}

.bm-get li:before {
    counter-increment: bm-get;
    content: counter(bm-get);
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(201, 29, 19, 0.08);
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bm-get h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--bm-ink);
    margin: 6px 0 6px;
}

.bm-get p {
    font-size: 14.5px;
    line-height: 28px;
    color: var(--bm-muted);
    margin: 0;
}

.bm-field-hint {
    display: block;
    margin-top: 7px;
    font-size: 12.5px;
    line-height: 22px;
    color: var(--bm-muted);
}

/* ----------------------------------------------------------------- steps -- */

.bm-steps {
    padding: 60px 0;
}

/* ------------------------------------------------------------- advantage -- */

.bm-advantage {
    padding: 20px 0 60px;
}

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

.bm-features {
    padding: 60px 0;
    background: var(--bm-soft);
}

.bm-features .bm-cards {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* ----------------------------------------------------------- competitors -- */

.bm-competitors {
    padding: 60px 0;
}

.bm-competitors-lead {
    max-width: 900px;
    margin: 0 auto 44px;
    text-align: center;
    font-size: 16px;
    line-height: 34px;
    color: var(--bm-muted);
}

.bm-split {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.bm-split > * {
    flex: 1 1 420px;
}

.bm-intent {
    padding: 28px 26px;
    border: 1px solid var(--bm-line);
    border-radius: var(--bm-radius);
    background: var(--bm-surface);
}

.bm-intent h3 {
    font-size: 19px;
    font-weight: 700;
    color: var(--bm-ink);
    margin: 0 0 22px;
}

.bm-bar {
    margin-bottom: 18px;
}

.bm-bar-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
    font-size: 14px;
    color: var(--bm-ink);
}

.bm-bar-value {
    font-weight: 700;
    color: var(--bm-muted);
}

.bm-bar-track {
    height: 8px;
    border-radius: 999px;
    background: var(--bm-soft);
    overflow: hidden;
}

.bm-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: var(--primary-color);
}

/* a low score is the point being made, so weak bars read as the warning */
.bm-bar.is-strong .bm-bar-fill {
    background: var(--secondary-color);
}

.bm-intent-note {
    margin: 20px 0 0;
    font-size: 14px;
    line-height: 28px;
    color: var(--bm-muted);
}

/* -------------------------------------------------------------- audience -- */

.bm-audience {
    padding: 20px 0 60px;
}

.bm-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.bm-tags span {
    padding: 11px 22px;
    border: 1px solid var(--bm-line);
    border-radius: 999px;
    background: var(--bm-surface);
    font-size: 15px;
    color: var(--bm-ink);
}

/* ------------------------------------------------------------------- faq -- */

.bm-faq {
    padding: 60px 0;
    background: var(--bm-soft);
}

.bm-faq-list {
    max-width: 900px;
    margin-inline: auto;
}

.bm-faq-item {
    border: 1px solid var(--bm-line);
    border-radius: 12px;
    background: var(--bm-surface);
    margin-bottom: 14px;
    overflow: hidden;
}

.bm-faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    font-size: 16px;
    font-weight: 600;
    color: var(--bm-ink);
    cursor: pointer;
    list-style: none;
}

.bm-faq-item > summary::-webkit-details-marker {
    display: none;
}

.bm-faq-item > summary:after {
    content: "+";
    flex: 0 0 auto;
    font-size: 20px;
    font-weight: 400;
    color: var(--primary-color);
}

.bm-faq-item[open] > summary:after {
    content: "\2212";
}

.bm-faq-answer {
    padding: 0 22px 20px;
    font-size: 15px;
    line-height: 32px;
    color: var(--bm-muted);
}

/* ------------------------------------------------------------------- cta -- */

.bm-cta {
    padding: 20px 0 70px;
}

.bm-cta-box {
    padding: 50px 40px;
    border-radius: 24px;
    background: var(--bm-dark);
    text-align: center;
}

.bm-cta-box h2 {
    font-size: 30px;
    line-height: 1.5;
    font-weight: 700;
    color: #fff;
    margin: 0 0 16px;
}

.bm-cta-box p {
    max-width: 760px;
    margin: 0 auto 28px;
    font-size: 16px;
    line-height: 32px;
    color: rgba(255, 255, 255, 0.75);
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 991px) {
    .bm-hero-title {
        font-size: 30px;
    }

    .bm-why-lead h2 {
        font-size: 26px;
    }

    .bm-cta-box h2 {
        font-size: 24px;
    }
}

@media (max-width: 640px) {
    .bm-hero-title {
        font-size: 25px;
    }

    .bm-answer-card,
    .bm-card,
    .bm-intent {
        padding: 20px;
    }

    .bm-compare th,
    .bm-compare td {
        padding: 13px 14px;
        font-size: 14px;
    }

    .bm-compare tbody th {
        width: auto;
        min-width: 130px;
    }

    .bm-cta-box {
        padding: 32px 20px;
    }
}
