/* ============================================
   BUILTBYBOTS — GLOBAL DESIGN SYSTEM
   ============================================
   Structure:
   1. Variables
   2. Reset & Globals
   3. Typography Scale
   4. Grid System (12-col)
   5. Section Containers
   6. Section Header Block
   7. Content Split Layout
   8. Navigation
   9. Hero (homepage-specific)
   9b. Inner Page Hero
   10. Buttons
   11. Service Cards
   12. Case Study Slider
   13. Integration Grid
   14. Timeline
   15. Pricing
   16. FAQ Accordion
   17. Contact Form
   18. Split CTA
   19. Footer
   20. Feature Cards (icon + text)
   21. USP Scroll Section (sidebar + content)
   22. Testimonial Cards
   23. Stat Cards
   24. Comparison Table
   25. Case Study Hero
   26. Anchor Tabs
   27. Prose Layout (single column, no sidebar)
   28. Vertical Timeline (zigzag)
   29. Icon Strip
   30. Post Card Grid (blog/stories)
   31. Badge Card Grid
   32. Blog Post Hero
   33. Blog Body
   34. Author Card
   35. Share Bar
   36. Logo Strip
   37. Video Block
   38. Data Table
   39. Animations
   40. Responsive
   41. Utility Overrides (always last)
   ============================================ */

/* --- 1. VARIABLES --- */
:root {
    /* Brand Colors */
    --bbb-sunbeam: #FFF100;
    --bbb-sunbeam-bright: #fffc00;
    --bbb-carbon: #1A1A1A;
    --bbb-black: #000000;
    --bbb-white: #FFFFFF;
    --bbb-grey: #E1E1E1;
    --bbb-border: #E5E5E5;
    --bbb-green: #0DAB76;
    
    /* Layout Constants */
    --container-full: 1905px;
    --container-wide: 1692px;
    --container-normal: 1117px;
    --gutter: clamp(20px, 5vw, 106px);
    --radius-section: 60px;
    --radius-ui: 16px;
}

/* --- 2. RESET & GLOBALS --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bbb-white); 
    color: var(--bbb-black); 
    line-height: 1.5; 
    overflow-x: hidden;
}

/* --- 3. TYPOGRAPHY (DAYOS SCALE) --- */
h1, h2, h3, h4, h5, h6 { 
    font-family: 'Roboto Condensed', sans-serif; 
    text-transform: uppercase; 
    font-weight: 800; 
    line-height: 1.125;
    letter-spacing: -0.02em;
    margin: 0;
}

/* Homepage hero only */
.hero-h1 { font-size: clamp(36px, 8vw + 1rem, 153.33px); line-height: 0.9; }

/* Inner page scale */
h1 { font-size: clamp(30px, 5vw + 0.5rem, 106.66px); line-height: 1.1; }
h2 { font-size: clamp(26px, 4vw + 0.5rem, 85.33px); line-height: 1.1; }
h3 { font-size: 64px; line-height: 68.4px; }
h4 { font-size: 53.3333px; line-height: 57px; }
h5 { font-size: 42.6667px; line-height: 45.6px; }
h6 { font-size: 32px; line-height: 34.2px; }

/* Body copy */
.body-large { 
    font-family: 'Inter', sans-serif; 
    font-size: 26.6667px; 
    font-weight: 500;
    letter-spacing: normal; 
    line-height: 40px; 
}

.body-medium { 
    font-family: 'Inter', sans-serif; 
    font-size: 24px; 
    font-weight: 600;
    letter-spacing: normal; 
    line-height: 34px; 
}

.body-medium-italic { 
    font-family: 'Inter', sans-serif; 
    font-size: 19.2px;
    font-weight: 600;
    font-style: italic;
    letter-spacing: normal; 
    line-height: 34px;
}

/* --- 4. GRID SYSTEM (12-COL) --- */
.grid-12 {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    width: 100%;
    gap: 2rem;
}

.grid-12.gap-lg { gap: 4rem; }
.grid-12.align-center { align-items: center; }

.col-span-4  { grid-column: span 4; }
.col-span-5  { grid-column: span 5; }
.col-span-6  { grid-column: span 6; }
.col-span-7  { grid-column: span 7; }
.col-span-8  { grid-column: span 8; }
.col-span-10 { grid-column: span 10; }
.col-span-12 { grid-column: span 12; }

@media (max-width: 1200px) {
    .col-span-4,
    .col-span-5,
    .col-span-6,
    .col-span-7,
    .col-span-8,
    .col-span-10 { grid-column: span 12; }
}

/* --- 5. SECTION CONTAINERS --- */
.section-modular {
    position: relative;
    padding-top: clamp(60px, 8vw, 160px);
    padding-bottom: clamp(60px, 8vw, 160px);
    padding-left: var(--gutter);
    padding-right: var(--gutter);
    border-top-left-radius: var(--radius-section);
    border-top-right-radius: var(--radius-section);
    margin-top: -60px;
    z-index: 1;
    margin-left: auto;
    margin-right: auto;
}

.white-section-wide  { background: var(--bbb-white); color: var(--bbb-black); max-width: var(--container-wide); }
.black-section-wide  { background: var(--bbb-black); color: var(--bbb-white); max-width: var(--container-wide); }
.grey-section-wide   { background: var(--bbb-grey); color: var(--bbb-black); max-width: var(--container-wide); }

/* Dark section text defaults */
.black-section-wide h1,
.black-section-wide h2,
.black-section-wide h3,
.black-section-wide h4,
.black-section-wide h5,
.black-section-wide h6,
.black-section-wide p,
.black-section-wide span,
.black-section-wide li,
.black-section-wide a { color: var(--bbb-white); }

.black-section-wide a:hover { opacity: 0.7; }
.black-section-wide.bbb-footer a:hover { opacity: 1; }
.black-section-wide .btn-white span { color: var(--bbb-black); }

/* --- 6. SECTION HEADER BLOCK --- */
.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    margin-bottom: 1rem;
}

.section-header p {
    max-width: 70%;
    margin-top: 1.5rem;
}

.section-header.narrow p { max-width: 55%; }
.section-header.wide p   { max-width: 85%; }
.section-header.full p   { max-width: 100%; }

/* --- 7. CONTENT SPLIT LAYOUT --- */
.content-split {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    width: 100%;
    gap: 4rem;
    align-items: center;
}

.content-split-text {
    display: flex;
    flex-direction: column;
}

.content-split-text h2 { margin-bottom: 2rem; }
.content-split-text p  { margin-bottom: 2rem; }

.content-split-visual {
    position: relative;
}

/* Bleed-right image: extends to section edge */
.content-split-visual.bleed-right {
    position: absolute;
    right: calc(var(--gutter) * -1);
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% + var(--gutter));
    aspect-ratio: 4/3;
    border-top-left-radius: var(--radius-ui);
    border-bottom-left-radius: var(--radius-ui);
    overflow: hidden;
}

.content-split-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1200px) {
    .content-split { grid-template-columns: 1fr; gap: 3rem; }
    .content-split-visual.bleed-right {
        position: relative;
        right: auto;
        top: auto;
        transform: none;
        width: 100%;
        border-radius: var(--radius-ui);
    }
}

/* --- 8. NAVIGATION --- */
.bbb-nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem var(--gutter);
    background: transparent;
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.bbb-nav-pill-wrapper {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.mobile-nav-actions {
    display: none;
}

.hamburger-menu {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hamburger-menu svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
}

/* --- MOBILE MENU OVERLAY --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bbb-black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    z-index: 999;
    transition: 0.3s all ease;
}
.mobile-menu-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}
.mobile-overlay-links {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.mobile-overlay-links li a {
    color: var(--bbb-white);
    font-size: 32px;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    text-decoration: none;
    transition: 0.2s color ease;
}
.mobile-overlay-links li a:hover {
    color: var(--bbb-sunbeam);
}

body.menu-open {
    overflow: hidden;
}
body.menu-open .hamburger-menu {
    z-index: 1001;
}
body.menu-open .hamburger-menu svg path {
    stroke: var(--bbb-white) !important;
}
body.menu-open .logo-black { display: none !important; }
body.menu-open .logo-white { display: block !important; }

.bbb-nav-pill {
    display: flex;
    align-items: center;
    background: var(--bbb-white);
    padding: 0.8rem 2.5rem;
    border-radius: 100px;
    border: 1px solid var(--bbb-border);
    box-shadow: 0 4px 20px rgba(0,0,0,0.04);
    gap: 2.5rem;
}

.bbb-logo {
    display: flex;
    align-items: center;
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--bbb-black);
    letter-spacing: -0.05em;
}

.bbb-nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    text-decoration: none;
    color: var(--bbb-black);
    font-weight: 500;
    font-size: 1.05rem;
    transition: opacity 0.2s, color 0.2s;
}

.nav-link:hover { opacity: 0.6; }

/* Dropdown */
.dropdown { position: relative; cursor: pointer; }
.dropdown-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--bbb-carbon);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 20px;
    padding: 2rem 2.5rem;
    min-width: 220px;
    display: none;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 1100;
}

