/* ===================================
   RESPONSIVE ADJUSTMENTS
   Tablet, Mobile, Extra-small, Landscape,
   Reduced Motion, High Contrast & Print
   (Originally styles.css lines 2688-3657)
   =================================== */

/* --- Responsive Adjustments --- */

/* Tablet adjustments (768px - 1024px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-title {
        font-size: 5rem;
    }

    .section-title {
        font-size: 4.5rem;
    }

    .comparison-title-main,
    .comparison-title-sub {
        font-size: 4rem;
    }

    .cta-title {
        font-size: 6rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .retention-grid {
        gap: 4rem;
    }
}

/* Mobile adjustments (max-width: 640px) */
@media (max-width: 640px) {
    /* Global mobile fixes */
    * {
        max-width: 100%;
    }

    body {
        background-size: 60px 60px;
        background-image:
            linear-gradient(to right, rgba(249, 115, 22, 0.02) 1px, transparent 1px),
            linear-gradient(to bottom, rgba(249, 115, 22, 0.02) 1px, transparent 1px);
    }

    /* Safe area for iPhone X+ */
    .header {
        padding-top: max(1rem, env(safe-area-inset-top));
    }

    .footer {
        padding-bottom: max(3rem, calc(3rem + env(safe-area-inset-bottom)));
    }

    /* Container padding */
    .container {
        padding: 0 1rem;
        overflow: hidden;
    }

    /* Hide decorative elements on mobile */
    .background-hud,
    .hud-blob,
    .hud-line,
    .comparison-glow-left,
    .comparison-glow-right {
        display: none;
    }

    /* Reduce section padding */
    .hero {
        padding-top: 6rem;
        padding-bottom: 2rem;
        min-height: auto;
    }

    .hero-grid {
        gap: 1.5rem;
    }

    .social-proof {
        padding: 2rem 0;
    }

    .features {
        padding: 2rem 0;
    }

    .retention {
        padding: 2rem 0;
        overflow: hidden;
    }

    .comparison {
        padding: 2rem 0;
    }

    .cta-new {
        padding: 2rem 0;
    }

    .footer.footer-compact {
        padding: 1.5rem 0;
    }

    /* Hero Content */
    .hero-content {
        text-align: center;
    }

    .hero-badge {
        padding: 0.375rem 0.75rem;
        margin-bottom: 1rem;
        display: inline-flex;
        max-width: 100%;
    }

    .hero-badge span {
        font-size: 9px;
        letter-spacing: 0.08em;
        line-height: 1.3;
        white-space: normal;
    }

    .hero-badge .icon-sparkles {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }

    .hero-title {
        font-size: 3rem;
        margin-bottom: 1rem;
        line-height: 0.9;
    }

    .hero-description {
        font-size: 0.875rem;
        margin-bottom: 1.5rem;
        line-height: 1.7;
        text-align: center;
        max-width: 100%;
    }

    .hero-buttons {
        margin-bottom: 1.5rem;
        gap: 0.75rem;
    }

    .btn-hero {
        padding: 1rem 1.5rem;
        font-size: 0.9375rem;
        font-weight: 800;
        border-radius: 1rem;
        width: 100%;
        justify-content: center;
        box-shadow: 0 12px 24px -8px rgba(249, 115, 22, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }

    .btn-hero:active {
        transform: translateY(2px) scale(0.98);
        box-shadow: 0 6px 12px -4px rgba(249, 115, 22, 0.4), inset 0 2px 4px rgba(0, 0, 0, 0.15);
    }

    .btn-hero .icon-zap {
        width: 20px;
        height: 20px;
    }

    /* Hero Phone */
    .hero-phone-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        overflow: visible;
    }

    .hero-phone-image {
        max-width: 260px;
        width: 100%;
    }

    /* Hide desktop HUD labels on mobile */
    .hero-phone-container .hud-label {
        display: none;
    }

    /* Mobile HUD Labels Container */
    .hud-labels-mobile {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        width: 100%;
        max-width: 320px;
        margin-top: 1.5rem;
    }

    .hud-label-mobile {
        display: flex;
        align-items: flex-start;
        gap: 0.75rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.95);
        border: 1px solid var(--color-orange-200);
        border-radius: 1rem;
        box-shadow: 0 4px 12px rgba(249, 115, 22, 0.1);
    }

    .hud-label-mobile .hud-label-dot {
        width: 8px;
        height: 8px;
        min-width: 8px;
        margin-top: 4px;
    }

    .hud-label-mobile .icon-radar-small {
        width: 20px;
        height: 20px;
        min-width: 20px;
        color: var(--color-orange-600);
    }

    .hud-label-mobile-content {
        flex: 1;
    }

    .hud-label-mobile .hud-label-title {
        font-size: 11px;
        padding: 0;
        background: none;
        margin-bottom: 0.25rem;
        display: block;
    }

    .hud-label-mobile .hud-label-text {
        font-size: 11px;
        line-height: 1.4;
        color: var(--color-slate-600);
    }

    .hero-phone {
        max-width: 260px;
    }

    .phone-frame {
        padding: 8px;
        border-radius: 2.5rem;
    }

    .phone-screen {
        border-radius: 2rem;
    }

    .phone-content {
        padding: 1rem;
        gap: 1rem;
    }

    .phone-card {
        padding: 1rem;
        border-radius: 1.25rem;
    }

    .phone-card-value {
        font-size: 1.5rem;
    }

    .phone-card-title {
        font-size: 0.75rem;
        margin-bottom: 0.5rem;
    }

    .phone-stat {
        padding: 0.75rem;
        border-radius: 1rem;
    }

    .phone-stat-value {
        font-size: 1rem;
    }

    .phone-stat-label {
        font-size: 7px;
    }

    /* Social Proof */
    .social-proof-inner {
        gap: 1.5rem;
        flex-direction: column;
    }

    .social-proof-header {
        text-align: center;
    }

    .social-proof-title {
        font-size: 1.5rem;
    }

    .stats-grid {
        gap: 1.25rem;
        grid-template-columns: repeat(2, 1fr);
    }

    .stat-item:last-child {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    .stat-value {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }

    .stat-label {
        font-size: 12px;
        letter-spacing: 0.15em;
    }

    /* Features */
    .features-header {
        margin-bottom: 1.5rem;
    }

    .section-label {
        font-size: 12px;
        letter-spacing: 0.2em;
        margin-bottom: 0.75rem;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    .section-description {
        font-size: 1rem;
        line-height: 22px;
    }

    .features-grid {
        gap: 0.75rem;
        grid-template-columns: 1fr;
    }

    .feature-card {
        padding: 1.5rem;
        border-radius: 1.25rem;
        text-align: left;
    }

    .feature-icon {
        width: 3rem;
        height: 3rem;
        border-radius: 0.75rem;
        margin-bottom: 0.875rem;
    }

    .feature-icon svg {
        width: 20px;
        height: 20px;
    }

    .feature-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .feature-description {
        font-size: 0.8125rem;
        line-height: 1.5;
    }

    .feature-bg-icon {
        display: none;
    }

    .feature-title {
        font-size: 1.125rem;
        margin-bottom: 0.75rem;
    }

    .feature-description {
        font-size: 0.875rem;
    }

    /* Retention */
    .retention-card {
        padding: 1.5rem;
        border-radius: 1.5rem;
        overflow: visible;
    }

    .retention-glow {
        display: none;
    }

    .retention-grid {
        gap: 1.5rem;
    }

    .retention-content {
        text-align: center;
    }

    .retention-content .section-label {
        margin-bottom: 1rem;
        font-size: 10px;
        padding: 0.375rem 0.75rem;
    }

    .retention-title {
        margin-bottom: 0.75rem;
    }

    .retention-description {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
        line-height: 1.6;
        max-width: 100%;
    }

    .retention-stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .retention-stat-value {
        font-size: 2rem;
        margin-bottom: 0.25rem;
    }

    .retention-stat-label {
        font-size: 9px;
        letter-spacing: 0.1em;
    }

    .retention-visual {
        padding: 2rem 0 1rem;
        overflow: visible;
    }

    .retention-circles {
        max-width: 280px;
        margin: 0 auto;
    }

    .retention-circle-2 {
        top: 2rem;
        left: 2rem;
        right: 2rem;
        bottom: 2rem;
    }

    .retention-circle-3 {
        top: 4rem;
        left: 4rem;
        right: 4rem;
        bottom: 4rem;
    }

    .retention-center {
        width: 10rem;
        height: 10rem;
    }

    .retention-center-value {
        font-size: 2.5rem;
    }

    .retention-center-label {
        font-size: 0.625rem;
        letter-spacing: 0.15em;
        margin-top: 0.25rem;
    }

    .retention-orbiter {
        width: 3rem;
        height: 3rem;
        top: -1.5rem;
        border-radius: 0.875rem;
    }

    .retention-orbiter svg {
        width: 20px;
        height: 20px;
    }

    .retention-floater {
        display: none;
    }

    /* Comparison */
    .comparison-header {
        margin-bottom: 2rem;
    }

    .comparison-badge {
        font-size: 8px;
        padding: 0.375rem 0.75rem;
        letter-spacing: 0.1em;
    }

    .comparison-titles {
        margin-bottom: 1rem;
    }

    .comparison-title-main,
    .comparison-title-sub {
        font-size: 2rem;
        margin-bottom: -0.25rem;
    }

    .comparison-subtitle {
        font-size: 0.625rem;
    }

    .comparison-matrix {
        border-radius: 1.25rem;
    }

    .comparison-table-header {
        grid-template-columns: 1fr 70px 70px;
    }

    .comparison-table-header .comparison-col-feature {
        padding: 1rem;
    }

    .comparison-table-header .comparison-col-feature span {
        font-size: 8px;
        letter-spacing: 0.1em;
    }

    .comparison-table-header .comparison-col-us {
        padding: 1rem 0.5rem;
    }

    .comparison-table-header .comparison-col-us span {
        font-size: 9px;
        letter-spacing: 0;
    }

    .comparison-table-header .comparison-col-them {
        padding: 1rem 0.5rem;
    }

    .comparison-table-header .comparison-col-them span {
        font-size: 8px;
        letter-spacing: 0.1em;
        color: var(--color-slate-600);
    }

    .comparison-row {
        grid-template-columns: 1fr 70px 70px;
    }

    .comparison-col-feature {
        padding: 1rem;
        gap: 0.5rem;
    }

    .comparison-row-indicator {
        display: none;
    }

    .comparison-feature-title {
        font-size: 0.6875rem;
        line-height: 1.2;
        font-weight: 800;
    }

    .comparison-feature-desc {
        font-size: 9px;
        display: none;
    }

    .comparison-row.expanded .comparison-feature-desc {
        display: block;
        opacity: 1;
        max-height: 100px;
        margin-top: 0.5rem;
    }

    .comparison-col-us,
    .comparison-col-them {
        padding: 1rem 0.5rem;
    }

    .comparison-check-main {
        width: 2rem;
        height: 2rem;
        border-radius: 0.5rem;
    }

    .comparison-check-main svg {
        width: 14px;
        height: 14px;
    }

    .comparison-partial {
        font-size: 8px;
    }

    .comparison-x,
    .comparison-check-muted {
        width: 18px;
        height: 18px;
    }

    /* CTA New */
    .cta-block-main {
        padding: 1.5rem;
        gap: 1rem;
    }

    .cta-badge {
        font-size: 0.625rem;
        padding: 0.375rem 0.75rem;
        margin-bottom: 0.75rem;
    }

    .cta-block-title {
        font-size: 1.125rem;
    }

    .cta-block-text {
        font-size: 0.8125rem;
    }

    .btn-cta-main {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
        width: 100%;
        justify-content: center;
    }

    .btn-cta-main svg {
        width: 22px;
        height: 22px;
    }

    .cta-cards-row {
        grid-template-columns: 1fr;
    }

    .cta-block-small {
        padding: 1rem;
    }

    .cta-block-icon {
        width: 2.25rem;
        height: 2.25rem;
        min-width: 2.25rem;
    }

    .cta-small-title {
        font-size: 0.875rem;
    }

    .cta-small-text {
        font-size: 0.75rem;
    }

    /* Footer */
    .footer-compact-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-contacts {
        justify-content: center;
        gap: 1.5rem;
        flex-direction: column;
        width: 100%;
    }

    .footer-contact-link {
        font-size: 0.75rem;
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem 0.75rem;
        justify-content: center;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .footer-copyright {
        font-size: 9px;
    }

    .footer-link {
        font-size: 0.9375rem;
    }

    .footer-bottom {
        padding-top: 2rem;
        gap: 2rem;
        text-align: center;
    }

    .footer-copyright {
        font-size: 9px;
    }

    .footer-legal {
        flex-direction: column;
        gap: 1rem;
    }

    .footer-legal-link {
        font-size: 9px;
        letter-spacing: 0.3em;
    }

    .footer-branding {
        font-size: 6rem;
        bottom: -2rem;
    }
}

/* Extra small devices (max-width: 375px) */
@media (max-width: 375px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-badge {
        padding: 0.25rem 0.5rem;
    }

    .hero-badge span {
        font-size: 6px;
    }

    .hero-phone {
        max-width: 220px;
    }

    .phone-content {
        padding: 0.75rem;
        gap: 0.75rem;
    }

    .phone-card {
        padding: 0.75rem;
    }

    .phone-card-value {
        font-size: 1.25rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .comparison-title-main,
    .comparison-title-sub {
        font-size: 1.5rem;
    }

    .comparison-table-header,
    .comparison-row {
        grid-template-columns: 1fr 55px 55px;
    }

    .comparison-feature-title {
        font-size: 0.5625rem;
    }

    .comparison-check-main {
        width: 1.5rem;
        height: 1.5rem;
    }

    .comparison-check-main svg {
        width: 10px;
        height: 10px;
    }

    .comparison-partial {
        font-size: 7px;
    }

    .retention-circles {
        max-width: 180px;
    }

    .retention-center {
        width: 6rem;
        height: 6rem;
    }

    .retention-center-value {
        font-size: 1.5rem;
    }

    .retention-center-label {
        font-size: 0.375rem;
    }

    .retention-circle-2 {
        top: 1rem;
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }

    .retention-circle-3 {
        top: 2rem;
        left: 2rem;
        right: 2rem;
        bottom: 2rem;
    }

    .retention-orbiter {
        width: 2rem;
        height: 2rem;
        top: -1rem;
    }

    .retention-orbiter svg {
        width: 14px;
        height: 14px;
    }

    .stat-value {
        font-size: 1.25rem;
    }

    .stat-label {
        font-size: 6px;
    }

    .feature-card {
        padding: 1.25rem;
    }

    .feature-title {
        font-size: 1rem;
    }

    .feature-description {
        font-size: 0.8125rem;
    }
}

/* Landscape mode on mobile */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 6rem;
        padding-bottom: 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-phone {
        max-width: 200px;
    }

    .hero-buttons {
        flex-direction: row;
    }

    .btn-hero,
    .btn-secondary {
        padding: 0.875rem 1.5rem;
        font-size: 0.875rem;
    }

    .mobile-nav {
        overflow-y: auto;
        padding: 2rem;
    }

    .mobile-nav-link {
        font-size: 1.5rem;
    }

    .btn-mobile-cta {
        padding: 0.875rem 2rem;
        font-size: 1rem;
    }

    .retention-circles {
        max-width: 300px;
    }
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scanline {
        display: none;
    }

    .particle {
        display: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-effect,
    .retention-card,
    .feature-card,
    .comparison-row,
    .cta-card {
        background: white;
        border: 2px solid var(--color-slate-900);
    }

    .btn-primary,
    .btn-hero,
    .btn-cta-primary {
        border: 2px solid var(--color-orange-900);
    }
}

/* Print styles */
@media print {
    .scanline,
    .particles,
    .background-hud,
    .header,
    .mobile-nav {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .hero,
    .features,
    .retention,
    .comparison,
    .cta {
        padding: 2rem 0;
    }

    * {
        animation: none !important;
    }
}
