/* MANEE: film pod hero a karty ukázek (lokální verze podle plomo.ai).
   Film: typografické scény, mrak slov, čtyři jednoduché karty (Doklady, Uzávěrka, Platby, Kancelář).
   Bez JavaScriptu nebo s omezeným pohybem je vidět jen karta Kancelář a film se nespouští. */

/* ---------- Rám filmu ---------- */
.hero-film { --tilt: 1; width: 100%; max-width: 56rem; transform-origin: 50% 40%; }
.film-live-on .hero-film { transform: perspective(1500px) rotateX(calc((1 - var(--tilt)) * 10deg)) scale(calc(0.88 + var(--tilt) * 0.12)) translateY(calc((1 - var(--tilt)) * 24px)); will-change: transform; }
.film { position: relative; aspect-ratio: 16 / 10; border-radius: var(--m-r-panel); background: var(--m-white); box-shadow: 0 30px 60px -30px rgba(15, 26, 61, 0.30), 0 0 0 1px rgba(28, 31, 36, 0.06); overflow: hidden; container-type: inline-size; }
.film-stage, .fv, .film-type { position: absolute; inset: 0; }
.fv { display: grid; place-items: center; padding: 4.5cqw; opacity: 0; }
.film:not(.film-live) .fv-office { opacity: 1; }
.film-type { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; pointer-events: none; }
.film:not(.film-live) .film-type { display: none; }
.film-caption { margin-top: 1rem; text-align: center; font: var(--m-caption); letter-spacing: var(--m-caption-ls); color: var(--m-slate); }
@media (max-width: 640px) { .film { aspect-ratio: auto; height: min(150vw, 600px); } .fv { padding: 14px; } }

