/* ============================================
   Breno — Website Styles
   Matches the iOS app's warm design system
   
   Color Tokens from app:
   - Background:  #F5F1EA (Warm Paper)
   - Surface:     #E8E3DA (Soft Stone)
   - Charcoal:    #1E1E1E
   - Dust Grey:   #6F6A63
   - Clay:        #B76A4C (Accent)
   - Clay Light:  #C9886E
   - Clay Dark:   #8E4A30
   
   Activity Colors:
   - Book:        #F4A261 (Apricot)
   - Movie:       #3E5CFF (Royal Blue)
   - Theatre:     #D65A8F (Raspberry)
   - Exhibition:  #7FB77E (Sage Green)
   - Concert:     #F6C945 (Golden Yellow)
   ============================================ */

/* ---- Custom Properties ---- */

:root {
    /* Core palette — Light */
    --bg: #F5F1EA;
    --bg-surface: #E8E3DA;
    --bg-card: rgba(255, 255, 255, 0.40);
    --bg-input: rgba(255, 255, 255, 0.50);
    --text-primary: #1E1E1E;
    --text-secondary: #6F6A63;
    --text-tertiary: rgba(30, 30, 30, 0.50);
    --accent: #B76A4C;
    --accent-light: #C9886E;
    --accent-dark: #8E4A30;
    --action: #1E1E1E;
    --action-text: #FAFAF7;
    --divider: rgba(0, 0, 0, 0.08);

    /* Activity type colors */
    --color-book: #F4A261;
    --color-movie: #3E5CFF;
    --color-theatre: #D65A8F;
    --color-exhibition: #7FB77E;
    --color-concert: #F6C945;

    /* Spacing (matches app tokens) */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-xxl: 48px;
    --space-xxxl: 64px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.10);

    /* Nav background */
    --nav-bg: rgba(245, 241, 234, 0.85);
    --nav-border: rgba(183, 106, 76, 0.10);
}

/* ---- Dark Mode ---- */

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #1C1A17;
        --bg-surface: #2A2724;
        --bg-card: rgba(255, 255, 255, 0.06);
        --bg-input: rgba(255, 255, 255, 0.08);
        --text-primary: #F5F1EA;
        --text-secondary: #A09A92;
        --text-tertiary: rgba(245, 241, 234, 0.45);
        --action: #F5F1EA;
        --action-text: #1C1A17;
        --divider: rgba(255, 255, 255, 0.10);

        --nav-bg: rgba(28, 26, 23, 0.85);
        --nav-border: rgba(183, 106, 76, 0.12);

        --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.20);
        --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.25);
        --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.30);
    }
}

/* ---- Reset ---- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ---- Typography (Fraunces = web equivalent of Cooper) ---- */

h1, h2, h3, .logo {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
}

/* ---- Navigation ---- */

nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--nav-border);
}

nav .nav-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--space-md) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav .logo {
    font-family: 'Potta One', cursive;
    font-size: 26px;
    font-weight: 400;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

/* Logo text is uniform color — no accent span */

nav .nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

nav .nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
}

nav .nav-links a:hover,
nav .nav-links a.active {
    color: var(--accent);
}

/* ---- Hero Section ---- */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px var(--space-lg) 80px;
}

.hero-content {
    max-width: 680px;
}

.hero .app-icon {
    width: 128px;
    height: 128px;
    border-radius: 30px;
    margin-bottom: var(--space-xl);
    box-shadow: 0 12px 40px rgba(142, 74, 48, 0.18);
    transition: transform 0.3s ease;
}

.hero .app-icon:hover {
    transform: scale(1.05);
}

.hero h1 {
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.hero h1 span {
    color: var(--accent);
}

.hero .tagline {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

/* Activity type pills below tagline */
.activity-types-hero {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-xxl);
}

.activity-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: transform 0.2s ease;
}

.activity-pill:hover {
    transform: scale(1.06);
}

.activity-pill.book { background: var(--color-book); }
.activity-pill.movie { background: var(--color-movie); }
.activity-pill.theatre { background: var(--color-theatre); }
.activity-pill.exhibition { background: var(--color-exhibition); }
.activity-pill.concert { background: var(--color-concert); color: #1E1E1E; }

.hero .app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease;
}

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

.hero .app-store-badge img {
    height: 54px;
}

.coming-soon-badge {
    display: inline-block;
    padding: 14px 36px;
    background: var(--action);
    color: var(--action-text);
    border-radius: var(--radius-md);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.2px;
}

/* ---- Activity Types Showcase Section ---- */

.activity-types {
    padding: var(--space-xxl) var(--space-lg);
    max-width: 960px;
    margin: 0 auto;
}

.activity-types h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.5px;
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.activity-types .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xxl);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-md);
}

.type-card {
    background: var(--bg-card);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-md);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    overflow: hidden;
}

.type-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

.type-card.book::before { background: var(--color-book); }
.type-card.movie::before { background: var(--color-movie); }
.type-card.theatre::before { background: var(--color-theatre); }
.type-card.exhibition::before { background: var(--color-exhibition); }
.type-card.concert::before { background: var(--color-concert); }

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

.type-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto var(--space-md);
    color: white;
}

