/* ==========================================================================
   Esti Mesék AI, bedtimestories.hu
   Design tokens átvéve az iOS appból (AppColors, AppFonts, AppSpacing).
   ========================================================================== */

/* ---------- Fontok ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/PlusJakartaSans-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokenek ---------- */
:root {
  --bg: #0c0d1b;
  --card: #16182c;
  --card-alt: #111223;
  --primary: #9093ff;
  --grad-start: #9093ff;
  --grad-end: #6265f5;
  --gold: #ffe396;
  --teal: #66d9cc;
  --text: #e4e3ff;
  --muted: #a7a8ca;
  --track: #21233e;
  --btn-ink: #090079;

  --t-animals: #8f94ff;
  --t-princess: #ff99bf;
  --t-space: #6699ff;
  --t-build: #ffb34d;
  --t-zoo: #66d98c;
  --t-magic: #bf8cff;
  --t-hero: #ff5959;
  --t-ocean: #66d9cc;

  --line: rgba(228, 227, 255, 0.08);
  --line-strong: rgba(228, 227, 255, 0.16);

  --r-sm: 16px;
  --r-md: 24px;
  --r-lg: 32px;
  --r-xl: 44px;
  --pill: 999px;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --shell: 1160px;
  --header-h: 68px;
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
}

/* ---------- Alap ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--primary);
  text-decoration: none;
}
a:hover {
  color: var(--gold);
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.022em;
  color: #fff;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.35rem, 7vw, 3.9rem);
}
h2 {
  font-size: clamp(1.7rem, 4.4vw, 2.45rem);
}
h3 {
  font-size: clamp(1.2rem, 2.7vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.012em;
}
h4 {
  font-size: 1.05rem;
  font-weight: 700;
}
p {
  margin: 0 0 1.1em;
  color: var(--muted);
}
strong {
  color: var(--text);
  font-weight: 700;
}
ul,
ol {
  margin: 0 0 1.2em;
  padding-left: 1.1em;
  color: var(--muted);
}
li {
  margin-bottom: 0.55em;
}
::selection {
  background: rgba(144, 147, 255, 0.35);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 6px;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 22px;
}
/* Szűk szövegoszlop. Alapból balra igazodik, a főcímek alá. */
.narrow {
  max-width: 760px;
}
.narrow.mid {
  margin: 0 auto;
}
.cta .lead {
  margin-left: auto;
  margin-right: auto;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  z-index: 200;
}
.skip:focus {
  left: 16px;
  top: 12px;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Éjszakai háttér ---------- */
.sky {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
}
.orb-1 {
  width: 62vw;
  height: 62vw;
  top: -22vw;
  left: -16vw;
  background: rgba(144, 147, 255, 0.16);
}
.orb-2 {
  width: 54vw;
  height: 54vw;
  top: 44vh;
  right: -18vw;
  background: rgba(102, 217, 204, 0.07);
}
.orb-3 {
  width: 40vw;
  height: 40vw;
  bottom: -12vw;
  left: 18vw;
  background: rgba(255, 227, 150, 0.05);
}
.stars {
  position: absolute;
  inset: 0;
  opacity: 0.75;
}
.stars i {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #fff;
  opacity: 0.35;
  animation: twinkle 5s ease-in-out infinite;
}
.stars i.lg {
  width: 3px;
  height: 3px;
  background: var(--gold);
  opacity: 0.5;
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.7;
  }
}

