:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --text: #1c2321;
  --muted: #55625e;
  --line: #e4e1d8;
  --brand: #0f766e;
  --brand-strong: #0b5c56;
  --brand-soft: #e2f1ee;
  --on-brand: #ffffff;
  --warn-bg: #fff3bf;
  --warn-text: #1c2321;
  --ok: #15803d;
  --busy: #b45309;
  --alert: #b91c1c;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 28, .06), 0 8px 24px rgba(20, 30, 28, .06);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101514;
    --surface: #182120;
    --text: #e9efed;
    --muted: #a3b1ad;
    --line: #2a3634;
    --brand: #2dd4bf;
    --brand-strong: #5eead4;
    --brand-soft: #16302d;
    --on-brand: #06201d;
    --ok: #4ade80;
    --busy: #fbbf24;
    --alert: #f87171;
    --shadow: none;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
}
a { color: var(--brand-strong); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
.wrap { width: min(1080px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

/* header */
header.site { border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; z-index: 5; }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; letter-spacing: .01em; color: var(--text); text-decoration: none; }
.logo img { width: 30px; height: 30px; }
nav.main { display: flex; gap: 20px; flex-wrap: wrap; justify-content: flex-end; }
nav.main a { color: var(--muted); text-decoration: none; font-size: .95rem; padding: 6px 0; }
nav.main a:hover, nav.main a[aria-current="page"] { color: var(--text); }

/* hero */
.hero { padding: 64px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 860px) { .hero .wrap { grid-template-columns: 1.1fr .9fr; } }
.eyebrow { display: inline-block; background: var(--brand-soft); color: var(--brand-strong); font-size: .85rem; font-weight: 600; padding: 4px 12px; border-radius: 999px; margin-bottom: 18px; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); line-height: 1.15; margin: 0 0 18px; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; margin: 0 0 12px; }
h3 { font-size: 1.1rem; margin: 0 0 6px; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; margin: 0 0 28px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 2px solid var(--brand); }
.btn.primary { background: var(--brand); color: var(--on-brand); }
.btn.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.ghost { color: var(--brand-strong); }
.btn.ghost:hover { background: var(--brand-soft); }

/* illustration card */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); max-width: 380px; margin-inline: auto; width: 100%; }
.mock .bar { display: flex; justify-content: space-between; font-size: .8rem; color: var(--muted); margin-bottom: 12px; }
.mock ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mock li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; font-size: .95rem; }
.mock li small { display: block; color: var(--muted); font-size: .78rem; }
.pill { font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1.5px solid currentColor; white-space: nowrap; }
.pill.ok { color: var(--ok); } .pill.busy { color: var(--busy); } .pill.alert { color: var(--alert); }
.mock .note { margin: 12px 2px 0; font-size: .75rem; color: var(--muted); text-align: center; }

/* sections */
section { padding: 56px 0; }
section.alt { background: var(--surface); border-block: 1px solid var(--line); }
.intro { max-width: 40rem; color: var(--muted); margin: 0 0 32px; }
.grid { display: grid; gap: 18px; }
@media (min-width: 700px) { .grid.c2 { grid-template-columns: repeat(2, 1fr); } .grid.c3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
section.alt .card { background: var(--bg); }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.roles { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.roles li { background: var(--brand-soft); color: var(--brand-strong); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.steps { counter-reset: s; display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); background: var(--brand); color: var(--on-brand); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; }
.steps p { margin: 0; color: var(--muted); }
.status { border-left: 4px solid var(--brand); background: var(--brand-soft); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; max-width: 46rem; }
.status p { margin: 0; }

/* contact + footer */
.contact-mail { font-size: 1.25rem; font-weight: 600; }
footer.site { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: .9rem; }
footer.site .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
footer.site a { color: var(--muted); }

/* legal page */
.legal { max-width: 44rem; padding: 40px 0 64px; }
.legal h1 { font-size: 2rem; }
.legal h2 { font-size: 1.2rem; margin-top: 32px; }
.legal .meta { color: var(--muted); font-size: .92rem; }
.todo { background: var(--warn-bg); color: var(--warn-text); padding: 0 .25rem; border-radius: 3px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 640px) {
  header.site { position: static; }
  header.site .wrap { flex-direction: column; align-items: flex-start; gap: 0; padding-top: 12px; }
  nav.main { justify-content: flex-start; gap: 4px 18px; padding-bottom: 10px; }
  .hero { padding-top: 40px; }
}

/* nyelvváltó */
nav.main a.lang { border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; font-weight: 600; color: var(--text); }
nav.main a.lang:hover { background: var(--brand-soft); }
