/* ==========================================================================
   Grantify — weboldal stíluslap
   Forrás: 04_style-guide/tokens.css + grantify-style-guide.md
   Elv: sötét navy keret, világos munkafelület, indigó/égkék akcentus,
        a zöld / borostyán / piros kizárólag státuszt jelöl.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Betűtípus: Inter Tight (SIL Open Font License 1.1, lásd assets/fonts/OFL.txt)
   Önállóan hosztolt, változó súlyú fájlok (400–800 + 800 italic), latin + latin-ext.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter Tight';
  src: url('../fonts/InterTight-var.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Inter Tight';
  src: url('../fonts/InterTight-Italic-var.woff2') format('woff2');
  font-weight: 100 900; font-style: italic; font-display: swap;
}

/* --------------------------------------------------------------------------
   0. Tokenek
   -------------------------------------------------------------------------- */
:root {
  --font: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Alap színek */
  --navy-900: #0A1F44;
  --navy-950: #050E24;
  --navy-800: #12295A; /* származtatott: felületek sötét háttéren */
  --navy-700: #1B3670; /* származtatott: keretek, hover sötét háttéren */
  --indigo-500: #4F67E0;
  --indigo-600: #3F55C4; /* származtatott: hover */
  --sky-300: #8EC2FF;
  --sky-400: #74B2FF;   /* elsődleges gomb hover (style guide) */
  --sky-100: #E3EFFF;
  --sky-50:  #F0F6FF;   /* származtatott: nagyon halvány felület */

  /* Semleges */
  --white: #FFFFFF;
  --gray-50: #F3F4F6;
  --gray-100: #E5E8EC;
  --gray-200: #DCE6F5;  /* kártyakeret (style guide) */
  --gray-400: #9AA3AF;
  --gray-600: #5B6474;
  --ink: #0A1F44;

  /* Státusz */
  --ok: #3DB87A;
  --warn: #F5A623;
  --alert: #EF6A4E;
  --critical: #C8161D;

  /* Sötét háttér szövegek */
  --on-dark: #FFFFFF;
  --on-dark-70: rgba(255, 255, 255, .72);
  --on-dark-50: rgba(255, 255, 255, .5);
  --line-dark: rgba(255, 255, 255, .12);

  /* Lekerekítés */
  --r-container: 40px;
  --r-card: 32px;
  --r-inner: 12px;
  --r-input: 8px;
  --r-button: 999px;

  /* Térköz */
  --s-0: 4px; --s-1: 8px; --s-2: 12px; --s-3: 16px; --s-4: 24px;
  --s-5: 32px; --s-6: 48px; --s-7: 64px; --s-8: 96px; --s-9: 128px;

  /* Rács */
  --container: 1280px;
  --gutter: 80px;
  --section: 128px;
  --nav-h: 84px;

  /* Tipográfia */
  --tr-heading: -0.03em;
  --tr-body: -0.01em;

  /* Mozgás */
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur: 400ms;
  --shadow-soft: 0 1px 2px rgba(10, 31, 68, .06);
  --shadow-float: 0 24px 48px -24px rgba(10, 31, 68, .35);
}

@media (max-width: 1024px) {
  :root { --gutter: 40px; --section: 96px; }
}
@media (max-width: 640px) {
  :root { --gutter: 20px; --section: 80px; --nav-h: 68px; }
}

/* --------------------------------------------------------------------------
   1. Alap
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: var(--tr-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }

::selection { background: var(--sky-100); color: var(--navy-900); }
.on-dark ::selection { background: var(--sky-300); color: var(--navy-900); }

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--indigo-500);
  outline-offset: 3px;
  border-radius: 4px;
}
.on-dark :focus-visible { outline-color: var(--sky-300); }

.skip-link {
  position: absolute; top: 12px; left: 12px; z-index: 1000;
  padding: 12px 20px; border-radius: var(--r-button);
  background: var(--white); color: var(--navy-900); font-weight: 600;
  transform: translateY(-200%);
  transition: transform 200ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Ikonok (inline SVG sprite) */
.ic {
  width: 1.25em; height: 1.25em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.75;
  stroke-linecap: round; stroke-linejoin: round;
}

/* --------------------------------------------------------------------------
   2. Elrendezés
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { position: relative; padding-block: var(--section); overflow: clip; }
.section--tight { padding-block: calc(var(--section) * .75); }
.section--gray { background: var(--gray-50); }
.section--navy {
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--on-dark);
}
.section--navy.section + .section--navy.section { padding-top: 0; }

.grid { display: grid; gap: var(--s-4); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: minmax(0, 1fr); }
}

/* --------------------------------------------------------------------------
   3. Tipográfia
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--indigo-500);
  margin-bottom: var(--s-3);
}
.eyebrow::before {
  content: ""; width: 20px; height: 2px; border-radius: 2px;
  background: currentColor; opacity: .6;
}
.on-dark .eyebrow { color: var(--sky-300); }

/* A kétszintű cím: a `|` helyén <em>, 800 italic uppercase */
.title {
  font-weight: 500; line-height: 1; letter-spacing: var(--tr-heading);
  text-wrap: balance;
}
.title em {
  display: block; font-style: italic; font-weight: 800; text-transform: uppercase;
  color: var(--indigo-500); line-height: .95; padding-right: .08em; /* a dőlt betű ne vágódjon */
}
.on-dark .title em { color: var(--sky-300); }
.title--h1 { font-size: clamp(40px, 10.5vw, 82px); line-height: .95; }
.title--h2 { font-size: clamp(34px, 4.6vw, 64px); }
.title--h2-sm { font-size: clamp(32px, 4vw, 56px); }
.title--h3 { font-size: clamp(26px, 3vw, 45px); font-weight: 600; line-height: 1.1; }

.lead {
  font-size: clamp(18px, 1.6vw, 23px); line-height: 1.4; font-weight: 400;
  color: var(--gray-600); max-width: 640px;
}
.on-dark .lead { color: var(--on-dark-70); }
.small { font-size: 13px; line-height: 1.45; color: var(--gray-600); }
.on-dark .small { color: var(--on-dark-50); }
.muted { color: var(--gray-600); }
.link {
  color: var(--indigo-500); font-weight: 600;
  text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px;
  transition: text-decoration-color 150ms;
}
.link:hover { text-decoration-color: currentColor; }
.on-dark .link { color: var(--sky-300); }