/* ---------- Fejléc ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.header.is-scrolled {
  background: rgba(12, 13, 27, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.header-in {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: var(--s-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
  flex: 0 0 auto;
}
.brand:hover {
  color: #fff;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(9, 0, 121, 0.5);
}
.brand .ai {
  color: var(--gold);
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--pill);
  white-space: nowrap;
}
.nav a:hover {
  color: #fff;
  background: rgba(228, 227, 255, 0.06);
}
.nav a[aria-current="page"] {
  color: #fff;
  background: rgba(144, 147, 255, 0.14);
}
.header .btn {
  flex: 0 0 auto;
}
.burger {
  margin-left: auto;
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: rgba(22, 24, 44, 0.7);
  color: #fff;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.burger span::before {
  top: -6px;
}
.burger span::after {
  top: 6px;
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(9, 10, 22, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px 22px 120px;
  overflow-y: auto;
}
.mobile-menu.is-open {
  display: block;
}
.mobile-menu .mm-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.mobile-menu nav {
  display: grid;
  gap: 2px;
  margin-top: var(--s-4);
}
.mobile-menu nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  padding: 15px 4px;
  border-bottom: 1px solid var(--line);
}
.mobile-menu nav a span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
}
.mm-close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(22, 24, 44, 0.7);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  padding: 14px 26px;
  border-radius: var(--pill);
  border: 0;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.2s ease,
    color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(100deg, var(--grad-start), var(--grad-end));
  color: var(--btn-ink);
  box-shadow: 0 10px 26px rgba(98, 101, 245, 0.34);
}
.btn-primary:hover {
  color: var(--btn-ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(98, 101, 245, 0.44);
}
.btn-primary:active {
  transform: scale(0.985);
}
.btn-ghost {
  background: rgba(228, 227, 255, 0.05);
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: rgba(228, 227, 255, 0.1);
  color: #fff;
  transform: translateY(-2px);
}
.btn-sm {
  padding: 10px 18px;
  font-size: 0.92rem;
}
.btn-lg {
  padding: 17px 34px;
  font-size: 1.08rem;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  align-items: center;
}
.btn svg {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.btn-lg svg {
  width: 22px;
  height: 22px;
}

/* Store badge */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 22px 11px 18px;
  border-radius: var(--r-sm);
  background: #000;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  min-width: 196px;
  transition: transform 0.16s ease, border-color 0.2s ease;
}
.badge:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.5);
}
.badge b {
  display: block;
  font-size: 1.16rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.015em;
}
.badge i {
  display: block;
  font-style: normal;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}
.badge.is-soon {
  opacity: 0.66;
  cursor: default;
}
.badge.is-soon:hover {
  transform: none;
}

/* ---------- Szakaszok ---------- */
main {
  display: block;
}
section {
  padding: clamp(56px, 9vw, 104px) 0;
}
section.tight {
  padding: clamp(40px, 6vw, 64px) 0;
}
.hero + section.tight {
  padding-top: clamp(20px, 3vw, 34px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: var(--s-4);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.22rem);
  color: var(--muted);
  max-width: 62ch;
}
.section-head {
  margin-bottom: var(--s-7);
  max-width: 70ch;
}
.section-head h2 + .lead,
.section-head h2 + p {
  margin-top: var(--s-4);
}
.center {
  text-align: center;
}
.center .lead,
.center .section-head {
  margin-left: auto;
  margin-right: auto;
}
.center .eyebrow::before {
  display: none;
}

