:root {
    --bg: #fff8fa;
    --surface: #ffffff;
    --text: #2a2130;
    --muted: #6d6375;
    --border: #f0dde5;
    --accent: #e8457c;
    --accent-strong: #c92f64;
    --accent-soft: #fde7ef;
    --shadow: 0 6px 24px rgba(200, 60, 110, 0.08);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #17121a;
        --surface: #211a25;
        --text: #f2ecf4;
        --muted: #b3a8b9;
        --border: #3a2e40;
        --accent: #ff6b9d;
        --accent-strong: #ff8db3;
        --accent-soft: #3a2230;
        --shadow: none;
    }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

a { color: var(--accent-strong); }
a:hover { color: var(--accent); }

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header */
.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 12px;
    padding-bottom: 12px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}

.brand img { border-radius: 10px; }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    font-size: 15px;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--text); }

.site-nav a.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

/* Home */
.hero {
    padding: 64px 0 40px;
    text-align: center;
}

.hero img {
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero h1 {
    margin: 20px 0 8px;
    font-size: 40px;
    line-height: 1.2;
}

.hero .tagline {
    margin: 0 auto;
    max-width: 620px;
    color: var(--muted);
    font-size: 19px;
}

.stores {
    margin-top: 28px;
    color: var(--muted);
    font-size: 15px;
}

.button {
    display: inline-block;
    margin-bottom: 12px;
    padding: 12px 28px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.button:hover { background: var(--accent-strong); color: #fff; }

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    padding: 16px 0 48px;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: var(--shadow);
}

.card h3 {
    margin: 0 0 6px;
    font-size: 18px;
}

.card p { margin: 0; color: var(--muted); }

.section { padding: 0 0 48px; }

.section h2 { font-size: 26px; margin: 0 0 12px; }

/* Documents (privacy / terms / delete account) */
.doc {
    max-width: 820px;
    padding-top: 40px;
    padding-bottom: 56px;
}

.doc h1 {
    font-size: 34px;
    line-height: 1.25;
    margin: 0 0 6px;
}

.doc .meta { color: var(--muted); margin: 0 0 28px; }

.doc h2 {
    font-size: 22px;
    margin: 36px 0 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.doc h3 { font-size: 18px; margin: 22px 0 6px; }

.doc ul, .doc ol { padding-left: 22px; }

.doc li { margin: 4px 0; }

.doc .toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 22px 14px 40px;
}

.callout {
    background: var(--accent-soft);
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    padding: 14px 18px;
    margin: 18px 0;
}

.table-wrap { overflow-x: auto; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    margin: 12px 0;
}

th, td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

th { background: var(--surface); }

/* Site home: app list */
.app-list {
    display: grid;
    gap: 16px;
}

.app-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.app-card img {
    flex: none;
    border-radius: 14px;
}

.app-card h3 a { color: var(--text); text-decoration: none; }

.app-card .app-links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    margin-top: 8px;
    font-size: 15px;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    color: var(--muted);
    font-size: 14px;
}

.footer-inner {
    display: grid;
    gap: 10px;
    padding-top: 24px;
    padding-bottom: 28px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
}

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

@media (max-width: 600px) {
    .hero { padding-top: 40px; }
    .hero h1 { font-size: 32px; }
    .hero .tagline { font-size: 17px; }
    .doc h1 { font-size: 28px; }
}