.sec-head { max-width: 760px; margin-bottom: var(--s-7); }
.sec-head .lead { margin-top: var(--s-4); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .lead { margin-inline: auto; }
.sec-head--split {
  max-width: none; display: grid; grid-template-columns: 1.2fr .8fr;
  gap: var(--s-6); align-items: end;
}
.sec-head--split .lead { margin-top: 0; padding-bottom: 6px; }
@media (max-width: 900px) {
  .sec-head--split { grid-template-columns: 1fr; gap: var(--s-4); }
  .sec-head { margin-bottom: var(--s-6); }
}

/* --------------------------------------------------------------------------
   4. Gombok, jelvények, kártyák
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: var(--r-button);
  font-size: 16px; font-weight: 600; white-space: nowrap;
  transition: background-color 150ms, color 150ms, border-color 150ms, transform 200ms var(--ease-out), box-shadow 200ms;
  will-change: transform;
}
.btn .ic { width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
.btn:hover .ic--arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--sky-300); color: var(--navy-900); }
.btn--primary:hover { background: var(--sky-400); }
.btn--secondary { background: var(--white); color: var(--navy-900); border: 1px solid var(--gray-200); }
.btn--secondary:hover { border-color: var(--indigo-500); }
.btn--ghost { background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .45); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--navy { background: var(--navy-900); color: var(--white); }
.btn--navy:hover { background: var(--navy-800); }
.btn--sm { height: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-busy="true"] { opacity: .7; cursor: progress; }

.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: var(--r-button);
  font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--white);
  white-space: nowrap;
}
.badge .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.badge--ok { background: var(--ok); }
.badge--warn { background: var(--warn); }
.badge--alert { background: var(--alert); }
.badge--critical { background: var(--critical); }
.badge--indigo { background: var(--indigo-500); }
.badge--neutral { background: var(--sky-100); color: var(--navy-900); }
.badge--outline { background: transparent; color: inherit; border: 1px solid currentColor; opacity: .85; }
.app .badge { font-size: 11px; padding: 3px 8px; }
.app .badge .ic { width: 12px; height: 12px; }

.card {
  position: relative;
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--r-card); padding: var(--s-5);
  transition: transform 300ms var(--ease-out), border-color 300ms, box-shadow 300ms;
}
.card:hover { transform: translateY(-3px); border-color: #C4D6F2; box-shadow: var(--shadow-float); }
.card__icon {
  width: 52px; height: 52px; border-radius: 16px;
  display: grid; place-items: center;
  background: var(--sky-100); color: var(--indigo-500);
  margin-bottom: var(--s-4);
  transition: background-color 300ms, color 300ms, transform 300ms var(--ease-out);
}
.card__icon .ic { width: 24px; height: 24px; }
.card:hover .card__icon { background: var(--indigo-500); color: var(--white); transform: rotate(-6deg); }
.card__title { font-size: 21px; font-weight: 600; letter-spacing: -.02em; line-height: 1.2; margin-bottom: 10px; }
.card__title--indigo { color: var(--indigo-500); }
.card__text { font-size: 15px; color: var(--gray-600); }
.card__arrow {
  position: absolute; right: var(--s-4); bottom: var(--s-4);
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--gray-50); color: var(--navy-900);
  transition: background-color 250ms, color 250ms;
}
.card__arrow .ic { width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
.card:hover .card__arrow { background: var(--navy-900); color: var(--white); }
.card:hover .card__arrow .ic { transform: translate(2px, -2px); }
.card--has-arrow { padding-bottom: calc(var(--s-5) + 52px); }

.on-dark .card {
  background: rgba(255, 255, 255, .05); border-color: var(--line-dark); color: var(--on-dark);
}
.on-dark .card:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); box-shadow: none; }
.on-dark .card__icon { background: rgba(142, 194, 255, .14); color: var(--sky-300); }
.on-dark .card:hover .card__icon { background: var(--sky-300); color: var(--navy-900); }
.on-dark .card__text { color: var(--on-dark-70); }

/* Pipa-lista */
.checks { display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.checks .ic {
  width: 22px; height: 22px; flex: none; margin-top: 1px;
  color: var(--indigo-500); stroke-width: 2;
}
.on-dark .checks .ic { color: var(--sky-300); }

/* Koncentrikus vonalmotívum (sarok) */
.corner {
  position: absolute; width: 320px; height: 320px; pointer-events: none;
  color: var(--navy-900); opacity: .16;
}
.corner svg { width: 100%; height: 100%; overflow: visible; }
.corner path {
  fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round;
  stroke-dasharray: 1200; stroke-dashoffset: 1200;
  transition: stroke-dashoffset 1800ms var(--ease-out);
}
.corner path:nth-child(2) { transition-delay: 120ms; }
.corner path:nth-child(3) { transition-delay: 240ms; }
.corner path:nth-child(4) { transition-delay: 360ms; }
.in .corner path, .corner.in path { stroke-dashoffset: 0; }
.corner--tr { top: -40px; right: -40px; }
.corner--bl { bottom: -40px; left: -40px; transform: rotate(180deg); }
.corner--tl { top: -40px; left: -40px; transform: rotate(-90deg); }
.corner--br { bottom: -40px; right: -40px; transform: rotate(90deg); }
.on-dark .corner { color: var(--sky-300); opacity: .55; }
@media (max-width: 640px) {
  .corner { width: 200px; height: 200px; }
  .corner--tr { top: -70px; right: -70px; }
  .corner--br { bottom: -70px; right: -70px; }
  .corner--bl { bottom: -70px; left: -70px; }
  .corner--tl { top: -70px; left: -70px; }
}

/* --------------------------------------------------------------------------
   5. Navigáció
   -------------------------------------------------------------------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  color: var(--white);
  background: transparent;
  transition: background-color 300ms, box-shadow 300ms, height 300ms var(--ease-out);
}
.nav::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line-dark); opacity: 0; transition: opacity 300ms;
}
.nav.is-scrolled, .nav--solid { background: rgba(10, 31, 68, .97); }
.nav--solid::after { opacity: 1; }
.nav.is-scrolled::after { opacity: 1; }
.nav__progress {
  position: absolute; left: 0; top: 0; height: 2px; width: 100%;
  background: var(--sky-300); transform-origin: left; transform: scaleX(0);
  opacity: 0; transition: opacity 300ms;
}
.nav.is-scrolled .nav__progress { opacity: 1; }
.nav__inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
}
.nav__logo { display: block; height: 30px; }
.nav__logo img { height: 100%; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  position: relative; display: block; padding: 10px 14px; border-radius: var(--r-button);
  font-size: 15px; font-weight: 500; color: var(--on-dark-70);
  transition: color 150ms, background-color 150ms;
}
.nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; border-radius: 2px;
  background: var(--sky-300); transform: scaleX(0); transform-origin: left;
  transition: transform 250ms var(--ease-out);
}
.nav__link:hover, .nav__link.is-active { color: var(--white); }
.nav__link.is-active::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 6px; }
.nav__login { padding: 10px 14px; font-size: 15px; font-weight: 500; color: var(--on-dark-70); transition: color 150ms; }
.nav__login:hover { color: var(--white); }
.nav__cta { margin-left: 8px; }
.nav__burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  place-items: center; color: var(--white); border: 1px solid var(--line-dark);
}
.nav__burger .ic { width: 22px; height: 22px; }
.nav__burger .ic--close { display: none; }
.menu-open .nav__burger .ic--menu { display: none; }
.menu-open .nav__burger .ic--close { display: block; }

.nav-mobile {
  position: fixed; inset: 0; z-index: 90; padding: calc(var(--nav-h) + 24px) var(--gutter) var(--s-6);
  background: var(--navy-950); color: var(--white);
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 300ms, transform 400ms var(--ease-out), visibility 0s 300ms;
}
.menu-open .nav-mobile { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-mobile__links { display: grid; gap: 4px; }
.nav-mobile__links a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-size: 28px; font-weight: 500; letter-spacing: -.02em;
  border-bottom: 1px solid var(--line-dark);
  opacity: 0; transform: translateY(12px);
  transition: opacity 300ms, transform 400ms var(--ease-out);
}
.menu-open .nav-mobile__links a { opacity: 1; transform: none; }
.menu-open .nav-mobile__links a:nth-child(1) { transition-delay: 60ms; }
.menu-open .nav-mobile__links a:nth-child(2) { transition-delay: 110ms; }
.menu-open .nav-mobile__links a:nth-child(3) { transition-delay: 160ms; }
.menu-open .nav-mobile__links a:nth-child(4) { transition-delay: 210ms; }
.menu-open .nav-mobile__links a:nth-child(5) { transition-delay: 260ms; }
.nav-mobile__links .ic { width: 22px; height: 22px; color: var(--sky-300); }
.nav-mobile__actions { display: grid; gap: 10px; margin-top: var(--s-5); }

@media (max-width: 960px) {
  .nav__links, .nav__login, .nav__cta { display: none; }
  .nav__burger { display: grid; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; min-height: min(100svh, 880px);
  display: flex; flex-direction: column; justify-content: center;
  padding-top: calc(var(--nav-h) + 72px); padding-bottom: 112px;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%);
  color: var(--on-dark);
}
.hero__glow {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.hero__glow::before, .hero__glow::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55;
}
.hero__glow::before {
  width: 720px; height: 720px; right: -200px; top: -260px;
  background: radial-gradient(circle, rgba(79, 103, 224, .55) 0%, rgba(79, 103, 224, 0) 70%);
  animation: glow-a 18s ease-in-out infinite alternate;
}
.hero__glow::after {
  width: 560px; height: 560px; left: -220px; bottom: -220px;
  background: radial-gradient(circle, rgba(142, 194, 255, .35) 0%, rgba(142, 194, 255, 0) 70%);
  animation: glow-b 22s ease-in-out infinite alternate;
}
@keyframes glow-a { from { transform: translate(0, 0) } to { transform: translate(-80px, 60px) } }
@keyframes glow-b { from { transform: translate(0, 0) } to { transform: translate(70px, -50px) } }

.hero__grid {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--s-6); align-items: center;
}
.hero__copy { max-width: 640px; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; border-radius: var(--r-button);
  border: 1px solid var(--line-dark); background: rgba(255, 255, 255, .04);
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sky-300);
  margin-bottom: var(--s-4);
}
.hero__pill i {
  width: 8px; height: 8px; border-radius: 50%; background: var(--sky-300);
  box-shadow: 0 0 0 0 rgba(142, 194, 255, .6);
  animation: pulse-dot 2.4s ease-out infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(142, 194, 255, .6); }
  70% { box-shadow: 0 0 0 10px rgba(142, 194, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(142, 194, 255, 0); }
}
.hero .title { color: var(--white); }
.hero .lead { margin-top: var(--s-4); max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-5); }
.hero__trust { margin-top: var(--s-5); display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero__trust li { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--on-dark-70); }
.hero__trust .ic { width: 18px; height: 18px; color: var(--sky-300); stroke-width: 2.2; }

.hero__visual { position: relative; }
.hero__visual .mock-wrap { margin-right: -48px; }
@media (max-width: 1240px) { .hero__visual .mock-wrap { margin-right: 0; } }

/* Belépő animációk (a .is-loaded osztály a body-n indítja) */
.hero [data-enter] { opacity: 0; transform: translateY(18px); }
.is-loaded .hero [data-enter] { animation: enter 800ms var(--ease-out) forwards; }
.is-loaded .hero [data-enter="1"] { animation-delay: 60ms; }
.is-loaded .hero [data-enter="2"] { animation-delay: 160ms; }
.is-loaded .hero [data-enter="3"] { animation-delay: 300ms; }
.is-loaded .hero [data-enter="4"] { animation-delay: 420ms; }
.is-loaded .hero [data-enter="5"] { animation-delay: 540ms; }
.is-loaded .hero [data-enter="6"] { animation-delay: 660ms; }
@keyframes enter { to { opacity: 1; transform: none; } }

.hero .title .line { display: block; overflow: hidden; }
.hero .title .line > span { display: block; transform: translateY(110%); }
.is-loaded .hero .title .line > span { animation: rise 900ms var(--ease-out) forwards; }
.is-loaded .hero .title .line:nth-child(2) > span { animation-delay: 140ms; }
@keyframes rise { to { transform: none; } }

.hero .mock-wrap { opacity: 0; transform: translateY(40px) perspective(1400px) rotateX(6deg); }
.is-loaded .hero .mock-wrap { animation: mock-in 1100ms var(--ease-out) 350ms forwards; }
@keyframes mock-in { to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .hero { padding-top: calc(var(--nav-h) + 48px); padding-bottom: 80px; }
  .hero__grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero__visual { max-width: 640px; }
}

/* --------------------------------------------------------------------------
   7. Termékképernyők (HTML-ben újraépítve, bemutatóadatokkal)
   -------------------------------------------------------------------------- */
.mock-wrap { position: relative; }
.mock-wrap--tilt { transform-style: preserve-3d; }
.app {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #142E63 0%, var(--navy-900) 55%, #081A3A 100%);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 28px; padding: 12px;
  color: var(--ink); font-size: 13px; line-height: 1.35; letter-spacing: -.01em;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform 500ms var(--ease-out);
}
.app__bar { display: flex; align-items: center; justify-content: space-between; padding: 6px 8px 14px; color: var(--white); }
.app__brand { display: flex; align-items: center; gap: 8px; }
.app__brand img { height: 22px; width: auto; }
.app__demo { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--on-dark-50); }
.app__body { display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 10px; }
.app__side { padding: 6px 2px 6px 6px; color: var(--white); }
.app__side-label { font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-50); margin: 4px 0 10px 8px; }
.app__nav { display: grid; gap: 2px; }
.app__nav a, .app__nav span {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px;
  font-size: 12.5px; font-weight: 500; color: var(--on-dark-70);
}
.app__nav .is-active { background: rgba(255, 255, 255, .1); color: var(--white); }
.app__nav .ic { width: 15px; height: 15px; }
.app__main { background: var(--gray-100); border-radius: 20px; padding: 16px; min-width: 0; }
.app__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 12px; margin-bottom: 12px; }
.app__eyebrow { font-size: 11px; color: var(--gray-600); margin-bottom: 2px; }
.app__title { font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.app__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px;
  background: var(--sky-300); color: var(--navy-900); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.app__btn .ic { width: 13px; height: 13px; stroke-width: 2.4; }
.app__btn--ghost { background: transparent; color: var(--gray-600); }

.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.metric { background: var(--white); border-radius: 12px; padding: 12px; }
.metric b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.metric i { display: block; width: 28px; height: 3px; border-radius: 2px; margin: 8px 0 6px; background: var(--indigo-500); }
.metric i.is-critical { background: var(--critical); }
.metric i.is-warn { background: var(--warn); }
.metric span { font-size: 11px; color: var(--gray-600); }

.rows { background: var(--white); border-radius: 12px; overflow: hidden; }
.row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 12px;
  padding: 10px 12px; border-top: 1px solid var(--gray-100);
}
.row:first-child { border-top: 0; }
.row__who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.row__who > div { min-width: 0; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
  background: var(--sky-100); color: var(--indigo-500);
}
.row__name { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__sub { font-size: 11px; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__due { text-align: right; }
.row__due b { display: block; font-size: 12px; font-weight: 600; white-space: nowrap; }
.row__due span { font-size: 10px; color: var(--gray-600); white-space: nowrap; }
.row__due.is-critical b { color: var(--critical); }

/* Összesítő kártya (ügyfélportál) */
.summary {
  border-radius: 14px; padding: 14px 16px; color: var(--white); margin-bottom: 10px;
  background: linear-gradient(135deg, #1B3A82 0%, #4F67E0 100%);
}
.summary__t { font-size: 13.5px; font-weight: 600; margin-bottom: 10px; }
.summary__meta { display: flex; justify-content: space-between; font-size: 11px; color: rgba(255, 255, 255, .85); margin-bottom: 6px; }
.bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.bar > i {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--sky-300), #FFFFFF);
  transition: width 1400ms var(--ease-out) 300ms;
}
.in .bar > i, .is-loaded .hero .bar > i { width: var(--val, 50%); }
.summary__next { margin-top: 10px; font-size: 11.5px; color: rgba(255, 255, 255, .9); display: flex; align-items: center; gap: 6px; }
.summary__next .ic { width: 14px; height: 14px; }

/* Jóváhagyási lépéssor (mini) */
.approve { background: var(--white); border-radius: 12px; padding: 12px; margin-top: 10px; }
.approve__steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; row-gap: 8px; }
.approve__step { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 500; color: var(--gray-600); white-space: nowrap; }
.approve__dot {
  width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--gray-100); color: var(--gray-600); font-size: 10px; font-weight: 700;
}
.approve__dot .ic { width: 11px; height: 11px; stroke-width: 3; }
.approve__step.is-done .approve__dot { background: var(--ok); color: var(--white); }
.approve__step.is-active { color: var(--ink); font-weight: 600; }
.approve__step.is-active .approve__dot { background: var(--indigo-500); color: var(--white); box-shadow: 0 0 0 4px rgba(79, 103, 224, .18); }
.approve__line { flex: 1; height: 2px; background: var(--gray-100); min-width: 10px; border-radius: 2px; }
.approve__line.is-done { background: var(--ok); }
.approve__status { margin-top: 8px; font-size: 11.5px; color: var(--gray-600); display: flex; align-items: center; gap: 6px; }
.approve__status .ic { width: 13px; height: 13px; color: var(--warn); }

