/*
  Márka-tokenek (2026-08-14, arculat-átvezetés): a `brand/README.md` szerinti
  WEB paletta — teál elsődleges, sötétkék másodlagos, borostyán kiemelés.
  Egy paletta, két téma: `:root` a világos alapértelmezés, a
  `prefers-color-scheme: dark` az automatikus sötét, a `[data-theme]` pedig a
  kézi választás (mindig felülír).
*/

/* Inter, saját kiszolgálásból — külső betű-CDN nélkül (GDPR: a látogató IP-je
   nem megy harmadik félhez), és a `site/` így is egyben másolható FTP-vel. */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f9fb;
  --bg-muted: #eef2f6;
  --surface: #ffffff;
  --border: #e3e8ef;
  --text: #1f2937;
  --text-muted: #6b7280;
  --accent: #167c80;
  --accent-strong: #11666a;
  --accent-contrast: #ffffff;
  --accent-soft: #e6f2f2;
  --secondary: #2e3a59;
  --amber: #ffb84d;
  --success: #2fbf71;
  --danger: #e85d5d;
  --shadow: 0 1px 2px rgba(31, 41, 55, 0.06), 0 8px 24px rgba(31, 41, 55, 0.07);
  --radius: 14px;
  --maxw: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1a1f;
    --bg-muted: #13232a;
    --surface: #16262d;
    --border: #24373f;
    --text: #e9f0f2;
    --text-muted: #9fb1b8;
    --accent: #4bb6b4;
    --accent-strong: #63c8c5;
    --accent-contrast: #05221f;
    --accent-soft: #123230;
    --secondary: #b9c4dc;
    --amber: #ffc46b;
    --success: #58d295;
    --danger: #f08585;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

:root[data-theme='light'] {
  --bg: #f7f9fb;
  --bg-muted: #eef2f6;
  --surface: #ffffff;
  --border: #e3e8ef;
  --text: #1f2937;
  --text-muted: #6b7280;
  --accent: #167c80;
  --accent-strong: #11666a;
  --accent-contrast: #ffffff;
  --accent-soft: #e6f2f2;
  --secondary: #2e3a59;
  --amber: #ffb84d;
  --success: #2fbf71;
  --danger: #e85d5d;
  --shadow: 0 1px 2px rgba(31, 41, 55, 0.06), 0 8px 24px rgba(31, 41, 55, 0.07);
}

:root[data-theme='dark'] {
  --bg: #0e1a1f;
  --bg-muted: #13232a;
  --surface: #16262d;
  --border: #24373f;
  --text: #e9f0f2;
  --text-muted: #9fb1b8;
  --accent: #4bb6b4;
  --accent-strong: #63c8c5;
  --accent-contrast: #05221f;
  --accent-soft: #123230;
  --secondary: #b9c4dc;
  --amber: #ffc46b;
  --success: #58d295;
  --danger: #f08585;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
}

/* Fókusz mindig látható legyen — billentyűzetes navigáció (WCAG 2.1 AA). */
a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* ===== Fejléc ===== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}

.brand strong {
  font-weight: 700;
}

.brand.small {
  font-size: 0.95rem;
}

.main-nav {
  /* Mobilon NEM rejtjük el (nincs hamburger): a fejléc második sorában
     vízszintesen görgethető sávként marad elérhető, hogy a szekciókra
     ugrás egy koppintás legyen. */
  order: 3;
  width: 100%;
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 10px;
  margin: 0 -20px;
  padding-left: 20px;
  padding-right: 20px;
}

.main-nav::-webkit-scrollbar {
  display: none;
}

.main-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
  padding: 6px 0;
}

.main-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

@media (min-width: 860px) {
  .main-nav {
    order: 0;
    width: auto;
    margin: 0 0 0 auto;
    padding: 0;
    /* Tulcsordulasnal gorduljon, ne torjon uj sorba — hosszu nyelveken
       (de: "Für Disponenten") a sortores szetcsusztatta a fejlecet
       (user-jelzes, 2026-08-19). */
    overflow-x: auto;
    max-width: 60vw;
  }

  .header-actions {
    margin-left: 24px;
  }
}

/*
  Nyelvvalaszto zaszlokkal. Sajat legordulo, mert a nativ <select> <option>-jei
  csak szoveget birnak el — kepet nem. A zaszlok inline SVG-k: a zaszlo-emojit
  a Windows nem rajzolja ki, csak a ket betut (lemerve, 2026-08-31).
*/
.lang-picker {
  position: relative;
}

