/* ============================================================
   Ensure — Logisztikai landing
   Sötét éjkék alap, borostyán "nap" akcent (a logó napmotívuma),
   Fraunces display + Inter szövegtipó.
   Scroll-motor: CSS scroll-driven animations, GSAP fallback (main.js).
   ============================================================ */

:root {
  --bg: #070d16;
  --bg-2: #0b1624;
  --text: #e8edf4;
  --muted: #93a1b5;
  --sun: #e9b44c;
  --sun-deep: #c98f2b;
  --line: rgba(147, 161, 181, 0.18);
  --card: #101b2c;
  --dots: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Ccircle cx='28' cy='28' r='1' fill='%2393a1b5' fill-opacity='0.1'/%3E%3C/svg%3E");
  --sparks: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='224' height='224'%3E%3Ccircle cx='56' cy='168' r='1.6' fill='%23e9b44c' fill-opacity='0.18'/%3E%3Ccircle cx='180' cy='60' r='1.2' fill='%23e9b44c' fill-opacity='0.12'/%3E%3C/svg%3E");
  --display: "Fraunces", Georgia, serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --content-w: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: var(--sparks), var(--dots);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 420;
  line-height: 1.06;
  letter-spacing: -0.015em;
  margin: 0 0 1.5rem;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 5.2vw + 1rem, 6rem); }
h2 { font-size: clamp(1.9rem, 2.6vw + 1rem, 3.6rem); }

h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1rem; }
a { color: var(--sun); }

em { font-style: italic; }
h1 em, .punch em { color: var(--sun); }

img { max-width: 100%; }

.content {
  width: 100%;
  max-width: var(--content-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-width: 0;
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--sun);
  margin: 0 0 1.25rem;
}

.lead {
  font-size: clamp(1.125rem, 0.5vw + 1rem, 1.375rem);
  color: var(--text);
  max-width: 62ch;
}

.punch {
  font-family: var(--display);
  font-size: clamp(1.5rem, 1.6vw + 0.8rem, 2.4rem);
  line-height: 1.25;
  max-width: 30ch;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 1200;
  background: var(--sun);
  color: #14100a;
  padding: 0.75rem 1.25rem;
  text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- Nav ---------- */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: linear-gradient(rgba(7, 13, 22, 0.75), rgba(7, 13, 22, 0));
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--text);
}

/* A 2026-os logó fekvő (3,35 : 1), ezért szélességre méretezzük; a magasság a viewBox-ból adódik. */
.brand-logo {
  width: 150px;
  height: auto;
  color: var(--text);
  fill: currentColor;
  transition: color 0.2s;
}
.brand:hover .brand-logo,
.brand:focus-visible .brand-logo { color: var(--sun); }

.footer-logo {
  display: block;
  width: 200px;
  height: auto;
  color: var(--text);
  fill: currentColor;
  margin-bottom: 0.9rem;
}

.logo-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- Gombok ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.9rem 1.75rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.btn-solid {
  background: var(--sun);
  color: #14100a;
}
.btn-solid:hover,
.btn-solid:focus-visible { background: var(--sun-deep); }

.btn-ghost {
  border-color: rgba(232, 237, 244, 0.4);
  color: var(--text);
}
.btn-ghost:hover,
.btn-ghost:focus-visible { border-color: var(--sun); color: var(--sun); }

.btn-nav { padding: 0.65rem 1.35rem; background: var(--sun); color: #14100a; }
.btn-nav:hover, .btn-nav:focus-visible { background: var(--sun-deep); }

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

/* ---------- Hero ---------- */

.hero {
  height: 120vh;
  position: relative;
}

.stick {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: grid;
}

.stick img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
}

.shot {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(7, 13, 22, 0.55), rgba(7, 13, 22, 0.25) 40%, rgba(7, 13, 22, 0.78)),
    linear-gradient(115deg, rgba(7, 13, 22, 0.72) 20%, rgba(7, 13, 22, 0.1) 65%);
}

.hero .content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-top: 5rem;
  padding-bottom: 4rem;
}

.hero-lead {
  max-width: 56ch;
  color: rgba(232, 237, 244, 0.88);
  font-size: clamp(1rem, 0.35vw + 0.95rem, 1.25rem);
}

.hero-tag {
  font-family: var(--display);
  font-size: clamp(1.25rem, 1vw + 0.9rem, 1.9rem);
  margin: 1.75rem 0 2.25rem;
}
.hero-tag strong { color: var(--sun); font-weight: 450; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* A második hero-gomb helyett diszkrét görgetés-jelzés (max. kétféle CTA) */
.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 2.25rem;
  translate: -50% 0;
  z-index: 3;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  transition: color 0.2s;
}

