/* Summit — moonlight grey theme, logic-lab-like rows.
   Holdszürke háttér, fehér blokkok, óriás semibold címek. */
:root {
  --moon: #e7eaef;
  --moon-deep: #dbe0e7;
  --bg: #fff;
  --ink: #15171c;
  --soft: #3f434c;
  --muted: #6b7078;
  --line: #d3d7de;
  --link: #0066CC;
  --link-hover: #0077ED;
  --accent: #4a90e2;
  --orange: #e8830c;
  --orange-soft: #fdf0dd;
  --green: #1f9d55;
  --radius: 18px;
  --shadow: 0 24px 60px -24px rgba(21, 23, 28, .35);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
img { max-width: 100%; }
html { scroll-behavior: smooth; scroll-padding-top: 68px; background: #000; }
/* Overscroll (iOS gumisáv) egységes fekete — az oldal alja fekete blokkokban végződik. */
/* Global anchor offset: az 52px-es sticky nav sose takarja ki a célzott címet,
   és a scroll-snap pozíciók is e fölött állnak meg (iOS swipe közben se tűnik el szöveg). */
[id] { scroll-margin-top: 64px; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--moon);
  font-size: 17px; line-height: 1.47; -webkit-font-smoothing: antialiased;
  overflow-x: hidden; overflow-x: clip;
  overscroll-behavior-y: none;
}
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.05; margin: 0 0 .5em; }
/* text-wrap: balance SZÁNDÉKOSAN NINCS: iOS Safariban a nagy display-címek
   betűit egymásra csúsztatja (WebKit mérési hiba szoros trackinggel). */
h1 { font-size: clamp(52px, 8vw, 96px); }
h2 { font-size: clamp(36px, 5vw, 64px); }
p { margin: 0 0 1em; }
.lede { font-size: 21px; color: var(--soft); }

