/* ScanBridge weboldal. A színek a Mobile „Grafit” palettájából (docs/SZINPALETTAK-TERV.md):
   grafit tartja a szerkezetet, a narancs csak jelölés – narancs gomb fehér felirattal nincs. */
:root {
  --pine: #23211E;
  --signal: #2E2B27;
  --signal-soft: #F2EFE9;
  --ground: #F6F4F1;
  --surface: #FFFFFF;
  --surface-alt: #EFECE7;
  --ink: #1C1A17;
  --muted: #6F6A63;
  --line: #E4E0DA;
  --on-dark: #F4F1EC;
  --on-dark-muted: #BDB5A9;
  --mark: #FF9000;
  --stock: #1D4E77;
  --link: #8A4B00;
  --radius: 10px;
  --wrap: 68rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --signal: #F4F1EC;
    --signal-soft: #2E2B27;
    --ground: #181715;
    --surface: #221F1C;
    --surface-alt: #2A2723;
    --ink: #F4F1EC;
    --muted: #BDB5A9;
    --line: #3A3631;
    --link: #FFB04A;
    --stock: #8DB8E0;
    color-scheme: dark;
  }
}

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

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 1.0625rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

a { color: var(--link); text-underline-offset: 0.15em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 1.9rem); margin: 2.5rem 0 1rem; }
h3 { font-size: 1.2rem; margin: 1.75rem 0 0.5rem; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface); padding: 0.5rem 1rem; }

:focus-visible { outline: 3px solid var(--mark); outline-offset: 2px; }

/* Fejléc: grafit sáv, alatta a 3 pontos narancs csík, mint az alkalmazásban. */
.site-header {
  background: var(--pine);
  color: var(--on-dark);
  border-bottom: 3px solid var(--mark);
}
.header-row, .footer-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem;
}
.header-row { min-height: 4rem; }
.brand {
  display: inline-flex; align-items: center; gap: 0.6rem;
  color: var(--on-dark); text-decoration: none; font-weight: 700; font-size: 1.15rem;
}
.brand img { border-radius: 7px; }
.nav { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.site-header .nav a { color: var(--on-dark-muted); text-decoration: none; }
.site-header .nav a:hover, .site-header .nav a[aria-current="page"] { color: var(--on-dark); }
.site-header .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--mark); }

.site-footer {
  margin-top: 4rem; padding: 1.5rem 0;
  background: var(--surface-alt); color: var(--muted); font-size: 0.95rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: inherit; }