/* Gold, aláhúzott gyereknév, mint az appban */
.kid {
  color: var(--gold);
  position: relative;
  white-space: nowrap;
  text-shadow: 0 0 26px rgba(255, 227, 150, 0.35);
}
.kid::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.02em;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 227, 150, 0.85);
}
.grad {
  background: linear-gradient(96deg, #fff 10%, var(--primary) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Hero ---------- */
.hero {
  padding-top: clamp(30px, 5vw, 58px);
  padding-bottom: clamp(48px, 7vw, 84px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
}
.hero-grid h1 {
  font-size: clamp(2.3rem, 5vw, 3.35rem);
}
.hero h1 {
  margin-bottom: var(--s-5);
}
.hero .lead {
  font-size: clamp(1.06rem, 2.3vw, 1.24rem);
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: var(--s-5);
  font-size: 0.88rem;
  color: var(--muted);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  flex: 0 0 auto;
}
.dot.gold {
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
}
.dot.violet {
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
}

/* Telefon makett */
.phones {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 20px);
  perspective: 1400px;
}
.phone {
  width: min(232px, 31%);
  border-radius: 34px;
  padding: 8px;
  background: linear-gradient(160deg, #23264a, #101124);
  border: 1px solid rgba(228, 227, 255, 0.14);
  box-shadow: 0 34px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(0, 0, 0, 0.4) inset;
  position: relative;
  flex: 0 0 auto;
}
.phone::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.7);
  z-index: 2;
}
.phone img {
  border-radius: 27px;
  width: 100%;
}
.phone.solo {
  width: min(292px, 86%);
}
.phone.tilt-l {
  transform: rotate(-3.2deg) translateY(10px);
}
.phone.tilt-r {
  transform: rotate(3.2deg) translateY(10px);
}
.phone.raise {
  z-index: 3;
  box-shadow: 0 44px 90px rgba(0, 0, 0, 0.62), 0 0 60px rgba(144, 147, 255, 0.16);
}

/* ---------- Kártyák ---------- */
.grid {
  display: grid;
  gap: var(--s-4);
}
.g2 {
  grid-template-columns: repeat(2, 1fr);
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g4 {
  grid-template-columns: repeat(4, 1fr);
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 30px);
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.card h3 {
  margin-bottom: 10px;
}
.card p:last-child {
  margin-bottom: 0;
}
.card.alt {
  background: var(--card-alt);
}
a.card:hover,
.card.hoverable:hover {
  transform: translateY(-3px);
  border-color: rgba(144, 147, 255, 0.42);
  background: #191b33;
}
a.card {
  color: var(--text);
  display: block;
}
a.card h3 {
  color: #fff;
}
.ic {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: rgba(144, 147, 255, 0.13);
  color: var(--primary);
  margin-bottom: var(--s-4);
}
.ic.gold {
  background: rgba(255, 227, 150, 0.13);
  color: var(--gold);
}
.ic.teal {
  background: rgba(102, 217, 204, 0.13);
  color: var(--teal);
}
.ic svg {
  width: 24px;
  height: 24px;
}

/* Statisztika sáv */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  background: var(--card-alt);
  padding: 22px 20px;
}
.stat b {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.stat span {
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Lépések ---------- */
.steps {
  counter-reset: step;
  display: grid;
  gap: var(--s-4);
  grid-template-columns: repeat(3, 1fr);
}
.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px);
}
.step-n {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--btn-ink);
  background: linear-gradient(140deg, var(--grad-start), var(--grad-end));
  margin-bottom: var(--s-4);
  box-shadow: 0 8px 20px rgba(98, 101, 245, 0.35);
}
.step:nth-child(2) .step-n {
  background: linear-gradient(140deg, #ffe396, #f5c65f);
}
.step:nth-child(3) .step-n {
  background: linear-gradient(140deg, #8ee9dd, #48b6a9);
}

/* ---------- Mese kártya (app olvasó stílus) ---------- */
.story {
  background: var(--card-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.6vw, 40px);
}
.story-top {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.story-top b {
  color: var(--teal);
}
.story h3,
.story h2 {
  font-size: clamp(1.55rem, 3.6vw, 2.05rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: var(--s-4);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 12px;
  border-radius: var(--pill);
  border: 1px solid rgba(144, 147, 255, 0.4);
  background: rgba(144, 147, 255, 0.08);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: var(--s-5);
}
.chip svg {
  width: 15px;
  height: 15px;
}
.chip .dot {
  width: 5px;
  height: 5px;
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}
.story p {
  font-size: 1.06rem;
  line-height: 1.85;
}
.story p.now {
  color: var(--gold);
  font-size: clamp(1.1rem, 2.4vw, 1.24rem);
  font-weight: 500;
  text-shadow: 0 0 30px rgba(255, 227, 150, 0.28);
}
.story-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted);
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--pill);
  background: rgba(228, 227, 255, 0.06);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.tag.gold {
  color: var(--gold);
  border-color: rgba(255, 227, 150, 0.3);
  background: rgba(255, 227, 150, 0.07);
}
.tag.teal {
  color: var(--teal);
  border-color: rgba(102, 217, 204, 0.3);
  background: rgba(102, 217, 204, 0.07);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ---------- Témák ---------- */
.themes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
.theme {
  background: var(--card-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.theme:hover {
  transform: translateY(-3px);
}
.theme svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.7;
}
.theme span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.theme small {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ---------- Sorozat (streak) ---------- */
.week {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.day {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--track);
  border: 1px solid transparent;
}
.day.on {
  background: linear-gradient(140deg, var(--grad-start), var(--grad-end));
  color: var(--btn-ink);
  box-shadow: 0 6px 18px rgba(98, 101, 245, 0.35);
}
.day.today {
  border-color: var(--gold);
  color: var(--gold);
}

/* ---------- Árak ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
  align-items: start;
}
.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 3.4vw, 36px);
  position: relative;
}
.plan.best {
  border-color: transparent;
  background: linear-gradient(var(--card), var(--card)) padding-box,
    linear-gradient(150deg, var(--grad-start), rgba(255, 227, 150, 0.85))
      border-box;
  border: 1.5px solid transparent;
}
.plan .price {
  font-size: 2.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 6px 0 2px;
}
.plan .price small {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.plan ul {
  list-style: none;
  padding: 0;
  margin: var(--s-5) 0;
}
.plan li {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  margin-bottom: 12px;
  font-size: 0.98rem;
}
.plan li svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  margin-top: 3px;
  color: var(--teal);
}
.plan li.off {
  color: rgba(167, 168, 202, 0.6);
}
.plan li.off svg {
  color: rgba(167, 168, 202, 0.5);
}
.ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--btn-ink);
  background: var(--gold);
  padding: 5px 12px;
  border-radius: var(--pill);
}

/* ---------- GYIK ---------- */
.faq {
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 20px 2px;
  cursor: pointer;
  font-size: 1.06rem;
  font-weight: 700;
  color: #fff;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  margin-top: 3px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background-image: linear-gradient(var(--muted), var(--muted)),
    linear-gradient(var(--muted), var(--muted));
  background-size: 10px 1.6px, 1.6px 10px;
  background-position: center, center;
  background-repeat: no-repeat;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.faq details[open] summary {
  color: var(--gold);
}
.faq details[open] summary::after {
  background-size: 10px 1.6px, 0 0;
  border-color: var(--gold);
  transform: rotate(180deg);
}
.faq .answer {
  padding: 0 2px 22px;
  max-width: 78ch;
}
.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ---------- CTA sáv ---------- */
.cta {
  border-radius: var(--r-xl);
  padding: clamp(30px, 5vw, 56px);
  background: radial-gradient(
      120% 140% at 12% 0%,
      rgba(144, 147, 255, 0.22),
      transparent 60%
    ),
    radial-gradient(
      100% 130% at 92% 100%,
      rgba(255, 227, 150, 0.14),
      transparent 60%
    ),
    var(--card);
  border: 1px solid var(--line-strong);
  text-align: center;
}
.cta h2 {
  margin-bottom: var(--s-4);
}
.cta .badges {
  justify-content: center;
  margin-top: var(--s-5);
}
.cta .lead {
  margin: 0 auto;
}

/* ---------- Szöveges tartalom (cikkek) ---------- */
.prose {
  max-width: 68ch;
}
.narrow.prose {
  max-width: 760px;
}
.prose h2 {
  margin: 2.1em 0 0.7em;
  font-size: clamp(1.45rem, 3.4vw, 1.95rem);
}
.prose h3 {
  margin: 1.7em 0 0.5em;
  color: var(--gold);
  font-size: 1.16rem;
}
.prose p,
.prose li {
  font-size: 1.06rem;
  line-height: 1.82;
}
.prose ul {
  list-style: none;
  padding-left: 0;
}
.prose ul li {
  position: relative;
  padding-left: 26px;
}
.prose ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: var(--gold);
  opacity: 0.85;
}
.prose ol {
  padding-left: 1.3em;
}
.prose ol li::marker {
  color: var(--gold);
  font-weight: 700;
}
.prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--primary);
  color: var(--text);
  font-size: 1.1rem;
  font-weight: 500;
}
.prose a {
  color: var(--gold);
  text-decoration: underline;
  text-decoration-color: rgba(255, 227, 150, 0.4);
  text-underline-offset: 3px;
}
.prose a:hover {
  text-decoration-color: var(--gold);
}
.callout {
  margin: 1.8em 0;
  padding: 22px 24px;
  border-radius: var(--r-md);
  background: rgba(144, 147, 255, 0.08);
  border: 1px solid rgba(144, 147, 255, 0.24);
}
.callout p:last-child {
  margin-bottom: 0;
}
.callout .eyebrow {
  color: var(--primary);
  margin-bottom: 8px;
}
.callout.gold {
  background: rgba(255, 227, 150, 0.07);
  border-color: rgba(255, 227, 150, 0.24);
}
.callout.gold .eyebrow {
  color: var(--gold);
}
.toc {
  background: var(--card-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-bottom: var(--s-6);
}
.toc ol {
  margin: 0;
  padding-left: 1.1em;
}
.toc li {
  margin-bottom: 6px;
}
.toc a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.98rem;
}
.toc a:hover {
  color: var(--gold);
}
.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: var(--s-5);
}
.crumbs {
  font-size: 0.82rem;
  color: var(--muted);
  padding-top: var(--s-5);
}
.crumbs a {
  color: var(--muted);
}
.crumbs a:hover {
  color: var(--gold);
}
.crumbs span {
  opacity: 0.5;
  margin: 0 8px;
}
.hr {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: var(--s-7) 0;
}

/* Névtoplista */
.ranks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.rank {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 11px 16px;
  background: var(--card-alt);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.98rem;
  transition: border-color 0.16s ease, background 0.16s ease;
}
.rank:hover {
  border-color: rgba(144, 147, 255, 0.34);
  background: #17192e;
}
.rank b {
  min-width: 2.5em;
  color: var(--gold);
  font-size: 0.84rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.rank span,
.rank a {
  color: var(--text);
  font-weight: 600;
}
.rank a {
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 227, 150, 0.35);
}
.rank a:hover {
  color: var(--gold);
}
.rank small {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

/* Névlista */
.namegrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}
.namegrid a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--card-alt);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: 0.98rem;
  transition: transform 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}
