/* ── True Tuesday — Design System ─────────────────────────── */

:root {
    --color-bg:       #ffffff;
    --color-surface:  #f8f9fb;
    --color-text:     #111827;
    --color-muted:    #6b7280;
    --color-border:   #e5e7eb;
    --color-accent:   #4f46e5;
    --color-accent-light: #eef2ff;
    --color-accent-hover: #4338ca;
    --color-nav-bg:   rgba(255, 255, 255, 0.85);
    --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --max-width: 1120px;
    --radius: 16px;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 48px rgba(0,0,0,0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg:       #0f1117;
        --color-surface:  #1a1c25;
        --color-text:     #f0f1f3;
        --color-muted:    #9ca3af;
        --color-border:   #2d2f3a;
        --color-accent:   #818cf8;
        --color-accent-light: #1e1b4b;
        --color-accent-hover: #a5b4fc;
        --color-nav-bg:   rgba(15, 17, 23, 0.85);
    }
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-sans);
    background: var(--color-bg);
    color: var(--color-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: var(--color-accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-accent-hover); }

/* ── Navigation ──────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-nav-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
}
.nav-brand:hover { color: var(--color-text); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    color: var(--color-muted);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--color-text); }

/* Mobile nav toggle */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle svg { width: 24px; height: 24px; stroke: var(--color-text); fill: none; stroke-width: 2; stroke-linecap: round; }

@media (max-width: 640px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-nav-bg);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--color-border);
        padding: 1rem 2rem 1.5rem;
        gap: 0.75rem;
    }
    .nav-links.open { display: flex; }
}

/* ── Layout ──────────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
    padding: 6rem 2rem;
    text-align: center;
}
.hero-inner {
    max-width: 720px;
    margin: 0 auto;
}
.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1.25rem;
}
.hero .subtitle {
    font-size: clamp(1.0625rem, 2.5vw, 1.25rem);
    color: var(--color-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}
.hero .accent-text {
    color: var(--color-accent);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}
.btn-primary {
    background: var(--color-accent);
    color: #fff;
}
.btn-primary:hover {
    background: var(--color-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}
.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-border);
}
.btn-secondary:hover {
    background: var(--color-bg);
    color: var(--color-text);
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* ── Sections ────────────────────────────────────────────── */
.section {
    padding: 5rem 2rem;
}
.section-alt {
    background: var(--color-surface);
}
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}
.section-header h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.section-header p {
    color: var(--color-muted);
    font-size: 1.0625rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Card ────────────────────────────────────────────────── */
.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: box-shadow 0.3s, transform 0.3s;
}
.card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ── App Card ────────────────────────────────────────────── */
.app-card {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 2rem;
    align-items: start;
    max-width: 720px;
    margin: 0 auto;
}
.app-icon {
    width: 100px;
    height: 100px;
    border-radius: 22px;
    background: linear-gradient(135deg, #f472b6, #a855f7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
}
.app-info h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}
.app-info .app-tagline {
    color: var(--color-muted);
    font-size: 0.9375rem;
    margin-bottom: 1rem;
}
.app-info p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
}
.app-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}
.app-store-badge {
    height: 44px;
    transition: opacity 0.2s;
}
.app-store-badge:hover { opacity: 0.8; }

@media (max-width: 540px) {
    .app-card {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .app-icon { margin: 0 auto; }
    .app-badges { justify-content: center; }
}

/* ── Features Grid ───────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 960px;
    margin: 0 auto;
}
.feature-item {
    padding: 2rem;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--color-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.feature-icon svg {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}
.feature-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.feature-item p {
    color: var(--color-muted);
    font-size: 0.9375rem;
}

/* ── Contact Info ────────────────────────────────────────── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}
.contact-item {
    text-align: center;
    padding: 2rem;
}
.contact-item .icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}
.contact-item .icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-accent);
}
.list-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
    color: var(--color-accent);
}
.contact-item h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.contact-item p {
    color: var(--color-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}
.contact-item a {
    font-weight: 500;
}

/* ── Legal / Imprint ─────────────────────────────────────── */
.legal-content {
    max-width: 720px;
    margin: 0 auto;
}
.legal-content h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}
.legal-content p {
    margin-bottom: 1rem;
    color: var(--color-muted);
}
.legal-content p strong {
    color: var(--color-text);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--color-border);
    padding: 3rem 2rem;
    margin-top: 2rem;
}
.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 2rem;
}
.footer-brand p {
    color: var(--color-muted);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    line-height: 1.6;
}
.footer h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-muted);
    margin-bottom: 0.75rem;
}
.footer-links {
    list-style: none;
}
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a {
    color: var(--color-text);
    font-size: 0.9375rem;
    font-weight: 400;
}
.footer-links a:hover { color: var(--color-accent); }
.footer-bottom {
    max-width: var(--max-width);
    margin: 2rem auto 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8125rem;
    color: var(--color-muted);
}
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { color: var(--color-muted); font-size: 0.8125rem; }
.footer-bottom-links a:hover { color: var(--color-text); }

@media (max-width: 640px) {
    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
}

/* ── Page hero (smaller, for inner pages) ────────────────── */
.page-hero {
    padding: 4rem 2rem 2rem;
    text-align: center;
}
.page-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}
.page-hero p {
    color: var(--color-muted);
    font-size: 1.0625rem;
    max-width: 520px;
    margin: 0 auto;
}

/* ── Utility ─────────────────────────────────────────────── */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