/* Lépcsőzetes belépés a képernyő elemeinek */
.app [data-pop] { opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.in .app [data-pop], .is-loaded .hero .app [data-pop] { opacity: 1; transform: none; }
.app [data-pop="1"] { transition-delay: 500ms; }
.app [data-pop="2"] { transition-delay: 600ms; }
.app [data-pop="3"] { transition-delay: 700ms; }
.app [data-pop="4"] { transition-delay: 800ms; }
.app [data-pop="5"] { transition-delay: 900ms; }
.app [data-pop="6"] { transition-delay: 1000ms; }
.app [data-pop="7"] { transition-delay: 1100ms; }
.app [data-pop="8"] { transition-delay: 1200ms; }

/* Lebegő mikrokártya */
.float-card {
  position: absolute; z-index: 3;
  background: var(--white); color: var(--ink);
  border-radius: 20px; padding: 18px 20px;
  box-shadow: 0 30px 60px -30px rgba(5, 14, 36, .6), 0 1px 2px rgba(10, 31, 68, .08);
  animation: float 6s ease-in-out infinite;
}
.float-card--deadline { left: -36px; bottom: 28px; min-width: 196px; }
.float-card b { display: block; font-size: 32px; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.float-card small { display: block; font-size: 13px; color: var(--gray-600); margin: 4px 0 10px; }
.float-card .badge { font-size: 11.5px; }
.hero .float-card { opacity: 0; }
.is-loaded .hero .float-card { animation: float-in 800ms var(--ease-out) 1200ms forwards, float 6s ease-in-out 2000ms infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-5px) } }
@keyframes float-in { from { opacity: 0; transform: translateY(24px) } to { opacity: 1; transform: none } }
@media (max-width: 640px) {
  .float-card--deadline { position: relative; left: 12px; bottom: auto; display: inline-block; margin-top: -22px; padding: 14px 16px; min-width: 0; }
  .float-card b { font-size: 26px; }
}