.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -15px;
    left: 0;
    right: 0;
    height: 15px;
    background: transparent;
}

.dropdown:hover .dropdown-menu { display: flex; }

.dropdown-link { text-decoration: none; color: var(--bbb-grey); display: flex; flex-direction: column; transition: color 0.2s; }
.dropdown-link strong { font-size: 1.05rem; text-transform: none; font-weight: 500; color: inherit; transition: color 0.2s; }
.dropdown-link span { font-size: 0.85rem; opacity: 0.6; margin-top: 4px; transition: color 0.2s; }
.dropdown-link:hover strong, .dropdown-link:hover span { color: var(--bbb-white); opacity: 1; }

/* Sticky navbar */
@keyframes slideDownNav {
    from { transform: translateY(-100%); }
    to { transform: translateY(0); }
}

.bbb-nav-container.sticky-nav {
    position: fixed;
    background: var(--bbb-black);
    padding: 1rem var(--gutter);
    box-shadow: 0 4px 30px rgba(0,0,0,0.15);
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
    animation: slideDownNav 0.4s cubic-bezier(0.19, 1, 0.22, 1);
}
.bbb-nav-container.nav-scrolled { border-bottom-color: lightgray; }
.bbb-nav-container.sticky-nav .bbb-logo { color: var(--bbb-white); }
.bbb-nav-container.sticky-nav .bbb-nav-pill { background: var(--bbb-carbon); border-color: rgba(255,255,255,0.1); }
.bbb-nav-container.sticky-nav .nav-link { color: var(--bbb-grey); }
.bbb-nav-container.sticky-nav .nav-link:hover { color: var(--bbb-white); opacity: 1; }
.bbb-nav-container.sticky-nav .dropdown-menu { border-color: rgba(255,255,255,0.1); }
.bbb-nav-container.sticky-nav .btn-black { background: var(--bbb-white); color: var(--bbb-black); }

/* Logo swapping */
.logo-white { display: none; }
.logo-black { display: block; }
.bbb-nav-container.sticky-nav .logo-black { display: none !important; }
.bbb-nav-container.sticky-nav .logo-white { display: block !important; }
.bbb-nav-container.sticky-nav .hamburger-menu svg path { stroke: var(--bbb-white) !important; }
.bbb-footer .logo-black { display: none !important; }
.bbb-footer .logo-white { display: block !important; }

/* Dark header pages — swap logo to white when nav is over a dark hero */
.dark-header .bbb-nav-container .logo-black { display: none !important; }
.dark-header .bbb-nav-container .logo-white { display: block !important; }
.dark-header .bbb-nav-container .hamburger-menu svg path { stroke: var(--bbb-white) !important; }
.dark-header .bbb-nav-container .nav-link { color: var(--bbb-grey); }
.dark-header .bbb-nav-container .nav-link:hover { color: var(--bbb-white); opacity: 1; }

/* --- 9. HERO (HOMEPAGE-SPECIFIC) --- */
.hero-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: auto;
    padding-top: 16rem;
    padding-left: 0;
    padding-right: 0;
    overflow: hidden;
}
.hero-text-container {
    max-width: 80%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-bottom: 4rem;
}
.hero-img-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    height: auto;
    padding-top: 2rem;
    padding-bottom: 6rem;
    z-index: 1;
}
.hero-img-wrapper img {
    width: 100%;
    height: auto;
    object-fit: contain;
    object-position: center;
    transform: none;
    margin: 0 auto;
}

@media (min-width: 1201px) {
    .hero-img-wrapper img {
        transform: none;
    }
}

/* --- 9b. INNER PAGE HERO --- */
.inner-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    height: 120vh;
    border-radius: 0;
    padding-top: 160px;
    overflow: hidden;
}

.inner-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
    padding-bottom: 25vh;
    padding-top: 12rem;
    width: 100%;
}

.inner-hero-content h1 {
    line-height: 0.95;
    margin-left: -5px;
    max-width: 70%;
}

.inner-hero-content p {
    max-width: 60%;
}

.inner-hero-bg {
    position: absolute;
    bottom: -25%;
    left: 0;
    width: 100%;
    z-index: 0;
    pointer-events: none;
    display: flex;
}

.inner-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: bottom;
    opacity: 0.4;
}

/* Admin page hero variant — shorter, text at bottom */
.admin-hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    border-radius: 0;
    padding-top: 10rem;
    padding-bottom: 8rem;
}

.admin-hero h1 {
    line-height: 0.9;
    margin-left: -5px;
}

/* Utility page hero — full height, text-only, no background image */
.utility-hero {
    position: relative;
    min-height: 120vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-radius: 0;
    padding-top: 10rem;
    padding-bottom: 8rem;
}

.utility-hero-sub {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 42.6667px;
    line-height: 45.6px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--bbb-grey);
    margin-bottom: 1rem;
}

.utility-hero h1 {
    font-size: 106.667px;
    line-height: 96px;
    margin-left: -5px;
}

@media (max-width: 1200px) {
    .utility-hero h1 {
        font-size: 80px;
        line-height: 75px;
    }
    .utility-hero-sub {
        font-size: 32px;
        line-height: 36px;
    }
}

/* Contact hero — yellow variant of inner-hero */
.contact-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    height: 120vh;
    border-radius: 0;
    padding-top: 10rem;
    padding-bottom: 8rem;
    background: var(--bbb-sunbeam);
    overflow: hidden;
}

.contact-hero .inner-hero-content {
    padding-top: 10rem;
}

.contact-hero .inner-hero-content h1,
.contact-hero .inner-hero-content p {
    color: var(--bbb-black);
}

.contact-hero .inner-hero-bg img {
    opacity: 0.95;
    transform: translateY(-50%);
}

/* Contact info cards — 3-col black cards */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.contact-card {
    background: var(--bbb-black);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.contact-card:hover {
    background: var(--bbb-carbon);
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    color: var(--bbb-sunbeam);
}

.contact-card-icon svg {
    width: 100%;
    height: 100%;
}

.contact-card h4 {
    color: var(--bbb-white);
    text-transform: none;
    letter-spacing: normal;
    font-size: 1.4rem;
}

.contact-card p {
    color: var(--bbb-grey);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.6;
}

.contact-card-value {
    color: var(--bbb-white);
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: auto;
}

/* Calendly embed block */
.calendly-block {
    margin: 0 auto;
    text-align: center;
}

.calendly-block h2 {
    margin-bottom: 1.5rem;
}

.calendly-block p {
    margin-bottom: 3rem;
}

.calendly-embed {
    width: 100%;
    min-height: 700px;
    border-radius: var(--radius-ui);
    overflow: hidden;
}

.calendly-embed iframe {
    width: 100%;
    height: 700px;
    border: 0;
}

@media (max-width: 900px) {
    .contact-cards { grid-template-columns: 1fr; }
}

/* Admin content layout — sidebar border + prose */
.admin-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
}

.admin-sidebar {
    border-right: 1px solid var(--bbb-border);
}

.admin-content {
    padding-bottom: 4rem;
    padding-right: 25%;
}

.admin-block {
    margin-bottom: 5rem;
}

.admin-block:last-child {
    margin-bottom: 8rem;
}

.admin-block h2 {
    font-size: 64px;
    line-height: 68.4px;
    margin-bottom: 2rem;
}

.admin-block p {
    margin-bottom: 1.5rem;
}

.admin-block p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1200px) {
    .admin-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .admin-sidebar {
        display: none;
    }
    .admin-content {
        padding-right: 0;
    }
}

/* --- 10. BUTTONS --- */
.bbb-swap-btn {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 1rem 2.8rem;
    border-radius: 1.2rem;
    overflow: hidden;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.2s cubic-bezier(0.19, 1, 0.22, 1);
    text-align: center;
}

.bbb-swap-btn-inner { display: grid; justify-items: center; align-items: center; height: 2.2em; overflow: hidden; width: 100%; }
.bbb-btn-text { justify-self: center; text-align: center; grid-area: 1 / 1; font-weight: 700; font-size: 1.6rem; text-transform: none; transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1); }
.bbb-btn-hover { transform: translateY(140%); }

