/* Responsive Design */

/* Tablets (768px and below) */
@media (max-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }

    /* Header */
    .nav-menu {
        display: none;
    }

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

    /* Hero */
    .hero {
        grid-template-columns: 1fr;
        padding: var(--spacing-2xl) 0;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Posts grid */
    .posts-grid {
        grid-template-columns: 1fr;
    }

    /* Blog layout */
    .blog-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: -1;
    }

    /* Post layout */
    .post-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar {
        order: -1;
    }

    /* Post item */
    .post-item {
        grid-template-columns: 1fr;
    }

    .post-item-image {
        height: 200px;
    }

    /* Post navigation */
    .post-navigation .container {
        grid-template-columns: 1fr;
    }

    /* Related posts */
    .related-posts {
        padding: var(--spacing-2xl);
    }

    /* CTA section */
    .cta-section {
        padding: var(--spacing-2xl);
    }

    .cta-section h2 {
        font-size: var(--font-size-2xl);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --font-size-4xl: 1.875rem;
        --font-size-3xl: 1.5rem;
        --font-size-2xl: 1.25rem;
        --spacing-3xl: 2rem;
    }

    .container {
        padding: 0 var(--spacing-md);
    }

    /* Header */
    .header-content {
        padding: var(--spacing-md) 0;
    }

    .logo {
        font-size: var(--font-size-xl);
    }

    .header-actions {
        gap: var(--spacing-sm);
    }

    .lang-toggle {
        padding: var(--spacing-sm);
        font-size: var(--font-size-sm);
    }

    .lang-code {
        display: none;
    }

    /* Hero */
    .hero {
        padding: var(--spacing-2xl) 0;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .hero-subtitle {
        font-size: var(--font-size-base);
    }

    .hero-image {
        display: none;
    }

    /* Features */
    .features {
        padding: var(--spacing-2xl) 0;
    }

    .features h2 {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--spacing-2xl);
    }

    .features-grid {
        gap: var(--spacing-lg);
    }

    .feature-card {
        padding: var(--spacing-lg);
    }

    .feature-icon {
        font-size: 2rem;
    }

    /* Latest posts */
    .latest-posts {
        padding: var(--spacing-2xl) 0;
    }

    .latest-posts h2 {
        font-size: var(--font-size-2xl);
    }

    .posts-grid {
        gap: var(--spacing-lg);
    }

    .post-card {
        border-radius: 8px;
    }

    .post-image {
        height: 150px;
    }

    .post-content {
        padding: var(--spacing-md);
    }

    .post-meta {
        flex-wrap: wrap;
        gap: var(--spacing-sm);
    }

    .post-card h3 {
        font-size: var(--font-size-lg);
    }

    /* CTA section */
    .cta-section {
        padding: var(--spacing-2xl);
        margin: var(--spacing-2xl) 0;
    }

    .cta-section h2 {
        font-size: var(--font-size-2xl);
    }

    .cta-section p {
        font-size: var(--font-size-sm);
    }

    /* Page header */
    .page-header {
        padding: var(--spacing-2xl) 0;
        margin-bottom: var(--spacing-2xl);
    }

    .page-header h1 {
        font-size: var(--font-size-2xl);
    }

    /* Post item */
    .post-item {
        padding: var(--spacing-md);
        gap: var(--spacing-md);
    }

    .post-item-image {
        height: 120px;
    }

    .post-item-content h2 {
        font-size: var(--font-size-lg);
    }

    /* Sidebar widgets */
    .sidebar-widget {
        padding: var(--spacing-md);
    }

    /* Pagination */
    .pagination {
        flex-direction: column;
        gap: var(--spacing-md);
    }

    .pagination-link {
        width: 100%;
        text-align: center;
    }

    /* Post single */
    .post-header {
        padding: var(--spacing-2xl) 0;
        margin-bottom: var(--spacing-lg);
    }

    .post-meta-top {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }

    .post-title {
        font-size: var(--font-size-2xl);
    }

    .post-image-hero {
        height: 250px;
        margin-bottom: var(--spacing-2xl);
    }

    .post-body {
        font-size: var(--font-size-sm);
    }

    .post-body h2 {
        font-size: var(--font-size-xl);
    }

    .post-body h3 {
        font-size: var(--font-size-lg);
    }

    .post-body code {
        font-size: 0.85em;
    }

    .post-body pre {
        padding: var(--spacing-md);
        font-size: var(--font-size-xs);
    }

    .post-tags-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Post sidebar */
    .toc-widget,
    .share-widget,
    .author-widget {
        padding: var(--spacing-md);
    }

    .share-buttons {
        gap: var(--spacing-sm);
    }

    .share-btn {
        width: 36px;
        height: 36px;
        font-size: var(--font-size-sm);
    }

    /* Related posts */
    .related-posts {
        padding: var(--spacing-2xl);
        margin: var(--spacing-2xl) 0;
    }

    .related-posts h2 {
        font-size: var(--font-size-xl);
    }

    /* Post navigation */
    .post-navigation {
        padding: var(--spacing-2xl) 0;
        margin: var(--spacing-2xl) 0;
    }

    .nav-post {
        padding: var(--spacing-md);
    }

    /* Footer */
    .footer {
        padding: var(--spacing-2xl) 0 var(--spacing-md);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer-section h4 {
        font-size: var(--font-size-base);
    }

    .footer-bottom {
        padding-top: var(--spacing-md);
        font-size: var(--font-size-xs);
    }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
    :root {
        --font-size-4xl: 1.5rem;
        --font-size-3xl: 1.25rem;
        --font-size-2xl: 1.125rem;
        --spacing-2xl: 1.5rem;
        --spacing-3xl: 1.5rem;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        font-size: var(--font-size-sm);
    }

    .feature-icon {
        font-size: 1.5rem;
    }

    .post-meta {
        font-size: var(--font-size-xs);
    }
}