.lang-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  font: inherit;
  font-size: 0.9rem;
  min-height: 44px;
  cursor: pointer;
}

.lang-flag {
  width: 20px;
  height: 14px;
  flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgb(0 0 0 / 0.12);
}

.lang-list {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 50;
  margin: 0;
  padding: 4px;
  list-style: none;
  min-width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
}

.lang-list [role='option'] {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.9rem;
}

.lang-list [role='option']:hover,
.lang-list [role='option']:focus-visible {
  background: var(--surface-2, rgb(0 0 0 / 0.05));
  outline: none;
}

.lang-list [role='option'][aria-selected='true'] {
  font-weight: 600;
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--accent);
}

/* A nap/hold ikon tisztán CSS — nem kell hozzá külön kép. */
.theme-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: inset -6px -3px 0 0 var(--surface);
}

:root[data-theme='dark'] .theme-icon,
:root:not([data-theme='light']) .theme-icon {
  box-shadow: none;
  background: radial-gradient(circle at 65% 35%, transparent 45%, currentColor 46%);
  border: 2px solid currentColor;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .theme-icon {
    box-shadow: inset -6px -3px 0 0 var(--surface);
    background: currentColor;
    border: 0;
  }
}

/* ===== Hero ===== */

.hero {
  padding: 72px 0 56px;
  background:
    radial-gradient(900px 380px at 12% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
}

/*
  Kétoszlopos hero (user-kérés, 2026-08-15: „ne csak szöveg fogadja a
  usert"): balra a szöveg, jobbra egy telefon-illusztráció a megálló-
  nézettel. 900 px alatt egymás alá kerülnek, a rajz középre.
*/
.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.hero-copy {
  max-width: 620px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

/* ── Telefon-illusztráció ── */

.phone {
  position: relative;
  width: 272px;
  padding: 12px;
  border-radius: 34px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 18px 50px -18px rgba(15, 23, 42, 0.35), 0 2px 8px rgba(15, 23, 42, 0.08);
}

.phone-notch {
  width: 92px;
  height: 5px;
  margin: 2px auto 10px;
  border-radius: 999px;
  background: var(--border);
}

.phone-screen {
  border-radius: 24px;
  background: var(--bg-muted);
  padding: 14px 12px 12px;
}

.phone-head {
  padding: 2px 4px 12px;
}

.phone-title {
  display: block;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--text);
}

.phone-sub {
  display: block;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.dep {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  margin-bottom: 7px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.dep.muted {
  opacity: 0.55;
}

.dep-badge {
  flex: none;
  min-width: 34px;
  padding: 3px 6px;
  border-radius: 8px;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  text-align: center;
}

.dep-dest {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dep-when {
  flex: none;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
}

.dep-when small {
  display: block;
  font-size: 0.6rem;
  font-weight: 500;
  color: var(--text-muted);
}

.phone-live {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding-top: 4px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2fbf71;
  box-shadow: 0 0 0 3px rgba(47, 191, 113, 0.2);
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    order: -1;
  }

  .phone {
    width: 236px;
  }
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 62ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px; /* érintés-méret (WCAG) */
  padding: 12px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.button.primary {
  background: var(--accent);
  color: var(--accent-contrast);
}

.button.primary:hover {
  filter: brightness(1.06);
}

.button.ghost {
  border-color: var(--border);
  color: var(--text);
  background: var(--surface);
}

.button.ghost:hover {
  border-color: var(--accent);
}

.hero-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.hero-points li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
}

.hero-points li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* ===== Szekciók ===== */

.section {
  padding: 64px 0;
}

.section.muted {
  background: var(--bg-muted);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-lead {
  color: var(--text-muted);
  max-width: 62ch;
  margin-bottom: 32px;
}

.card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .card-grid.three {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card.plain {
  box-shadow: none;
}

.card p {
  color: var(--text-muted);
  margin: 0;
}

.steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-top: 46px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  display: grid;
  place-items: center;
  font-weight: 700;
}

.steps p {
  color: var(--text-muted);
  margin: 0;
}

.contact-inner {
  max-width: 640px;
}

.contact-mail a {
  font-size: 1.15rem;
  font-weight: 600;
}

/* ===== Lábléc ===== */

.site-footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 44px 0 24px;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
}

@media (min-width: 760px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
  }
}

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.footer-note {
  color: var(--text-muted);
  margin: 12px 0 0;
}

.site-footer address {
  font-style: normal;
  color: var(--text-muted);
  line-height: 1.8;
}

.barion-link {
  display: inline-block;
  margin-top: 14px;
}

.footer-bottom {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 10px;
}

.legal-links a {
  color: var(--text-muted);
  text-decoration: none;
  /* Érintés-méret: a láblécben is legyen kényelmesen koppintható. */
  padding: 6px 0;
}

.legal-links a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ===== Arculat-kiegészítések (2026-08-14) ===== */

/*
  Téma-függő képek (store-jelvények, fizetési sáv): a harmadik fél
  jelvényeit ÁTSZÍNEZNI nem szabad, ezért világos és sötét változatot
  kapunk, és a téma szerint az egyiket mutatjuk. A `data-theme` kézi
  választás mindkét irányban felülírja az automatikát.
*/
.theme-img-light {
  display: inline-block;
}

.theme-img-dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-img-light {
    display: none;
  }

  :root:not([data-theme='light']) .theme-img-dark {
    display: inline-block;
  }
}

:root[data-theme='dark'] .theme-img-light {
  display: none;
}

:root[data-theme='dark'] .theme-img-dark {
  display: inline-block;
}

/* ===== Alkalmazás-letöltés ===== */

.download-inner {
  display: grid;
  gap: 28px;
  align-items: center;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

@media (max-width: 780px) {
  .download-inner {
    grid-template-columns: 1fr;
  }
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.store-badge img {
  /* A `display` SZÁNDÉKOSAN nincs itt: a téma-váltás szabályai
     (.theme-img-light / .theme-img-dark) kezelik. Korábban `display: block`
     állt itt, ami specifikusabb lévén FELÜLÍRTA a sötét kép elrejtését —
     ezért világos témában mindkét jelvény látszott (user-jelzés,
     2026-08-15). A `vertical-align` ugyanazt a sor-igazítást adja, amiért
     eredetileg a block kellett. */
  height: 52px;
  width: auto;
  vertical-align: middle;
}

/* A még nem publikált bolt jelvénye halványan, „hamarosan" felirattal —
   kitalált store-URL helyett őszinte állapot. */
.store-badge.pending {
  cursor: default;
  filter: grayscale(1);
  opacity: 0.6;
}

.store-badge.pending {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.store-badge.pending::after {
  content: attr(data-label);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.app-preview {
  display: flex;
  justify-content: center;
}

.app-preview img {
  width: 148px;
  height: 148px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

/* ===== Fizetési sáv ===== */

.payment-strip img {
  height: 34px;
  width: auto;
}

/* ===== Kézikönyv-kártya ===== */

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.doc-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* A márkajel a fejlécben mindig a színes változat — sötét témán is a
   lekerekített négyzet adja a kontrasztot. */
.brand img {
  border-radius: 9px;
}

/* Kiemelt („Ami megkülönböztet") szekció: halvány márka-tónus, hogy a
   funkció-rács és a célcsoportok között vizuálisan is elváljon. */
.section.highlights {
  background: var(--accent-soft);
}

.section.highlights .card.plain {
  background: var(--surface);
  border: 1px solid var(--border);
}

.section.highlights h3 {
  color: var(--accent);
}

/* ===== Mobil (≤ 560 px) ===== */

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .container {
    padding: 0 16px;
  }

  /* A fejléc-navigáció vízszintesen görgethető sávvá válik: a hat pont
     kis kijelzőn se törjön két sorba, és ne lógjon ki az oldalból. */
  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 14px;
    padding-bottom: 6px;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    white-space: nowrap;
  }

  .hero-actions .button {
    width: 100%;
  }

  .store-badge img {
    height: 46px;
  }

  .app-preview img {
    width: 112px;
    height: 112px;
    border-radius: 24px;
  }

  .payment-strip img {
    height: 28px;
  }

  /* Hosszú e-mail-cím és URL ne feszítse szét a lapot. */
  .contact-mail a,
  address a,
  .footer-note {
    overflow-wrap: anywhere;
  }
}


/* Persona-szekciok levegoje (user-jelzes, 2026-08-19: "a sofornel
   lehetne szellosebb") — a kartya-racs es a jelvenyek terkoze. */
#dispatchers .card-grid,
#drivers .card-grid {
  margin: 28px 0 32px;
}

#drivers .store-badges {
  margin: 4px 0 20px;
}

#dispatchers .hero-actions {
  margin-bottom: 18px;
}
