/* Lingopage – közös stíluslap a bemutató- és jogi oldalakhoz.
   A paletta az app meglévő márkaszíneiből jön (lásd README.md „Márkajegyek”). */

:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-2: #fbf9f4;
  --text: #221f1a;
  --text-muted: #6b6558;
  --border: #e4e0d5;
  --brand-blue: #1565c0;
  --brand-blue-ink: #0f4c93;
  --paper: #fff8ec;
  --amber: #ffddb0;
  --amber-dark: #8a5100;
  --shadow: 0 18px 40px -22px rgba(30, 25, 15, 0.35);
  --radius: 16px;
  --maxw: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171613;
    --surface: #211f1b;
    --surface-2: #1b1a16;
    --text: #ece8df;
    --text-muted: #a39d8c;
    --border: #38352c;
    --brand-blue: #6fa8e6;
    --brand-blue-ink: #9cc4ef;
    --paper: #2a271f;
    --amber: #6b4a1c;
    --amber-dark: #ffdca8;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  --bg: #171613;
  --surface: #211f1b;
  --surface-2: #1b1a16;
  --text: #ece8df;
  --text-muted: #a39d8c;
  --border: #38352c;
  --brand-blue: #6fa8e6;
  --brand-blue-ink: #9cc4ef;
  --paper: #2a271f;
  --amber: #6b4a1c;
  --amber-dark: #ffdca8;
  --shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.6);
}

* { 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: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-blue-ink); }

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

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: var(--text);
  font-size: 1.05rem;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.site-nav {
  display: flex;
  gap: 1.4rem;
  margin-left: auto;
  font-size: 0.93rem;
}
.site-nav a { color: var(--text-muted); text-decoration: none; }
.site-nav a:hover { color: var(--text); }

.lang-switch {
  display: flex;
  gap: 2px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}
.site-nav + .lang-switch { margin-left: 1.2rem; }
.lang-switch:only-child, .site-header .lang-switch { margin-left: auto; }
.site-nav ~ .lang-switch { margin-left: 1rem; }
.lang-switch button,
.lang-switch a {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
}
.lang-switch a:hover { color: var(--text); }
.lang-switch button[aria-pressed="true"],
.lang-switch a[aria-current="page"] {
  background: var(--brand-blue);
  color: #fff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .lang-switch button[aria-pressed="true"],
  :root:not([data-theme="light"]) .lang-switch a[aria-current="page"] { color: #10233a; }
}

/* ---------- Általános szekciók ---------- */
section { padding: 4.5rem 0; }
section + section { border-top: 1px solid var(--border); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); margin: 0 0 1.4rem; }
h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.lede { font-size: clamp(1.05rem, 2vw, 1.2rem); color: var(--text-muted); max-width: 60ch; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber-dark);
  margin: 0 0 0.8rem;
}

/* ---------- Hero ---------- */
.hero { padding-top: 3.5rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--brand-blue); color: #fff; }
.btn-primary:hover { background: var(--brand-blue-ink); }
.btn-ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--text-muted); }
.badge-soon {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber-dark);
  background: var(--amber);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  margin-left: 0.5rem;
}

.hero-art {
  background: var(--brand-blue);
  border-radius: 24px;
  padding: 2.2rem;
  box-shadow: var(--shadow);
}
.hero-art svg { width: 100%; height: auto; display: block; }

/* ---------- Funkciórács ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card .ic {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--amber);
  color: var(--amber-dark);
  margin-bottom: 0.9rem;
}
.card p { margin: 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Lépések ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem; }
.step { position: relative; padding-left: 3.2rem; }
.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--brand-blue); color: #fff;
  font-weight: 700;
}
.step p { margin: 0.2rem 0 0; color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Árazás ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.4rem; align-items: start; }
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.plan.is-featured { border-color: var(--brand-blue); box-shadow: var(--shadow); }
.plan .price { font-size: 1.9rem; font-weight: 700; margin: 0.4rem 0 0.2rem; }
.plan .price span { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
.plan ul { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.plan li { padding: 0.45rem 0 0.45rem 1.6rem; position: relative; font-size: 0.94rem; border-top: 1px solid var(--border); }
.plan li:first-child { border-top: 0; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--brand-blue); font-weight: 700; }
.plan-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 1.4rem; }

/* ---------- GYIK ---------- */
.faq { max-width: 760px; }
.faq details {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  padding: 0 1.2rem;
  margin-bottom: 0.7rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding: 1rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--text-muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq details p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Jogi oldalak ---------- */
.legal { padding: 3.5rem 0 4.5rem; }
.legal .doc { max-width: 760px; }
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.legal .meta { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.2rem; margin-top: 2.4rem; }
.legal h3 { font-size: 1rem; margin-top: 1.6rem; }
.legal p, .legal li { color: var(--text); font-size: 0.97rem; }
.legal .callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber-dark);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 0.92rem;
  color: var(--text-muted);
}
.legal .toc { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 1.2rem 1.4rem; margin-bottom: 2.5rem; }
.legal .toc ol { margin: 0.4rem 0 0; padding-left: 1.3rem; }
.legal .toc a { text-decoration: none; }
.legal .toc a:hover { text-decoration: underline; }

