/* ==========================================================================
   Pályázatírók.eu – stíluslap
   Alap: 04_style-guide/tokens.css + palyazatirok-style-guide.md
   ========================================================================== */

/* ---------- Betűtípus (Figtree, saját tárhelyről, OFL licenc) ---------- */
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/figtree-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/assets/fonts/figtree-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Tokenek ---------- */
:root {
  color-scheme: light;
  --font: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --c-green-700: #1D7C54;
  --c-green-900: #01674E;
  --c-green-950: #0B3A2C;
  --c-green-100: #E6F2EC;
  --c-green-050: #F1F8F4;
  --c-green-200: #C9E3D5;
  --c-red-600: #E1070D;
  --c-red-100: #FCE8E8;
  --c-paper: #FAF8F4;
  --c-white: #FFFFFF;
  --c-sand-100: #F5F2EC;
  --c-sand-200: #EFEBE3;
  --c-line: #E3DED4;
  --c-line-strong: #CFC8BA;
  --c-ink-500: #5B6B63;
  --c-ink-700: #33443C;
  --c-ink-900: #16241E;

  --fs-h1: clamp(2.375rem, 1.55rem + 2.9vw, 3.75rem);
  --fs-h2: clamp(1.875rem, 1.475rem + 1.6vw, 2.75rem);
  --fs-h3: clamp(1.25rem, 1.136rem + 0.45vw, 1.5rem);
  --fs-lead: clamp(1.125rem, 1.04rem + 0.34vw, 1.3125rem);
  --fs-body: clamp(1rem, 0.97rem + 0.11vw, 1.0625rem);
  --fs-eyebrow: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --fs-small: 0.875rem;

  --r-card: 20px;
  --r-photo: 20px;
  --r-button: 12px;
  --r-input: 10px;
  --r-pill: 999px;

  --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: 120px;

  --gutter: clamp(20px, 5.5vw, 80px);
  --section: clamp(72px, 4rem + 3.5vw, 120px);
  --header-h: 76px;

  --shadow-soft: 0 8px 24px rgba(22, 36, 30, .06);
  --shadow-lift: 0 18px 44px rgba(22, 36, 30, .10);
  --shadow-float: 0 24px 60px rgba(22, 36, 30, .14);

  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .64, 1);
  --dur: 500ms;
}

/* ---------- Alapok ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--c-ink-900);
  background: var(--c-paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: var(--c-green-700); text-underline-offset: 3px; }
a:hover { color: var(--c-green-900); }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: var(--fs-h1); line-height: 1.08; }
h2 { font-size: var(--fs-h2); line-height: 1.15; }
h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--c-green-700); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--c-green-100); color: var(--c-green-950); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; background: var(--c-green-900); color: #fff;
  border-radius: var(--r-button); font-weight: 600; text-decoration: none;
  transition: top .2s;
}
.skip-link:focus { top: 16px; color: #fff; }

.container { max-width: 1360px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 680px; }

.icon { width: 1.25em; height: 1.25em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Tipográfiai elemek ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-eyebrow); font-weight: 600; letter-spacing: .04em; line-height: 1.4;
  color: var(--c-green-700); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px;
  transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease-out) .1s;
}
.is-visible .eyebrow::before, .eyebrow.is-visible::before, .hero .eyebrow::before { transform: scaleX(1); }
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--c-ink-700); }
.small { font-size: var(--fs-small); line-height: 1.5; }
.muted { color: var(--c-ink-500); }
.section-head { max-width: 780px; }
.section-head h2 { margin-bottom: 16px; }
.section-head .lead { max-width: 680px; }

/* Kitöltendő adatok jelölése (a megrendelőtől várt tartalom) */
.todo {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 2px 10px; border: 1.5px dashed var(--c-line-strong); border-radius: var(--r-pill);
  background: var(--c-sand-100); color: var(--c-ink-500);
  font-size: .82em; font-weight: 500; line-height: 1.5; white-space: nowrap; vertical-align: middle;
  cursor: help;
}
.section--dark .todo, .cta-card .todo, .site-footer .todo {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: rgba(255,255,255,.75);
}

/* ---------- Gombok ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: var(--r-button);
  font-weight: 600; font-size: 1.0625rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; white-space: nowrap;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease-out), box-shadow .25s;
}
.btn .icon { width: 20px; height: 20px; transition: transform .3s var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--c-green-700); color: #fff; border-color: var(--c-green-700); }
.btn--primary:hover { background: var(--c-green-900); border-color: var(--c-green-900); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(1, 103, 78, .25); }
.btn--secondary { background: #fff; color: var(--c-green-900); border-color: var(--c-green-700); }
.btn--secondary:hover { background: var(--c-green-100); color: var(--c-green-950); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--c-green-900); border-color: #fff; }
.btn--light:hover { background: var(--c-green-100); border-color: var(--c-green-100); color: var(--c-green-950); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--c-green-900); border-color: var(--c-line-strong); }
.btn--ghost:hover { border-color: var(--c-green-700); background: var(--c-green-050); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .95rem; border-radius: 10px; }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .6; cursor: progress; transform: none; box-shadow: none; }
.btn[hidden] { display: none; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--c-green-100); }
.text-link { font-weight: 600; text-decoration: underline; }

/* ---------- Fejléc ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(250, 248, 244, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s, background-color .3s;
}
.site-header.is-scrolled { border-color: var(--c-line); box-shadow: 0 6px 24px rgba(22, 36, 30, .05); background: rgba(250, 248, 244, .92); }
.scroll-progress { position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--c-green-700); transform-origin: left; transform: scaleX(0); opacity: 0; transition: opacity .3s; }
.site-header.is-scrolled .scroll-progress { opacity: 1; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--c-green-900); font-weight: 700; font-size: 1.25rem; letter-spacing: -0.01em; }
.brand img { width: 38px; height: auto; transition: transform .4s var(--ease-spring); }
.brand:hover img { transform: rotate(-6deg) scale(1.05); }
.brand:hover { color: var(--c-green-950); }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 6px; list-style: none; }
.main-nav a:not(.btn) {
  position: relative; display: inline-block; padding: 8px 12px; border-radius: 8px;
  color: var(--c-ink-700); font-weight: 500; text-decoration: none; transition: color .2s, background-color .2s;
}
.main-nav a:not(.btn)::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; border-radius: 2px;
  background: var(--c-green-700); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.main-nav a:not(.btn):hover { color: var(--c-green-900); background: var(--c-green-050); }
.main-nav a:not(.btn).is-active { color: var(--c-green-900); }
.main-nav a:not(.btn).is-active::after { transform: scaleX(1); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1.5px solid var(--c-line); border-radius: 10px; background: #fff; cursor: pointer; place-items: center; }
.nav-toggle .icon { width: 24px; height: 24px; color: var(--c-green-900); }
.nav-toggle .icon--x { display: none; }
.nav-toggle[aria-expanded="true"] .icon--menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon--x { display: block; }

@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .nav-toggle { display: grid; }
  .main-nav {
    /* A fejléc backdrop-filter miatt a fixed elem a fejléchez viszonyul, ezért abszolút pozíció a fejléc alá */
    position: absolute; top: 100%; left: 0; right: 0; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    z-index: 55; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 20px var(--gutter) 40px; background: var(--c-paper); border-top: 1px solid var(--c-line);
    overflow-y: auto; transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .3s var(--ease-out), transform .3s var(--ease-out), visibility 0s .3s;
  }
  .main-nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
  .main-nav ul { flex-direction: column; gap: 4px; }
  .main-nav li { opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); transition-delay: calc(60ms * var(--i, 0)); }
  .main-nav.is-open li { opacity: 1; transform: none; }
  .main-nav a:not(.btn) { display: block; font-size: 1.25rem; padding: 14px 12px; border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav .btn { margin-top: 16px; width: 100%; }
}

