/* ============================================================
   landing.css — szülőknek szóló nyitóoldal (index.html)
   A design-tokeneket az app.css :root blokkjából örökli.
   Az app.css után töltődik be, így felülír, ahol kell.
   ============================================================ */

.landing-body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--ink);
  background: linear-gradient(180deg, #fffdf8 0%, #fdf5e6 42%, #f4eefe 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.landing-body::before { opacity: 0.35; }   /* halványabb papírszemcse */

.landing-body h1, .landing-body h2, .landing-body h3 {
  font-family: var(--font-head);
  font-weight: 700;
  margin: 0;
}
.landing-body p { margin: 0 0 var(--sp-2); line-height: 1.62; }
.landing-body a:not(.btn) { color: inherit; }
/* a lila gombokon MINDIG világos (papír-bézs) a felirat */
.landing-body .btn-primary,
.landing-body .btn-primary:visited,
.landing-body .btn-primary:hover { color: var(--paper); }

/* ---------------- fejléc ---------------- */
.ld-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-2);
  max-width: 1200px; margin: 0 auto;
  padding: 12px 20px;
  background: rgba(255, 253, 248, 0.82);
  backdrop-filter: blur(10px);
  border-bottom-left-radius: var(--r-card);
  border-bottom-right-radius: var(--r-card);
}
@supports not (backdrop-filter: blur(4px)) { .ld-header { background: rgba(255, 253, 248, 0.97); } }
.ld-header::after {
  content: ''; position: absolute; left: 20px; right: 20px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(124, 95, 211, 0.22), transparent);
}
.ld-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; overflow: hidden; }
.ld-logo {
  height: 84px; width: auto; display: block; flex: 0 0 auto;
  transition: transform var(--t-hover) var(--ease);
}
.ld-brand:hover .ld-logo { transform: scale(1.05) rotate(-2deg); }
.ld-brand-slogan {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(19px, 2.4vw, 26px);
  color: var(--pink); white-space: nowrap;
}
.ld-nav { display: flex; align-items: center; gap: var(--sp-1); flex: 0 0 auto; }
.ld-nav .btn { text-decoration: none; }
.ld-nav-cta { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 24px; font-size: 17px; }

