/* ============================================================
   LexTime landing - Apple-termékoldal prezentáció, forest identitással.
   Nyelvtan: óriási középre zárt tipográfia, egy gondolat / sáv,
   váltakozó világos-sötét (art-directed, fix) sávok, sticky terméknav
   blur-rel, finom scroll-reveal.
   A termék-demók (.appwin, .panelwin) a valós app.css szótárát másolják:
   erdőzöld sidebar ikonokkal, pöttyös badge-ek, csont-felület.
   ============================================================ */

:root {
    /* csont-világos sávok */
    --bg:        oklch(0.985 0.006 145);
    --surface:   oklch(1 0 0);
    --surface-2: oklch(0.962 0.008 145);
    --border:    oklch(0.912 0.008 146);
    --ink:       oklch(0.24 0.018 152);
    --ink-2:     oklch(0.448 0.016 150);

    /* erdő-sötét sávok */
    --forest:      oklch(0.215 0.032 153);
    --forest-2:    oklch(0.185 0.028 153);
    --forest-el:   oklch(0.27 0.038 153);
    --forest-line: oklch(1 0 0 / 0.13);
    --light-ink:   oklch(0.95 0.016 148);
    --light-ink-2: oklch(0.775 0.030 149);

    /* akcentek */
    --accent:        oklch(0.46 0.10 151);   /* pill CTA világoson */
    --accent-strong: oklch(0.405 0.10 151);
    --accent-ink:    oklch(0.42 0.105 151);  /* színes szöveg világoson */
    --accent-weak:   oklch(0.95 0.032 150);
    --on-accent:     oklch(0.99 0.01 150);
    --leaf:          oklch(0.80 0.135 148);  /* színes szöveg + CTA sötéten */
    --leaf-strong:   oklch(0.855 0.14 148);
    --on-leaf:       oklch(0.21 0.04 152);
    --ring:          oklch(0.46 0.10 151 / 0.35);

    /* státusz-szótár (a valós app badge-színei) */
    --ok:      oklch(0.50 0.11 150);  --ok-bg:    oklch(0.95 0.045 150);
    --info:    oklch(0.49 0.085 235); --info-bg:  oklch(0.95 0.03 235);
    --warn:    oklch(0.505 0.115 70); --warn-bg:  oklch(0.955 0.045 80);
    --muted-b: oklch(0.448 0.016 150); --muted-bg: oklch(0.952 0.007 145);

    --radius:    18px;
    --radius-sm: 12px;
    --shadow-lg: 0 30px 80px rgba(15, 26, 19, .22);
    --shadow-md: 0 6px 24px rgba(15, 26, 19, .10);

    --font-sans:  'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'IBM Plex Serif', Georgia, serif;
    --font-mono:  'IBM Plex Mono', ui-monospace, Menlo, monospace;

    --speed: 200ms;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    --nav-h: 52px;
    --wrap: 1040px;
}

/* ---- alap ---- */

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    text-rendering: optimizeLegibility;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; }

[hidden] { display: none !important; }

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

.skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 200;
    background: var(--surface); color: var(--ink);
    padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2rem); }

/* ============================================================
   STICKY TERMÉKNAV
   ============================================================ */

.lnav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav-h);
    background: oklch(0.985 0.006 145 / 0.72);
    -webkit-backdrop-filter: saturate(1.8) blur(20px);
    backdrop-filter: saturate(1.8) blur(20px);
    border-bottom: 1px solid oklch(0.24 0.018 152 / 0.09);
}

.lnav .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.lnav-brand {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    margin-right: auto;
}

.lnav-brand .mark { width: 11px; height: 11px; border-radius: 3px; background: var(--accent); }

.lnav-brand .name {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.12rem;
    color: var(--ink);
}

.lnav-links { display: flex; align-items: center; gap: 1.4rem; }

.lnav-links a {
    color: var(--ink);
    opacity: .78;
    text-decoration: none;
    font-size: .82rem;
    transition: opacity var(--speed) var(--ease);
}
.lnav-links a:hover { opacity: 1; }

.lnav-cta {
    background: var(--accent);
    color: var(--on-accent) !important;
    opacity: 1 !important;
    border-radius: 999px;
    padding: .34rem .95rem;
    font-weight: 600;
    transition: background var(--speed) var(--ease);
}
.lnav-cta:hover { background: var(--accent-strong); }