.scroll-hint:hover,
.scroll-hint:focus-visible { color: var(--sun); }

.scroll-hint svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-hint svg { animation: nudge 2.4s ease-in-out infinite; }
}

@keyframes nudge {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 5px; }
}

/* ---------- Önellenőrzés (chat) ---------- */

.selfcheck {
  position: relative;
  z-index: 10;
  background-image:
    radial-gradient(120% 60% at 50% 0%, rgba(233, 180, 76, 0.06), transparent 60%),
    radial-gradient(80% 45% at 8% 95%, rgba(96, 140, 200, 0.06), transparent 65%);
}

/* Visszafogott fotó-textúra a nagy, sötét szakaszok mögé */
.selfcheck::before,
.process::before,
.solutions::before,
.faq::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-size: cover;
  background-position: center;
  opacity: 0.13;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}

.selfcheck::before { background-image: url("assets/kontenerek-felulrol.jpg"); }
.process::before { background-image: url("assets/hero-kikoto.jpg"); background-position: 50% 85%; }
.solutions::before { background-image: url("assets/kamion.jpg"); background-position: 50% 40%; }
.faq::before { background-image: url("assets/daruk.jpg"); background-position: 50% 25%; }

.selfcheck-lead {
  min-height: 58vh;
  display: grid;
  align-content: center;
  padding-top: 7rem;
}
.selfcheck-lead h2 { max-width: 27ch; }

.chat-scroll { height: 170vh; }

.chat-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  align-items: center;
}

.bubbles {
  display: grid;
  gap: 1.9rem;
}

.bubbles p {
  margin: 0;
  max-width: 34ch;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.25rem, 1.3vw + 0.8rem, 2.1rem);
  line-height: 1.3;
}

.bubbles p:nth-child(odd) { justify-self: start; }
.bubbles p:nth-child(even) {
  justify-self: end;
  text-align: right;
  color: var(--sun);
}

.selfcheck-close {
  min-height: 46vh;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 1rem;
  padding-bottom: 5rem;
}

.close-support {
  color: var(--muted);
  max-width: 54ch;
  margin: 0 0 0.75rem;
}

/* ---------- Mozi-szekciók (kép + óriás tipó) ---------- */

.cinema {
  position: relative;
  height: 140vh;
}

.cinema .stick img {
  opacity: 0.55;
}

.cinema .content {
  position: relative;
  z-index: 2;
  align-self: end;
  padding-bottom: 14vh;
}

.cinema h2 {
  font-size: clamp(2.1rem, 3.4vw + 1rem, 4.6rem);
  max-width: 18ch;
  margin: 0;
}

.loud-wrap { overflow: hidden; }

.cinema .scrim {
  background:
    linear-gradient(rgba(7, 13, 22, 0.6), rgba(7, 13, 22, 0.2) 45%, rgba(7, 13, 22, 0.85));
}

/* Szemlélet: kép nélküli állítás */

.stick.solid {
  background:
    radial-gradient(90% 70% at 75% 30%, rgba(233, 180, 76, 0.08), transparent 60%),
    var(--bg-2);
}

.method .content {
  align-self: center;
  padding-bottom: 0;
}

.giant { max-width: 16ch; }

.giant-sub {
  font-family: var(--display);
  font-size: clamp(1.6rem, 2.4vw + 0.8rem, 3.4rem);
  color: var(--sun);
  margin: 1.5rem 0 0;
}

/* ---------- Tartalmi blokkok ---------- */

.block {
  position: relative;
  z-index: 10;
  padding: clamp(4rem, 8vh, 7rem) 0;
}

.process {
  background: radial-gradient(55% 40% at 90% 5%, rgba(233, 180, 76, 0.055), transparent 65%);
}

.solutions {
  background: radial-gradient(60% 45% at 5% 10%, rgba(96, 140, 200, 0.07), transparent 65%);
}

.method-body {
  background: radial-gradient(70% 55% at 50% 0%, rgba(233, 180, 76, 0.05), transparent 65%);
}

.method-body .punch { margin-top: 2rem; max-width: 36ch; }

.block h2 { max-width: 24ch; }

/* Kártyák */

.grid-cards {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
}

.grid-6 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.5rem 1.35rem;
}

.card svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--sun);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 1rem;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* A megoldás-kártyák szövegesebbek, mint a kockázati térképé */
.solutions .card h3 { font-size: 1rem; }

