/* ═══════════════════════════════════════════════════════════════════════
   BrandMentions — Redesign component library
   Custom UI patterns beyond the existing theme components.
   Loaded via mu-plugin so it's available site-wide.
   ═══════════════════════════════════════════════════════════════════════ */

/* ─── BIG-TYPE HERO (homepage, landing) ───────────────────────────────── */
.bm-hero-big {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}
.bm-hero-big .bm-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #60A5FA;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 28px;
}
.bm-hero-big .bm-eyebrow::before {
    content: '';
    width: 32px;
    height: 1px;
    background: #60A5FA;
}
.bm-hero-big h1 {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: clamp(2.5rem, 5.5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    max-width: 900px;
    margin: 0 0 32px;
}
.bm-hero-big .bm-lede {
    font-size: clamp(1.125rem, 1.4vw, 1.375rem);
    line-height: 1.55;
    color: #B0B7C3;
    max-width: 640px;
    margin: 0 0 40px;
}
.bm-hero-big .bm-cta-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}
.bm-hero-big .bm-cta-meta {
    font-size: 0.875rem;
    color: #6B7280;
    margin-left: 8px;
}

/* ─── KILLER DEMO STRIP (single full-width AI citation comparison) ───── */
.bm-demo-strip {
    background: linear-gradient(180deg, #0A0F1C 0%, #0F1422 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.bm-demo-strip::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,0.5), transparent);
}
.bm-demo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
    position: relative;
}
.bm-demo-grid::before {
    content: 'vs';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: white;
    font-size: 0.875rem;
    z-index: 2;
    box-shadow: 0 8px 24px rgba(59,130,246,0.4);
}
@media (max-width: 768px) {
    .bm-demo-grid { grid-template-columns: 1fr; gap: 24px; }
    .bm-demo-grid::before { position: static; transform: none; margin: 0 auto 8px; }
}
.bm-demo-side {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 24px;
}
.bm-demo-side.is-without { border-color: rgba(239,68,68,0.25); }
.bm-demo-side.is-with    { border-color: rgba(16,185,129,0.25); }
.bm-demo-side .bm-side-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 16px;
}
.bm-demo-side.is-without .bm-side-label {
    background: rgba(239,68,68,0.15);
    color: #FCA5A5;
}
.bm-demo-side.is-with .bm-side-label {
    background: rgba(16,185,129,0.15);
    color: #6EE7B7;
}
.bm-demo-prompt {
    background: rgba(0,0,0,0.3);
    border-left: 2px solid #3B82F6;
    padding: 12px 16px;
    margin-bottom: 12px;
    border-radius: 0 6px 6px 0;
    font-size: 0.875rem;
    color: #D1D5DB;
}
.bm-demo-answer {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: #E5E7EB;
}
.bm-demo-answer strong.brand { color: #60A5FA; }
.bm-demo-answer strong.miss { color: #FCA5A5; text-decoration: line-through; opacity: 0.6; }

/* ─── HUGE-NUMBER PROOF BLOCK ─────────────────────────────────────────── */
.bm-proof-row {
    padding: 80px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bm-proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
@media (max-width: 768px) {
    .bm-proof-grid { grid-template-columns: repeat(2, 1fr); }
}
.bm-proof-item .bm-proof-num {
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, #60A5FA, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}
.bm-proof-item .bm-proof-label {
    font-size: 0.9375rem;
    color: #B0B7C3;
    line-height: 1.4;
}

/* ─── TIER LADDER (vertical stage progression) ────────────────────────── */
.bm-tier-ladder {
    max-width: 880px;
    margin: 0 auto;
    position: relative;
}
.bm-tier-ladder::before {
    content: '';
    position: absolute;
    left: 24px;
    top: 16px;
    bottom: 16px;
    width: 2px;
    background: linear-gradient(180deg, rgba(59,130,246,0.6), rgba(139,92,246,0.6));
}
.bm-tier-rung {
    position: relative;
    padding: 28px 0 28px 72px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.bm-tier-rung:last-child { border-bottom: none; }
.bm-tier-rung::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 36px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #0A0F1C;
    border: 2px solid #3B82F6;
    z-index: 2;
}
.bm-tier-rung[data-tier="enterprise"]::before { border-color: #8B5CF6; }
.bm-tier-rung[data-tier="enterprise"] .bm-tier-stage { color: #A78BFA; }
.bm-tier-stage {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #60A5FA;
    margin-bottom: 6px;
}
.bm-tier-rung h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #F9FAFB;
}
.bm-tier-rung p {
    font-size: 1rem;
    color: #9CA3AF;
    line-height: 1.55;
    margin: 0 0 12px;
    max-width: 640px;
}
.bm-tier-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.875rem;
    color: #6B7280;
}
.bm-tier-meta strong { color: #D1D5DB; font-weight: 600; }
.bm-tier-link {
    color: #60A5FA;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
}
.bm-tier-link:hover { text-decoration: underline; }

/* ─── FEATURED CASE STUDY (asymmetric showcase) ───────────────────────── */
.bm-featured-case {
    background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(139,92,246,0.04));
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 768px) {
    .bm-featured-case { grid-template-columns: 1fr; padding: 32px 24px; gap: 24px; }
}
.bm-featured-meta {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #60A5FA;
    font-weight: 700;
    margin-bottom: 12px;
}
.bm-featured-headline {
    font-size: clamp(1.5rem, 2.5vw, 2.25rem);
    line-height: 1.15;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
}
.bm-featured-blurb {
    font-size: 1rem;
    color: #B0B7C3;
    line-height: 1.6;
    margin: 0 0 20px;
}
.bm-featured-metric-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.bm-featured-metric .bm-metric-num {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #60A5FA, #A78BFA);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}
.bm-featured-metric .bm-metric-label {
    font-size: 0.875rem;
    color: #9CA3AF;
    line-height: 1.4;
    margin-top: 6px;
}

/* ─── COMPARISON TABLE (replaces card-grids on /pricing/) ─────────────── */
.bm-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 40px 0;
    background: rgba(255,255,255,0.02);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.bm-compare-table th,
.bm-compare-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.9375rem;
}
.bm-compare-table th {
    background: rgba(59,130,246,0.05);
    font-weight: 600;
    color: #F9FAFB;
    font-size: 0.875rem;
    letter-spacing: 0.01em;
}
.bm-compare-table th.is-feature { color: #9CA3AF; font-weight: 500; }
.bm-compare-table td.is-feature {
    color: #D1D5DB;
    font-weight: 500;
}
.bm-compare-table tr:last-child td { border-bottom: none; }
.bm-compare-table tr.is-divider td {
    background: rgba(255,255,255,0.03);
    color: #60A5FA;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 12px 20px;
}
.bm-compare-table .col-startup    { color: #6EE7B7; }
.bm-compare-table .col-flagship   { color: #60A5FA; font-weight: 600; }
.bm-compare-table .col-enterprise { color: #A78BFA; }
.bm-compare-table .yes { color: #10B981; font-weight: 600; }
.bm-compare-table .no  { color: #6B7280; }
@media (max-width: 768px) {
    .bm-compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ─── PRICE CARDS (cleaner than service-card pattern) ─────────────────── */
.bm-price-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 32px 0;
}
@media (max-width: 1024px) { .bm-price-row { grid-template-columns: 1fr; } }
.bm-price-card {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 32px;
    position: relative;
    transition: all 0.2s ease;
}
.bm-price-card:hover { border-color: rgba(59,130,246,0.3); transform: translateY(-2px); }
.bm-price-card.is-featured {
    border-color: rgba(59,130,246,0.4);
    background: linear-gradient(180deg, rgba(59,130,246,0.06), transparent);
    box-shadow: 0 8px 32px rgba(59,130,246,0.08);
}
.bm-price-card.is-featured::before {
    content: 'Most chosen';
    position: absolute;
    top: -10px;
    right: 24px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.bm-price-card .bm-tier-name {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9CA3AF;
    margin-bottom: 8px;
}
.bm-price-card .bm-tier-fits {
    font-size: 0.875rem;
    color: #6B7280;
    margin-bottom: 16px;
}
.bm-price-card .bm-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 8px;
}
.bm-price-card .bm-price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #F9FAFB;
    line-height: 1;
    font-family: 'Space Grotesk', sans-serif;
}
.bm-price-card .bm-price-period { color: #9CA3AF; font-size: 1rem; }
.bm-price-card .bm-price-commit {
    font-size: 0.8125rem;
    color: #6B7280;
    margin-bottom: 24px;
}

/* ─── STICKY TOC (long-form pages) ────────────────────────────────────── */
.bm-longform-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 64px;
    align-items: start;
}
@media (max-width: 1024px) {
    .bm-longform-layout { grid-template-columns: 1fr; gap: 0; }
    .bm-toc { display: none; }
}
.bm-toc {
    position: sticky;
    top: 100px;
    padding-right: 24px;
    border-right: 1px solid rgba(255,255,255,0.06);
}
.bm-toc-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #6B7280;
    margin: 0 0 16px;
}
.bm-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: toc;
}
.bm-toc li {
    counter-increment: toc;
    margin-bottom: 14px;
    font-size: 0.875rem;
    line-height: 1.4;
    padding-left: 28px;
    position: relative;
}
.bm-toc li::before {
    content: counter(toc, decimal-leading-zero);
    position: absolute;
    left: 0;
    color: #4B5563;
    font-weight: 600;
    font-size: 0.75rem;
}
.bm-toc a {
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.15s;
}
.bm-toc a:hover { color: #60A5FA; }

/* ─── PULL QUOTE (editorial breakaway) ────────────────────────────────── */
.bm-pull-quote {
    border-left: 3px solid #60A5FA;
    padding: 8px 0 8px 28px;
    margin: 48px 0;
    font-family: 'Space Grotesk', serif;
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    line-height: 1.4;
    font-weight: 500;
    color: #F9FAFB;
    letter-spacing: -0.01em;
    max-width: 720px;
}
.bm-pull-quote .bm-attribution {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 400;
    color: #9CA3AF;
    margin-top: 12px;
    letter-spacing: 0;
}

/* ─── CALLOUT BOX (inline narrative interruption) ────────────────────── */
.bm-callout {
    background: rgba(59,130,246,0.04);
    border: 1px solid rgba(59,130,246,0.15);
    border-radius: 8px;
    padding: 24px 28px;
    margin: 32px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.bm-callout-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: rgba(59,130,246,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60A5FA;
}
.bm-callout-content { flex: 1; }
.bm-callout-content strong {
    display: block;
    color: #F9FAFB;
    margin-bottom: 4px;
    font-size: 0.9375rem;
}
.bm-callout-content p {
    margin: 0;
    color: #B0B7C3;
    font-size: 0.9375rem;
    line-height: 1.55;
}

/* ─── LONG-FORM BODY (better typography in narrative sections) ───────── */
.bm-longform-body h2 {
    font-size: clamp(1.5rem, 2.2vw, 2rem);
    font-weight: 700;
    margin: 56px 0 16px;
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.bm-longform-body h2:first-child { margin-top: 0; }
.bm-longform-body h3 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
    color: #F9FAFB;
}
.bm-longform-body p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: #B0B7C3;
    margin: 0 0 18px;
    max-width: 720px;
}
.bm-longform-body p strong { color: #E5E7EB; }
.bm-longform-body ul, .bm-longform-body ol {
    color: #B0B7C3;
    line-height: 1.7;
    margin: 0 0 24px;
    padding-left: 24px;
    max-width: 720px;
}
.bm-longform-body li { margin-bottom: 8px; }
.bm-longform-body em { color: #D1D5DB; font-style: italic; }

/* ─── DATA STRIP (inline data visualization, CSS-only bar chart) ─────── */
.bm-data-strip {
    margin: 32px 0;
    padding: 24px;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}
.bm-data-row {
    display: grid;
    grid-template-columns: 240px 1fr 80px;
    gap: 16px;
    align-items: center;
    padding: 8px 0;
    font-size: 0.875rem;
}
.bm-data-label { color: #D1D5DB; }
.bm-data-bar {
    height: 8px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    overflow: hidden;
}
.bm-data-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6);
    border-radius: 4px;
    transition: width 0.6s ease;
}
.bm-data-value {
    text-align: right;
    color: #60A5FA;
    font-weight: 600;
    font-family: 'Space Grotesk', sans-serif;
}
@media (max-width: 640px) {
    .bm-data-row { grid-template-columns: 1fr 60px; }
    .bm-data-row .bm-data-bar { grid-column: 1 / -1; order: 2; }
    .bm-data-row .bm-data-label { order: 1; }
    .bm-data-row .bm-data-value { order: 3; }
}

/* ─── FOCUSED CTA (homepage end + landing-style CTAs) ────────────────── */
.bm-focused-cta {
    text-align: center;
    padding: 96px 24px;
    max-width: 720px;
    margin: 0 auto;
}
.bm-focused-cta h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 16px;
}
.bm-focused-cta p {
    font-size: 1.125rem;
    color: #9CA3AF;
    line-height: 1.6;
    margin: 0 0 32px;
}

/* ─── PROCESS RAIL (alternate to process-timeline) ────────────────────── */
.bm-process-rail {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    margin: 32px 0;
}
.bm-process-rail::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, rgba(59,130,246,0.3), rgba(139,92,246,0.3));
    z-index: 0;
}
@media (max-width: 768px) {
    .bm-process-rail { grid-template-columns: 1fr; }
    .bm-process-rail::before { display: none; }
}
.bm-process-cell {
    text-align: center;
    position: relative;
    z-index: 1;
}
.bm-process-num {
    width: 44px;
    height: 44px;
    margin: 0 auto 12px;
    background: #0A0F1C;
    border: 2px solid #3B82F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Space Grotesk', sans-serif;
    color: #60A5FA;
}
.bm-process-cell h4 {
    font-size: 1rem;
    margin: 0 0 6px;
    color: #F9FAFB;
}
.bm-process-cell p {
    font-size: 0.875rem;
    color: #9CA3AF;
    line-height: 1.5;
    margin: 0;
}

/* BM-RESPONSIVE-START */
/* ============================================================
   BM RESPONSIVE LAYER — appended to bm-redesign.css
   Handles inline-styled grids on the 6 injected unique-blocks
   PLUS pre-existing rigid grids across migrated pages.
   Breakpoints: 1024px / 768px / 480px
   ============================================================ */

/* ─────────────────────────────────────────────────────────────
   Tablet (≤1024px) — relax rigid 6/4-col grids to 3/2-col
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    /* Hero polish */
    .page-hero { padding: 72px 0 56px !important; }
    .page-hero h1 { font-size: clamp(28px, 4.5vw, 44px) !important; line-height: 1.18 !important; }

    /* Section padding */
    .section { padding: 72px 0 !important; }

    /* 6-column month rail → 3 cols */
    .bm-month-rail [style*="grid-template-columns:repeat(6"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px !important;
    }

    /* Rigid 4-col grids → 2 cols */
    [style*="grid-template-columns:repeat(4,1fr)"],
    [style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ─────────────────────────────────────────────────────────────
   Mobile (≤768px) — stack everything to a single column
   ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    /* Container padding tighter */
    .container { padding-left: 20px !important; padding-right: 20px !important; }

    /* Section padding */
    .section { padding: 56px 0 !important; }

    /* Hero typography */
    .page-hero { padding: 56px 0 40px !important; }
    .page-hero h1 { font-size: clamp(26px, 7vw, 34px) !important; line-height: 1.2 !important; }
    .page-hero p, .page-hero .hero-subtitle { font-size: 16px !important; line-height: 1.55 !important; }

    /* Section headers */
    .section-header h2 { font-size: clamp(24px, 5.5vw, 30px) !important; line-height: 1.22 !important; }
    .section-subtitle { font-size: 15px !important; line-height: 1.55 !important; }
    .section-tag { font-size: 11px !important; }

    /* ─── My 6 injected blocks — collapse grids to single column ─── */
    .bm-principles-strip [style*="grid-template-columns:repeat(auto-fit"],
    .bm-platform-matrix [style*="grid-template-columns:repeat(auto-fit"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .bm-month-rail [style*="grid-template-columns:repeat(6"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .bm-rag-vs-training [style*="grid-template-columns:1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .bm-funnel-stages [style*="grid-template-columns:1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    /* Funnel — restore independent border-radius on each card when stacked */
    .bm-funnel-stages > div > div > div {
        border-radius: 10px !important;
        margin-bottom: 12px !important;
    }
    .bm-funnel-stages > div > div > div:last-child { margin-bottom: 0 !important; }

    /* Tier-table rows — collapse 3-col to readable stacked cards */
    .bm-pub-tiers-table [style*="grid-template-columns:140px 90px 1fr"] {
        grid-template-columns: 70px 1fr !important;
        grid-template-areas: "tier count" "sample sample" !important;
        gap: 8px 16px !important;
        padding: 16px 18px !important;
    }
    .bm-pub-tiers-table [style*="grid-template-columns:140px 90px 1fr"] > div:nth-child(1) { grid-area: tier; }
    .bm-pub-tiers-table [style*="grid-template-columns:140px 90px 1fr"] > div:nth-child(2) { grid-area: count; justify-self: end; font-size: 16px !important; }
    .bm-pub-tiers-table [style*="grid-template-columns:140px 90px 1fr"] > div:nth-child(3) { grid-area: sample; font-size: 13px !important; }
    /* Hide the table header row on mobile — labels are obvious in collapsed format.
       Header is the FIRST direct-child div of the inner wrapper. */
    .bm-pub-tiers-table > div > div:first-child { display: none !important; }

    /* ─── Pre-existing rigid grids across the theme ─── */
    /* Any 3-col rigid grid → 1 col */
    [style*="grid-template-columns:repeat(3,1fr)"],
    [style*="grid-template-columns: repeat(3, 1fr)"],
    [style*="grid-template-columns:1fr 1fr 1fr"],
    [style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Any 2-col rigid grid → 1 col (but not 1fr 1fr 1fr) */
    [style*="grid-template-columns:1fr 1fr;"],
    [style*="grid-template-columns: 1fr 1fr;"] {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }

    /* Buttons / CTAs full-width on mobile */
    .btn-primary, .btn-secondary, .bm-cta-primary, .bm-cta-secondary {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Tables — horizontal scroll fallback */
    table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Images — never overflow */
    img { max-width: 100% !important; height: auto !important; }
}

/* ─────────────────────────────────────────────────────────────
   Small mobile (≤480px) — extra-tight typography & spacing
   ───────────────────────────────────────────────────────────── */
@media (max-width: 480px) {
    .container { padding-left: 16px !important; padding-right: 16px !important; }
    .section { padding: 44px 0 !important; }
    .page-hero { padding: 44px 0 32px !important; }

    .page-hero h1 { font-size: clamp(24px, 8vw, 30px) !important; }
    .section-header h2 { font-size: clamp(22px, 6.5vw, 26px) !important; }

    /* Month rail — stack vertical on tiny screens */
    .bm-month-rail [style*="grid-template-columns:repeat(6"] {
        grid-template-columns: 1fr !important;
        gap: 8px !important;
    }

    /* Tighter card padding */
    .bm-principles-strip > div > div > div,
    .bm-platform-matrix > div > div > div,
    .bm-funnel-stages > div > div > div,
    .bm-month-rail > div > div > div {
        padding: 18px 16px !important;
    }
    .bm-rag-vs-training > div > div > div {
        padding: 22px 18px !important;
    }
    .bm-rag-vs-training h3 { font-size: 19px !important; }
    .bm-rag-vs-training ul { font-size: 13px !important; }
}

/* ─────────────────────────────────────────────────────────────
   Accessibility — never let touch targets get too small
   ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    a, button, .btn-primary, .btn-secondary {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ─────────────────────────────────────────────────────────────
   Prevent any horizontal-scroll surprises
   ───────────────────────────────────────────────────────────── */
html, body { overflow-x: hidden; }
.section, .container { max-width: 100%; box-sizing: border-box; }

/* BM-RESPONSIVE-END */

/* BM-HERO-FORM-START */
/* ─── CF7 form styled to fit inside the .ai-demo-card glass treatment ─── */
.bm-hero-form .ai-demo-body { padding: 24px; }
.bm-hero-form .ai-demo-header { padding: 14px 24px; }
.bm-hero-form .wpcf7-form { margin: 0; }
.bm-hero-form .wpcf7-form > p { margin: 0; }
.bm-hero-form .contact-form-fleds {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-bottom: 14px;
}
.bm-hero-form .small-filed {
    display: block;
    min-width: 0;
    width: 100%;
}
/* CRITICAL: CF7 wraps every input in <span class="wpcf7-form-control-wrap">
   which is inline by default — that's why inputs shrink to content width.
   Force the wrap (and its inner control) to fill the cell. */
.bm-hero-form .wpcf7-form-control-wrap {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
}
.bm-hero-form .wpcf7-form-control {
    width: 100% !important;
    display: block !important;
}
.bm-hero-form label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #B0B7C3;
    margin-bottom: 8px;
    font-weight: 600;
    width: 100%;
}
.bm-hero-form label .text-danger {
    color: #FF6B6B;
    margin-left: 3px;
}
.bm-hero-form input[type="text"],
.bm-hero-form input[type="email"],
.bm-hero-form input[type="url"],
.bm-hero-form input[type="tel"],
.bm-hero-form textarea {
    width: 100% !important;
    background: rgba(20,24,38,0.6) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    color: #F5F5F7 !important;
    font-family: inherit !important;
    font-size: 14px !important;
    line-height: 1.4 !important;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s !important;
    box-sizing: border-box !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2) !important;
    min-height: 46px !important;
    display: block !important;
}
.bm-hero-form input:hover,
.bm-hero-form textarea:hover {
    border-color: rgba(255,255,255,0.2) !important;
    background: rgba(20,24,38,0.75) !important;
}
.bm-hero-form input:focus,
.bm-hero-form textarea:focus {
    outline: none !important;
    border-color: rgba(10,132,255,0.6) !important;
    background: rgba(20,24,38,0.85) !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.2), 0 0 0 3px rgba(10,132,255,0.12) !important;
}
.bm-hero-form input::placeholder,
.bm-hero-form textarea::placeholder {
    color: rgba(176,183,195,0.4);
}
.bm-hero-form textarea {
    resize: vertical;
    min-height: 100px !important;
    max-height: 200px;
}
.bm-hero-form .wpcf7-form > label,
.bm-hero-form .wpcf7-form > p > label,
.bm-hero-form .wpcf7-form > div > label { margin-bottom: 14px; display: block; }
.bm-hero-form .wpcf7-submit {
    width: 100% !important;
    margin-top: 18px !important;
    background: linear-gradient(135deg, #0A84FF, #BF5AF2) !important;
    border: 0 !important;
    color: #fff !important;
    padding: 15px 24px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    letter-spacing: 0.01em !important;
    cursor: pointer !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
    text-transform: none !important;
    min-height: 50px !important;
}
.bm-hero-form .wpcf7-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(10,132,255,0.4);
}
.bm-hero-form .wpcf7-submit:active { transform: translateY(0); }
.bm-hero-form .wpcf7-not-valid-tip {
    color: #FCA5A5 !important;
    font-size: 12px !important;
    margin-top: 6px !important;
    display: block !important;
}
.bm-hero-form .wpcf7-response-output {
    margin: 18px 0 0 !important;
    padding: 14px 16px !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
    background: rgba(255,255,255,0.03);
    color: #B0B7C3 !important;
}
.bm-hero-form form.sent .wpcf7-response-output {
    border-color: rgba(48,209,88,0.4) !important;
    background: rgba(48,209,88,0.08) !important;
    color: #E0F5E5 !important;
}
.bm-hero-form form.invalid .wpcf7-response-output,
.bm-hero-form form.failed .wpcf7-response-output {
    border-color: rgba(252,165,165,0.4) !important;
    background: rgba(252,165,165,0.06) !important;
    color: #FCA5A5 !important;
}
.bm-hero-form .wpcf7-spinner { margin: 12px auto 0; display: block; }

/* Mobile: stack the 2-col rows */
@media (max-width: 540px) {
    .bm-hero-form .contact-form-fleds { grid-template-columns: 1fr; gap: 12px; }
    .bm-hero-form .ai-demo-body { padding: 22px 18px; }
}

/* Hero alignment so text + form don't centre awkwardly when form is taller */
@media (max-width: 1024px) {
    .page-hero .content-grid-2 { gap: 32px !important; align-items: start !important; }
}

/* Meta-links row */
.bm-hero-meta-links a:hover { color: #fff !important; }
/* BM-HERO-FORM-END */

/* BM-CONTACT-HERO-START */
/* /contact/ hero — left-align text column, top-align against the tall form */
.bm-contact-hero-grid {
    align-items: start !important;
}
.bm-contact-hero-grid > div:first-child {
    text-align: left !important;
    padding-top: 8px;
}
.bm-contact-hero-grid > div:first-child h1,
.bm-contact-hero-grid > div:first-child p,
.bm-contact-hero-grid > div:first-child .badge,
.bm-contact-hero-grid > div:first-child .bm-hero-meta-links {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    justify-content: flex-start !important;
}
.bm-contact-hero-grid > div:first-child h1 { max-width: 540px; }
.bm-contact-hero-grid > div:first-child .page-hero-sub { max-width: 540px; }

/* Mobile: stack and centre back so the layout doesn't look orphaned */
@media (max-width: 768px) {
    .bm-contact-hero-grid > div:first-child {
        text-align: center !important;
        padding-top: 0;
    }
    .bm-contact-hero-grid > div:first-child h1,
    .bm-contact-hero-grid > div:first-child p,
    .bm-contact-hero-grid > div:first-child .badge,
    .bm-contact-hero-grid > div:first-child .bm-hero-meta-links {
        text-align: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        justify-content: center !important;
    }
}
/* BM-CONTACT-HERO-END */

/* BM-HERO-FORM-ALIGN-START */
/* Force the hero form's internal text alignment to LEFT — otherwise
   Phone/Subject/Message labels inherit text-align:center from .page-hero. */
.bm-hero-form,
.bm-hero-form .ai-demo-body,
.bm-hero-form .wpcf7-form,
.bm-hero-form label,
.bm-hero-form .small-filed {
    text-align: left !important;
}
.bm-hero-form .ai-demo-header { text-align: left !important; }
.bm-hero-form .wpcf7-form { display: block; }
.bm-hero-form .wpcf7-submit { text-align: center !important; }
/* BM-HERO-FORM-ALIGN-END */

/* BM-HOMEPAGE-REFRESH-START */
/* Wider container — was 1200px, bumped for modern wide screens */
:root { --container-width: 1320px; }
.container { max-width: 1320px !important; }

/* Card hover micro-interactions across the homepage */
.industry-card,
.solution-card,
.process-step,
.pricing-card,
.why-us-card,
.whyus-card {
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1),
                box-shadow 0.3s,
                border-color 0.3s !important;
    will-change: transform;
}
.industry-card:hover,
.solution-card:hover,
.process-step:hover,
.why-us-card:hover,
.whyus-card:hover {
    transform: translateY(-6px);
    border-color: rgba(10,132,255,0.4) !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.28), 0 0 0 1px rgba(10,132,255,0.15) !important;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 50px rgba(10,132,255,0.18), 0 0 0 1px rgba(10,132,255,0.18) !important;
}
.pricing-card-featured {
    transform: scale(1.02);
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.1), box-shadow 0.3s !important;
}
.pricing-card-featured:hover {
    transform: scale(1.02) translateY(-4px) !important;
}
.industry-card:hover .industry-icon,
.solution-card:hover .solution-icon {
    transform: rotate(-6deg) scale(1.08);
    color: #0A84FF !important;
    transition: transform 0.3s, color 0.3s;
}
.industry-icon, .solution-icon { transition: transform 0.3s, color 0.3s; }

/* Industry card title link */
.industry-card h3 a:hover {
    color: #0A84FF !important;
    border-bottom-color: rgba(10,132,255,0.4) !important;
}

/* Process step number animation */
.process-step .step-number {
    transition: transform 0.3s, color 0.3s;
}
.process-step:hover .step-number {
    transform: scale(1.12);
    color: #BF5AF2 !important;
}

/* WebMCP pulse dot */
@keyframes bmPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(48,209,88,0.6); opacity: 1; }
    50%      { box-shadow: 0 0 0 8px rgba(48,209,88,0); opacity: 0.7; }
}
.bm-agent-pill:hover {
    background: rgba(48,209,88,0.14) !important;
    transform: translateY(-1px);
}

/* Subtle button hover lift */
.btn-primary, .btn-secondary, .btn-outline, .btn-ghost {
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s, color 0.15s !important;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10,132,255,0.35) !important;
}

/* Stat cards animation on hover */
.stat-card, .trust-stat {
    transition: transform 0.3s !important;
}
.stat-card:hover, .trust-stat:hover { transform: translateY(-3px); }

/* CTA card hover state (the final one) */
.cta-card {
    transition: transform 0.3s, box-shadow 0.3s !important;
}
.cta-card:hover {
    box-shadow: 0 24px 56px rgba(10,132,255,0.25);
}

/* Mobile — keep hover-lift smaller on touch */
@media (max-width: 768px) {
    .industry-card:hover, .solution-card:hover, .process-step:hover,
    .pricing-card:hover, .why-us-card:hover, .whyus-card:hover {
        transform: translateY(-3px);
    }
    .pricing-card-featured { transform: none; }
    .pricing-card-featured:hover { transform: translateY(-3px) !important; }
}
/* BM-HOMEPAGE-REFRESH-END */