/* ---------------- hero ---------------- */
.ld-hero {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: var(--sp-6) 20px var(--sp-4);
}
.ld-hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  align-items: center; gap: var(--sp-4);
  /* a hero szövege egy vonalban a szekciókártyák tartalmával */
  padding-inline: var(--sp-4);
}
.ld-title {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  letter-spacing: 0.5px;
  background: linear-gradient(180deg, #8a6ff0, #5b4a9e);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  margin-bottom: var(--sp-2);
}
.ld-tagline {
  font-family: var(--font-head); font-weight: 700;
  font-size: clamp(22px, 3.2vw, 32px);
  color: var(--pink);
  margin: 0 0 var(--sp-2);
}
.ld-lead {
  font-size: 18px; line-height: 1.65;
  color: var(--text-slate);
  max-width: 56ch;
  font-weight: 600;
}
.ld-cta-row { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
/* minden CTA körül AZONOS a térköz fent és lent */
.ld-cta-row, .ld-try .ld-cta, .ld-contact-btn { margin-top: var(--sp-3); margin-bottom: var(--sp-3); }
.ld-cta {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; min-height: 56px; font-size: 20px; padding: 15px 34px;
}
.ld-cta.big { min-height: 64px; font-size: 22px; padding: 18px 44px; }
.ld-note { margin-top: 0; font-size: 15px; color: var(--ink-soft); font-weight: 600; }

.ld-hero-art { display: flex; justify-content: center; }
.ld-mia {
  width: min(100%, 340px); height: auto; display: block;
  filter: drop-shadow(0 14px 26px rgba(90, 70, 150, 0.18));
  animation: ldFloat 6s ease-in-out infinite;
}
@keyframes ldFloat {
  0%, 100% { transform: translateY(0) rotate(-1.5deg); }
  50%      { transform: translateY(-14px) rotate(1.5deg); }
}

/* ---------------- szekciók ---------------- */
.ld-main { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 20px var(--sp-8); }

.ld-section {
  background: linear-gradient(180deg, var(--surface), var(--surface-2));
  border: 1.5px solid rgba(51, 65, 81, 0.08);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-soft);
  padding: var(--sp-4);
  margin: 0 0 var(--sp-3);
  max-width: 100%;
}
/* a .landing-body h1,h2,h3 { margin: 0 } miatt itt is kell a .landing-body */
.landing-body .ld-h2 {
  font-size: clamp(26px, 3.4vw, 36px);
  line-height: 1.18;
  color: var(--primary-dark);
  margin: 0 0 var(--sp-3);      /* egységes, nagyobb térköz MINDEN címsor után */
}
.landing-body .ld-game h3 { margin: 0 0 var(--sp-1); }
.landing-body .ld-list-title { margin-bottom: var(--sp-2) !important; }
.landing-body .ld-foot-brand { margin: 6px 0 2px; }
.ld-section p { color: var(--text-slate); font-size: 17px; }
.ld-sub { font-size: 18px !important; color: var(--ink-soft) !important; }

/* kiemelt mondat: nincs doboz és nincs lila háttér — csak tipográfia */
.landing-body .ld-pull {
  margin: var(--sp-3) 0 var(--sp-3) !important;
  padding: 0;
  font-family: var(--font-head); font-weight: 700;
  font-size: 20px; line-height: 1.45;
  color: var(--primary-dark) !important;
  max-width: 56ch;
}
.landing-body .ld-pull.big { font-size: 23px; }
.ld-price .ld-pull, .ld-try .ld-pull { margin-left: auto; margin-right: auto; }

/* ---------------- játékkártyák ---------------- */
.ld-games {
  display: grid; gap: var(--sp-2);
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin: var(--sp-3) 0 var(--sp-2);
}
/* széles képernyőn mind az 5 játék egy sorban */
@media (min-width: 1060px) { .ld-games { grid-template-columns: repeat(5, 1fr); } }
.ld-game {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: var(--sp-1);
  padding: var(--sp-3) var(--sp-2);
  background: #fff;
  border: 1.5px solid rgba(124, 95, 211, 0.14);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  transition: transform var(--t-hover) var(--ease), box-shadow var(--t-hover) var(--ease);
}
.ld-game:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.ld-game-ico { width: 82px; height: 82px; object-fit: contain; }
.ld-game h3 { font-size: 20px; color: var(--primary-dark); }
.ld-game p { font-size: 15.5px; margin: 0; color: var(--text-slate); }
.ld-foot-note { font-style: italic; color: var(--ink-soft) !important; margin: 0 !important; }

/* ---------------- lépések ---------------- */
.ld-steps { list-style: none; padding: 0; margin: var(--sp-3) 0; display: grid; gap: 10px; }
.ld-steps li {
  display: flex; align-items: center; gap: var(--sp-2);
  padding: 6px 0;
  font-size: 17px; color: var(--text-slate);
}
.ld-step-n {
  flex: 0 0 auto;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #8a6ff0, #6b4fc0);
  color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 17px;
}
.ld-flow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px; margin-top: var(--sp-3);
}
.ld-flow-item {
  background: #fff;
  border: 1.5px solid rgba(124, 95, 211, 0.22);
  border-radius: var(--r-badge);
  padding: 8px 16px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  color: var(--primary-dark);
  box-shadow: var(--shadow-soft);
}
.ld-flow-arrow { color: var(--ink-soft); font-weight: 800; }

/* ---------------- kétoszlopos szekció ---------------- */
.ld-split { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: var(--sp-4); align-items: center; }
.ld-split-art { display: flex; justify-content: center; }
.ld-split-art img {
  width: min(100%, 270px); height: auto;
  filter: drop-shadow(0 12px 22px rgba(90, 70, 150, 0.16));
  animation: ldFloat 7s ease-in-out infinite;
}

/* ---------------- tudomány ---------------- */
.ld-sci { background: linear-gradient(180deg, #f2f9ff, #eaf3fd); border-color: rgba(90, 155, 216, 0.18); }
.ld-list-title { font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--primary-dark); margin-bottom: 10px !important; }
.ld-list { margin: 0 0 var(--sp-2); padding: 0; list-style: none; display: grid; gap: 8px; }
.ld-list li {
  position: relative; padding-left: 30px;
  font-size: 17px; color: var(--text-slate); line-height: 1.55;
}
.ld-list li::before {
  content: ''; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px;
  background: url('../assets/ui/check.webp') center/contain no-repeat;
}
.ld-disclaimer { font-size: 15px !important; color: var(--ink-soft) !important; font-style: italic; margin: 0 !important; }

/* ---------------- záró CTA ---------------- */
.ld-try {
  text-align: center;
  background: linear-gradient(180deg, #efe8ff, #fde9f0);
  border: 1.5px solid rgba(124, 95, 211, 0.18);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-soft);
  padding: var(--sp-6) var(--sp-3);
  margin: var(--sp-4) 0 var(--sp-3);
}
.ld-try-mia {
  width: 170px; height: auto; display: block; margin: 0 auto var(--sp-2);
  filter: drop-shadow(0 10px 20px rgba(90, 70, 150, 0.18));
  animation: ldFloat 5.5s ease-in-out infinite;
}
.ld-try p { color: var(--text-slate); font-size: 18px; max-width: 58ch; margin-left: auto; margin-right: auto; }

/* ---------------- kapcsolat ---------------- */
.ld-contact { text-align: center; }
.ld-contact p { max-width: 62ch; margin-left: auto; margin-right: auto; }
.ld-contact-btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  background: #fff; color: var(--primary-dark);
  border: 1.5px solid rgba(124, 95, 211, 0.3);
}