/* Print styles */
@media print {
    .header,
    .footer,
    .sidebar,
    .post-navigation,
    .related-posts,
    .pagination,
    .cta-section {
        display: none;
    }

    body {
        background-color: white;
        color: black;
    }

    a {
        color: black;
        text-decoration: underline;
    }

    .post-body {
        font-size: 12pt;
        line-height: 1.5;
    }

    .post-title {
        page-break-after: avoid;
    }

    .post-body h2,
    .post-body h3 {
        page-break-after: avoid;
    }
}

/* High DPI screens */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    body {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        padding: var(--spacing-lg) 0;
    }

    .hero-title {
        font-size: var(--font-size-2xl);
    }

    .hero-subtitle {
        display: none;
    }

    .features {
        padding: var(--spacing-lg) 0;
    }
}

/* Accessibility - Reduced motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Accessibility - High contrast */
@media (prefers-contrast: more) {
    :root {
        --border: #000;
        --text-primary: #000;
        --text-secondary: #333;
    }

    body.dark-mode {
        --border: #fff;
        --text-primary: #fff;
        --text-secondary: #ccc;
    }

    .btn-primary {
        border: 2px solid black;
    }

    body.dark-mode .btn-primary {
        border: 2px solid white;
    }
}

/* ========================================
   WAITLIST LANDING PAGE - RESPONSIVE
   ======================================== */

