/* JidouNavi Landing Page Styles */
/* Mobile-first responsive design */

/* ================================
   CSS Variables
   ================================ */
:root {
    /* Colors */
    --color-primary: #FF6B6B;
    --color-primary-dark: #E85555;
    --color-secondary: #4ECDC4;
    --color-background: #FAFAFA;
    --color-surface: #FFFFFF;
    --color-text: #2D3436;
    --color-text-secondary: #636E72;
    --color-text-muted: #B2BEC3;
    --color-border: #DFE6E9;
    --color-success: #00B894;
    --color-error: #D63031;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;
    --font-size-4xl: 2.5rem;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 200ms ease;
    --transition-slow: 300ms ease;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul {
    list-style: none;
}

/* ================================
   Layout
   ================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-xl);
    }
}

/* ================================
   Header
   ================================ */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    padding: var(--spacing-md) 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
}

.logo-text {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text);
}

/* ================================
   Hero Section - Full Viewport Split Layout
   ================================ */
html, body {
    height: 100%;
}

.main-fullscreen {
    min-height: calc(100vh - 73px); /* viewport minus header */
}

.hero-split {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 73px);
    background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-background) 100%);
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-md);
}

.hero-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-sm);
}

.hero-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: var(--spacing-md);
}

.hero-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.hero-title .highlight {
    color: var(--color-primary);
}

.hero-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    max-width: 400px;
}

.footer-links-inline {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-md);
    justify-content: center;
}

.footer-links-inline a {
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
}

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

/* Desktop: side-by-side layout */
@media (min-width: 900px) {
    html, body {
        overflow: hidden;
    }

    .hero-split {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-2xl);
        padding: 0 var(--spacing-2xl);
        height: calc(100vh - 73px);
    }

    .hero-left {
        flex: 0 1 auto;
        padding: var(--spacing-xl);
    }

    .hero-right {
        flex: 0 1 auto;
        padding: var(--spacing-2xl);
        align-items: flex-start;
        text-align: left;
        max-width: 480px;
    }

    .hero-title {
        font-size: var(--font-size-3xl);
        margin-bottom: var(--spacing-md);
    }

    .hero-subtitle {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-lg);
    }

    .footer-links-inline {
        justify-content: flex-start;
        margin-top: var(--spacing-xl);
    }

    .footer-links-inline a {
        font-size: var(--font-size-sm);
    }
}

/* ================================
   Screenshots
   ================================ */
.screenshots {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--spacing-sm);
    max-height: 100%;
}

.phone-mockup {
    width: 90px;
    flex-shrink: 0;
    opacity: 0.85;
    transform: scale(0.9);
    transition: all var(--transition-base);
}

.phone-mockup.featured {
    width: 120px;
    opacity: 1;
    transform: scale(1);
}

.phone-mockup:hover {
    opacity: 1;
    transform: scale(0.95);
}

.phone-mockup.featured:hover {
    transform: scale(1.02);
}

.screenshot {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 3px solid var(--color-text);
    background: var(--color-text);
}

/* Smaller phones on mobile but show all three */
@media (max-width: 600px) {
    .phone-mockup {
        width: 70px;
    }

    .phone-mockup.featured {
        width: 100px;
    }

    .screenshots {
        gap: var(--spacing-xs);
    }
}

@media (min-width: 900px) {
    .phone-mockup {
        width: 140px;
    }

    .phone-mockup.featured {
        width: 180px;
    }

    .screenshots {
        gap: var(--spacing-md);
    }
}

@media (min-width: 1200px) {
    .phone-mockup {
        width: 160px;
    }

    .phone-mockup.featured {
        width: 200px;
    }
}

/* ================================
   CTA Section
   ================================ */
.cta-section {
    background: transparent;
    padding: 0;
    width: 100%;
    max-width: 400px;
}

