/* ============================================================
   SYNAPSE THEME — responsive.css
   Centralised responsive overrides for all screen sizes.
   Loaded after style.css so every rule here takes effect.

   Breakpoints
   ────────────────────────────────────────────────────────────
   ≤ 1199px  Small desktop / large tablet
   ≤  991px  Tablet landscape
   ≤  767px  Mobile landscape / tablet portrait
   ≤  575px  Mobile portrait
   ≤  380px  Very small phones
   ============================================================ */

/* ────────────────────────────────────────────────────────────
   GLOBAL OVERFLOW FIX
   ────────────────────────────────────────────────────────────*/

/* Universal box-sizing — ensures padding never adds to element width */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden !important;
    max-width: 100%;
    width: 100%;
}

img,
video,
svg,
iframe {
    max-width: 100%;
    height: auto;
}

/* Every section must stay inside the viewport */
.homepage-main,
.news-and-views,
.site-header,
.site-footer,
section,
article {
    max-width: 100%;
    overflow-x: hidden;
}

/* ── Hero image containment (all sizes) ─────────────────── */
.hero {
    overflow: hidden;
}

.hero-image {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.hero-visual-placeholder {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.hero-visual-placeholder img {
    max-width: 100%;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ── FAQ containment (all sizes) ─────────────────────────── */
/* The faq-right has flex-shrink:0 + width:867px in style.css.
   These global rules make all FAQ children properly boxed. */
.faq-section {
    box-sizing: border-box;
    max-width: 100%;
}

.faq-layout,
.faq-left,
.faq-right,
.faq-item,
.faq-question,
.faq-answer {
    box-sizing: border-box;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

details.faq-item {
    width: 100%;
}

.faq-question h3 {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* ── Mission, live-chat, testimonials containment ────────── */
.mission-section,
.mission-content-wrapper,
.live-chat-section,
.chat-container,
.slack-container,
.testimonials-section,
.testi-container {
    box-sizing: border-box;
    max-width: 100%;
}

/* ── Slack cards — prevent individual card overflow ────── */
.slack-card,
.slack-cards-grid {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
}

/* ── Bootstrap 5 row negative margin fix — prevents rows
   from creating horizontal scroll on mobile via their
   built-in margin: 0 calc(-0.5 * gutter) ──────────────── */
@media (max-width: 991px) {
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        --bs-gutter-x: 0;
    }

    .col,
    [class*="col-"] {
        padding-left: 8px;
        padding-right: 8px;
    }
}

/* ────────────────────────────────────────────────────────────
   MOBILE HAMBURGER MENU
   ────────────────────────────────────────────────────────────*/

/* Hamburger button — hidden on desktop */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1200;
    flex-shrink: 0;
}

.mobile-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--secondary-color);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.is-open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.is-open span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.mobile-menu-toggle.is-open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Full-screen mobile nav overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(24, 14, 54, 0.97);
    z-index: 1100;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 24px;
    backdrop-filter: blur(8px);
}

.mobile-nav-overlay.is-open {
    display: flex;
}

.mobile-menu-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 44px;
    line-height: 1;
    cursor: pointer;
    z-index: 1201;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-menu-close:hover {
    color: var(--primary-color);
    transform: scale(1.1);
}

.mobile-nav-overlay ul {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
}

.mobile-nav-overlay ul li {
    margin-bottom: 24px;
}

.mobile-nav-overlay ul li a {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: -0.3px;
    transition: color 0.2s ease;
}

.mobile-nav-overlay ul li a:hover {
    color: var(--primary-color);
}

.mobile-nav-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 260px;
}

