/* ai-assziszt.hu */
:root {
    --bg: #f4f4f6;
    --white: #fff;
    --ink: #24242a;
    --soft: #5c5c66;
    --mute: #6c6c76;   /* 4.9:1 on --bg (WCAG AA) */
    --line: #e5e5ea;
    --pale: #cfcfd7;
    --accent: #e3401f;
    --accent-hi: #ff5a32;
    --accent-ink: #c9361a;   /* accent for text + buttons: 5.2:1 with white (WCAG AA) */
    --dark: #24242a;
    --radius: 24px;
    --shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 22px 50px -24px rgba(20, 20, 30, .22);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font: 'Plus Jakarta Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
svg { display: block; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 34px; height: 29px; overflow: visible; }
.logo-mark .bubble { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linejoin: round; }
.logo-mark .d { fill: var(--accent); }
.logo-word { font: 800 24px/1 var(--font); letter-spacing: -.035em; }
.logo-word b { color: var(--accent); font-weight: 800; }

/* ---------- intro (logo draws itself) ---------- */
.intro { display: none; }
.js .intro {
    display: grid; place-items: center; position: fixed; inset: 0; z-index: 100; background: var(--bg);
    transition: background .5s .1s, visibility 0s .9s;
}
.js .intro-logo { display: flex; align-items: center; gap: 10px; transform: scale(2); transform-origin: 50% 50%; transition: transform .8s var(--ease); }
.intro .logo-mark { width: 34px; height: 29px; }
.intro .bubble { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s .1s var(--ease) forwards; }
.intro .d { transform: scale(0); transform-box: fill-box; transform-origin: center; animation: dot .45s var(--ease) forwards; }
.intro .d1 { animation-delay: .5s; } .intro .d2 { animation-delay: .58s; } .intro .d3 { animation-delay: .66s; }
.intro .logo-word { clip-path: inset(0 100% 0 0); animation: wipe .6s .55s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes dot { 60% { transform: scale(1.3); } to { transform: scale(1); } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
.intro.fly { background: transparent; visibility: hidden; }
.js:not(.ready) #logo { visibility: hidden; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s; }
.top.scrolled { background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.top-in { display: flex; align-items: center; gap: 44px; height: 76px; }
.nav { display: flex; gap: 30px; flex: 1; font-size: 15.5px; font-weight: 500; }
.nav a { text-decoration: none; color: var(--ink); opacity: .85; }
.nav a:hover { opacity: 1; color: var(--accent-ink); }
.pill { text-decoration: none; font: 600 14.5px/1 var(--font); padding: 12px 20px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); transition: border-color .2s; }
.pill:hover { border-color: var(--ink); }
.js .top-in > * { opacity: 0; transform: translateY(-8px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .top-in > .logo { opacity: 1; transform: none; }
.ready .top-in > * { opacity: 1; transform: none; }
.ready .top-in > .nav { transition-delay: .15s; } .ready .top-in > .pill { transition-delay: .3s; }

/* ---------- buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 30px; justify-content: space-between;
    background: var(--accent-ink); color: #fff; text-decoration: none; border: 0; cursor: pointer;
    font: 700 16px/1 var(--font); padding: 18px 26px; border-radius: 999px;
    box-shadow: 0 14px 30px -14px var(--accent); transition: transform .25s var(--ease), background .2s, box-shadow .25s;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover { background: #b02e14; transform: translateY(-2px); }
.btn:hover svg { transform: translateX(4px); }
.btn.light { background: #fff; color: var(--ink); box-shadow: none; }
.btn.light:hover { background: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }
.play { display: inline-flex; align-items: center; gap: 14px; font: 700 15px var(--font); text-decoration: none; }
.play span { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--white); display: grid; place-items: center; transition: border-color .2s, transform .25s var(--ease); }
.play svg { width: 18px; height: 18px; fill: var(--ink); }
.play:hover span { border-color: var(--ink); transform: scale(1.06); }
.ulink { font-weight: 700; font-size: 15px; text-decoration: none; border-bottom: 1.5px solid var(--pale); padding-bottom: 3px; }
.ulink:hover { border-color: var(--accent-ink); color: var(--accent-ink); }

/* ---------- hero ---------- */
.hero-in { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; min-height: calc(100svh - 76px); gap: 20px; padding-bottom: 40px; }
.hero-copy { position: relative; z-index: 2; }
.hero-title { font-size: clamp(42px, 5vw, 72px); margin-bottom: 28px; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-title .ln > span { display: block; }
.js .hero-title .ln > span { transform: translateY(110%); transition: transform 1s var(--ease); }
.ready .hero-title .ln > span { transform: none; }
.ready .hero-title .ln:nth-child(2) > span { transition-delay: .1s; }
.hero-lead { font-size: 20px; color: var(--soft); max-width: 30em; }
.hero-lead b { color: var(--ink); }
.hero-cta { display: flex; align-items: center; gap: 30px; margin-top: 40px; flex-wrap: wrap; }
.js .in-seq { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.ready .in-seq { opacity: 1; transform: none; transition-delay: .3s; }
.ready .hero-cta.in-seq { transition-delay: .45s; }
.hero-art { position: relative; height: min(74vh, 680px); }
.hero-art canvas { position: absolute; top: -8%; left: -14%; width: 128%; height: 116%; display: block; }
.art-still { position: absolute; top: -8%; left: -14%; width: 128%; height: auto; pointer-events: none; }  /* same box as the canvas */
.hero-art.gl .art-still { display: none; }

/* ---------- scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease), color 1.2s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal="title"] { color: var(--pale); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal="title"].in { color: var(--ink); }

/* ---------- section heads ---------- */
section { padding: 120px 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.sec-head h2, .easy h2, .contact h2 { font-size: clamp(34px, 4.2vw, 56px); }
.sec-head p { color: var(--soft); font-size: 18px; max-width: 32em; }

/* ---------- uses ---------- */
.tabs { position: relative; display: inline-flex; gap: 4px; padding: 6px; background: var(--white); border-radius: 999px; box-shadow: var(--shadow); margin-bottom: 36px; flex-wrap: wrap; }
.tabs button { position: relative; z-index: 1; font: 600 15px/1 var(--font); color: var(--soft); background: none; border: 0; padding: 13px 22px; border-radius: 999px; cursor: pointer; transition: color .3s; }
.tabs button[aria-selected="true"] { color: #fff; }
.tab-ink { position: absolute; z-index: 0; top: 6px; height: calc(100% - 12px); border-radius: 999px; background: var(--ink); transition: left .45s var(--ease), width .45s var(--ease), top .45s var(--ease); }
.use-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.use-grid[hidden] { display: none; }
.use { background: var(--white); border-radius: var(--radius); padding: 30px 26px 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .35s; }
.use:hover { transform: translateY(-4px); box-shadow: 0 1px 2px rgba(20, 20, 30, .04), 0 30px 60px -26px rgba(20, 20, 30, .3); }
.ic { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 22px; }
.ic .a { stroke: var(--accent); stroke-width: 2.2; }
.use h3 { font-size: 19px; margin-bottom: 10px; }
.use p { color: var(--soft); font-size: 15px; flex: 1; }
.use q { display: block; margin-top: 20px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 600; color: var(--accent-ink); quotes: "„" "”"; }
.use-grid.swap .use { animation: swapIn .6s var(--ease) both; animation-delay: calc(var(--d, 0) * 70ms); }
@keyframes swapIn { from { opacity: 0; transform: translateY(20px); } }

.tabs button small { font-size: 12px; font-weight: 700; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: var(--bg); color: var(--mute); transition: background .3s, color .3s; }
.tabs button[aria-selected="true"] small { background: rgba(255, 255, 255, .16); color: #fff; }

/* ---------- systems hub ---------- */
.systems { background: var(--white); }
.systems-in { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.systems h2 { font-size: clamp(34px, 4.2vw, 56px); }
.systems .lead { font-size: 18px; color: var(--soft); margin-top: 22px; max-width: 30em; }
.hub { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.hub::before { content: ""; position: absolute; inset: 16% 16%; border: 2px dashed var(--pale); border-radius: 50%; z-index: 0; }
.sys { position: relative; z-index: 1; aspect-ratio: 1; background: var(--white); border-radius: 24px; box-shadow: var(--shadow);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-weight: 700; font-size: 15px; text-align: center;
    transition: transform .35s var(--ease); }
.sys:hover { transform: translateY(-4px); }
.sys svg { width: 34px; height: 34px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sys.core { background: var(--dark); color: #fff; box-shadow: 0 24px 50px -20px rgba(227, 64, 31, .55); }
.sys.core .logo-mark { width: 52px; height: 44px; }
.sys.core .logo-mark .bubble { stroke: #fff; }
.sys.core::after { content: ""; position: absolute; inset: -10px; border-radius: 30px; border: 2px solid var(--accent); opacity: .5; animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { transform: scale(.92); opacity: .6; } to { transform: scale(1.12); opacity: 0; } }
.js .hub .sys { opacity: 0; transform: scale(.85); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .hub.in .sys { opacity: 1; transform: none; }
.js .hub.in .sys.core { transition-delay: 0s; }
.js .hub.in .s0 { transition-delay: 0.15s; }
.js .hub.in .s1 { transition-delay: 0.22s; }
.js .hub.in .s2 { transition-delay: 0.29s; }
.js .hub.in .s3 { transition-delay: 0.36s; }
.js .hub.in .s4 { transition-delay: 0.43s; }
.js .hub.in .s5 { transition-delay: 0.50s; }
.js .hub.in .s6 { transition-delay: 0.57s; }
.js .hub.in .s7 { transition-delay: 0.64s; }

/* ---------- why / calculator ---------- */
.why { background: var(--white); }
.calc { display: grid; grid-template-columns: 1.15fr .85fr; border-radius: 32px; overflow: hidden; background: var(--bg); }
.calc-in { padding: 44px 48px; display: grid; gap: 30px; }
.range { display: grid; grid-template-columns: 1fr auto; gap: 12px 20px; align-items: baseline; }
.range > span { font-weight: 600; font-size: 16px; }
.range output { font: 800 22px/1 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.range input { grid-column: 1 / -1; -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; cursor: pointer;
    background: linear-gradient(90deg, var(--accent) var(--p, 50%), var(--line) var(--p, 50%)); }
.range input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 6px solid var(--accent); box-shadow: 0 4px 12px -2px rgba(227, 64, 31, .5); }
.range input::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid var(--accent); }
.range input:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 6px; }
.calc-out { background: var(--dark); color: #fff; padding: 44px 44px 40px; display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.calc-out::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -90px; background: radial-gradient(circle at 35% 35%, var(--accent-hi), var(--accent) 60%, #a52a10); opacity: .9; }
.calc-out > * { position: relative; z-index: 1; }
.calc-out .k { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .6); }
.calc-out .big { font: 800 clamp(64px, 7vw, 96px)/1 var(--font); letter-spacing: -.04em; margin: 14px 0 6px; font-variant-numeric: tabular-nums; }
.calc-out .big small { font-size: .38em; letter-spacing: -.02em; }
.calc-out .mid { font-size: 22px; font-weight: 700; }
.calc-out .mid span { color: var(--accent-hi); font-variant-numeric: tabular-nums; }
.calc-out .fine { font-size: 14px; color: rgba(255, 255, 255, .6); margin: 18px 0 28px; max-width: 26em; }
.calc-out .btn { align-self: flex-start; }
.reasons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; margin-top: 90px; }
.reason .ic { width: 38px; height: 38px; }
.reason h3 { font-size: 19px; margin-bottom: 10px; }
.reason p { color: var(--soft); font-size: 15.5px; }

/* ---------- easy 1-2-3 ---------- */
.easy-in { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.easy .lead { font-size: 19px; color: var(--soft); margin: 24px 0 30px; max-width: 28em; }
.checks { list-style: none; display: grid; gap: 16px; margin-bottom: 36px; }
.checks li { position: relative; padding-left: 38px; color: var(--soft); font-size: 16px; }
.checks li b { color: var(--ink); }
.checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--accent);
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.5 2.5L14 7.5' fill='none' stroke='%23e3401f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; }
.easy-art { position: relative; height: 620px; display: grid; place-items: center; }
.easy-art::before { content: ""; position: absolute; right: 8%; top: 8%; width: 46%; height: 84%; border-radius: 28px; background: #ececf0; }
.phone { position: relative; width: 290px; height: 590px; border-radius: 50px; background: #1d1d22; padding: 11px; transform: rotate(4deg);
    box-shadow: inset 0 0 0 2px #4a4a52, 0 50px 80px -30px rgba(20, 20, 30, .45), -30px 40px 60px -40px rgba(20, 20, 30, .3); }
.notch { position: absolute; z-index: 2; left: 50%; top: 11px; width: 110px; height: 28px; transform: translateX(-50%); background: #1d1d22; border-radius: 0 0 18px 18px; }
.screen { height: 100%; border-radius: 40px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.ph-status { display: flex; justify-content: space-between; padding: 14px 26px 0; font-size: 13px; font-weight: 700; }
.ph-status span:last-child { letter-spacing: -2px; font-size: 9px; }
.ph-head { padding: 26px 20px 12px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.ph-head b { font-size: 16px; }
.ph-head small { font-size: 12px; color: #2f9e5b; font-weight: 600; }
.ph-body { flex: 1; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.bub { max-width: 84%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; animation: swapIn .4s var(--ease) both; }
.bub.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.bub.ai { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 5px; }
.ph-input { margin: 8px 12px 18px; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 10px 10px 16px; display: flex; align-items: center; font-size: 13.5px; min-height: 46px; }
.ph-input span { white-space: nowrap; overflow: hidden; max-width: 180px; }
.ph-input .caret { width: 1.5px; height: 17px; background: var(--accent); margin-left: 1px; animation: caret 1s steps(1) infinite; }
.ph-input b { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 13px; }
@keyframes caret { 50% { opacity: 0; } }
.card-back { position: absolute; left: 6%; top: 30%; width: 250px; height: 160px; border-radius: 18px; transform: rotate(-24deg); background: linear-gradient(135deg, #fff, #e9eef2); box-shadow: var(--shadow); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card-back span { height: 9px; border-radius: 5px; background: #dfe3e8; width: 70%; }
.card-back span:nth-child(2) { width: 45%; } .card-back span:nth-child(3) { width: 25%; margin-top: auto; background: var(--accent); }
.mini { position: absolute; z-index: 3; width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; }
.mini svg { width: 28px; height: 28px; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini.red { background: linear-gradient(145deg, #ff6a45, var(--accent)); box-shadow: 0 16px 26px -12px rgba(200, 50, 20, .55); }
.mini.red svg { stroke: #fff; }
.mini.dark { background: linear-gradient(145deg, #3a3a44, #1e1e24); box-shadow: 0 16px 26px -12px rgba(0, 0, 0, .55); }
.mini.dark svg { stroke: #fff; }
.mini.dark path:last-child { stroke: var(--accent); }
.mini.white { background: linear-gradient(145deg, #fff, #ececf0); box-shadow: 0 16px 26px -14px rgba(20, 20, 30, .35); }
.mini.white svg { stroke: var(--ink); }
.mini.m1 { left: 16%; top: 9%; transform: rotate(-10deg); }
.mini.m2 { left: 6%; top: 52%; width: 50px; height: 50px; }
.mini.m3 { right: 4%; top: 16%; width: 50px; height: 50px; }
.mini.m4 { right: 10%; bottom: 10%; }
[data-parallax] { will-change: transform; }

/* ---------- faq ---------- */
.faq { background: var(--white); }
.qa { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; align-items: start; }
.qa details { background: var(--bg); border-radius: 20px; padding: 24px 26px; }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; font-weight: 700; font-size: 18px; letter-spacing: -.01em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--white); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 8px; top: 13px; width: 12px; height: 2px; border-radius: 1px; background: var(--accent); transition: transform .3s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa details[open] summary i::after { transform: rotate(0); }
.qa details p { color: var(--soft); font-size: 15.5px; margin-top: 14px; }

/* ---------- contact ---------- */
.contact-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.contact .lead { font-size: 19px; color: var(--soft); margin-top: 22px; }
.contact .note { margin-top: 22px; color: var(--mute); font-size: 15px; max-width: 26em; }
.contact .mail { margin-top: 26px; font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.contact .mail a { text-decoration: none; border-bottom: 2px solid var(--accent); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; background: var(--white); padding: 38px; border-radius: 32px; box-shadow: var(--shadow); }
.form .wide { grid-column: 1 / -1; }
.f { display: flex; flex-direction: column; gap: 8px; }
.f > span { font-size: 14px; font-weight: 600; }
.f input, .f select, .f textarea { font: 16px/1.4 var(--font); color: var(--ink); background: var(--bg); border: 1.5px solid transparent; border-radius: 14px; padding: 14px 16px; width: 100%; transition: border-color .2s, background .2s; }
.f textarea { resize: vertical; min-height: 130px; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.f small, .check small { color: var(--accent-ink); font-size: 13px; }
.f.bad input, .f.bad select, .f.bad textarea { border-color: var(--accent); }
.check { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; color: var(--soft); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); }
.check small { grid-column: 2; }
/* "Nem vagyok robot" */
.captcha { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px 16px; padding: 14px 18px; border-radius: 16px; background: var(--bg); border: 1.5px solid transparent; transition: border-color .2s; }
.captcha.bad { border-color: var(--accent); }
.cap-box { display: flex; align-items: center; gap: 14px; background: none; border: 0; cursor: pointer; font: 600 15.5px var(--font); color: var(--ink); padding: 4px 0; }
.cap-check { position: relative; width: 28px; height: 28px; border-radius: 8px; background: #fff; border: 2px solid var(--pale); transition: border-color .2s, background .2s; }
.cap-box:hover .cap-check, .cap-box:focus-visible .cap-check { border-color: var(--ink); }
.cap-box:focus-visible { outline: none; }
.captcha.working .cap-check { border-color: var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.captcha.done .cap-check { background: #2f9e5b; border-color: #2f9e5b; }
.captcha.done .cap-check::after { content: ""; position: absolute; left: 8px; top: 3px; width: 7px; height: 13px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.captcha.done .cap-box { cursor: default; }
@keyframes spin { to { transform: rotate(360deg); } }
.cap-brand { grid-column: 3; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--mute); font-weight: 600; }
.cap-brand svg { width: 18px; height: 18px; fill: none; stroke: var(--mute); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cap-math { display: none; grid-column: 1 / -1; font-size: 15px; color: var(--soft); }
.cap-math input { width: 70px; margin-left: 8px; font: 600 16px var(--font); padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; }
.captcha small { grid-column: 1 / -1; color: var(--accent-ink); font-size: 13px; }
.captcha small:empty { display: none; }
/* no JS, or no WebCrypto: show the sum question instead of the checkbox */
html:not(.js) .cap-box, .captcha.math .cap-box { display: none; }
html:not(.js) .cap-math, .captcha.math .cap-math { display: block; }
html:not(.js) .cap-brand, .captcha.math .cap-brand { grid-column: 1 / -1; }

.send { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 6px; }
.status { font-size: 15px; font-weight: 600; }
.status.ok { color: #2f9e5b; }
.status.err { color: var(--accent-ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- footer + dialogs ---------- */
.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 34px; padding-bottom: 44px; font-size: 14px; color: var(--mute); flex-wrap: wrap; }
.foot .logo-word { font-size: 20px; color: var(--ink); }
.foot .logo-mark { width: 28px; height: 24px; }
.foot nav { display: flex; gap: 22px; }
.foot nav a { text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.doc { margin: auto; width: min(640px, calc(100% - 32px)); max-height: 85vh; overflow: auto; background: #fff; color: var(--ink); border: 0; border-radius: 26px; padding: 40px 38px; box-shadow: var(--shadow); }
.doc::backdrop { background: rgba(20, 20, 26, .4); backdrop-filter: blur(4px); }
.doc h2 { font-size: 32px; margin-bottom: 22px; }
.doc h3 { font-size: 15px; letter-spacing: 0; margin: 20px 0 6px; }
.doc p, .doc dd { color: var(--soft); font-size: 15px; }
.doc dl { display: grid; grid-template-columns: 170px 1fr; gap: 10px 16px; }
.doc dt { font-weight: 700; font-size: 14px; }
.doc .draft { font-size: 13px; color: var(--accent-ink); font-weight: 600; }
.doc ul { margin: 6px 0 6px 20px; color: var(--soft); font-size: 15px; }
.doc a { color: var(--ink); }
/* legal pages must be reachable without JavaScript too: #impresszum / #adatkezeles open via :target */
.doc:target:not([open]) { display: block; position: fixed; inset: 0; z-index: 200; margin: auto; height: fit-content; outline: none; box-shadow: 0 0 0 100vmax rgba(20, 20, 26, .4), var(--shadow); }
.doc:target:not([open]) .x { display: none; }
.doc .back { display: none; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.doc:target:not([open]) .back { display: inline-block; }
.doc form { position: sticky; top: 0; height: 0; }
.doc .x { position: absolute; right: -14px; top: -20px; background: none; border: 0; font-size: 32px; line-height: 1; color: var(--mute); cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
    .use-grid { grid-template-columns: repeat(2, 1fr); }
    .reasons { grid-template-columns: repeat(2, 1fr); }
    .calc { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .nav { display: none; }
    .systems-in { grid-template-columns: 1fr; gap: 48px; }
    .top-in { justify-content: space-between; }
    .hero-in { grid-template-columns: 1fr; min-height: 0; padding-top: 24px; gap: 0; }
    .hero-art { height: 420px; order: -1; margin: 0 -16px; }
    .hero-art canvas { left: 0; width: 100%; top: 0; height: 100%; }
    .art-still { left: 0; width: 100%; top: 0; height: 100%; object-fit: contain; }
    .sec-head { grid-template-columns: 1fr; gap: 18px; margin-bottom: 40px; }
    .easy-in, .contact-in { grid-template-columns: 1fr; gap: 40px; }
    .qa { grid-template-columns: 1fr; }
    .easy-art { height: 560px; }
}
@media (max-width: 640px) {
    body { font-size: 16px; }
    .wrap { padding: 0 18px; }
    section { padding: 80px 0; }
    .hero-art { height: 340px; }
    .hero-lead { font-size: 18px; }
    .btn { padding: 17px 22px; gap: 18px; }
    .tabs { display: flex; border-radius: 22px; }
    .tabs button { flex: 1 1 40%; padding: 12px 10px; }
    .use-grid, .reasons { grid-template-columns: 1fr; }
    .hub { gap: 10px; }
    .sys { border-radius: 18px; font-size: 13px; gap: 8px; }
    .sys svg { width: 26px; height: 26px; }
    .tabs button { flex: 1 1 100%; }
    .reasons { gap: 34px; margin-top: 64px; }
    .calc-in, .calc-out { padding: 30px 24px; }
    .easy-art { height: 520px; transform: scale(.88); }
    .card-back { left: -4%; }
    .form { grid-template-columns: 1fr; padding: 26px 20px; }
    .foot-in { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 32px; padding-bottom: 36px; }
    .foot nav { order: 2; gap: 28px; }
    .foot nav a { display: inline-block; padding: 6px 0; font-size: 15px; color: var(--soft); }
    .foot-in > p { order: 3; align-self: stretch; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
    .doc { padding: 32px 22px; }
    .doc dl { grid-template-columns: 1fr; gap: 2px; }
    .doc dd { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .js .intro { display: none; }
    .js [data-reveal], .js .in-seq, .js .hero-title .ln > span, .js .top-in > * { opacity: 1; transform: none; color: inherit; }
    .js:not(.ready) #logo { visibility: visible; }
}

/* ---------- cookie banner (consent.js): only when ga_id is set; both buttons equally prominent ---------- */
.consent { --c-bg: var(--white); --c-fg: var(--ink); --c-line: var(--line); position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 560px; margin: 0 auto; padding: 18px 20px; background: var(--c-bg); color: var(--c-fg); border: 1px solid var(--c-line); border-radius: 14px; box-shadow: 0 18px 50px -12px rgba(0, 0, 0, .3); font-size: 15px; line-height: 1.5; }
.consent[hidden], [data-consent-open][hidden] { display: none !important; }
.consent p { margin: 0 0 14px; }
.consent a { color: inherit; text-decoration: underline; }
.consent-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.consent button { font: inherit; font-weight: 600; min-height: 44px; padding: 10px 22px; border: 2px solid var(--c-fg); border-radius: 999px; background: var(--c-fg); color: var(--c-bg); cursor: pointer; }
.consent button:hover { opacity: .88; }
@media print { .consent { display: none; } }
