/* Internet Monitor site: dashboard look, matching the desktop app */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --text: #17202e;
  --muted: #5f6b7c;
  --line: #e1e5eb;
  --accent: #2f6fe4;
  --accent-ink: #ffffff;
  --ok: #1a9a55;
  --ok-bg: #e4f5ec;
  --bar: #3ddc84;
  --navy: #14213d;
  --radius: 8px;
  --max: 1040px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b111a;
    --surface: #121a26;
    --text: #e6ebf2;
    --muted: #8d9aae;
    --line: #223044;
    --accent: #5b8cff;
    --accent-ink: #0b111a;
    --ok: #3ddc84;
    --ok-bg: #123424;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 15.5px/1.6 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* top bar, like the app window header */
header.site { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 56px; gap: 16px; }
.brand { font-weight: 700; color: var(--text); text-decoration: none; font-size: 1.05rem; display: flex; align-items: center; white-space: pre; }
.brand::after {
  content: "Monitoring"; font-size: .7rem; font-weight: 600; color: var(--ok); background: var(--ok-bg);
  padding: 2px 9px; border-radius: 999px; margin-left: 10px; white-space: normal;
}
html[lang="hu"] .brand::after { content: "Figyel"; }
.brand span { color: inherit; }
nav.main { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
nav.main .link {
  color: var(--text); text-decoration: none; padding: 5px 12px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface);
}
nav.main .link:hover { border-color: var(--accent); color: var(--accent); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-left: 4px; }
.lang a, .lang b { padding: 5px 11px; font-size: .8rem; font-weight: 600; }
.lang b { background: var(--accent); color: var(--accent-ink); }
.lang a { color: var(--muted); text-decoration: none; }
@media (max-width: 640px) { nav.main .link { display: none; } .brand::after { display: none; } }

/* hero */
.hero { padding: 48px 0 24px; }
.hero .appicon { width: 72px; height: 72px; border-radius: 16px; margin-bottom: 18px; display: block; }
.hero h1 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); line-height: 1.15; margin: 0 0 14px; letter-spacing: -.02em; }
.hero p { font-size: 1.1rem; color: var(--muted); margin: 0 0 22px; }
.hero .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.meta { font-size: .85rem !important; margin: 14px 0 0 !important; }
.btn {
  display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 10px 20px;
  border-radius: 6px; text-decoration: none; font-weight: 600; border: 1px solid transparent;
}
.btn:hover { filter: brightness(1.08); }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }

.shot { margin: 36px 0 0; }
.shot img {
  display: block; width: 100%; height: auto; border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 12px 40px rgba(20, 33, 61, .14);
}
.shot figcaption { color: var(--muted); font-size: .85rem; margin-top: 10px; }

/* sections */
section { padding: 44px 0 8px; }
section .wrap > h2 { font-size: 1.25rem; margin: 0 0 4px; }
section .lead { color: var(--muted); margin: 0 0 20px; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--bar);
  border-radius: var(--radius); padding: 16px 18px 18px;
}
.card h3 { margin: 0 0 6px; font-size: 1rem; }
.card p { margin: 0; color: var(--muted); font-size: .92rem; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; gap: 10px; }
.steps li {
  counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px 14px 56px; position: relative;
}
.steps li::before {
  content: counter(s); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 6px;
  background: var(--navy); color: var(--bar); font-weight: 700; display: grid; place-items: center; font-size: .9rem;
}

.dl { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 22px; }
.dl p { margin: 0 0 12px; }
code.hash {
  display: block; font: .78rem/1.5 ui-monospace, Consolas, monospace; word-break: break-all;
  background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; margin: 6px 0 14px;
}
.note { color: var(--muted); font-size: .88rem; }
.dl + .dl { margin-top: 16px; }
ul.files { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 4px; }
ul.files li { font-size: .92rem; }
ul.files code.hash { margin: 4px 0 8px; }

footer.site { margin-top: 48px; background: var(--surface); border-top: 1px solid var(--line); padding: 20px 0 28px; color: var(--muted); font-size: .85rem; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