@media (max-width: 720px) {
    .lnav-links a:not(.lnav-cta):not(.lnav-keep) { display: none; }
}

/* ============================================================
   SÁV-VÁZ
   ============================================================ */

.band { padding-block: clamp(4.5rem, 10vw, 8.5rem); }

.band-alt  { background: var(--surface-2); }

.band-dark {
    background: var(--forest);
    color: var(--light-ink);
}

.band-deep { background: var(--forest-2); }

.band-head {
    text-align: center;
    max-width: 46rem;
    margin-inline: auto;
}

.band-head h2 {
    font-weight: 700;
    font-size: clamp(2.1rem, 4.6vw + 0.6rem, 3.9rem);
    line-height: 1.08;
    letter-spacing: -0.022em;
}

.band-head h2 .tint { color: var(--accent-ink); }
.band-dark .band-head h2 .tint { color: var(--leaf); }

.band-head .sub {
    margin-top: 1.3rem;
    font-size: clamp(1.06rem, 1.5vw, 1.25rem);
    line-height: 1.55;
    color: var(--ink-2);
    max-width: 40rem;
    margin-inline: auto;
}

.band-dark .band-head .sub { color: var(--light-ink-2); }

.arrow-link {
    color: var(--accent-ink);
    text-decoration: none;
    font-weight: 500;
}
.arrow-link::after { content: ' ›'; }
.arrow-link:hover { text-decoration: underline; }
.band-dark .arrow-link { color: var(--leaf); }

.band-cta { text-align: center; margin-top: clamp(2rem, 4vw, 3rem); }

.pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .8rem 1.7rem;
    font-size: 1.02rem;
    font-weight: 600;
    text-decoration: none;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    transition: background var(--speed) var(--ease), transform var(--speed) var(--ease);
}
.pill:active { transform: scale(.98); }
.pill-accent { background: var(--accent); color: var(--on-accent); }
.pill-accent:hover { background: var(--accent-strong); }
.pill-leaf { background: var(--leaf); color: var(--on-leaf); }
.pill-leaf:hover { background: var(--leaf-strong); }

/* ============================================================
   HERO
   ============================================================ */

.hero { padding-block: clamp(4rem, 9vw, 7rem) 0; }

.hero-head { text-align: center; max-width: 52rem; margin-inline: auto; }

.hero-eyerow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.15rem;
    color: var(--ink-2);
}
.hero-eyerow .mark { width: 12px; height: 12px; border-radius: 3.5px; background: var(--accent); }

.hero h1 {
    margin-top: 1.1rem;
    font-weight: 700;
    font-size: clamp(2.7rem, 7.2vw + 0.5rem, 5.6rem);
    line-height: 1.04;
    letter-spacing: -0.025em;
}

.hero h1 .tint { color: var(--accent-ink); }

.hero-sub {
    margin: 1.5rem auto 0;
    font-size: clamp(1.1rem, 1.7vw, 1.35rem);
    line-height: 1.5;
    color: var(--ink-2);
    max-width: 38rem;
}

.hero-actions {
    margin-top: 2.2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem 1.8rem;
}

.hero-stage {
    margin-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(4rem, 8vw, 6.5rem);
    background: linear-gradient(to bottom, transparent 52%, var(--surface-2) 52%);
}

/* ============================================================
   APPWIN - termék-hű alkalmazás-ablak (a valós app.css mintájára).
   Az --aw-* tokeneket a skin-labor JS-ből átfesti.
   ============================================================ */