.bbb-swap-btn:hover .bbb-btn-default { transform: translateY(-140%); }
.bbb-swap-btn:hover .bbb-btn-hover { transform: translateY(0); }
.bbb-swap-btn:active { transform: scale(0.96); }

.btn-yellow { background: var(--bbb-sunbeam); color: var(--bbb-black); }
.btn-black  { background: var(--bbb-black); color: var(--bbb-white); }
.btn-white  { background: var(--bbb-white); color: var(--bbb-black); }

/* Nav-sized button override */
.bbb-swap-btn.btn-nav { padding: 0.5rem 1rem; }
.bbb-swap-btn.btn-nav .bbb-btn-text { font-size: 1.1rem; font-weight: 500; }
.bbb-swap-btn.btn-nav .bbb-swap-btn-inner { height: 1.4em; }

/* CTA-sized button override */
.bbb-swap-btn.btn-cta { padding: 1rem 2rem; background: var(--bbb-sunbeam); color: var(--bbb-black); }
.bbb-swap-btn.btn-cta .bbb-btn-text { font-size: 0.95rem; color: var(--bbb-black); }
.bbb-swap-btn.btn-cta:hover { background: var(--bbb-white); }

/* Use on ANY button sitting on a yellow background */
.bbb-swap-btn.btn-on-yellow { background: var(--bbb-black); color: var(--bbb-white); }
.bbb-swap-btn.btn-on-yellow .bbb-btn-text { color: var(--bbb-white); }
.bbb-swap-btn.btn-on-yellow:hover { background: var(--bbb-white); }
.bbb-swap-btn.btn-on-yellow:hover .bbb-btn-text { color: var(--bbb-black); }

/* --- 11. SERVICE CARDS --- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem 3rem;
    margin-top: 5rem;
}

.service-card {
    display: flex;
    flex-direction: column;
}

/* Override default black-bg anchor hover states */
.service-card:hover { opacity: 1 !important; transform: none; }

.service-icon-box {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bbb-carbon);
    border-radius: var(--radius-ui);
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 2rem;
    overflow: hidden;
    cursor: pointer;
}

.service-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.service-icon-box:hover img {
    transform: scale(1.05);
}

.service-card h3 {
    margin-bottom: 1rem;
}

.service-card p.body-medium {
    max-width: 95%;
}

/* --- 12. CASE STUDY SLIDER (BBB Custom) --- */
.bbb-slider-section {
    margin-top: 0;
    padding-top: 100px;
    padding-bottom: calc(120px + 5rem);
    overflow: hidden;
}

.bbb-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.bbb-slider-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: grab;
}

.bbb-slider-track:active {
    cursor: grabbing;
}

.bbb-slider-slide {
    flex: 0 0 100%;
    min-width: 0;
    box-sizing: border-box;
}

.case-study-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bbb-white);
    border: 1px solid var(--bbb-border);
    border-radius: var(--radius-ui);
    overflow: hidden;
    height: 100%;
    min-height: 620px;
}

.case-study-text {
    background: var(--bbb-grey);
    padding: 4rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--bbb-border);
    min-width: 0;
}

.case-study-text h4 { margin-bottom: 1.5rem; }
.case-study-text p { max-width: 90%; }

.case-study-btn {
    width: fit-content;
    padding: 1.2rem 2.4rem;
    margin-top: 2rem;
}

.case-study-visual {
    background: var(--bbb-grey);
    width: 100%;
    height: 100%;
    min-width: 0;
}

.case-study-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Pagination */
.bbb-slider-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 2rem;
}

.bbb-slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bbb-black);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    padding: 0;
}

.bbb-slider-dot.is-active {
    width: 32px;
    border-radius: 100px;
    opacity: 1;
}

/* --- 13. INTEGRATION GRID --- */
.integration-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.integration-card {
    background: var(--bbb-black);
    border-radius: var(--radius-ui);
    padding: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16/9;
    transition: background-color 0.3s ease;
}

.integration-make:hover      { background-color: #c015c5; }
.integration-monday:hover    { background-color: #F73B54; }
.integration-airtable:hover  { background-color: #25AFF0; }
.integration-twilio:hover    { background-color: #F22F46; }
.integration-openai:hover    { background-color: #0EA982; }
.integration-claude:hover    { background-color: #D97757; }
.integration-wordpress:hover { background-color: #0072A6; }
.integration-stripe:hover    { background-color: #6772E5; }

.integration-card img {
    max-width: 75%;
    max-height: 75%;
    object-fit: contain;
}

/* --- 14. TIMELINE --- */
.timeline-container {
    max-width: 100%;
    margin: 0 auto;
    padding-bottom: 4rem;
}

.timeline-header {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 5rem;
}

.timeline-wrapper { position: relative; }

.timeline-line {
    position: absolute;
    top: 8px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--bbb-grey);
    opacity: 0.3;
}

.timeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 2;
}

.timeline-step { display: flex; flex-direction: column; }

.timeline-dot-container {
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.timeline-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bbb-sunbeam);
}

.timeline-card {
    background-color: var(--bbb-white);
    color: var(--bbb-black);
    border-radius: 24px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.timeline-card h4 { margin-bottom: 1rem; }

.black-section-wide .timeline-card h4,
.black-section-wide .timeline-card p.body-medium { color: var(--bbb-black); }

/* --- 15. PRICING --- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bbb-black);
    border-radius: 40px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.pricing-badge {
    position: absolute;
    top: 2.5rem;
    right: 2.5rem;
    background: #00E676;
    color: var(--bbb-black);
    border-radius: 8px;
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-plan-title {
    color: var(--bbb-white);
    margin-bottom: 1rem;
    padding-right: 6rem;
}

.pricing-card.standard .pricing-plan-title { padding-right: 0; }

.pricing-plan-desc {
    color: var(--bbb-white);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.pricing-price {
    color: var(--bbb-white);
    margin-bottom: 2rem;
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 3rem 0;
    flex-grow: 1;
}

.pricing-list-item {
    color: var(--bbb-grey);
    margin-bottom: 1rem;
    line-height: 1.56;
    position: relative;
    padding-left: 1.5rem;
}

.pricing-list-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background-color: var(--bbb-sunbeam);
    border-radius: 50%;
}

/* --- 16. FAQ ACCORDION --- */
.faq-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 5%;
}

.faq-item { border-bottom: 1px solid var(--bbb-border); }
.faq-item:first-child { border-top: 1px solid var(--bbb-border); }
.faq-item:last-child { border-bottom: none; }

.faq-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.875rem 0;
    cursor: pointer;
    background: transparent;
    border: none;
    text-align: left;
}

.faq-question {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    color: var(--bbb-black);
    transition: color 0.3s ease;
}

.faq-icon-chevron {
    color: var(--bbb-black);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    margin-left: 1.5rem;
    flex-shrink: 0;
}

.faq-item.is-active .faq-icon-chevron { transform: rotate(180deg); }

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.19, 1, 0.22, 1), padding 0.4s ease;
}

.faq-item.is-active .faq-content {
    max-height: 500px;
    padding-bottom: 2.5rem;
}

/* --- 17. CONTACT FORM --- */
.contact-form { max-width: 900px; margin: 4rem 0; }
.form-row { display: grid; grid-template-columns: 1fr 1.5fr; align-items: center; gap: 3rem; margin-bottom: 2.5rem; }
.form-label { font-size: 1.3rem; font-weight: 700; }
.form-input, .form-select {
    width: 100%;
    padding: 1.4rem 1.8rem;
    border: 1.5px solid var(--bbb-border);
    border-radius: var(--radius-ui);
    font-size: 1.1rem;
    background: transparent;
    transition: border-color 0.3s;
}

.form-select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L12 15L18 9" stroke="%23000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.5rem;
    padding-right: 3.5rem;
}

.form-input:focus, .form-select:focus { border-color: var(--bbb-black); outline: none; }
.form-divider { border: 0; border-top: 1.5px solid var(--bbb-border); margin: 4rem 0; }
.form-submit { width: 100%; background: var(--bbb-black); color: var(--bbb-white); padding: 1.8rem; border-radius: 14px; font-weight: 700; font-size: 1.3rem; cursor: pointer; border: none; margin-top: 2rem; }

/* --- 18. SPLIT CTA --- */
.split-cta-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 550px;
    border-top: 1px solid lightgray;
}