/* Folyamat idővonal */

.timeline {
  list-style: none;
  counter-reset: step;
  margin: 3rem 0 0;
  padding: 0;
  position: relative;
  display: grid;
  gap: 2.25rem;
  max-width: 640px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 8px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}

.timeline li {
  counter-increment: step;
  position: relative;
  padding-left: 4.25rem;
}

.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(233, 180, 76, 0.5);
  background: var(--bg);
  color: var(--sun);
  font-family: var(--display);
  font-size: 1.15rem;
}

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

/* Kiemelt terület */

.aeo {
  margin: 2rem 0;
  padding: 1.75rem 2rem;
  border-left: 3px solid var(--sun);
  border-radius: 0 14px 14px 0;
  background: var(--card);
  max-width: 720px;
}

.aeo-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--sun);
  margin-bottom: 0.6rem;
}

.aeo p:last-child {
  margin: 0;
  font-size: 1.125rem;
}

.block > .content > p { max-width: 68ch; }

.compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 1rem;
  margin: 2.5rem 0;
}

.compare-col {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem 1.5rem;
  background: var(--card);
}
.compare-col p { margin: 0; color: var(--muted); }
.compare-col strong { color: var(--sun); }

.compare-mid {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--sun);
}

/* Kármenedzsment lista */

.checks {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  max-width: 640px;
}

.checks li {
  position: relative;
  padding: 0.55rem 0 0.55rem 2.1rem;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 18px;
  height: 10px;
  border-left: 2px solid var(--sun);
  border-bottom: 2px solid var(--sun);
  transform: rotate(-45deg) scale(0.8);
}

/* Miért az Ensure */

.why-stat {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin: 2rem 0 0;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: clamp(1.1rem, 0.7vw + 0.9rem, 1.5rem);
  color: var(--text);
  max-width: none;
}

.why-num {
  font-family: var(--display);
  font-size: clamp(2.6rem, 3vw + 1.4rem, 4.2rem);
  line-height: 0.9;
  color: var(--sun);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 2.5rem;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.why-item {
  background: var(--bg);
  padding: 1.9rem 1.7rem;
}

.why-item h3 { font-size: 1.05rem; margin-bottom: 0.65rem; }
.why-item p { margin: 0; font-size: 0.9rem; color: var(--muted); }

.why-close { margin-top: 2.75rem; max-width: 36ch; }

/* ---------- Finálé + űrlap ---------- */

.finale {
  position: relative;
  z-index: 10;
  padding: clamp(5rem, 12vh, 9rem) 0;
  overflow: hidden;
}

.finale > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}

.finale .scrim {
  background: linear-gradient(rgba(7, 13, 22, 0.92), rgba(7, 13, 22, 0.55) 45%, rgba(7, 13, 22, 0.9));
}

.finale .content { position: relative; z-index: 2; }

.finale-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.finale-text h2 { font-size: clamp(1.9rem, 2.2vw + 1rem, 3.1rem); }
.finale-text p { color: rgba(232, 237, 244, 0.85); max-width: 46ch; }

.panel {
  background: rgba(11, 22, 36, 0.95);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 2rem;
  display: grid;
  gap: 0.4rem;
}

.panel label {
  font-size: 0.8125rem;
  font-weight: 600;
  margin-top: 0.6rem;
}

.opt { color: var(--muted); font-weight: 400; }

.panel input,
.panel select,
.panel textarea {
  width: 100%;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: rgba(7, 13, 22, 0.6);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
}

.panel input:focus,
.panel select:focus,
.panel textarea:focus {
  outline: 2px solid var(--sun);
  outline-offset: 0;
  border-color: transparent;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.btn-submit {
  margin-top: 1.25rem;
  border: 0;
  justify-self: start;
}

.panel .consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 1rem;
  font-weight: 400;
  color: var(--muted);
}

.panel .consent input {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
  margin: 0.15rem 0 0;
  padding: 0;
  accent-color: var(--sun);
}

.consent a,
.form-note a { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }

/* A honeypot mező: képernyőolvasó és billentyűzet elől is rejtve. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.btn-submit:disabled { opacity: 0.6; cursor: progress; }

.form-note { margin: 0.75rem 0 0; color: var(--sun); }
.form-note[data-kind="error"] { color: #f2a7a0; }

/* ---------- GYIK ---------- */

.faq-list {
  margin-top: 2.5rem;
  max-width: 820px;
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  font-family: var(--display);
  font-size: 1.25rem;
}