.placeholder-banner {
  background: var(--amber);
  color: var(--amber-dark);
  border-radius: 12px;
  padding: 1rem 1.3rem;
  font-size: 0.92rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

/* ---------- Lábléc ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  padding: 3rem 0;
  font-size: 0.9rem;
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 2rem 3rem; justify-content: space-between; }
.site-footer h4 { margin: 0 0 0.7rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.site-footer a { color: var(--text); text-decoration: none; display: block; padding: 0.2rem 0; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .colophon { color: var(--text-muted); max-width: 34ch; }

/* ---------- Hero telefon-makett ---------- */
.phone {
  width: 240px;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 9 / 19;
  background: var(--paper);
  border: 10px solid #10233a;
  border-radius: 34px;
  padding: 1rem 0.9rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  overflow: hidden;
}
.phone .ph-line { height: 9px; border-radius: 5px; background: color-mix(in srgb, var(--brand-blue-ink) 28%, transparent); }
.phone .ph-line.short { width: 55%; }
.phone .ph-line.mid { width: 78%; }
.phone .ph-mark {
  align-self: flex-start;
  background: var(--amber);
  color: var(--amber-dark);
  border-radius: 8px;
  padding: 0.25rem 0.55rem;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.2;
}
.phone .ph-pop {
  margin-top: 0.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
  color: var(--text);
  box-shadow: 0 8px 20px -12px rgba(0,0,0,0.4);
}
.phone .ph-pop b { color: var(--brand-blue-ink); }

/* ---------- App-áruház gomb / jelvény ---------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; align-items: center; }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.15rem;
  border-radius: 12px;
  background: #10233a;
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.15s ease, transform 0.15s ease;
}
.store-badge:hover { background: #16304f; transform: translateY(-1px); }
.store-badge .store-badge-sub { font-size: 0.7rem; opacity: 0.8; display: block; }
.store-badge strong { font-size: 0.98rem; }

/* ---------- Jogi oldal: tájékoztató nyelvi sáv ---------- */
.legal-notice {
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand-blue);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}
.legal-notice a { color: var(--brand-blue-ink); }

/* ---------- Jogi oldal: táblázatok ---------- */
.legal .table-wrap { overflow-x: auto; margin: 1.2rem 0 1.6rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.legal th, .legal td {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.legal th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  font-weight: 700;
}
.legal code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 0.08rem 0.35rem;
  border-radius: 4px;
  font-size: 0.88em;
}
.legal section { padding: 0; border: 0; margin-bottom: 2.6rem; scroll-margin-top: 90px; }
.legal section h2 {
  font-size: 1.25rem;
  margin: 0 0 1rem;
  padding-left: 0.9rem;
  border-left: 3px solid var(--brand-blue);
}
.legal section h3 { font-size: 1rem; font-weight: 700; margin: 1.4rem 0 0.4rem; }
.legal footer {
  margin-top: 3rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ---------- Fióktörlés oldal ---------- */
.method-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.3rem 1.5rem;
  margin: 1.2rem 0;
}
.method-block h3 { margin-top: 0; }
ol.steps-list { padding-left: 1.3rem; margin: 0.6rem 0 0; }
ol.steps-list > li { margin-bottom: 0.9rem; }
ol.steps-list .note { display: block; color: var(--text-muted); font-size: 0.9rem; margin-top: 0.2rem; }
a.button {
  display: inline-block;
  background: var(--brand-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
}
a.button:hover { background: var(--brand-blue-ink); }

/* ---------- i18n megjelenítés ---------- */
[data-i18n-hide] { display: none !important; }

/* ---------- Reszponzív ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .site-nav { display: none; }
  section { padding: 3.2rem 0; }
}