.mobile-nav-actions a {
    display: block;
    text-align: center;
    padding: 13px 24px;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.mobile-login-btn {
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.mobile-login-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

.mobile-register-btn {
    background: var(--primary-color);
    color: #ffffff !important;
}

.mobile-register-btn:hover {
    background: var(--primary-hover);
}

/* ────────────────────────────────────────────────────────────
   ≤ 1199px — SMALL DESKTOP / LARGE TABLET
   ────────────────────────────────────────────────────────────*/
@media (max-width: 1199px) {

    /* Header nav spacing */
    .main-nav ul {
        gap: 18px;
    }

    .header-left {
        gap: 28px;
    }

    /* Hero */
    .hero h1 {
        font-size: 52px;
        line-height: 62px;
    }

    .hero p {
        font-size: 19px;
    }

    .hero-toggle {
        width: 360px;
    }

    /* Mission */
    .mission-content-wrapper {
        width: 90%;
        gap: 48px;
    }

    .mission-text h2 {
        font-size: 40px;
        line-height: 50px;
    }

    .mission-description p {
        font-size: 19px;
    }

    /* How Synapse Works */
    .how-header-row h2 {
        font-size: 40px;
    }

    .work-step h3 {
        font-size: 26px;
        line-height: 34px;
    }

    /* Testimonials */
    .testi-header-row h2 {
        font-size: 38px;
        line-height: 46px;
    }

    .testi-quote {
        font-size: 19px;
    }

    /* FAQ */
    .faq-right {
        width: auto;
        flex: 1;
    }

    .faq-question h3 {
        font-size: 26px;
        line-height: 34px;
    }

    /* CTA */
    .cta-content h2 {
        font-size: 42px;
        line-height: 50px;
    }

    /* Case Studies */
    .cs-hero-content h1 {
        font-size: 52px;
    }

    .nv-hero-content h1 {
        font-size: 52px;
    }
}

/* ────────────────────────────────────────────────────────────
   ≤ 991px — TABLET LANDSCAPE
   ────────────────────────────────────────────────────────────*/
@media (max-width: 991px) {

    /* ── Header ── */
    .main-nav {
        display: none !important;
    }

    .header-right {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .header-left {
        gap: 0;
    }

    /* ── Hero ── */
    .hero {
        padding: 100px 0 40px;
    }

    .hero .container.centered-hero {
        padding: 0 20px;
    }

    .hero-toggle {
        width: 100%;
        max-width: 340px;
        height: 42px;
    }

    .toggle-btn {
        font-size: 15px;
    }

    .hero h1 {
        font-size: 40px;
        line-height: 50px;
        margin-bottom: 16px;
    }

    .hero p {
        font-size: 17px;
        line-height: 26px;
        margin-bottom: 24px;
    }

    .hero-btns {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
        height: auto;
        padding: 14px 24px;
        font-size: 16px;
    }

    .social-proof-text {
        font-size: 15px;
    }

    .brand-logos {
        gap: 20px;
    }

    .brand-logos img {
        height: 26px;
    }

    .hero-image {
        margin-top: 32px;
    }

    .hero-visual-placeholder img {
        width: 100%;
    }

    /* ── Mission ── */
    .mission-section {
        margin-top: 60px;
        padding: 48px 20px;
    }

    .mission-content-wrapper {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
        padding: 0;
    }

    .accent-line {
        min-height: 180px;
        width: 10px;
    }

    .mission-text h2 {
        font-size: 30px;
        line-height: 40px;
    }

    .mission-description {
        max-width: 100%;
        padding-left: 0;
    }

    .mission-description p {
        font-size: 17px;
    }

    /* ── How Synapse Works ── */
    .how-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
        margin-bottom: 40px;
    }

    .how-header-row h2 {
        font-size: 34px;
    }

    .works-toggle-wrapper {
        max-width: 300px;
    }

    .works-toggle-btn {
        font-size: 16px;
        padding: 0 20px;
    }

    .steps-row {
        grid-template-columns: 1fr !important;
        gap: 28px;
    }

    .work-step h3 {
        font-size: 22px;
        line-height: 30px;
    }

    .work-step p {
        font-size: 16px;
        line-height: 26px;
    }

    .works-image-container {
        padding-top: 65%;
    }

    /* Chat — PR mode */
    .chat-content-wrapper {
        flex-direction: column;
        padding: 28px;
        min-height: auto;
    }

    .chat-left-col {
        width: 100%;
        padding: 0 0 28px 0;
    }

    .chat-left-col h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .chat-left-col p {
        font-size: 16px;
    }

    .chat-image-col {
        width: 100%;
    }

    /* ── Journalist chat (.jr-*) — tablet ── */
    .jr-chat-wrapper {
        flex-direction: column;
        padding: 36px 28px;
        gap: 32px;
        border-radius: 16px;
    }

    .jr-chat-left {
        flex: unset;
        max-width: 100%;
        width: 100%;
    }

    .jr-chat-left h2 {
        font-size: 30px;
    }

    .jr-cards-area {
        width: 100%;
    }

    .jr-cards-bottom {
        padding: 0;
    }

    /* Slack cards — journalist mode (legacy, kept for safety) */
    .slack-container {
        flex-direction: column;
        gap: 28px;
    }

    .slack-text h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .slack-text p {
        font-size: 16px;
    }

    .slack-cards-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* ── Testimonials ── */
    .testimonials-section {
        padding: 48px 20px;
    }

    .testi-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 36px;
    }

    .testi-header-row h2 {
        font-size: 28px;
        line-height: 36px;
    }

    .testi-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    .slot-1,
    .slot-2,
    .slot-3,
    .slot-4 {
        grid-column: span 1 !important;
        grid-row: auto !important;
        min-height: auto !important;
    }

    .slot-3 {
        padding-top: 28px;
    }

    .slot-4-layout {
        flex-direction: column;
        gap: 20px;
    }

    .slot-4 .testi-photo {
        width: 140px;
        height: 140px;
    }

    .slot-3 .testi-photo {
        width: 140px;
        height: 140px;
    }

    .testi-quote {
        font-size: 18px;
    }

    /* ── FAQ ── (657px horizontal padding had to be overridden) */
    .faq-section {
        padding: 48px 20px !important;
    }

    .faq-layout {
        flex-direction: column;
        gap: 24px;
    }

    .faq-left {
        width: 100%;
    }

    .faq-right {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 1 100% !important;
        flex-shrink: 1 !important;
        flex-basis: 100% !important;
    }

    details.faq-item {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    summary.faq-question {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .faq-left h2 {
        font-size: 32px;
    }

    .faq-question h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .faq-answer p {
        font-size: 17px;
    }

    /* ── CTA ── */
    .cta-background {
        height: auto;
        padding: 60px 20px;
    }

    .cta-content h2 {
        font-size: 32px;
        line-height: 40px;
        max-width: 100%;
    }

    .cta-toggle-wrapper {
        width: 300px;
    }

    .cta-toggle-wrapper button {
        font-size: 16px;
    }

    /* ── Footer ── */
    .site-footer {
        padding: 48px 20px;
    }

    .footer-container {
        flex-direction: column;
        gap: 40px;
    }

    .footer-left {
        max-width: 100%;
    }

    .footer-menu-right {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        width: 100%;
    }

    /* ── Case Studies Archive ── */
    .cs-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 20px 40px;
    }

    .cs-hero-content h1 {
        font-size: 40px;
        letter-spacing: -1px;
    }

    .cs-speech-bubbles {
        display: none;
    }

    .cs-intro-row {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }

    .cs-filters {
        flex-wrap: wrap;
        gap: 8px;
    }

    .cs-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 60px;
        gap: 24px;
    }

    /* ── Single Case Study ── */
    .cs-single-hero-content h1 {
        font-size: 32px;
    }

    .cs-related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .cs-single-nav {
        flex-direction: column;
        gap: 16px;
        padding-bottom: 40px;
    }

    /* ── News & Views ── */
    .nv-hero {
        flex-direction: column;
        align-items: flex-start;
        padding: 100px 20px 28px;
        gap: 0;
    }

    .nv-hero-right {
        display: none;
    }

    .nv-hero-content h1 {
        font-size: 40px;
        letter-spacing: -0.5px;
    }

    .nv-featured-image {
        height: 380px;
    }

    .nv-featured-title {
        font-size: 26px;
    }

    .nv-grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    /* ── Signup Flow ── */
    .signup-page-container {
        min-height: 100vh;
    }

    .step-1-container,
    .step-2-container,
    .step-3-container,
    .step-4-container {
        padding: 0 16px;
    }

    .pricing-card-wrapper {
        padding: 24px 16px;
    }

    .pricing-header {
        flex-direction: column;
        gap: 16px;
    }

    .plans-grid {
        flex-direction: column;
        gap: 24px;
    }

    .plan-column {
        width: 100%;
        max-width: 440px;
    }

    .custom-plan-box {
        flex-direction: column;
        gap: 16px;
        padding: 24px 16px;
    }

    /* ── Contact shortcode ── */
    .syn-contact-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .syn-contact-left h2 {
        font-size: 36px;
    }

    .syn-form-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ────────────────────────────────────────────────────────────
   ≤ 767px — MOBILE LANDSCAPE / TABLET PORTRAIT
   ────────────────────────────────────────────────────────────*/
@media (max-width: 767px) {

    /* Global spacing */
    .container {
        padding: 0 16px;
    }

    .section-padding {
        padding: 40px 0;
    }

    /* ── Header ── */
    .site-header {
        padding: 10px 0;
    }

    /* ── Journalist chat (.jr-*) — mobile ── */
    .jr-chat-wrapper {
        padding: 28px 20px;
        gap: 24px;
        border-radius: 14px;
    }

    .jr-chat-left h2 {
        font-size: 24px;
        line-height: 1.2;
    }

    .jr-chat-left p {
        font-size: 14px;
    }

    .jr-cards-top {
        grid-template-columns: 1fr;
        gap: 12px;
    }


    .custom-logo {
        height: 26px !important;
    }

    .synapse-logo {
        font-size: 1.25rem;
    }

    /* ── Hero ── */
    .hero {
        padding: 80px 0 28px;
    }

    .hero .container.centered-hero {
        padding: 0 16px;
    }

    .hero-toggle {
        width: 100%;
        max-width: 320px;
        height: 40px;
    }

    .toggle-btn {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 28px;
        line-height: 36px;
        margin-bottom: 14px;
    }

    .hero p {
        font-size: 15px;
        line-height: 24px;
        margin-bottom: 20px;
    }

    .hero-btns .btn {
        font-size: 15px;
        padding: 12px 20px;
        max-width: 260px;
    }

    .social-proof-text {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .brand-logos {
        gap: 12px;
    }

    .brand-logos img {
        height: 20px;
    }

    .hero-image {
        margin-top: 24px;
    }

    /* ── Mission ── */
    .mission-section {
        margin-top: 32px;
        padding: 36px 16px;
    }

    .accent-line {
        min-height: 140px;
        width: 8px;
    }

    .mission-text h2 {
        font-size: 24px;
        line-height: 34px;
    }

    .mission-left-col {
        gap: 16px;
    }

    .mission-description p {
        font-size: 16px;
        line-height: 1.5;
    }

    /* ── How Synapse Works ── */
    .how-header-row {
        margin-bottom: 28px;
    }

    .how-header-row h2 {
        font-size: 26px;
    }

    .works-toggle-wrapper {
        width: 100%;
        max-width: 260px;
        height: 38px;
    }

    .works-toggle-btn {
        font-size: 13px;
        padding: 0 14px;
    }

    .work-step h3 {
        font-size: 18px;
        line-height: 26px;
    }

    .work-step p {
        font-size: 14px;
        line-height: 22px;
    }

    .chat-content-wrapper {
        padding: 20px;
    }

    .chat-left-col h2 {
        font-size: 22px;
        line-height: 30px;
    }

    .chat-left-col p {
        font-size: 15px;
    }

    .slack-text h2 {
        font-size: 22px;
    }

    .slack-text p {
        font-size: 15px;
    }

    /* ── Testimonials ── */
    .testimonials-section {
        padding: 36px 16px;
    }

    .testi-header-row h2 {
        font-size: 22px;
        line-height: 30px;
    }

    .testi-btn {
        font-size: 14px;
        padding: 6px 20px;
        height: auto;
    }

    .testi-card {
        padding: 20px;
    }

    .testi-quote {
        font-size: 16px;
        line-height: 1.5;
        padding-bottom: 16px;
    }

    .slot-4 .testi-photo {
        width: 100px;
        height: 100px;
    }

    .slot-3 .testi-photo {
        width: 100px;
        height: 100px;
    }

    /* ── FAQ (mobile) ── */
    .faq-section {
        padding: 36px 16px !important;
    }

    .faq-left h2 {
        font-size: 26px;
    }

    .faq-question {
        padding-bottom: 16px;
        align-items: flex-start;
    }

    .faq-question h3 {
        font-size: 16px;
        line-height: 24px;
        max-width: calc(100% - 28px);
    }

    .faq-answer p {
        font-size: 15px;
    }

    .faq-item {
        margin-bottom: 16px;
    }

    .faq-separator {
        margin-bottom: 16px;
    }

    /* ── CTA ── */
    .cta-background {
        padding: 44px 16px;
    }

    .cta-content h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .cta-toggle-wrapper {
        width: 100%;
        max-width: 280px;
        height: 40px;
    }

    .cta-toggle-wrapper button {
        font-size: 13px;
    }

    .cta-btn {
        width: 130px;
        height: 46px;
        font-size: 15px;
        padding: 10px 16px;
    }

    /* ── Footer ── */
    .site-footer {
        padding: 36px 16px;
    }

    .footer-container {
        gap: 32px;
    }

    .footer-menu-right {
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .footer-desc {
        font-size: 14px;
        line-height: 1.6;
    }

    .footer-col h4.widget-title {
        font-size: 14px;
        margin-bottom: 12px;
    }

    .footer-col a {
        font-size: 14px;
    }

    /* ── Case Studies Archive ── */
    .cs-hero {
        padding: 90px 16px 32px;
        gap: 0;
    }

    .cs-hero-content h1 {
        font-size: 28px;
        letter-spacing: -0.5px;
    }

    .cs-section-title {
        font-size: 22px;
    }

    .cs-filter-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .cs-card-image {
        height: 240px;
    }

    .cs-card-header {
        padding: 20px;
    }

    .cs-card-info h3 {
        font-size: 16px;
    }

    .cs-grid {
        padding: 0 16px 48px;
    }

    /* ── Single Case Study ── */
    .cs-single-hero-content h1 {
        font-size: 24px;
    }

    .cs-single-content {
        padding: 32px 16px;
    }

    .cs-single-article {
        font-size: 15px;
        line-height: 1.8;
    }

    .cs-single-article h2 {
        font-size: 22px;
    }

    .cs-single-article h3 {
        font-size: 18px;
    }

    .cs-related-grid {
        grid-template-columns: 1fr;
    }

    .cs-related h2 {
        font-size: 22px;
    }

    /* ── News & Views ── */
    .nv-hero {
        padding: 80px 16px 20px;
    }

    .nv-hero-content h1 {
        font-size: 28px;
        letter-spacing: -0.3px;
    }

    .nv-featured-image {
        height: 220px;
        border-radius: 12px;
    }

    .nv-featured-title {
        font-size: 20px;
    }

    .nv-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nv-filters-row {
        padding: 0 16px;
        margin-bottom: 32px;
    }

    .nv-filter-btn {
        padding: 6px 14px;
        font-size: 13px;
    }

    .nv-grid-container {
        padding: 0 16px 48px;
    }

    .nv-card-image {
        height: 200px;
    }

    .nv-card-title {
        font-size: 17px;
    }

    /* ── Signup ── */
    .step-card,
    .account-card,
    .profile-card {
        padding: 20px;
        border-radius: 12px;
    }

    .pricing-card-wrapper {
        border-radius: 12px;
        padding: 20px;
    }

    .pricing-title {
        font-size: 22px;
    }

    .plan-price {
        font-size: 32px !important;
    }

    .plan-name {
        font-size: 18px;
    }

    .billing-toggle-wrapper {
        gap: 10px;
    }

    .form-input {
        padding: 12px 16px;
        font-size: 15px;
    }

    .btn-primary-custom,
    .btn-secondary-custom {
        padding: 13px 20px;
        font-size: 15px;
    }

    .terms-text {
        font-size: 13px;
    }

    /* ── Careers contact shortcode ── */
    .syn-contact-left h2 {
        font-size: 28px;
    }

    .synapse-contact-section {
        padding: 48px 16px;
    }
}

/* ────────────────────────────────────────────────────────────
   ≤ 575px — MOBILE PORTRAIT
   ────────────────────────────────────────────────────────────*/
@media (max-width: 575px) {

    /* ── Hero ── */
    .hero h1 {
        font-size: 24px;
        line-height: 32px;
    }

    .hero p {
        font-size: 14px;
    }

    .hero-toggle {
        max-width: 300px;
        height: 38px;
    }

    .toggle-btn {
        font-size: 12px;
    }

    .hero-btns .btn {
        max-width: 240px;
        font-size: 14px;
        padding: 11px 16px;
    }

    .brand-logos img {
        height: 18px;
    }

    /* ── Mission ── */
    .mission-text h2 {
        font-size: 20px;
        line-height: 28px;
    }

    .accent-line {
        min-height: 120px;
    }

    /* ── How Works ── */
    .how-header-row h2 {
        font-size: 22px;
    }

    .works-toggle-wrapper {
        max-width: 240px;
    }

    .works-toggle-btn {
        font-size: 12px;
        padding: 0 10px;
    }

    /* ── Testimonials ── */
    .testi-header-row h2 {
        font-size: 20px;
    }

    .testi-card {
        padding: 16px;
    }

    .testi-quote {
        font-size: 14px;
    }

    .logo-fallback {
        font-size: 18px;
    }

    /* ── FAQ ── */
    .faq-left h2 {
        font-size: 22px;
    }

    .faq-question h3 {
        font-size: 15px;
        line-height: 22px;
    }

    .faq-answer p {
        font-size: 14px;
    }

    .faq-icon {
        width: 10px;
        height: 10px;
    }

    /* ── CTA ── */
    .cta-content h2 {
        font-size: 20px;
        line-height: 28px;
    }

    .cta-toggle-wrapper {
        max-width: 250px;
        height: 36px;
    }

    .cta-toggle-wrapper button {
        font-size: 12px;
    }

    .cta-btn {
        width: 120px;
        height: 40px;
        font-size: 14px;
        padding: 8px 12px;
    }

    /* ── Footer ── */
    .footer-menu-right {
        grid-template-columns: 1fr;
    }

    .site-footer {
        padding: 32px 16px;
    }

    /* ── Case Studies ── */
    .cs-hero-content h1 {
        font-size: 22px;
    }

    .cs-card-image {
        height: 200px;
    }

    /* ── News & Views ── */
    .nv-hero-content h1 {
        font-size: 22px;
    }

    /* ── Signup ── */
    .plan-column {
        padding: 16px;
    }

    .plan-price {
        font-size: 28px !important;
    }

    .custom-plan-box {
        text-align: center;
    }

    .custom-plan-title {
        font-size: 18px;
    }

    .step-title {
        font-size: 20px !important;
    }

    .step-subtitle {
        font-size: 14px !important;
    }
}

/* ────────────────────────────────────────────────────────────
   ≤ 380px — VERY SMALL PHONES
   ────────────────────────────────────────────────────────────*/
@media (max-width: 380px) {

    /* ── Hero ── */
    .hero h1 {
        font-size: 20px;
        line-height: 28px;
    }

    .hero p {
        font-size: 13px;
    }

    .hero-toggle {
        max-width: 260px;
        height: 36px;
    }

    .toggle-btn {
        font-size: 11px;
    }

    .hero-btns .btn {
        max-width: 220px;
        font-size: 13px;
        padding: 10px 14px;
    }

    /* ── Mission ── */
    .mission-text h2 {
        font-size: 18px;
        line-height: 26px;
    }

    /* ── How Works ── */
    .how-header-row h2 {
        font-size: 20px;
    }

    .work-step h3 {
        font-size: 16px;
    }

    .work-step p {
        font-size: 13px;
    }

    /* ── Testimonials ── */
    .testi-header-row h2 {
        font-size: 18px;
    }

    .testi-quote {
        font-size: 13px;
    }

    /* ── FAQ ── */
    .faq-left h2 {
        font-size: 20px;
    }

    .faq-question h3 {
        font-size: 13px;
    }

    /* ── CTA ── */
    .cta-content h2 {
        font-size: 18px;
    }

    .cta-toggle-wrapper {
        max-width: 220px;
    }

    /* ── Case Studies ── */
    .cs-hero-content h1 {
        font-size: 18px;
    }

    /* ── News ── */
    .nv-hero-content h1 {
        font-size: 18px;
    }

    /* ── Header ── */
    .synapse-logo {
        font-size: 1.1rem;
    }
}

/* ────────────────────────────────────────────────────────────
   PRINT STYLES
   ────────────────────────────────────────────────────────────*/
@media print {

    .site-header,
    .site-footer,
    .cta-section,
    .mobile-menu-toggle,
    .mobile-nav-overlay,
    .hero-toggle,
    .cta-toggle-wrapper {
        display: none !important;
    }

    body {
        background: #fff;
        color: #000;
        font-size: 12pt;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    h1,
    h2,
    h3 {
        color: #000 !important;
    }
}

/* ────────────────────────────────────────────────────────────
   TARGETED OVERFLOW / INLINE-STYLE OVERRIDES
   These use !important only where necessary to beat inline styles
   or very high-specificity Bootstrap selectors.
   ────────────────────────────────────────────────────────────*/

/* Hero paragraph — prevent overflow on narrow viewports */
.hero p {
    max-width: 100% !important;
    /* Beats the 874px max-width on small screens */
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Ensure hero content never escapes its container */
.hero-content {
    max-width: 100%;
    padding: 0;
}

/* Mission wrapper always full-width inside its container */
.mission-content-wrapper {
    box-sizing: border-box;
}

/* How-it-works: responsive heading */
@media (max-width: 991px) {
    .how-title {
        font-size: 34px !important;
        line-height: 42px !important;
    }

    .how-header-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 20px !important;
        margin-bottom: 40px !important;
    }

    .how-container {
        padding: 0 20px;
    }
}

@media (max-width: 767px) {
    .how-title {
        font-size: 26px !important;
        line-height: 34px !important;
    }

    .how-container {
        padding: 0 16px;
    }
}

@media (max-width: 575px) {
    .how-title {
        font-size: 22px !important;
        line-height: 30px !important;
    }
}

/* ── Slack cards overflow prevention ── */
.slack-cards-grid {
    min-width: 0;
}

.slack-card {
    min-width: 0;
    box-sizing: border-box;
}

/* ── Testimonial photo sizing on mobile ── */
@media (max-width: 575px) {

    .slot-3 .testi-photo,
    .slot-4 .testi-photo {
        width: 80px !important;
        height: 80px !important;
    }
}

/* ── Ensure Bootstrap container never causes horizontal scroll ── */
@media (max-width: 767px) {

    .container,
    .container-fluid,
    .container-sm,
    .container-md {
        padding-right: 16px !important;
        padding-left: 16px !important;
        max-width: 100% !important;
    }
}

/* ── Section-level padding tightening for small phones ── */
@media (max-width: 575px) {

    .testimonials-section,
    .faq-section,
    .cta-background {
        padding-left: 12px;
        padding-right: 12px;
    }

    .testi-container,
    .faq-container {
        padding: 0;
    }
}