.faq-list summary::-webkit-details-marker { display: none; }

.faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  translate: 0 -50%;
  font-family: var(--body);
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--sun);
  transition: rotate 0.25s;
}

.faq-list details[open] summary::after { rotate: 45deg; }

.faq-list details p {
  margin: 0 0 1.5rem;
  max-width: 70ch;
  color: var(--muted);
}

/* ---------- Lábléc ---------- */

footer {
  position: relative;
  z-index: 10;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.footer-grid p { color: var(--muted); font-size: 0.9rem; margin: 0.35rem 0; }

.footer-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text);
}

footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--sun); }

/* A „Sütibeállítások” gomb a jogi hivatkozások közt áll, ezért úgy is néz ki */
.footer-link-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: var(--muted);
  text-align: left;
  cursor: pointer;
}
.footer-link-btn:hover { color: var(--sun); }

/* Partner- és tanúsítási logók a láblécben */
.footer-logos {
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}

.footer-logos .footer-label { margin: 0 0 1.1rem; color: var(--muted); }

.footer-logos ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem 2.75rem;
}

.footer-logos img {
  display: block;
  width: auto;
  opacity: 0.72;
  transition: opacity 0.3s ease;
}

.footer-logos li img { height: 34px; }

.footer-logos img:hover { opacity: 1; }

/* A Quality Austria tanúsítási jel az eredeti, fehér hátterű változatában
   megy ki — a sötét láblécen ezért kap saját világos alapot. */
.logo-plate {
  background: #fff;
  border-radius: 6px;
  padding: 0.55rem 0.7rem;
  line-height: 0;
}

.logo-plate img { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .footer-logos img { transition: none; }
}

.copyright { margin-top: 2.5rem; }
.copyright p { color: var(--muted); font-size: 0.8rem; border-top: 1px solid var(--line); padding-top: 1.25rem; }

/* ============================================================
   Scroll-vezérelt animációk (CSS) — GSAP fallback a main.js-ben
   ============================================================ */

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {

    /* Hero: görgetésre zsugorodik és kifakul */
    .hero { view-timeline: --hero; }

    .hero .stick > * {
      animation: hero-out both linear;
      animation-timeline: --hero;
      animation-range: exit-crossing 0% exit-crossing 90%;
      transform-origin: 50% 20%;
    }

    /* Chat buborékok egyenként */
    .chat-scroll { view-timeline: --chat; }

    .bubbles p {
      animation: bubble-in both linear;
      animation-timeline: --chat;
    }
    .bubbles p:nth-child(1) { animation-range: entry 55% entry 95%; }
    .bubbles p:nth-child(2) { animation-range: contain 2% contain 20%; }
    .bubbles p:nth-child(3) { animation-range: contain 20% contain 38%; }
    .bubbles p:nth-child(4) { animation-range: contain 38% contain 56%; }

    /* Mozi-szekciók: napfelkelte-reveal + tipó maszk */
    .cinema { view-timeline: --cine; }

    .cinema .shot {
      clip-path: ellipse(220% 200% at 50% 300%);
      animation: sunrise both linear;
      animation-timeline: --cine;
      animation-range: entry 35% contain 25%;
    }

    .cinema .stick img {
      animation: settle both linear;
      animation-timeline: --cine;
      animation-range: entry 35% contain 60%;
    }

    .loud-wrap h2 {
      animation: rise-up both linear;
      animation-timeline: --cine;
      animation-range: entry 75% contain 30%;
    }

    .cinema .eyebrow {
      animation: fade-in both linear;
      animation-timeline: --cine;
      animation-range: entry 88% contain 35%;
    }

    /* Szemlélet: állítás két ütemben */
    .method .giant {
      animation: rise-fade both linear;
      animation-timeline: --cine;
      animation-range: entry 70% contain 20%;
    }
    .method .giant-sub {
      animation: rise-fade both linear;
      animation-timeline: --cine;
      animation-range: contain 5% contain 40%;
    }

    /* Tartalmi elemek belépése */
    .reveal {
      animation: rise-fade both linear;
      animation-timeline: view();
      animation-range: entry 5% entry 40%;
    }

    /* Idővonal vonala kirajzolódik */
    .timeline::before {
      transform-origin: top;
      animation: draw both linear;
      animation-timeline: view();
      animation-range: entry 0% cover 60%;
    }
  }
}

@keyframes hero-out {
  to {
    scale: 0.92;
    translate: 0 -6%;
    opacity: 0;
  }
}

@keyframes bubble-in {
  from {
    opacity: 0;
    translate: 0 60%;
  }
}