/* ---------- Typografické scény ---------- */
.ft { grid-area: 1 / 1; display: grid; justify-items: center; gap: 1.1cqw; padding: 0 6cqw; text-align: center; opacity: 0; isolation: isolate; }
.ft-big { margin: 0; font: 640 clamp(28px, 5.6cqw, 54px)/1.08 var(--m-font); letter-spacing: -0.035em; color: var(--m-graphite); text-wrap: balance; }
.ft-sub { margin: 0; font: 400 clamp(15px, 2.1cqw, 21px)/1.4 var(--m-font); color: var(--m-slate); }
.ft-line { display: block; }
.ft-logo { display: block; width: clamp(120px, 20cqw, 200px); height: auto; }
.ft-end .ft-logo { width: clamp(140px, 26cqw, 250px); margin-bottom: .6cqw; }
.ft-url { margin: 0; font: 500 clamp(13px, 1.6cqw, 16px)/1 var(--m-font); color: var(--m-slate); }
.hl { position: relative; z-index: 0; white-space: nowrap; --hl: 0; }
.hl::before { content: ""; position: absolute; z-index: -1; left: -0.1em; right: -0.1em; bottom: 0.04em; height: 0.5em; border-radius: 0.12em; background: #D4FF3A; transform: scaleX(var(--hl)) skewX(-8deg); transform-origin: 0 50%; }
.ft-cloud { grid-area: 1 / 1; position: relative; width: 100%; height: 100%; opacity: 0; }
.ft-cloud span { position: absolute; left: 50%; top: 50%; white-space: nowrap; font: 500 clamp(11px, 1.7cqw, 17px)/1 var(--m-font); color: var(--m-graphite); }
.ft-cloud .w-b { font-weight: 650; font-size: clamp(14px, 2.5cqw, 25px); letter-spacing: -0.02em; }
.ft-cloud .w-s { font-size: clamp(10px, 1.3cqw, 13px); color: var(--m-slate); }
.ft-cloud .w-r { color: var(--m-miss); }

/* ---------- Karty ukázek ---------- */
.vcard { width: min(100%, 34rem); text-align: left; color: var(--m-graphite); overflow: hidden; }
.vcard .panel-head small { font: 500 .8125rem/1.2 var(--m-font); color: var(--m-slate); }
.vrows { display: grid; }
.vrows li { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: .875rem; padding: .8125rem 1.25rem; border-bottom: 1px solid var(--m-line); }
.vrows li:last-child { border-bottom: 0; }
.v-office .vrows li { grid-template-columns: minmax(0, 1fr) auto; }
.vrows .r-name { font: 500 .9375rem/1.3 var(--m-font); }
.vrows .r-name small { display: block; font: var(--m-caption); color: var(--m-slate); }
.vrows .r-name small.sm { display: grid; }
.vrows .r-amt { font: 500 .9375rem/1 var(--m-font); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vico { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--m-stage); color: var(--m-slate); }
.vico .i { width: 1.125rem; height: 1.125rem; }
.stc, .sm, .vsum, .vpaybar { display: grid; }
.stc { justify-items: end; }
.stc > *, .sm > *, .vsum > *, .vpaybar > * { grid-area: 1 / 1; }
.st-b, .sm-b, .vsum .s1, .vsum .s2, .vbar.b1, .vbar.b2 { opacity: 0; }
.is-final .st-a, .is-final .sm-a { opacity: 0; }
.is-final .st-b, .is-final .sm-b { opacity: 1; }
.vfoot { display: flex; align-items: center; gap: .5rem; margin: 0; padding: .875rem 1.25rem; border-top: 1px solid var(--m-line); background: var(--m-ok-bg); color: var(--m-ok); font: 600 .9375rem/1.3 var(--m-font); }
.vfoot .i { width: 1.125rem; height: 1.125rem; }
.film-live .vfoot { opacity: 0; }
.vbtn { display: inline-flex; align-items: center; gap: .375rem; height: 2rem; padding: 0 .875rem; border-radius: 999px; background: var(--m-stamp); color: #FFFFFF; font: 600 .8125rem/1 var(--m-font); white-space: nowrap; }
.vbtn .i { width: 1rem; height: 1rem; }

/* Uzávěrka */
.vmsg { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .75rem; padding: 1.125rem 1.25rem; border-bottom: 1px solid var(--m-line); }
.vav { display: grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; background: var(--m-stamp-soft); color: var(--m-stamp); font: 650 .8125rem/1 var(--m-font); }
.vwho b { display: block; font: 600 .9375rem/1.3 var(--m-font); }
.vwho small { display: block; font: var(--m-caption); color: var(--m-slate); }
.vbubs { display: grid; margin-top: .5rem; }
.vbubs > * { grid-area: 1 / 1; justify-self: start; }
.vbub { padding: .625rem .875rem; border-radius: 4px 14px 14px 14px; background: var(--m-stage); font: 400 .9375rem/1.45 var(--m-font); }
.vtyping { display: inline-flex; align-items: center; gap: 4px; height: 2.25rem; padding: 0 .875rem; border-radius: 4px 14px 14px 14px; background: var(--m-stage); }
.vtyping i { width: 6px; height: 6px; border-radius: 50%; background: var(--m-slate); opacity: .5; }
.vbub { opacity: 1; }
.film-live .vbub, .film-live .vtyping { opacity: 0; }
.film:not(.film-live) .vtyping, .fhead-ui .vtyping { display: none; }
.vtasks li { grid-template-columns: auto minmax(0, 1fr) auto auto; }
.vtasks .k1 { grid-template-columns: auto minmax(0, 1fr) auto; }
.vqr { position: relative; display: block; width: 3rem; height: 3rem; padding: 3px; border: 1px solid var(--m-line); border-radius: 8px; overflow: hidden; color: var(--m-graphite); }
.vqr .qr-code { display: block; width: 100%; height: 100%; }
.vscan { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--m-stamp); box-shadow: 0 0 8px var(--m-stamp); opacity: 0; }

/* Platby */
.vchk { display: grid; place-items: center; width: 1.125rem; height: 1.125rem; border: 1.5px solid #9AA1AC; border-radius: 4px; background: var(--m-white); color: #FFFFFF; }
.vchk .i { width: .8125rem; height: .8125rem; stroke-width: 3; opacity: 0; }
.vrows li.is-on .vchk { background: var(--m-stamp); border-color: var(--m-stamp); }
.vrows li.is-on .vchk .i { opacity: 1; }
.vrows li.is-on { background: rgba(36, 67, 184, 0.05); }
.vpaybar { padding: .75rem 1.25rem; border-top: 1px solid var(--m-line); background: var(--m-stage); }
.vbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2rem; font: 500 .9375rem/1.3 var(--m-font); }
.vbar.b1 { justify-content: flex-start; color: var(--m-slate); }
.vbar.b1 .vtyping { height: auto; padding: 0; background: none; }
.vbar.b2 { justify-content: flex-start; gap: .5rem; color: var(--m-ok); font-weight: 600; }
.vbar.b2 .i { width: 1.125rem; height: 1.125rem; }
.vsum b { font-weight: 600; }
.vsum > span { white-space: nowrap; }
.vsum .s0 { color: var(--m-slate); }

/* Kancelář */
.office-prog { display: block; height: 3px; margin: 0 1.25rem; border-radius: 999px; background: var(--m-line); overflow: hidden; }
.office-prog i { display: block; height: 100%; background: var(--m-ok); transform-origin: 0 50%; transform: scaleX(.333); }
.v-office .vrows li.is-flash { background: rgba(22, 120, 80, 0.06); }
.v-office .vrows li.is-focus::after { content: ""; position: absolute; inset: 3px 6px; border-radius: 10px; background: rgba(179, 38, 30, 0.05); box-shadow: inset 0 0 0 1.5px rgba(179, 38, 30, 0.55); opacity: var(--focus, 0); pointer-events: none; }
.office-count { font-variant-numeric: tabular-nums; }

/* Úzké karty (mobil): stav pod názvem */
@container (max-width: 460px) {
  .vrows li, .vtasks li, .vtasks .k1 { grid-template-columns: auto minmax(0, 1fr) auto; gap: .375rem .75rem; padding: .75rem 1rem; }
  .vrows .stc { grid-column: 2 / -1; justify-items: start; }
  .v-office .vrows li { grid-template-columns: minmax(0, 1fr) auto; padding: .625rem 1rem; }
  .v-office .vrows .stc { grid-column: 2; justify-items: end; }
  .v-office .vrows .r-name small { display: none; }
  .v-office .vrows .st { font-size: .75rem; }
  .vqr { width: 2.5rem; height: 2.5rem; }
  .vcard .panel-head, .vfoot, .vmsg, .vpaybar { padding-inline: 1rem; }
  .vbar { font-size: .875rem; }
}
.film, .fhead-ui { container-type: inline-size; }

/* ---------- Části pod rámem ---------- */
.film-steps { display: none; grid-template-columns: repeat(4, minmax(0, 1fr)) auto; align-items: end; gap: .75rem; margin-top: 1rem; }
.film-live-on .film-steps { display: grid; }
.film-steps .step { display: grid; gap: 6px; padding: 4px 0; border: 0; background: none; text-align: left; font: var(--m-caption); color: var(--m-slate); cursor: pointer; }
.film-steps .step.is-on, .film-steps .step:hover { color: var(--m-graphite); }
.film-steps .step-bar { display: block; height: 3px; border-radius: 999px; background: var(--m-line); overflow: hidden; }
.film-steps .step-bar i { display: block; height: 100%; background: var(--m-stamp); transform: scaleX(0); transform-origin: left center; }
.film-pp { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--m-line); border-radius: 999px; background: var(--m-white); color: var(--m-graphite); cursor: pointer; }
.film-pp svg { width: 14px; height: 14px; }
.film-pp .i-play { display: none; }
.film-paused .film-pp .i-play { display: block; }
.film-paused .film-pp .i-pause { display: none; }
.film-steps .step:focus-visible, .film-pp:focus-visible { outline: 2px solid var(--m-stamp); outline-offset: 2px; }
@media (max-width: 640px) { .film-steps { gap: 8px; } .film-steps .step { font-size: 11px; } }