.type-card.book .type-icon { background: var(--color-book); }
.type-card.movie .type-icon { background: var(--color-movie); }
.type-card.theatre .type-icon { background: var(--color-theatre); }
.type-card.exhibition .type-icon { background: var(--color-exhibition); }
.type-card.concert .type-icon { background: var(--color-concert); color: #1E1E1E; }

.type-card h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ---- Features Section ---- */

.features {
    padding: var(--space-xxl) var(--space-lg);
    max-width: 960px;
    margin: 0 auto;
}

.features h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.5px;
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.features .section-subtitle {
    text-align: center;
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xxl);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: var(--space-lg);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) var(--space-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.feature-card .icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: var(--space-md);
    background: var(--bg-surface);
}

.feature-card h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- How It Works Section ---- */

.how-it-works {
    padding: var(--space-xxl) var(--space-lg);
    max-width: 960px;
    margin: 0 auto;
}

.how-it-works h2 {
    text-align: center;
    font-size: 36px;
    font-weight: 800;
    margin-bottom: var(--space-xxl);
    letter-spacing: -0.5px;
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    position: relative;
}

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

.step-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    margin: 0 auto var(--space-md);
    font-family: 'Fraunces', Georgia, serif;
}

.step h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.step p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ---- CTA Section ---- */

.cta-section {
    padding: var(--space-xxxl) var(--space-lg);
    text-align: center;
}

.cta-card {
    max-width: 640px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: var(--space-xxl) var(--space-xl);
}

.cta-card h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: var(--space-md);
    letter-spacing: -0.5px;
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.cta-card p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    line-height: 1.5;
}

.cta-card .app-store-badge {
    display: inline-block;
    transition: transform 0.2s ease;
}

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

.cta-card .app-store-badge img {
    height: 54px;
}

/* ---- Footer ---- */

footer {
    border-top: 1px solid var(--divider);
    padding: var(--space-xxl) var(--space-lg);
    text-align: center;
}

footer .footer-inner {
    max-width: 960px;
    margin: 0 auto;
}

footer .footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
    flex-wrap: wrap;
}

footer .footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

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

footer .copyright {
    font-size: 13px;
    color: var(--text-tertiary);
}

/* ---- Legal Pages ---- */

.legal-page {
    padding: 120px var(--space-lg) 80px;
    max-width: 720px;
    margin: 0 auto;
}

.legal-page h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.5px;
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.legal-page .last-updated {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.legal-page .legal-content {
    background: var(--bg-card);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: 40px 36px;
}

.legal-page h2 {
    font-size: 20px;
    font-weight: 700;
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.legal-page h2:first-child {
    margin-top: 0;
}

.legal-page h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.legal-page p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.7;
}

.legal-page ul {
    list-style: none;
    padding: 0;
    margin-bottom: 12px;
}

.legal-page ul li {
    font-size: 15px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    margin-bottom: 6px;
    line-height: 1.6;
}

.legal-page ul li::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.legal-page a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}

.legal-page a:hover {
    text-decoration: underline;
}

/* ---- Support Page ---- */

.support-page {
    padding: 120px var(--space-lg) 80px;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.support-page h1 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    font-optical-sizing: auto;
    font-variation-settings: "SOFT" 100, "WONK" 1;
}

.support-page .subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: var(--space-xxl);
}

.support-card {
    background: var(--bg-card);
    border: 1px solid var(--divider);
    border-radius: var(--radius-lg);
    padding: var(--space-xl) 36px;
    text-align: left;
    margin-bottom: var(--space-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.support-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.support-card .icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.support-card h3 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.support-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.support-card a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.support-card a:hover {
    text-decoration: underline;
}

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

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

    .steps {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
}

@media (max-width: 640px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero .tagline {
        font-size: 17px;
    }

    .features h2,
    .activity-types h2,
    .how-it-works h2 {
        font-size: 28px;
    }

    .types-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
    }

    .type-card {
        padding: var(--space-md) var(--space-sm);
    }

    .type-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .type-card h3 {
        font-size: 13px;
    }

    .features-grid {
        gap: var(--space-md);
    }

    .legal-page {
        padding: 100px var(--space-md) 60px;
    }

    .legal-page .legal-content {
        padding: 28px 20px;
    }

    .legal-page h1 {
        font-size: 28px;
    }

    nav .nav-links {
        gap: var(--space-md);
    }

    nav .nav-links a {
        font-size: 13px;
    }

    footer .footer-links {
        gap: 20px;
    }

    .cta-card {
        padding: var(--space-xl) var(--space-md);
    }

    .cta-card h2 {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ---- Mobile hamburger (hidden on desktop) ---- */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-primary);
}

@media (max-width: 480px) {
    .menu-toggle {
        display: block;
    }

    nav .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        padding: var(--space-md) var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--nav-border);
    }

    nav .nav-links.open {
        display: flex;
    }
}

/* ---- Fade-in animation ---- */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

.feature-card,
.type-card,
.step,
.support-card {
    animation: fadeInUp 0.6s ease-out both;
}

.feature-card:nth-child(1),
.type-card:nth-child(1) { animation-delay: 0.05s; }
.feature-card:nth-child(2),
.type-card:nth-child(2) { animation-delay: 0.10s; }
.feature-card:nth-child(3),
.type-card:nth-child(3) { animation-delay: 0.15s; }
.feature-card:nth-child(4),
.type-card:nth-child(4) { animation-delay: 0.20s; }
.feature-card:nth-child(5),
.type-card:nth-child(5) { animation-delay: 0.25s; }
.feature-card:nth-child(6) { animation-delay: 0.30s; }
.feature-card:nth-child(7) { animation-delay: 0.35s; }
.feature-card:nth-child(8) { animation-delay: 0.40s; }
.feature-card:nth-child(9) { animation-delay: 0.45s; }
