/* SzámlaPakk publikus weboldal
   Színek: a program felületének színei (világos / sötét), hogy belépéskor ne legyen törés. */

:root {
  --bg: #f3f5f4;
  --surface: #ffffff;
  --text: #16201d;
  --muted: #5a6964;
  --border: #dde3e0;
  --accent: #0b6e5f;
  --accent-hover: #08594d;
  --accent-soft: #e0f0ec;
  --on-accent: #ffffff;
  --brand-dark: #0B2F26;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(22, 32, 29, .05), 0 4px 16px rgba(22, 32, 29, .05);
  --wrap: 1120px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1412;
    --surface: #151d1a;
    --text: #e2eae7;
    --muted: #95a59f;
    --border: #25302c;
    --accent: #38c2a5;
    --accent-hover: #5dd3ba;
    --accent-soft: #123129;
    --on-accent: #0e1412;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .2);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--font);
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); font-weight: 700; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 650; }
p { margin: 0 0 1em; }

a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.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;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--surface); color: var(--text); padding: .6rem 1rem;
  border-radius: var(--radius-sm); box-shadow: var(--shadow);
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 1.25rem; }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li + li { margin-top: .35rem; }

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 42px; padding: .55rem 1.1rem;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font: inherit; font-size: .975rem; font-weight: 600; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-lg { min-height: 48px; padding: .7rem 1.4rem; font-size: 1.025rem; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 1rem; }

/* ---------- Értesítő sáv ---------- */
.notice {
  background: var(--accent-soft); color: var(--text);
  text-align: center; font-size: .95rem; padding: .55rem 1rem;
  border-bottom: 1px solid var(--border);
}

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--border);
}
@supports not (background: color-mix(in srgb, red, blue)) { .site-header { background: var(--bg); } }

.header-inner { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { flex: 0 0 auto; display: block; }
.brand img { height: 34px; width: auto; }

.nav-desktop { margin-left: auto; }
.nav-desktop ul { display: flex; gap: .25rem; list-style: none; margin: 0; padding: 0; }
.nav-desktop a {
  display: block; padding: .5rem .7rem; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-size: .975rem; font-weight: 500;
}
.nav-desktop a:hover { background: var(--accent-soft); color: var(--text); }

.nav-mobile { display: none; position: relative; }
.nav-mobile summary {
  list-style: none; cursor: pointer;
  width: 42px; height: 42px; display: grid; place-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface);
}
.nav-mobile summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after {
  display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; position: relative;
}
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after { top: 6px; }
.nav-mobile[open] .burger { background: transparent; }
.nav-mobile[open] .burger::before { top: 0; transform: rotate(45deg); }
.nav-mobile[open] .burger::after { top: 0; transform: rotate(-45deg); }
.nav-mobile nav {
  position: absolute; right: 0; top: calc(100% + .5rem); min-width: 220px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: .4rem;
}
.nav-mobile ul { list-style: none; margin: 0; padding: 0; }
.nav-mobile a {
  display: block; padding: .7rem .9rem; border-radius: var(--radius-sm);
  color: var(--text); text-decoration: none; font-weight: 500;
}
.nav-mobile a:hover { background: var(--accent-soft); }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .btn-login { margin-left: auto; }
  .nav-mobile { display: block; }
  .header-inner { gap: .6rem; }
}
@media (max-width: 400px) {
  .brand img { height: 28px; }
  .btn-login { padding: .5rem .8rem; font-size: .925rem; }
}

