/*======================================================
    Responsive — MediLinkFilm
======================================================*/


/* Large laptop */
@media (max-width: 1200px) {

    .container {
        width: min(1080px, 94%);
    }

    .feature-grid {
        gap: 20px;
    }

}


/* Tablet landscape */
@media (max-width: 992px) {

    section {
        padding: 80px 0;
    }

    .nav {
        display: none;
        position: absolute;
        top: 68px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid var(--border);
        border-top: 1px solid var(--border);
        padding: 12px 5%;
        box-shadow: var(--shadow-md);
    }

    .nav.open {
        display: flex;
    }

    .nav a {
        padding: 14px 0;
        border-bottom: 1px solid var(--border);
        font-size: 15px;
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .nav-toggle {
        display: flex;
    }

    .header-actions .header-link {
        display: none;
    }

    .hero {
        padding-top: 108px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "copy"
            "visual"
            "actions"
            "foot";
        text-align: left;
        gap: 28px;
    }

    .hero-copy,
    .hero-foot {
        text-align: left;
    }

    .hero-subtitle,
    .hero-meta,
    .offer-inline {
        margin-left: 0;
        margin-right: 0;
        max-width: none;
    }

    .hero-meta {
        justify-items: stretch;
        width: 100%;
    }

    .hero-meta li {
        justify-content: flex-start;
        align-items: flex-start;
        text-align: left;
        line-height: 1.5;
    }

    .hero-meta .dot {
        margin-top: 0.48em;
    }

    .offer-inline {
        text-align: left;
    }

    .hero-right {
        justify-self: center;
        width: 100%;
    }

    .hero-buttons,
    .hero-actions,
    .hero-meta li {
        justify-content: flex-start;
    }

    .hero-actions.hero-buttons {
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-actions.hero-buttons .btn-primary {
        order: 1;
    }

    .hero-actions.hero-buttons .btn-secondary {
        order: 2;
    }

    .viewer-grid {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: left;
    }

    .viewer-content h2,
    .viewer-content .eyebrow {
        text-align: left;
    }

    .viewer-list li {
        justify-content: flex-start;
        text-align: left;
        max-width: none;
        margin: 0;
    }

    .viewer-content .link-arrow {
        margin-left: 0;
        margin-right: auto;
    }

    .floor-content h2,
    .teams-content h2 {
        text-align: left;
    }

    .floor-content .eyebrow,
    .teams-content .eyebrow {
        display: inline-block;
        text-align: left;
        margin: 0 0 16px;
    }

    .floor-content > p,
    .teams-content > p {
        text-align: left;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .workflow-grid::before {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .router-live {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .router-live .router-queue {
        grid-column: 1 / -1;
    }

    .router-grid {
        grid-template-columns: 1fr;
    }

    .router-showcase {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .router-showcase-image {
        position: static;
        aspect-ratio: 16 / 10;
        max-width: 640px;
        margin: 0 auto;
    }

    .floor-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .teams-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .teams-image {
        max-width: 360px;
    }

    .security-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .signatures-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

}


/* Tablet portrait + phone — reading-first layout */
@media (max-width: 768px) {

    section {
        padding: 64px 0;
    }

    .container {
        width: min(1080px, 92%);
    }

    body {
        padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px));
    }

    section h2,
    .section-head,
    .section-head p {
        text-align: left;
    }

    .section-head {
        margin-left: 0;
        margin-right: 0;
        max-width: none;
    }

    .trust-band p {
        text-align: left;
        letter-spacing: 0.1em;
        font-size: 12px;
        line-height: 1.45;
    }

    .trust-band-row {
        justify-content: flex-start;
        gap: 14px 20px;
        font-size: 14px;
    }

    .feature-card {
        padding: 24px 20px;
    }

    .workflow-step {
        padding: 22px 18px;
    }

    .price-card {
        text-align: left;
        padding: 28px 22px 24px;
    }

    .price-card ul {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .price-card .btn {
        width: 100%;
    }

    .faq-question {
        padding: 16px 18px;
        font-size: 15px;
        text-align: left;
        align-items: flex-start;
    }

    .faq-answer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .builders-roster,
    .builder {
        text-align: left;
    }

    .security-item h4,
    .security-item p {
        text-align: left;
    }

    .router-showcase-content h2,
    .router-showcase-content p,
    .router-showcase-content .eyebrow {
        text-align: left;
    }

    .signatures .section-head p {
        margin-left: 0;
        margin-right: 0;
    }

    .sig-card {
        padding: 24px 20px;
    }

    .compare-wrap {
        margin-left: -2%;
        margin-right: -2%;
        border-radius: var(--radius);
    }

    .section-head {
        margin-bottom: 40px;
    }

    .header .container {
        height: 60px;
    }

    .logo img,
    .logo {
        height: 30px;
    }

    .nav {
        top: 60px;
    }

    .hero {
        padding-top: 104px;
    }

    .hero h1 {
        font-size: clamp(28px, 7vw, 40px);
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-buttons,
    .hero-actions.hero-buttons {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }

    .hero-buttons .btn,
    .hero-actions.hero-buttons .btn {
        width: 100%;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .workflow-grid {
        grid-template-columns: 1fr;
    }

    .compare-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .floor-band,
    #teams,
    .teams-band {
        padding: 64px 0;
    }

    .teams-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .floor-image {
        aspect-ratio: 16 / 10;
    }

    .security-grid {
        grid-template-columns: 1fr;
    }

    #builders,
    .builders-band {
        padding: 64px 0;
    }

    /* Keep two columns on tablet; only stack on very narrow phones */
    .builders-roster {
        gap: 16px 24px;
        max-width: none;
    }

    .signatures {
        padding: 64px 0;
    }

    .signatures-grid {
        grid-template-columns: 1fr;
    }

    .sig-card {
        padding: 28px 24px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .cta {
        padding: 64px 0;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 300px;
        margin: 0 auto;
    }

    .cta-buttons .btn {
        width: 100%;
    }

}


/* Small mobile */
@media (max-width: 480px) {

    section {
        padding: 56px 0;
    }

    section h2 {
        font-size: 26px;
    }

    .builders-roster {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .builder:nth-child(2) {
        border-top: 1px solid var(--border);
        padding-top: 22px;
    }

    .header-actions .btn-primary {
        padding: 8px 14px;
        font-size: 13px;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-number {
        font-size: 32px;
    }

    .whatsapp {
        width: 48px;
        height: 48px;
        right: 18px;
        bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    }

    .whatsapp svg {
        width: 22px;
        height: 22px;
    }

    #backTop {
        right: 18px;
        bottom: calc(122px + env(safe-area-inset-bottom, 0px));
        width: 40px;
        height: 40px;
    }

    .phone-mock,
    .phone-mock-lg {
        width: min(280px, 100%);
    }

}