.appwin {
    --aw-bg:          oklch(0.985 0.006 145);
    --aw-surface:     oklch(1 0 0);
    --aw-border:      oklch(0.24 0.018 152 / 0.14);
    --aw-ink:         oklch(0.27 0.018 152);
    --aw-ink2:        oklch(0.448 0.016 150);
    --aw-accent:      oklch(0.46 0.10 151);
    --aw-on-accent:   oklch(0.99 0.01 150);
    --aw-side:        oklch(0.275 0.041 153);
    --aw-side-ink:    oklch(0.905 0.022 150);
    --aw-side-ink2:   oklch(0.735 0.030 150);
    --aw-side-active: oklch(0.375 0.052 153);
    --aw-side-on:     #ffffff;
    --aw-bar:         oklch(0.80 0.135 148);

    max-width: 940px;
    margin-inline: auto;
    background: var(--aw-surface);
    border-radius: var(--radius);
    border: 1px solid var(--aw-border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    color: var(--aw-ink);
    font-size: .82rem;
    line-height: 1.45;
    text-align: left;
    transition: background var(--speed) var(--ease);
}

.aw-chrome {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .7rem 1rem;
    background: var(--aw-bg);
    border-bottom: 1px solid var(--aw-border);
}
.aw-chrome span { width: 10px; height: 10px; border-radius: 50%; background: var(--aw-border); }
.aw-chrome i {
    font-style: normal;
    font-family: var(--font-mono);
    font-size: .74rem;
    color: var(--aw-ink2);
    margin-left: .5rem;
}

.aw-body { display: flex; min-height: 21rem; }

/* -- oldalsáv: a valós sidebar mintája (brand, szekciók, ikonok, aktív sáv, pajzs) -- */

.aw-side {
    flex: 0 0 176px;
    background: var(--aw-side);
    color: var(--aw-side-ink2);
    padding: .9rem .65rem .8rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: background var(--speed) var(--ease);
}

.aw-brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .1rem .5rem .75rem;
    color: var(--aw-side-ink);
}
.aw-brand b {
    width: 22px; height: 22px;
    display: grid; place-items: center;
    background: var(--aw-bar);
    color: var(--aw-side);
    border-radius: 6px;
    font-family: var(--font-serif);
    font-size: .8rem;
}
.aw-brand span { font-family: var(--font-serif); font-weight: 600; font-size: .92rem; }

.aw-sec {
    font-size: .62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: .55rem .5rem .2rem;
    opacity: .75;
}

.aw-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .34rem .5rem;
    border-radius: 7px;
    border-left: 3px solid transparent;
    white-space: nowrap;
}
.aw-item svg { width: 14px; height: 14px; flex: none; }
.aw-item.on {
    background: var(--aw-side-active);
    color: var(--aw-side-on);
    border-left-color: var(--aw-bar);
    font-weight: 600;
}

.aw-foot {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: .6rem .5rem 0;
    font-size: .68rem;
}
.aw-foot svg { width: 13px; height: 13px; }

/* -- fő terület: topbar + tartalom -- */

.aw-main { flex: 1; min-width: 0; background: var(--aw-bg); display: flex; flex-direction: column; transition: background var(--speed) var(--ease); }

.aw-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .8rem;
    padding: .75rem 1.1rem;
    background: var(--aw-surface);
    border-bottom: 1px solid var(--aw-border);
}
.aw-top b { font-size: .95rem; font-weight: 600; }
.aw-btn {
    background: var(--aw-accent);
    color: var(--aw-on-accent);
    border-radius: 8px;
    padding: .32rem .7rem;
    font-weight: 600;
    font-size: .74rem;
    white-space: nowrap;
}

.aw-content { padding: .95rem 1.1rem 1.1rem; }

.aw-card {
    background: var(--aw-surface);
    border: 1px solid var(--aw-border);
    border-radius: 10px;
    overflow: hidden;
}

.aw-table { width: 100%; border-collapse: collapse; }
.aw-table th {
    text-align: left;
    font-size: .64rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--aw-ink2);
    background: var(--aw-bg);
    padding: .45rem .75rem;
    border-bottom: 1px solid var(--aw-border);
}
.aw-table td {
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--aw-border);
    vertical-align: middle;
}
.aw-table tr:last-child td { border-bottom: 0; }
.aw-table td.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.aw-table td.r { text-align: right; }

/* pöttyös badge: a valós .badge másolata */
.aw-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-style: normal;
    font-size: .66rem;
    font-weight: 600;
    padding: 2px 9px;
    border-radius: 999px;
    white-space: nowrap;
}
.aw-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.aw-badge.ok   { color: var(--ok);      background: var(--ok-bg); }
.aw-badge.info { color: var(--info);    background: var(--info-bg); }
.aw-badge.warn { color: var(--warn);    background: var(--warn-bg); }
.aw-badge.mut  { color: var(--muted-b); background: var(--muted-bg); }

.aw-strip {
    margin-top: .8rem;
    display: flex;
    align-items: center;
    gap: .7rem;
    background: var(--accent-weak);
    border: 1px solid var(--aw-border);
    border-radius: 10px;
    padding: .6rem .85rem;
}
.aw-strip .num { font-family: var(--font-mono); font-weight: 500; color: var(--accent-ink); }
.aw-strip .sum { margin-left: auto; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: 600; }

