/* HIDesk prezentace. Tokeny jsou převzaté z aplikace (tailwind.config.js, resources/css/app.css):
   ostré rohy, tenké slate linky, modrá #0066CC, verzálkové popisky, oranžová značka HI. */
:root {
  --blue: #0066CC;
  --blue-dark: #004C99;
  --blue-tint: #EFF6FF;
  --ink: #0F172A;
  --strong: #334155;
  --muted: #64748B;
  --subtle: #94A3B8;
  --line: #E2E8F0;
  --surface: #F1F5F9;
  --bg: #F8FAFC;
  --white: #FFFFFF;
  --hi: #F97546;
  --ok: #166534;
  --ok-bg: #DCFCE7;
  --warn: #A35D00;
  --warn-bg: #FFF4E5;
  --danger: #DC2626;
  --shadow: 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 24px 60px -20px rgba(15,23,42,.28);
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', Consolas, 'SFMono-Regular', Menlo, monospace;
  --wrap: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* Verzálkový popisek jako v aplikaci (PŘEHLED, ÚDAJE PROTOKOLU) */
.label {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label--blue { color: var(--blue); }

h1, h2, h3 { font-family: var(--display); letter-spacing: -.02em; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; font-weight: 800; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--strong); line-height: 1.55; }
.mono { font-family: var(--mono); }

/* Horní lišta: stejná kostra jako hlavička aplikace, modrá linka pod ní */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--white);
  border-bottom: 4px solid var(--blue);
}
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; }
.brand span { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; }
.nav { display: flex; gap: 22px; margin-left: 8px; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 700; font-size: 14px; letter-spacing: .04em;
}
.nav a:hover { color: var(--blue); }
.topbar .btn { margin-left: auto; }
@media (max-width: 1020px) { .nav { display: none; } }
.nav a { white-space: nowrap; }
.nav--fx { gap: 16px; }
@media (max-width: 1240px) { .nav--fx { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border: 1px solid var(--blue);
  font-weight: 800; font-size: 14px; letter-spacing: .06em; text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: var(--white); }
.btn--ghost { background: var(--white); color: var(--blue); }
.btn--ghost:hover { background: var(--blue-tint); }
.btn svg { width: 18px; height: 18px; }

section { padding: 96px 0; }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shead { max-width: 760px; margin-bottom: 48px; }
.shead .label { display: block; margin-bottom: 14px; }
.shead .lead { margin-top: 18px; }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: center; }
@media (min-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
  .hero-stage { margin-right: -48px; }
  .hero .lead { font-size: 18px; }
}
.hero h1 { font-size: clamp(36px, 4.4vw, 58px); line-height: 1.05; font-weight: 800; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lead { margin-top: 24px; max-width: 62ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px;
  background: var(--white); border: 1px solid var(--line);
}
.facts div { padding: 18px 20px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font-family: var(--display); font-size: 26px; line-height: 1.2; font-weight: 800; }
.facts span { font-size: 14px; color: var(--muted); }
@media (max-width: 820px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Okno aplikace (rám prohlížeče) */
.window {
  background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.window-bar {
  display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px;
  border-bottom: 1px solid var(--line); background: var(--surface);
}
.window-bar i { width: 10px; height: 10px; background: var(--line); display: block; }
.window-bar .url {
  margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted);
  background: var(--white); border: 1px solid var(--line); padding: 2px 10px; flex: 1; max-width: 360px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.screen { position: relative; aspect-ratio: 1440 / 822; overflow: hidden; background: var(--bg); }
.screen img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left;
  opacity: 0; transition: opacity .7s ease, transform 6s ease;
}
.screen img.on { opacity: 1; }
.screen.kb img { transform-origin: 0 0; }
.screen.kb img.on { transform: scale(1.05); }

.hero-stage { position: relative; }
.hero-caption {
  display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; font-size: 14px; color: var(--muted);
}
.hero-dots { display: flex; gap: 6px; }
.hero-dots button {
  width: 28px; height: 4px; border: 0; padding: 0; background: var(--line); cursor: pointer;
}
.hero-dots button.on { background: var(--blue); }

/* Telefon */
.phone {
  width: 100%; max-width: 300px; aspect-ratio: 390 / 844; margin: 0 auto;
  border: 10px solid var(--ink); border-radius: 34px; overflow: hidden; background: var(--bg);
  box-shadow: var(--shadow-lg); position: relative;
}
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s ease; }
.phone img.on { opacity: 1; }

/* ---------- Problém ---------- */
.pains { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); border: 1px solid var(--line); background: var(--white); }
.pain { padding: 28px 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.pain .label { display: block; margin-bottom: 10px; color: var(--danger); }
.pain p { color: var(--strong); font-size: 16px; }

/* ---------- Cyklus (scrollytelling, podpis stránky) ---------- */
.cycle { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.cycle-steps { display: flex; flex-direction: column; }
.step { padding: 20px 0 20px 24px; border-left: 2px solid var(--line); min-height: 40vh; display: flex; flex-direction: column; justify-content: center; transition: border-color .3s; }
.step:first-child { min-height: 32vh; }
.step:last-child { min-height: 48vh; }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--subtle); }
.step h3 { margin: 6px 0 12px; font-size: 26px; }
.step p { color: var(--strong); }
.step .who { margin-top: 14px; }
.step.on { border-left-color: var(--blue); }
.step.on .num { color: var(--blue); }

