/* PicSentry — "deep space" theme: a starry night sky, neon nebula colours, glassy panels.
   Threat colours (amber, orange, red) stay reserved for danger. */
:root {
    --bg: #12062E;
    --bg-2: #1E0B4B;
    --panel: rgba(255, 255, 255, .045);
    --panel-2: rgba(255, 255, 255, .08);
    --panel-solid: #24105A;
    --line: rgba(255, 255, 255, .09);
    --line-2: rgba(255, 255, 255, .16);
    --text: #F5F2FF;
    --muted: #BDB6E0;
    --dim: #8A82B6;
    --pink: #EC4899;
    --violet: #7C3AED;
    --cyan: #22D3EE;
    --lime: #A3E635;
    --sun: #FDE047;
    --coral: #FB923C;
    --accent: #A3E635;
    --accent-ink: #120B2E;
    --grad: linear-gradient(120deg, #7C3AED 0%, #EC4899 55%, #FB923C 100%);
    --grad-soft: linear-gradient(120deg, rgba(124,58,237,.28), rgba(236,72,153,.22) 55%, rgba(251,146,60,.2));
    --low: #7CC4FF;
    --caution: #FFC400;
    --danger: #FF7A1A;
    --critical: #FF3D3D;
    --radius: 14px;
    --radius-lg: 20px;
    --wrap: 1120px;
    --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --display: "Space Grotesk", "Inter", var(--script, system-ui), system-ui, sans-serif;
    --sans: "Inter", var(--script, system-ui), system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    color: var(--text);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    background-color: var(--bg);
    /* Nebulae + two layers of stars. */
    background-image:
        radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,.8) 50%, transparent 51%),
        radial-gradient(1px 1px at 120px 80px, rgba(255,255,255,.55) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 200px 160px, rgba(255,255,255,.7) 50%, transparent 51%),
        radial-gradient(1px 1px at 60px 210px, rgba(190,220,255,.6) 50%, transparent 51%),
        radial-gradient(1px 1px at 250px 20px, rgba(255,220,250,.6) 50%, transparent 51%),
        radial-gradient(900px 600px at 85% -10%, rgba(124,58,237,.30), transparent 60%),
        radial-gradient(700px 500px at -10% 20%, rgba(236,72,153,.16), transparent 60%),
        radial-gradient(800px 600px at 50% 110%, rgba(34,211,238,.12), transparent 60%);
    background-size: 280px 240px, 280px 240px, 280px 240px, 280px 240px, 280px 240px, auto, auto, auto;
    background-attachment: fixed;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 .45em; letter-spacing: -0.025em; font-family: var(--display); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 .9em; }