.cta-half {
    flex: 1;
    padding: 100px var(--gutter);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.cta-yellow { background-color: var(--bbb-white); color: var(--bbb-black); }
.cta-half h2 { padding-right: 100px; }

.cta-white  { background-color: var(--bbb-white); color: var(--bbb-black); border-left: 1px solid var(--bbb-border); }

.cta-half:hover { background-color: var(--bbb-sunbeam); }

.cta-icon-box {
    position: absolute;
    top: 100px;
    right: var(--gutter);
    width: 70px;
    height: 70px;
    border: 1.5px solid var(--bbb-black);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

/* --- 19. FOOTER --- */
.bbb-footer {
    padding-top: 100px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
    gap: 80px;
    border-radius: 0;
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-contact p { margin-bottom: 10px; }

.footer-email {
    color: var(--bbb-white);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-email:hover { color: var(--bbb-sunbeam-bright) !important; opacity: 1 !important; }

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    text-decoration: none;
    color: var(--bbb-grey);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.back-to-top:hover { color: var(--bbb-white); }

.back-to-top-icon {
    width: 40px;
    height: 40px;
    background: var(--bbb-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.back-to-top:hover .back-to-top-icon {
    background: var(--bbb-sunbeam);
}

.back-to-top-icon svg {
    width: 16px;
    height: 16px;
    color: var(--bbb-black);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-heading {
    color: var(--bbb-grey);
    opacity: 0.5;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-link {
    color: var(--bbb-white);
    font-size: 1.1rem;
    opacity: 0.8;
}

.footer-link:hover {
    color: var(--bbb-sunbeam-bright) !important;
    opacity: 1 !important;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal, .footer-policy, .footer-socials {
    display: flex;
    gap: 30px;
    color: var(--bbb-grey);
    font-size: 0.95rem;
    opacity: 0.7;
}

.footer-socials .hover-facebook:hover { color: #1877F2 !important; opacity: 1; text-decoration: none; }
.footer-socials .hover-twitter:hover { color: #1DA1F2 !important; opacity: 1; text-decoration: none; }
.footer-socials .hover-linkedin:hover { color: #0A66C2 !important; opacity: 1; text-decoration: none; }
.footer-socials .hover-youtube:hover { color: #FF0000 !important; opacity: 1; text-decoration: none; }

/* --- 20. FEATURE CARDS (ICON + TEXT) --- */
.feature-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.case-study-text .bbb-btn-text {
    font-size: 1rem;
}

.pt-0 > .section-inner > .feature-card-grid {
    padding-top: 4rem;
}

.feature-card {
    background-color: var(--bbb-black);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.feature-card-icon {
    margin-bottom: 2.5rem;
}

.feature-card h3 {
    color: var(--bbb-white);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.feature-card p {
    color: var(--bbb-white);
}

@media (max-width: 900px) {
    .feature-card-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- 21. USP SCROLL SECTION (SIDEBAR + CONTENT) --- */
.usp-layout {
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 3%;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 4rem;
    position: relative;
}

.usp-sidebar {
    border-right: 1px solid var(--bbb-border);
    padding-right: 2rem;
}

.usp-sidebar-inner {
    position: sticky;
    top: 180px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.usp-nav-link {
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bbb-grey);
    font-weight: 600;
    transition: color 0.3s;
    display: block;
}

.usp-nav-link.is-active {
    color: var(--bbb-black);
    font-weight: 700;
}

.usp-content {
    padding-left: 2rem;
    min-width: 0; /* prevents grid blowout from long text */
    overflow-wrap: break-word;
}

.usp-block {
    padding-bottom: 8rem;
    padding-top: 2rem;
}

.usp-block:last-child {
    padding-bottom: 2rem;
}

.usp-block-label {
    text-transform: uppercase;
    font-weight: 700;
    color: var(--bbb-grey);
    margin-bottom: 1rem;
}

.usp-block h2 {
    font-size: 53.3333px;
    line-height: 57px;
}

.usp-block-image {
    width: 90%;
    object-fit: cover;
    aspect-ratio: 16/9;
    display: block;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1);
}

@media (max-width: 1200px) {
    .usp-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .usp-sidebar { display: none !important; }
    .usp-content { padding-left: 0; }
    .usp-block { padding-bottom: 4rem; }
}

/* --- 22. TESTIMONIAL CARDS --- */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.testimonial-card {
    background-color: var(--bbb-sunbeam);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.testimonial-card p {
    color: var(--bbb-black);
    font-style: italic;
    margin-bottom: 2rem;
}

.testimonial-card h4 {
    color: var(--bbb-black);
    margin-top: auto;
}

@media (max-width: 900px) {
    .testimonial-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Section inner container (95% width centered) */
.section-inner {
    width: 95%;
    margin: 0 auto;
}

/* Features & Process grids (legacy — kept for compatibility) */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

/* --- 23. STAT CARDS --- */
.stat-grid {
    display: grid;
    gap: 2rem;
}

.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat-grid-6 { grid-template-columns: repeat(3, 1fr); } /* 3x2 — 6 cards wrap naturally */

.stat-card {
    background-color: var(--bbb-grey);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.stat-card-number {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--bbb-black);
    margin-bottom: 1rem;
}

.stat-card-label {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--bbb-black);
    margin-bottom: 0.75rem;
}

.stat-card-desc {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--bbb-black);
    opacity: 0.7;
}

/* Dark variant — for use on white sections where you want black cards */
.stat-card-dark .stat-card {
    background-color: var(--bbb-black);
}

.stat-card-dark .stat-card-number,
.stat-card-dark .stat-card-label { color: var(--bbb-white); }
.stat-card-dark .stat-card-desc { color: var(--bbb-grey); }

@media (max-width: 900px) {
    .stat-grid-3 { grid-template-columns: 1fr; }
    .stat-grid-6 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .stat-grid-6 { grid-template-columns: 1fr; }
}

/* --- 24. COMPARISON TABLE --- */
.compare-table {
    display: grid;
    grid-template-columns: 200px 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* Column headers */
.compare-header {
    display: flex;
    align-items: flex-end;
    padding-bottom: 2rem;
}

.compare-header h4 {
    text-transform: none;
    letter-spacing: normal;
}

/* The two value columns — cards that hold all rows */
.compare-col {
    border-radius: 24px;
    padding: 3rem;
}

.compare-col-grey { background-color: var(--bbb-grey); }
.compare-col-black { background-color: var(--bbb-black); }
.compare-col-black h4,
.compare-col-black p { color: var(--bbb-white); }

/* Individual row inside a column card */
.compare-row {
    padding: 2rem 0;
    border-bottom: 1px solid var(--bbb-border);
}

.compare-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.compare-row:first-child {
    padding-top: 0;
}

.compare-col-black .compare-row {
    border-bottom-color: rgba(255,255,255,0.1);
}

/* Row labels (left column) */
.compare-labels {
    display: flex;
    flex-direction: column;
    padding-top: 3rem; /* align with card content start */
}

.compare-label {
    padding: 2rem 0;
    border-bottom: 1px solid transparent; /* keeps height in sync with rows */
    font-family: 'Inter', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--bbb-black);
}

.compare-label:last-child {
    padding-bottom: 0;
}

.compare-label:first-child {
    padding-top: 0;
}

@media (max-width: 900px) {
    .compare-table {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .compare-labels {
        display: none; /* labels move into cards on mobile */
    }
}

/* --- 25. CASE STUDY HERO --- */
.case-hero {
    --case-accent: #d1ffca; /* default — override per page with inline style */
    display: grid;
    grid-template-columns: 1fr 1fr 0.8fr;
    gap: 2rem;
    align-items: end;
    min-height: 80vh;
    border-radius: 0;
    padding-top: 10rem;
    padding-bottom: 6rem;
}

/* Left: title column */
.case-hero-text {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    z-index: 2;
}

.case-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bbb-white);
    color: var(--bbb-black);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    width: fit-content;
    transition: opacity 0.2s;
}

.case-hero-back:hover { opacity: 0.7; }

.case-hero-text h1 {
    line-height: 0.95;
    margin-left: -3px;
}

.case-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.case-hero-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bbb-grey);
}

.case-hero-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--bbb-grey);
    opacity: 0.7;
}

/* Middle: hero image */
.case-hero-image {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.case-hero-image img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: var(--radius-ui);
}

/* Right: stacked accent cards */
.case-hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    z-index: 2;
}

.case-hero-card {
    background-color: var(--case-accent);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.case-hero-card-icons {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.case-hero-card-icons img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: contain;
}

.case-hero-card-stat {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 72px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--bbb-black);
    margin-bottom: 0.75rem;
}

.case-hero-card p {
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--bbb-black);
}

@media (max-width: 1200px) {
    .case-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 10rem;
        gap: 3rem;
    }
    .case-hero-image { order: -1; }
    .case-hero-sidebar {
        flex-direction: row;
    }
    .case-hero-card { flex: 1; }
}

@media (max-width: 768px) {
    .case-hero-sidebar {
        flex-direction: column;
    }
}

/* --- 26. ANCHOR TABS --- */
.anchor-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 4rem;
}

.anchor-tabs-bar {
    display: flex;
    align-items: center;
    background: var(--bbb-grey);
    border-radius: 100px;
    padding: 0.5rem;
    gap: 0.25rem;
}

.anchor-tab {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--bbb-black);
    text-decoration: none;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    transition: background-color 0.3s ease, color 0.3s ease;
    white-space: nowrap;
}

.anchor-tab:hover {
    background: rgba(0,0,0,0.05);
}

.anchor-tab.is-active {
    background: var(--case-accent, #d1ffca);
    color: var(--bbb-black);
}

@media (max-width: 768px) {
    .anchor-tabs-bar {
        flex-wrap: wrap;
        border-radius: 24px;
        justify-content: center;
    }
    .anchor-tab {
        font-size: 0.9rem;
        padding: 0.6rem 1.4rem;
    }
}

/* --- 27. PROSE LAYOUT (single column, no sidebar) --- */
.prose-layout {
    max-width: calc(100% - 280px - 4rem); /* matches admin-layout content width */
    margin-left: calc(280px + 4rem); /* offset to align with admin content column */
    padding-bottom: 4rem;
}

.prose-layout .admin-block h2 {
    font-size: 64px;
    line-height: 68.4px;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .prose-layout {
        max-width: 100%;
        margin-left: 0;
    }
}

/* --- 28. VERTICAL TIMELINE (ZIGZAG) --- */
.v-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 0;
}

/* Center vertical line */
.v-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--bbb-border);
    transform: translateX(-50%);
}

.v-timeline-item {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 6rem;
    width: 50%;
}

.v-timeline-item:last-child {
    margin-bottom: 0;
}

/* Odd items: left side (text right-aligned, sitting left of center line) */
.v-timeline-item:nth-child(odd) {
    margin-left: 0;
    padding-right: 4rem;
    text-align: right;
    justify-content: flex-end;
}

/* Even items: right side (text left-aligned, sitting right of center line) */
.v-timeline-item:nth-child(even) {
    margin-left: 50%;
    padding-left: 4rem;
    text-align: left;
}

/* Dot on the center line */
.v-timeline-dot {
    position: absolute;
    top: 0;
    width: 16px;
    height: 16px;
    background: var(--bbb-black);
    border-radius: 50%;
    z-index: 2;
}

.v-timeline-item:nth-child(odd) .v-timeline-dot {
    right: -8px;
}

.v-timeline-item:nth-child(even) .v-timeline-dot {
    left: -8px;
}

/* Dashed horizontal connector line from dot to icon */
.v-timeline-connector {
    position: absolute;
    top: 7px;
    height: 2px;
    border-top: 2px dashed var(--bbb-border);
    width: 60px;
}

.v-timeline-item:nth-child(odd) .v-timeline-connector {
    left: calc(100% + 8px);
}

.v-timeline-item:nth-child(even) .v-timeline-connector {
    right: calc(100% + 8px);
}

/* Icon circle at the end of connector */
.v-timeline-icon {
    position: absolute;
    top: -16px;
    width: 48px;
    height: 48px;
    background: var(--case-accent, #d1ffca);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.v-timeline-item:nth-child(odd) .v-timeline-icon {
    left: calc(100% + 76px);
}

.v-timeline-item:nth-child(even) .v-timeline-icon {
    right: calc(100% + 76px);
}

.v-timeline-icon img,
.v-timeline-icon svg {
    width: 24px;
    height: 24px;
}

/* Content */
.v-timeline-content {
    width: 100%;
}

.v-timeline-step {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--bbb-black);
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.v-timeline-content h4 {
    margin-bottom: 0.5rem;
}

.v-timeline-sub {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--bbb-black);
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.v-timeline-list {
    list-style: disc;
    padding-left: 1.2rem;
    margin: 0;
}

.v-timeline-item:nth-child(odd) .v-timeline-list {
    list-style-position: inside;
    padding-left: 0;
}

.v-timeline-list li {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.8;
    color: var(--bbb-black);
}

@media (max-width: 768px) {
    .v-timeline::before {
        left: 24px;
    }
    .v-timeline-item,
    .v-timeline-item:nth-child(odd),
    .v-timeline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
    }
    .v-timeline-item:nth-child(odd) .v-timeline-dot,
    .v-timeline-item:nth-child(even) .v-timeline-dot {
        left: 16px;
        right: auto;
    }
    .v-timeline-connector,
    .v-timeline-icon {
        display: none;
    }
    .v-timeline-item:nth-child(odd) .v-timeline-list {
        list-style-position: outside;
        padding-left: 1.2rem;
    }
}

/* --- 29. ICON STRIP --- */
.icon-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.icon-strip-item {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.icon-strip-item svg,
.icon-strip-item img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.icon-strip-item p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--bbb-black);
    opacity: 0.8;
}

@media (max-width: 900px) {
    .icon-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .icon-strip { grid-template-columns: 1fr; }
}

/* --- 30. POST CARD GRID (blog/stories) --- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.post-grid-2 { grid-template-columns: repeat(2, 1fr); }

.post-card {
    display: flex;
    flex-direction: column;
    border-radius: var(--radius-ui);
    overflow: hidden;
    text-decoration: none;
    color: var(--bbb-black);
    border: 1px solid var(--bbb-border);
    transition: border-color 0.3s ease;
}

.post-card:hover {
    border-color: var(--bbb-sunbeam);
}

/* Image area */
.post-card-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.05);
}