/* Hero Waitlist Section - Responsive */
@media (max-width: 1024px) {
    .hero-waitlist-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-waitlist-title {
        font-size: 2.5rem;
    }
    
    .phone-mockup {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .hero-waitlist {
        padding: 80px 0 60px;
    }
    
    .hero-waitlist-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-waitlist-subtitle {
        font-size: 1.125rem;
    }
    
    .form-group {
        flex-direction: column;
        gap: 16px;
    }
    
    .email-input {
        width: 100%;
    }
    
    .btn-waitlist {
        width: 100%;
    }
    
    .phone-mockup {
        width: 250px;
        height: 500px;
    }
}

@media (max-width: 480px) {
    .hero-waitlist {
        padding: 60px 0 40px;
    }
    
    .hero-waitlist-title {
        font-size: 1.75rem;
    }
    
    .hero-waitlist-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }
    
    .phone-mockup {
        width: 200px;
        height: 400px;
    }
    
    .phone-frame {
        padding: 8px;
    }
    
    .phone-screen {
        padding: 16px;
    }
    
    .app-title {
        font-size: 1rem;
    }
    
    .strategy-title {
        font-size: 0.875rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .insight-text {
        font-size: 0.75rem;
    }
}

/* Features Grid - Responsive */
@media (max-width: 1024px) {
    .features-grid-3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .features-grid-3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .feature-block {
        padding: 32px 24px;
    }
    
    .feature-icon {
        font-size: 2.5rem;
        margin-bottom: 20px;
    }
    
    .feature-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .feature-block {
        padding: 24px 20px;
    }
    
    .feature-icon {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .feature-title {
        font-size: 1rem;
    }
    
    .feature-description {
        font-size: 0.875rem;
    }
}

/* Problem Section - Responsive */
@media (max-width: 768px) {
    .problem-section {
        padding: 60px 0;
    }
    
    .problems-list {
        gap: 16px;
    }
    
    .problem-item {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .problem-icon {
        font-size: 2rem;
    }
    
    .problem-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .problem-section {
        padding: 40px 0;
    }
    
    .problem-item {
        padding: 12px;
    }
    
    .problem-text {
        font-size: 0.9375rem;
    }
}

/* Solution Section - Responsive */
@media (max-width: 768px) {
    .solution-section {
        padding: 60px 0;
    }
    
    .solution-description {
        font-size: 1.125rem;
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .solution-section {
        padding: 40px 0;
    }
    
    .solution-description {
        font-size: 1rem;
        padding: 0 16px;
    }
}

/* How It Works Section - Responsive */
@media (max-width: 768px) {
    .how-it-works-section {
        padding: 60px 0;
    }
    
    .steps-process {
        gap: 32px;
        margin-top: 40px;
    }
    
    .step-item {
        gap: 20px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .step-title {
        font-size: 1.25rem;
    }
    
    .step-description {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .how-it-works-section {
        padding: 40px 0;
    }
    
    .steps-process {
        gap: 24px;
        margin-top: 32px;
    }
    
    .step-item {
        gap: 16px;
        text-align: center;
    }
    
    .step-number {
        width: 40px;
        height: 40px;
        font-size: 1.125rem;
        margin: 0 auto;
    }
    
    .step-content {
        padding-top: 0;
    }
    
    .step-title {
        font-size: 1.125rem;
    }
    
    .step-description {
        font-size: 0.9375rem;
    }
}

/* Final CTA Section - Responsive */
@media (max-width: 768px) {
    .final-cta-section {
        padding: 60px 0;
    }
    
    .final-cta-description {
        font-size: 1.125rem;
        padding: 0 20px;
    }
    
    .final-form {
        padding: 0 20px;
    }
}

@media (max-width: 480px) {
    .final-cta-section {
        padding: 40px 0;
    }
    
    .final-cta-description {
        font-size: 1rem;
        padding: 0 16px;
    }
    
    .final-form {
        padding: 0 16px;
    }
}

/* Blog Section - Responsive */
@media (max-width: 768px) {
    .blog-section {
        padding: 60px 0;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (max-width: 480px) {
    .blog-section {
        padding: 40px 0;
    }
    
    .posts-grid {
        gap: 20px;
    }
}

/* Survey Modal - Responsive */
@media (max-width: 768px) {
    .survey-modal {
        padding: 16px;
    }
    
    .survey-content {
        padding: 32px 24px;
        max-height: 90vh;
    }
    
    .survey-header h3 {
        font-size: 1.25rem;
    }
    
    .survey-description {
        font-size: 1rem;
    }
    
    .radio-option {
        padding: 16px;
    }
    
    .btn-survey-submit {
        padding: 14px 28px;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    .survey-modal {
        padding: 12px;
    }
    
    .survey-content {
        padding: 24px 20px;
        border-radius: 12px;
    }
    
    .survey-header {
        margin-bottom: 20px;
    }
    
    .survey-header h3 {
        font-size: 1.125rem;
    }
    
    .survey-description {
        font-size: 0.9375rem;
        margin-bottom: 24px;
    }
    
    .survey-form {
        gap: 20px;
    }
    
    .survey-question {
        gap: 8px;
    }
    
    .radio-option {
        padding: 12px;
        font-size: 0.9375rem;
    }
    
    .btn-survey-submit {
        padding: 12px 24px;
        font-size: 0.875rem;
    }
}

/* Survey Thank You - Responsive */
@media (max-width: 480px) {
    .survey-thank-you {
        text-align: center;
        padding: 20px 0;
    }
    
    .thank-you-icon {
        font-size: 3rem;
        margin-bottom: 16px;
    }
    
    .survey-thank-you h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .survey-thank-you p {
        font-size: 0.9375rem;
        margin-bottom: 8px;
    }
}

/* Success Message - Responsive */
@media (max-width: 480px) {
    .success-message {
        text-align: center;
        padding: 20px;
    }
    
    .success-icon {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }
    
    .success-message h3 {
        font-size: 1.25rem;
        margin-bottom: 12px;
    }
    
    .success-message p {
        font-size: 0.9375rem;
    }
}

/* Form animations - Mobile optimizations */
@media (max-width: 768px) {
    .email-input:focus,
    input[type="text"]:focus {
        transform: none;
    }
    
    .btn-waitlist:active {
        transform: scale(0.98);
    }
    
    .feature-block:active {
        transform: scale(0.98);
    }
}

/* Touch-friendly targets */
@media (max-width: 768px) {
    .btn-waitlist,
    .btn-survey-submit {
        min-height: 48px;
        padding: 12px 24px;
    }
    
    .radio-option {
        min-height: 48px;
        padding: 12px 16px;
    }
    
    .survey-close {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Single Page Responsive */
    .single-page {
        padding: 60px 0;
    }

    .single-content h1 {
        font-size: 1.8rem;
    }

    .page-body h2 {
        font-size: 1.4rem;
    }

    .page-body h3 {
        font-size: 1.2rem;
    }

    .page-body {
        font-size: 1rem;
    }
}