/* ---------- Szekciók ---------- */
.section { position: relative; padding-block: var(--section); }
.section--white { background: #fff; }
.section--sand { background: var(--c-sand-200); }
.section--dark { background: var(--c-green-900); color: #fff; }
.section--dark .eyebrow { color: #A9E3C8; }
.section--dark .lead { color: rgba(255, 255, 255, .84); }
.section--dark h2 { color: #fff; }
.section--tight { padding-block: calc(var(--section) * .7); }
.section-cta { margin-top: 40px; }

/* Sarok-keret motívum (a logóból) */
.frame { position: relative; --fw: 10px; --fsize: 34%; --frame-inset: 0px; }
.frame::before, .frame::after {
  content: ""; position: absolute; width: var(--fsize); height: var(--fsize); pointer-events: none; z-index: 3;
  transition: transform .8s var(--ease-out), opacity .6s;
}
.frame::before { top: var(--frame-inset); left: var(--frame-inset); border-top: var(--fw) solid var(--c-red-600); border-left: var(--fw) solid var(--c-red-600); transform-origin: top left; }
.frame::after { bottom: var(--frame-inset); right: var(--frame-inset); border-bottom: var(--fw) solid var(--c-green-900); border-right: var(--fw) solid var(--c-green-900); transform-origin: bottom right; }
.frame--light::after { border-color: #A9E3C8; }
.frame[data-animate]::before, .frame[data-animate]::after { transform: scale(0); opacity: 0; }
.frame[data-animate].is-visible::before { transform: scale(1); opacity: 1; transition-delay: .25s; }
.frame[data-animate].is-visible::after { transform: scale(1); opacity: 1; transition-delay: .45s; }

/* ---------- Kártyák ---------- */
.card {
  position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 30px 28px;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--c-green-200); }
.card h3 { margin: 18px 0 10px; }
.card p { color: var(--c-ink-700); }
.icon-bubble {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px;
  background: var(--c-green-100); color: var(--c-green-700); transition: transform .4s var(--ease-spring), background-color .3s;
}
.icon-bubble .icon { width: 24px; height: 24px; }
.card:hover .icon-bubble { transform: scale(1.08) rotate(-4deg); background: var(--c-green-200); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(48px, 6vw, 96px) clamp(64px, 7vw, 112px); }
.hero__bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero__bg-corner { position: absolute; width: min(38vw, 460px); height: min(38vw, 460px); opacity: .9; }
.hero__bg-corner--tl { top: -8%; left: -6%; border-top: 18px solid var(--c-red-100); border-left: 18px solid var(--c-red-100); animation: drift-a 16s ease-in-out infinite; }
.hero__bg-corner--br { bottom: -10%; right: -6%; border-bottom: 18px solid var(--c-green-100); border-right: 18px solid var(--c-green-100); animation: drift-b 18s ease-in-out infinite; }
.hero__bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--c-line) 1.2px, transparent 1.3px);
  background-size: 28px 28px; opacity: .55;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 70% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 60% 70% at 70% 45%, #000 20%, transparent 75%);
}
@keyframes drift-a { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(14px, 18px); } }
@keyframes drift-b { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-16px, -14px); } }

.hero__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero__content { max-width: 760px; }
.hero__title .line { display: block; }
.hero__title { margin: 0 0 22px; color: var(--c-green-950); }
.hero__title .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .w > span { display: inline-block; transform: translateY(110%); animation: word-up .8s var(--ease-out) forwards; animation-delay: calc(120ms + var(--i) * 70ms); }
@keyframes word-up { to { transform: translateY(0); } }
.hero__lead { margin-bottom: 30px; max-width: 560px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--c-ink-700); font-size: .98rem; }
.trust .check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 999px; background: var(--c-green-100); color: var(--c-green-700); }
.trust .check .icon { width: 14px; height: 14px; stroke-width: 2.5; }

/* Hero belépő animáció (lépcsőzetes) */
.hero [data-hero] { opacity: 0; transform: translateY(14px); animation: fade-up .7s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
@keyframes fade-up { to { opacity: 1; transform: none; } }

/* ---------- Hero vizuál: az ügy állapota (illusztráció) ---------- */
.hero__visual { position: relative; display: flex; justify-content: center; }
.board { position: relative; width: min(100%, 520px); padding: 26px; --fw: 9px; --fsize: 30%; }
.board__main {
  position: relative; z-index: 2; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-card);
  padding: 26px 26px 22px; box-shadow: var(--shadow-float);
}
.board__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.board__title { font-weight: 700; font-size: 1.05rem; color: var(--c-green-950); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--c-green-100); color: var(--c-green-900); white-space: nowrap; }
.pill--live::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--c-green-700); box-shadow: 0 0 0 0 rgba(29, 124, 84, .5); animation: pulse-dot 2.2s ease-out infinite; }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(29, 124, 84, .45); } 70% { box-shadow: 0 0 0 8px rgba(29, 124, 84, 0); } 100% { box-shadow: 0 0 0 0 rgba(29, 124, 84, 0); } }