/* Text area */
.post-card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    transition: background-color 0.3s ease;
}

.post-card:hover .post-card-body {
    background-color: var(--bbb-sunbeam);
}

.post-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.post-card-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--bbb-black);
}

.post-card-arrow {
    width: 20px;
    height: 20px;
    color: var(--bbb-black);
}

.post-card-title {
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--bbb-black);
    margin-bottom: auto;
}

.post-card-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bbb-black);
    opacity: 0.5;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--bbb-border);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.post-card:hover .post-card-date {
    border-top-color: rgba(0,0,0,0.15);
}

/* Dark Variant for Case Studies */
.post-card.post-card-dark .post-card-body {
    background-color: var(--bbb-carbon);
}
.post-card.post-card-dark .post-card-tag,
.post-card.post-card-dark .post-card-title,
.post-card.post-card-dark .post-card-date {
    color: var(--bbb-white);
}
.post-card.post-card-dark .post-card-date {
    opacity: 0.7;
    border-top-color: rgba(255,255,255,0.15);
}
/* Revert text colors to black on yellow hover */
.post-card.post-card-dark:hover .post-card-body {
    background-color: var(--bbb-sunbeam);
}
.post-card.post-card-dark:hover .post-card-tag,
.post-card.post-card-dark:hover .post-card-title,
.post-card.post-card-dark:hover .post-card-date {
    color: var(--bbb-black);
}
.post-card.post-card-dark:hover .post-card-date {
    border-top-color: rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
    .post-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- 31. BADGE CARD GRID --- */
.badge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.badge-card {
    border: 1px solid var(--bbb-border);
    border-radius: 20px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    background: var(--bbb-white);
}

.badge-card-icon {
    width: 64px;
    height: 64px;
}

.badge-card-icon img,
.badge-card-icon svg {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.badge-card h4 {
    margin-top: auto;
}

@media (max-width: 900px) {
    .badge-grid { grid-template-columns: 1fr; }
}

/* --- 32. BLOG POST HERO --- */
.blog-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    min-height: 90vh;
    border-radius: 0;
    overflow: hidden;
}

.blog-hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 10rem var(--gutter) 6rem var(--gutter);
    background: var(--bbb-grey);
}

.blog-hero-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bbb-white);
    color: var(--bbb-black);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    border-radius: 100px;
    width: fit-content;
    transition: opacity 0.2s;
}

.blog-hero-back:hover { opacity: 0.7; }

.blog-hero-text h1 {
    font-size: clamp(26px, 4vw + 0.5rem, 85.33px);
    line-height: 1.1;
    margin-left: -3px;
}

.blog-hero-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.blog-hero-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.blog-hero-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.blog-hero-author-info {
    display: flex;
    flex-direction: column;
}

