:root {
  --graphite: #0c0d0e;
  --paper: #f4f4f1;
  --ink: #121314;
  --line: #d9dad6;
  --grey: #6b6e72;
  --accent: #e5482b;

  --display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  font-family: var(--body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

a { color: inherit; }
a:focus-visible,
.reviews__track:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.wrap { max-width: var(--max); margin-inline: auto; }
.section { padding: clamp(72px, 12vw, 160px) var(--pad); }
.section h2 { font-size: clamp(44px, 7vw, 104px); }

/* ---------- Gomb ---------- */
.btn {
  display: inline-block;
  padding: 1.05rem 2rem;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background-color 0.25s ease;
}
.btn:hover { background: var(--accent); }
.btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 4px; }

/* ================= 1. HERO ================= */
.hero {
  position: relative;
  background: var(--graphite);
  color: #fff;
}
.stage { position: relative; }

.scene {
  position: relative;
  height: 70svh;
  overflow: hidden;
  background: #000;
}
.scene video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 50%;
  will-change: transform;
}
.shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.12));
}

.topbar {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 20px) calc(var(--pad) + env(safe-area-inset-right)) 0 calc(var(--pad) + env(safe-area-inset-left));
}
.logo {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.625rem;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.topbar__dl {
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.topbar__dl:hover { border-bottom-color: #fff; }
.topbar a:focus-visible { outline-color: #fff; }

.hint, .progress { display: none; }

.copies {
  padding: clamp(48px, 8vw, 96px) var(--pad);
  display: grid;
  gap: clamp(36px, 6vw, 64px);
}
.copy {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.01em;
  text-wrap: balance;
  max-width: 900px;
}
.copy--cta p { font-size: inherit; }
.copy--cta .btn { margin-top: clamp(24px, 3vw, 40px); }

/* --- Görgetéses változat (csak ha nincs reduced-motion) --- */
.fx .hero { height: 1000vh; height: 1000svh; }
.fx .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.fx .scenes, .fx .scene { position: absolute; inset: 0; }
.fx .scene { height: auto; background-size: cover; background-position: 50% 50%; }
.fx .scene video { opacity: 0; transition: opacity 0.2s ease; }
.fx .scene video.is-ready { opacity: 1; }
.fx .scene:not(:first-child) { opacity: 0; }

.fx .copies {
  position: absolute;
  inset: 0;
  z-index: 3;
  padding: 0;
  display: block;
  pointer-events: none;
}
.fx .copy {
  position: absolute;
  left: calc(var(--pad) + env(safe-area-inset-left));
  right: var(--pad);
  bottom: calc(var(--pad) + env(safe-area-inset-bottom) + 12px);
  opacity: 0;
  will-change: transform, opacity;
}
.fx .copy--cta.is-active { pointer-events: auto; }

.fx .hint {
  display: block;
  position: absolute;
  z-index: 4;
  top: calc(env(safe-area-inset-top) + 76px);
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: rgba(255, 255, 255, 0.5);
  transition: opacity 0.4s ease;
}
.fx .hint.is-gone { opacity: 0; }

.fx .progress {
  display: block;
  position: absolute;
  z-index: 6;
  inset: auto 0 0 0;
  height: 3px;
}
.fx .progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

@media (max-width: 699px) {
  .shade {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0) 60%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.12));
  }
  .logo { font-size: 1.375rem; }
}

/* ================= 2–3. CSEMPÉS (bento) RÁCS ================= */
.fit h2 {
  font-weight: 700;
  font-size: clamp(56px, 10vw, 148px);
  line-height: 0.95;
  max-width: 10ch;
}
.life { background: var(--graphite); color: var(--paper); }
.life h2 {
  font-weight: 700;
  font-size: clamp(52px, 8.5vw, 124px);
  line-height: 0.95;
  max-width: 13ch;
}

.bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: clamp(40px, 6vw, 88px);
}
.tile {
  position: relative;
  isolation: isolate;
  min-height: 440px;
  border-radius: clamp(22px, 2.6vw, 34px);
  overflow: hidden;
  background: #1a1b1d;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0) 62%);
}
.tile:hover img { transform: scale(1.035); }

/* Szöveg a csempén */
.tile > p,
.tile__text {
  width: 100%;
  padding: clamp(22px, 2.6vw, 40px);
}
.bento--fit .tile > p {
  max-width: 26ch;
  font-size: clamp(1.4rem, 2.5vw, 2.1rem);
  font-weight: 500;
  line-height: 1.22;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.tile__text h3 {
  font-weight: 700;
  font-size: clamp(36px, 4vw, 60px);
  line-height: 1;
}
.tile__text p {
  margin-top: 10px;
  max-width: 28ch;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
}
.tile--closer { align-items: flex-end; }
.tile--closer::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.05) 75%);
}
.tile--closer > p {
  max-width: 11ch;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(48px, 6.4vw, 104px);
  line-height: 0.95;
  text-wrap: balance;
}