.cycle-stage { position: sticky; top: 96px; }
.trail { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; min-height: 30px; }
.chip {
  font-family: var(--mono); font-size: 12px; font-weight: 700; padding: 4px 10px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line);
  transition: background .3s, color .3s, border-color .3s;
}
.chip.lit { background: var(--blue-tint); color: var(--blue); border-color: #BFDBFE; }
.chip.now { background: var(--blue); color: var(--white); border-color: var(--blue); }
.stage-frame { position: relative; }
.stage-frame .window, .stage-frame .phone-wrap { transition: opacity .5s; }
.stage-frame .phone-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; }
.stage-frame.mobile .window { opacity: 0; }
.stage-frame.mobile .phone-wrap { opacity: 1; }
.stage-frame .phone-wrap { padding: 10px 0; }
.stage-frame .phone { height: 100%; width: auto; max-width: none; border-width: 8px; border-radius: 28px; }
.stage-note { margin-top: 14px; font-size: 14px; color: var(--muted); min-height: 2.8em; }

@media (max-width: 960px) {
  .cycle { grid-template-columns: 1fr; }
  .cycle-stage { position: sticky; top: 72px; z-index: 5; background: var(--bg); padding: 10px 0; order: -1; border-bottom: 1px solid var(--line); }
  .cycle-stage .trail { display: none; }
  .stage-note { display: none; }
  .cycle { gap: 8px; }
  .step { min-height: auto; padding: 24px 0 24px 18px; }
  .step:first-child, .step:last-child { min-height: auto; }
  .stage-frame .phone { border-width: 5px; border-radius: 18px; }
}

/* ---------- Moduly ---------- */
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0; border: 1px solid var(--line); background: var(--white); }
.mod { padding: 28px 26px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.mod .label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.mod h3 { margin-bottom: 12px; }
.mod ul { margin: 0; padding: 0; list-style: none; }
.mod li { position: relative; padding-left: 16px; font-size: 15px; color: var(--strong); margin-top: 6px; line-height: 1.5; }
.mod li::before { content: ''; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; background: var(--blue); }
.tier { font-size: 10px; letter-spacing: .1em; padding: 2px 6px; background: var(--surface); color: var(--muted); font-weight: 800; white-space: nowrap; }
.tier--pro { background: var(--blue-tint); color: var(--blue); }
.tier--ent { background: #F3E8FF; color: #6B21A8; }
.more { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; color: var(--muted); font-size: 15px; }

/* Galerie skutečných obrazovek */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }
.gallery .shot { border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow); aspect-ratio: 16 / 10; overflow: hidden; }
.gallery .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform .6s ease; }
.gallery figure:hover .shot img { transform: scale(1.04); }
@media (max-width: 820px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Provoz ---------- */
.proof { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 56px; align-items: start; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--white); }
.stat { padding: 22px 22px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.stat b { display: block; font-family: var(--display); font-size: 34px; line-height: 1.1; font-weight: 800; color: var(--ink); }
.stat span { font-size: 14px; color: var(--muted); }
.source { margin-top: 14px; font-size: 13px; color: var(--muted); }
@media (max-width: 960px) { .proof { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Proč ---------- */
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 32px 40px; }
.why h3 { font-size: 19px; margin: 10px 0 8px; }
.why p { color: var(--strong); font-size: 16px; }
.why .bar { width: 32px; height: 4px; background: var(--blue); }

/* ---------- Model ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); background: var(--white); }
.plan { padding: 28px 26px; border-right: 1px solid var(--line); }
.plan:last-child { border-right: 0; }
.plan .label { display: block; margin-bottom: 6px; }
.plan h3 { font-size: 26px; }
.plan .for { color: var(--muted); font-size: 15px; margin: 6px 0 16px; min-height: 3em; }
.plan ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.plan li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.plan li.inh { color: var(--muted); }
.plan--mid { background: var(--blue-tint); }
@media (max-width: 820px) { .plans { grid-template-columns: 1fr; } .plan { border-right: 0; border-bottom: 1px solid var(--line); } }
.callout { margin-top: 28px; padding: 22px 24px; border-left: 4px solid var(--blue); background: var(--white); border-top: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.callout p + p { margin-top: 8px; }

/* ---------- Plán ---------- */
.road { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); background: var(--white); }
.road > div { padding: 26px; border-right: 1px solid var(--line); }
.road > div:last-child { border-right: 0; }
.road ul { margin: 14px 0 0; padding: 0; list-style: none; }
.road li { padding: 7px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--strong); }
.road .done li::before { content: '✓ '; color: var(--ok); font-weight: 800; }
@media (max-width: 820px) { .road { grid-template-columns: 1fr; } .road > div { border-right: 0; border-bottom: 1px solid var(--line); } }
.vision { margin-top: 40px; font-family: var(--display); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; line-height: 1.35; max-width: 34ch; }