/* Előzetes adatbekérő mini kártya (ügyfélportál szekció) */
.app--portal { overflow: visible; }
.app__bottom { display: grid; grid-template-columns: minmax(0, 1fr) 238px; gap: 10px; align-items: end; margin-top: 10px; }
.approve--stack { margin-top: 0; }
.approve--stack { padding: 12px 10px; }
.approve--stack .approve__steps { flex-direction: column; align-items: flex-start; gap: 8px; }
.approve--stack .approve__step { white-space: normal; }
.float-card--intake { position: relative; width: auto; padding: 16px; transform: translate(26px, 26px); animation: none; box-shadow: 0 24px 48px -24px rgba(5, 14, 36, .5), 0 1px 2px rgba(10, 31, 68, .08); }
.split__visual { padding-bottom: 8px; }
.float-card--intake .fc__t { font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.float-card--intake .fc__step { display: flex; justify-content: space-between; font-size: 12px; color: var(--gray-600); }
.dots { display: flex; gap: 6px; margin: 10px 0 12px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--gray-100); }
.dots i.is-on { background: var(--indigo-500); }
.float-card--intake .fc__help { font-size: 12.5px; color: var(--gray-600); line-height: 1.4; }
.float-card--intake .fc__nav { display: flex; justify-content: space-between; margin-top: 14px; }
.float-card--intake .fc__nav span {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px;
  font-size: 12px; font-weight: 600; background: var(--gray-50); color: var(--gray-400);
}
.float-card--intake .fc__nav span.is-primary { background: var(--sky-300); color: var(--navy-900); }
.float-card--intake .fc__nav .ic { width: 13px; height: 13px; }
.mock-wrap [data-reveal-float] { opacity: 0; transition: opacity 700ms var(--ease-out) 900ms; }
.in .mock-wrap [data-reveal-float] { opacity: 1; }
@media (max-width: 640px) {
  .app__bottom { grid-template-columns: minmax(0, 1fr); }
  .float-card--intake { transform: translate(0, 18px); }
  .split__visual { padding-bottom: 18px; }
  .row { grid-template-columns: minmax(0, 1fr) auto; }
  .row__who { grid-column: 1 / -1; }
  .row__due { text-align: left; }
  .app .row__due b, .app .row__due span { display: inline; }
  .app .row__due span { margin-left: 6px; }
  .app__body { grid-template-columns: minmax(0, 1fr); }
  .app__side { display: none; }
  .app { padding: 10px; border-radius: 22px; }
  .app__main { padding: 12px; border-radius: 16px; }
  .metrics { gap: 6px; }
  .metric { padding: 10px; }
  .metric b { font-size: 18px; }
}
.mock-caption { margin-top: var(--s-3); font-size: 12px; font-weight: 500; color: var(--gray-600); display: flex; align-items: center; gap: 8px; }
.on-dark .mock-caption { color: var(--on-dark-50); }

