/* The landing page's own styles (linked on / and /hu/ only, after the kit's sheets): the bento miniatures (.mdv-*) and
   the hero demo (.mdm-*, app/landing-demo.mjs + app/landing-demo.js). Own classes only; every colour is a kit token so
   both follow the accent, dark and light. Nothing here sets layout on the kit's frame classes (.lp-*, .mx-*).

   The demo's stage is a picture of the Roster screen at a fixed design size (1040 x 690), in px on purpose: demo.js
   scales it to the column. It always plays: no prefers-reduced-motion anywhere. */

/* ── Bento miniatures: one per feature card, in the words of nobody (numbers and shapes), looping 4-6s ── */
.mdv { direction: ltr; width: 100%; padding: 0 1rem; display: flex; align-items: center; justify-content: center; gap: 1rem; }

/* 1. Opening hours, day by day: a column per weekday, a span of open hours that differs by day, a closed day, and the
   clock line sweeping through the day. */
.mdv-hours { position: relative; display: flex; gap: 9px; height: 96px; }
.mdv-hours i { position: relative; width: 16px; border-radius: 5px; background: color-mix(in srgb, var(--c-ink) 10%, transparent); }
.mdv-hours i::after { content: ''; position: absolute; inset-inline: 0; top: var(--a); bottom: var(--b); border-radius: 5px; background: var(--c-accent); transform-origin: center; animation: mdv-open 4.8s ease-in-out infinite; animation-delay: var(--d); }
.mdv-hours i:nth-child(1) { --a: 14%; --b: 8%; --d: -0.2s; }
.mdv-hours i:nth-child(2) { --a: 14%; --b: 8%; --d: -0.8s; }
.mdv-hours i:nth-child(3) { --a: 14%; --b: 8%; --d: -1.4s; }
.mdv-hours i:nth-child(4) { --a: 14%; --b: 8%; --d: -2s; }
.mdv-hours i:nth-child(5) { --a: 14%; --b: 8%; --d: -2.6s; }
.mdv-hours i:nth-child(6) { --a: 30%; --b: 24%; --d: -3.2s; }
.mdv-hours i:nth-child(7) { background: none; border: 1.5px dashed var(--c-line-strong); }
.mdv-hours i:nth-child(7)::after { display: none; }
.mdv-hours::after { content: ''; position: absolute; inset-inline: -6px; height: 2px; border-radius: 1px; background: var(--c-ink); opacity: 0.55; animation: mdv-clock 4.8s linear infinite; animation-delay: -1.7s; }
@keyframes mdv-open { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.86); } }
@keyframes mdv-clock { 0% { top: 0; } 100% { top: calc(100% - 2px); } }

/* 2. Roles and who must be there: each role asks for a number of seats; the seats fill one after another. */
.mdv-seats { display: flex; flex-direction: column; gap: 7px; width: 100%; max-width: 190px; }
.mdv-seat { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 9px; border: 1px solid var(--c-line); border-radius: 999px; background: var(--c-surface); }
.mdv-seat b { min-width: 0.7em; font: 700 0.8125rem/1 var(--font-mono, ui-monospace, monospace); color: var(--c-ink); }
.mdv-seat i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--c-accent); animation: mdv-seat 6s ease-in-out infinite; animation-delay: var(--d, 0s); }
.mdv-seat:nth-child(1) i { --d: -0.5s; }
.mdv-seat:nth-child(2) i:nth-of-type(1) { --d: -2s; }
.mdv-seat:nth-child(2) i:nth-of-type(2) { --d: -3.2s; }
.mdv-seat:nth-child(3) i { --d: -4.4s; }
@keyframes mdv-seat { 0%, 12% { background: transparent; } 24%, 78% { background: var(--c-accent); } 90%, 100% { background: transparent; } }

