:root {
    --bg: #f6f7f9;
    --surface: #ffffff;
    --text: #1d2330;
    --muted: #5b6474;
    --border: #e1e4ea;
    --accent: #1565c0;
    --accent-text: #ffffff;
    --accent-soft: #e8f0fb;
    --shadow: 0 1px 3px rgba(20, 30, 50, 0.08), 0 6px 20px rgba(20, 30, 50, 0.06);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #12151b;
        --surface: #1b2029;
        --text: #e6e9ef;
        --muted: #9aa3b2;
        --border: #2b323e;
        --accent: #64a5f0;
        --accent-text: #0d1420;
        --accent-soft: #1c2a3d;
        --shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
    }
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans Hebrew", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

[dir="rtl"] { font-family: "Noto Sans Hebrew", "Segoe UI", Arial, sans-serif; }

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

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

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

header.top .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 60px;
}

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

.brand img { width: 32px; height: 32px; }

nav.links { display: flex; align-items: center; gap: 14px; font-size: 14px; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--text); }

.lang-toggle {
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    border-radius: 999px;
    padding: 4px 12px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

/* --- Language switching: only the active language is shown --- */
html[data-lang="en"] [data-l="yi"],
html[data-lang="yi"] [data-l="en"] { display: none !important; }

/* --- Hero --- */
.hero { padding: 48px 0 32px; text-align: center; }
.hero img.icon { width: 96px; height: 96px; }
.hero h1 { margin: 12px 0 8px; font-size: clamp(28px, 6vw, 40px); line-height: 1.2; }
.hero p.lead { margin: 0 auto 24px; max-width: 620px; color: var(--muted); font-size: 18px; }

.buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    text-decoration: none;
}

.shields {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 18px;
}
.shields img { display: block; height: 20px; }

.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

/* --- Sections --- */
section { padding: 24px 0; }
section h2 { font-size: 24px; margin: 0 0 16px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

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

.card h3 { margin: 0 0 8px; font-size: 17px; }
.card ul { margin: 0; padding-inline-start: 20px; color: var(--muted); }
.card li + li { margin-top: 4px; }

.badge {
    display: inline-block;
    margin-inline-start: 6px;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    vertical-align: middle;
}

.shots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.shots figure { margin: 0; }
.shots img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}
.shots figcaption { margin-top: 6px; font-size: 14px; color: var(--muted); text-align: center; }

kbd {
    display: inline-block;
    padding: 0 6px;
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 4px;
    background: var(--bg);
    font-family: ui-monospace, Consolas, monospace;
    font-size: 13px;
}

/* --- Long-form text (privacy policy) --- */
.doc { max-width: 760px; padding-top: 32px; padding-bottom: 32px; }
.doc h1 { font-size: clamp(26px, 5vw, 34px); margin: 0 0 4px; line-height: 1.25; }
.doc .updated { color: var(--muted); margin: 0 0 24px; }
.doc h2 { font-size: 20px; margin: 28px 0 8px; }
.doc ul { padding-inline-start: 22px; }
.doc li + li { margin-top: 4px; }
.doc .summary {
    background: var(--accent-soft);
    border-radius: 10px;
    padding: 14px 18px;
}
.doc .summary ul { margin: 0; }

/* --- Footer --- */
footer {
    margin-top: 32px;
    padding: 24px 0 40px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
}
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
footer a { color: var(--muted); }

@media (max-width: 560px) {
    nav.links a.hide-sm { display: none; }
    .hero { padding-top: 32px; }
}