h1:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.section { padding: 64px 0; position: relative; }
.section.tight { padding: 40px 0; }
.section.alt { background: linear-gradient(180deg, rgba(124,58,237,.07), rgba(34,211,238,.04)); border-block: 1px solid var(--line); }
.eyebrow {
    font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700;
    margin-bottom: 12px; display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px 5px 10px; border-radius: 999px; color: var(--text);
    background: var(--grad-soft); border: 1px solid rgba(255,255,255,.14);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px var(--lime); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 620px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.section-head { max-width: 700px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.grad-text, .hero h1 .hl {
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: .98rem;
    border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, border-color .2s;
    text-decoration: none !important; white-space: nowrap; font-family: inherit;
}
.btn svg { width: 19px; height: 19px; }
.btn-primary { background: var(--grad); background-size: 140% 100%; color: #1E0B4B; box-shadow: 0 6px 24px -8px rgba(124,58,237,.8); }
.btn-primary:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 10px 34px -8px rgba(236,72,153,.75); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line-2); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Header */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(18,6,46,.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; font-size: 1.15rem; font-family: var(--display); letter-spacing: -0.02em; }
.brand:hover { text-decoration: none; }
.brand img { height: 34px; width: auto; display: block; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--muted); padding: 7px 11px; border-radius: 999px; font-size: .93rem; font-weight: 500; }
.nav a:hover, .nav a.active { color: var(--text); background: var(--panel-2); text-decoration: none; }
.nav .btn { margin-inline-start: 8px; padding: 9px 16px; font-size: .9rem; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #1E0B4B; background: var(--grad); }
.nav-toggle { display: none; }
.nav-burger { display: none; cursor: pointer; padding: 8px; border-radius: 10px; color: var(--text); }
.nav-burger svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
    .nav-burger { display: block; }
    .nav {
        position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch;
        background: rgba(18,6,46,.97); border-bottom: 1px solid var(--line); padding: 10px 16px 18px; gap: 2px;
        display: none;
    }
    .nav a { padding: 11px 14px; font-size: 1.02rem; border-radius: 12px; }
    .nav .btn { margin: 10px 0 0; }
    .nav-toggle:checked ~ .nav { display: flex; }
}

/* Hero */
.hero { position: relative; padding: 48px 0 56px; overflow: hidden; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero .lead { margin-bottom: 22px; }
.hero-note { margin-top: 16px; font-size: .88rem; color: var(--dim); }
/* A ringed planet and a little moon, drifting behind the phone. */
.planet {
    position: absolute; z-index: 0; pointer-events: none; width: 340px; height: 340px; right: -60px; top: 20px; border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, #FFD3A8 0%, #FB923C 18%, #EC4899 45%, #7C3AED 72%, #2A0F66 90%);
    box-shadow: inset -30px -40px 80px rgba(18,6,46,.75), 0 0 120px rgba(124,58,237,.45);
    opacity: .85; animation: float 9s ease-in-out infinite;
}
.planet::after {
    content: ""; position: absolute; left: -26%; top: 42%; width: 152%; height: 22%; border-radius: 50%;
    border: 3px solid rgba(34,211,238,.65); transform: rotate(-16deg); box-shadow: 0 0 24px rgba(34,211,238,.45);
}
.moon {
    position: absolute; z-index: 0; pointer-events: none; width: 54px; height: 54px; left: 46%; top: 30px; border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #FFFBD1, #FDE047 45%, #FB923C 100%);
    box-shadow: 0 0 40px rgba(253,224,71,.55); animation: float 7s ease-in-out infinite reverse;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 20px; }
.chip {
    font-size: .78rem; font-weight: 600; padding: 6px 11px; border-radius: 999px; color: #1E0B4B;
}
.chip:nth-child(5n+1) { background: var(--lime); }
.chip:nth-child(5n+2) { background: var(--cyan); }
.chip:nth-child(5n+3) { background: var(--sun); }
.chip:nth-child(5n+4) { background: #C9B6FF; }
.chip:nth-child(5n+5) { background: #FF9BE8; }
@media (max-width: 960px) {
    .hero .wrap { grid-template-columns: 1fr; }
    .hero { padding-top: 32px; }
    .planet { width: 220px; height: 220px; right: -80px; top: 380px; opacity: .55; }
    .moon { left: auto; right: 24px; top: 16px; width: 36px; height: 36px; }
}
[dir=rtl] .planet { right: auto; left: -60px; }

/* Phone mock-up */
.phone {
    width: 100%; max-width: 340px; margin: 0 auto; border-radius: 38px; padding: 10px; position: relative; z-index: 1;
    background: linear-gradient(160deg, #7C3AED, #1E0B4B 55%, #EC4899);
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.12), 0 0 70px -10px rgba(124,58,237,.6);
}
.phone-screen { border-radius: 29px; overflow: hidden; background: #070A08; border: 1px solid #000; }
.phone-bar { display: flex; justify-content: space-between; align-items: center; padding: 11px 16px 7px; font-family: var(--mono); font-size: .7rem; color: #9DB3A6; text-transform: uppercase; }
.phone-bar b { color: #00E676; font-weight: 700; letter-spacing: .08em; }
.alert-banner {
    margin: 0 10px 9px; padding: 9px 11px; border-radius: 12px; display: flex; gap: 10px; align-items: center;
    background: rgba(255,122,26,.12); border: 1px solid rgba(255,122,26,.55); color: #FFD3B0; font-size: .78rem; line-height: 1.35;
}
.alert-banner strong { color: var(--danger); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; display: block; text-transform: uppercase; }
.alert-banner svg { width: 22px; height: 22px; flex: none; color: var(--danger); }
.scene { margin: 0 10px; border-radius: 14px; overflow: hidden; border: 1px solid #2A3A31; }
.prio { list-style: none; margin: 9px 10px 12px; padding: 0; display: grid; gap: 6px; }
.prio li {
    display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 10px;
    background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font-size: .78rem;
}
.phone .prio li { background: #0F1512; border-color: #22302A; }
.prio .n { font-family: var(--mono); font-weight: 700; width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: .72rem; color: #000; }
.prio .t { color: var(--text); line-height: 1.3; }
.prio .t small { display: block; color: var(--dim); font-size: .7rem; }

/* Threat level badges */
.lvl { font-family: var(--mono); font-size: .62rem; font-weight: 700; letter-spacing: .08em; padding: 3px 7px; border-radius: 5px; text-transform: uppercase; white-space: nowrap; }
.lvl.critical { background: rgba(255,61,61,.18); color: var(--critical); }
.lvl.danger { background: rgba(255,122,26,.18); color: var(--danger); }
.lvl.caution { background: rgba(255,196,0,.16); color: var(--caution); }
.lvl.low { background: rgba(124,196,255,.15); color: var(--low); }
.lvl.none { background: rgba(163,230,53,.14); color: var(--lime); }
.bg-critical { background: var(--critical); } .bg-danger { background: var(--danger); }
.bg-caution { background: var(--caution); } .bg-low { background: var(--low); } .bg-none { background: var(--lime); }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; backdrop-filter: blur(6px); }
.stat b { display: block; font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; font-family: var(--display); }
.stat:nth-child(1) b { color: var(--lime); } .stat:nth-child(2) b { color: var(--sun); }
.stat:nth-child(3) b { color: var(--cyan); } .stat:nth-child(4) b { color: var(--pink); }
.stat span { color: var(--muted); font-size: .88rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Cards / grids */
.grid { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }
.card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px;
    transition: border-color .2s, transform .2s, background .2s; position: relative; backdrop-filter: blur(6px);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--panel-2); }
.card h3 { margin-top: 12px; }
.card p { color: var(--muted); margin: 0; font-size: .94rem; }
.card ul { color: var(--muted); padding-inline-start: 18px; padding-left: 0; margin: 8px 0 0; font-size: .93rem; }
[dir=ltr] .card ul { padding-left: 18px; }
.card ul li { margin-bottom: 4px; }
.grid-4 .card h3 { margin-top: 0; }
.grid-4 .card { border-top: 3px solid var(--c, var(--violet)); }
.grid-4 .card:nth-child(6n+1) { --c: var(--pink); } .grid-4 .card:nth-child(6n+2) { --c: var(--violet); }
.grid-4 .card:nth-child(6n+3) { --c: var(--cyan); } .grid-4 .card:nth-child(6n+4) { --c: var(--lime); }
.grid-4 .card:nth-child(6n+5) { --c: var(--sun); } .grid-4 .card:nth-child(6n+6) { --c: var(--coral); }

/* Icon tiles get a colour of their own, cycling through the palette. */
.icon {
    width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
    color: #1E0B4B; background: var(--ic, var(--lime)); box-shadow: 0 6px 18px -6px var(--ic, var(--lime));
}
.icon svg { width: 23px; height: 23px; stroke-width: 2; }
.grid > .card:nth-child(6n+1) .icon { --ic: var(--lime); }
.grid > .card:nth-child(6n+2) .icon { --ic: var(--coral); }
.grid > .card:nth-child(6n+3) .icon { --ic: var(--cyan); }
.grid > .card:nth-child(6n+4) .icon { --ic: #B69CFF; }
.grid > .card:nth-child(6n+5) .icon { --ic: var(--sun); }
.grid > .card:nth-child(6n+6) .icon { --ic: #FF8BE6; }
.icon.warn { --ic: var(--coral); }
.icon.cyan { --ic: var(--cyan); }

/* Split feature rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 28px; } .split.rev > :first-child { order: 0; } }
.checks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 11px; color: var(--muted); font-size: .97rem; }
.checks li svg { width: 22px; height: 22px; color: var(--lime); margin-top: 1px; }
.checks li:nth-child(4n+2) svg { color: var(--cyan); }
.checks li:nth-child(4n+3) svg { color: var(--pink); }
.checks li:nth-child(4n+4) svg { color: var(--sun); }
.checks li b { color: var(--text); font-weight: 600; }

.visual {
    background: rgba(18,6,46,.6); border: 1px solid var(--line-2); border-radius: var(--radius-lg); padding: 18px;
    position: relative; overflow: hidden; backdrop-filter: blur(8px);
    box-shadow: 0 30px 60px -30px rgba(0,0,0,.8), 0 0 50px -20px rgba(34,211,238,.35);
}
.visual::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--grad); }
.visual .hud { font-family: var(--mono); font-size: .7rem; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; display: flex; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.visual .hud b { color: var(--lime); }
.visual svg[viewBox="0 0 320 320"] { max-width: 300px; margin: 0 auto; }

/* Radar */
.radar-sweep { transform-origin: 160px 160px; animation: sweep 4s linear infinite; }
@keyframes sweep { to { transform: rotate(360deg); } }
.pulse { animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .radar-sweep, .pulse, .planet, .moon { animation: none; } }

/* Forensic sheet */
.sheet { display: grid; gap: 8px; }
.sheet-row { display: grid; grid-template-columns: 34px 1fr; gap: 11px; padding: 10px 11px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; font-size: .87rem; }
.sheet-row .tag { font-family: var(--mono); font-size: .7rem; font-weight: 700; color: #1E0B4B; background: var(--cyan); border-radius: 6px; height: 22px; display: grid; place-items: center; }
.sheet-row:nth-child(3n+2) .tag { background: #FF8BE6; }
.sheet-row:nth-child(3n+3) .tag { background: var(--sun); }
.sheet-row b { display: block; color: var(--text); font-size: .78rem; font-family: var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
.sheet-row span { color: var(--muted); }
.sheet-row .tr { color: var(--lime); }

/* Languages */
.langs { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 860px; margin: 0 auto; }
.langs span, .langs .more { padding: 7px 13px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: .98rem; }
.langs span:nth-child(4n+1) { border-color: rgba(163,230,53,.4); } .langs span:nth-child(4n+2) { border-color: rgba(34,211,238,.4); }
.langs span:nth-child(4n+3) { border-color: rgba(236,72,153,.4); } .langs span:nth-child(4n+4) { border-color: rgba(253,224,71,.4); }
.langs .more { color: #1E0B4B; background: var(--grad); border: 0; font-weight: 700; font-size: .88rem; }

/* Modes */
.modes { display: flex; flex-wrap: wrap; gap: 8px; }
.mode { padding: 9px 15px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--panel); font-weight: 600; font-size: .94rem; }
.mode small { display: block; color: var(--dim); font-weight: 400; font-size: .78rem; }
.mode.on { border-color: transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; border: 2px solid transparent; }

/* Principles band */
.principles { border: 1px solid transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; border-radius: 24px; padding: 32px; }
@media (max-width: 640px) { .principles { padding: 22px 18px; } }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; padding: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.step::before {
    counter-increment: step; content: counter(step, decimal-leading-zero);
    font-family: var(--mono); font-weight: 700; color: #1E0B4B; font-size: 1rem;
    width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--sc, var(--lime));
}
.step:nth-child(5n+2) { --sc: var(--cyan); } .step:nth-child(5n+3) { --sc: #FF8BE6; }
.step:nth-child(5n+4) { --sc: var(--sun); } .step:nth-child(5n+5) { --sc: #B69CFF; }
.step h3 { margin: 3px 0 5px; }
.step p { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 8px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 18px; }
.faq details[open] { border-color: rgba(124,58,237,.5); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--pink); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }

/* CTA / forms */
.cta-box {
    border-radius: 26px; padding: 40px 28px; text-align: center; position: relative; overflow: hidden;
    background: radial-gradient(500px 220px at 15% 0%, rgba(236,72,153,.35), transparent 70%),
                radial-gradient(500px 220px at 85% 100%, rgba(34,211,238,.3), transparent 70%), var(--panel-solid);
    border: 1px solid var(--line-2);
}
@media (max-width: 640px) { .cta-box { padding: 30px 18px; } }
.cta-box .btn-row { justify-content: center; }
.cta-box .lead { margin-left: auto; margin-right: auto; }
.signup { display: flex; gap: 8px; max-width: 540px; margin: 20px auto 0; flex-wrap: wrap; justify-content: center; }
.signup input[type=email], .signup select {
    flex: 1 1 230px; min-width: 0; padding: 12px 16px; border-radius: 999px; border: 1px solid var(--line-2);
    background: rgba(18,6,46,.7); color: var(--text); font: inherit; font-size: 1rem;
}
.signup select { flex: 0 1 160px; appearance: none; -webkit-appearance: none; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23BDB6E0' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }
.signup input:focus, .signup select:focus { outline: none; border-color: var(--cyan); }
.form-msg { margin-top: 12px; font-size: .95rem; }
.form-msg.ok { color: var(--lime); }
.form-msg.err { color: var(--caution); font-size: .9rem; }
/* Visually hidden but readable by screen readers. Clipped rather than moved off-screen, so RTL pages get no sideways scroll. */
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; margin: -1px; }

/* Store cards */
.stores { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 860px) { .stores { grid-template-columns: 1fr; } }
.store { display: flex; flex-direction: column; gap: 10px; }
.store h3 { margin: 4px 0 0; }
.store .soon { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; color: var(--sun); text-transform: uppercase; }
.store .btn { align-self: flex-start; margin-top: auto; }

/* Prose (privacy / terms) */
.prose { max-width: 740px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--text); }
.page-head { padding: 44px 0 12px; }
.page-head .lead { margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 28px; background: rgba(5,3,18,.65); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.site-footer h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }
.site-footer p { color: var(--dim); font-size: .9rem; max-width: 380px; }
.footer-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--dim); font-size: .83rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-build { margin-top: 10px; color: var(--dim); font-size: .75rem; opacity: .85; display: flex; flex-wrap: wrap; gap: 4px 14px; }

.skip { position: absolute; top: 8px; inset-inline-start: 8px; clip-path: inset(50%); width: 1px; height: 1px; overflow: hidden; white-space: nowrap; z-index: 100; background: var(--lime); color: #1E0B4B; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { clip-path: none; width: auto; height: auto; overflow: visible; }
#blazor-error-ui { display: none; }

/* Language switcher */
.nav a.lang-link { display: inline-flex; align-items: center; gap: 6px; }
.nav a.lang-link svg { width: 18px; height: 18px; color: var(--cyan); }
.lang-search { width: 100%; max-width: 460px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(18,6,46,.7); color: var(--text); font: inherit; margin-bottom: 20px; }
.lang-search:focus { outline: none; border-color: var(--cyan); }
.lang-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.lang-list a { display: flex; flex-direction: column; padding: 12px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); color: var(--text); transition: border-color .2s, transform .2s; }
.lang-list a:hover { border-color: var(--cyan); text-decoration: none; transform: translateY(-2px); }
.lang-list a.on { border: 2px solid transparent; background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, var(--grad) border-box; }
.lang-list a[hidden] { display: none; }
.lang-list b { font-size: 1.02rem; }
.lang-list small { color: var(--dim); }

/* Non-Latin scripts: no letter-spacing or forced capitals, and a little more line height. */
html.script .eyebrow, html.script .hud, html.script .lvl, html.script .site-footer h4, html.script .alert-banner strong,
html.script .store .soon, html.script .phone-bar, html.script .sheet-row b { letter-spacing: 0; text-transform: none; font-family: var(--sans); }
html.script body { line-height: 1.75; }
html.script h1, html.script h2, html.script h3 { line-height: 1.35; letter-spacing: 0; font-family: var(--sans); }

/* Right-to-left */
[dir=rtl] .flip { transform: scaleX(-1); }
[dir=rtl] .signup select { background-position: left 16px center; padding-right: 16px; padding-left: 38px; }
html.script h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); }
@media (max-width: 960px) { [dir=rtl] .moon { right: auto; left: 24px; } }

/* Account pages */
.auth-card { max-width: 460px; margin: 0 auto; padding: 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line-2); backdrop-filter: blur(8px); }
.auth-card h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.auth-card h2 { font-size: 1.15rem; margin-top: 26px; }
.auth-form { display: grid; gap: 12px; margin-top: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--muted); }
.field input { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(18,6,46,.7); color: var(--text); font: inherit; font-size: 1rem; width: 100%; }
.field input:focus { outline: none; border-color: var(--cyan); }
.check { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--muted); }
.auth-form .btn { width: 100%; margin-top: 4px; }
.auth-links { display: grid; gap: 6px; margin-top: 18px; font-size: .93rem; }
.auth-sep { border: 0; border-top: 1px solid var(--line); margin: 24px 0 4px; }
.btn-danger { background: transparent; color: var(--critical); border-color: rgba(255,61,61,.5); }
.btn-danger:hover { background: rgba(255,61,61,.1); }
.nav form { display: inline; margin: 0; }
.nav .link-btn { background: none; border: 0; color: var(--muted); padding: 7px 11px; border-radius: 999px; font: inherit; font-size: .93rem; font-weight: 500; cursor: pointer; }
.nav .link-btn:hover { color: var(--text); background: var(--panel-2); }

/* Feedback form */
.field textarea, .field select { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(18,6,46,.7); color: var(--text); font: inherit; font-size: 1rem; width: 100%; }
.field textarea { resize: vertical; min-height: 120px; }
.field textarea:focus, .field select:focus { outline: none; border-color: var(--cyan); }

/* Admin area (English only, not indexed) */
.admin h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.admin h2 { font-size: 1.15rem; margin: 32px 0 12px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 24px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.admin-tabs a, .admin-filter-links a { padding: 7px 14px; border-radius: 999px; color: var(--muted); border: 1px solid transparent; font-size: .93rem; }
.admin-tabs a:hover, .admin-filter-links a:hover { color: var(--text); border-color: var(--line-2); }
.admin-tabs a.active, .admin-filter-links a.active { color: var(--text); background: var(--panel-2); border-color: var(--line-2); }
.admin-filter-links { display: flex; gap: 6px; margin-bottom: 16px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.admin-stats .stat { display: grid; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-2); color: var(--text); }
.admin-stats .stat b { font-family: var(--display); font-size: 1.8rem; line-height: 1; }
.admin-stats .stat span { color: var(--muted); font-size: .88rem; }
.admin-stats .stat.hot { border-color: var(--pink); }
.admin-facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: .93rem; }
.admin-facts dt { color: var(--dim); }
.admin-facts dd { margin: 0; overflow-wrap: anywhere; }
.admin-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .93rem; }
.admin-list li { overflow-wrap: anywhere; }
.admin-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.admin-filter input, .admin-filter select { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(18,6,46,.7); color: var(--text); font: inherit; font-size: .95rem; min-width: 0; flex: 1 1 220px; }
.admin-filter select { flex: 0 1 220px; }
.admin-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.admin-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.admin-table th, .admin-table td { padding: 9px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin-table th { color: var(--dim); font-weight: 600; white-space: nowrap; background: var(--panel); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-pager { display: flex; gap: 16px; align-items: center; margin-top: 12px; font-size: .93rem; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: .78rem; background: var(--panel-2); color: var(--muted); border: 1px solid var(--line-2); }
.tag.hot { color: var(--pink); border-color: rgba(236,72,153,.5); }
.lvl { display: inline-block; min-width: 64px; padding: 1px 8px; border-radius: 6px; font-size: .78rem; font-weight: 700; text-align: center; }
.lvl-warning { background: rgba(255,196,0,.14); color: var(--caution); }
.lvl-error { background: rgba(255,122,26,.16); color: var(--danger); }
.lvl-critical { background: rgba(255,61,61,.2); color: var(--critical); }
.ok { color: var(--lime); }
.admin-log { display: grid; gap: 6px; }
.admin-log details { border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.admin-log summary { display: flex; gap: 10px; align-items: baseline; padding: 9px 12px; cursor: pointer; font-size: .9rem; }
.admin-log summary .msg { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.admin-log details[open] { padding-bottom: 12px; }
.admin-log details > :not(summary) { margin: 8px 12px 0; }
.admin pre { white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: .8rem; background: rgba(0,0,0,.25); padding: 10px 12px; border-radius: 10px; max-height: 420px; overflow: auto; }
.admin pre.trace { color: var(--muted); }
.admin-cards { display: grid; gap: 12px; }
.admin-card { padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line-2); }
.admin-card.done { opacity: .6; }
.admin-card header { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: .9rem; }
.admin-message { white-space: pre-wrap; overflow-wrap: anywhere; margin: 10px 0 12px; }
.btn-sm { padding: 6px 12px; font-size: .85rem; }
.tag.ok { color: var(--lime); border-color: rgba(163,230,53,.45); }
.admin-card .err { color: var(--caution); }
.admin-reply { margin: 0 0 12px; padding: 10px 14px; border-inline-start: 3px solid var(--lime); background: rgba(0,0,0,.18); border-radius: 10px; font-size: .9rem; }
.admin-reply .admin-message { margin: 6px 0 0; }
.admin-reply-box { margin: 0 0 12px; }
.admin-reply-box summary { cursor: pointer; color: var(--muted); font-size: .9rem; margin-bottom: 8px; }
.admin-reply-box textarea, .my-msg-list textarea { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(18,6,46,.7); color: var(--text); font: inherit; font-size: .95rem; margin-bottom: 8px; resize: vertical; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.my-msg-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.my-msg { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(0,0,0,.15); }
.my-msg header { display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline; font-size: .85rem; color: var(--muted); }
.my-msg p { white-space: pre-wrap; overflow-wrap: anywhere; margin: 8px 0 0; }
.my-msg .reply { margin-top: 10px; padding: 8px 12px; border-inline-start: 3px solid var(--lime); background: rgba(0,0,0,.18); border-radius: 8px; }
.my-msg .reply b { display: block; font-size: .82rem; color: var(--lime); }
.my-msg .reply p { margin-top: 4px; }

/* Android APK download (Download page) */
.store .apk-meta { font-family: var(--mono); font-size: .72rem; color: var(--dim); }
.store .apk-help { font-size: .9rem; }
.store .apk-help summary { cursor: pointer; font-weight: 600; }
.store .apk-help ol { margin: 8px 0 0; padding-inline-start: 20px; display: grid; gap: 6px; }
.store .apk-hash { margin: 8px 0 0; font-size: .7rem; word-break: break-all; }
.cta-box .cta-download { margin: 18px 0 6px; }
.cta-box .apk-note { font-family: var(--mono); font-size: .72rem; color: var(--dim); margin: 0 0 22px; text-align: center; }