@media (max-width: 640px) {
    .aw-side { display: none; }
    .aw-body { min-height: 0; }
}
@media (max-width: 560px) {
    .hide-s { display: none; }
}

/* panelwin: sidebar nélküli termék-ablak a funkció-demókhoz */
.panelwin { max-width: 620px; }
.panelwin .aw-body { min-height: 0; }

/* ============================================================
   FOLYAMAT - négy lépés
   ============================================================ */

.flow-steps {
    margin-top: clamp(2.8rem, 5vw, 4rem);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2.2rem 1.8rem;
    counter-reset: step;
    text-align: center;
}

.step { counter-increment: step; }

.step::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    font-family: var(--font-mono);
    font-size: .9rem;
    color: var(--accent-ink);
}

.step h3 { font-size: 1.28rem; font-weight: 600; letter-spacing: -0.01em; margin: .45rem 0 .5rem; }

.step p { font-size: .98rem; color: var(--ink-2); max-width: 26ch; margin-inline: auto; }

.step .aw-badge { margin-top: .8rem; font-size: .74rem; padding: 3px 10px; }

/* ============================================================
   BIZTONSÁG - sötét sáv, emberi nyelven: kérdés-válasz
   ============================================================ */

.qa {
    margin: clamp(2.8rem, 5vw, 4.2rem) auto 0;
    max-width: 44rem;
    display: grid;
    gap: clamp(1.8rem, 3.5vw, 2.6rem);
}

.qa-item { border-top: 1px solid var(--forest-line); padding-top: clamp(1.4rem, 3vw, 2rem); }

.qa-item h3 {
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--light-ink);
}

.qa-item p {
    margin-top: .7rem;
    font-size: 1.04rem;
    line-height: 1.65;
    color: var(--light-ink-2);
    max-width: 60ch;
}

.qa-item p strong { color: var(--light-ink); font-weight: 600; }

/* ============================================================
   ARCULAT - interaktív skin-labor
   ============================================================ */

.skinlab { margin-top: clamp(2.6rem, 5vw, 3.8rem); }

.skinlab-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(.7rem, 1.8vw, 1.1rem);
    margin-bottom: 2rem;
}

.skinlab-dots button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 3px solid var(--surface);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    padding: 0;
    transition: transform var(--speed) var(--ease);
}
.skinlab-dots button:hover { transform: scale(1.12); }
.skinlab-dots button[aria-pressed="true"] {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
}

.skinlab .appwin { max-width: 760px; font-size: .78rem; }
.skinlab .aw-body { min-height: 16rem; }

.skinlab-caption {
    margin-top: 1.6rem;
    text-align: center;
    color: var(--ink-2);
    font-size: .98rem;
}
.skinlab-caption b { color: var(--ink); font-weight: 600; }

/* ============================================================
   FUNKCIÓK - lapozható bemutató (tabok), egyszerre egy funkció
   ============================================================ */

.tabbar {
    margin-top: clamp(2.4rem, 4.5vw, 3.4rem);
    display: flex;
    justify-content: flex-start;
    gap: .5rem;
    overflow-x: auto;
    padding: .25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }

@media (min-width: 760px) { .tabbar { justify-content: center; } }

.tabbar button {
    flex: none;
    font-family: inherit;
    font-size: .92rem;
    font-weight: 600;
    color: var(--ink-2);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 999px;
    padding: .5rem 1.15rem;
    cursor: pointer;
    min-height: 44px;
    transition: background var(--speed) var(--ease), color var(--speed) var(--ease);
}
.tabbar button:hover { color: var(--ink); }
.tabbar button[aria-selected="true"] {
    background: var(--ink);
    color: var(--bg);
}

.tabpanel {
    margin-top: clamp(2rem, 4vw, 3rem);
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(1.8rem, 4vw, 3.2rem);
    align-items: center;
}

@media (max-width: 860px) { .tabpanel { grid-template-columns: 1fr; } }

.tabpanel > .copy h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.018em;
}

.tabpanel > .copy p {
    margin-top: .9rem;
    font-size: 1.04rem;
    line-height: 1.65;
    color: var(--ink-2);
    max-width: 46ch;
}

.tabpanel > .copy ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: .45rem;
    color: var(--ink-2);
    font-size: .97rem;
}
.tabpanel > .copy li { padding-left: 1.2rem; position: relative; }
.tabpanel > .copy li::before {
    content: "";
    position: absolute;
    left: 0; top: .52em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
}