.namegrid a:hover {
  color: var(--gold);
  border-color: rgba(255, 227, 150, 0.4);
  transform: translateY(-2px);
}
.namegrid a small {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.76rem;
}

/* Letöltés oldal */
.dl-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(24px, 4vw, 40px);
  text-align: center;
}
.dl-icon {
  width: 92px;
  height: 92px;
  border-radius: 26px;
  margin: 0 auto var(--s-5);
  box-shadow: 0 18px 40px rgba(9, 0, 121, 0.55);
}
.dl-state {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border-radius: var(--pill);
  background: rgba(102, 217, 204, 0.1);
  border: 1px solid rgba(102, 217, 204, 0.3);
  color: var(--teal);
  font-size: 0.86rem;
  font-weight: 600;
  margin-bottom: var(--s-5);
}
.qr {
  width: 168px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: var(--gold);
  padding: 0;
}
.spin {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(102, 217, 204, 0.3);
  border-top-color: var(--teal);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Lábléc ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: var(--s-8) 0 var(--s-7);
  margin-top: var(--s-6);
  background: rgba(9, 10, 22, 0.55);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-6);
}
.footer h4 {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
  font-weight: 700;
}
.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer li {
  margin-bottom: 9px;
}
.footer a {
  color: var(--text);
  font-size: 0.94rem;
}
.footer a:hover {
  color: var(--gold);
}
.footer .about p {
  font-size: 0.92rem;
  max-width: 34ch;
}
.footer-bottom {
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--muted);
}
.footer-bottom a {
  font-size: 0.84rem;
  color: var(--muted);
}