/* 3. A profile for every employee: the weekly hours budget as a ring, days off crossed out, the range of shift lengths. */
.mdv-ring { position: relative; flex: none; width: 74px; height: 74px; }
.mdv-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mdv-ring circle { fill: none; stroke-width: 5; }
.mdv-ring__track { stroke: color-mix(in srgb, var(--c-ink) 12%, transparent); }
.mdv-ring__arc { stroke: var(--c-accent); stroke-linecap: round; stroke-dasharray: 125.7; stroke-dashoffset: 125.7; animation: mdv-ring 5.4s ease-in-out infinite; animation-delay: -1.6s; }
.mdv-ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 700 1rem/1 var(--font-mono, ui-monospace, monospace); color: var(--c-ink); }
@keyframes mdv-ring { 0% { stroke-dashoffset: 125.7; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 125.7; } }
.mdv-side { display: flex; flex-direction: column; gap: 11px; }
.mdv-days { display: flex; gap: 5px; }
.mdv-days i { width: 15px; height: 15px; border-radius: 4px; background: color-mix(in srgb, var(--c-accent) 55%, transparent); }
.mdv-days i.is-off { background: repeating-linear-gradient(135deg, var(--c-line-strong) 0 2px, transparent 2px 5px); border: 1px solid var(--c-line-strong); }
.mdv-days i.is-leave { background: none; border: 1.5px dashed var(--c-warn); animation: mdv-blink 3s ease-in-out infinite; }
@keyframes mdv-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
.mdv-range { position: relative; height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--c-ink) 12%, transparent); }
.mdv-range::after { content: ''; position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--c-accent); animation: mdv-range 4.4s ease-in-out infinite; animation-delay: -1.1s; }
@keyframes mdv-range { 0%, 100% { inset-inline: 38% 38%; } 50% { inset-inline: 22% 8%; } }

/* 4. A draft in one click: a button is pressed and the week's grid fills in cell by cell. */
.mdv-go { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--c-accent); color: var(--c-accent-ink); animation: mdv-press 5s ease-in-out infinite; animation-delay: -0.4s; }
.mdv-go svg { width: 16px; height: 16px; margin-inline-start: 2px; }
@keyframes mdv-press { 0%, 8%, 100% { transform: scale(1); } 4% { transform: scale(0.88); } }
.mdv-grid { display: grid; grid-template-columns: repeat(7, 14px); gap: 4px; }
.mdv-grid i { height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--c-ink) 10%, transparent); animation: mdv-cell 5s ease-in-out infinite; animation-delay: calc(var(--i) * -0.19s); }
@keyframes mdv-cell { 0%, 14% { background: color-mix(in srgb, var(--c-ink) 10%, transparent); } 28%, 80% { background: var(--c-accent); } 94%, 100% { background: color-mix(in srgb, var(--c-ink) 10%, transparent); } }

/* 5. Warnings while you edit: a shift slides closer to the one before it, and the moment the rest drops under the
   minimum the gap turns amber and an alert shows; below it, hours climb past the weekly limit. */
.mdv-warn { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 300px; }
.mdv-rest { position: relative; height: 30px; }
.mdv-rest > * { position: absolute; top: 4px; height: 22px; border-radius: 6px; }
.mdv-rest__a { inset-inline-start: 0; width: 34%; background: var(--c-accent); }
.mdv-rest__gap { inset-inline-start: 34%; top: 13px; height: 4px; border-radius: 2px; background: var(--c-ok); animation: mdv-gap 6s linear infinite; }
.mdv-rest__b { width: 34%; background: var(--c-accent); animation: mdv-slide 6s linear infinite; }
.mdv-rest__min { inset-inline-start: 52%; top: 0; height: 30px; width: 0; border-inline-start: 1.5px dashed var(--c-ink-subtle); border-radius: 0; }
.mdv-rest__bang { inset-inline-end: 0; top: 3px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--c-warn); color: var(--c-canvas); font: 800 0.8125rem/1 var(--font-mono, ui-monospace, monospace); animation: mdv-bang 6s linear infinite; }
@keyframes mdv-slide { 0% { inset-inline-start: 62%; } 40% { inset-inline-start: 44%; } 60% { inset-inline-start: 44%; } 100% { inset-inline-start: 62%; } }
@keyframes mdv-gap { 0% { width: 28%; background: var(--c-ok); } 22% { width: 20%; background: var(--c-ok); } 22.2% { background: var(--c-warn); } 40% { width: 10%; } 60% { width: 10%; } 77.7% { width: 20%; background: var(--c-warn); } 78% { background: var(--c-ok); } 100% { width: 28%; background: var(--c-ok); } }
@keyframes mdv-bang { 0%, 22% { opacity: 0; transform: scale(0.5); } 24%, 76% { opacity: 1; transform: scale(1); } 78%, 100% { opacity: 0; transform: scale(0.5); } }
.mdv-hrs { position: relative; height: 10px; border-radius: 5px; background: color-mix(in srgb, var(--c-ink) 10%, transparent); }
.mdv-hrs::before { content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 5px; background: var(--c-accent); animation: mdv-fill 6s linear infinite; animation-delay: -2.4s; }
.mdv-hrs::after { content: ''; position: absolute; inset-block: -4px; inset-inline-start: 72%; width: 0; border-inline-start: 1.5px dashed var(--c-ink-subtle); }
@keyframes mdv-fill { 0% { width: 50%; background: var(--c-accent); } 32% { width: 72%; background: var(--c-accent); } 32.2% { background: var(--c-warn); } 60% { width: 88%; } 80% { width: 88%; } 100% { width: 50%; background: var(--c-warn); } }