@keyframes sunrise {
  to { clip-path: ellipse(220% 200% at 50% 165%); }
}

@keyframes settle {
  from { scale: 1.18; }
}

@keyframes rise-up {
  from { translate: 0 110%; }
}

@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes rise-fade {
  from {
    opacity: 0;
    translate: 0 2.5rem;
  }
}

@keyframes draw {
  from { scale: 1 0; }
}

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

/* ---------- Reszponzív ---------- */

@media (max-width: 1024px) {
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .finale-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}

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

@media (max-width: 640px) {
  body { font-size: 1rem; }

  /* A mobil böngészők változó magasságú címsora miatt svh, nem vh */
  .stick, .chat-sticky { height: 100svh; }
  .hero { height: 105svh; }
  .cinema { height: 125svh; }
  .chat-scroll { height: 150svh; }
  .selfcheck-lead { min-height: 52svh; padding-top: 6rem; }
  .selfcheck-close { min-height: auto; padding: 2rem 0 4rem; }

  .grid-6, .why-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logos ul { gap: 1.35rem 2rem; }
  .footer-logos li img { height: 28px; }
  .logo-plate { padding: 0.45rem 0.6rem; }
  .compare { grid-template-columns: 1fr; }
  .compare-mid { padding: 0.25rem 0; }

  .content { padding: 0 1.15rem; }
  .block { padding: clamp(3rem, 6vh, 4.5rem) 0; }

  .cta-row .btn { width: 100%; text-align: center; }
  .btn { padding: 0.85rem 1.5rem; }
  .btn-nav { padding: 0.6rem 0.95rem; font-size: 0.8rem; white-space: nowrap; }
  .brand-logo { width: 112px; }
  nav { padding: 0.7rem 1.15rem; }

  .hero .content { padding-top: 4.5rem; padding-bottom: 5.5rem; }
  /* Mobilon a felirat két sorba törne — csak a nyíl marad */
  .scroll-hint { bottom: 1.1rem; }
  .scroll-hint span { display: none; }

  /* A buborékok mobilon egy oszlopban, azonos oldalon olvashatóbbak */
  .bubbles { gap: 1.35rem; }
  .bubbles p { max-width: 100%; }
  .bubbles p:nth-child(even) { justify-self: start; text-align: left; }

  .timeline li { padding-left: 3.4rem; }
  .timeline li::before { width: 36px; height: 36px; font-size: 1rem; }
  .timeline::before { left: 17px; }
  .timeline { gap: 1.9rem; }

  .aeo { padding: 1.35rem 1.25rem; border-radius: 0 12px 12px 0; }
  .why-item { padding: 1.5rem 1.35rem; }
  .why-stat { padding-bottom: 1.75rem; }
  .panel { padding: 1.4rem; }
  .btn-submit { justify-self: stretch; text-align: center; }
  .faq-list summary { font-size: 1.1rem; padding-right: 2.5rem; }
}

@media (max-width: 400px) {
  .btn-nav { font-size: 0.72rem; padding: 0.55rem 0.8rem; }
  .brand-logo { width: 96px; }
}

/* ---------- Jogi oldal (sütitájékoztató) ---------- */

.legal {
  padding: 8.5rem 0 5rem;
}

.legal h1 {
  font-size: clamp(2.1rem, 3.2vw + 1rem, 3.4rem);
  margin-bottom: 0.75rem;
}

.legal h2 {
  font-size: clamp(1.25rem, 0.8vw + 1rem, 1.6rem);
  margin: 2.75rem 0 0.9rem;
}

.legal-meta {
  color: var(--sun);
  font-size: 0.9375rem;
  margin: 0 0 2.5rem;
}

.legal-body {
  max-width: 820px;
}

.legal-body p,
.legal-body li { color: var(--muted); }

.legal-body strong { color: var(--text); font-weight: 600; }

.legal-body ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-body li { margin-bottom: 0.6rem; }

/* A táblázat mobilon vízszintesen görgethető, de a sorok együtt maradnak */
.legal-table {
  overflow-x: auto;
  margin: 0 0 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.legal-table table {
  width: 100%;
  min-width: 34rem;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.legal-table tbody tr:last-child td { border-bottom: 0; }

.legal-table th {
  color: var(--text);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.legal-table td { color: var(--muted); }

.legal-table code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85em;
  color: var(--text);
}

@media (max-width: 640px) {
  .legal { padding: 6.5rem 0 3.5rem; }
  .legal-table table { min-width: 30rem; }
}