/* ---------- Mobil letöltő sáv ---------- */
.dockbar {
  display: none;
  position: fixed;
  left: 10px;
  right: 10px;
  bottom: 10px;
  z-index: 80;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 22px;
  background: rgba(17, 18, 35, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.55);
}
.dockbar img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: 0 0 auto;
}
.dockbar .dock-txt {
  min-width: 0;
  flex: 1 1 auto;
}
.dockbar b {
  display: block;
  font-size: 0.94rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dockbar span {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dockbar .btn {
  padding: 11px 18px;
  font-size: 0.92rem;
  flex: 0 0 auto;
}

/* ---------- Megjelenő animáció ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
}
.reveal.in {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reszponzív ---------- */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .hero .phones {
    order: -1;
  }
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .g3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .themes {
    grid-template-columns: repeat(3, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--s-5);
  }
  .nav {
    display: none;
  }
  .header .btn {
    display: none;
  }
  .burger {
    display: flex;
  }
}

@media (max-width: 700px) {
  body {
    font-size: 16.5px;
  }
  .shell {
    padding: 0 18px;
  }
  .g2,
  .g3,
  .g4 {
    grid-template-columns: 1fr;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .themes {
    grid-template-columns: repeat(2, 1fr);
  }
  .ranks {
    grid-template-columns: 1fr;
  }
  .dockbar {
    display: flex;
  }
  body.has-dock {
    padding-bottom: 84px;
  }
  .phones {
    gap: 8px;
  }
  .phone.tilt-l,
  .phone.tilt-r {
    display: none;
  }
  .phone {
    width: min(280px, 74vw);
  }
  .badge {
    min-width: 0;
    flex: 1 1 200px;
  }
  .prose p,
  .prose li {
    font-size: 1.02rem;
  }
  section {
    padding: 52px 0;
  }
  .footer {
    padding-bottom: 100px;
  }
}

@media (min-width: 701px) and (max-width: 980px) {
  .badge {
    min-width: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001s !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .header,
  .dockbar,
  .sky,
  .footer,
  .mobile-menu {
    display: none !important;
  }
  body {
    background: #fff;
    color: #111;
  }
}
