/* mDNSRadar website. Colors come from the app icon: blue rim, mint sweep, navy scope.
   Light is the default. Dark applies when the visitor chose it (data-theme="dark" on <html>,
   set by theme.js), or when the system is dark and the visitor didn't choose Light. */

:root {
    --bg: #f5f8fa;
    --surface: #ffffff;
    --text: #15202b;
    --muted: #546270;
    --accent: #1866d6;
    --border: #dbe2e8;
    --mint: #127a5f;
    --hero-bg: #eef4f8;
    --hero-bg-2: #d5e5f1;
    --hero-text: #15202b;
    --hero-muted: #3f4d5a;
    --hero-line: rgba(24, 102, 214, 0.10);
    --hero-glow: rgba(24, 102, 214, 0.08);
    --shadow: 0 18px 50px rgba(12, 26, 34, 0.18);
    --radius: 16px;
    --width: 1120px;
    color-scheme: light;
}

/* The two dark blocks below must stay identical: one for the chosen theme, one for the
   system setting. */
:root[data-theme="dark"] {
    --bg: #0d1317;
    --surface: #151d23;
    --text: #e6edf1;
    --muted: #9fb1bc;
    --accent: #63adff;
    --border: #25313a;
    --mint: #6fe3c2;
    --hero-bg: #081217;
    --hero-bg-2: #0f2633;
    --hero-text: #f0f7f9;
    --hero-muted: #b2c7cf;
    --hero-line: rgba(111, 227, 194, 0.11);
    --hero-glow: rgba(111, 227, 194, 0.16);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0d1317;
        --surface: #151d23;
        --text: #e6edf1;
        --muted: #9fb1bc;
        --accent: #63adff;
        --border: #25313a;
        --mint: #6fe3c2;
        --hero-bg: #081217;
        --hero-bg-2: #0f2633;
        --hero-text: #f0f7f9;
        --hero-muted: #b2c7cf;
        --hero-line: rgba(111, 227, 194, 0.11);
        --hero-glow: rgba(111, 227, 194, 0.16);
        --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
        color-scheme: dark;
    }
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
    overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }
p, li { margin: 6px 0; }
ul { padding-left: 22px; }

.skip {
    position: absolute;
    left: 16px;
    top: -60px;
    padding: 8px 14px;
    background: var(--surface);
    border-radius: 8px;
    z-index: 10;
}
.skip:focus { top: 12px; }

.bar {
    max-width: var(--width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */

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

.site-header .bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 24px;
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    font-size: 19px;
}
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-left: auto;
    font-size: 15px;
}
.site-nav a { color: var(--muted); }
.site-nav a[aria-current] { color: var(--text); font-weight: 600; }

/* Appearance control: a segmented control made of radio buttons, shown by theme.js. */

.theme {
    display: flex;
    margin: 0;
    padding: 2px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--bg);
}
.theme[hidden] { display: none; }

.theme legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.theme label {
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
}
.theme input {
    position: absolute;
    inset: 0;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}
.theme svg { flex: none; }
.theme label:has(input:checked) {
    background: var(--surface);
    color: var(--text);
    box-shadow: 0 1px 3px rgba(12, 26, 34, 0.18);
}
.theme label:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 1px; }

/* Text pages: support, privacy, legal notice, not found */

body:not(.page-index) main {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px 24px;
}

.page-head { padding: 44px 0 8px; }
.page-head h1 { margin: 0; font-size: clamp(30px, 5vw, 40px); }
.page-head p { margin: 8px 0 0; color: var(--muted); }

body:not(.page-index) main > section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 6px 28px 16px;
    margin: 24px 0;
}

main > section h2 { font-size: 22px; margin: 20px 0 8px; }
main > section h3 { font-size: 17px; margin: 18px 0 4px; }

/* Home: hero */

.hero {
    color: var(--hero-text);
    background:
        conic-gradient(from 52deg at 50% 100%, transparent 0deg, var(--hero-glow) 26deg, transparent 27deg),
        repeating-radial-gradient(circle at 50% 100%, transparent 0 95px, var(--hero-line) 95px 96px),
        radial-gradient(ellipse at 50% 100%, var(--hero-bg-2), var(--hero-bg) 70%);
    padding: 64px 20px 0;
    text-align: center;
}

.hero-text {
    max-width: 760px;
    margin: 0 auto;
}

.hero-icon { width: 96px; height: 96px; }

.hero h1 {
    margin: 14px 0 12px;
    font-size: clamp(34px, 6vw, 58px);
    letter-spacing: -0.02em;
}

.hero .lead {
    margin: 0 auto;
    max-width: 640px;
    color: var(--hero-muted);
    font-size: clamp(18px, 2.2vw, 21px);
}

.get {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
}

.badge { display: inline-block; line-height: 0; }
.badge img { height: 52px; width: auto; }

.facts { margin: 0; font-size: 15px; color: var(--hero-muted); }

.shot { display: block; }
.shot img { display: block; width: 100%; height: auto; }

.hero-shot {
    max-width: 1100px;
    margin: 44px auto -6%;
}

/* Home: features */

.features {
    max-width: var(--width);
    margin: 0 auto;
    padding: 9% 20px 32px;
}

.feature {
    display: grid;
    grid-template-columns: 5fr 7fr;
    align-items: center;
    gap: 48px;
    margin: 0 0 88px;
}
.feature:nth-child(even) { grid-template-columns: 7fr 5fr; }
.feature:nth-child(even) .feature-text { order: 2; }

.feature h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 12px; }
.feature p { color: var(--muted); }
.feature ul { color: var(--muted); padding-left: 20px; }

.eyebrow {
    margin: 0 0 8px;
    color: var(--mint);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Home: more features, privacy, FAQ, closing call to action */

.band {
    max-width: var(--width);
    margin: 0 auto;
    padding: 24px 20px 64px;
}

.band > h2 { font-size: clamp(26px, 3.4vw, 34px); text-align: center; margin: 0 0 28px; }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.grid li, .privacy, .faq details {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.grid li { margin: 0; padding: 18px 22px; }
.grid strong { display: block; margin-bottom: 4px; }
.grid span { color: var(--muted); font-size: 16px; }

.privacy {
    padding: 36px clamp(22px, 5vw, 56px);
    text-align: center;
}
.privacy h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 0 0 12px; }
.privacy p { max-width: 680px; margin: 8px auto; color: var(--muted); }

.faq { max-width: 800px; }
.faq details { margin: 0 0 12px; padding: 0 22px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 600; }
.faq details p { margin: 0 0 16px; color: var(--muted); }
.faq .more { text-align: center; margin-top: 20px; }

.closing { text-align: center; padding-bottom: 88px; }
.closing p { color: var(--muted); margin: 0 0 20px; }
.closing .get { margin: 0; }
.closing .facts { color: var(--muted); }

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 14px;
    padding: 20px 0 40px;
}
.site-footer p { margin: 0 0 10px; }

.languages {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}
.languages [aria-current] { color: var(--text); font-weight: 600; }

@media (max-width: 860px) {
    .feature, .feature:nth-child(even) { grid-template-columns: 1fr; gap: 20px; margin-bottom: 64px; }
    .feature:nth-child(even) .feature-text { order: 0; }
    .hero { padding-top: 44px; }
    .hero-icon { width: 80px; height: 80px; }
}

@media (max-width: 520px) {
    body { font-size: 16px; }
    body:not(.page-index) main > section { padding: 4px 18px 14px; }
    .site-nav { gap: 4px 14px; }
    .theme label { padding: 6px 8px; }
    .theme span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
}