/* ---------- slim nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 52px; padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left));
  background: rgba(231, 234, 239, .82);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(21, 23, 28, .08);
  transition: transform .35s ease;
}
/* Elbújik, amíg a felső vagy az alsó nagy CTA látszik */
.nav-hidden { transform: translateY(-110%); }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 17px; color: var(--ink); text-decoration: none; }
/* Fekete squircle ikon a fehér hegy-logóval */
.brand-icon {
  width: 28px; height: 28px; border-radius: 8px; background: #000;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-icon img { width: 21px; height: 21px; object-fit: contain; display: block; }
.nav-cta { font-size: 13px; color: #fff; background: #0071e3; text-decoration: none; padding: 5px 14px; border-radius: 980px; white-space: nowrap; }
.nav-cta:hover { background: #0077ED; }

/* ---------- buttons ---------- */
.btn { display: inline-block; text-decoration: none; font-size: 17px; padding: 10px 26px; border-radius: 980px; border: 0; }
.btn-primary { background: #0071e3; color: #fff; }
.btn-primary:hover { background: #0077ED; }
.btn-ghost { color: var(--link); padding-left: 0; padding-right: 0; }
.btn-ghost::after { content: " >"; }
.btn-ghost:hover { text-decoration: underline; }
button.btn { cursor: pointer; font-family: inherit; }
.btn-small { font-size: 15px; }

/* ---------- hero trio: side by side, uncropped ---------- */
.hero { text-align: center; padding: 84px 22px 90px; max-width: 1280px; margin: 0 auto; }
.hero-eyebrow { font-size: 19px; font-weight: 600; color: var(--soft); margin-bottom: .8rem; }
.hero .lede { margin: 0 auto; }
.hero-cta { display: flex; justify-content: center; margin: 1.6rem 0 0; }
.hero-cta .btn-primary { display: block; width: min(86vw, 380px); text-align: center; padding: 14px 26px; font-size: 18px; }
.hero-trio {
  display: flex; align-items: flex-end; justify-content: center; gap: 2.2rem;
  margin-top: 4rem;
}
.hero-trio img { display: block; height: 340px; width: auto; max-width: 100%; }
.trio-phone, .trio-pad, .trio-mac { flex-shrink: 0; }
@media (max-width: 900px) {
  .hero { padding: 56px 20px 64px; }
  .hero-cta { gap: 1rem; }
  .hero-trio { gap: 1.4rem; overflow-x: auto; justify-content: flex-start; padding-bottom: 1rem; scroll-snap-type: x mandatory; }
  .hero-trio img { scroll-snap-align: center; height: 300px; }
}
/* Telefon: vízszintes swipe a három eszköz között */
@media (max-width: 640px) {
  .hero { padding: 48px 20px 56px; }
  .hero-trio { flex-wrap: nowrap; justify-content: flex-start; align-items: center; gap: 8vw; overflow-x: auto; margin-top: 2.5rem; padding: 0 8vw .5rem; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .hero-trio::-webkit-scrollbar { display: none; }
  .hero-trio img { flex: 0 0 auto; height: min(50svh, 440px); width: auto; max-width: 84vw; scroll-snap-align: center; }
  .hero-trio .trio-mac { flex-basis: auto; margin: 0; max-width: 92vw; }
}

/* ---------- sections & logic-lab rows ---------- */
.section { padding: 100px 22px; }
.section.white { background: var(--bg); }
.section-head { max-width: 820px; margin: 0 auto 3rem; text-align: center; }
.section-head p { color: var(--soft); font-size: 21px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; max-width: 1100px; margin: 0 auto; }
.row.flip .row-text { order: 2; }
.row-text p { color: var(--soft); font-size: 19px; max-width: 26rem; }
/* Kétsoros cím, hogy kiférjen a szövegoszlopba */
#kerekites h2 { font-size: clamp(32px, 4.4vw, 56px); }
.row-img { height: min(68vh, 660px); width: auto; max-width: 100%; justify-self: center; }
@media (max-width: 860px) {
  .section { padding: 56px 20px; }
  .row { grid-template-columns: 1fr; gap: 1.4rem; }
  .row.flip .row-text { order: 0; }
  .row-text p { max-width: none; font-size: 17px; }
  .row-img { height: min(54svh, 500px); width: auto; max-width: 92vw; margin: 0 auto; }
}

/* ---------- pinned sections: csak épphogy megakad ---------- */
.section:not(#osszehasonlitas) { height: 120vh; }
.section:not(#osszehasonlitas) > .row {
  position: sticky; top: 52px; height: calc(100vh - 52px); height: calc(100svh - 52px);
  align-content: center;
}
@media (max-width: 860px) {
  .section:not(#osszehasonlitas) { height: auto; }
  .section:not(#osszehasonlitas) > .row { position: static; height: auto; }
}

/* ---------- compare: feketén indul, alulról jön a fehér ---------- */
#osszehasonlitas { background: var(--cmp-bg, var(--bg)); transition: background .15s linear; height: 300vh; }
.compare-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  gap: 2vh; padding: calc(52px + 2vh) 22px 0;
}
#osszehasonlitas .section-head { margin: 0 auto; flex-shrink: 0; }
#osszehasonlitas .section-head h2 { color: var(--cmp-ink, var(--ink)); }
#osszehasonlitas .section-head p { color: var(--cmp-soft, var(--soft)); }
.compare-text { text-align: center; }
.compare-text h2 { color: var(--cmp-ink, var(--ink)); font-size: clamp(32px, 4.4vw, 56px); }
.compare-text p { color: var(--cmp-soft, var(--soft)); font-size: 19px; margin: 0; }
.cmp-shot {
  position: relative; display: grid; justify-items: center; will-change: transform;
  /* A maradék helyet tölti ki: a doboz fixen a viewportban van, az alja nem clippelhet */
  flex: 1 1 0; min-height: 0; min-width: 0; width: 100%;
}
.cmp-img {
  grid-area: 1 / 1; height: 100%; min-height: 0; width: auto; max-width: 100%;
  object-fit: contain; justify-self: center;
  pointer-events: none; user-select: none; -webkit-user-drag: none;
}
.cmp-top { clip-path: inset(var(--cut, 100%) 0 0 0); }
@media (max-width: 860px) {
  #osszehasonlitas { height: 260vh; }
  .compare-stage { padding: calc(52px + 2vh) 16px 0; gap: 1.5vh; }
  #osszehasonlitas .section-head { margin: 0 auto; }
  .cmp-img { height: auto; max-height: 62vh; width: auto; max-width: 92vw; }
}
@media (prefers-reduced-motion: reduce) {
  .cmp-top { clip-path: none; }
}

/* ---------- jegyek: sticky vízszintes swipe ---------- */
html { scroll-snap-type: y proximity; }
.swipe { height: 380vh; position: relative; scroll-snap-align: end; }
.swipe-sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: flex; align-items: center;
}
.swipe-track { display: flex; width: 300vw; will-change: transform; }
.swipe-panel { width: 100vw; flex-shrink: 0; display: flex; justify-content: center; padding: 0 22px; }
.swipe-panel .row { width: 100%; }
@media (max-width: 860px) {
  html { scroll-snap-type: none; }
  .swipe { height: 300vh; }
  .swipe-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; padding: 0; }
  .swipe-track { display: flex; width: 300vw; }
  .swipe-panel { width: 100vw; flex-shrink: 0; display: flex; justify-content: center; align-items: center; padding: calc(52px + 1vh) 20px 2vh; }
  .swipe-panel .row { gap: 1rem; width: 100%; max-width: 460px; }
  .swipe-panel .row-text p { font-size: 16px; }
  .swipe-panel .row-img { height: min(56svh, 560px); width: auto; max-width: 92vw; margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-snap-type: none; }
  .swipe { height: auto; scroll-snap-align: none; }
  .swipe-sticky { position: static; height: auto; display: block; padding: 100px 22px; }
  .swipe-track { display: block; width: auto; transform: none !important; }
  .swipe-panel { width: auto; padding: 0 0 4rem; }
  .swipe-panel:last-child { padding-bottom: 0; }
}

/* ---------- hegy teteje: iskolatérkép ---------- */
.peaks { background: #000; color: #f5f5f7; text-align: center; padding: 100px 22px 90px; border-top: 1px solid rgba(255,255,255,.08); }
.peaks-eyebrow { font-size: 17px; font-weight: 600; color: #8e949e; margin-bottom: .8rem; }
.peaks h2 { color: #fff; }
.peaks-sub { color: #a1a1a6; font-size: 19px; max-width: 34rem; margin: 0 auto; }
.demo-badge { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #0d1014; background: #e8830c; border-radius: 980px; padding: 2px 10px; vertical-align: middle; margin-left: .4rem; }
.peaks-total { margin: 2rem 0 0; font-family: var(--display); }
.peaks-total span { font-size: clamp(56px, 9vw, 96px); font-weight: 700; letter-spacing: -.03em; }
.peaks-total-label { display: block; font-size: 15px; color: #8e949e; font-weight: 500; }
.peaks-map { position: relative; max-width: 820px; margin: 1.4rem auto 0; }
.peaks-svg { width: 100%; height: auto; display: block; overflow: visible; }
.peaks-svg .outline { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1; stroke-linejoin: round; }
.peaks-svg .dot { fill: #fff; }
.peaks-svg .dot.water { fill: #4a90e2; opacity: .9; }
.peaks-svg .ref-dot { fill: none; stroke: rgba(255,255,255,.55); stroke-width: 1.2; }
.peaks-svg .ref-label { fill: rgba(255,255,255,.62); font-family: var(--font); font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.peaks-svg .marker { fill: #4a90e2; stroke: #000; stroke-width: 1.5; cursor: pointer; }
.peaks-svg .marker:hover, .peaks-svg .marker:focus { fill: #6aa8f0; outline: none; }
.peaks-svg .halo { fill: none; stroke: #4a90e2; stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; animation: halo 3s ease-out infinite; }
.peaks-svg .halo-2 { animation-delay: 1.5s; }
@keyframes halo { 0% { opacity: .7; transform: scale(.7); } 100% { opacity: 0; transform: scale(2.4); } }
.peaks-svg .marker-label .leader { stroke: rgba(255,255,255,.35); stroke-width: 1; }
.peaks-svg .marker-label .label-name { fill: #f5f5f7; font-family: var(--font); font-size: 12px; font-weight: 600; }
.peaks-svg .marker-label .label-count { fill: #8e949e; font-family: var(--font); font-size: 11px; font-weight: 500; }
@media (max-width: 600px) { .peaks-svg .marker-label, .peaks-svg .ref-label { display: none; } }
.peaks-tip { position: absolute; transform: translate(-50%, calc(-100% - 14px)); background: #fff; color: var(--ink); border-radius: 12px; padding: 8px 14px; white-space: nowrap; box-shadow: var(--shadow); pointer-events: none; z-index: 2; }
.peaks-tip strong { display: block; font-size: 15px; }
.peaks-tip span { font-size: 13px; color: var(--soft); }
.peaks-note { margin-top: 1.6rem; color: #8e949e; font-size: 15px; }
.peaks-note a { color: #6aa8f0; }
.peaks-credit { margin-top: .8rem; color: #5c6169; font-size: 12px; }
.peaks-credit a { color: #5c6169; }
@media (prefers-reduced-motion: reduce) { .peaks-svg .halo { display: none; } }
@media (max-width: 860px) { .peaks { padding: 64px 20px; } .peaks-sub { font-size: 17px; } }

/* ---------- GA hozzájáruló banner ---------- */
.ga-banner { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 100; width: min(92vw, 560px); background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 14px 18px; display: flex; align-items: center; gap: 1rem; }
.ga-banner[hidden] { display: none; }
.ga-banner p { margin: 0; font-size: 14px; flex: 1; }
.ga-banner p a { color: var(--link); }
.ga-btns { display: flex; gap: .5rem; flex-shrink: 0; }
.ga-decline { background: transparent; border: 1px solid var(--line); color: var(--ink); }
@media (max-width: 560px) { .ga-banner { flex-direction: column; align-items: stretch; text-align: center; } .ga-btns { justify-content: center; } }

/* ---------- finale + footer: alul fekete ---------- */
.finale { text-align: center; background: #000; color: #f5f5f7; margin: 0; padding: 6rem 22px 7rem; }
.finale h2 { color: #fff; }
.finale p { color: #a1a1a6; font-size: 19px; max-width: 34rem; margin-left: auto; margin-right: auto; }
.footer { background: #000; color: #a1a1a6; font-size: 13px; padding: 2rem 22px 3rem; }
.footer-inner { max-width: 980px; margin: 0 auto; }
.footer span { display: block; padding: .5rem 0; border-bottom: 1px solid #2c2c2e; }
.footer span:last-child { border-bottom: 0; }
.footer-sign { text-align: center; padding: 1rem 0; }
.footer-sign span { border-bottom: 0; padding: 0; color: #a1a1a6; font-size: 15px; }
.footer-sign a { color: #f5f5f7; font-size: 21px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.footer-sign a:hover { text-decoration: underline; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  h1 { font-size: clamp(40px, 11vw, 56px); }
  h2 { font-size: clamp(30px, 8vw, 40px); }
  .lede { font-size: 18px; }
  .finale { padding: 4.5rem 20px 5rem; }
  .finale p { font-size: 17px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav { transition: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .section:not(#osszehasonlitas) { height: auto; }
  .section:not(#osszehasonlitas) > .row { position: static; height: auto; }
  .section:not(#osszehasonlitas) > .row .row-img { height: auto; }
}

/* ---------- footer jogi link + adatkezelési aloldal (inline style helyett, CSP) ---------- */
.footer-legal { margin-top: 1rem; font-size: 13px; }
.footer-legal a { color: #a1a1a6; }
.legal { max-width: 760px; margin: 0 auto; padding: 64px 22px 90px; }
.legal h1 { font-size: clamp(34px, 6vw, 56px); }
.legal h2 { font-size: 24px; margin: 2.2em 0 .5em; }
.legal p, .legal li { color: var(--soft); font-size: 17px; }
.legal table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 16px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--ink); font-size: 14px; text-transform: uppercase; letter-spacing: .04em; }
.legal .updated { color: var(--muted); font-size: 14px; }
.legal a { color: var(--link); }
.backlink { display: inline-block; margin-bottom: 1.5rem; }