/* ── The hero demo: the Roster tab in a browser window ── */
.mdm-stage { width: 1040px; height: 690px; overflow: hidden; color: var(--c-ink); font-size: 13px; line-height: 1.35; text-align: start; pointer-events: none; user-select: none; -webkit-user-select: none; }
.mdm-stage :where(p) { margin: 0; }
.mdm-stage b, .mdm-stage strong { font-weight: 650; }
.mdm-win { position: absolute; left: 24px; top: 24px; width: 992px; height: 642px; overflow: hidden; border: 1px solid var(--c-line-strong); border-radius: 14px; background: var(--c-canvas); box-shadow: var(--lp-demo-shadow); }
.mdm-win__chrome { display: flex; align-items: center; gap: 14px; height: 34px; padding: 0 14px; background: var(--c-surface-2, var(--c-surface)); border-bottom: 1px solid var(--c-line); }
.mdm-dots { display: flex; gap: 6px; }
.mdm-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--c-line-strong); }
.mdm-url { flex: 0 1 360px; padding: 3px 12px; border-radius: 999px; background: var(--c-canvas); border: 1px solid var(--c-line); color: var(--c-ink-muted); font-size: 12px; text-align: center; }
.mdm-appbar { display: flex; align-items: center; gap: 22px; height: 46px; padding: 0 18px; background: var(--c-surface); border-bottom: 1px solid var(--c-line); }
.mdm-mark { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.mdm-mark svg { width: 18px; height: 18px; color: var(--c-accent); }
.mdm-nav { display: flex; gap: 6px; flex: 1; }
.mdm-nav__item { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 8px; color: var(--c-ink-muted); font-weight: 550; }
.mdm-nav__item svg { width: 15px; height: 15px; }
.mdm-nav__item.is-here { background: var(--c-accent-soft); color: var(--c-ink); }
.mdm-cog svg { width: 18px; height: 18px; color: var(--c-ink-muted); }
.mdm-screen { padding: 14px 16px; }
.mdm-stage[data-view='setup'] .mdm-screen--roster, .mdm-stage:not([data-view='setup']) .mdm-screen--setup { display: none; }
.mdm-stage[data-view='setup'] .mdm-nav__item--settings, .mdm-stage:not([data-view='setup']) .mdm-nav__item--calendar { background: var(--c-accent-soft); color: var(--c-ink); }
.mdm-nav__item.is-press { background: var(--c-accent-soft); }
.mdm-panels { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-top: 14px; }
.mdm-panel { padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface); display: grid; gap: 6px; align-content: start; height: 440px; }
.mdm-panel__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.mdm-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; border: 1px solid var(--c-line); border-radius: 8px; background: var(--c-surface-2, var(--c-surface)); font-variant-numeric: tabular-nums; }
.mdm-row span { color: var(--c-ink-muted); }
.mdm-eyebrow { color: var(--c-ink-muted); font-size: 12px; }
.mdm-title { font-size: 22px; font-weight: 700; line-height: 1.2; }
.mdm-toolbar { display: flex; align-items: center; gap: 12px; margin: 10px 0 10px; }
.mdm-seg { display: inline-flex; border: 1px solid var(--c-line-strong); border-radius: 8px; overflow: hidden; }
.mdm-seg span { padding: 6px 12px; color: var(--c-ink-muted); font-weight: 550; }
.mdm-seg span + span { border-inline-start: 1px solid var(--c-line-strong); }
.mdm-seg .is-here { background: var(--c-accent-soft); color: var(--c-ink); }
.mdm-week { flex: 1; font-weight: 600; font-variant-numeric: tabular-nums; }
.mdm-generate { min-height: 0; padding: 7px 14px; font-size: 13px; }
.mdm-generate.is-press { background: var(--c-accent-strong); }

