/* ========================================
   BMS LANDING PAGE - RESPONSIVE STYLES
   ======================================== */

/* TABLET - 768px and below */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }

    /* HEADER */
    .nav-links {
        display: none;
    }

    .nav-toggle {
        display: block;
    }

    .btn-nav {
        display: none;
    }

    .nav {
        padding: 1rem;
    }

    .brand-logo {
        height: 40px;
        width: auto;
    }

    /* HERO */
    .hero {
        padding-top: 70px;
    }

    .hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-benefits {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }

    .benefit-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .benefit-item .value {
        font-size: 1.4rem;
    }

    .hero-right {
        max-width: 300px;
        margin: 0 auto;
    }

    .hero-visual {
        max-width: 100%;
    }

    /* SECTION HEADERS */
    .section-header h2 {
        font-size: 1.8rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* BENEFIT CARDS */
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .card {
        padding: 1.5rem;
    }

    .card-icon {
        font-size: 2.5rem;
    }

    .card h3 {
        font-size: 1.1rem;
    }

    .card-value {
        font-size: 1.8rem;
    }

    /* BMS SECTION */
    .bms-content > p {
        font-size: 1rem;
    }

    .bms-features {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .feature-box {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2rem;
    }

    .feature-box h4 {
        font-size: 1rem;
    }

    .feature-box p {
        font-size: 0.9rem;
    }

    /* HOW IT WORKS */
    .timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .timeline::before {
        display: none;
    }

    .timeline-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .timeline-content h4 {
        font-size: 1rem;
    }

    .timeline-content p {
        font-size: 0.85rem;
    }

    /* REELS */
    .reels-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    /* REGISTRATION PROCESS */
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .process-step {
        padding: 1.5rem;
    }

    .step-number {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .step-icon {
        font-size: 2.5rem;
    }

    /* APP GUIDE */
    .app-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .app-left h2 {
        font-size: 1.8rem;
    }

    .app-steps-list {
        gap: 1rem;
    }

    .app-step {
        gap: 1rem;
    }

    .step-badge {
        min-width: 45px;
        height: 45px;
        font-size: 0.9rem;
    }

    .step-desc h5 {
        font-size: 0.95rem;
    }

    .step-desc p {
        font-size: 0.85rem;
    }

    .phone-frame {
        width: 180px;
    }

    .phone-notch {
        width: 120px;
    }

    .app-screen-placeholder i {
        font-size: 2.5rem;
    }

    /* HOW TO USE */
    .usage-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .usage-header {
        padding: 1.5rem;
    }

    .usage-header h3 {
        font-size: 1.1rem;
    }

    .usage-flow {
        padding: 1.5rem;
    }

    /* FINAL REGISTRATION */
    .registration-card {
        padding: 2rem;
    }

    .registration-card h2 {
        font-size: 1.6rem;
    }

    .registration-card > p {
        font-size: 0.9rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .reg-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    /* FOOTER */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* SPACING */
    .section-spacing {
        padding: 2.5rem 0;
    }

    .container {
        padding: 0 1rem;
    }
}

/* MOBILE - 480px and below */
@media (max-width: 480px) {
    :root {
        font-size: 13px;
    }

    /* HEADER */
    .nav {
        padding: 0.8rem;
    }

    .brand {
        gap: 0.3rem;
    }

    .brand-logo {
        height: 40px;
        width: auto;
    }

    /* HERO */
    .hero {
        padding-top: 65px;
        padding-bottom: 2rem;
    }

    .hero-inner {
        gap: 1.5rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-sub {
        font-size: 0.95rem;
    }

    .hero-benefits {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .benefit-item {
        padding: 0.6rem;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        text-align: left;
    }

    .benefit-item strong {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .benefit-item .value {
        font-size: 1.2rem;
        text-align: right;
    }

    .hero-cta {
        gap: 0.5rem;
    }

    .btn {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    .btn-large {
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }

    .membership-badge {
        font-size: 0.85rem;
    }

    .hero-right {
        max-width: 250px;
    }

    /* SECTIONS */
    .section-spacing {
        padding: 2rem 0;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .section-header h2 {
        font-size: 1.5rem;
    }

    .section-header p {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 1rem;
    }

    /* BENEFIT CARDS */
    .cards-grid {
        gap: 1rem;
    }

    .card {
        padding: 1.2rem;
    }

    .card-icon {
        font-size: 2rem;
    }

    .card h3 {
        font-size: 1rem;
    }

    .card-value {
        font-size: 1.5rem;
        margin: 0.75rem 0;
    }

    .card p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .feature-list {
        font-size: 0.85rem;
    }

    .feature-list li {
        padding: 0.3rem 0;
    }

    /* BMS SECTION */
    .bms-features {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .feature-box {
        padding: 1rem;
    }

    .feature-icon {
        font-size: 1.8rem;
        margin-bottom: 0.75rem;
    }

    .feature-box h4 {
        font-size: 0.95rem;
    }

    .feature-box p {
        font-size: 0.85rem;
    }

    /* TIMELINE */
    .how-it-works .section-header h2 {
        font-size: 1.4rem;
    }

    .timeline {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .timeline-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .timeline-content h4 {
        font-size: 0.95rem;
    }

    .timeline-content p {
        font-size: 0.8rem;
    }

    /* REELS */
    .reels-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        max-height: 400px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 1rem;
        display: flex;
        scroll-snap-type: x mandatory;
    }

    .reel-card {
        min-width: 100%;
        aspect-ratio: 9/16;
        scroll-snap-align: start;
    }

    /* REGISTRATION PROCESS */
    .registration-process .section-header h2 {
        font-size: 1.4rem;
    }

    .process-steps {
        gap: 1rem;
    }

    .process-step {
        padding: 1.2rem;
    }

    .step-number {
        width: 40px;
        height: 40px;
        font-size: 0.9rem;
    }

    .step-icon {
        font-size: 2rem;
        margin: 0.75rem 0;
    }

    .process-step h4 {
        font-size: 1rem;
    }

    .process-step p {
        font-size: 0.85rem;
    }

    /* APP GUIDE */
    .app-guide .section-header h2 {
        font-size: 1.4rem;
    }

    .app-left h2 {
        font-size: 1.4rem;
    }

    .app-left > p {
        font-size: 0.95rem;
    }

    .app-steps-list {
        gap: 0.75rem;
    }

    .app-step {
        gap: 0.75rem;
    }

    .step-badge {
        min-width: 40px;
        height: 40px;
        font-size: 0.8rem;
    }

    .step-desc h5 {
        font-size: 0.9rem;
    }

    .step-desc p {
        font-size: 0.8rem;
    }

    .phone-frame {
        width: 150px;
        border: 8px solid #333;
    }

    .phone-notch {
        width: 100px;
    }

    .phone-screen {
        padding: 25px 8px 35px 8px;
    }

    .app-screen-placeholder i {
        font-size: 2rem;
    }

    .app-warning {
        padding: 1rem;
    }

    .app-warning p {
        font-size: 0.85rem;
    }

    /* HOW TO USE */
    .how-to-use .section-header h2 {
        font-size: 1.4rem;
    }

    .usage-cards {
        gap: 1rem;
    }

    .usage-card {
        border-radius: 12px;
    }

    .usage-header {
        padding: 1.2rem;
    }

    .usage-icon {
        font-size: 2rem;
    }

    .usage-header h3 {
        font-size: 1rem;
    }

    .usage-flow {
        padding: 1.2rem;
        gap: 0.3rem;
    }

    .flow-step {
        gap: 0.75rem;
        font-size: 0.9rem;
    }

    .flow-num {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    /* REGISTRATION */
    .registration-cta {
        padding: 2rem 0;
    }

    .registration-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    .reg-badge {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }

    .registration-card h2 {
        font-size: 1.4rem;
        margin-bottom: 0.3rem;
    }

    .registration-card > p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .registration-form {
        gap: 1.5rem;
    }

    fieldset {
        margin-bottom: 1rem;
    }

    legend {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .form-group label {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select {
        padding: 0.6rem;
        font-size: 0.95rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .form-note {
        font-size: 0.8rem;
    }

    .reg-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-top: 1.5rem;
    }

    .stat-item strong {
        font-size: 1.5rem;
    }

    .stat-item p {
        font-size: 0.85rem;
    }

    /* FOOTER */
    .footer {
        padding: 2rem 1rem 1rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-col h4 {
        font-size: 1rem;
    }

    .footer-col p {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 1rem;
    }

    /* ANIMATIONS */
    .reveal-up {
        animation-duration: 0.6s;
    }
}

/* EXTRA SMALL - 320px and below */
@media (max-width: 320px) {
    :root {
        font-size: 12px;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .section-header h2 {
        font-size: 1.3rem;
    }

    .card-value {
        font-size: 1.3rem;
    }

    .timeline-icon {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .registration-card h2 {
        font-size: 1.3rem;
    }

    .phone-frame {
        width: 130px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* PRINT STYLES */
@media print {
    .nav,
    .footer,
    .registration-cta,
    .nav-toggle {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    a {
        text-decoration: underline;
    }
}

/* Keep the campaign hero layout authoritative over the legacy hero rules above. */
@media (max-width: 768px) {
    .hero { padding: 76px 0 24px; }
    .hero-inner { display: flex; padding: 0; gap: 0; }
    .hero-left { width: 100%; }
    .hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .hero-right { width: calc(100% + 2rem); max-width: none; min-height: 330px; margin: 0 -1rem 15px; }
    .free-badge { top: 15px; right: 7px; }
}

/* Reference-inspired structure remains authoritative on small screens. */
@media (max-width: 768px) {
    .hero { min-height: 0; padding: 92px 0 58px; background: #fff; }
    .hero .container { width: min(100% - 32px, 1240px); padding: 0; }
    .hero-inner { display: flex; flex-direction: column; gap: 30px; padding: 0; }
    .hero-left { order: 2; width: 100%; max-width: none; }
    .hero-right { order: 1; width: 100%; max-width: none; min-height: 440px; margin: 0; }
    .hero-trust { position: static; order: 3; width: 100%; margin: -12px 0 0; }
    .free-badge { top: 28px; right: 24px; bottom: auto; }
}

@media (max-width: 520px) {
    .hero { padding-top: 78px; }
    .hero-right { min-height: 330px; }
    .hero-benefits { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .hero-cta { align-items: stretch; flex-direction: column; }
    .hero-cta .btn, .hero-cta .membership-badge { width: 100%; }
}

@media (max-width: 768px) {
    .hero-title { margin-top: 28px; }
}

@media (max-width: 480px) {
    .hero { padding-top: 65px; }
    .hero-inner { gap: 0; }
    .hero-title { font-size: 2.15rem; }
    .hero-benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 7px; }
    .benefit-item { display: block; min-width: 0; padding: 12px 6px; text-align: center; }
    .benefit-item strong { margin: 0; text-align: center; }
    .benefit-item .value { text-align: center; }
    .hero-right { width: calc(100% + 2rem); max-width: none; min-height: 260px; margin: 0 -1rem 15px; }
}

/* Final mobile rules for the campaign footer and action dock. */
@media (max-width: 768px) {
    body { padding-bottom: 0; }
    .footer { padding: 0 1rem 1rem; }
    .footer-content { grid-template-columns: 1fr; gap: 1.75rem; }
    .floating-actions { left: auto; right: 14px; bottom: 14px; display: block; padding: 0; background: transparent; box-shadow: none; }
    .floating-actions .scroll-top { display: flex; width: 44px; min-width: 44px; height: 44px; }
}

/* Full-background hero on responsive viewports. */
@media (max-width: 768px) {
    .hero { min-height: auto; padding: 90px 0 48px; background: #fff url('../images/family-hero-v2.png') 62% center / auto 100% no-repeat; }
    .hero::after { display: block; background: rgba(255,255,255,.9); }
    .hero .container { width: min(100% - 32px, 1440px); padding: 0; }
    .hero-inner { display: block; }
    .hero-left { width: 100%; max-width: none; }
    .hero-right { display: none; }
    .free-badge { top: 18px; right: 14px; bottom: auto; }
    .hero-trust { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 24px; }
}

@media (max-width: 480px) {
    .hero { padding-top: 84px; }
    .hero-benefits { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .hero-trust { grid-template-columns: 1fr; }
}

/* Portrait hero flow: copy, family, benefits, actions, trust. */
@media (max-width: 768px) {
    .hero { min-height: 1220px; padding: 88px 0 38px; background-size: auto 58%; background-position: 67% 43%; background-repeat: no-repeat; }
    .hero::after { background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(255,255,255,.94) 27%, rgba(255,255,255,.12) 46%, rgba(255,255,255,.08) 68%, rgba(255,255,255,.96) 79%, #fff 100%); }
    .hero .container { min-height: 1090px; }
    .hero-inner { display: block; }
    .hero-left { display: block; width: 100%; }
    .hero-right { display: none; }
    .eyebrow { max-width: 62%; margin-bottom: 18px; }
    .hero-title { max-width: 72%; margin-bottom: 18px; font-size: clamp(2.45rem, 8.5vw, 3.5rem); }
    .hero-sub { max-width: 64%; }
    .hero-benefits { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 7px; margin-top: 500px; margin-bottom: 14px; }
    .hero-trust { position: relative; right: auto; bottom: auto; width: 100%; margin: 0; }
}

@media (max-width: 520px) {
    .hero { min-height: 1120px; padding-top: 78px; background-size: auto 48%; background-position: 66% 43%; }
    .hero .container { min-height: 1010px; }
    .eyebrow { max-width: 70%; }
    .hero-title { max-width: 92%; font-size: clamp(2.15rem, 11vw, 2.9rem); }
    .hero-sub { max-width: 78%; }
    .hero-benefits { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 390px; }
}