/* ---------- Karty jako statická ilustrace (stránka Funkce) ---------- */
.fhead-ui { display: grid; place-items: center; padding: clamp(1rem, 3vw, 2rem); border-radius: 22px; background: var(--m-stage); }
.sec-tint .fhead-ui { background: var(--m-white); }
.fhead-ui .vcard { width: 100%; }

/* =====================================================================
   Obrazovky portálu: prohlídka se záložkami a dvojice prohlížeč + telefon.
   Inspirace Behance „SaaS Landing Page & Client Portal“, kontrola podle unslop (Damir Sokolovsky, CC BY 4.0):
   mřížka 4 px, tlumené okolí, jedna barva akce, ikony 1,5 px, čísla tabulková, žádné verzálky.
   Barvy jen tři: limetková (#D4FF3A, akce, vybraná záložka, hotové stavy), inkoust (stavy, které chtějí pozornost)
   a neutrální šedé (čekající stavy). Inkoust na limetkové má kontrast 14,3 : 1.
   ===================================================================== */
.tour, .duo { --office: #D4FF3A; --office-ink: var(--m-ink); --lime-soft: #EEFFB0; --app-line: rgba(28, 31, 36, 0.08); --app-muted: #6B7280; --app-raised: #F4F5F7; }

/* Stavy v okně: hotovo limetkově, pozornost inkoustem, čekání šedě (vždy s ikonou a textem) */
.tour .st-ok, .duo .st-ok { background: var(--lime-soft); color: var(--m-ink); }
.tour .st-miss, .duo .st-miss { background: var(--m-ink); color: #FFFFFF; }
.tour .st-info, .duo .st-info { background: var(--app-raised); color: #4B5563; box-shadow: inset 0 0 0 1px var(--app-line); }

/* Okno prohlížeče */
.browser { position: relative; border-radius: 16px; background: var(--m-white); overflow: hidden; color: var(--m-graphite); text-align: left; }
.sec-ink .browser { box-shadow: 0 40px 80px -40px rgba(2, 6, 20, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.browser-bar { display: grid; grid-template-columns: auto auto auto 1fr; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--app-line); background: #F7F8FA; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #D5D9DF; }
.browser-bar span { justify-self: center; margin-right: 52px; font: 500 12px/1 var(--m-font); color: var(--app-muted); }

/* Aplikace uvnitř okna */
.app { display: grid; grid-template-columns: 208px minmax(0, 1fr); height: 640px; font: 400 13px/1.45 var(--m-font); }
.app-nav { display: grid; grid-template-rows: auto 1fr auto auto; gap: 16px; padding: 20px 12px 16px; border-right: 1px solid var(--app-line); background: #FAFAFB; }
.app-nav ul { display: grid; align-content: start; gap: 2px; }
.app-nav li { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 10px; border-radius: 8px; color: #4B5563; }
.app-nav li .i { width: 16px; height: 16px; color: var(--app-muted); flex: none; }
.app-nav li.is-on { background: rgba(28, 31, 36, 0.06); color: var(--m-graphite); font-weight: 500; }
.app-nav li.is-on .i { color: var(--m-graphite); }
.app-user { display: flex; align-items: center; gap: 8px; padding: 12px 8px 0; border-top: 1px solid var(--app-line); }
.app-user b, .app-user small { display: block; }
.app-user b { font-weight: 500; }
.app-user small, .app-powered { color: var(--app-muted); font-size: 12px; }
.app-powered { padding: 0 8px; }
.brand-logo { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/1 var(--m-font); color: var(--m-graphite); }
.app-nav .brand-logo { padding: 0 8px; }
.ofc-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--office); color: var(--office-ink); font: 600 11px/1 var(--m-font); letter-spacing: 0.02em; }
.app-main { display: grid; padding: 24px 28px; min-width: 0; overflow: hidden; }
.scr { grid-area: 1 / 1; min-width: 0; align-content: start; display: grid; transition: opacity .26s cubic-bezier(0.22, 1, 0.36, 1); }
.tour-js .scr { opacity: 0; visibility: hidden; }
.tour-js .scr.is-on { opacity: 1; visibility: visible; }
.scr-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.app .scr-head h4 { margin: 0; font: 500 20px/1.2 var(--m-font); letter-spacing: -0.01em; }
.app .scr-head p { margin: 4px 0 0; color: var(--app-muted); }
.scr-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.app-search { display: inline-flex; align-items: center; gap: 8px; width: 168px; height: 32px; padding: 0 12px; border: 1px solid var(--app-line); border-radius: 8px; color: var(--app-muted); }
.app-search .i, .app-bell .i { width: 16px; height: 16px; }
.app-bell { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--app-line); border-radius: 8px; color: var(--app-muted); }
.app-btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border-radius: 8px; background: var(--office); color: var(--office-ink); font: 500 13px/1 var(--m-font); white-space: nowrap; }
.app-btn-ghost { background: var(--m-white); color: var(--m-graphite); box-shadow: inset 0 0 0 1px rgba(28, 31, 36, 0.14); }
.app-btn-s { height: 26px; padding: 0 10px; font-size: 12px; }
.app-meta { color: var(--app-muted); font-size: 12px; }
.app-av { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--app-raised); color: #4B5563; font: 600 10px/1 var(--m-font); }
.scr-lead { margin: 20px 0 12px; font: 500 15px/1.35 var(--m-font); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; padding: 12px 0; border-top: 1px solid var(--app-line); border-bottom: 1px solid var(--app-line); }
.kpis > div { display: grid; gap: 4px; padding: 0 16px; border-left: 1px solid var(--app-line); }
.kpis > div:first-child { padding-left: 0; border-left: 0; }
.kpis b { font: 500 22px/1 var(--m-font); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.kpis span { color: var(--app-muted); font-size: 12px; }
.app-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.app-table th { padding: 0 8px 8px; border-bottom: 1px solid var(--app-line); text-align: left; font: 500 12px/1 var(--m-font); color: var(--app-muted); white-space: nowrap; }
.app-table td { padding: 9px 8px; border-bottom: 1px solid var(--app-line); vertical-align: middle; white-space: nowrap; }
.app-table th:first-child, .app-table td:first-child { padding-left: 0; }
.app-table th:last-child, .app-table td:last-child { padding-right: 0; }
.app-table tr:last-child td { border-bottom: 0; }
.app-table .num { text-align: right; }
.app-table td b { display: block; font-weight: 500; }
.app-table td small { display: block; color: var(--app-muted); font-size: 12px; }
.app-table .st, .duo .st { font-size: 12px; }

/* Kontrola dokladu: papírová faktura vlevo, údaje vpravo */
.check { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; margin-top: 20px; align-items: start; }
.invoice { position: relative; display: grid; gap: 16px; padding: 24px; border-radius: 4px; background: #FFFFFF; box-shadow: 0 1px 2px rgba(15, 26, 61, 0.08), 0 16px 32px -16px rgba(15, 26, 61, 0.28), 0 0 0 1px rgba(28, 31, 36, 0.06); transform: rotate(-1.2deg); font-size: 12px; }
.inv-top { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 2px solid var(--m-graphite); }
.inv-top b { font-size: 14px; font-weight: 600; }
.inv-top span { color: var(--app-muted); }
.inv-meta, .inv-sum { display: grid; gap: 4px; }
.inv-meta div, .inv-sum div { display: flex; justify-content: space-between; gap: 12px; }
.inv-meta dt, .inv-sum dt { color: var(--app-muted); }
.inv-lines { width: 100%; border-collapse: collapse; }
.inv-lines td { padding: 6px 0; border-bottom: 1px dashed rgba(28, 31, 36, 0.14); }
.inv-lines td:last-child, .inv-sum dd { text-align: right; font-variant-numeric: tabular-nums; }
.inv-total { padding-top: 6px; border-top: 1px solid rgba(28, 31, 36, 0.14); font-weight: 600; font-size: 13px; }
.inv-total dt { color: var(--m-graphite); }
.check-panel { display: grid; gap: 12px; padding: 16px; border-radius: 12px; box-shadow: 0 0 0 1px var(--app-line); }
.check-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.check-head b { font-weight: 500; font-size: 14px; }
.check-fields div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--app-line); }
.check-fields dt { color: var(--app-muted); }
.check-fields dd { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.check-actions { display: flex; gap: 8px; padding-top: 4px; }

/* Značka kanceláře */
.brand-set { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; margin-top: 24px; align-items: start; }
.brand-form { display: grid; gap: 16px; }
.brand-form dt { margin-bottom: 6px; color: var(--app-muted); font-size: 12px; }
.brand-form dd { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.app-input { display: flex; align-items: center; width: 100%; height: 34px; padding: 0 12px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(28, 31, 36, 0.16); }
.mail-label { margin-bottom: 8px; color: var(--app-muted); font-size: 12px; }
.mail-card { display: grid; gap: 12px; justify-items: start; padding: 20px; border-radius: 12px; background: var(--app-raised); }
.mail-card p { max-width: 30ch; }
.mail-card small { color: var(--app-muted); font-size: 11px; }

/* Záložky prohlídky na inkoustu */
.tour { margin-top: clamp(32px, 5vw, 48px); }
.tour-tabs { display: flex; gap: 4px; width: max-content; max-width: 100%; margin: 0 auto 20px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10); overflow-x: auto; scrollbar-width: none; }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs button { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--m-on-ink-muted); font: 500 14px/1 var(--m-font); cursor: pointer; transition: background-color .16s cubic-bezier(0.22, 1, 0.36, 1), color .16s cubic-bezier(0.22, 1, 0.36, 1); }
.tour-tabs button:hover { color: var(--m-on-ink); }
.tour-tabs button[aria-selected="true"] { background: var(--office); color: var(--m-ink); }
.tour-tabs button:focus-visible { outline: 2px solid var(--office); outline-offset: 2px; }
.tour:not(.tour-js) .tour-tabs { display: none; }
.tour:not(.tour-js) .app { height: auto; }
.tour:not(.tour-js) .scr { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--app-line); }
.tour:not(.tour-js) .app-main { display: block; }
.tour-note { margin-top: 16px; text-align: center; font: var(--m-caption); color: var(--m-on-ink-muted); }

/* Dvojice: prohlížeč kanceláře a telefon klienta */
.duo { margin: clamp(32px, 5vw, 48px) 0 clamp(48px, 7vw, 72px); }
.duo-stage { position: relative; max-width: 60rem; min-height: 572px; margin: 0 auto; }
.duo-browser { width: calc(100% - 200px); margin-top: 56px; box-shadow: 0 32px 64px -36px rgba(15, 26, 61, 0.45), 0 0 0 1px rgba(28, 31, 36, 0.08); }
.app-compact { grid-template-columns: minmax(0, 1fr); height: auto; }
.app-compact .app-main { padding: 24px 92px 28px 28px; }
.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
.duo-label { margin: 4px 0 8px; color: var(--app-muted); font-size: 12px; }
.duo-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--app-line); }
.duo-list .i { width: 16px; height: 16px; color: var(--app-muted); }
.duo-list b, .duo-list small { display: block; }
.duo-list b { font-weight: 500; }
.duo-list small { color: var(--app-muted); font-size: 12px; }
.phone { position: absolute; right: 0; bottom: 0; width: 264px; aspect-ratio: 9 / 18.6; padding: 10px; border-radius: 40px; background: #16191F; box-shadow: 0 40px 70px -30px rgba(15, 26, 61, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.phone-screen { position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; padding: 12px 14px 0; border-radius: 30px; background: #FAFAFB; overflow: hidden; font: 400 13px/1.4 var(--m-font); color: var(--m-graphite); text-align: left; }
.ph-status { display: flex; justify-content: space-between; align-items: center; padding: 0 6px; font: 600 12px/1 var(--m-font); }
.ph-cam { width: 72px; height: 22px; border-radius: 999px; background: #16191F; }
.ph-head { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; }
.ph-head .i { width: 18px; height: 18px; color: var(--app-muted); }
.ph-title { margin-top: 8px; font: 500 22px/1.15 var(--m-font); letter-spacing: -0.015em; }
.ph-card { display: grid; gap: 2px; justify-items: start; padding: 14px; border-radius: 14px; background: #FFFFFF; box-shadow: 0 0 0 1px var(--app-line), 0 4px 12px -8px rgba(15, 26, 61, 0.25); }
.ph-card b { font-weight: 500; }
.ph-card small { color: var(--app-muted); font-size: 12px; margin-bottom: 10px; }
.ph-card .app-btn { height: 34px; width: 100%; }
.ph-bar { position: absolute; left: 10px; right: 10px; bottom: 12px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; height: 56px; padding: 0 6px; border-radius: 18px; background: rgba(255, 255, 255, 0.92); box-shadow: 0 0 0 1px var(--app-line), 0 10px 24px -14px rgba(15, 26, 61, 0.35); }
.ph-bar span { display: grid; justify-items: center; color: var(--app-muted); }
.ph-bar .i { width: 18px; height: 18px; }
.ph-bar .is-on { color: var(--m-graphite); }
.ph-bar .ph-shot { width: 44px; height: 44px; margin: 0 auto; place-items: center; border-radius: 14px; background: var(--office); color: var(--office-ink); }
.duo-cap { margin-top: 8px; text-align: center; font: var(--m-caption); color: var(--m-slate); }

/* Menší obrazovky: méně sloupců, menu se schová, telefon pod oknem */
@media (max-width: 980px) {
  .app { grid-template-columns: minmax(0, 1fr); height: auto; min-height: 520px; }
  .app-nav { display: none; }
  .app-search { display: none; }
  .check, .brand-set { grid-template-columns: minmax(0, 1fr); }
  .invoice { transform: none; }
}
@media (max-width: 640px) {
  .app-main, .app-compact .app-main { padding: 16px; }
  .duo-stage { min-height: 0; }
  .scr-head { flex-direction: column; gap: 12px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
  .kpis > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .app-table .hm { display: none; }
  .app-table td { white-space: normal; }
  .app-table td.num { white-space: nowrap; }
  .app-table td small { display: none; }
  .tour-tabs { margin-inline: 0; }
  .duo-stage { min-height: 0; }
  .duo-browser { width: 100%; margin-top: 0; }
  .phone { position: relative; right: auto; width: 240px; margin: -24px auto 0; }
  .browser-bar span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .scr, .tour-tabs button { transition: none; } }