/* ---------- Szekciók ---------- */
.section { padding: clamp(3.5rem, 2rem + 5vw, 6rem) 0; }
.section-surface { background: var(--surface); border-block: 1px solid var(--border); }
.section-accent { background: var(--accent-soft); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head p:last-child { color: var(--muted); font-size: 1.1rem; margin-bottom: 0; }
.eyebrow {
  margin: 0 0 .6rem; color: var(--accent);
  font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.lead { font-size: clamp(1.075rem, 1rem + .35vw, 1.225rem); color: var(--muted); }
.section-cta { margin: 2.25rem 0 0; font-weight: 500; }

/* ---------- Nyitó ---------- */
.hero { padding: clamp(2.5rem, 1rem + 5vw, 5rem) 0 clamp(3rem, 1rem + 5vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 3.5rem; } }
.hero-text h1 { max-width: 19ch; }
.hero-note { color: var(--muted); font-size: .95rem; margin: 0; }

/* ---------- Képernyőképek ---------- */
.shot {
  margin: 0; border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.shot img { width: 100%; }
.shot--placeholder {
  aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center;
  border: 2px dashed var(--border); box-shadow: none;
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, color-mix(in srgb, var(--border) 45%, transparent) 14px 15px),
    var(--surface);
  padding: 1.5rem;
}
.shot--placeholder div { display: grid; gap: .35rem; max-width: 30ch; background: var(--surface); padding: .9rem 1.1rem; border-radius: var(--radius-sm); }
.shot--placeholder strong { font-size: 1rem; }
.shot--placeholder span { color: var(--muted); font-size: .9rem; line-height: 1.4; }
.shots-2 { display: grid; gap: 1.5rem; margin-top: 2.5rem; }
@media (min-width: 800px) { .shots-2 { grid-template-columns: 1fr 1fr; } }

/* ---------- Kártyák ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .cards-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem; box-shadow: var(--shadow);
}
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 40px; height: 40px; padding: 8px; margin-bottom: 1rem;
  border-radius: var(--radius); background: var(--accent-soft); color: var(--accent);
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Pipás lista */
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 1.6rem; color: var(--muted); }
.ticks li + li { margin-top: .55rem; }
.ticks li::before {
  content: ""; position: absolute; left: .15rem; top: .5em;
  width: .55rem; height: .3rem;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks-lg li { font-size: 1.075rem; color: var(--text); }
.feature-groups .card h3 { margin-bottom: 1rem; }

/* ---------- Integráció ---------- */
.flow {
  list-style: none; margin: 0 0 2.75rem; padding: 0;
  display: grid; gap: 1rem; align-items: stretch;
}
@media (min-width: 860px) { .flow { grid-template-columns: 1fr 1fr 1.15fr; gap: 2.5rem; } }
.flow-step {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: .3rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem 1.4rem; box-shadow: var(--shadow);
}
.flow-step--main { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow); }
.flow-label { font-weight: 700; font-size: 1.075rem; }
.flow-sub { color: var(--muted); font-size: .925rem; }
.flow-step--multi { gap: .5rem; }
.flow-out { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: .975rem; }
.flow-out::before {
  content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: var(--accent);
}
/* nyilak a lépések között */
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; left: 50%; bottom: -.85rem;
  width: 10px; height: 10px; margin-left: -5px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(45deg);
}
@media (min-width: 860px) {
  .flow-step:not(:last-child)::after {
    left: auto; right: -1.6rem; bottom: auto; top: 50%; margin: -5px 0 0;
    transform: rotate(-45deg);
  }
}

.features-2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem 2.5rem; }
@media (min-width: 700px) { .features-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features-2 { grid-template-columns: repeat(3, 1fr); } }
.features-2 h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.features-2 p { color: var(--muted); margin: 0; }

/* ---------- Biztonság ---------- */
.split { display: grid; gap: 1rem 4rem; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split .section-head { margin-bottom: 0; } }

/* ---------- Lépések ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 1rem; } }
.steps li {
  counter-increment: step; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.25rem; box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(step);
  display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: .9rem;
  border-radius: 50%; background: var(--accent); color: var(--on-accent);
  font-weight: 700; font-size: .95rem;
}
.steps h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.steps p { color: var(--muted); margin: 0; font-size: .975rem; }

/* ---------- GYIK ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 1.1rem 2.5rem 1.1rem 0; font-weight: 600; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .5rem; top: 50%;
  width: 9px; height: 9px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .15s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--accent); }
.faq details p { color: var(--muted); padding-right: 2.5rem; margin: 0 0 1.2rem; }

/* ---------- Kapcsolat ---------- */
.contact {
  display: grid; gap: 2rem 3rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: clamp(1.5rem, 1rem + 3vw, 3rem);
}
@media (min-width: 880px) { .contact { grid-template-columns: 1.2fr 1fr; } }
.contact p { color: var(--muted); font-size: 1.1rem; }
.contact .actions { margin-bottom: 0; }
.contact-list { margin: 0; display: grid; gap: 1.1rem; }
.contact-list div { padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--accent-soft); }
.contact-list dt { font-size: .85rem; color: var(--muted); font-weight: 600; }
.contact-list dd { margin: .15rem 0 0; font-size: 1.1rem; font-weight: 600; word-break: break-word; }
.contact-list a { text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }

/* ---------- 404 ---------- */
.not-found { min-height: 55vh; display: flex; align-items: center; }

/* ---------- Lábléc ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand img { height: 52px; width: auto; margin-bottom: .9rem; }
.footer-brand p { color: var(--muted); }
.footer-title { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: .8rem; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem;
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .875rem;
}
.footer-bottom p { margin: 0; }

@media print {
  .site-header, .nav-mobile, .skip-link { display: none; }
  body { background: #fff; color: #000; }
}
