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

:root {
    --bg: #fafafa;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --accent: #0071e3;
    --card-bg: #ffffff;
    --border: #e5e5e7;
    --radius: 16px;
    --max-width: 800px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #111111;
        --text: #f5f5f7;
        --muted: #a1a1a6;
        --accent: #2997ff;
        --card-bg: #1c1c1e;
        --border: #2c2c2e;
    }
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Header ── */
header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

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

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

nav { display: flex; gap: 24px; }

nav a {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s;
}

nav a:hover { color: var(--text); text-decoration: none; }

/* ── Hero ── */
.hero {
    text-align: center;
    padding: 80px 0 40px;
}

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.hero p {
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 500px;
    margin: 0 auto;
}

/* ── App Cards ── */
.apps {
    display: grid;
    gap: 24px;
    padding: 40px 0 80px;
}

.app-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.app-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #34c759, #30d158);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.app-info h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.app-info p {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.badge {
    display: inline-block;
    height: 40px;
}

.badge img {
    height: 40px;
    width: auto;
}

/* ── Page Content (Privacy, Contact) ── */
.page {
    padding: 60px 0 80px;
}

.page h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page .updated {
    color: var(--muted);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.page h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: 32px;
    margin-bottom: 8px;
}

.page p, .page ul {
    color: var(--muted);
    margin-bottom: 16px;
}

.page ul {
    padding-left: 20px;
}

.page li {
    margin-bottom: 8px;
}

/* ── Contact ── */
.contact-email {
    display: inline-block;
    margin-top: 8px;
    padding: 12px 24px;
    background: var(--accent);
    color: #fff;
    border-radius: 8px;
    font-weight: 500;
    transition: opacity 0.2s;
}

.contact-email:hover {
    opacity: 0.85;
    text-decoration: none;
    color: #fff;
}

/* ── Footer ── */
footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}

footer a { color: var(--muted); }
footer a:hover { color: var(--text); }

footer .links {
    margin-top: 8px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .hero h1 { font-size: 1.8rem; }
    .hero { padding: 48px 0 24px; }

    .app-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
    }

    nav { gap: 16px; }
}
