:root {
    color-scheme: light;
    --bg: #f4f3ef;
    --surface: #ffffff;
    --surface-2: #f7f6f2;
    --border: #ddd9d0;
    --text: #201f1c;
    --text-secondary: #6b675f;
    --text-muted: #96918685;
    --accent: #185fa5;
    --warn-bg: #fff4e5;
    --warn-border: #e8c27a;
    --warn-text: #7a5b12;
}

* { box-sizing: border-box; }

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

.wrap {
    max-width: 640px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}

h1 { font-size: 24px; font-weight: 600; margin: 0 0 4px; }
h2 { font-size: 18px; font-weight: 600; margin: 24px 0 8px; }
p { margin: 0 0 16px; }
a { color: var(--accent); }

.hero { margin-bottom: 40px; }

.hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.eyebrow { color: var(--text-secondary); margin: 0; font-size: 14px; }

.social-quick { display: flex; gap: 8px; }
.social-quick a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
}
.social-quick a:hover { border-color: var(--accent); color: var(--accent); }

.hero-headline {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 16px 0 20px;
}
@media (max-width: 480px) {
    .hero-headline { font-size: 24px; }
}

.lang-tiles { display: flex; gap: 20px; }

.flag-icon {
    display: block;
    width: 32px;
    height: auto;
    border-radius: 3px;
}
.flag-icon.small {
    width: 24px;
    border: 1px solid var(--border);
    border-radius: 4px;
}
.lang-switch:hover .flag-icon.small { border-color: var(--accent); }

.about-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}
.lang-switch { display: flex; }

.apps-section { margin-top: 8px; }
.apps-heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--text-secondary);
    margin: 0 0 16px;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
    gap: 20px 12px;
}

.app-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    text-decoration: none;
    color: var(--text);
}
.app-tile.disabled { opacity: .55; pointer-events: none; }

.app-icon {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}
.app-tile:hover .app-icon { border-color: var(--accent); }

.tile-badge {
    position: absolute;
    top: -6px;
    right: -8px;
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    padding: 3px 5px;
    border-radius: 999px;
}

.app-label { font-size: 12px; font-weight: 600; }
.app-status { font-size: 10px; color: var(--warn-text); }

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 8px;
}
.social-links a {
    display: inline-block;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px 16px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
}
.social-links a:hover { border-color: var(--accent); }

.back-link { display: inline-block; margin-bottom: 24px; font-size: 13px; color: var(--text-secondary); text-decoration: none; }

.about-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 32px;
}
.about-section:last-child { margin-bottom: 0; }
.about-content h2 { margin-top: 0; }
.about-photo {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
}
@media (max-width: 480px) {
    .about-section { flex-direction: column; }
    .about-photo { width: 100%; height: 180px; }
}

.site-footer {
    margin-top: 48px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-muted);
}
.site-footer a { color: var(--text-secondary); }

.app-privacy {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 18px;
    margin: 16px 0;
}
.app-privacy summary {
    font-weight: 600;
    cursor: pointer;
}
.app-privacy[open] summary { margin-bottom: 8px; }
.app-privacy p:last-child { margin-bottom: 0; }

.todo-note {
    background: var(--warn-bg);
    border: 1px solid var(--warn-border);
    color: var(--warn-text);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13px;
}