.blog-hero-author-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bbb-black);
}

.blog-hero-author-role {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bbb-black);
    opacity: 0.6;
}

.blog-hero-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bbb-black);
    opacity: 0.5;
    letter-spacing: 0.03em;
}

.blog-hero-tag {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bbb-black);
}

/* Right: featured image */
.blog-hero-image {
    position: relative;
    overflow: hidden;
}

.blog-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 1200px) {
    .blog-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    .blog-hero-text {
        padding: 10rem 40px 4rem 40px;
    }
    .blog-hero-image {
        aspect-ratio: 16/9;
    }
}

/* --- 33. CASE STUDY HERO --- */
.case-study-hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 12rem var(--gutter) 6rem var(--gutter);
    background: var(--bbb-grey);
    min-height: 80vh;
}

.case-study-hero h1 {
    line-height: 0.95;
    margin-left: -3px;
    max-width: 1200px;
}

.case-study-meta-top {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--bbb-black);
    opacity: 0.8;
}

.case-study-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 800;
    color: var(--bbb-black);
    opacity: 1;
}

.case-study-meta-bottom {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 4rem;
}

.case-study-pill {
    background: var(--bbb-white);
    color: var(--bbb-black);
    padding: 0.8rem 1.2rem;
    font-family: monospace;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 4px;
}

.case-study-pill.text-bold {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

@media (max-width: 1200px) {
    .case-study-hero {
        padding: 10rem 40px 4rem 40px;
        min-height: auto;
    }
}

/* --- 34. BLOG BODY --- */
.blog-body {
    max-width: 860px;
    margin: 0 auto;
    padding-bottom: 4rem;
}

/* Statement headings (h1 in blog) — render at h2 scale */
.blog-body h1 {
    font-size: 85.3333px;
    line-height: 91.2px;
    margin-bottom: 2rem;
    margin-top: 6rem;
}

/* Section headings (h2 in blog) — render at h4 scale */
.blog-body h2 {
    font-size: 53.3333px;
    line-height: 57px;
    margin-bottom: 1.5rem;
    margin-top: 5rem;
}

.blog-body h2:first-child,
.blog-body h1:first-child {
    margin-top: 0;
}

.blog-body p {
    font-family: 'Inter', sans-serif;
    font-size: 19px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--bbb-black);
    margin-bottom: 1.5rem;
}

.blog-body p:last-child {
    margin-bottom: 0;
}

.blog-body img {
    width: 100%;
    border-radius: var(--radius-ui);
    margin: 3rem 0;
    display: block;
}

.blog-body .image-credit {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--bbb-black);
    opacity: 0.5;
    margin-top: -2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1200px) {
    .blog-body h1 {
        font-size: 64px;
        line-height: 60px;
    }
    .blog-body h2 {
        font-size: 40px;
        line-height: 44px;
    }
    .usp-block h2 {
        font-size: 40px;
        line-height: 44px;
    }
}

/* --- 34. AUTHOR CARD --- */
.author-card {
    max-width: 860px;
    margin: 4rem auto;
    border: 1px solid var(--bbb-border);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.author-card .author-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0;
    object-fit: cover;
    flex-shrink: 0;
}

.author-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 0;
}

.author-card-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bbb-green);
}

.author-card-name {
    font-family: 'Inter', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--bbb-black);
}

.author-card-role {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--bbb-black);
    opacity: 0.6;
}

.author-card-bio {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--bbb-black);
    opacity: 0.8;
    margin-top: 0.5rem;
}

.author-card-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bbb-black);
    text-decoration: none;
    margin-top: 0.75rem;
    display: inline-block;
}

.author-card-link:hover { opacity: 0.6; }

@media (max-width: 768px) {
    .author-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- 35. SHARE BAR --- */
.share-bar {
    max-width: 860px;
    margin: 3rem auto 4rem;
    text-align: center;
}

.share-bar-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bbb-black);
    margin-bottom: 1rem;
}

.share-bar-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.share-bar-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bbb-black);
    transition: color 0.3s ease;
}

.share-bar-icon svg {
    width: 24px;
    height: 24px;
}

.share-bar-icon.share-linkedin:hover { color: #0A66C2; }
.share-bar-icon.share-link:hover { color: var(--bbb-sunbeam-bright); }
.share-bar-icon.share-x:hover { color: #000000; }

/* --- 36. LOGO STRIP --- */
.logo-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    padding: 2rem 0;
}

.logo-strip img {
    height: 32px;
    width: auto;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.5;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-strip img:hover {
    filter: grayscale(0%);
    opacity: 1;
}

@media (max-width: 768px) {
    .logo-strip {
        gap: 2.5rem;
    }
    .logo-strip img {
        height: 24px;
    }
}

/* --- 37. VIDEO BLOCK --- */
.video-block {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 */
    border-radius: var(--radius-ui);
    overflow: hidden;
    background: var(--bbb-black);
}

.video-block iframe,
.video-block video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    object-fit: cover;
}

.bbb-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    border-radius: var(--radius-ui);
    transition: opacity 0.3s ease;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}
.bbb-play-overlay.is-hidden {
    opacity: 0;
    pointer-events: none;
}
@keyframes bbb-glow-breathe {
    0% { box-shadow: 0 0 0px 0 rgba(255, 255, 255, 0); }
    50% { box-shadow: 0 0 20px 8px rgba(255, 255, 255, 0.32); }
    100% { box-shadow: 0 0 0px 0 rgba(255, 255, 255, 0); }
}

.bbb-play-btn {
    width: 94px;
    height: 94px;
    background: var(--bbb-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bbb-black);
    transition: transform 0.4s ease-out, background-color 0.4s ease-out;
    animation: bbb-glow-breathe 3.9s ease-in-out infinite;
}
.bbb-play-overlay:hover .bbb-play-btn {
    transform: scale(1.05);
}

/* --- 38. DATA TABLE --- */
.data-table-wrapper {
    border: 1px solid var(--bbb-border);
    border-radius: 20px;
    overflow: hidden;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
}

.data-table thead {
    background: var(--bbb-grey);
}

.data-table th {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--bbb-black);
    text-align: left;
    padding: 1.25rem 2rem;
    text-transform: none;
    letter-spacing: normal;
    line-height: 1.4;
}

.data-table td {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--bbb-black);
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--bbb-border);
    line-height: 1.6;
    vertical-align: top;
}

.data-table tbody tr:first-child td {
    border-top: none;
}

/* Compact variant — for 2-col tables like changelogs */
.data-table-compact th,
.data-table-compact td {
    padding: 1rem 2rem;
}

.data-table-compact td:first-child {
    font-weight: 600;
    white-space: nowrap;
    width: 140px;
}

@media (max-width: 768px) {
    .data-table th,
    .data-table td {
        padding: 1rem;
        font-size: 0.85rem;
    }
    .data-table-wrapper {
        overflow-x: auto;
    }
}

/* --- 39. ANIMATIONS --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.9s cubic-bezier(0.19, 1, 0.22, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }

/* --- 40. RESPONSIVE --- */

/* ---- INTERMEDIATE DESKTOP (1201px - 1600px) ---- */
@media (min-width: 1201px) and (max-width: 1600px) {
    .bbb-nav-container, .bbb-nav-container.sticky-nav {
        /* Fluid gutter handles horizontal padding globally now */
    }
}
/* ---- HERO BALANCE BREAKPOINT (max-width: 1200px) ---- */
@media (max-width: 1200px) {
    .bbb-nav-container, .bbb-nav-container.sticky-nav { 
        width: 100%; 
        left: 0; 
    }
}