.cta-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.cta-subtitle {
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

@media (min-width: 900px) {
    .cta-title {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-md);
    }

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

/* Platform Selector */
.platform-selector {
    display: flex;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.platform-btn {
    flex: 1;
    padding: var(--spacing-md);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-surface);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    font-family: inherit;
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
}

.platform-btn:hover {
    border-color: var(--color-text-muted);
}

.platform-btn.active {
    border-color: var(--color-primary);
    background: rgba(255, 107, 107, 0.05);
    color: var(--color-primary);
}

.platform-btn svg {
    width: 20px;
    height: 20px;
}

/* Email Form */
.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.email-input {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: var(--font-size-base);
    color: var(--color-text);
    background: var(--color-surface);
    transition: border-color var(--transition-fast);
}

.email-input:focus {
    outline: none;
    border-color: var(--color-primary);
}

.email-input::placeholder {
    color: var(--color-text-muted);
}

.submit-btn {
    width: 100%;
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-lg);
    background: var(--color-primary);
    color: white;
    font-family: inherit;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.submit-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: var(--color-text-muted);
    cursor: not-allowed;
    transform: none;
}

@media (min-width: 500px) {
    .waitlist-form {
        flex-direction: row;
    }

    .email-input {
        flex: 1;
    }

    .submit-btn {
        width: auto;
        white-space: nowrap;
    }
}

/* Form Messages */
.form-message {
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    text-align: center;
}

.form-message.success {
    background: rgba(0, 184, 148, 0.1);
    color: var(--color-success);
}

.form-message.error {
    background: rgba(214, 48, 49, 0.1);
    color: var(--color-error);
}

/* Store Badges */
.store-badges {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
}

.store-badge {
    display: block;
    height: 52px;
    transition: transform var(--transition-fast);
}

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

.store-badge img {
    height: 100%;
    width: auto;
}

@media (min-width: 500px) {
    .store-badges {
        flex-direction: row;
        justify-content: center;
    }
}

/* iOS Waitlist (when Android is live) */
.ios-waitlist {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--color-border);
}

.ios-waitlist-title {
    font-size: var(--font-size-base);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.ios-waitlist-subtitle {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
}

/* ================================
   Features Section
   ================================ */
.features {
    padding: var(--spacing-3xl) 0;
    background: var(--color-surface);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    color: var(--color-text);
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-xl);
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-lg);
    background: rgba(255, 107, 107, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
}

.feature-card h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--color-text);
}

.feature-card p {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ================================
   SEO Content Section
   ================================ */
.seo-content {
    padding: var(--spacing-3xl) 0;
    background: var(--color-background);
}

.seo-content h2 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--color-text);
}

.seo-content h2:not(:first-child) {
    margin-top: var(--spacing-2xl);
}

.seo-content p {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.seo-content ul {
    margin-bottom: var(--spacing-md);
    padding-left: var(--spacing-lg);
}

.seo-content li {
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-sm);
    line-height: 1.7;
    list-style: disc;
}

.seo-content li strong {
    color: var(--color-text);
}

/* FAQ Accordions */
.seo-content details {
    margin-bottom: var(--spacing-md);
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.seo-content summary {
    padding: var(--spacing-md) var(--spacing-lg);
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.seo-content summary::-webkit-details-marker {
    display: none;
}

.seo-content summary::after {
    content: '+';
    font-size: var(--font-size-xl);
    color: var(--color-text-muted);
    transition: transform var(--transition-fast);
}

.seo-content details[open] summary::after {
    transform: rotate(45deg);
}

.seo-content details p {
    padding: 0 var(--spacing-lg) var(--spacing-lg);
    margin: 0;
}

/* ================================
   Footer
   ================================ */
.footer {
    padding: var(--spacing-2xl) 0;
    background: var(--color-text);
    color: var(--color-text-muted);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: var(--color-surface);
    font-weight: 600;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-surface);
}

.footer-copyright {
    text-align: center;
    font-size: var(--font-size-xs);
    color: var(--color-text-secondary);
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ================================
   Utility Classes
   ================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ================================
   Animations
   ================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-section {
    animation: fadeIn 0.5s ease-out;
}