/* ---------------- lábléc ---------------- */
.ld-footer {
  position: relative; z-index: 1;
  text-align: center;
  padding: var(--sp-4) 20px var(--sp-6);
  border-top: 1px solid rgba(124, 95, 211, 0.16);
  max-width: 1200px; margin: 0 auto;
}
.ld-foot-logo { width: 46px; height: auto; opacity: 0.85; }
.ld-foot-brand { font-family: var(--font-head); font-weight: 700; font-size: 24px; color: var(--primary-dark); margin: 6px 0 2px !important; }
.ld-foot-tagline { color: var(--pink); font-weight: 700; margin: 0 0 var(--sp-2) !important; }
.ld-foot-rights { font-size: 14px; color: var(--ink-soft); margin: 0 !important; }

/* ---------------- megjelenési animáció ---------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- reszponzív ---------------- */
@media (max-width: 900px) {
  .ld-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .ld-hero-text { display: flex; flex-direction: column; align-items: center; }
  .ld-lead { max-width: 100%; }
  .ld-hero-art { order: -1; }
  .ld-mia { width: min(72%, 250px); }
  .ld-split { grid-template-columns: 1fr; }
  .ld-split-art { order: -1; }
}
@media (max-width: 760px) {
  /* keskeny fejlécben a nagy cicafej marad, a szlogen viszont nem fér el */
  .ld-brand-slogan { display: none; }
}
@media (max-width: 640px) {
  .ld-header { padding: 10px 14px; }
  .ld-logo { height: 62px; }
  .ld-nav-cta { padding: 10px 16px; font-size: 15px; min-height: 44px; }
  .ld-hero { padding-top: var(--sp-3); }
  .ld-hero-inner { padding-inline: var(--sp-2); }
  .ld-main { padding-left: 14px; padding-right: 14px; }
  .ld-section { padding: var(--sp-3) var(--sp-2); border-radius: var(--r-card); }
  .ld-section p, .ld-steps li, .ld-list li { font-size: 16px; }
  .ld-games { grid-template-columns: 1fr 1fr; }
  .ld-game-ico { width: 64px; height: 64px; }
  .ld-game h3 { font-size: 17px; }
  .ld-game p { font-size: 14px; }
  .ld-try { padding: var(--sp-4) var(--sp-2); }
  .ld-cta.big { font-size: 19px; padding: 16px 26px; }
}
@media (max-width: 380px) {
  .ld-games { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .ld-mia, .ld-split-art img, .ld-try-mia { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}


/* ---------------- szülői felület ---------------- */
.ld-nav-parents { text-decoration: none; }
.ld-try-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); }
.ld-try-parents { background: #fff; color: var(--primary-dark); border: 1.5px solid rgba(124, 95, 211, 0.3); }

.pa-main { padding-top: var(--sp-4); }
.pa-privacy { font-size: 15px !important; color: var(--ink-soft) !important; font-style: italic; }

.pa-players { display: grid; gap: var(--sp-2); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-bottom: var(--sp-3); }
.pa-none { color: var(--ink-soft) !important; font-style: italic; }
.pa-card {
  background: #fff;
  border: 1.5px solid rgba(124, 95, 211, 0.16);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-soft);
  padding: var(--sp-3);
}
.pa-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--sp-2); }
.pa-card-ico { width: 62px; height: 62px; object-fit: contain; flex: 0 0 auto; }
.landing-body .pa-card h3 { font-size: 22px; color: var(--primary-dark); margin: 0 0 2px; }
.pa-sub { font-size: 14.5px !important; color: var(--ink-soft) !important; margin: 0 0 6px !important; }
.pa-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--sp-1); }
.pa-badges span {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(124, 95, 211, 0.08); border-radius: var(--r-badge);
  padding: 5px 12px; font-size: 14px; color: var(--text-slate);
}
.pa-badges img { width: 18px; height: 18px; object-fit: contain; }
.landing-body .pa-prog-title {
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  color: var(--primary-dark); margin: var(--sp-2) 0 6px;
}
.pa-progress { list-style: none; margin: 0 0 var(--sp-2); padding: 0; display: grid; gap: 4px; }
.pa-progress li {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 15px; color: var(--text-slate);
  border-bottom: 1px dashed rgba(124, 95, 211, 0.18); padding: 4px 0;
}
.pa-progress b { color: var(--primary-dark); white-space: nowrap; }
.pa-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--sp-2); }
.pa-card-actions .btn { text-decoration: none; }
.pa-enter { min-height: 44px; padding: 10px 20px; font-size: 16px; }
.pa-add { margin-top: 0; }