.stepper { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 22px; }
.stepper::before { content: ""; position: absolute; top: 15px; left: 12.5%; right: 12.5%; height: 2px; background: var(--c-line); }
.stepper::after { content: ""; position: absolute; top: 15px; left: 12.5%; width: 25%; height: 2px; background: var(--c-green-700); transform-origin: left; transform: scaleX(0); animation: grow-x 1.1s var(--ease-out) 1.1s forwards; }
@keyframes grow-x { to { transform: scaleX(1); } }
.stepper__item { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: .78rem; font-weight: 600; color: var(--c-ink-500); }
.stepper__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; background: #fff; border: 2px solid var(--c-line); color: var(--c-ink-500); font-size: .8rem; transition: all .4s; }
.stepper__dot .icon { width: 15px; height: 15px; stroke-width: 2.5; }
.stepper__item--done .stepper__dot { background: var(--c-green-700); border-color: var(--c-green-700); color: #fff; }
.stepper__item--done { color: var(--c-green-900); }
.stepper__item--active .stepper__dot { border-color: var(--c-green-700); color: var(--c-green-700); animation: ring 2.4s ease-out 1.6s infinite; }
.stepper__item--active { color: var(--c-green-950); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(29, 124, 84, .35); } 60% { box-shadow: 0 0 0 10px rgba(29, 124, 84, 0); } 100% { box-shadow: 0 0 0 0 rgba(29, 124, 84, 0); } }

.meter { display: flex; align-items: center; justify-content: space-between; font-size: .82rem; font-weight: 600; color: var(--c-ink-500); margin-bottom: 8px; }
.meter b { color: var(--c-green-900); }
.bar { height: 8px; border-radius: 999px; background: var(--c-sand-200); overflow: hidden; }
.bar > span { display: block; height: 100%; width: var(--p, 50%); background: var(--c-green-700); border-radius: inherit; transform-origin: left; transform: scaleX(0); animation: grow-x 1.3s var(--ease-out) 1.3s forwards; }

.board__list { list-style: none; margin-top: 20px; display: grid; gap: 8px; }
.board__row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--c-paper); font-size: .9rem; font-weight: 500; opacity: 0; transform: translateX(-8px); animation: slide-in .6s var(--ease-out) forwards; animation-delay: calc(1500ms + var(--i) * 160ms); }
@keyframes slide-in { to { opacity: 1; transform: none; } }
.board__row .status { margin-left: auto; font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status--ok { background: var(--c-green-100); color: var(--c-green-900); }
.status--wait { background: var(--c-sand-200); color: var(--c-ink-700); }
.status--todo { background: var(--c-red-100); color: #B00509; }
.board__row .dot { width: 8px; height: 8px; border-radius: 999px; flex: none; }
.dot--ok { background: var(--c-green-700); } .dot--wait { background: var(--c-line-strong); } .dot--todo { background: var(--c-red-600); }

.board__float { position: absolute; z-index: 4; opacity: 0; animation: fade-up .7s var(--ease-out) forwards; }
.fcard {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #fff; border: 1px solid var(--c-line);
  border-radius: 16px; box-shadow: var(--shadow-lift); font-size: .85rem; line-height: 1.35;
  animation: bob 6s ease-in-out 3.2s infinite;
}
.board__float--2 .fcard { animation-duration: 7s; animation-delay: 3.6s; background: var(--c-green-950); border-color: var(--c-green-950); color: #fff; }
.board__float--2 .fcard b { color: #fff; }
.board__float--2 .fcard span { color: rgba(255,255,255,.72); }
.board__float b { display: block; font-size: .9rem; color: var(--c-green-950); }
.board__float span { color: var(--c-ink-500); }
.board__float .icon-bubble { width: 42px; height: 42px; }
.board__float .icon-bubble .icon { width: 20px; height: 20px; }
.board__float--1 { top: -30px; right: -22px; animation-delay: 1.9s; }
.board__float--2 { bottom: -32px; left: -26px; animation-delay: 2.2s; }
.board__float--2 .icon-bubble { background: rgba(255,255,255,.14); color: #fff; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 12px; }
  .board { width: min(100%, 460px); padding: 18px; --fw: 7px; }
  .board__float--1 { right: -4px; top: -30px; }
  .board__float--2 { left: -4px; bottom: -30px; }
}
@media (max-width: 480px) {
  .fcard { padding: 10px 12px; font-size: .78rem; gap: 10px; }
  .board__float .icon-bubble { width: 36px; height: 36px; }
  .board__main { padding: 20px 18px 18px; }
  .board__title { font-size: .95rem; }
  .stepper__item { font-size: .68rem; }
}

/* ---------- Probléma ---------- */
.problem-cards { margin-top: 44px; }
.transition-note {
  display: flex; gap: 16px; align-items: flex-start; margin-top: 44px; max-width: 800px;
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem); font-weight: 600; line-height: 1.4; color: var(--c-green-950);
}
.transition-note .icon-bubble { flex: none; width: 44px; height: 44px; }
.transition-note .icon-bubble .icon { width: 20px; height: 20px; }

/* ---------- Szolgáltatás ---------- */
.service__grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.feature-list { list-style: none; display: grid; gap: 14px; margin-top: 30px; }
.feature {
  display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start;
  padding: 20px 22px; background: #fff; border: 1px solid var(--c-line); border-radius: 16px;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.feature:hover { transform: translateX(6px); box-shadow: var(--shadow-soft); border-color: var(--c-green-200); }
.feature h3 { font-size: 1.15rem; margin-bottom: 4px; }
.feature p { color: var(--c-ink-700); font-size: 1rem; }

/* Illusztráció: dokumentumok egy kézben */
.docs-illo { padding: 28px; }
.docs-illo__stage { position: relative; height: 420px; background: var(--c-sand-200); border-radius: var(--r-photo); overflow: hidden; }
.docs-illo__stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--c-line-strong) 1px, transparent 1.1px); background-size: 22px 22px; opacity: .45; }
.doc {
  position: absolute; width: 150px; height: 190px; background: #fff; border-radius: 12px; border: 1px solid var(--c-line);
  box-shadow: 0 10px 26px rgba(22, 36, 30, .10); padding: 14px; display: flex; flex-direction: column; gap: 9px;
  transition: transform 1s var(--ease-out), opacity .6s; opacity: 0;
}
.doc__tag { align-self: flex-start; font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--c-green-900); background: var(--c-green-100); padding: 3px 8px; border-radius: 999px; margin-bottom: 4px; }
.doc__line { height: 7px; border-radius: 4px; background: var(--c-sand-200); }
.doc__line--short { width: 60%; } .doc__line--mid { width: 80%; }
.doc--1 { left: 8%; top: 8%; transform: translate(-140px, -80px) rotate(-18deg); }
.doc--2 { left: 34%; top: 4%; transform: translate(40px, -160px) rotate(10deg); }
.doc--3 { left: 60%; top: 10%; transform: translate(160px, -60px) rotate(20deg); }
.is-visible .doc { opacity: 1; }
.is-visible .doc--1 { transform: translate(52px, 16px) rotate(-8deg); transition-delay: .2s; }
.is-visible .doc--2 { transform: translate(4px, 0) rotate(0deg); transition-delay: .35s; }
.is-visible .doc--3 { transform: translate(-46px, 18px) rotate(8deg); transition-delay: .5s; }
.folder {
  position: absolute; left: 50%; bottom: 26px; width: 300px; transform: translate(-50%, 40px); opacity: 0;
  transition: transform .9s var(--ease-out) .7s, opacity .6s .7s;
}
.is-visible .folder { transform: translate(-50%, 0); opacity: 1; }
.folder__tab { width: 110px; height: 18px; background: var(--c-green-700); border-radius: 8px 8px 0 0; margin-left: 14px; }
.folder__body { background: var(--c-green-900); color: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: 0 18px 40px rgba(1, 103, 78, .28); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.folder__title { font-weight: 700; }
.folder__sub { display: block; font-size: .78rem; color: rgba(255, 255, 255, .7); font-weight: 500; }
.folder__status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--c-green-900); font-size: .8rem; font-weight: 700; transform: scale(.6); opacity: 0; transition: transform .6s var(--ease-spring) 1.4s, opacity .4s 1.4s; }
.is-visible .folder__status { transform: scale(1); opacity: 1; }
.folder__status .icon { width: 15px; height: 15px; stroke-width: 2.5; }
.illo-caption { margin-top: 12px; font-size: .8rem; color: var(--c-ink-500); text-align: center; }
@media (max-width: 960px) { .service__grid { grid-template-columns: 1fr; } .docs-illo { order: 2; max-width: 560px; margin-inline: auto; width: 100%; } }
@media (max-width: 520px) { .docs-illo { padding: 18px; --fw: 7px; } .docs-illo__stage { height: 360px; } .doc { width: 118px; height: 150px; } .folder { width: min(260px, 86%); } .is-visible .doc--1 { transform: translate(28px, 12px) rotate(-8deg); } .is-visible .doc--3 { transform: translate(-30px, 14px) rotate(8deg); } }