/* Gombok: grafit kitöltés, világos szöveg. */
.button {
  display: inline-block; padding: 0.75rem 1.4rem; border-radius: var(--radius);
  background: var(--pine); color: var(--on-dark); border: 2px solid var(--pine);
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.button:hover { background: var(--signal); border-color: var(--signal); text-decoration: none; }
.button-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button-ghost:hover { background: var(--surface); border-color: var(--muted); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .button { background: var(--on-dark); color: var(--pine); border-color: var(--on-dark); }
  :root:not([data-theme="light"]) .button:hover { background: #FFFFFF; }
  :root:not([data-theme="light"]) .button-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
}

.kicker {
  margin: 0 0 0.5rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.kicker::before { content: ""; display: inline-block; width: 1.5rem; height: 3px; margin-right: 0.5rem; vertical-align: middle; background: var(--mark); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 42rem; }

/* Főoldal */
.hero { padding: 3.5rem 0 2rem; }
.hero-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero-art { justify-self: center; width: min(100%, 260px); }
.phone-body { fill: var(--pine); }
.phone-screen { fill: var(--ground); }
.phone-bar { fill: var(--signal); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone-bar { fill: #3A3631; } }
.phone-mark { fill: var(--mark); }
.phone-rows rect { fill: var(--surface); stroke: var(--line); }
.phone-lines rect { fill: var(--line); }
.phone-lines rect:nth-child(odd) { fill: var(--muted); opacity: 0.55; }
.phone-qty rect { fill: var(--signal-soft); stroke: var(--line); }
.phone-button { fill: var(--pine); }

@media (max-width: 760px) {
  .hero { padding-top: 2rem; }
  .hero-row { grid-template-columns: 1fr; }
  .hero-art { display: none; }
}

.section { margin-top: 1rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.card h3 { margin-top: 0; }
.card p { margin: 0; color: var(--muted); }
.card-link { display: block; color: inherit; text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.card-link h3 { color: var(--ink); }
.card-link h3::after { content: " →"; color: var(--mark); }
.card-link:hover { border-color: var(--muted); box-shadow: 0 2px 10px rgb(0 0 0 / 0.06); }
.kicker a { color: inherit; text-decoration: none; }
.kicker a:hover { color: var(--ink); }
.related h2 { margin-top: 3rem; }

.checks { list-style: none; padding: 0; display: grid; gap: 0.9rem; max-width: 46rem; }
.checks li { padding-left: 2rem; position: relative; }
.checks li::before {
  content: ""; position: absolute; left: 0.2rem; top: 0.45em; width: 0.9rem; height: 0.5rem;
  border-left: 3px solid var(--mark); border-bottom: 3px solid var(--mark); transform: rotate(-45deg);
}

/* Folyamatábra: három lépés, köztük nyíl; keskeny képernyőn egymás alatt. */
.flow { margin: 1.5rem 0; }
.flow-steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem;
}
.flow-steps li {
  position: relative; display: flex; flex-direction: column; gap: 0.35rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem;
}
.flow-steps li + li::before {
  content: "→"; position: absolute; left: -1.85rem; top: 2.2rem; font-size: 1.4rem; color: var(--mark); font-weight: 700;
}
.flow-steps span:last-child { color: var(--muted); font-size: 0.97rem; }
.flow-icon svg {
  width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.flow-steps li:first-child .flow-icon svg path:not(:last-child) { stroke: var(--mark); }
.flow figcaption { margin-top: 0.75rem; color: var(--muted); font-size: 0.95rem; }
@media (max-width: 760px) {
  .flow-steps { grid-template-columns: 1fr; gap: 2rem; }
  .flow-steps li + li::before { content: "↓"; left: 1.25rem; top: -1.85rem; }
}

/* Aloldalak szövege */
.page-head { padding: 3rem 0 0.5rem; }
.prose { max-width: 48rem; }
.prose > .flow { max-width: none; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 0.3rem; }
.prose code { background: var(--signal-soft); padding: 0.05em 0.35em; border-radius: 4px; font-size: 0.92em; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.97rem; display: block; overflow-x: auto; }
@media (min-width: 600px) { table { display: table; } }
th, td { text-align: left; vertical-align: top; padding: 0.6rem 0.75rem; border-bottom: 1px solid var(--line); }
th { background: var(--surface-alt); font-weight: 600; }

.note {
  background: var(--surface); border-left: 3px solid var(--mark); border-radius: 0 var(--radius) var(--radius) 0;
  padding: 0.75rem 1rem; color: var(--muted); font-size: 0.95rem;
}

/* Érdeklődés gomb blokk */
.cta { margin-top: 3.5rem; }
.cta-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  background: var(--pine); color: var(--on-dark); border-radius: var(--radius);
  padding: 1.75rem 2rem; border-top: 3px solid var(--mark);
}
.cta-row h2 { margin: 0 0 0.4rem; font-size: 1.4rem; }
.cta-row p { margin: 0; color: var(--on-dark-muted); max-width: 40rem; }
.cta .button { background: var(--on-dark); color: var(--pine); border-color: var(--on-dark); }
.cta .button:hover { background: #FFFFFF; }
@media (max-width: 760px) { .cta .wrap.cta-row { margin: 0 1rem; padding: 1.5rem 1.25rem; } }

/* Űrlap */
.form { display: grid; gap: 1.1rem; max-width: 36rem; margin-top: 1.5rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-weight: 600; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: 8px; padding: 0.65rem 0.8rem;
}
input:focus, textarea:focus { border-color: var(--ink); }
.field.check { grid-template-columns: auto 1fr; align-items: start; gap: 0.6rem; }
.field.check label { font-weight: 400; }
.field.check input { margin-top: 0.35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--pine); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