.pa-field { display: block; margin-bottom: var(--sp-2); }
.pa-field span, .pa-field-label {
  display: block; font-family: var(--font-head); font-weight: 700;
  font-size: 16px; color: var(--primary-dark); margin-bottom: 6px;
}
.pa-field input {
  width: 100%; max-width: 360px;
  font-family: var(--font-body); font-size: 18px; font-weight: 600;
  padding: 12px 16px; border-radius: var(--r-btn);
  border: 1.5px solid rgba(124, 95, 211, 0.3);
  background: #fff; color: var(--ink);
}
.pa-field input:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.pa-icons { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--sp-3); }
.pa-icon {
  width: 62px; height: 62px; display: grid; place-items: center;
  background: #fff; border: 2px solid rgba(124, 95, 211, 0.18);
  border-radius: var(--r-card); cursor: pointer;
  transition: transform var(--t-hover) var(--ease), border-color var(--t-hover) var(--ease);
}
.pa-icon img { width: 44px; height: 44px; object-fit: contain; }
.pa-icon:hover { transform: translateY(-2px); }
.pa-icon.sel { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(124, 95, 211, 0.14); }
.pa-edit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pa-danger { color: #c0564f; border-color: rgba(192, 86, 79, 0.35); background: #fff6f5; }

@media (max-width: 640px) {
  .pa-players { grid-template-columns: 1fr; }
  .pa-card-ico { width: 52px; height: 52px; }
  .ld-nav-parents { display: none; }   /* mobilon a lap alján érhető el */
}

/* ---------------- apa–lánya megjegyzés a „Miért készült” végén ---------------- */
.landing-body .ld-indie {
  margin-top: var(--sp-3) !important;
  padding-top: var(--sp-3);
  border-top: 1.5px dashed rgba(120, 105, 90, 0.22);
  font-size: 16.5px !important;
  color: var(--ink-soft) !important;
  max-width: 62ch;
}

/* ---------------- díjazás ---------------- */
.ld-price { text-align: center; }
.ld-price p { max-width: 62ch; margin-left: auto; margin-right: auto; }
.ld-price-badge {
  display: inline-block;
  margin: 0 auto var(--sp-3) !important;
  padding: 7px 20px;
  border-radius: var(--r-badge);
  background: #eaf7ee;
  border: 1.5px solid rgba(84, 168, 112, 0.34);
  color: #3f7f57 !important;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
}
.ld-nav-login { font-weight: 800; }
@media (max-width: 720px) {
  .ld-nav-price { display: none; }
}
/* keskeny telefonon a cicafej sose tűnjön el a gombok miatt */
@media (max-width: 480px) {
  .ld-brand { flex: 0 0 auto; }
  .ld-logo { height: 46px; }
  .ld-header { padding: 8px 10px; gap: 8px; }
  .ld-nav { gap: 5px; }
  .ld-nav .btn-nav { padding: 8px 11px; font-size: 14px; min-height: 40px; }
  .ld-nav-cta { padding: 9px 13px; font-size: 14px; min-height: 40px; }
}
@media (max-width: 400px) {
  .ld-logo { height: 40px; }
  .ld-nav .btn-nav { padding: 7px 9px; font-size: 13px; }
  .ld-nav-cta { padding: 8px 11px; font-size: 13px; }
}

/* v68: a real mobile disclosure, no clipped registration button. */
.ld-menu-toggle{display:none}
@media(max-width:760px){.ld-header{flex-wrap:wrap;max-width:100%;box-sizing:border-box}.ld-menu-toggle{display:inline-flex;margin-left:auto;min-height:44px}.ld-header .ld-nav{display:none;flex:0 0 100%;min-width:0;flex-direction:column;align-items:stretch;padding:8px 0}.ld-header .ld-nav.is-open{display:flex}.ld-nav .btn{width:100%;box-sizing:border-box;white-space:normal}.ld-nav .ld-nav-price{display:flex}}
