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

/* ================================
   CSS Variables
   ================================ */
:root {
    /* Colors - JidouNavi Brand Palette */
    --color-primary: #FF4B4B;
    --color-primary-dark: #E63E3E;
    --color-secondary: #3C91E6;
    --color-accent: #FFB7CE;
    --color-highlight: #FFD966;
    --color-background: #FDF3E7;
    --color-surface: #FDF3E7;
    --color-text: #2B2B2B;
    --color-text-secondary: #5A5A5A;
    --color-text-muted: #8A8A8A;
    --color-border: #E8DDD0;
    --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);
    }
}

/* ================================
   Hero Section - Split Layout (Desktop) / Vertical (Mobile)
   ================================ */
html, body {
    height: 100%;
}

.main-fullscreen {
    min-height: 100vh;
}

/* Mobile: vertical centered layout */
.hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: 100vh;
}

/* Mobile: use contents so we can reorder children */
.hero-content {
    display: contents;
}

/* Mobile ordering: brand, hook, phones, subtext, cta, footer */
.brand { order: 1; }
.hero-hook { order: 2; }
.screenshots { order: 3; }
.hero-subtext { order: 4; }
.cta-section { order: 5; }
.maker-note { order: 6; }
.footer-links-inline { order: 7; }

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.brand-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
}

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

/* Hook headline */
.hero-hook {
    font-size: var(--font-size-lg);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: var(--spacing-lg);
    color: var(--color-text);
}

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

/* Subtext after phones */
.hero-subtext {
    font-size: var(--font-size-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.screenshots {
    margin-bottom: var(--spacing-lg);
}

.maker-note {
    margin-top: var(--spacing-xl);
    font-size: 0.85rem;
    color: var(--color-text-muted, #8A8A8A);
    text-align: center;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.footer-links-inline {
    display: flex;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
    justify-content: center;
    padding: var(--spacing-sm) var(--spacing-md);
    background: rgba(0, 0, 0, 0.04);
    border-radius: var(--radius-full);
}

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

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

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

    .hero-centered {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: var(--spacing-3xl);
        padding: var(--spacing-xl) var(--spacing-2xl);
        max-width: 1400px;
        margin: 0 auto;
        height: 100vh;
    }

    /* Reset mobile ordering */
    .brand, .hero-hook, .screenshots, .hero-subtext, .cta-section, .maker-note, .footer-links-inline {
        order: unset;
    }

    /* Screenshots: no bottom margin on desktop */
    .screenshots {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    /* Right side: content wrapper becomes a real flex container */
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        max-width: 480px;
    }

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

    .hero-subtext {
        font-size: var(--font-size-lg);
    }

    .footer-links-inline {
        justify-content: flex-start;
    }

    .brand-icon {
        width: 88px;
        height: 88px;
    }

    .brand-name {
        font-size: 3rem;
    }

    .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);
}

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

.phone-mockup.featured {
    width: 170px;
    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);
}

/* Phones on mobile - show all three */
@media (max-width: 600px) {
    .phone-mockup {
        width: 98px;
        transform: scale(0.95);
        opacity: 0.92;
    }

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

    .screenshots {
        gap: 6px;
    }
}

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

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

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

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

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

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

.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);
}

/* Waitlist Count */
.waitlist-count {
    margin-top: var(--spacing-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.4s ease forwards;
}

@media (min-width: 900px) {
    .waitlist-count {
        text-align: left;
    }
}

@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: #ffffff;
    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, 75, 75, 0.15);
    color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(255, 75, 75, 0.1);
}

.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: #ffffff;
    transition: all var(--transition-fast);
    cursor: text;
}

.email-input:hover {
    border-color: var(--color-text-muted);
    background: #fafafa;
}

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

.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;
        min-width: 220px;
    }

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

/* Form Disclaimer */
.form-disclaimer {
    font-size: var(--font-size-xs);
    color: var(--color-text-muted);
    margin-top: var(--spacing-sm);
}

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

.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: 76px;
    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);
}

/* ================================
   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;
}

/* ================================
   Language Switcher
   ================================ */
.lang-switcher {
    position: fixed;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-full);
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: all var(--transition-base);
    z-index: 1000;
}

.lang-switcher:hover {
    background: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}
