/*
 * Publikus weboldal (docs 18): saját, könnyű megjelenés — nem a Limitless admin téma. Webfont és
 * külső forrás nélkül (rendszerbetűk), mobil-első, világos és sötét mód, látható fókusz.
 */

:root {
    --bg: #ffffff;
    --bg-soft: #f6f5f2;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #4b5563;
    --line: #e5e7eb;
    --brand: #f97316;
    --brand-strong: #c2410c;     /* fehér szöveggel is AA kontraszt */
    --on-brand: #ffffff;
    --accent-soft: #fff1e6;
    --focus: #1d4ed8;
    --error: #b91c1c;
    --art-plan: #eef0f3;
    --art-wall: #c4c9d2;
    --art-shelf: #dde1e7;
    --art-phone: #1f2937;
    --art-screen: #ffffff;
    --radius: 14px;
    --shadow: 0 1px 2px rgb(15 23 42 / 6%), 0 8px 24px rgb(15 23 42 / 6%);
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f141b;
        --bg-soft: #161d27;
        --card: #1b2430;
        --text: #f1f5f9;
        --muted: #cbd5e1;
        --line: #2d3848;
        --brand-strong: #fb923c;
        --on-brand: #111827;
        --accent-soft: #2a1d12;
        --focus: #93c5fd;
        --error: #fca5a5;
        --art-plan: #1e2734;
        --art-wall: #475569;
        --art-shelf: #334155;
        --art-phone: #0b0f15;
        --art-screen: #e2e8f0;
        --shadow: 0 1px 2px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 1.0625rem/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

img, svg { max-width: 100%; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 750; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--brand-strong); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
.wrap--narrow { width: min(760px, 100% - 2rem); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.plain { list-style: none; margin: 0; padding: 0; }

.skip { position: absolute; left: -9999px; top: .5rem; z-index: 10; background: var(--card); padding: .5rem 1rem; }
.skip:focus { left: .5rem; }

/* Gombok */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 44px; padding: .6rem 1.15rem;
    background: var(--brand-strong); color: var(--on-brand);
    border: 2px solid var(--brand-strong); border-radius: 999px;
    font: inherit; font-weight: 650; text-decoration: none; cursor: pointer;
    transition: filter .15s ease;
}
.btn:hover { filter: brightness(1.08); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--large { padding: .8rem 1.5rem; font-size: 1.05rem; }
.btn--small { min-height: 40px; padding: .45rem 1rem; }
.btn--block { width: 100%; }

/* Fejléc és menü: asztalon sorban; mobilon a site.js lenyílóvá teszi (JS nélkül kinyitva látszik) */
.topbar { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; min-height: 64px; padding: .5rem 0; }
.brand { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 800; font-size: 1.5rem; letter-spacing: -.02em; text-decoration: none; }
.brand img { display: block; }
.brand--footer { font-size: 1.25rem; }

.menu { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.1rem; }
.menu a:not(.btn) { color: var(--text); text-decoration: none; padding: .5rem 0; font-weight: 600; }
.menu a:not(.btn):hover { color: var(--brand-strong); }

.menu-toggle {
    display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: .4rem .9rem;
    font: inherit; font-weight: 600; color: var(--text); background: none; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
}
.menu-toggle[hidden] { display: none; }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }

@media (max-width: 899px) {
    .js .menu { display: none; }
    .js .menu.is-open {
        display: flex; flex-direction: column; align-items: stretch; gap: 0;
        position: absolute; left: 0; right: 0; top: 100%;
        padding: .5rem 1rem 1rem; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    }
    .js .menu.is-open a:not(.btn) { padding: .7rem .25rem; border-bottom: 1px solid var(--line); }
    .js .menu.is-open .btn { margin-top: .75rem; }
}
@media (min-width: 900px) {
    .menu-toggle { display: none !important; }
    .menu .lang { border-left: 1px solid var(--line); padding-left: 1.1rem; }
}

/* Hero */
.hero { padding: 2.5rem 0 3rem; background: linear-gradient(180deg, var(--accent-soft), var(--bg) 85%); }
.hero__in { display: grid; gap: 2rem; align-items: center; }
.hero__art { max-width: 380px; margin-inline: auto; width: 100%; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .85rem; font-weight: 700; color: var(--brand-strong); margin-bottom: .75rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40em; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
@media (min-width: 900px) {
    .hero { padding: 4.5rem 0 5rem; }
    .hero__in { grid-template-columns: 1.15fr .85fr; gap: 3rem; }
    .hero--sub h1 { font-size: clamp(2rem, 4.5vw, 2.9rem); }
}

/* Illusztráció */
.hero-art { display: block; width: 100%; height: auto; }
.art-plan { fill: var(--art-plan); }
.art-wall, .art-screen-wall { fill: none; stroke: var(--art-wall); stroke-width: 5; stroke-linecap: round; }
.art-screen-wall { stroke-width: 4; stroke: #cbd5e1; }
.art-shelf { fill: var(--art-shelf); }
.art-phone { fill: var(--art-phone); }
.art-screen { fill: var(--art-screen); }
.art-notch { fill: #374151; }
.art-route { fill: none; stroke: var(--brand); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 2 12; }
.art-you { fill: #2563eb; }
.art-you-ring { fill: none; stroke: #2563eb; stroke-opacity: .35; stroke-width: 4; }
.art-pin { fill: var(--brand); }
.art-pin-dot { fill: #fff; }

/* Szakaszok, kártyák */
.section { padding: 3.5rem 0; }
.section--soft { background: var(--bg-soft); }
.section__lead { color: var(--muted); font-size: 1.1rem; margin-top: -.25rem; margin-bottom: 2rem; }
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }

.card { display: block; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.35rem; box-shadow: var(--shadow); }
.card p { color: var(--muted); margin-bottom: 0; }
.card--link { color: inherit; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.card--link:hover { border-color: var(--brand); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card--link:hover { transform: none; } }
.card__icon, .feature__icon, .step__icon, .badge-icon {
    display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 12px;
    background: var(--accent-soft); color: var(--brand-strong); margin-bottom: .75rem; flex: none;
}
.more { display: inline-block; margin-top: .75rem; color: var(--brand-strong); font-weight: 650; }

.feature { display: flex; gap: 1rem; align-items: flex-start; padding: .5rem 0; }
.feature h3 { margin-bottom: .3em; }
.feature p { color: var(--muted); margin: 0; }

.steps { display: grid; gap: 1.25rem; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.step { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow); }
.step__no { position: absolute; top: 1.25rem; right: 1.25rem; font-size: 2.25rem; font-weight: 800; color: var(--line); line-height: 1; }
.step p { color: var(--muted); margin: 0; }

/* GYIK */
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: .75rem; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 650; list-style-position: inside; }
.faq summary:focus-visible { outline-offset: -3px; }
.faq details p { padding: 0 1.25rem 1.1rem; margin: 0; color: var(--muted); }

/* Felhívás */
.cta { background: var(--brand-strong); color: var(--on-brand); padding: 3.5rem 0; text-align: center; }
.cta__in { max-width: 760px; }
.cta p { font-size: 1.15rem; opacity: .95; }
.cta .btn { background: var(--on-brand); color: var(--brand-strong); border-color: var(--on-brand); margin-top: .5rem; }
.cta :focus-visible { outline-color: var(--on-brand); }

/* Bemutatókérés */
.demo { display: grid; gap: 2rem; }
@media (min-width: 900px) { .demo { grid-template-columns: .9fr 1.1fr; gap: 3.5rem; align-items: start; } }
.checklist { padding-left: 1.25rem; }
.checklist li { margin-bottom: .5rem; }
.form { padding: 1.5rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field select, .field textarea {
    width: 100%; min-height: 44px; padding: .6rem .75rem;
    font: inherit; color: var(--text); background: var(--bg);
    border: 1px solid #9ca3af; border-radius: 10px;
}
.field textarea { resize: vertical; }
.field [aria-invalid=true] { border-color: var(--error); border-width: 2px; }
.field__hint { font-size: .9rem; color: var(--muted); margin: .35rem 0 0; }
.field__error { font-size: .9rem; color: var(--error); font-weight: 600; margin: .35rem 0 0; }
.field--check { display: grid; grid-template-columns: auto 1fr; gap: .25rem .75rem; align-items: start; }
.field--check input { width: 22px; height: 22px; margin: .15rem 0 0; accent-color: var(--brand-strong); }
.field--check label { font-weight: 400; margin: 0; }
.field--check .field__error { grid-column: 2; }
.alert { border: 2px solid var(--error); color: var(--error); border-radius: 10px; padding: .75rem 1rem; margin-bottom: 1rem; font-weight: 600; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cf-turnstile { margin-bottom: 1rem; }

/* Jogi oldalak */
.prose h2 { font-size: 1.3rem; margin-top: 2rem; }
.facts { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: .4rem 1.5rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .5rem; } }

.badge-icon { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 1rem; }

/* Lábléc */
.footer { border-top: 1px solid var(--line); padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.footer__in { display: grid; gap: 1.5rem; }
@media (min-width: 760px) { .footer__in { grid-template-columns: 2fr 1fr 1fr; } }
.footer__h { font-size: 1rem; margin-bottom: .5rem; }
.footer__links { list-style: none; margin: 0; padding: 0; }
.footer__links li { margin-bottom: .35rem; }
.footer__copy { margin-top: 1.5rem; font-size: .85rem; }