/* ---- TABLET (max-width: 1200px) ---- */
@media (max-width: 1200px) {

    /* Typography scale-down */
    h3 { font-size: 48px; line-height: 52px; }
    h4 { font-size: 40px; line-height: 44px; }

    .body-large { font-size: 22px; line-height: 34px; }
    .body-medium { font-size: 20px; line-height: 34px; }

    /* Layout */
    .bbb-nav-container { padding-top: 1.875rem; padding-bottom: 1.875rem; }

    /* Nav — hide pill on tablet, show hamburger later */
    .bbb-nav-pill-wrapper { display: none; }
    .bbb-nav-container .btn-cta { display: none !important; }
    .mobile-nav-actions { display: flex; align-items: center; gap: 1.5rem; }
    
    /* Mobile nav scale-up */
    .bbb-nav-container .bbb-logo img { height: 46px !important; }
    .hamburger-menu svg { width: 37px; height: 37px; }
    .hamburger-menu svg path { stroke-width: 3; }

    /* Timeline / How It Works */
    .timeline-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
    .timeline-line, .timeline-dot-container { display: none; }

    /* Homepage hero */
    .hero-wrapper { min-height: 110vh; }

    /* Inner page hero */
    .inner-hero { height: 100vh; }
    .inner-hero-content h1 { max-width: 100%; }
    .inner-hero-content p { max-width: 85%; }

    /* Utility hero */
    .utility-hero { min-height: 80vh; }

    /* Contact hero */
    .contact-hero { height: 100vh; }

    /* Prose width collapse */
    .prose-narrow,
    .prose-mid,
    .prose-wide { max-width: 100%; }

    /* Section header */
    .section-header p { max-width: 100%; }

    /* Content split */
    .content-split { grid-template-columns: 1fr; gap: 3rem; }

    /* Service cards */
    .service-grid { grid-template-columns: 1fr; gap: 3rem; }

    /* Case study card */
    .case-study-card { grid-template-columns: 1fr; min-height: auto; }
    .case-study-text { order: 2; border-right: none; }
    .case-study-visual { aspect-ratio: 16/9; order: 1; border-bottom: 1px solid var(--bbb-border); }

    /* Form */
    .form-row { grid-template-columns: 1fr; gap: 0.5rem; }

    /* Split CTA */
    .split-cta-container { display: flex; flex-direction: column; min-height: auto; }
    .cta-half { min-height: 350px; }
    .cta-white { border-left: none; border-top: 1px solid var(--bbb-border); padding-bottom: 160px; }

    /* Footer */
    .footer-top { grid-template-columns: 1fr; gap: 60px; }
    .footer-links { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    /* Contact cards */
    .contact-cards { grid-template-columns: 1fr 1fr; }

    /* Integration cards */
    .integration-card img {
        max-width: 80%;
        max-height: 80%;
    }

    /* Blog hero */
    .blog-hero { grid-template-columns: 1fr; min-height: auto; }

    /* Comparison table */
    .compare-table { grid-template-columns: 1fr; gap: 1.5rem; }
    .compare-labels { display: none; }

    /* Pricing — let it flow to 2-col */
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }

    /* Testimonials */
    .testimonial-grid { grid-template-columns: 1fr 1fr; }

    /* Post cards */
    .post-grid { grid-template-columns: 1fr 1fr; }
    .post-grid-2 { grid-template-columns: 1fr 1fr; }

    /* Badge grid */
    .badge-grid { grid-template-columns: repeat(2, 1fr); }

    /* Stat cards */
    .stat-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---- SMALL TABLET / LARGE PHONE (max-width: 900px) ---- */
@media (max-width: 900px) {

    /* Typography scale-down */
    h3 { font-size: 36px; line-height: 40px; }
    h4 { font-size: 32px; line-height: 36px; }
    h5 { font-size: 28px; line-height: 32px; }
    h6 { font-size: 24px; line-height: 28px; }

    .body-large { font-size: 19px; line-height: 30px; }
    .body-medium { font-size: 17px; line-height: 28px; }

    /* Layout */
    .bbb-nav-container .bbb-logo img { height: 32px !important; }
    .bbb-swap-btn.btn-cta { padding: 0.8rem 1.4rem !important; }
    .content-split { grid-template-columns: 1fr; }

    /* Heroes — shorter */
    .inner-hero { height: auto; min-height: 80vh; }
    .utility-hero { min-height: 60vh; }
    .contact-hero { height: auto; min-height: 80vh; }
    .hero-wrapper { min-height: 95vh; }
    .admin-hero { min-height: 60vh; }

    /* Inner hero content */
    .inner-hero-content { padding-bottom: 10vh; }
    .inner-hero-content p { max-width: 100%; }

    /* Feature cards */
    .feature-card-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* Legacy grids */
    .features-grid { grid-template-columns: 1fr; gap: 3rem; }

    /* Contact cards */
    .contact-cards { grid-template-columns: 1fr; }

    /* Pricing — single col */
    .pricing-grid { grid-template-columns: 1fr; }

    /* Testimonials */
    .testimonial-grid { grid-template-columns: 1fr; gap: 2rem; }

    /* Post cards */
    .post-grid { grid-template-columns: 1fr; gap: 2rem; }
    .post-grid-2 { grid-template-columns: 1fr; }

    /* Badge grid */
    .badge-grid { grid-template-columns: 1fr; }

    /* Stat cards */
    .stat-grid-3 { grid-template-columns: 1fr; }

    /* Icon strip */
    .icon-strip { grid-template-columns: repeat(2, 1fr); }

    /* Integration grid */
    .integration-grid { grid-template-columns: repeat(2, 1fr); }

    /* Split CTA */
    .cta-half { min-height: 300px; padding: 60px var(--gutter); }
    .cta-icon-box { top: 60px; right: 24px; width: 50px; height: 50px; font-size: 1.5rem; }

    /* USP layout */
    .usp-layout { grid-template-columns: 1fr; gap: 2rem; }
    .usp-content { padding-left: 0; }
    .usp-block { padding-bottom: 4rem; }
    .usp-block-image { width: 100%; }

    .blog-body h2 {
        font-size: 32px;
        line-height: 36px;
    }
    .usp-block h2 {
        font-size: 32px;
        line-height: 36px;
    }

    /* Admin layout */
    .admin-layout { grid-template-columns: 1fr; gap: 0; }
    .admin-sidebar { display: none; }
    .admin-content { padding-right: 0; }

    /* Grid utilities */
    .grid-2col { grid-template-columns: 1fr; }
    .grid-3col { grid-template-columns: 1fr; }
    .grid-4col { grid-template-columns: 1fr 1fr; }

    /* Buttons — slightly smaller */
    .bbb-swap-btn { padding: 0.8rem 2rem; }
    .bbb-btn-text { font-size: 1.3rem; }

    /* Footer Centering */
    .bbb-footer { text-align: center; }
    .footer-links { grid-template-columns: 1fr; gap: 3rem; }
    .footer-brand, .footer-column, .footer-bottom { align-items: center; }

    .admin-block h2 {
        font-size: 40px;
        line-height: 44px;
    }
}

/* ---- PHONE (max-width: 768px) ---- */
@media (max-width: 768px) {

    /* Typography — phone scale */
    h3 { font-size: 28px; line-height: 32px; }
    h4 { font-size: 24px; line-height: 28px; }
    h5 { font-size: 22px; line-height: 26px; }
    h6 { font-size: 20px; line-height: 24px; }
    h1, .hero-h1 { font-size: clamp(36px, 6vw + 1rem, 173.33px) !important; }

    .body-large { font-size: 17px; line-height: 28px; }
    .body-medium { font-size: 16px; line-height: 26px; }

    /* Heroes — phone heights */
    .inner-hero { min-height: 90vh; }
    .inner-hero .inner-hero-bg img { transform: translateY(-100%); }
    .utility-hero { min-height: 75vh; padding-top: 8rem; padding-bottom: 4rem; }
    .utility-hero-sub { font-size: 24px; line-height: 28px; }
    .contact-hero { min-height: 70vh; }
    .case-study-hero { padding-bottom: 8rem !important; }
    
    .section-modular {
        border-radius: 0 !important;
    }

    .rounded-top, .rounded-bottom, .rounded-all, .rounded-section {
        border-radius: 0 !important;
    }
    
    .hero-wrapper {
        min-height: 105vh;
        padding-top: 10rem;
        padding-bottom: 6rem;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
    }
    .hero-text-container {
        text-align: center;
        margin-bottom: 1rem;
        max-width: 95%;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding-left: 2rem;
        padding-right: 2rem;
    }
    .hero-img-wrapper { 
        position: relative; 
        width: 100%; 
        opacity: 1; 
        height: auto; 
    }
    .hero-img-wrapper img { 
        transform: none; 
        margin: 0; 
        object-position: center; 
    }

    .admin-hero { min-height: 50vh; padding-top: 8rem; }

    /* Inner hero — full width text */
    .inner-hero-content { padding-top: 2rem; gap: 1.5rem; }

    /* Footer */
    .footer-links { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 40px; align-items: center; }
    .footer-socials { order: 1; }
    .footer-policy { order: 2; }
    .footer-legal { order: 3; margin-top: 20px; }
    .footer-legal, .footer-policy, .footer-socials { flex-direction: column; gap: 15px; }
    .bbb-footer { padding-top: 8rem; gap: 40px; }

    /* Timeline */
    .timeline-grid { grid-template-columns: 1fr; }
    .process-grid { grid-template-columns: 1fr; }

    /* Icon strip */
    .icon-strip { grid-template-columns: 1fr; }

    /* Integration grid */
    .integration-grid { grid-template-columns: repeat(2, 1fr); }
    .integration-card img { max-width: 90%; max-height: 90%; }

    /* Stat card numbers — smaller on phone */
    .stat-card-number { font-size: 48px; }
    .stat-card { padding: 2rem; }

    /* Feature cards */
    .feature-card { padding: 2rem; }

    /* Pricing cards */
    .pricing-card { padding: 2rem; border-radius: 40px; overflow: hidden; position: relative; }
    .pricing-card:has(.pricing-badge) { padding-top: 0 !important; }
    .pricing-card:has(.pricing-badge)::before {
        content: "";
        position: absolute;
        top: -2px;
        left: -2px;
        width: calc(100% + 4px);
        height: 3.8rem; /* Slightly taller */
        background-color: #00e676; /* Your BBB Green */
        border-radius: 40px 40px 0 0;
        z-index: 1;
    }
    .pricing-badge { 
        position: relative;
        top: 0;
        right: auto;
        left: auto;
        height: 3.8rem;
        margin-top: -2px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 2.5rem;
        width: 100%;
        background-color: transparent !important;
        z-index: 3;
        font-size: 1rem; /* +15% scaling */
        transform: translateY(4px); /* Optical vertical nudge */
    }
    /* Testimonial cards */
    .testimonial-card { padding: 2rem; }

    /* Contact cards */
    .contact-card { padding: 2rem; }

    /* Case study card */
    .case-study-card { min-height: auto; }
    .case-study-text {
        padding: 2rem;
        border-right: none;
    }

    .blog-body h2 {
        font-size: 24px;
        line-height: 28px;
    }
    .usp-block h2 {
        font-size: 24px;
        line-height: 28px;
    }
    .case-study-text p { max-width: 100%; }

    /* Blog body */
    .blog-body { padding-left: 0; padding-right: 0; }

    /* Author card */
    .author-card { flex-direction: column; align-items: center; text-align: center; padding: 2rem; }

    /* Back to top */
    .back-to-top { margin-top: 1.5rem; }

    /* Calendly */
    .calendly-embed { min-height: 500px; }
    .calendly-embed iframe { height: 500px; }
    .calendly-block p { max-width: 100%; }

    /* Contact form */
    .contact-form { padding: 2rem; }

    /* USP nav links — smaller on phone */
    .usp-nav-link { font-size: 14px; }
    .usp-layout.pt-lg { padding-top: 0 !important; }

    /* Section header center text — full width */
    .section-header.text-center p { max-width: 100%; margin-left: auto; margin-right: auto; }

    /* Split CTA */
    .cta-half { min-height: 300px; padding: 40px var(--gutter); }
    .cta-white { padding-bottom: 100px; } /* 40px native + 60px footer overlap absorption */
    .cta-icon-box { top: 40px; right: 20px; width: 44px; height: 44px; border-radius: 10px; }
    .cta-half h2 { font-size: 28px; line-height: 32px; max-width: 70%; }

    /* Video Player */
    .bbb-play-btn { width: 70px; height: 70px; }

    .pb-xl { padding-bottom: 4rem; }

    .pt-0 > .section-inner > .feature-card-grid {
        padding-top: 4rem;
    }

    .badge-card {
        align-items: center;
        text-align: center;
    }

    .contact-hero .inner-hero-bg img {
        transform: translateY(-130%);
    }

    .admin-block h2 {
        font-size: 32px;
        line-height: 36px;
    }
}

/* ---- SMALL PHONE (max-width: 480px) ---- */
@media (max-width: 480px) {

    .inner-hero { min-height: 60vh; }
    .utility-hero { min-height: 45vh; }
    .utility-hero-sub { font-size: 24px; line-height: 28px; }
    .hero-wrapper { min-height: 60vh; }

    .bbb-swap-btn { padding: 0.7rem 1.6rem; }
    .bbb-btn-text { font-size: 1.1rem; }

    .stat-card-number { font-size: 40px; }

    /* Tighter section padding */
    .feature-card { padding: 1.5rem; }
    .badge-card { padding: 1.5rem; }

    /* Nav CTA — hide text, just show button */
    .btn-cta .bbb-swap-btn-inner { height: 1.2em; }
    .btn-cta .bbb-btn-text { font-size: 0.8rem; }

    .admin-block h2 {
        font-size: 26px;
        line-height: 30px;
    }
}

/* --- 41. UTILITY OVERRIDES (always last — wins by source order) --- */

/* Text Alignment */
.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }

