/* MERP landing: önálló stíluslap, build-lépés és külső függőség nélkül. */

@font-face { font-family: "Bricolage"; font-weight: 200 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2192; }
@font-face { font-family: "Bricolage"; font-weight: 200 800; font-display: swap; src: url("fonts/bricolage-grotesque-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA; }
@font-face { font-family: "Instrument"; font-style: italic; font-display: swap; src: url("fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: "Instrument"; font-style: italic; font-display: swap; src: url("fonts/instrument-serif-latin-ext-400-italic.woff2") format("woff2"); unicode-range: U+0100-02BA; }

:root {
    --ink: #0b0a08;
    --ink-2: #15130f;
    --ink-3: #221f19;
    --line: rgba(243, 238, 227, .13);
    --bone: #f3eee3;
    --bone-2: #e7e0d1;
    --muted: #a59e8f;
    --muted-dark: #5f594d;
    --amber: #f2b233;
    --amber-deep: #d8941a;
    --red: #ff6a55;
    --cyan: #5cc8e6;
    --display: "Bricolage", "Inter Variable", system-ui, sans-serif;
    --serif: "Instrument", Georgia, serif;
    --sans: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono: ui-monospace, "Cascadia Code", Consolas, monospace;
    --gutter: clamp(16px, 4vw, 56px);
    --ease: cubic-bezier(.2, .75, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 4px; }

.skip { position: fixed; top: -60px; left: 16px; z-index: 100; background: var(--amber); color: var(--ink); padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 16px; }

.eyebrow { font-size: 13px; letter-spacing: .02em; font-weight: 500; color: var(--amber); }
.eyebrow--dark { color: #8f5f08; }

/* Gombok */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: 15px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent; transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s; }
.btn span { transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover span { transform: translateX(4px); }
.btn--amber { background: var(--amber); color: var(--ink); }
.btn--amber:hover { background: #ffc550; }
.btn--ghost { border-color: var(--line); color: var(--bone); }
.btn--ghost:hover { border-color: var(--bone); }
.btn--ink { background: var(--ink); color: var(--bone); }
.btn--ink:hover { background: #2a251c; }
.btn--sm { padding: 9px 17px; font-size: 14px; }

/* Navigáció */
.nav { position: fixed; z-index: 50; top: 14px; left: 50%; transform: translateX(-50%); width: min(1120px, calc(100% - 24px)); display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 8px 8px 8px 22px; border-radius: 999px; background: rgba(17, 15, 12, .9); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); border: 1px solid var(--line); color: var(--bone); }
.nav__logo { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.02em; text-decoration: none; }
.nav__links { display: flex; gap: 28px; font-size: 14.5px; }
.nav__links a, .nav__login { text-decoration: none; color: #cfc8b8; transition: color .2s; }
.nav__links a:hover, .nav__login:hover { color: #fff; }
.nav__actions { display: flex; align-items: center; gap: 16px; font-size: 14.5px; }

/* Hős */
.hero { position: relative; height: 340vh; background: var(--ink); }
.hero__pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero__glow { position: absolute; inset: 0; background: radial-gradient(46vw 46vw at 72% 50%, rgba(242, 178, 51, .13), transparent 68%), radial-gradient(30vw 30vw at 12% 96%, rgba(92, 200, 230, .05), transparent 70%); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; }
.js .hero__canvas { display: block; }
.hero__still { position: absolute; right: 6vw; top: 50%; width: min(46vw, 78vh); height: auto; transform: translateY(-50%); -webkit-mask-image: radial-gradient(closest-side, #000 86%, transparent); mask-image: radial-gradient(closest-side, #000 86%, transparent); }
.js .hero__still { display: none; }
.hero__copy { position: absolute; left: var(--gutter); bottom: clamp(28px, 7vh, 72px); max-width: 720px; z-index: 2; }
.hero__title { font-family: var(--display); font-weight: 700; font-size: min(6.1vw, 11.6vh); line-height: 1.02; letter-spacing: -.035em; margin: 14px 0 22px; }
.hero__line { display: block; color: rgba(243, 238, 227, .2); transition: color .7s var(--ease), transform .7s var(--ease); transform-origin: left center; }
.hero__line.is-on { color: var(--bone); transform: translateX(8px); }
.hero__line--accent em { font-size: 1.08em; }
.hero__line--accent.is-on { color: var(--amber); }
.hero__lead { max-width: 500px; color: #c9c2b2; font-size: clamp(16px, 2.1vh, 18px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero__meta { position: absolute; right: var(--gutter); bottom: clamp(28px, 7vh, 72px); display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-size: 13.5px; color: var(--muted); text-align: right; z-index: 2; }
.hero__count { font-family: var(--mono); font-size: 12.5px; }
.hero__count b { color: var(--amber); font-weight: 500; }
.hero__caption { min-height: 1.5em; color: var(--bone); }
.hero__ticks { display: flex; gap: 6px; }
.hero__ticks i { width: 28px; height: 2px; background: var(--line); transition: background .5s; }
.hero__ticks i.is-on { background: var(--amber); }
html:not(.js) .hero, .no-motion .hero { height: 100svh; }
.no-motion .hero__canvas { display: none; }
.no-motion .hero__still { display: block; }
html:not(.js) .hero__line, .no-motion .hero__line { color: var(--bone); transform: none; }
html:not(.js) .hero__line--accent, .no-motion .hero__line--accent { color: var(--amber); }
html:not(.js) .hero__meta, .no-motion .hero__meta { display: none; }

/* Modul-futószalag */
.ticker { display: flex; overflow: hidden; border-block: 1px solid var(--line); background: var(--ink); padding: 20px 0; }
.ticker__track { flex: none; display: flex; align-items: center; gap: 34px; padding-right: 34px; font-family: var(--display); font-size: clamp(24px, 3vw, 38px); font-weight: 500; letter-spacing: -.02em; color: var(--bone); animation: slide 42s linear infinite; }
.ticker__track i { width: 9px; height: 9px; border-radius: 50%; background: var(--amber); }
@keyframes slide { to { transform: translateX(-100%); } }

/* Szekció-fejlécek */
.section-head { max-width: 980px; }
.section-head h2 { font-family: var(--display); font-weight: 700; font-size: clamp(38px, 6vw, 84px); line-height: 1.02; letter-spacing: -.035em; margin-top: 14px; text-wrap: balance; }
.section-head h2 em { font-size: 1.06em; }
.section-lead { margin-top: 22px; max-width: 620px; font-size: clamp(17px, 1.6vw, 20px); color: #c9c2b2; }

/* Megjelenés szkrollra */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease) var(--rd, 0ms), transform .9s var(--ease) var(--rd, 0ms); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* Egy nap */
.day { background: var(--bone); color: var(--ink); padding: clamp(80px, 11vw, 160px) var(--gutter); }
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px); margin-top: clamp(40px, 6vw, 80px); align-items: start; }
.story__steps { padding-bottom: 22vh; }
.story__step { min-height: 62vh; padding-top: 8vh; opacity: .32; transition: opacity .5s; }
.story__step:first-child { padding-top: 4vh; }
.story__step.is-on { opacity: 1; }
.story__step time { font-family: var(--mono); font-size: 14px; color: #8f5f08; }
.story__step h3 { font-family: var(--display); font-size: clamp(27px, 3vw, 42px); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; margin: 10px 0 14px; }
.story__step p { color: var(--muted-dark); max-width: 42ch; font-size: 18px; }
.story__sticky { position: sticky; top: max(88px, calc(50vh - 300px)); }
.story__note { margin-top: 10px; font-size: 13px; color: var(--muted-dark); text-align: right; }

.device { background: var(--ink-2); color: var(--bone); border-radius: 18px; box-shadow: 0 50px 90px -40px rgba(30, 20, 0, .55), 0 0 0 1px rgba(0, 0, 0, .45); overflow: hidden; }
.device__bar { display: flex; align-items: center; gap: 6px; padding: 11px 15px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.device__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-3); }
.device__bar span { margin-left: 10px; font-family: var(--mono); }
.device__screen { position: relative; height: min(66vh, 540px); }

.stage { position: absolute; inset: 0; padding: clamp(14px, 2vw, 26px); opacity: 0; visibility: hidden; transition: opacity .45s, visibility .45s; display: flex; flex-direction: column; gap: 14px; }
.stage.is-on { opacity: 1; visibility: visible; }
.no-motion .stage *, .no-motion .stage *::before, .no-motion .stage *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }

/* 0: naptár */
.cal__top { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.cal__top b { font-family: var(--display); font-size: 21px; color: var(--bone); }
.cal__pill { margin-left: auto; font-size: 12px; padding: 3px 10px; border-radius: 99px; background: rgba(242, 178, 51, .15); color: var(--amber); }
.cal__heads { display: grid; grid-template-columns: 26px repeat(3, 1fr); gap: 6px; font-size: 12.5px; color: var(--muted); }
.cal__grid { flex: 1; display: grid; grid-template-columns: 26px 1fr; gap: 6px; min-height: 0; }
.cal__hours { display: grid; grid-template-rows: repeat(5, 1fr); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.cal__cols { position: relative; background: repeating-linear-gradient(to bottom, var(--line) 0 1px, transparent 1px 20%), linear-gradient(to right, transparent calc(33.33% - .5px), var(--line) 0 calc(33.33% + .5px), transparent 0 calc(66.66% - .5px), var(--line) 0 calc(66.66% + .5px), transparent 0); border-radius: 6px; }
.cal__card { position: absolute; top: var(--top); height: var(--h); left: calc((var(--col) - 1) * 33.333% + 3px); width: calc(33.333% - 6px); color: #fff; border-radius: 7px; padding: 6px 8px; font-size: 12px; line-height: 1.25; overflow: hidden; display: flex; flex-direction: column; opacity: 0; }
.cal__card b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal__card span { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.is-on .cal__card { animation: dropIn .6s var(--ease) var(--d) forwards; }
.is-on .cal__card--move { animation: dropIn .6s var(--ease) var(--d) forwards, moveCard 2.4s var(--ease) 1.4s forwards; }
@keyframes dropIn { from { opacity: 0; transform: translateY(-10px) scale(.96); } to { opacity: 1; transform: none; } }
/* Az áthelyezett időpont az új helyén marad. */
@keyframes moveCard { 0% { transform: none; box-shadow: none; } 25% { transform: scale(1.04); box-shadow: 0 14px 26px rgba(0, 0, 0, .5); } 70%, 100% { transform: translateY(90%); box-shadow: none; } }
.cal__now { position: absolute; left: 0; right: 0; height: 2px; background: var(--amber); z-index: 2; top: 18%; box-shadow: 0 0 12px var(--amber); }
/* Az idő csak előre megy: a vonal a végén elhalványul, és elölről indul. */
.is-on .cal__now { animation: nowLine 18s linear infinite; }
@keyframes nowLine { 0% { top: 12%; opacity: 0; } 5%, 94% { opacity: 1; } 100% { top: 88%; opacity: 0; } }

/* 1: fogtérkép. A fogképek belseje átlátszó, világos felületre készültek, ezért ez a jelenet világos. */
.stage--chart { background: #fdfcf9; color: var(--ink); }
.chart__patient { display: flex; align-items: baseline; gap: 12px; font-size: 14px; color: var(--muted-dark); }
.chart__patient b { font-family: var(--display); font-size: 21px; color: var(--ink); }
.chart__arch { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(8px, 2.4vh, 22px); min-height: 0; container-type: inline-size; }
.chart__row { display: flex; justify-content: center; }
.chart__row--upper { align-items: flex-end; }
.chart__row--lower { align-items: flex-start; }
.tooth { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; opacity: 0; }
.is-on .tooth { animation: toothIn .5s var(--ease) var(--d) forwards; }
@keyframes toothIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Közös lépték: a fogak valódi arányukban maradnak, és a szélesebb fogív kitölti a sort. */
.tooth__fig { position: relative; display: block; width: calc(var(--w) * 100cqw / var(--arch)); line-height: 0; }
.tooth__base { display: block; width: 100%; height: auto; }
.tooth--gone .tooth__base { visibility: hidden; }
/* Az overlay vászna oldalanként 50% / 15%-kal nagyobb a fogképnél (ToothOverlayExtractor). */
.tooth__ov { position: absolute; left: -50%; top: -15%; width: 200%; height: 130%; max-width: none; pointer-events: none; opacity: 0; }
.is-on .tooth__ov { animation: fadeIn .6s var(--ease) 1s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.tooth small { font-family: var(--mono); font-size: 10px; line-height: 1.3; color: var(--muted-dark); padding: 0 3px; border-radius: 3px; }
.tooth--selected small { color: var(--ink); background: var(--amber); }
.chart__legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; color: var(--muted-dark); }
.chart__legend b { color: var(--ink); font-weight: 600; }

/* 2: aláírás */
.stage--sign { align-items: center; justify-content: center; background: radial-gradient(60% 60% at 50% 45%, rgba(242, 178, 51, .1), transparent 70%); }
.tablet { width: min(86%, 440px); background: var(--bone); color: var(--ink); border-radius: 16px; padding: clamp(16px, 3vw, 28px); box-shadow: 0 0 0 7px #000, 0 0 0 8px #3a3528, 0 30px 60px rgba(0, 0, 0, .55); display: flex; flex-direction: column; gap: 9px; }
.tablet b { font-family: var(--display); font-size: clamp(16px, 2vw, 21px); line-height: 1.15; margin-bottom: 4px; }
.line { height: 6px; border-radius: 3px; background: var(--bone-2); }
.line--short { width: 60%; }
.sign { margin-top: 8px; background: #fff; border-radius: 10px; padding: 8px 12px 6px; border: 1px dashed #c7bfae; }
.sign svg { display: block; width: 100%; height: auto; max-height: 90px; }
.sign path { stroke: #1a2c6b; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.is-on .sign path { animation: draw 2.1s ease-in-out .35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.sign small { font-size: 11px; color: var(--muted-dark); }
.tablet__ok { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: #0f6b47; opacity: 0; }
.is-on .tablet__ok { animation: fadeUp .5s var(--ease) 2.5s forwards; }
.tablet__ok i, .billingo i, .close__ok i { width: 16px; height: 16px; border-radius: 50%; background: currentColor; flex: none; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm3.7-9.8-1.2-1-3.3 4-1.8-1.6-1 1.2 3 2.6 4.3-5.2Z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm3.7-9.8-1.2-1-3.3 4-1.8-1.6-1 1.2 3 2.6 4.3-5.2Z'/%3E%3C/svg%3E") center / contain no-repeat; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* 3: ajánlat */
.stage--offer { gap: clamp(10px, 2vh, 18px); }
.flow { display: flex; align-items: center; gap: 6px; font-size: clamp(11px, 1.2vw, 13px); }
.flow span { padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); }
.flow i { flex: 1; min-width: 6px; height: 1px; background: var(--line); position: relative; }
.is-on .flow span { animation: lightUp .4s var(--d) forwards; }
.is-on .flow i { animation: lightLine .4s var(--d) forwards; }
@keyframes lightUp { to { background: var(--amber); color: var(--ink); border-color: var(--amber); } }
@keyframes lightLine { to { background: var(--amber); } }
.lines { display: flex; flex-direction: column; flex: 1; justify-content: center; min-height: 0; }
.lines div { display: flex; justify-content: space-between; gap: 14px; padding: clamp(8px, 1.8vh, 15px) 0; border-bottom: 1px solid var(--line); font-size: clamp(13.5px, 1.4vw, 16px); opacity: 0; }
.is-on .lines div { animation: fadeUp .5s var(--ease) var(--d) forwards; }
.lines span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lines small, .total small { font-family: var(--mono); font-size: 11px; color: var(--amber); margin-left: 5px; }
.total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; color: var(--muted); }
.total b { font-family: var(--display); font-size: clamp(30px, 4.4vw, 54px); font-weight: 700; letter-spacing: -.03em; color: var(--bone); font-variant-numeric: tabular-nums; white-space: nowrap; }
.billingo { display: flex; align-items: center; gap: 8px; font-size: 14px; color: #7fe0b0; opacity: 0; }
.is-on .billingo { animation: fadeUp .5s var(--ease) 1.5s forwards; }

/* 4: zárás */
.close__head { display: flex; align-items: center; justify-content: space-between; }
.close__head b { font-family: var(--display); font-size: 21px; }
.close__ok { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: #7fe0b0; }
.bars { display: flex; flex-direction: column; gap: clamp(10px, 2.2vh, 18px); flex: 1; justify-content: center; min-height: 0; }
.bars div { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 14px; }
.bars span { color: var(--muted); }
.bars b { font-variant-numeric: tabular-nums; font-weight: 600; grid-column: 2; grid-row: 1; }
.bars i { grid-column: 1 / -1; height: clamp(10px, 2vh, 16px); border-radius: 4px; background: linear-gradient(90deg, var(--amber-deep), var(--amber)); width: 0; }
.is-on .bars i { animation: grow 1s var(--ease) var(--d) forwards; }
.bars div:nth-child(1) i { --v: 78%; }
@keyframes grow { to { width: var(--v); } }
.queue { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.queue div { background: var(--ink-3); border-radius: 10px; padding: 10px 13px; font-size: 13px; color: #c9c2b2; line-height: 1.3; opacity: 0; }
.queue b { display: block; font-family: var(--display); font-size: 26px; color: var(--bone); }
.is-on .queue div { animation: fadeUp .5s var(--ease) var(--d) forwards; }

/* Funkciók */
.features { padding: clamp(80px, 11vw, 160px) var(--gutter); background: var(--ink); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: clamp(40px, 6vw, 72px); }
.card { background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; min-height: 310px; }
.card:hover { border-color: rgba(242, 178, 51, .45); }
.card--wide { grid-column: span 2; }
.card--know { grid-column: 1 / -1; }
.card__art { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 120px; margin-bottom: 20px; }
.card h3 { font-family: var(--display); font-size: 25px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.card p { color: var(--muted); margin-top: 7px; font-size: 16px; max-width: 48ch; }

.art-lab { display: flex; align-items: center; width: 100%; gap: 10px; font-size: 13px; color: #d7d0c0; }
.art-lab span { padding: 6px 13px; border: 1px solid var(--line); border-radius: 99px; white-space: nowrap; }
.art-lab i { flex: 1; height: 2px; background: var(--line); position: relative; overflow: hidden; }
.art-lab u { position: absolute; inset: 0 auto 0 0; width: 34%; background: var(--amber); animation: travel 2.6s linear infinite; }
.art-lab i + span + i u { animation-delay: 1.3s; }
@keyframes travel { from { transform: translateX(-110%); } to { transform: translateX(310%); } }

.art-mail { position: relative; width: 150px; height: 104px; }
.art-mail span { position: absolute; inset: 0; border-radius: 10px; background: var(--ink-3); border: 1px solid var(--line); animation: mailFly 4.5s var(--ease) infinite; }
.art-mail span::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 56%; background: linear-gradient(to bottom right, transparent 49.5%, var(--line) 50%, transparent 50.5%) left / 50% 100% no-repeat, linear-gradient(to bottom left, transparent 49.5%, var(--line) 50%, transparent 50.5%) right / 50% 100% no-repeat; }
.art-mail span:nth-child(2) { animation-delay: -1.5s; }
.art-mail span:nth-child(3) { animation-delay: -3s; background: var(--amber); }
.art-mail span:nth-child(3)::before { background: linear-gradient(to bottom right, transparent 49.5%, rgba(0, 0, 0, .4) 50%, transparent 50.5%) left / 50% 100% no-repeat, linear-gradient(to bottom left, transparent 49.5%, rgba(0, 0, 0, .4) 50%, transparent 50.5%) right / 50% 100% no-repeat; }
@keyframes mailFly { 0% { transform: translate(-16px, 14px) scale(.9); opacity: 0; } 18%, 62% { transform: none; opacity: 1; } 100% { transform: translate(64px, -38px) scale(.82) rotate(6deg); opacity: 0; } }

.art-rep { display: flex; align-items: flex-end; gap: 9px; height: 124px; width: 100%; max-width: 240px; }
.art-rep i { flex: 1; background: var(--ink-3); border-radius: 4px 4px 0 0; transform-origin: bottom; animation: pulseBar 3.6s var(--ease) infinite alternate; }
.art-rep i:nth-child(1) { height: 34%; } .art-rep i:nth-child(2) { height: 52%; animation-delay: -.5s; } .art-rep i:nth-child(3) { height: 42%; animation-delay: -1s; } .art-rep i:nth-child(4) { height: 68%; animation-delay: -1.5s; } .art-rep i:nth-child(5) { height: 60%; animation-delay: -2s; } .art-rep i:nth-child(6) { height: 84%; animation-delay: -2.5s; }
.art-rep i:nth-child(7) { height: 100%; background: var(--amber); animation-delay: -3s; }
@keyframes pulseBar { from { transform: scaleY(.72); } to { transform: scaleY(1); } }

.art-perm { display: grid; grid-template-columns: repeat(6, 26px); gap: 8px; }
.art-perm i { width: 26px; height: 26px; border-radius: 7px; background: var(--ink-3); animation: tick 5.4s steps(1) infinite; }
.art-perm i:nth-child(3n) { animation-delay: -1.2s; } .art-perm i:nth-child(4n+1) { animation-delay: -2.6s; } .art-perm i:nth-child(5n+2) { animation-delay: -3.8s; }
@keyframes tick { 0%, 40% { background: var(--ink-3); } 41%, 100% { background: var(--amber); } }

.art-task { width: 100%; max-width: 280px; display: flex; flex-direction: column; gap: 9px; }
.art-task span { height: 32px; border-radius: 8px; background: var(--ink-3); position: relative; overflow: hidden; }
.art-task span::after { content: ""; position: absolute; left: 10px; top: 9px; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid var(--muted); animation: taskDone 6s steps(1) infinite; }
.art-task span:nth-child(2)::after { animation-delay: 1.5s; } .art-task span:nth-child(3)::after { animation-delay: 3s; }
.art-task span::before { content: ""; position: absolute; left: 34px; right: 26%; top: 14px; height: 4px; border-radius: 2px; background: var(--line); }
@keyframes taskDone { 0%, 30% { background: transparent; border-color: var(--muted); } 31%, 100% { background: var(--amber); border-color: var(--amber); } }

.art-know { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; font-size: 15px; }
.art-know span { padding: 10px 14px; border-radius: 9px; background: var(--ink-3); color: #d7d0c0; animation: knowGlow 7.5s infinite; }
.art-know span:nth-child(2) { animation-delay: 2.5s; } .art-know span:nth-child(3) { animation-delay: 5s; }
@keyframes knowGlow { 0%, 28%, 100% { box-shadow: none; color: #d7d0c0; } 8%, 20% { box-shadow: inset 0 0 0 1px var(--amber); color: #fff; } }

/* Hangulat-sáv */
.band { position: relative; height: clamp(440px, 92vh, 900px); overflow: hidden; display: flex; align-items: flex-end; background: #070605; }
.band img { position: absolute; inset: -12% 0; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 6, 5, .82), transparent 55%), linear-gradient(to bottom, var(--ink), transparent 16%); }
.band p { position: relative; z-index: 1; padding: 0 var(--gutter) clamp(36px, 7vw, 88px); font-family: var(--display); font-weight: 700; font-size: clamp(32px, 5.4vw, 78px); line-height: 1.04; letter-spacing: -.035em; }

/* Biztonság */
.trust { padding: clamp(80px, 11vw, 160px) var(--gutter); background: var(--ink); }
.chain { margin-top: clamp(36px, 5vw, 64px); background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: clamp(14px, 2.2vw, 28px); }
.chain__status { display: inline-flex; align-items: center; gap: 9px; font-size: 15px; font-weight: 600; color: #7fe0b0; margin-bottom: 18px; }
.chain__status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.chain.is-broken .chain__status { color: var(--red); }
.chain__blocks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.block { position: relative; background: var(--ink-3); border: 1px solid var(--line); border-radius: 12px; padding: 13px; font-size: 13px; display: flex; flex-direction: column; gap: 8px; transition: border-color .35s, background .35s, transform .35s var(--ease); min-width: 0; }
.block:not(:last-child)::after { content: ""; position: absolute; right: -23px; top: 50%; width: 22px; height: 2px; background: var(--amber); transition: background .35s; }
.block__id { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.block__act { font-weight: 600; line-height: 1.25; min-height: 2.5em; overflow-wrap: anywhere; }
.block__hash { font-family: var(--mono); font-size: 11.5px; color: var(--amber); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .35s; }
.block__btn { margin-top: auto; align-self: flex-start; background: none; border: 1px solid var(--line); color: var(--bone); border-radius: 99px; padding: 4px 12px; font: inherit; font-size: 12.5px; cursor: pointer; transition: border-color .2s, color .2s; }
.block__btn:hover { border-color: var(--red); color: var(--red); }
.block.is-tampered { background: rgba(255, 106, 85, .16); border-color: var(--red); transform: translateY(-4px); }
.block.is-tampered .block__act { color: var(--red); }
.block.is-broken { border-color: rgba(255, 106, 85, .55); }
.block.is-broken .block__hash, .block.is-tampered .block__hash { color: var(--red); }
.block.is-broken::after, .block.is-tampered::after { background: var(--red); }
.chain__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; font-size: 14px; color: var(--muted); min-height: 32px; }
.chain__foot b { color: var(--bone); font-weight: 600; }
.chain__reset { background: var(--bone); color: var(--ink); border: 0; border-radius: 99px; padding: 6px 15px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: clamp(40px, 5vw, 64px); }
.facts li { border-top: 1px solid var(--line); padding-top: 16px; }
.facts b { display: block; font-family: var(--display); font-size: 21px; letter-spacing: -.015em; margin-bottom: 6px; }
.facts span { color: var(--muted); font-size: 15.5px; }

/* Magyar */
.local { background: var(--bone); color: var(--ink); padding: clamp(80px, 11vw, 160px) var(--gutter); }
.local__rows { margin-top: clamp(32px, 5vw, 64px); border-bottom: 1px solid rgba(11, 10, 8, .16); }
.local__rows li { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr) 96px; align-items: center; gap: 20px; padding: clamp(16px, 2.2vw, 28px) 0; border-top: 1px solid rgba(11, 10, 8, .16); }
.local__rows b { font-family: var(--display); font-size: clamp(23px, 3vw, 40px); font-weight: 700; letter-spacing: -.025em; line-height: 1.08; }
.local__rows span { color: var(--muted-dark); }
.check { justify-self: end; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); position: relative; }
.check::after { content: ""; position: absolute; left: 9.5px; top: 6px; width: 7px; height: 11px; border: solid var(--amber); border-width: 0 2px 2px 0; transform: rotate(42deg); }
.badge { justify-self: end; font-family: var(--sans); font-style: normal; font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--ink); white-space: nowrap; }

/* Zárás */
.final { background: var(--amber); color: var(--ink); overflow: hidden; }
.final__marquee { display: flex; white-space: nowrap; font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 54px); letter-spacing: -.03em; padding: 14px 0; border-bottom: 2px solid var(--ink); }
.final__marquee span { flex: none; animation: slide 30s linear infinite; }
.final__inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: end; padding: clamp(64px, 9vw, 130px) var(--gutter); }
.final h2 { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 7.4vw, 112px); line-height: .97; letter-spacing: -.045em; text-wrap: balance; }
.final__pitch p { margin: 22px 0 28px; max-width: 46ch; font-size: 19px; }
.login label { display: block; font-weight: 600; margin-bottom: 12px; }
.login__field { display: flex; align-items: center; background: var(--ink); color: var(--bone); border-radius: 14px; padding: 6px 6px 6px 16px; }
.login__field:focus-within { box-shadow: 0 0 0 3px rgba(11, 10, 8, .28); }
.login__field input { flex: 1 1 60px; min-width: 40px; width: 100%; background: none; border: 0; color: var(--bone); font: inherit; font-size: 17px; padding: 10px 0; outline: none; text-align: right; }
.login__field input::placeholder { color: var(--muted); }
.login__field span { color: var(--muted); font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 10px; }
.login__field button { flex: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--amber); color: var(--ink); font-size: 20px; cursor: pointer; transition: background .2s; }
.login__field button:hover { background: #ffc550; }
.login__error { min-height: 1.5em; margin-top: 8px; font-size: 14.5px; font-weight: 600; color: #641500; }

.footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding: 26px var(--gutter); font-size: 14px; color: var(--muted); }
.footer__logo { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--bone); letter-spacing: -.02em; }

/* Tablet és szűkebb */
@media (max-width: 1080px) {
    .nav__links { display: none; }
    .chain__blocks { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
    .block:not(:last-child)::after { display: none; }
    .facts { grid-template-columns: 1fr 1fr; }
    .bento { grid-template-columns: 1fr 1fr; }
    .card--wide { grid-column: span 2; }
    .card--know { grid-column: 1 / -1; }
}

/* Telefon */
@media (max-width: 820px) {
    body { font-size: 16px; }
    .nav { padding-left: 18px; }
    .hero { height: 300vh; }
    .hero__glow { background: radial-gradient(90vw 70vw at 50% 22%, rgba(242, 178, 51, .15), transparent 68%); }
    .hero__still { left: 50%; right: auto; top: 26%; width: min(78vw, 42vh); transform: translate(-50%, -50%); }
    .hero__copy { right: var(--gutter); bottom: 22px; }
    .hero__title { font-size: min(12.2vw, 7.2vh); margin: 8px 0 12px; }
    .hero__line.is-on { transform: translateX(4px); }
    .hero__lead { font-size: 15px; }
    .hero__cta { margin-top: 14px; }
    .hero__cta .btn { padding: 12px 20px; font-size: 15px; }
    .hero__meta { top: 74px; bottom: auto; right: var(--gutter); }
    .hero__caption { display: none; }
    .hero__ticks i { width: 16px; }
    .eyebrow { font-size: 12.5px; }

    .story { display: flex; flex-direction: column-reverse; gap: 12px; }
    .story__sticky { position: sticky; top: 70px; z-index: 3; width: 100%; }
    .story__note { display: none; }
    .device__screen { height: 44svh; }
    .device__bar { padding: 8px 12px; }
    .story__steps { padding-bottom: 8vh; }
    .story__step { min-height: 46svh; padding-top: 30px; }
    .story__step:first-child { padding-top: 22px; }
    .story__step p { font-size: 16px; }

    .chart__patient b, .cal__top b, .close__head b { font-size: 17px; }
    .cal__card { font-size: 10.5px; padding: 3px 5px; }
    .tooth small { font-size: 8px; padding: 0 1px; }
    .chart__legend { font-size: 11.5px; gap: 2px 10px; }
    .flow span { padding: 3px 7px; }

    .bento { grid-template-columns: 1fr; }
    .card--wide { grid-column: auto; }
    .card { min-height: 0; }
    .art-lab { font-size: 11.5px; gap: 5px; }
    .art-lab span { padding: 4px 8px; }
    .art-perm { grid-template-columns: repeat(6, 22px); gap: 7px; }
    .art-perm i { width: 22px; height: 22px; }

    .facts { grid-template-columns: 1fr; gap: 20px; }
    .chain__blocks { grid-template-columns: 1fr; gap: 10px; }
    .block__act { min-height: 0; }
    .chain__foot { flex-direction: column; align-items: flex-start; }

    .local__rows li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; }
    .local__rows b { grid-column: 1; }
    .local__rows span { grid-column: 1; grid-row: 2; font-size: 15px; }
    .check, .badge { grid-column: 2; grid-row: 1 / 3; }

    .final__inner { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
    .ticker, .final__marquee { overflow-x: auto; }
}