/* ---------- Folyamat (4 lépés) ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.steps::before, .steps::after { content: ""; position: absolute; top: 26px; left: 26px; right: calc(25% - 44px); height: 2px; border-radius: 2px; }
.steps::before { background: var(--c-line); }
.steps::after { background: var(--c-green-700); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease-out) .2s; }
.steps.is-visible::after { transform: scaleX(1); }
.step { position: relative; display: flex; flex-direction: column; }
.step__num {
  position: relative; z-index: 1; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px;
  background: var(--c-green-700); color: #fff; font-weight: 700; font-size: 1.15rem; box-shadow: 0 0 0 6px var(--c-paper);
  transform: scale(.3); opacity: 0; transition: transform .6s var(--ease-spring), opacity .3s; transition-delay: calc(.15s + var(--i) * .3s);
}
.section--white .step__num { box-shadow: 0 0 0 6px #fff; }
.is-visible .step__num { transform: scale(1); opacity: 1; }
.step h3 { margin: 18px 0 12px; }
.step__block { border-radius: 12px; padding: 14px 16px; font-size: .95rem; line-height: 1.5; margin-top: 10px; }
.step__block b { display: block; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; font-weight: 700; }
.step__block--we { background: var(--c-green-100); color: var(--c-green-950); }
.step__block--we b { color: var(--c-green-700); }
.step__block--you { background: var(--c-sand-200); color: var(--c-ink-900); }
.step__block--you b { color: var(--c-ink-500); }
.step__time { margin-top: 12px; font-size: .85rem; color: var(--c-ink-500); }
.band {
  position: relative; display: flex; align-items: center; gap: 18px; margin-top: 48px; padding: 24px 28px;
  background: var(--c-green-100); border-radius: 16px; overflow: hidden;
  font-size: clamp(1.125rem, 1rem + .6vw, 1.5rem); font-weight: 700; color: var(--c-green-950); letter-spacing: -0.01em;
}
.band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--c-red-600); transform: scaleY(0); transform-origin: top; transition: transform .7s var(--ease-out) .3s; }
.is-visible .band::before, .band.is-visible::before { transform: scaleY(1); }
.band .icon-bubble { flex: none; background: #fff; }
.band__note { margin-top: 12px; font-size: .9rem; color: var(--c-ink-500); }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; } .steps::before, .steps::after { display: none; } }
@media (max-width: 640px) {
  .steps { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
  .steps::before, .steps::after { display: block; top: 26px; bottom: 26px; left: 25px; right: auto; width: 2px; height: auto; }
  .steps::after { transform: scaleY(0); transform-origin: top; }
  .steps.is-visible::after { transform: scaleY(1); }
  .step { padding-left: 70px; }
  .step__num { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: 10px; }
}

/* ---------- Utánkövetés (sötét) ---------- */
.section--dark .deco-corner { position: absolute; width: min(28vw, 320px); height: min(28vw, 320px); pointer-events: none; opacity: .9; }
.deco-corner--tl { top: 0; left: 0; border-top: 14px solid var(--c-red-600); border-left: 14px solid var(--c-red-600); }
.deco-corner--br { bottom: 0; right: 0; border-bottom: 14px solid var(--c-green-700); border-right: 14px solid var(--c-green-700); }
.timeline { position: relative; margin: 56px 0 48px; padding-top: 56px; }
.timeline__label {
  position: absolute; top: 0; left: calc(100% / 12 * 5); width: 50%; margin: 0; text-align: center;
  font-size: .9rem; font-weight: 700; color: #fff; padding-bottom: 8px; border-bottom: 2px solid #A9E3C8;
  opacity: 0; transform: translateY(6px); transition: opacity .6s 1.1s, transform .6s var(--ease-out) 1.1s;
}
.timeline__label::before, .timeline__label::after { content: ""; position: absolute; bottom: -12px; height: 12px; width: 2px; background: #A9E3C8; }
.timeline__label::before { left: 0; } .timeline__label::after { right: -2px; }
.timeline.is-visible .timeline__label { opacity: 1; transform: none; }
.timeline__body { position: relative; }
.timeline__track { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 11px; height: 2px; }
.timeline__base { position: absolute; inset: 0; background: rgba(255, 255, 255, .28); }
.timeline__fill { position: absolute; top: -1px; bottom: -1px; left: 40%; right: 0; background: #A9E3C8; border-radius: 3px; transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--ease-out) .5s; box-shadow: 0 0 14px rgba(169, 227, 200, .55); }
.timeline.is-visible .timeline__fill { transform: scaleX(1); }
.timeline__points { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); }
.timeline__point { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 0 6px; font-size: .9rem; font-weight: 600; color: rgba(255, 255, 255, .78); }
.timeline__dot { position: relative; z-index: 1; flex: none; width: 24px; height: 24px; border-radius: 999px; background: var(--c-green-900); border: 3px solid rgba(255, 255, 255, .55); transition: border-color .5s, background-color .5s; transition-delay: calc(.6s + var(--i, 0) * .25s); }
.timeline.is-visible .timeline__point--after .timeline__dot { border-color: #A9E3C8; background: #A9E3C8; }
.timeline__point--win { color: #fff; }
.timeline__point--win .timeline__dot { width: 30px; height: 30px; margin-top: -3px; background: var(--c-red-600); border-color: #fff; }
.timeline.is-visible .timeline__point--win .timeline__dot { animation: ring-red 2.6s ease-out 1.2s infinite; }
@keyframes ring-red { 0% { box-shadow: 0 0 0 0 rgba(225, 7, 13, .55); } 60% { box-shadow: 0 0 0 14px rgba(225, 7, 13, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 7, 13, 0); } }
.timeline__point--win b { display: block; font-size: 1rem; }
.timeline__point small { display: none; margin-top: 4px; font-size: .78rem; font-weight: 500; color: #A9E3C8; }
.aftercare__text { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 40px; }
.aftercare__text p { color: rgba(255, 255, 255, .86); }
.aftercare__risk { border-left: 3px solid var(--c-red-600); padding-left: 20px; }
.section--dark .card { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.section--dark .card:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); box-shadow: 0 18px 44px rgba(0, 0, 0, .18); }
.section--dark .card p { color: rgba(255, 255, 255, .82); }
.section--dark .card h3 { color: #fff; }
.section--dark .icon-bubble { background: rgba(255, 255, 255, .12); color: #fff; }
.section--dark .card:hover .icon-bubble { background: rgba(255, 255, 255, .2); }
@media (max-width: 860px) {
  .aftercare__text { grid-template-columns: 1fr; gap: 20px; }
  .timeline { padding-top: 0; margin: 40px 0; }
  .timeline__label { display: none; }
  .timeline__point small { display: block; }
  .timeline__label::before, .timeline__label::after { display: none; }
  .timeline__label span { display: inline-block; padding: 6px 12px; border: 1px solid #A9E3C8; border-radius: 999px; font-size: .85rem; }
  .timeline__points { grid-template-columns: 1fr; grid-template-rows: repeat(6, 64px); }
  .timeline__point { flex-direction: row; text-align: left; align-items: center; gap: 18px; padding: 0; }
  .timeline__point--win .timeline__dot { margin-top: 0; margin-left: -3px; }
  .timeline__point--win .timeline__dot + span { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
  .timeline__point small { margin-top: 0; }
  .timeline__track { left: 11px; right: auto; width: 2px; top: 32px; bottom: 32px; height: auto; }
  .timeline__fill { left: -1px; right: -1px; top: 40%; bottom: 0; transform: scaleY(0); transform-origin: top; }
  .timeline.is-visible .timeline__fill { transform: scaleY(1); }
}

/* ---------- Feladatmegosztás ---------- */
.split { display: grid; grid-template-columns: .85fr 1.15fr; gap: 24px; margin-top: 44px; align-items: start; }
.split__col { border-radius: var(--r-card); padding: 32px; }
.split__col--you { background: var(--c-sand-200); }
.split__col--we { background: var(--c-green-100); }
.split__col h3 { margin-bottom: 18px; display: flex; align-items: center; gap: 12px; }
.split__col h3 .icon-bubble { width: 40px; height: 40px; background: #fff; }
.split__col h3 .icon-bubble .icon { width: 20px; height: 20px; }
.checklist { list-style: none; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.5; }
.checklist .check { flex: none; display: grid; place-items: center; width: 24px; height: 24px; margin-top: 2px; border-radius: 999px; background: #fff; color: var(--c-green-700); }
.checklist .check .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.split__col--you .checklist .check { color: var(--c-ink-700); }
[data-reveal-stagger] > * { opacity: 0; transform: translateY(12px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.is-visible[data-reveal-stagger] > *, .is-visible [data-reveal-stagger] > * { opacity: 1; transform: none; }

.portal-row { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 40px; align-items: center; margin-top: 36px; }
.portal { position: relative; background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-card); padding: 22px 22px 18px; box-shadow: var(--shadow-soft); font-size: .9rem; }
.portal__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.portal__title { font-weight: 700; color: var(--c-green-950); font-size: 1rem; }
.portal__count { font-size: .82rem; color: var(--c-ink-500); font-weight: 600; }
.portal__count b { color: var(--c-green-900); }
.portal .bar > span { animation: none; transform: scaleX(1); transition: width 1s var(--ease-out); }
.portal__list { list-style: none; margin-top: 16px; display: grid; gap: 8px; }
.portal__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--c-paper); font-weight: 500; }
.badge { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; transition: opacity .5s, transform .5s var(--ease-spring); }
.badge .icon { width: 13px; height: 13px; stroke-width: 2.5; }
.badge--ok { background: var(--c-green-100); color: var(--c-green-900); }
.badge--wait { background: var(--c-sand-200); color: var(--c-ink-700); }
.badge--missing { background: var(--c-red-100); color: #B00509; }
.portal__row--pending .badge--ok { position: absolute; right: 12px; opacity: 0; transform: scale(.7); }
.portal__row--pending.is-done .badge--ok { opacity: 1; transform: scale(1); }
.portal__row--pending.is-done .badge--missing { opacity: 0; transform: scale(.7); }
.portal__caption { margin-top: 12px; font-size: .78rem; color: var(--c-ink-500); }
.portal-row__text { font-size: var(--fs-lead); color: var(--c-ink-700); max-width: 520px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .portal-row { grid-template-columns: 1fr; gap: 24px; } }

/* ---------- Máshol nyertél? (utánkövetés átvétele) ---------- */
.handover {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 24px 28px; align-items: center;
  background: var(--c-sand-200); border-radius: var(--r-card); padding: clamp(28px, 4vw, 44px);
  --fw: 8px; --fsize: 120px; --frame-inset: -10px;
}
.handover__icon { width: 64px; height: 64px; background: #fff; }
.handover__icon .icon { width: 28px; height: 28px; }
.handover__text h2 { font-size: clamp(1.5rem, 1.25rem + 1vw, 2.125rem); margin-bottom: 10px; }
.handover__text p { color: var(--c-ink-700); max-width: 640px; }
.handover__btn { white-space: nowrap; }
@media (max-width: 860px) {
  .handover { grid-template-columns: 1fr; gap: 18px; }
  .handover__btn { justify-self: start; }
}

/* ---------- AI és ember ---------- */
.ai-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ai-flow { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.ai-flow__node {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 32px 20px 28px; background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--r-card);
  transition: transform .4s var(--ease-out), box-shadow .4s, border-color .3s;
}
.ai-flow__node:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); border-color: var(--c-green-200); }
.ai-flow__node .icon-bubble { margin-bottom: 10px; }
.ai-flow__node b { font-size: 1.15rem; color: var(--c-green-950); }
.ai-flow__node > span:not(.icon-bubble) { font-size: .95rem; color: var(--c-ink-700); }
.ai-flow__node--human { background: var(--c-green-100); border-color: var(--c-green-200); }
.ai-flow__node--human .icon-bubble { background: var(--c-green-900); color: #fff; }
.ai-flow__node--human::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; border-radius: 0 0 var(--r-card) var(--r-card); background: var(--c-green-700); }
.ai-flow__arrow { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); color: var(--c-green-700); }
.ai-flow__arrow .icon { width: 20px; height: 20px; stroke-width: 2.2; }
@media (max-width: 900px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-flow { max-width: 560px; }
}
@media (max-width: 480px) {
  .ai-flow { grid-template-columns: 1fr; justify-items: stretch; }
  .ai-flow__arrow { justify-self: center; transform: rotate(90deg); }
}

/* ---------- Lehetőségek és helyzetek ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 40px; list-style: none; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--c-green-100); color: var(--c-green-900); font-weight: 600; font-size: .95rem; transition: transform .3s var(--ease-spring), background-color .3s, color .3s; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--c-green-700); }
.tag:hover { transform: translateY(-3px); background: var(--c-green-900); color: #fff; }
.tag:hover::before { background: #fff; }
[data-reveal-stagger] .tag { transition: opacity var(--dur) var(--ease-out), transform .5s var(--ease-spring), background-color .3s, color .3s; }

/* ---------- GYIK ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 380px) 1fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq { border-top: 1px solid var(--c-line); }
.faq__item { border-bottom: 1px solid var(--c-line); }
.faq__item h3 { margin: 0; font-size: 1rem; }
.faq__q {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 4px;
  background: none; border: 0; text-align: left; cursor: pointer; font-weight: 600; font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); line-height: 1.35; color: var(--c-ink-900);
  transition: color .2s;
}
.faq__q:hover { color: var(--c-green-900); }
.faq__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 999px; background: var(--c-green-100); transition: background-color .3s, transform .4s var(--ease-out); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--c-green-700); border-radius: 2px; transition: transform .35s var(--ease-out), background-color .3s; }
.faq__icon::before { width: 14px; height: 2px; transform: translate(-50%, -50%); }
.faq__icon::after { width: 2px; height: 14px; transform: translate(-50%, -50%); }
.faq__item.is-open .faq__icon { background: var(--c-green-700); transform: rotate(180deg); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) scaleY(0); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a p { padding: 0 4px 24px; color: var(--c-ink-700); max-width: 680px; opacity: 0; transform: translateY(-6px); transition: opacity .4s .1s, transform .4s var(--ease-out) .1s; }
.faq__item.is-open .faq__a p { opacity: 1; transform: none; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }

/* ---------- Záró CTA + űrlap ---------- */
.cta-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: clamp(32px, 4vw, 64px); align-items: start;
  background: var(--c-green-900); color: #fff; border-radius: 28px; padding: clamp(32px, 4.5vw, 64px);
  --fw: 12px; --fsize: 220px; --frame-inset: -14px;
}
.cta-card.frame::after { border-color: var(--c-green-700); }
.cta-card .eyebrow { color: #A9E3C8; }
.cta-card h2 { color: #fff; margin-bottom: 16px; }
.cta-card .lead { color: rgba(255, 255, 255, .85); margin-bottom: 32px; }
.cta-card__btn { margin-bottom: 8px; }
.cta-points { list-style: none; display: grid; gap: 16px; margin-bottom: 36px; }
.cta-points li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.cta-points .icon-bubble { width: 44px; height: 44px; background: rgba(255, 255, 255, .12); color: #fff; }
.cta-points .icon-bubble .icon { width: 20px; height: 20px; }
.cta-points b { display: block; margin-bottom: 2px; }
.cta-points span { color: rgba(255, 255, 255, .82); }
.cta-contact { padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .18); }
.cta-contact p { color: rgba(255, 255, 255, .85); margin-bottom: 10px; font-weight: 600; }
.cta-contact ul { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.cta-contact li { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .9); }
.cta-contact a { color: #fff; }

.form-card { background: #fff; color: var(--c-ink-900); border-radius: 22px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-float); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form-card__intro { color: var(--c-ink-500); font-size: .95rem; margin-bottom: 20px; }

.seg { position: relative; display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--c-sand-200); border-radius: 12px; margin-bottom: 22px; }
.seg__thumb { position: absolute; z-index: 0; background: #fff; border-radius: 9px; box-shadow: 0 2px 8px rgba(22, 36, 30, .12); transition: transform .35s var(--ease-out), width .35s var(--ease-out), height .35s; left: 0; top: 0; }
.seg__opt { position: relative; z-index: 1; flex: 1 1 auto; }
.seg__opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg__opt span { display: block; padding: 10px 14px; border-radius: 9px; text-align: center; font-size: .92rem; font-weight: 600; color: var(--c-ink-500); cursor: pointer; white-space: nowrap; transition: color .25s; }
.seg__opt input:checked + span { color: var(--c-green-950); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--c-green-700); outline-offset: 2px; }
.seg__opt:hover span { color: var(--c-green-900); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 600; color: var(--c-ink-700); }
.field .req { color: var(--c-red-600); display: none; }
.field.is-required .req { display: inline; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border: 1.5px solid var(--c-line); border-radius: var(--r-input);
  background: #fff; font: inherit; font-size: 1rem; color: var(--c-ink-900); transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 100px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9AA59F; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--c-green-700); box-shadow: 0 0 0 3px rgba(29, 124, 84, .15); }
.field select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235B6B63' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.field select:invalid, .field select.is-placeholder { color: #9AA59F; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--c-red-600); }
.field__error { display: none; font-size: .85rem; color: #B00509; font-weight: 500; }
.field.has-error .field__error { display: block; animation: shake .4s var(--ease-out); }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.field__hint { font-size: .8rem; color: var(--c-ink-500); }
.field[hidden] { display: none; }
.form-help { margin: 14px 0 0; font-size: .82rem; color: var(--c-ink-500); }
.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 16px; font-size: .9rem; color: var(--c-ink-700); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--c-green-700); }
.consent.has-error { color: #B00509; }
.consent .field__error { display: none; }
.consent.has-error .field__error { display: block; margin-left: 32px; }
.consent-wrap { margin-top: 16px; }
.consent-wrap .field__error { display: none; font-size: .85rem; color: #B00509; font-weight: 500; margin-top: 6px; }
.consent-wrap.has-error .field__error { display: block; }
.consent-wrap.has-error .consent { color: #B00509; }
.form-actions { margin-top: 22px; display: grid; gap: 12px; }
.form-status { display: none; padding: 14px 16px; border-radius: 12px; font-size: .92rem; font-weight: 500; }
.form-status.is-error { display: block; background: var(--c-red-100); color: #B00509; }
.form-status.is-info { display: block; background: var(--c-green-100); color: var(--c-green-950); }
.form-privacy { margin-top: 14px; font-size: .82rem; color: var(--c-ink-500); }
.form-success { display: none; text-align: center; padding: 24px 8px; }
.form-success .icon-bubble { width: 72px; height: 72px; margin: 0 auto 18px; background: var(--c-green-100); animation: pop .6s var(--ease-spring); }
.form-success .icon-bubble .icon { width: 32px; height: 32px; stroke-width: 2.2; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--c-ink-700); max-width: 420px; margin: 0 auto; }
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }
@media (max-width: 1024px) { .cta-card { grid-template-columns: 1fr; --fsize: 160px; --fw: 10px; } .form-card { max-width: 640px; } }
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .cta-card { border-radius: 22px; --frame-inset: -10px; --fsize: 110px; --fw: 8px; }
  .seg { flex-direction: column; }
  .seg__opt span { font-size: .92rem; padding: 11px 12px; }
}

/* ---------- Lábléc ---------- */
.site-footer { position: relative; background: var(--c-green-950); color: rgba(255, 255, 255, .8); padding-top: 72px; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; right: -40px; bottom: -60px; width: 360px; height: 360px; background: url('/assets/img/logo/logo-negativ-keretes-640.png') center / contain no-repeat; opacity: .05; pointer-events: none; }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand { display: inline-flex; align-items: center; gap: 12px; color: #fff; font-weight: 700; font-size: 1.25rem; text-decoration: none; margin-bottom: 16px; }
.footer-brand img { width: 38px; height: auto; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; letter-spacing: 0; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a { color: rgba(255, 255, 255, .8); text-decoration: none; transition: color .2s, transform .2s; display: inline-flex; align-items: center; gap: 8px; }
.site-footer a:hover { color: #fff; }
.footer-desc { max-width: 380px; }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-contact .icon { color: #A9E3C8; }
.footer-grantify { position: relative; border-top: 1px solid rgba(255, 255, 255, .12); border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; font-size: .92rem; color: rgba(255, 255, 255, .62); }
.footer-grantify a { color: rgba(255, 255, 255, .85); text-decoration: underline; text-underline-offset: 3px; display: inline; }
.footer-bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding: 22px 0 32px; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-bottom .link-btn { color: rgba(255, 255, 255, .8); text-decoration: none; }
.footer-bottom .link-btn:hover, .footer-bottom a:hover { color: #fff; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Sütiértesítő ---------- */
.cookie-banner {
  position: fixed; z-index: 80; left: 20px; bottom: 20px; width: min(460px, calc(100% - 40px));
  background: #fff; color: var(--c-ink-900); border: 1px solid var(--c-line); border-radius: 18px; padding: 22px 22px 20px;
  box-shadow: var(--shadow-float); transform: translateY(24px); opacity: 0; visibility: hidden;
  transition: transform .5s var(--ease-out), opacity .4s, visibility 0s .5s;
}
.cookie-banner.is-visible { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.cookie-banner h2 { font-size: 1.1rem; margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.cookie-banner h2 .icon { color: var(--c-green-700); width: 22px; height: 22px; }
.cookie-banner p { font-size: .9rem; color: var(--c-ink-700); margin-bottom: 16px; }
.cookie-banner__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-banner__actions .btn { min-height: 42px; padding: 0 16px; font-size: .9rem; border-radius: 10px; }
.cookie-banner__actions .btn--text { background: none; border-color: transparent; color: var(--c-green-900); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions .btn--text:hover { background: var(--c-green-050); }

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(11, 58, 44, .5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.modal.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.modal__dialog { width: min(560px, 100%); max-height: min(90vh, 720px); overflow: auto; background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow-float); transform: translateY(16px) scale(.98); transition: transform .35s var(--ease-out); }
.modal.is-open .modal__dialog { transform: none; }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.modal__head h2 { font-size: 1.35rem; }
.modal__close { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--c-line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.modal__close .icon { width: 18px; height: 18px; }
.modal__close:hover { background: var(--c-sand-100); }
.modal__intro { color: var(--c-ink-700); font-size: .92rem; margin-bottom: 16px; }
.cookie-opt { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--c-line); }
.cookie-opt:last-of-type { border-bottom: 1px solid var(--c-line); }
.cookie-opt b { display: block; margin-bottom: 2px; }
.cookie-opt p { font-size: .88rem; color: var(--c-ink-700); }
.switch { position: relative; flex: none; width: 50px; height: 28px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--c-line-strong); transition: background-color .25s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 999px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .25s var(--ease-out); }
.switch input:checked + span { background: var(--c-green-700); }
.switch input:checked + span::after { transform: translateX(22px); }
.switch input:disabled + span { background: var(--c-green-900); opacity: .55; cursor: not-allowed; }
.switch input:focus-visible + span { outline: 3px solid var(--c-green-700); outline-offset: 2px; }
.modal__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.modal__actions a { font-size: .9rem; }
.toast { position: fixed; z-index: 95; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 18px; background: var(--c-green-950); color: #fff; border-radius: 12px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-float); opacity: 0; visibility: hidden; transition: transform .4s var(--ease-out), opacity .3s, visibility 0s .4s; display: inline-flex; gap: 8px; align-items: center; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.toast .icon { width: 18px; height: 18px; color: #A9E3C8; }

/* ---------- Aloldalak (jogi, 404) ---------- */
.subpage-hero { padding: clamp(40px, 5vw, 72px) 0 clamp(24px, 3vw, 40px); }
.subpage-hero h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); color: var(--c-green-950); margin-bottom: 12px; }
.subpage-hero .lead { max-width: 680px; }
.legal { padding-bottom: var(--section); }
.legal__grid { display: grid; grid-template-columns: minmax(0, 720px) 1fr; gap: 48px; align-items: start; }
.legal article { background: #fff; border: 1px solid var(--c-line); border-radius: var(--r-card); padding: clamp(24px, 3.5vw, 48px); }
.legal article h2 { font-size: 1.35rem; margin: 32px 0 10px; }
.legal article h2:first-child { margin-top: 0; }
.legal article p, .legal article li { color: var(--c-ink-700); }
.legal article p + p { margin-top: 12px; }
.legal article ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.legal article .todo { white-space: normal; text-align: left; }
.legal-meta { font-size: .9rem; color: var(--c-ink-500); margin-bottom: 20px; }
.draft-notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; background: var(--c-sand-200); color: var(--c-ink-700); font-size: .9rem; margin-bottom: 24px; }
.draft-notice .icon { color: var(--c-ink-500); margin-top: 2px; }
.legal-aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; }
.legal-aside .card h3 { margin: 0 0 10px; font-size: 1.05rem; }
.legal-aside ul { list-style: none; display: grid; gap: 8px; }
.legal-aside a { text-decoration: none; font-weight: 500; }
.legal-aside a:hover { text-decoration: underline; }
@media (max-width: 900px) { .legal__grid { grid-template-columns: 1fr; } .legal-aside { position: static; } }
.notfound { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound__code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--c-green-100); position: relative; display: inline-block; }
.notfound__code span { position: absolute; inset: 0; color: var(--c-green-900); clip-path: inset(0 0 0 0); animation: slide-fill 1.4s var(--ease-out) .2s both; }
@keyframes slide-fill { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.notfound h1 { margin: 16px 0 12px; }
.notfound p { max-width: 460px; margin: 0 auto 28px; color: var(--c-ink-700); }

/* ---------- Görgetéses felbukkanás ---------- */
[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out); transition-delay: calc(var(--d, 0) * 1ms); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-20px); }
[data-reveal="right"] { transform: translateX(20px); }
[data-reveal="scale"] { transform: scale(.96); }

/* ---------- 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; scroll-behavior: auto !important; }
  [data-reveal], [data-reveal-stagger] > *, .hero [data-hero], .board__row, .board__float, .doc, .folder, .folder__status, .step__num, .timeline__label { opacity: 1 !important; transform: none !important; }
  .hero__title .w > span { transform: none; }
  .bar > span, .stepper::after, .steps::after, .timeline__fill { transform: none !important; }
  .frame[data-animate]::before, .frame[data-animate]::after { transform: none !important; opacity: 1 !important; }
}
.no-js [data-reveal], .no-js [data-reveal-stagger] > *, .no-js .doc, .no-js .folder, .no-js .folder__status, .no-js .step__num, .no-js .timeline__label { opacity: 1; transform: none; }
.no-js .frame[data-animate]::before, .no-js .frame[data-animate]::after { transform: none; opacity: 1; }
.no-js .faq__a { grid-template-rows: 1fr; }
.no-js .faq__a p { opacity: 1; transform: none; }
.no-js .cookie-banner { display: none; }

@media print {
  .site-header, .cookie-banner, .modal, .toast, .hero__bg, .skip-link { display: none !important; }
  body { background: #fff; }
  [data-reveal], [data-reveal-stagger] > * { opacity: 1 !important; transform: none !important; }
}