/* demó-kellékek a paneleken belül */

.rate-lines {
    font-family: var(--font-mono);
    font-size: .8rem;
    display: grid;
}
.rate-lines span {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .5rem .75rem;
    border-bottom: 1px solid var(--aw-border);
}
.rate-lines span:last-child { border-bottom: 0; }
.rate-lines b { font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }

.chart { display: grid; gap: .55rem; padding: .9rem .95rem; }
.chart-row { display: grid; grid-template-columns: 5.2rem 1fr 3.4rem; align-items: center; gap: .7rem; font-size: .78rem; }
.chart-row .nm { color: var(--aw-ink2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chart-row .val { font-family: var(--font-mono); font-variant-numeric: tabular-nums; text-align: right; }
.chart-bar { height: 9px; border-radius: 999px; background: var(--aw-bg); border: 1px solid var(--aw-border); overflow: hidden; }
.chart-bar i { display: block; height: 100%; background: var(--aw-accent); border-radius: inherit; }

/* díjbekérő PDF-előnézet: a valós proforma mintája */
.pdf-doc {
    background: #fff;
    color: oklch(0.25 0.01 150);
    border: 1px solid var(--aw-border);
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
    font-size: .78rem;
    box-shadow: var(--shadow-md);
}
.pdf-doc header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    border-bottom: 2px solid oklch(0.275 0.041 153);
    padding-bottom: .6rem;
    margin-bottom: .7rem;
}
.pdf-doc header b { font-family: var(--font-serif); font-size: 1.05rem; letter-spacing: .1em; }
.pdf-doc header span { font-family: var(--font-mono); font-size: .72rem; color: oklch(0.45 0.015 150); }
.pdf-doc .li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.pdf-doc .li i { font-style: normal; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pdf-doc .total {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid oklch(0.85 0.01 150);
    margin-top: .5rem;
    padding-top: .55rem;
    font-weight: 600;
}
.pdf-doc .total i { font-style: normal; font-family: var(--font-mono); }

.integr-badges { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 1.1rem; }
.integr-badges span {
    font-weight: 600;
    font-size: .92rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: .4rem 1rem;
    background: var(--surface);
}

/* ============================================================
   ZÁRÓ CTA + ŰRLAP
   ============================================================ */

.contact-card {
    margin: clamp(2.6rem, 5vw, 3.8rem) auto 0;
    max-width: 34rem;
    background: var(--forest-el);
    border: 1px solid var(--forest-line);
    border-radius: var(--radius);
    padding: clamp(1.6rem, 4vw, 2.4rem);
    text-align: left;
}

.contact-card form { display: grid; gap: 1.05rem; }

.field { display: grid; gap: .4rem; }

.field label { font-weight: 600; font-size: .9rem; color: var(--light-ink); }

.field input,
.field textarea {
    font: inherit;
    color: var(--light-ink);
    background: oklch(1 0 0 / 0.07);
    border: 1px solid var(--forest-line);
    border-radius: var(--radius-sm);
    padding: .72rem .9rem;
    width: 100%;
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.field input::placeholder, .field textarea::placeholder { color: var(--light-ink-2); }

.field textarea { resize: vertical; min-height: 6rem; }

.field input:focus, .field textarea:focus {
    outline: none;
    border-color: var(--leaf);
    box-shadow: 0 0 0 3px oklch(0.80 0.135 148 / 0.30);
}

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-card .pill { justify-self: center; padding-inline: 2.6rem; }

.form-note { font-size: .84rem; color: var(--light-ink-2); text-align: center; }

.alert {
    margin: 2rem auto 0;
    max-width: 34rem;
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-weight: 500;
    text-align: left;
}
.alert-ok  { background: oklch(0.305 0.045 150); color: oklch(0.85 0.11 150); border: 1px solid oklch(0.85 0.11 150 / 0.35); }
.alert-err { background: oklch(0.32 0.055 28);  color: oklch(0.78 0.13 28);  border: 1px solid oklch(0.78 0.13 28 / 0.35); }

/* ============================================================
   LÁBLÉC
   ============================================================ */

.footer {
    background: var(--surface-2);
    border-top: 1px solid var(--border);
    color: var(--ink-2);
    font-size: .82rem;
}

.footer .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .8rem 1.8rem;
    padding-block: 1.6rem;
}

.footer nav { margin-left: auto; display: flex; gap: 1.4rem; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer a:hover { color: var(--ink); text-decoration: underline; }

/* ============================================================
   DOC - technikai aloldal (/biztonsag)
   ============================================================ */

.doc { max-width: 46rem; margin-inline: auto; padding: clamp(3rem, 7vw, 5.5rem) clamp(1.25rem, 4vw, 2rem) clamp(4rem, 8vw, 6rem); }

.doc h1 {
    font-weight: 700;
    font-size: clamp(2.2rem, 4.5vw + 0.5rem, 3.6rem);
    line-height: 1.06;
    letter-spacing: -0.022em;
}

.doc-lead {
    margin-top: 1.2rem;
    font-size: clamp(1.06rem, 1.5vw, 1.22rem);
    line-height: 1.6;
    color: var(--ink-2);
    max-width: 60ch;
}

.doc-sec { border-top: 1px solid var(--border); margin-top: clamp(2.2rem, 4.5vw, 3.2rem); padding-top: clamp(1.8rem, 3.5vw, 2.6rem); }

.doc-sec h2 {
    font-size: clamp(1.4rem, 2.2vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.015em;
}

.doc-sec > p { margin-top: .85rem; line-height: 1.7; color: var(--ink-2); max-width: 68ch; }
.doc-sec > p strong { color: var(--ink); }

.chip {
    font-family: var(--font-mono);
    font-size: .82em;
    background: var(--accent-weak);
    color: var(--accent-ink);
    border-radius: 6px;
    padding: .1em .45em;
    white-space: nowrap;
}

.spec {
    margin: 1.3rem 0 0;
    display: grid;
    gap: .7rem;
}
.spec > div {
    display: grid;
    grid-template-columns: minmax(150px, 200px) 1fr;
    gap: .4rem 1.4rem;
    padding: .7rem .95rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .95rem;
}
@media (max-width: 560px) { .spec > div { grid-template-columns: 1fr; } }
.spec dt { font-family: var(--font-mono); font-size: .84rem; color: var(--accent-ink); margin: 0; align-self: start; padding-top: .1rem; }
.spec dd { margin: 0; color: var(--ink-2); line-height: 1.6; }
.spec dd strong { color: var(--ink); }

/* a cipher-demó (sötét kártya, világos oldalon is működik) */
.cipher {
    margin-top: 1.5rem;
    background: var(--forest-el);
    border: 1px solid var(--forest-line);
    border-radius: var(--radius);
    padding: 1.6rem 1.7rem;
    font-family: var(--font-mono);
    font-size: .88rem;
    display: grid;
    gap: .9rem;
    color: var(--light-ink);
}
.cipher .lbl { font-family: var(--font-sans); font-size: .82rem; font-weight: 600; color: var(--light-ink-2); }
.cipher .plain { background: oklch(1 0 0 / 0.08); border-radius: 9px; padding: .65rem .85rem; }
.cipher .arrow { color: var(--leaf); text-align: center; }
.cipher .enc {
    color: var(--leaf);
    word-break: break-all;
    background: oklch(0 0 0 / 0.3);
    border-radius: 9px;
    padding: .65rem .85rem;
    line-height: 1.55;
}
.cipher .note { font-family: var(--font-sans); font-size: .87rem; color: var(--light-ink-2); }

.doc-back { margin-top: clamp(2.5rem, 5vw, 3.5rem); }

/* ============================================================
   SCROLL-REVEAL - progresszív: alapból minden látszik
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
    /* a .in csak elindít egy emelkedő animációt; enélkül is minden látható */
    .reveal.in {
        animation: rise .8s var(--ease) both;
        animation-delay: var(--d, 0ms);
    }

    /* hero belépő betöltéskor (nem scroll-függő) */
    .hero-head > * { animation: rise .7s var(--ease) backwards; }
    .hero-head > *:nth-child(2) { animation-delay: 80ms; }
    .hero-head > *:nth-child(3) { animation-delay: 160ms; }
    .hero-head > *:nth-child(4) { animation-delay: 240ms; }
    .hero-stage .appwin { animation: rise .9s var(--ease) 250ms backwards; }

    /* tab-váltás: a bejövő panel finoman úszik be */
    .tabpanel:not([hidden]) { animation: rise .45s var(--ease) backwards; }
}

@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