/* --------------------------------------------------------------------------
   8. Szekciók
   -------------------------------------------------------------------------- */

/* Probléma */
.callout {
  position: relative; margin-top: var(--s-6);
  padding: var(--s-5) var(--s-5) var(--s-5) calc(var(--s-5) + 8px);
  background: var(--sky-50); border-radius: 24px;
  font-size: clamp(18px, 1.7vw, 23px); font-weight: 600; letter-spacing: -.02em; line-height: 1.35;
  max-width: 980px;
}
.callout::before {
  content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 4px; border-radius: 4px;
  background: var(--navy-900); transform: scaleY(0); transform-origin: top;
  transition: transform 800ms var(--ease-out) 200ms;
}
.in .callout::before, .callout.in::before { transform: scaleY(1); }

/* Működés: lépéssor */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); margin-top: var(--s-4); }
.steps::before {
  content: ""; position: absolute; left: 22px; right: 22px; top: 22px; height: 2px; border-radius: 2px;
  background: var(--gray-100);
}
.steps__fill {
  position: absolute; left: 22px; top: 22px; height: 2px; border-radius: 2px; width: calc(100% - 44px);
  background: linear-gradient(90deg, var(--indigo-500), var(--sky-300));
  transform: scaleX(0); transform-origin: left;
  transition: transform 2000ms var(--ease-in-out) 200ms;
}
.in .steps__fill { transform: scaleX(1); }
.step { position: relative; padding-top: 68px; padding-right: var(--s-3); }
.step__num {
  position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 16px;
  background: var(--white); color: var(--gray-600); border: 2px solid var(--gray-100);
  transition: background-color 400ms, color 400ms, border-color 400ms, box-shadow 400ms;
}
.in .step__num { background: var(--indigo-500); color: var(--white); border-color: var(--indigo-500); box-shadow: 0 0 0 6px rgba(79, 103, 224, .14); }
.in .step:nth-child(1) .step__num { transition-delay: 200ms; }
.in .step:nth-child(2) .step__num { transition-delay: 800ms; }
.in .step:nth-child(3) .step__num { transition-delay: 1400ms; }
.in .step:nth-child(4) .step__num { transition-delay: 2000ms; }
.step__title { font-size: 21px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 8px; }
.step__text { font-size: 15px; color: var(--gray-600); }
.steps-close { margin-top: var(--s-6); font-size: clamp(20px, 2vw, 26px); font-weight: 600; letter-spacing: -.02em; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: var(--s-5); padding-left: 0; }
  .steps::before { left: 22px; right: auto; top: 22px; bottom: 22px; width: 2px; height: auto; }
  .steps__fill { left: 22px; top: 22px; width: 2px; height: calc(100% - 44px); transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, var(--indigo-500), var(--sky-300)); }
  .in .steps__fill { transform: scaleY(1); }
  .step { padding-top: 0; padding-left: 68px; }
}