/* Text Colour */
.text-white   { color: var(--bbb-white); }
.text-black   { color: var(--bbb-black) !important; }
.text-grey    { color: var(--bbb-grey); }
.text-muted   { opacity: 0.6; }
.text-sunbeam { color: var(--bbb-sunbeam); }

/* Prose Width (for constraining body text inside sections) */
.prose-narrow { max-width: 55%; }
.prose-mid    { max-width: 70%; }
.prose-wide   { max-width: 85%; }
.prose-full   { max-width: 100%; }

/* Margin Top */
.mt-xs { margin-top: 0.5rem; }
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 4rem; }
.mt-xl { margin-top: 6rem; }
.mt-0  { margin-top: 0; }

/* Margin Bottom */
.mb-xs { margin-bottom: 0.5rem; }
.mb-sm { margin-bottom: 1rem; }
.mb-md { margin-bottom: 2rem; }
.mb-lg { margin-bottom: 4rem; }
.mb-xl { margin-bottom: 6rem; }
.mb-0  { margin-bottom: 0; }

/* Padding Top */
.pt-sm { padding-top: 1rem; }
.pt-md { padding-top: 2rem; }
.pt-lg { padding-top: 4rem; }
.pt-xl { padding-top: 6rem; }
.pt-0  { padding-top: 0; }

/* Padding Bottom */
.pb-sm { padding-bottom: 1rem; }
.pb-md { padding-bottom: 2rem; }
.pb-lg { padding-bottom: 4rem; }
.pb-xl { padding-bottom: 6rem; }
.pb-0  { padding-bottom: 0 !important; }

/* Display */
.d-flex  { display: flex; }
.d-grid  { display: grid; }
.d-block { display: block; }
.d-none  { display: none; }

/* Flex Utilities */
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-col     { display: flex; flex-direction: column; }
.flex-start   { align-items: flex-start; justify-content: flex-start; }
.gap-sm { gap: 1rem; }
.gap-md { gap: 2rem; }
.gap-lg { gap: 3rem; }
.gap-xl { gap: 4rem; }

/* Grid Layouts */
.grid-2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 3rem; }
.grid-3col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 3rem; }
.grid-4col { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 2rem; }

/* Width */
.w-full    { width: 100%; }
.w-half    { width: 50%; }
.max-w-full { max-width: 100% !important; }
.max-w-sm  { max-width: 480px; }
.max-w-md  { max-width: 720px; }
.max-w-lg  { max-width: 960px; }
.max-w-50  { max-width: 50% !important; }
.max-w-60  { max-width: 60% !important; }
.max-w-70  { max-width: 70% !important; }
.max-w-80  { max-width: 80% !important; }
.max-w-90  { max-width: 90% !important; }

/* Border Radius */
.rounded-ui      { border-radius: var(--radius-ui); }
.rounded-section { border-radius: var(--radius-section); }
.rounded-top     { border-top-left-radius: var(--radius-section); border-top-right-radius: var(--radius-section); }
.rounded-bottom  { border-bottom-left-radius: var(--radius-section); border-bottom-right-radius: var(--radius-section); }
.rounded-all     { border-radius: var(--radius-section); }
.rounded-full    { border-radius: 100px; }

/* Overflow */
.overflow-hidden { overflow: hidden; }

/* Position */
.relative { position: relative; }
.absolute { position: absolute; }

/* Opacity */
.opacity-60 { opacity: 0.6; }
.opacity-40 { opacity: 0.4; }
.opacity-20 { opacity: 0.2; }

/* ---- RESPONSIVE UTILITIES ---- */
@media (max-width: 1200px) {
    .mt-lg { margin-top: 3rem; }
    .mb-lg { margin-bottom: 3rem; }
    .max-w-50, .max-w-60, .max-w-70, .max-w-80, .max-w-90 { max-width: 100% !important; }
}

@media (max-width: 768px) {
    .prose-narrow, .prose-mid, .prose-wide { max-width: 100% !important; }
    .mt-lg { margin-top: 2rem !important; }
    .integration-card { padding: 1.5rem; }
}