/* ---------- Tým a akcelerátor ---------- */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
@media (max-width: 820px) { .two { grid-template-columns: 1fr; } }
.asks { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: a; }
.asks li { padding: 14px 0; border-top: 1px solid var(--line); }
.asks li b { display: block; }
.asks li span { color: var(--muted); font-size: 15px; }

/* ---------- Patička ---------- */
footer { background: var(--ink); color: #CBD5E1; padding: 56px 0 40px; font-size: 15px; }
footer a { color: var(--white); }
footer .brand span { color: var(--white); }
footer .cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
footer small { display: block; margin-top: 32px; color: var(--subtle); font-size: 13px; line-height: 1.6; }

/* Odhalení při scrollu, bez pohybu pro ty, kdo ho nechtějí */
.rv { transition: transform .6s ease; }
html.anim .rv:not(.in) { transform: translateY(12px); }
.rv.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .screen img, .phone img, .gallery .shot img { transition: opacity .01s; }
  .screen.kb img.on { transform: none; }
}

/* ---------- Seznam funkcí ---------- */
.fx-tools { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 28px; position: sticky; top: 72px; background: var(--bg); padding: 12px 0; z-index: 10; border-bottom: 1px solid var(--line); }
.fx-tools input {
  flex: 1; min-width: 220px; padding: 12px 14px; font: inherit; font-size: 16px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink);
}
.fx-tools input:focus { outline: none; border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.seg { display: inline-flex; border: 1px solid var(--blue); background: var(--white); flex: none; }
.seg button {
  font: inherit; font-size: 14px; font-weight: 800; letter-spacing: .02em; padding: 11px 16px; cursor: pointer;
  background: var(--white); color: var(--blue); border: 0; display: inline-flex; gap: 8px; align-items: center;
}
.seg button + button { border-left: 1px solid var(--blue); }
.seg button span { font-family: var(--mono); font-size: 12px; padding: 1px 6px; background: var(--blue-tint); color: var(--blue); }
.seg button[aria-checked="true"] { background: var(--blue); color: var(--white); }
.seg button[aria-checked="true"] span { background: rgba(255,255,255,.2); color: var(--white); }
.seg button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.fx-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-filter button {
  font: inherit; font-size: 13px; font-weight: 700; padding: 8px 12px; cursor: pointer;
  background: var(--white); color: var(--strong); border: 1px solid var(--line);
}
.fx-filter button[aria-pressed="true"] { background: var(--blue); color: var(--white); border-color: var(--blue); }
.fx-count { font-size: 14px; color: var(--muted); }
.fx-area { padding: 0; margin: 0 0 48px; scroll-margin-top: 150px; }
.fx-area h2 { font-size: 28px; margin-bottom: 6px; }
.fx-area > p { color: var(--muted); margin-bottom: 18px; max-width: 80ch; }
.fx-list { border: 1px solid var(--line); background: var(--white); }
.fx {
  display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 6fr) minmax(0, 2fr); gap: 18px;
  padding: 14px 18px; border-bottom: 1px solid var(--line); align-items: start;
}
.fx:last-child { border-bottom: 0; }
.fx h3 { font-family: var(--sans); font-size: 16px; letter-spacing: 0; font-weight: 700; }
.fx h3 .key { display: inline-block; margin-left: 6px; font-size: 10px; letter-spacing: .1em; padding: 2px 6px; background: var(--blue); color: var(--white); vertical-align: 2px; }
.fx p { font-size: 15px; color: var(--strong); }
.fx .meta { font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
@media (max-width: 760px) { .fx { grid-template-columns: 1fr; gap: 6px; } }
