/* ============================================
   ACL Rehab Landing Page Styles
   ============================================ */

/* CSS Variables */
:root {
    --color-primary: #009688;
    --color-primary-dark: #00796B;
    --color-primary-light: #4DB6AC;
    --color-secondary: #00BCD4;
    --color-accent: #FF5722;

    --color-text: #1a1a2e;
    --color-text-light: #4a4a68;
    --color-text-muted: #6b7280;

    --color-bg: #ffffff;
    --color-bg-alt: #f8fafa;
    --color-bg-dark: #1a1a2e;

    --color-border: #e5e7eb;
    --color-warning: #fef3cd;
    --color-warning-border: #ffc107;
    --color-danger: #fee2e2;
    --color-danger-border: #ef4444;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;

    --transition: all 0.3s ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--color-primary-dark);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-text);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.125rem;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: white;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: white;
}

/* Top App Store Banner */
.top-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    padding: 8px 0;
    text-align: center;
}

.top-banner-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
}

.top-banner-link:hover {
    color: white;
    opacity: 0.9;
}

.top-banner-arrow {
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background-color: transparent;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.logo-icon {
    font-size: 1.75rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--color-text);
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--color-primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    padding: 176px 0 80px;
    background: linear-gradient(135deg, #f0fdfa 0%, #e0f2f1 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-light);
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Phone Mockup */
.phone-mockup {
    width: 280px;
    height: 560px;
    background: #1a1a2e;
    border-radius: 36px;
    padding: 12px;
    box-shadow: var(--shadow-xl);
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 28px;
    overflow: hidden;
}

.app-preview {
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.app-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--color-text-muted);
}

.stat-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-text);
}

.app-level {
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 12px;
}

.app-progress {
    height: 8px;
    background: var(--color-border);
    border-radius: var(--radius-full);
    margin-bottom: 24px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--color-primary);
    border-radius: var(--radius-full);
}

.app-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: auto;
}

.mini-card {
    background: var(--color-bg-alt);
    padding: 16px;
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Problem Section */
.problem {
    padding: 80px 0;
    background: var(--color-bg);
}

.problem h2 {
    text-align: center;
    margin-bottom: 48px;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.problem-card {
    text-align: center;
    padding: 32px 24px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.problem-card p {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.features h2 {
    text-align: center;
    margin-bottom: 16px;
}

.section-subtitle {
    text-align: center;
    color: var(--color-text-light);
    margin-bottom: 48px;
    font-size: 1.125rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: white;
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.feature-card.featured {
    border-color: var(--color-primary);
    border-width: 2px;
}

.feature-badge {
    position: absolute;
    top: -12px;
    right: 24px;
    background: var(--color-primary);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card > p {
    color: var(--color-text-light);
    margin-bottom: 16px;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 4px 0;
    padding-left: 24px;
    position: relative;
    font-size: 0.875rem;
    color: var(--color-text-light);
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: 600;
}

/* How It Works Section */
.how-it-works {
    padding: 80px 0;
    background: var(--color-bg);
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 48px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.step {
    text-align: center;
    position: relative;
}

.step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -12px;
    width: 24px;
    height: 2px;
    background: var(--color-border);
}

.step-number {
    width: 64px;
    height: 64px;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 16px;
}

.step-content h3 {
    font-size: 1.125rem;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Benefits Section */
.benefits {
    padding: 80px 0;
    background: var(--color-bg-alt);
}

.benefits h2 {
    text-align: center;
    margin-bottom: 48px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.benefit {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.benefit-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.benefit-content h4 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.benefit-content p {
    font-size: 0.875rem;
    color: var(--color-text-light);
}

/* Disclaimer Section */
.disclaimer {
    padding: 80px 0;
    background: var(--color-bg);
}

.disclaimer-box {
    max-width: 800px;
    margin: 0 auto;
    background: var(--color-warning);
    border: 2px solid var(--color-warning-border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.disclaimer-box h2 {
    text-align: center;
    margin-bottom: 24px;
}

.disclaimer-content {
    margin-bottom: 24px;
}

.disclaimer-content h3 {
    font-size: 1.125rem;
    margin-bottom: 12px;
}

.disclaimer-content p {
    margin-bottom: 16px;
}

.disclaimer-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.disclaimer-content li {
    margin-bottom: 8px;
}

.red-flags {
    background: var(--color-danger);
    border: 1px solid var(--color-danger-border);
    border-radius: var(--radius-md);
    padding: 20px;
}

.red-flags h4 {
    margin-bottom: 12px;
    color: #b91c1c;
}

.red-flags ul {
    list-style: disc;
    padding-left: 24px;
}

.red-flags li {
    margin-bottom: 8px;
    color: #7f1d1d;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    text-align: center;
}

.download h2 {
    color: white;
    margin-bottom: 16px;
}

.download .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.store-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background: black;
    color: white;
    padding: 12px 24px;
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.store-badge:hover {
    transform: scale(1.05);
    color: white;
}

.store-badge.coming-soon {
    background: #4a4a68;
    cursor: default;
}

.store-badge.coming-soon:hover {
    transform: none;
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.store-label {
    font-size: 0.625rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.8;
}

.store-name {
    font-size: 1.25rem;
    font-weight: 600;
}

.download-note {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
}

/* Footer */
.footer {
    background: var(--color-bg-dark);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 24px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand .logo {
    color: white;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.875rem;
}

.footer-links h4 {
    color: white;
    font-size: 1rem;
    margin-bottom: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    text-align: center;
    font-size: 0.875rem;
}

/* Legal Page Styles */
.legal-page {
    padding: 156px 0 60px;
    min-height: calc(100vh - 200px);
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h1 {
    margin-bottom: 8px;
}

.last-updated {
    color: var(--color-text-muted);
    margin-bottom: 48px;
}

.legal-content section {
    margin-bottom: 40px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--color-border);
}

.legal-content h3 {
    font-size: 1.125rem;
    margin: 24px 0 12px;
}

.legal-content h4 {
    font-size: 1rem;
    margin: 20px 0 8px;
}

.legal-content p {
    margin-bottom: 16px;
    color: var(--color-text-light);
}

.legal-content ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-content li {
    margin-bottom: 8px;
    color: var(--color-text-light);
}

.table-wrapper {
    overflow-x: auto;
    margin: 16px 0;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.legal-content th,
.legal-content td {
    padding: 12px 16px;
    text-align: left;
    border: 1px solid var(--color-border);
}

.legal-content th {
    background: var(--color-bg-alt);
    font-weight: 600;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-image {
        order: -1;
    }

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

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

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

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

    .step:not(:last-child)::after {
        display: none;
    }

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

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.5rem; }

    .nav-links {
        position: fixed;
        top: 106px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        box-shadow: var(--shadow-lg);
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

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

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 136px 0 60px;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .features-grid,
    .problem-grid,
    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .store-badge {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

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

    .btn-lg {
        width: 100%;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
    }

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

    .disclaimer-box {
        padding: 20px;
    }
}
