/*
 * CégemOne – főoldal jelenetei.
 * Az animációkat a home.js (GSAP + ScrollTrigger) vezérli. JavaScript nélkül és
 * „kevesebb mozgás” beállítással minden elem a végleges, nyugalmi állapotában látszik.
 */

/* ---------- Közös ---------- */

.app-frame {
    position: relative;
    margin: 0;
    padding: 7px;
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(255, 255, 255, .95);
    box-shadow: var(--shadow-app);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.app-frame img { width: 100%; border-radius: 14px; }

.caret {
    display: inline-block;
    width: .09em;
    min-width: 2px;
    height: 1.05em;
    margin-left: .06em;
    vertical-align: -.12em;
    border-radius: 2px;
    background: var(--blue);
    animation: caret 1.05s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.eyebrow-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 34px;
    padding: 0 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: var(--shadow-card);
    font-size: 14px;
    font-weight: 700;
    color: var(--ink-2);
}
.eyebrow-chip::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .18);
}

/* ---------- HERO ---------- */

.hero {
    position: relative;
    padding: calc(var(--nav-h) + clamp(36px, 5vw, 72px)) 0 0;
    background: radial-gradient(140% 100% at 50% 0%, #ffffff 38%, #eef0fb 70%, #e1e3f7 100%);
    overflow: clip;
    isolation: isolate;
}

.aurora { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora i {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .6;
    will-change: transform;
}
.aurora i:nth-child(1) { width: 46vw; height: 46vw; left: -14vw; top: 8vh; background: radial-gradient(closest-side, rgba(59, 130, 246, .55), transparent); animation: drift1 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 42vw; height: 42vw; right: -12vw; top: -6vh; background: radial-gradient(closest-side, rgba(124, 58, 237, .45), transparent); animation: drift2 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 70vw; height: 40vw; left: 15vw; top: 62%; background: radial-gradient(closest-side, rgba(99, 102, 241, .38), transparent); animation: drift1 30s ease-in-out infinite alternate-reverse; }
@keyframes drift1 { to { transform: translate3d(8vw, 6vh, 0) scale(1.1); } }
@keyframes drift2 { to { transform: translate3d(-10vw, 8vh, 0) scale(.92); } }

.hero-in { position: relative; z-index: 2; text-align: center; }

/* A gépelt sor magasságát a láthatatlan „szellem” sorok rögzítik (a leghosszabb
   mondat szerint), így törlés és újraírás közben nem ugrál alatta az oldal. */
.typer {
    display: grid;
    place-items: center;
    font-size: clamp(20px, 2.3vw, 30px);
    line-height: 1.3;
    font-weight: 750;
    letter-spacing: -.025em;
    color: var(--ink);
}
.typer > * { grid-area: 1 / 1; }
.typer-live, .typer-ghost {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .3em;
}
.typer-ghost { visibility: hidden; pointer-events: none; }
.typer-ghost .caret { animation: none; }
.typer-b {
    display: inline-block;
    padding: .02em .32em .1em;
    border-radius: .28em;
    color: var(--blue);
    background: transparent;
    transition: background-color .25s ease, color .25s ease;
}
.typer-b.c-green { background: #16a34a; color: #fff; }
.typer-b.c-amber { background: #fbbf24; color: #3b2a00; }
.typer-b.c-rose { background: #f43f5e; color: #fff; }
.typer-b.c-slate { background: #334155; color: #fff; }
.typer-b.c-final { background: none; color: var(--blue); padding-left: 0; padding-right: 0; }
.typer-live .typer-b:empty { padding: 0; background: transparent; transition: none; }
.typer .fresh { color: #22d3ee; }

.hero-title {
    margin-top: 20px;
    font-size: clamp(46px, min(7.2vw, 11.5vh), 108px);
    line-height: 1.02;
    letter-spacing: -.052em;
    font-weight: 800;
    color: var(--ink);
}
.ht-line { display: block; overflow: hidden; padding: .02em .1em .22em; margin: -.02em -.1em -.18em; }
/* a felső sor g betűjének szára ne érjen rá az alsó sor színes sávjára */
.ht-line + .ht-line { margin-top: .07em; }
.ht-w { display: inline-block; }
.hero-title .mark { padding: .03em .2em .17em; }

.hero-lead {
    margin: 22px auto 0;
    max-width: 38em;
    font-size: clamp(18px, 1.6vw, 21px);
    line-height: 1.55;
    color: var(--ink-2);
}
.hero-cta { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.play-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--grad); }
.play-ic svg { width: 11px; height: 11px; fill: #fff; margin-left: 2px; }
.hero-proof { margin-top: 18px; display: flex; gap: 10px 24px; justify-content: center; flex-wrap: wrap; font-size: 14.5px; font-weight: 650; color: var(--ink-2); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof li::before {
    content: "";
    width: 16px; height: 16px;
    border-radius: 50%;
    background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.4l2.2 2.2L11.6 5.6' fill='none' stroke='%2315803d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.hero-stage {
    position: relative;
    margin-top: clamp(36px, 4vw, 56px);
    padding-bottom: clamp(40px, 6vw, 90px);
    perspective: 2400px;
    perspective-origin: 50% 0%;
}
.hero-stage::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 30%;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    z-index: 3;
}
.hero-3d {
    position: relative;
    width: min(1180px, calc(100% - 2 * var(--gut)));
    margin: 0 auto;
    transform-style: preserve-3d;
}
.hero-3d { transform: rotateX(12deg); transform-origin: 50% 0%; }
.js .hero-app { opacity: 0; }

.float {
    position: absolute;
    z-index: 2;
    height: auto;
    filter: drop-shadow(0 22px 34px rgba(30, 41, 110, .22)) drop-shadow(0 4px 8px rgba(30, 41, 110, .08));
    will-change: transform;
    pointer-events: none;
}
.fl-kpi { width: 24%; left: -5%; top: 9%; }
.fl-mail { width: 26%; right: -5%; top: -3%; }
.fl-task { width: 22%; left: -4%; top: 52%; }
.fl-sum { width: 25%; right: -4%; top: 50%; }
.fl-kint { width: 20%; left: 40%; top: 74%; }
.js .float { opacity: 0; }

/* ---------- KÁOSZ → REND ---------- */

.chaos { position: relative; background: #fff; }
.chaos-pin {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 640px;
    overflow: hidden;
}
.chaos-copy {
    position: absolute;
    left: 0; right: 0;
    top: calc(var(--nav-h) + 4vh);
    z-index: 5;
    text-align: center;
}
.chaos-h {
    position: relative;
    display: grid;
    font-size: clamp(40px, 6.2vw, 92px);
    line-height: 1;
    letter-spacing: -.05em;
    font-weight: 800;
}
.chaos-h > span, .chaos-subs > p { grid-area: 1 / 1; }
.chaos-subs { display: grid; margin: 22px auto 0; max-width: 40em; }
.chaos-sub { font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); line-height: 1.55; }
.chaos-h .ch-b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* a színátmenet csak a doboz területén fest: a „gy” szára miatt lejjebb nyújtjuk, a helyfoglalás változatlan */
.chaos-h .ch-b { padding-bottom: .16em; margin-bottom: -.16em; }
.js .chaos .ch-b { opacity: 0; }

.chaos-field { position: absolute; inset: 0; }
.scrap { position: absolute; left: 50%; top: 60%; z-index: 2; will-change: transform; }
.scrap-in { position: relative; translate: -50% -50%; }
.chaos-app {
    position: absolute;
    left: 50%; top: 74%;
    width: min(1000px, 84vw);
    translate: -50% -50%;
    z-index: 4;
}
.js .chaos-app { opacity: 0; }

.hand { font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive; font-weight: 600; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url("../fonts/caveat-latin-600-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Caveat"; font-weight: 600; font-display: swap; src: url("../fonts/caveat-latin-ext-600-normal.woff2") format("woff2"); unicode-range: U+0100-02BA; }

.s-sheet .scrap-in { width: 300px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-card); overflow: hidden; font-size: 13px; }
.sh-bar { padding: 9px 12px; background: #1d6f42; color: #fff; font-weight: 700; font-size: 12.5px; }
.sh-grid { display: grid; grid-template-columns: 1.6fr .5fr 1fr; }
.sh-grid span { padding: 6px 9px; border-right: 1px solid #e5e7eb; border-bottom: 1px solid #e5e7eb; min-height: 30px; font-variant-numeric: tabular-nums; }
.sh-h { background: #f3f4f6; font-weight: 700; color: #374151; }
.sh-err { color: #dc2626; font-weight: 800; background: #fef2f2; }

.s-note .scrap-in {
    width: 270px;
    padding: 18px 18px 22px 38px;
    border-radius: 6px;
    background:
        linear-gradient(90deg, transparent 28px, rgba(244, 63, 94, .45) 28px, rgba(244, 63, 94, .45) 30px, transparent 30px),
        repeating-linear-gradient(#fffef6 0 27px, #c7d7f5 27px 28px);
    box-shadow: var(--shadow-card);
    color: #1e3a8a;
    font-size: 21px;
    line-height: 28px;
}
.s-note .scrap-in::before {
    content: "";
    position: absolute;
    left: 9px; top: 14px; bottom: 14px;
    width: 10px;
    background: radial-gradient(circle, #e5e7eb 3.5px, transparent 4px) 0 0 / 10px 28px repeat-y;
}
.s-note p:first-child { font-size: 24px; color: #0f172a; }

.s-sticky .scrap-in {
    width: 190px;
    padding: 20px 18px 24px;
    background: linear-gradient(160deg, #fff59d, #fde047);
    box-shadow: 0 18px 30px -14px rgba(120, 90, 0, .45), 0 2px 4px rgba(0, 0, 0, .06);
    color: #422006;
    font-size: 24px;
    line-height: 1.15;
}

.s-chat .scrap-in { width: 250px; padding: 14px; border-radius: 22px; background: #0f172a; box-shadow: var(--shadow-card); display: grid; gap: 7px; }
.bub { justify-self: start; max-width: 85%; padding: 9px 13px; border-radius: 16px 16px 16px 4px; background: #334155; color: #f1f5f9; font-size: 14px; line-height: 1.35; }
.chat-meta { margin-top: 4px; font-size: 11.5px; color: #94a3b8; text-align: right; }

.s-mail .scrap-in { width: 280px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-card); overflow: hidden; font-size: 13.5px; }
.ml-h { padding: 11px 14px; background: #f1f5f9; font-weight: 700; color: #334155; }
.ml-h b { margin-left: 6px; padding: 1px 8px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 12px; }
.ml-r { padding: 10px 14px; border-top: 1px solid #eef2f7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.s-pdf .scrap-in { width: 180px; height: 230px; padding: 16px; border-radius: 8px; background: #fff; box-shadow: var(--shadow-card); }
.pdf-tag { display: inline-block; padding: 3px 7px; border-radius: 4px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; }
.pdf-name { margin-top: 10px; font-size: 12px; font-weight: 700; color: #334155; word-break: break-all; }
.s-pdf i { display: block; height: 7px; margin-top: 12px; border-radius: 4px; background: #e5e7eb; }
.s-pdf i:nth-of-type(2) { width: 80%; }
.s-pdf i:nth-of-type(3) { width: 60%; }
.pdf-stamp { position: absolute; right: 12px; bottom: 26px; padding: 4px 10px; border: 2.5px solid #dc2626; border-radius: 6px; color: #dc2626; font-weight: 800; font-size: 17px; transform: rotate(-12deg); }

.s-cal .scrap-in { width: 210px; padding: 14px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-card); font-size: 13px; display: grid; gap: 6px; }
.cal-h { font-weight: 800; color: #0f172a; }
.cal-e { padding: 7px 10px; border-radius: 8px; background: #e0f2fe; color: #075985; font-weight: 650; }
.cal-x { background: #ffe4e6; color: #9f1239; }

/* ---------- EGY MUNKA ÚTJA ---------- */

.flow { position: relative; padding: var(--section) 0 calc(var(--section) * .6); background: linear-gradient(#fff, #f4f6fb 18%, #f4f6fb 82%, #fff); }
.flow-head { text-align: center; }
.flow-head .h2 { margin: 20px auto 0; max-width: 16em; }

.flow-grid {
    margin-top: clamp(40px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
}
.flow-steps { position: relative; }
.fs {
    min-height: 72vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px 0 24px 26px;
    border-left: 2px solid var(--line);
    opacity: .32;
    transition: opacity .5s ease, border-color .5s ease;
}
.fs:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 18vh; }
.fs:last-child { min-height: 60vh; }
.fs.is-active { opacity: 1; border-left-color: var(--blue); }
.fs-n { font-size: 14px; font-weight: 800; letter-spacing: .02em; color: var(--blue); }
.fs h3 { margin-top: 10px; }
.fs p { margin-top: 12px; font-size: 17px; color: var(--ink-2); max-width: 30em; }

.flow-stage { position: sticky; top: calc(50vh - min(26vw, 290px) + var(--nav-h) / 2); }
.flow-bar { height: 4px; margin: 0 6px 14px; border-radius: 4px; background: var(--line); overflow: hidden; }
.flow-bar i { display: block; height: 100%; width: 20%; border-radius: inherit; background: var(--grad); transition: width .6s var(--ease-out); }
.flow-frame { aspect-ratio: 16 / 10; overflow: hidden; container-type: inline-size; }
.flow-shot {
    position: absolute;
    inset: 7px;
    border-radius: 14px;
    overflow: hidden;
    opacity: 0;
    transition: opacity .7s ease;
    background: #fff;
}
.flow-shot.is-on { opacity: 1; }
.flow-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 0; transform-origin: var(--ox) var(--oy); transition: transform 1.6s var(--ease-out); }
.flow-shot.is-zoom img { transform: scale(1.32); }

.cursor { position: absolute; left: 0; top: 0; z-index: 8; width: 26px; height: 26px; opacity: 0; pointer-events: none; will-change: transform; }
.cursor svg { width: 26px; height: 26px; fill: #0f172a; stroke: #fff; stroke-width: 1.4; stroke-linejoin: round; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .3)); }
.cursor-ring { position: absolute; left: -11px; top: -11px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--blue); opacity: 0; }

.flow-ov { position: absolute; z-index: 6; pointer-events: none; opacity: 0; }
.ov-0 { left: 50%; bottom: 6%; translate: -50% 0; display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; padding: 8px; border-radius: 18px; background: rgba(241, 245, 255, .82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-app); }
.chipx { padding: 7px 12px; border-radius: 99px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-card); font-size: 13px; font-weight: 750; color: var(--ink-2); white-space: nowrap; }
.chipx-on { background: var(--grad); color: #fff; }
.chip-arrow { width: 14px; height: 2px; background: var(--line-2); border-radius: 2px; }
.toast { display: grid; gap: 2px; padding: 14px 18px 14px 50px; border-radius: 16px; background: rgba(255, 255, 255, .97); box-shadow: var(--shadow-app); font-size: 14px; color: var(--ink-2); position: relative; min-width: 280px; }
.toast::before { content: ""; position: absolute; left: 14px; top: 50%; translate: 0 -50%; width: 24px; height: 24px; border-radius: 50%; background: #16a34a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.4l2.2 2.2L11.6 5.6' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat; }
.toast b { color: var(--ink); font-size: 15px; }
/* 02 – az app valódi „Ajánlat elfogadása + Projekt” ablaka (Quotes/_QuoteAcceptModal) */
.ov-1, .ov-2 { inset: 7px; border-radius: 14px; overflow: hidden; }
.ov-dim { position: absolute; inset: 0; background: rgba(15, 23, 42, .42); opacity: 0; }
.qa-modal {
    position: absolute; left: 22%; top: 7%; width: 56%;
    border-radius: .9em; background: #fff; overflow: hidden;
    box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .5), 0 0 0 1px rgba(15, 23, 42, .06);
    font-size: 11px; font-size: clamp(5.5px, 1.5cqw, 12px); line-height: 1.45; color: #212529; text-align: left;
}
.qa-head { display: flex; align-items: center; gap: .5em; padding: 1.1em 1.4em; background: #f8f9fa; font-size: 1.35em; font-weight: 700; color: #0d6efd; }
.qa-ic { width: 1.05em; height: 1.05em; border-radius: 50%; border: .14em solid currentColor; position: relative; flex: none; }
.qa-ic::after { content: ""; position: absolute; left: .26em; top: .12em; width: .26em; height: .48em; border: solid currentColor; border-width: 0 .13em .13em 0; rotate: 45deg; }
.qa-x { margin-left: auto; width: .8em; height: .8em; opacity: .45; background: linear-gradient(45deg, transparent 45%, #000 45% 55%, transparent 55%), linear-gradient(-45deg, transparent 45%, #000 45% 55%, transparent 55%); }
.qa-body { padding: 1.2em 1.6em .4em; }
.qa-info { padding: .9em 1.1em; border-radius: .5em; background: #cff4fc; border: 1px solid #9eeaf9; color: #055160; font-size: .92em; }
.qa-info ul { margin-top: .2em; padding-left: 1.2em; list-style: disc; }
.qa-field { margin-top: 1em; display: grid; }
.qa-field small { font-size: .82em; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #6c757d; }
.qa-field > b { font-size: 1.05em; }
.qa-field > span { font-size: .9em; color: #6c757d; }
.qa-sep { padding-top: 1em; border-top: 1px solid #dee2e6; }
.qa-foot { display: flex; justify-content: flex-end; gap: .7em; padding: 1em 1.6em 1.4em; }
.qa-btn, .qa-btn2 { display: inline-flex; align-items: center; padding: .55em 1.1em; border-radius: .55em; font-weight: 600; white-space: nowrap; }
.qa-btn2 { background: #ebeced; color: #495057; }
.qa-btn { background: linear-gradient(135deg, #2563eb, #3b82f6); color: #fff; box-shadow: 0 1px 2px rgba(15, 23, 42, .08); }
.row-hl { position: absolute; left: 7.3%; top: 63.4%; width: 85.4%; height: 9.2%; border-radius: 10px; border: 2px solid rgba(13, 110, 253, .75); background: rgba(13, 110, 253, .07); box-shadow: 0 0 0 6px rgba(13, 110, 253, .12); opacity: 0; }
.ov-1 .toast { position: absolute; right: 3.5%; top: 5%; }

/* 03 – a kártya a helyéről átkerül a Kész oszlopba; a régi helyét az oszlop háttere fedi */
.drag-hole { position: absolute; left: 27.92%; top: 56.44%; width: 21.25%; height: 21.9%; background: linear-gradient(rgba(248, 249, 250, 0), #f8f9fa 3%); opacity: 0; }
.flow-ov .drag-card { position: absolute; width: 20.14%; left: 28.47%; top: 56.78%; border-radius: 0; max-width: none; filter: drop-shadow(0px 2px 5px rgba(30, 41, 110, .08)); }
.toast-mail { position: absolute; left: 4%; bottom: 6%; }
.toast-mail::before { background-color: var(--blue); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 4.5h10v7H3z M3 5l5 3.5L13 5' fill='none' stroke='white' stroke-width='1.5' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.ov-3 { left: 4%; bottom: 7%; display: flex; gap: 8px; flex-wrap: wrap; max-width: 60%; }
.vat { padding: 8px 13px; border-radius: 10px; background: rgba(255, 255, 255, .97); box-shadow: var(--shadow-card); font-weight: 800; font-size: 14px; color: var(--violet-2); }

/* ---------- PÉNZ (sötét) ---------- */

.money {
    position: relative;
    padding: var(--section) 0 calc(var(--section) * .8);
    background: var(--night);
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}
.money-glow { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.money-glow i { position: absolute; border-radius: 50%; filter: blur(90px); }
.money-glow i:nth-child(1) { width: 60vw; height: 40vw; left: 50%; bottom: -16vw; translate: -50% 0; background: radial-gradient(closest-side, rgba(124, 58, 237, .75), transparent); animation: glowpulse 9s ease-in-out infinite alternate; }
.money-glow i:nth-child(2) { width: 40vw; height: 30vw; left: -10vw; top: 10%; background: radial-gradient(closest-side, rgba(13, 110, 253, .5), transparent); animation: drift1 20s ease-in-out infinite alternate; }
@keyframes glowpulse { to { transform: scale(1.15); opacity: .8; } }

.money-in { text-align: center; }
.money-h { color: #fff; max-width: 14em; margin: 0 auto; }
.money-h .grad-text { background: linear-gradient(120deg, #60a5fa, #a78bfa); -webkit-background-clip: text; background-clip: text; }
.money-lead { margin: 22px auto 0; max-width: 38em; color: var(--on-ink); }
.money-stats { margin: clamp(40px, 5vw, 64px) auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 1040px; }
.money-stats > div { padding: 22px 20px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .09); text-align: left; }
.money-stats strong { display: block; font-size: clamp(26px, 2.8vw, 38px); font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.money-stats span:not(.count) { display: block; margin-top: 4px; font-size: 14.5px; color: var(--on-ink-2); }
.money-stage { position: relative; margin-top: clamp(48px, 6vw, 80px); perspective: 2000px; }
.money-3d { position: relative; width: min(1060px, 100%); margin: 0 auto; transform-style: preserve-3d; transform: rotateX(16deg); }
.m-chart { width: 100%; border-radius: 22px; box-shadow: 0 40px 100px -30px rgba(124, 58, 237, .6), 0 0 0 1px rgba(255, 255, 255, .1); }
.m-cash { position: absolute; width: 30%; right: -6%; top: 46%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5)); }
.m-late { position: absolute; width: 24%; left: -5%; top: 62%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5)); }
.money-note { margin-top: clamp(48px, 6vw, 80px); font-size: 13.5px; color: var(--on-ink-2); }

/* ---------- BENTO ---------- */

.bento-sec { background: #fff; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.bento-more { margin-top: 32px; text-align: center; }
.link-arrow { display: inline-flex; align-items: center; gap: .5em; padding: 13px 22px; border-radius: 99px; background: #fff; box-shadow: var(--shadow-card); font-size: 16px; font-weight: 700; color: var(--blue); text-decoration: none; transition: box-shadow .25s ease; }
.link-arrow span { transition: transform .3s var(--ease-out); }
.link-arrow:hover { box-shadow: var(--shadow-app); }
.link-arrow:hover span { transform: translateX(4px); }
.tile {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 460px;
    padding: 30px 30px 0;
    border-radius: 28px;
    background: linear-gradient(180deg, #fff, #f7f8fd);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}
.tile-copy .pill { margin-bottom: 14px; }
.tile-copy p { margin-top: 10px; font-size: 16px; color: var(--ink-2); max-width: 30em; }
.tile-media { position: relative; margin-top: auto; padding-top: 28px; }
.tile-media img { width: 100%; filter: drop-shadow(0 18px 30px rgba(30, 41, 110, .18)); }
.t-focus { grid-column: span 5; }
.t-focus .tile-media { flex: 1 1 auto; min-height: 300px; margin: 0 -6px; padding-top: 0; overflow: hidden; -webkit-mask: linear-gradient(#000 80%, transparent); mask: linear-gradient(#000 80%, transparent); }
.t-focus .tile-media img { position: absolute; left: 0; top: 0; }
.t-focus .tile-copy { margin-bottom: 26px; }
.t-mail { grid-column: span 7; }
.t-mail .tile-media { margin: auto 6% -40px; }
.tm-in { position: relative; }
/* értesítési pötty a „2 válaszra vár” címke jobb felső sarkán (a kép arányában, így minden méretben ott marad) */
.ping { position: absolute; left: 64.9%; top: 4.4%; z-index: 2; width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; border-radius: 50%; background: #ef4444; border: 2px solid #fff; box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { box-shadow: 0 0 0 18px rgba(239, 68, 68, 0); } }
.t-ai { grid-column: span 7; background: linear-gradient(160deg, #0f172a, #1e1b4b 70%, #312e81); color: #fff; padding-bottom: 30px; }
.t-ai .tile-copy p { color: var(--on-ink); }
.t-ai .pill-violet { background: rgba(167, 139, 250, .18); color: #c4b5fd; }
.ai-demo { margin-top: auto; padding-top: 26px; display: grid; gap: 14px; }
.ai-in { min-height: 60px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: 17px; font-weight: 600; line-height: 1.45; }
.ai-in .caret { background: #a78bfa; }
.ai-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ai-out div { padding: 12px 14px; border-radius: 14px; background: #fff; color: var(--ink); }
.ai-out span { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
.ai-out b { display: block; margin-top: 2px; font-size: 15px; }
.js .ai-out div { opacity: 0; transform: translateY(10px) scale(.96); }
.t-client { grid-column: span 5; }
/* ügyfél adatlap: a kurzor az Adatlap és az Értékesítés fül között vált, a valódi képernyők cserélődnek */
.t-client .tile-media { margin: 26px -30px 0 0; padding-top: 0; aspect-ratio: 1127 / 720; border-radius: 16px 0 0 0; overflow: hidden; background: #fff; box-shadow: var(--shadow-card); }
.t-client .tile-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: left top; border-radius: 0; filter: none; }
.t-client .td-b { opacity: 0; }
.td-cursor { left: 80%; top: 95%; margin: -3px 0 0 -5px; width: 22px; height: 22px; }
.td-cursor svg { width: 22px; height: 22px; }
.t-team { grid-column: span 4; }
.stack { position: relative; margin-top: auto; height: 270px; }
.stack img { max-width: none; }
.stack img { position: absolute; left: 50%; width: 82%; translate: -50% 0; filter: drop-shadow(0 16px 26px rgba(30, 41, 110, .2)); transition: transform .6s var(--ease-out); }
.stack img:nth-child(1) { top: 30px; transform: rotate(-6deg) translateX(-14px); }
.stack img:nth-child(2) { top: 70px; transform: rotate(3deg) translateX(10px); }
.stack img:nth-child(3) { top: 112px; transform: rotate(-1deg); }
.t-team:hover .stack img:nth-child(1) { transform: rotate(-9deg) translate(-30px, -10px); }
.t-team:hover .stack img:nth-child(2) { transform: rotate(6deg) translate(24px, -4px); }
.t-plan { grid-column: span 8; }
.t-plan .tile-media { height: 300px; margin: 28px -30px 0 0; overflow: hidden; border-radius: 18px 0 0 0; padding-top: 0; box-shadow: var(--shadow-card); }
.t-plan .tile-media img { width: 150%; max-width: none; filter: none; border-radius: 0; }
.t-int { grid-column: span 12; min-height: 0; padding-bottom: 30px; flex-direction: row; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.int-list { display: flex; flex-wrap: wrap; gap: 10px; }
.int-list li { padding: 12px 18px; border-radius: 14px; background: #fff; box-shadow: var(--shadow-card); font-weight: 800; font-size: 16px; letter-spacing: -.01em; }

/* ---------- MOBIL ---------- */

.mobile-sec {
    position: relative;
    padding: var(--section) 0;
    background: radial-gradient(120% 90% at 80% 40%, #e9e6fb 0%, #f4f6fb 45%, #fff 80%);
    overflow: clip;
}
.mobile-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.mobile-copy .lead { margin-top: 22px; }
.phones { position: relative; height: 720px; }
.phone {
    position: absolute;
    width: 300px;
    aspect-ratio: 9 / 19.3;
    padding: 9px;
    border-radius: 46px;
    background: linear-gradient(145deg, #1f2937, #0b1020);
    box-shadow: 0 50px 90px -40px rgba(30, 41, 110, .55), inset 0 0 0 1.5px rgba(255, 255, 255, .12);
    will-change: transform;
}
.phone::before { content: ""; position: absolute; left: 50%; top: 17px; z-index: 3; width: 78px; height: 22px; translate: -50% 0; border-radius: 20px; background: #0b1020; }
.screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: #fff; }
.screen img { width: 100%; max-width: none; will-change: transform; }
.ph-1 { left: 0; top: 70px; rotate: -7deg; }
.ph-2 { left: 50%; top: 0; translate: -50% 0; z-index: 2; }
.ph-3 { right: 0; top: 90px; rotate: 7deg; }

/* ---------- SZAKMÁK ---------- */

.trades { padding: clamp(80px, 10vw, 140px) 0; background: #fff; overflow: hidden; }
.trades-k { max-width: 22em; margin: 0 auto clamp(36px, 4vw, 56px); text-align: center; font-size: clamp(20px, 2vw, 26px); font-weight: 750; letter-spacing: -.02em; color: var(--ink-2); text-wrap: balance; }
.marq { display: flex; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marq + .marq { margin-top: 6px; }
.marq-track { display: flex; align-items: center; flex: none; will-change: transform; animation: marq 46s linear infinite; }
.marq-rev .marq-track { animation-direction: reverse; animation-duration: 52s; }
@keyframes marq { to { transform: translateX(-50%); } }
.tw { padding: 0 .28em; font-size: clamp(44px, 7.4vw, 112px); font-weight: 800; letter-spacing: -.05em; line-height: 1.12; white-space: nowrap; color: var(--ink); }
.tw.o { color: transparent; -webkit-text-stroke: 1.6px #94a3b8; }
.mk { flex: none; width: clamp(28px, 3.6vw, 52px); height: clamp(28px, 3.6vw, 52px); fill: none; stroke: #8b5cf6; stroke-width: 2.4; stroke-linejoin: round; }

/* ---------- VIDEÓ ---------- */

.video-sec { position: relative; padding: var(--section) 0; background: linear-gradient(#fff, #eef0fb 40%, #e9e6fb 100%); overflow: clip; }
.vframe {
    position: relative;
    aspect-ratio: 16 / 9;
    max-width: 1120px;
    margin: 0 auto;
    border-radius: 28px;
    overflow: hidden;
    background: #060a19 url("../video/poster-16x9.webp") center / cover no-repeat;
    box-shadow: 0 60px 120px -40px rgba(60, 50, 160, .55), 0 0 0 1px rgba(15, 23, 42, .08);
}
.vframe video { width: 100%; height: 100%; object-fit: cover; background: transparent; }
.vplay {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    justify-items: center;
    gap: 16px;
    border: 0;
    background: radial-gradient(closest-side, rgba(6, 10, 25, .35), rgba(6, 10, 25, .05));
    color: #fff;
    transition: opacity .4s ease;
}
.vframe.is-playing .vplay { opacity: 0; pointer-events: none; }
.vplay-btn {
    position: relative;
    display: grid;
    place-items: center;
    width: clamp(78px, 9vw, 112px);
    height: clamp(78px, 9vw, 112px);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .5);
    transition: transform .3s var(--ease-out);
}
.vplay-btn::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); animation: vring 2.2s ease-out infinite; }
@keyframes vring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.vplay-btn svg { width: 30%; height: 30%; fill: var(--blue); margin-left: 6%; }
.vplay:hover .vplay-btn { transform: scale(1.06); }
.vplay-t { font-weight: 750; font-size: 15px; letter-spacing: .01em; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }

/* ---------- ÁRAK a főoldalon ---------- */

.pricing-sec { background: linear-gradient(#fff, #f4f6fb); }

/* ---------- INDULÁS – haladásvonal ---------- */

.how::before, .how::after { content: ""; position: absolute; left: 28px; right: 0; top: 27px; height: 2px; border-radius: 2px; }
.how::before { background: var(--line); }
.how::after { background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 1)); }
.how li { z-index: 1; }

/* ---------- Belépő animációk kezdőállapota (csak JS-sel) ---------- */

.js .reveal { opacity: 0; transform: translateY(40px); }

/* ---------- Reszponzív ---------- */

@media (max-width: 1100px) {
    .t-focus, .t-client { grid-column: span 6; }
    .t-mail, .t-ai { grid-column: span 6; }
    .t-team { grid-column: span 5; }
    .t-plan { grid-column: span 7; }
    .phones { height: 560px; }
    .phone { width: 220px; }
}

@media (max-width: 1000px) {
    /* Mobilon a képernyő a fejléc alá tapad, saját háttérrel: a lépések szövege alatta tűnik el,
       és egyszerre mindig csak az aktív lépés látszik a képernyő alatt. */
    .flow { background: linear-gradient(#fff, #f4f6fb 240px); padding-bottom: 24px; }
    .flow-grid { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
    .flow-stage { position: sticky; top: var(--nav-h); z-index: 4; order: -1; margin: 0 calc(var(--gut) * -1); padding: 12px var(--gut) 14px; background: #f4f6fb; }
    .flow-stage::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 36px; background: linear-gradient(#f4f6fb, rgba(244, 246, 251, 0)); pointer-events: none; }
    .flow-bar, .flow-frame { max-width: 620px; margin-left: auto; margin-right: auto; }
    .flow-bar, .flow-frame {
        max-width: min(620px, calc((100vh - var(--nav-h) - 300px) * 1.6));
        max-width: min(620px, calc((100svh - var(--nav-h) - 300px) * 1.6));
    }
    .flow-bar { margin-bottom: 10px; }
    .flow-frame { box-shadow: 0 0 0 1px rgba(15, 23, 42, .06), 0 18px 40px -16px rgba(30, 41, 110, .35); }
    .flow-shot.is-zoom img { transform: none; }
    .fs, .fs:first-child, .fs:last-child {
        min-height: calc(100vh - var(--nav-h) - min(100vw - var(--gut) * 2, 620px) * .625 - 64px);
        min-height: calc(100svh - var(--nav-h) - min(100vw - var(--gut) * 2, 620px) * .625 - 64px);
        padding: 40px 0 24px;
        border-left: 0;
        justify-content: flex-start;
    }
    .fs p { font-size: 16px; }
    /* Animált módban a rész rögzül: fent a képernyő, alatta mindig csak az aktív lépés szövege */
    .js .flow-grid { min-height: calc(100vh - var(--nav-h)); min-height: calc(100svh - var(--nav-h)); align-content: start; }
    .js .flow-stage { position: relative; top: auto; margin: 0; padding: 12px 0 0; background: none; }
    .js .flow-stage::after { display: none; }
    .js .flow-steps { display: grid; }
    .js .fs, .js .fs:first-child, .js .fs:last-child { grid-area: 1 / 1; min-height: 0; padding: 24px 0 0; opacity: 0; transform: translateY(14px); transition: opacity .4s ease, transform .55s var(--ease-out); }
    .js .fs.is-active { opacity: 1; transform: none; }
    .mobile-grid { grid-template-columns: minmax(0, 1fr); }
    .phones { height: 600px; max-width: 640px; margin: 0 auto; width: 100%; }
    .money-stats { grid-template-columns: minmax(0, 1fr); max-width: 520px; }
}

@media (max-width: 760px) {
    .fl-kint, .fl-task, .fl-sum { display: none; }
    .fl-kpi { width: 48%; left: -2%; top: auto; bottom: -8%; }
    .fl-mail { width: 46%; right: -2%; top: 58%; }
    .hero-stage { padding-bottom: 64px; }
    .bento { grid-template-columns: minmax(0, 1fr); }
    .tile, .t-focus, .t-mail, .t-ai, .t-client, .t-team, .t-plan, .t-int { grid-column: auto; min-height: 380px; padding: 24px 22px 0; }
    .t-ai, .t-int { padding-bottom: 24px; }
    .ai-out { grid-template-columns: minmax(0, 1fr); }
    .chaos-pin { min-height: 680px; }
    .chaos-copy { top: calc(var(--nav-h) + 2vh); }
    .s-sheet .scrap-in { width: 180px; font-size: 10px; }
    .sh-grid span { padding: 4px 6px; min-height: 22px; }
    .s-note .scrap-in { width: 170px; padding: 12px 12px 14px 30px; font-size: 16px; line-height: 22px; background:
        linear-gradient(90deg, transparent 22px, rgba(244, 63, 94, .45) 22px, rgba(244, 63, 94, .45) 24px, transparent 24px),
        repeating-linear-gradient(#fffef6 0 21px, #c7d7f5 21px 22px); }
    .s-note p:first-child { font-size: 19px; }
    .s-mail .scrap-in { width: 170px; font-size: 11.5px; }
    .ml-r { padding: 7px 10px; }
    .s-chat .scrap-in { width: 160px; padding: 10px; }
    .bub { font-size: 12px; padding: 7px 10px; }
    .s-pdf .scrap-in { width: 118px; height: 150px; padding: 12px; }
    .pdf-stamp { font-size: 13px; }
    .s-cal .scrap-in { width: 140px; font-size: 11.5px; padding: 10px; }
    .s-sticky .scrap-in { width: 124px; padding: 14px 12px 16px; font-size: 17px; }
    .chaos-app { top: 66%; width: 94vw; }
    .ov-0 { display: none; }
    .toast { min-width: 0; padding: 10px 12px 10px 40px; font-size: 12px; }
    .toast::before { width: 20px; height: 20px; left: 11px; }
    .toast b { font-size: 13px; }
    .vat { padding: 5px 8px; font-size: 11.5px; }
    .phones { height: 520px; }
    .phone { width: 190px; border-radius: 36px; padding: 7px; }
    .screen { border-radius: 30px; }
    .phone::before { width: 60px; height: 17px; top: 13px; }
    .ph-1 { left: -4%; }
    .ph-3 { right: -4%; }
    .vframe { aspect-ratio: 9 / 16; max-height: 82vh; max-width: 460px; background-image: url("../video/poster-9x16.webp"); }
    .money-3d { transform: none; }
    .m-cash { width: 44%; right: -2%; top: 60%; }
    .m-late { width: 40%; left: -2%; top: 78%; }
}

@media (prefers-reduced-motion: reduce) {
    .js .hero-app, .js .float, .js .chaos-app, .js .reveal, .js .ai-out div { opacity: 1; transform: none; }
    .js .chaos .ch-b { opacity: 1; }
    .chaos .ch-a { display: none; }
    .marq-track { animation: none; }
}