/* Szalag (marquee) */
.ribbon {
  margin-top: var(--s-7);
  background: var(--navy-900); color: var(--white); border-radius: var(--r-button);
  overflow: hidden; height: 64px; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ribbon__track { display: flex; width: max-content; animation: marquee 44s linear infinite; }
.ribbon:hover .ribbon__track { animation-play-state: paused; }
.ribbon__item { display: flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; font-size: 17px; font-weight: 500; }
.ribbon__item img { height: 18px; width: auto; opacity: .9; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* AI szerepe */
.ai-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.ai-card { border-radius: var(--r-card); padding: var(--s-6); position: relative; overflow: hidden; }
.ai-card--ai { background: var(--white); border: 1px solid var(--gray-200); }
.ai-card--human { background: var(--navy-900); color: var(--white); }
.ai-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: var(--s-4); }
.ai-card__head .card__icon { margin: 0; width: 48px; height: 48px; }
.ai-card__title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.ai-list { display: grid; gap: 14px; }
.ai-list li {
  display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 500;
  opacity: 0; transform: translateX(-10px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.in .ai-list li { opacity: 1; transform: none; }
.in .ai-list li:nth-child(1) { transition-delay: 200ms; }
.in .ai-list li:nth-child(2) { transition-delay: 350ms; }
.in .ai-list li:nth-child(3) { transition-delay: 500ms; }
.in .ai-list li:nth-child(4) { transition-delay: 650ms; }
.ai-list .ic { width: 26px; height: 26px; padding: 5px; border-radius: 50%; stroke-width: 2.4; flex: none; }
.ai-card--ai .ai-list .ic { background: var(--sky-100); color: var(--indigo-500); }
.ai-card--human .ai-list .ic { background: var(--sky-300); color: var(--navy-900); }
.ai-card--human .card__icon { background: rgba(142, 194, 255, .16); color: var(--sky-300); }
.ai-center {
  margin: var(--s-7) auto 0; max-width: 820px; text-align: center;
  font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; letter-spacing: -.025em; line-height: 1.25;
}
.ai-center mark {
  background: linear-gradient(var(--sky-100), var(--sky-100)) no-repeat 0 100% / 0% 45%;
  color: inherit; padding: 0 .1em; border-radius: 4px;
  transition: background-size 900ms var(--ease-out) 700ms;
}
.in .ai-center mark, .ai-center.in mark { background-size: 100% 45%; }
@media (max-width: 800px) { .ai-grid { grid-template-columns: 1fr; } .ai-card { padding: var(--s-5); } }

/* Ügyfélportál */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.split__copy .checks { margin-top: var(--s-5); }
.split__visual { position: relative; }
@media (max-width: 960px) {
  .split { grid-template-columns: 1fr; gap: var(--s-7); }
  .split__visual { order: 2; max-width: 640px; }
  .split__copy { order: 1; }
}

/* Fenntartás: idővonal */
.timeline { position: relative; margin: var(--s-7) 0 var(--s-4); padding: 0 8px; }
.timeline__track { position: relative; height: 2px; background: var(--line-dark); border-radius: 2px; }
.timeline__fill {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(90deg, var(--indigo-500), var(--sky-300));
  transform: scaleX(0); transform-origin: left;
  transition: transform 2200ms var(--ease-in-out) 200ms;
}
.in .timeline__fill { transform: scaleX(1); }
.timeline__nodes { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: -9px; }
.node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.node:first-child { align-items: flex-start; text-align: left; }
.node:last-child { align-items: flex-end; text-align: right; }
.node i {
  width: 16px; height: 16px; border-radius: 50%; background: var(--navy-800); border: 2px solid var(--line-dark);
  transition: background-color 400ms, border-color 400ms, box-shadow 400ms, transform 400ms var(--ease-out);
}
.in .node i { background: var(--sky-300); border-color: var(--sky-300); }
.in .node:nth-child(1) i { transition-delay: 200ms; }
.in .node:nth-child(2) i { transition-delay: 700ms; }
.in .node:nth-child(3) i { transition-delay: 1200ms; }
.in .node:nth-child(4) i { transition-delay: 1700ms; }
.in .node:nth-child(5) i { transition-delay: 2200ms; }
.node--key i { width: 22px; height: 22px; margin-top: -3px; }
.in .node--key i { box-shadow: 0 0 0 8px rgba(142, 194, 255, .18); animation: ring 2.6s ease-out 2.2s infinite; }
@keyframes ring {
  0% { box-shadow: 0 0 0 0 rgba(142, 194, 255, .5); }
  70% { box-shadow: 0 0 0 16px rgba(142, 194, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(142, 194, 255, 0); }
}
.node span { font-size: 15px; font-weight: 500; color: var(--on-dark-70); }
.node--key span { color: var(--white); font-weight: 700; }
.timeline-note { color: var(--on-dark-70); max-width: 720px; margin-bottom: var(--s-6); }
.dark-callout {
  margin-top: var(--s-6); display: flex; align-items: center; gap: 18px;
  padding: 22px 28px; border-radius: 24px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line-dark);
  font-size: clamp(18px, 1.8vw, 24px); font-weight: 600; letter-spacing: -.02em;
}
.dark-callout img { height: 34px; width: auto; flex: none; }
@media (max-width: 640px) {
  .timeline__nodes { grid-template-columns: repeat(5, 1fr); }
  .node span { font-size: 12px; }
  .node:nth-child(2) span, .node:nth-child(3) span { display: none; }
  .node:nth-child(2) i, .node:nth-child(3) i { width: 12px; height: 12px; }
}

/* Összehasonlítás */
.table-wrap { position: relative; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 24px; }
.compare { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0; font-size: 15px; }
.compare th, .compare td { padding: 18px 20px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--gray-100); }
.compare thead th { font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--gray-600); border-bottom-color: var(--gray-200); }
.compare tbody th { font-weight: 600; color: var(--ink); }
.compare td { color: var(--gray-600); }
.compare .is-grantify { background: var(--sky-100); color: var(--ink); font-weight: 600; }
.compare thead .is-grantify { color: var(--navy-900); border-radius: 20px 20px 0 0; }
.compare thead .is-grantify > span { display: inline-flex; align-items: center; gap: 8px; text-transform: none; font-size: 15px; letter-spacing: 0; }
.compare thead .is-grantify img { height: 22px; width: auto; }
.compare tbody tr:last-child .is-grantify { border-radius: 0 0 20px 20px; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare td.is-grantify > span { display: inline-flex; align-items: center; gap: 8px; }
.compare td.is-grantify .ic { width: 20px; height: 20px; color: var(--indigo-500); stroke-width: 2.4; flex: none; opacity: 0; transform: scale(.5); transition: opacity 400ms, transform 500ms var(--ease-out); }
.in .compare td.is-grantify .ic { opacity: 1; transform: none; }
.compare tbody tr { opacity: 0; transform: translateY(10px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.in .compare tbody tr { opacity: 1; transform: none; }
.in .compare tbody tr:nth-child(1) { transition-delay: 100ms; } .in .compare tbody tr:nth-child(1) .ic { transition-delay: 500ms; }
.in .compare tbody tr:nth-child(2) { transition-delay: 200ms; } .in .compare tbody tr:nth-child(2) .ic { transition-delay: 600ms; }
.in .compare tbody tr:nth-child(3) { transition-delay: 300ms; } .in .compare tbody tr:nth-child(3) .ic { transition-delay: 700ms; }
.in .compare tbody tr:nth-child(4) { transition-delay: 400ms; } .in .compare tbody tr:nth-child(4) .ic { transition-delay: 800ms; }
.in .compare tbody tr:nth-child(5) { transition-delay: 500ms; } .in .compare tbody tr:nth-child(5) .ic { transition-delay: 900ms; }
.in .compare tbody tr:nth-child(6) { transition-delay: 600ms; } .in .compare tbody tr:nth-child(6) .ic { transition-delay: 1000ms; }
.table-note { margin-top: var(--s-4); }
.table-hint { display: none; margin-bottom: var(--s-3); font-size: 13px; color: var(--gray-600); align-items: center; gap: 6px; }
@media (max-width: 800px) { .table-hint { display: flex; } }

/* Biztonság: vízjel */
.watermark {
  position: absolute; right: -40px; bottom: -60px; width: 360px; opacity: .05; pointer-events: none;
  transform: rotate(-8deg);
}

/* Árak */
.pricing-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; margin-bottom: var(--s-4); }
.pricing-head .sec-head { margin-bottom: 0; }
.billing { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; max-width: 360px; text-align: right; }
.switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr;
  padding: 4px; border-radius: var(--r-button); background: var(--gray-50); border: 1px solid var(--gray-200);
}
.switch__thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--r-button);
  background: var(--navy-900); transition: transform 350ms var(--ease-out);
}
.switch[data-billing="yearly"] .switch__thumb { transform: translateX(100%); }
.switch button {
  position: relative; z-index: 1; height: 42px; padding: 0 22px; border-radius: var(--r-button);
  font-size: 15px; font-weight: 600; color: var(--gray-600); transition: color 250ms;
}
.switch button[aria-pressed="true"] { color: var(--white); }
.pricing-intro { margin-bottom: var(--s-6); }
.plan { display: flex; flex-direction: column; padding: var(--s-6) var(--s-5); }
.plan__name { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.plan__for { margin-top: 6px; min-height: 48px; font-size: 15px; color: var(--gray-600); }
.plan__price { margin: var(--s-4) 0; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.plan__price .amount { font-size: 38px; font-weight: 700; letter-spacing: -.04em; }
.plan__price .per { font-size: 16px; color: var(--gray-600); font-weight: 500; }
.plan__price [data-price] { display: none; }
.plan__price [data-price="monthly"] { display: inline; }
.pricing[data-billing="yearly"] .plan__price [data-price="monthly"] { display: none; }
.pricing[data-billing="yearly"] .plan__price [data-price="yearly"] { display: inline; }
.plan__list { display: grid; gap: 12px; margin-bottom: var(--s-5); flex: 1; }
.plan__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.plan__list .ic { width: 20px; height: 20px; color: var(--indigo-500); stroke-width: 2.2; flex: none; margin-top: 2px; }
.fineprint { margin-top: var(--s-5); font-size: 13px; line-height: 1.6; color: var(--gray-600); max-width: 900px; }
@media (max-width: 900px) { .billing { align-items: flex-start; } }

/* GYIK */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s-8); align-items: start; }
.faq-grid .sec-head { position: sticky; top: calc(var(--nav-h) + 32px); margin-bottom: 0; }
.faq { border-top: 1px solid var(--gray-200); }
.faq__item { border-bottom: 1px solid var(--gray-200); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: 22px 0; text-align: left; font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3;
  transition: color 150ms;
}
.faq__q:hover { color: var(--indigo-500); }
.faq__chev {
  flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--white); border: 1px solid var(--gray-200); color: var(--navy-900);
  transition: transform 350ms var(--ease-out), background-color 250ms, color 250ms, border-color 250ms;
}
.faq__chev .ic { width: 18px; height: 18px; }
.faq__q[aria-expanded="true"] .faq__chev { transform: rotate(180deg); background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 400ms var(--ease-out); }
.faq__a > div { overflow: hidden; }
.faq__a p { padding-bottom: 24px; color: var(--gray-600); max-width: 640px; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
@media (max-width: 900px) {
  .faq-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .faq-grid .sec-head { position: static; }
  .faq__q { font-size: 17px; padding: 18px 0; }
}

/* Demó CTA + űrlap */
.cta-card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-950));
  color: var(--white); border-radius: var(--r-container);
  padding: clamp(32px, 5vw, 72px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-7); align-items: start;
}
.cta-card__copy { position: relative; }
.cta-card__copy .lead { margin-top: var(--s-4); }
.cta-card__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--s-5); }
.cta-card__expect { margin-top: var(--s-6); }
.cta-card__expect h3 { font-size: 15px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sky-300); margin-bottom: var(--s-3); }
.cta-card__expect .checks li { color: var(--on-dark-70); }
.cta-card__meta { margin-top: var(--s-4); }
@media (max-width: 960px) { .cta-card { grid-template-columns: 1fr; } }

