:root {
    --bg: #0E0E10;
    --surface: #1A1A1F;
    --surface-2: #20202a;
    --border: #2a2a35;
    --text: #efefef;
    --muted: #8a8a93;
    --accent: #FFB347;
    --accent-soft: #FFB34722;
    --aluminum: #d8dcde;
}

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

html { color-scheme: dark; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.55;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

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

/* ─── Hero ─── */
.hero {
    background: var(--bg);
    padding: 3rem 1.25rem 2rem;
    text-align: center;
}
.hero-inner { max-width: 640px; margin: 0 auto; }
.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--accent);
}
.tagline {
    font-size: clamp(1rem, 2.5vw, 1.15rem);
    color: var(--muted);
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}
.tagline a { color: var(--text); border-bottom: 1px dashed var(--muted); }

.latilla {
    width: min(420px, 78vw);
    aspect-ratio: 1 / 1;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    position: relative;
    display: block;
    margin: 0 auto;
    border-radius: 50%;
    transition: transform 0.06s ease-out;
    -webkit-tap-highlight-color: transparent;
}
.latilla img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}
.latilla:active { transform: scale(0.97); }
.latilla.pulsing { animation: pulse 0.18s ease-out; }
@keyframes pulse {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.03); }
    100% { transform: scale(1); }
}
.latilla.opened img { filter: brightness(1.1) saturate(1.1); }

.hint {
    position: absolute;
    bottom: -2.5rem;
    left: 0;
    right: 0;
    font-size: 0.85rem;
    color: var(--muted);
    pointer-events: none;
}
.counter {
    margin-top: 4rem;
    font-size: 0.9rem;
    color: var(--muted);
}
.counter span {
    color: var(--accent);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

/* ─── Main / cards ─── */
main {
    max-width: 640px;
    width: 100%;
    margin: 0 auto;
    padding: 1rem 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    flex: 1;
}
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.5rem;
}
.card.subtle { background: var(--surface-2); }
.card h2 {
    color: var(--accent);
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.01em;
}
.card p + p { margin-top: 0.75rem; }
.card p { color: var(--text); }
.card strong { color: var(--aluminum); }
.fineprint {
    font-size: 0.85rem;
    color: var(--muted);
}
.fineprint code {
    background: #0a0a0c;
    border: 1px solid var(--border);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    color: var(--accent);
}

/* ─── Downloads ─── */
.downloads {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.dl {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    transition: border-color 0.15s, background 0.15s;
}
.dl:hover { border-color: var(--accent); background: var(--surface); text-decoration: none; }
.dl-icon {
    font-size: 1.4rem;
    width: 2rem;
    text-align: center;
    color: var(--accent);
}
.dl-text { display: flex; flex-direction: column; line-height: 1.3; }
.dl-text small { color: var(--muted); font-size: 0.78rem; }
.dl.disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}
.dl.disabled .dl-icon { color: var(--muted); }

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

/* ─── Privacy page ─── */
.legal main { padding-top: 2rem; }
.legal h1 {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 0.4rem;
    padding: 0 1.25rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.legal h1 + p {
    color: var(--muted);
    margin-bottom: 1.5rem;
    padding: 0 1.25rem;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.legal h3 {
    color: var(--aluminum);
    font-size: 1rem;
    margin-top: 1rem;
}
.legal ul {
    margin: 0.5rem 0 0.5rem 1.25rem;
    color: var(--text);
}
.legal li + li { margin-top: 0.2rem; }