.mdm-empty, .mdm-board, .mdm-warns { border: 1px solid var(--c-line); border-radius: 10px; background: var(--c-surface); }
.mdm-empty { padding: 26px 20px; text-align: center; display: grid; gap: 4px; height: 338px; align-content: center; }
.mdm-empty p:last-child { color: var(--c-ink-muted); max-width: 520px; margin-inline: auto; }
.mdm-board { display: none; padding: 8px; }
/* the month table, drawn small: a name column, a column per day, the hours, and a head-count row (a grid, not the kit's table) */
.mdm-month { display: grid; gap: 0; font-variant-numeric: tabular-nums; }
.mdm-r { display: grid; grid-template-columns: 92px repeat(30, minmax(0, 1fr)) 74px; align-items: stretch; border-bottom: 1px solid var(--c-line); }
.mdm-r--foot { border-top: 2px solid var(--c-line-strong); border-bottom: 0; font-weight: 650; }
.mdm-name { display: flex; align-items: center; padding: 0 6px; font-weight: 650; font-size: 12px; border-inline-end: 1px solid var(--c-line); }
.mdm-d, .mdm-c { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; border-inline-end: 1px solid var(--c-line); }
.mdm-d { padding: 3px 0; line-height: 1.15; }
.mdm-d b { font-size: 11px; }
.mdm-d small { color: var(--c-ink-muted); font-size: 9px; }
.mdm-c { position: relative; height: 26px; }
.mdm-c b { font-size: 8.5px; font-weight: 650; letter-spacing: -0.2px; }
.mdm-n { height: 22px; font-size: 11px; }
/* a role's group: its heading, its people, its own head count (the product's role-grouped roster) */
.mdm-grp { display: flex; align-items: baseline; gap: 4px; padding: 3px 6px; border-top: 2px solid var(--c-line-strong); background: color-mix(in srgb, var(--c-accent) 8%, var(--c-surface)); font-size: 12px; }
.mdm-grp small { color: var(--c-ink-muted); font-size: 11px; }
.mdm-r--cnt { color: var(--c-ink-muted); border-bottom: 0; }
.mdm-r--cnt .mdm-name { font-size: 10px; font-weight: 600; overflow: hidden; }
.mdm-r--cnt .mdm-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mdm-name > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.mdm-also { margin-top: 1px; font-size: 8.5px; font-weight: 500; color: var(--c-info, var(--c-accent)); white-space: nowrap; }
.mdm-n b, .mdm-n-a, .mdm-n-b { font-size: 11px; }
.mdm-wk { background: color-mix(in srgb, var(--c-ink) 6%, var(--c-surface)); }
.mdm-tot { display: flex; align-items: center; justify-content: flex-end; padding: 0 6px; white-space: nowrap; font-size: 11px; }
.mdm-tot small { color: var(--c-ink-muted); font-size: 10px; }
.mdm-r--head .mdm-tot { color: var(--c-ink-muted); font-weight: 650; font-size: 10px; }
.mdm-add { color: var(--c-accent); font-size: 12px; font-weight: 700; }
.mdm-add.is-press { background: var(--c-accent-soft); border-radius: 4px; padding: 0 3px; }
.mdm-new { display: none; }
.mdm-flag { background: color-mix(in srgb, var(--c-warn) 20%, var(--c-surface)); box-shadow: inset 0 -3px 0 var(--c-warn); }
.mdm-flag i { position: absolute; top: 1px; inset-inline-end: 2px; font-style: normal; font-size: 9px; font-weight: 800; color: var(--c-warn); line-height: 1; }
.mdm-n-b, .mdm-hrs-b { display: none; }
.mdm-warns { display: none; margin-top: 10px; padding: 10px 14px; gap: 6px; }
.mdm-warns__head { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.mdm-warns__item { padding: 6px 10px; border: 1px solid var(--c-line); border-inline-start: 4px solid var(--c-warn); border-radius: 7px; }
.mdm-warns__ok, .mdm-warns__clear { display: none; }
.mdm-warns__ok { padding: 6px 10px; border-radius: 7px; background: var(--c-accent-soft); }

/* what the tour changes: is-drafted (the draft is in), is-fixed (Wednesday's closing cashier is in) */
.mdm-stage.is-drafted .mdm-empty { display: none; }
.mdm-stage.is-drafted .mdm-board { display: block; }
.mdm-stage.is-drafted .mdm-warns { display: block; }
.mdm-gen-b, .mdm-stage.is-drafted .mdm-gen-a { display: none; }
.mdm-stage.is-drafted .mdm-gen-b { display: inline; }
.mdm-stage.is-fixed .mdm-warns__item, .mdm-stage.is-fixed .mdm-warns__open, .mdm-stage.is-fixed .mdm-add[data-mdm-add], .mdm-stage.is-fixed .mdm-n-a, .mdm-stage.is-fixed .mdm-hrs-a { display: none; }
.mdm-stage.is-fixed .mdm-new, .mdm-stage.is-fixed .mdm-n-b, .mdm-stage.is-fixed .mdm-hrs-b { display: inline; }
.mdm-stage.is-fixed .mdm-flag { background: none; box-shadow: none; }
.mdm-stage.is-fixed .mdm-flag i { display: none; }
.mdm-stage.is-fixed .mdm-warns__ok, .mdm-stage.is-fixed .mdm-warns__clear { display: block; }

.mdm-scrim { position: absolute; inset: 0; background: color-mix(in srgb, var(--c-ink) 28%, transparent); opacity: 0; transition: opacity 0.25s; }
.mdm-sheet { position: absolute; inset-inline-start: 50%; top: 130px; width: 400px; margin-inline-start: -200px; padding: 16px; display: grid; gap: 8px; border: 1px solid var(--c-accent); border-radius: 12px; background: var(--c-surface); box-shadow: var(--lp-demo-shadow); opacity: 0; transform: translateY(10px); transition: opacity 0.25s, transform 0.25s; }
.mdm-sheet__title { font-weight: 700; font-size: 14px; }
.mdm-field__label { color: var(--c-ink-muted); font-size: 12px; font-weight: 600; }
.mdm-select { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border: 1px solid var(--c-line-strong); border-radius: 8px; background: var(--c-canvas); }
.mdm-select i { width: 7px; height: 7px; border-inline-end: 2px solid var(--c-ink-muted); border-bottom: 2px solid var(--c-ink-muted); transform: rotate(45deg) translateY(-2px); }
.mdm-sheet__save { justify-self: start; min-height: 0; padding: 7px 14px; font-size: 13px; }
.mdm-stage[data-overlay='add'] .mdm-scrim { opacity: 1; }
.mdm-stage[data-overlay='add'] .mdm-sheet { opacity: 1; transform: none; }

/* The hero's words: the kit's .lp-hero keeps the animated scene calm behind them (a soft glow of the page's ground,
   landing.css "Hero text over the page's animated scene", 2026-11-16). The frosted panel this block used to draw
   (task #4439) was a filled box the design never had (Chris) - gone. Only the layout this wrapper needs stays. */
.md-hero-copy { display: flex; flex-direction: column; align-items: center; max-width: 100%; }
.md-hero-copy .lp-h1 { overflow-wrap: anywhere; }
/* a phone: the kit's 40px minimum is wider than a long word like "műszakbeosztásod," inside the panel */
@media (max-width: 600px) { .md-hero-copy .lp-h1 { font-size: clamp(1.625rem, 7.2vw, 2.5rem); } }