.form-card { position: relative; background: var(--white); color: var(--ink); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); }
.form-card__title { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.form-card__intro { margin-top: 6px; margin-bottom: var(--s-4); font-size: 14px; color: var(--gray-600); }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--gray-600); }
.field label b { color: var(--alert); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; height: 54px; padding: 0 16px; border-radius: var(--r-input);
  background: var(--gray-50); border: 2px solid transparent; color: var(--ink);
  transition: border-color 150ms, background-color 150ms;
}
.field textarea { height: auto; min-height: 104px; padding: 14px 16px; resize: vertical; }
.field select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235B6474' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.field select:invalid, .field select option[value=""] { color: var(--gray-400); }
.field input::placeholder, .field textarea::placeholder { color: var(--gray-400); }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--indigo-500); background: var(--white); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--alert); }
.field__hint { font-size: 12.5px; color: var(--gray-600); }
.field__error { display: none; font-size: 13px; color: var(--alert); }
.field.has-error .field__error { display: block; }
.field--check { grid-template-columns: auto 1fr; align-items: start; gap: 12px; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; padding: 0; accent-color: var(--indigo-500); border: 0; background: none; }
.field--check label { font-size: 14px; color: var(--ink); }
.field--check .field__error { grid-column: 2; }
.form__honey { display: none; }
.form__alert {
  display: none; padding: 12px 16px; border-radius: var(--r-input);
  background: #FFF1EC; color: #B13A21; font-size: 14px; font-weight: 500;
}
.form__alert.is-visible { display: flex; gap: 8px; align-items: center; }
.form__alert .ic { width: 18px; height: 18px; flex: none; }
.form__foot { font-size: 12.5px; color: var(--gray-600); }

.form-success {
  display: none; text-align: center; padding: var(--s-5) 0;
}
.form-card.is-success .form, .form-card.is-success .form-card__title, .form-card.is-success .form-card__intro { display: none; }
.form-card.is-success .form-success { display: block; animation: enter 600ms var(--ease-out); }
.form-success__icon {
  width: 72px; height: 72px; border-radius: 50%; margin: 0 auto var(--s-4);
  display: grid; place-items: center; background: var(--sky-100); color: var(--indigo-500);
}
.form-success__icon .ic { width: 34px; height: 34px; stroke-width: 2.4; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 700ms var(--ease-out) 300ms forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; }
.form-success p { margin: 10px 0 var(--s-4); color: var(--gray-600); }

/* Kapcsolati panel */
.contact-panel {
  margin-top: var(--s-5); display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap;
  padding: var(--s-5); border-radius: var(--r-card); border: 1px solid var(--gray-200); background: var(--white);
}
.contact-panel h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 4px; }
.contact-panel p { color: var(--gray-600); font-size: 15px; }
.contact-panel__lines { margin-top: 10px; font-size: 14px; color: var(--gray-600); display: flex; flex-wrap: wrap; gap: 8px 16px; }

/* --------------------------------------------------------------------------
   9. Lábléc
   -------------------------------------------------------------------------- */