/* Asztali elrendezés: váltakozó széles/keskeny csempék */
@media (min-width: 900px) {
  .bento {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: clamp(420px, 34vw, 540px);
    gap: 18px;
  }
  .tile { min-height: 0; }
  .tile--a { grid-column: span 7; }
  .tile--b { grid-column: span 5; }
  .tile--c { grid-column: span 5; }
  .tile--d { grid-column: span 7; }
}
@media (max-width: 899px) {
  .tile { min-height: 0; aspect-ratio: 4 / 5; }
}

/* ================= 4. AZ APP ================= */
.app { border-top: 1px solid var(--line); }
.app__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 20px;
  margin-top: clamp(40px, 6vw, 80px);
}
@media (min-width: 900px) { .app__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

.phone {
  position: relative;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 9 / 17;
  border: 6px solid var(--graphite);
  border-radius: clamp(22px, 3vw, 32px);
  background: #e7e8e4;
  overflow: hidden;
}
.phone::before {
  content: attr(data-ph);
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.8125rem;
  color: var(--grey);
}
.phone img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.phone img.is-missing { display: none; }

.app .num {
  display: block;
  margin-top: 20px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.375rem;
  color: var(--grey);
}
.app h3 { margin-top: 4px; font-size: clamp(24px, 2.2vw, 32px); line-height: 1.05; }
.app li p { margin-top: 8px; color: var(--grey); font-size: 1rem; line-height: 1.5; }

/* ================= 5. VÉLEMÉNYEK ================= */
.reviews { border-top: 1px solid var(--line); padding-inline: 0; }
.reviews .wrap { padding-inline: var(--pad); }
.reviews__track {
  display: flex;
  gap: 20px;
  margin-top: clamp(40px, 6vw, 72px);
  padding: 4px max(var(--pad), calc((100% - var(--max)) / 2)) 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: max(var(--pad), calc((100% - var(--max)) / 2));
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}
.review {
  flex: 0 0 min(380px, 82vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 280px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 2px;
}
.review blockquote { font-size: 1.25rem; line-height: 1.5; }
.review figcaption { font-size: 0.9375rem; color: var(--grey); }
.review strong { font-weight: 400; color: var(--ink); }

/* ================= LÁBLÉC ================= */
.footer {
  background: var(--graphite);
  color: var(--paper);
  padding: clamp(80px, 12vw, 160px) var(--pad) calc(32px + env(safe-area-inset-bottom));
}
.footer h2 {
  font-size: clamp(56px, 12vw, 180px);
  margin-bottom: clamp(32px, 4vw, 56px);
}
.footer__note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: clamp(80px, 12vw, 160px);
  padding-top: 24px;
  border-top: 1px solid rgba(244, 244, 241, 0.16);
  font-size: 0.875rem;
  color: rgba(244, 244, 241, 0.6);
}

/* ================= Reduced motion ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .tile img { transition: none; }
  .tile:hover img { transform: none; }
}

/* ================= Jogi oldalak (ÁSZF, adatvédelem) ================= */
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__legal a,
.legal-foot nav a { color: inherit; text-underline-offset: 3px; }
.footer__legal a:hover,
.legal-foot nav a:hover { color: var(--paper); }
.footer__legal a:focus-visible { outline-color: var(--paper); }

.legal-page { background: var(--paper); }
.legal-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: calc(env(safe-area-inset-top) + 20px) calc(var(--pad) + env(safe-area-inset-right)) 20px calc(var(--pad) + env(safe-area-inset-left));
  background: var(--graphite);
  color: #fff;
}
.legal-bar__back {
  font-size: 0.9375rem;
  font-weight: 400;
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}
.legal-bar a:focus-visible { outline-color: #fff; }

.legal { padding: clamp(56px, 9vw, 120px) var(--pad); }
.legal__wrap { max-width: 760px; margin-inline: auto; }
.legal h1 { font-size: clamp(44px, 7vw, 88px); }
.legal__meta { margin-top: 16px; color: var(--grey); font-size: 0.9375rem; }
.legal__body { margin-top: clamp(36px, 5vw, 64px); padding-top: 32px; border-top: 1px solid var(--line); }
.legal__body h2 { margin: 2.2em 0 0.6em; font-size: clamp(28px, 3.4vw, 40px); }
.legal__body h3 { margin: 1.8em 0 0.5em; font-size: clamp(22px, 2.4vw, 28px); }
.legal__body p, .legal__body li { line-height: 1.7; }
.legal__body p { margin-top: 1em; }
.legal__body ul, .legal__body ol { margin: 1em 0 0 1.25em; list-style: revert; }
.legal__body li + li { margin-top: 0.4em; }
.legal__body a { text-underline-offset: 3px; }
.legal__body > :first-child { margin-top: 0; }
.legal__placeholder { color: var(--grey); }

.legal-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 24px var(--pad) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
  color: var(--grey);
}
.legal-foot p { display: flex; gap: 16px; }
.legal-foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.legal-foot a[aria-current="page"] { color: var(--ink); }
.legal-foot a:hover { color: var(--ink); }