.footer { background: var(--navy-950); color: var(--white); padding-top: var(--s-8); position: relative; overflow: clip; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s-6); }
.footer__brand img { height: 32px; width: auto; }
.footer__brand p { margin-top: var(--s-4); max-width: 320px; color: var(--on-dark-70); font-size: 15px; }
.footer__col h4 { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--sky-300); margin-bottom: var(--s-3); }
.footer__col ul { display: grid; gap: 8px; }
.footer__col a, .footer__col span { font-size: 15px; color: var(--on-dark-70); transition: color 150ms; }
.footer__col a:hover { color: var(--white); }
.footer__band {
  margin-top: var(--s-7); padding: 18px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark);
  font-size: 14px; color: var(--on-dark-50);
}
.footer__band a { color: var(--on-dark-70); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.footer__band a:hover { color: var(--white); }
.footer__legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding: 22px 0 32px; font-size: 13px; color: var(--on-dark-50); }
.footer__legal ul { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer__legal a, .footer__legal button { color: var(--on-dark-70); font-size: 13px; transition: color 150ms; }
.footer__legal a:hover, .footer__legal button:hover { color: var(--white); }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------------------
   10. Sütisáv és beállítási panel
   -------------------------------------------------------------------------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 120; width: min(440px, calc(100vw - 40px));
  background: var(--white); color: var(--ink); border-radius: 24px; padding: 24px;
  border: 1px solid var(--gray-200); box-shadow: 0 30px 60px -30px rgba(5, 14, 36, .45);
  transform: translateY(24px); opacity: 0; visibility: hidden;
  transition: transform 500ms var(--ease-out), opacity 400ms, visibility 0s 400ms;
}
.cookie.is-visible { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.cookie h2 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.cookie p { margin-top: 6px; font-size: 14px; color: var(--gray-600); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.cookie__link { margin-top: 12px; font-size: 13px; }

.modal {
  position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 20px;
  background: rgba(5, 14, 36, .6);
  opacity: 0; visibility: hidden; transition: opacity 300ms, visibility 0s 300ms;
}
.modal.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal__box {
  width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto;
  background: var(--white); color: var(--ink); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px);
  transform: translateY(16px) scale(.98); transition: transform 400ms var(--ease-out);
}
.modal.is-open .modal__box { transform: none; }
.modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.modal__title { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.modal__close { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--gray-50); flex: none; }
.modal__close .ic { width: 18px; height: 18px; }
.modal__intro { margin-top: 8px; color: var(--gray-600); font-size: 15px; }
.consent { margin-top: var(--s-4); display: grid; gap: 10px; }
.consent__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px; border-radius: 16px; background: var(--gray-50); }
.consent__row h3 { font-size: 15px; font-weight: 600; }
.consent__row p { font-size: 13.5px; color: var(--gray-600); margin-top: 2px; }
.consent__state { font-size: 12px; font-weight: 600; color: var(--gray-600); white-space: nowrap; }
.toggle {
  position: relative; flex: none; width: 48px; height: 28px; border-radius: 999px; background: var(--gray-200);
  transition: background-color 200ms;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white);
  box-shadow: 0 1px 2px rgba(10, 31, 68, .2); transition: transform 250ms var(--ease-out);
}
.toggle[aria-checked="true"] { background: var(--indigo-500); }
.toggle[aria-checked="true"]::after { transform: translateX(20px); }
.toggle[disabled] { background: var(--ok); cursor: not-allowed; }
.toggle[disabled]::after { transform: translateX(20px); }
.consent__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-4); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 140; transform: translate(-50%, 20px);
  padding: 12px 20px; border-radius: var(--r-button); background: var(--navy-900); color: var(--white);
  font-size: 14px; font-weight: 500; opacity: 0; visibility: hidden;
  transition: opacity 300ms, transform 400ms var(--ease-out), visibility 0s 300ms;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }

/* --------------------------------------------------------------------------
   11. Jogi aloldalak és 404
   -------------------------------------------------------------------------- */
.page-head {
  position: relative; overflow: hidden;
  padding-top: calc(var(--nav-h) + 72px); padding-bottom: 80px;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%); color: var(--white);
}
.page-head .title { color: var(--white); max-width: 900px; }
.page-head .lead { margin-top: var(--s-4); }
.page-head__meta { margin-top: var(--s-4); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--on-dark-70); }
.legal { max-width: 780px; padding-block: var(--s-8); }
.legal h2 { font-size: 26px; font-weight: 600; letter-spacing: -.02em; margin: var(--s-6) 0 var(--s-3); }
.legal h2:first-child { margin-top: 0; }
.legal p { margin-bottom: var(--s-3); color: #2B3A57; }
.legal p.muted, .legal .small { color: var(--gray-600); }
.legal dl { display: grid; grid-template-columns: minmax(180px, .6fr) 1.4fr; gap: 12px 24px; padding: var(--s-4); border-radius: 20px; background: var(--gray-50); margin-bottom: var(--s-4); }
.legal dt { font-weight: 600; font-size: 15px; }
.legal dd { margin: 0; color: #2B3A57; }
.legal .back { margin-top: var(--s-6); }
@media (max-width: 640px) { .legal dl { grid-template-columns: 1fr; gap: 4px 0; } .legal dd { margin-bottom: 10px; } }

.error-page {
  min-height: 100vh; display: grid; place-items: center; text-align: center; position: relative; overflow: hidden;
  padding: calc(var(--nav-h) + 40px) var(--gutter) 80px;
  background: linear-gradient(180deg, var(--navy-900) 0%, var(--navy-950) 100%); color: var(--white);
}
.error-page .title { color: var(--white); }
.error-page .lead { margin: var(--s-4) auto 0; }
.error-page__code { font-size: clamp(120px, 24vw, 280px); font-weight: 800; font-style: italic; line-height: 1; letter-spacing: -.06em; color: rgba(142, 194, 255, .08); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -55%); pointer-events: none; user-select: none; }
.error-page .btn { margin-top: var(--s-5); }

/* --------------------------------------------------------------------------
   12. Görgetés-animáció (reveal)
   -------------------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out);
}
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal-group] > * {
  opacity: 0; transform: translateY(20px);
  transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal-group].in > * { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   13. Csökkentett mozgás
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; transition-delay: 0s !important;
  }
  .hero [data-enter], .hero .title .line > span, .hero .mock-wrap, .hero .float-card,
  .js [data-reveal], .js [data-reveal-group] > *, .app [data-pop],
  .ai-list li, .compare tbody tr, .compare td.is-grantify .ic {
    opacity: 1 !important; transform: none !important;
  }
  .mock-wrap [data-reveal-float] { opacity: 1 !important; }
  .steps__fill, .timeline__fill { transform: none !important; }
  .in .step__num { transition: none; }
  .bar > i { width: var(--val, 50%) !important; }
  .ribbon__track { animation: none !important; width: 100%; justify-content: center; }
  .ribbon__track .ribbon__item:not(:first-child) { display: none; }
  .ribbon { -webkit-mask-image: none; mask-image: none; }
  .ai-center mark { background-size: 100% 45% !important; }
  .corner path { stroke-dashoffset: 0 !important; }
  .callout::before { transform: none !important; }
}

/* --------------------------------------------------------------------------
   14. Nyomtatás
   -------------------------------------------------------------------------- */
@media print {
  .nav, .nav-mobile, .cookie, .modal, .toast, .hero__glow, .corner { display: none !important; }
  .hero, .section--navy, .footer, .cta-card, .page-head { background: #fff !important; color: #000 !important; }
  .js [data-reveal], .js [data-reveal-group] > * { opacity: 1 !important; transform: none !important; }
}
