/* ==========================================================================
   WyxMedia v14 — „Studio“: web jako plátno designového nástroje
   Tečkovaná mřížka, modré vodicí čáry, výběr prvků s úchyty, web se staví
   před očima, nadpisy se „dekódují“, živé hodiny „vy spíte, web pracuje“.
   Načítá se na všech stránkách PO style.css (světlé barvy jsou ve style.css).
   ========================================================================== */
:root {
  --ink: #0B0B0C;
  --canvas: #F5F5F2;
  --dot: #D6D5CF;
  --sel: #2F5BFF;          /* modrá „výběru“ — jen pro nástrojové prvky */
  --sel-soft: rgba(47, 91, 255, .1);
  --w-ease: cubic-bezier(.22, 1, .36, 1);
  --w-spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* plátno: jemná tečkovaná mřížka */
body {
  background-color: var(--canvas);
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 24px 24px;
  background-position: -11px -11px;
}
body::before, body::after { display: none !important; }
::selection { background: var(--sel); color: #fff; }

h1, h2 { font-weight: 800; letter-spacing: -0.045em; }
.section-head h2, .st-head h2 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1; }
h1 em, h2 em { font-style: normal; color: var(--text-muted); }

.btn { transition: transform .4s var(--w-spring), background .25s, color .25s, box-shadow .3s; }
.btn-primary:hover { transform: translateY(-2px); }
.btn .st-arrow { transition: transform .35s var(--w-spring); }
.btn:hover .st-arrow { transform: translateX(4px); }

/* navigace — bílá, bez rozmazání (rozmazání brzdí scroll) */
.nav, .nav.is-scrolled { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background: rgba(255,255,255,.97) !important; }
.nav .nav-logo img { filter: invert(1); }
@media (max-width: 860px), (hover: none) { .kf-bar { background: rgba(255,255,255,.97) !important; } }

/* proužek postupu */
.w-progress { position: fixed; left: 0; top: 0; height: 2px; width: 100%; background: var(--sel); transform-origin: 0 50%; transform: scaleX(0); z-index: 1001; pointer-events: none; }

/* ---------- vodicí čáry za kurzorem (jen myš) ---------- */
.wh-guides, .w-guides { position: absolute; inset: 0; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .3s; overflow: hidden; }
.w-on .wh-guides, .w-on > .w-guides { opacity: 1; }
.wh-guides i, .w-guides i { position: absolute; background: var(--sel); opacity: .55; }
.wh-guides .gx, .w-guides .gx { top: 0; bottom: 0; left: 0; width: 1px; }
.wh-guides .gy, .w-guides .gy { left: 0; right: 0; top: 0; height: 1px; }
.wh-guides .gtag, .w-guides .gtag { position: absolute; left: 0; top: 0; font: 500 11px/1 var(--font-mono); color: #fff; background: var(--sel); padding: 5px 7px; border-radius: 5px; white-space: nowrap; }
@media (hover: none) { .wh-guides, .w-guides { display: none; } }

/* ==========================================================================
   HERO hlavní stránky
   ========================================================================== */
.wh { position: relative; min-height: 100vh; min-height: 100svh; margin-top: -80px; padding: 130px 0 56px; display: flex; align-items: center; overflow: hidden; }
.wh-grid { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.25fr; gap: clamp(28px, 4vw, 64px); align-items: center; width: 100%; }
.wh-clock { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 22px; padding: 7px 12px 7px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--border); font: 500 12px/1 var(--font-mono); color: var(--text-muted); }
.wh-clock i { width: 8px; height: 8px; border-radius: 50%; background: #1F8A5B; box-shadow: 0 0 0 0 rgba(31,138,91,.5); animation: w-ping 2s infinite; }
.wh-clock .wh-time { color: var(--ink); font-weight: 600; }
@keyframes w-ping { 70% { box-shadow: 0 0 0 8px rgba(31,138,91,0); } 100% { box-shadow: 0 0 0 0 rgba(31,138,91,0); } }
.wh-claim { font: 800 clamp(44px, 5.8vw, 96px)/.95 var(--font-display); letter-spacing: -.055em; margin: 16px 0 22px; }
.wh-claim em { color: var(--text-muted); font-style: normal; }
.wh-lede { font-size: clamp(16px, 1.3vw, 18px); color: var(--text-muted); max-width: 46ch; }
.wh-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 30px 0 18px; }
.wh .st-note { margin: 0; }

/* scéna: prohlížeč, který se staví */
.wh-stage { position: relative; perspective: 1400px; }
.wh-tilt { position: relative; transform-style: preserve-3d; transform: rotateX(var(--rx, 4deg)) rotateY(var(--ry, -8deg)); transition: transform .6s var(--w-ease); }
.wh-browser { position: relative; background: #fff; border-radius: 14px; border: 1px solid var(--border); box-shadow: 0 50px 90px -40px rgba(11,11,12,.35), 0 0 0 6px rgba(255,255,255,.6); overflow: hidden; }
.wh-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--border-soft); background: #FAFAF8; }
.wh-bar i { width: 9px; height: 9px; border-radius: 50%; background: #DDD9D0; }
.wh-url { margin-left: 12px; font: 500 12px/1 var(--font-mono); color: var(--text-muted); background: #F0EEE9; padding: 6px 10px; border-radius: 6px; }
.wh-obor { margin-left: auto; font: 600 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--sel); }
.wh-screen { position: relative; aspect-ratio: 16 / 9.4; background: #fff; overflow: hidden; }
.wh-grid-lines { position: absolute; inset: 0 4%; display: flex; justify-content: space-between; pointer-events: none; transition: opacity .5s; }
.wh-grid-lines i { width: 15%; height: 100%; background: var(--sel-soft); transform: scaleY(0); transform-origin: top; transition: transform .7s var(--w-ease); }
.wh-grid-lines i:nth-child(2) { transition-delay: .06s; } .wh-grid-lines i:nth-child(3) { transition-delay: .12s; } .wh-grid-lines i:nth-child(4) { transition-delay: .18s; } .wh-grid-lines i:nth-child(5) { transition-delay: .24s; }
.wh-stage[data-phase="0"] .wh-grid-lines i, .wh-stage[data-phase="1"] .wh-grid-lines i { transform: scaleY(1); }
.wf { position: absolute; border-radius: 6px; background: #EEECE7; border: 1.5px dashed transparent; transform: scale(.6); opacity: 0; transition: transform .6s var(--w-spring), opacity .4s, border-color .3s, background .3s; }
.wf::after { content: attr(data-l); position: absolute; left: -1px; top: -18px; font: 600 9.5px/1 var(--font-mono); letter-spacing: .06em; color: #fff; background: var(--sel); padding: 3px 5px; border-radius: 3px; opacity: 0; transition: opacity .3s; }
.wf:not([data-l])::after { display: none; }
.wf-nav { left: 4%; right: 4%; top: 5%; height: 8%; background: transparent; border-color: #D7D3CA; }
.wf-logo { left: 6%; top: 7%; width: 9%; height: 4%; }
.wf-h1 { left: 6%; top: 27%; width: 46%; height: 10%; transition-delay: .1s; }
.wf-h1b { left: 6%; top: 40%; width: 34%; height: 10%; transition-delay: .18s; }
.wf-p { left: 6%; top: 56%; width: 40%; height: 5%; transition-delay: .26s; }
.wf-btn { left: 6%; top: 68%; width: 18%; height: 9%; border-radius: 999px; background: #0B0B0C; transition-delay: .34s; }
.wf-img { right: 6%; top: 22%; width: 36%; height: 62%; background: #E6E3DC; transition-delay: .2s; }
.wh-stage[data-phase="1"] .wf, .wh-stage[data-phase="2"] .wf { transform: none; opacity: 1; }
.wh-stage[data-phase="1"] .wf { border-color: var(--sel); }
.wh-stage[data-phase="1"] .wf::after { opacity: 1; }
.wh-shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.wh-stage[data-phase="2"] .wh-shot, .wh-stage[data-phase="3"] .wh-shot { clip-path: inset(0 0 0 0); }
.wh-stage.is-swap .wh-shot { transition: none; }

/* chat + upozornění = web „žije“ */
.wh-chat { position: absolute; right: -4%; bottom: 16%; z-index: 3; max-width: 250px; text-align: left; background: var(--ink); color: #F3F1EC; border: 0; border-radius: 16px 16px 4px 16px; padding: 12px 15px; font-size: 13.5px; line-height: 1.4; box-shadow: 0 24px 44px -18px rgba(11,11,12,.6); cursor: pointer; transform: translateY(14px) scale(.9); opacity: 0; pointer-events: none; transition: transform .6s var(--w-spring), opacity .35s; }
.wh-chat b { display: block; font: 600 10.5px/1.2 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; opacity: .6; margin-bottom: 4px; }
.wh-stage[data-phase="3"] .wh-chat { transform: none; opacity: 1; pointer-events: auto; }
.wh-chat:hover { transform: translateY(-3px) !important; }
.wh-toast { position: absolute; left: -6%; top: 14%; z-index: 3; display: flex; gap: 11px; align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 11px 14px 11px 11px; box-shadow: 0 24px 44px -20px rgba(11,11,12,.35); transform: translateX(-16px); opacity: 0; transition: transform .6s var(--w-spring) .5s, opacity .35s .5s; }
.wh-toast .ic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--sel-soft); color: var(--sel); flex: none; }
.wh-toast svg { width: 18px; height: 18px; }
.wh-toast b { display: block; font-size: 13px; }
.wh-toast small { display: block; font-size: 12px; color: var(--text-muted); }
.wh-stage[data-phase="3"] .wh-toast { transform: none; opacity: 1; }

/* kurzor „Daniel“ */
.wh-cursor { position: absolute; left: 0; top: 0; z-index: 4; display: flex; align-items: flex-start; pointer-events: none; transform: translate(var(--cx, 60%), var(--cy, 70%)); transition: transform 1s var(--w-ease); }
.wh-cursor svg { width: 20px; height: 20px; fill: var(--sel); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 2px 3px rgba(0,0,0,.2)); }
.wh-cursor span { margin: 16px 0 0 -4px; font: 600 11px/1 var(--font-sans, var(--font-body)); color: #fff; background: var(--sel); padding: 5px 8px; border-radius: 4px 999px 999px 999px; }
.wh-cursor.click svg { animation: w-click .35s ease; }
@keyframes w-click { 50% { transform: scale(.8); } }

.wh-steps { display: flex; gap: 6px; list-style: none; margin: 22px 0 0; padding: 0; counter-reset: s; justify-content: center; }
.wh-steps li { counter-increment: s; font: 500 12px/1 var(--font-mono); color: var(--text-dim); padding: 8px 11px; border-radius: 999px; border: 1px solid var(--border); background: #fff; transition: color .3s, background .3s, border-color .3s; }
.wh-steps li::before { content: "0" counter(s) " "; opacity: .55; }
.wh-steps li.on { color: #fff; background: var(--ink); border-color: var(--ink); }
.wh-steps li.done { color: var(--ink); }

@media (max-width: 980px) {
  .wh { padding: 120px 0 50px; }
  .wh-grid { grid-template-columns: 1fr; }
  .wh-grid > .wrap, .wh-grid { max-width: 100%; }
  .wh-stage { max-width: 560px; width: 100%; margin: 10px auto 0; }
  .wh-tilt { --rx: 0deg !important; --ry: 0deg !important; }
  .wh-chat { right: 2%; bottom: 8%; max-width: 210px; font-size: 12.5px; }
  .wh-toast { left: 2%; top: auto; bottom: -26px; }
}
@media (max-width: 600px) {
  .wh-claim { font-size: clamp(40px, 11.5vw, 58px); }
  .wh-steps li { padding: 7px 8px; font-size: 10.5px; }
  .wh-obor { display: none; }
  .wh-chat { display: none; }
}

/* ==========================================================================
   PODSTRÁNKY — hero jako „rámeček“ v editoru
   ========================================================================== */
.w-host { position: relative; overflow: visible !important; isolation: auto !important; }
.w-host::before { display: none !important; }
.w-frame { position: absolute; z-index: 3; left: var(--gutter); top: clamp(18px, 3vw, 34px); font: 500 11.5px/1 var(--font-mono); color: var(--sel); display: inline-flex; gap: 8px; align-items: center; }
.w-frame::before { content: ""; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; }
.w-sel-host { position: relative; display: inline-block; }
.w-host h1 { margin-top: 40px !important; }
.w-sel { position: absolute; inset: -10px -14px; border: 1.5px solid var(--sel); border-radius: 3px; pointer-events: none; clip-path: inset(0 100% 100% 0); animation: w-draw 1s var(--w-ease) .5s forwards; }
.w-sel i { position: absolute; width: 9px; height: 9px; background: #fff; border: 1.5px solid var(--sel); border-radius: 2px; }
.w-sel i:nth-child(1) { left: -5px; top: -5px; } .w-sel i:nth-child(2) { right: -5px; top: -5px; } .w-sel i:nth-child(3) { left: -5px; bottom: -5px; } .w-sel i:nth-child(4) { right: -5px; bottom: -5px; }
.w-sel b { position: absolute; left: -1.5px; top: -24px; font: 600 11px/1 var(--font-mono); letter-spacing: .02em; color: #fff; background: var(--sel); padding: 5px 7px; border-radius: 3px 3px 3px 0; white-space: nowrap; letter-spacing: 0; }
@keyframes w-draw { to { clip-path: inset(-30px -30px -30px -30px); } }
@media (max-width: 600px) { .w-sel { inset: -6px -8px; } .w-frame { display: none; } }

/* nadpisy — dekódování znaků */
.w-dec { font-variant-ligatures: none; }

/* karty — výběr s úchyty a rozměrem */
.w-pick { position: relative; }
.w-pick > .w-hs { position: absolute; inset: 0; border: 1.5px solid var(--sel); border-radius: inherit; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 5; }
.w-pick > .w-hs i { position: absolute; width: 8px; height: 8px; background: #fff; border: 1.5px solid var(--sel); border-radius: 2px; }
.w-pick > .w-hs i:nth-child(1) { left: -1px; top: -1px; } .w-pick > .w-hs i:nth-child(2) { right: -1px; top: -1px; } .w-pick > .w-hs i:nth-child(3) { left: -1px; bottom: -1px; } .w-pick > .w-hs i:nth-child(4) { right: -1px; bottom: -1px; }
.w-pick > .w-hs b { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); font: 600 10.5px/1 var(--font-mono); color: #fff; background: var(--sel); padding: 4px 6px; border-radius: 4px; white-space: nowrap; }
@media (hover: hover) { .w-pick:hover > .w-hs { opacity: 1; } }

/* tmavé pásy: chatbot + patička */
#chatbot, .st-footer {
  --bg: #0B0B0C; --bg-soft: #141416; --bg-card: #16161A; --bg-card-2: #1d1d20; --border: #2a2a2c; --border-soft: #232326; --line: #292a2a;
  --text: #F3F1EC; --text-muted: #A3A3A0; --text-dim: #6F6F70; --accent: #F3F1EC;
  background: #0B0B0C; color: #F3F1EC;
}
#chatbot { box-shadow: 0 0 0 100vmax #0B0B0C; clip-path: inset(0 -100vmax); }
#chatbot .btn-primary { background: #F3F1EC; color: #0B0B0C; }
#chatbot h2 em { color: #A3A3A0; }
.st-footer { padding-top: 0 !important; border-top: 0 !important; overflow: hidden; margin-top: clamp(40px, 6vw, 80px); }
.st-footer a { color: inherit; }

/* patička — „Vy spíte. Web pracuje.“ + živé hodiny */
.w-night { padding: clamp(56px, 8vw, 110px) 0 clamp(36px, 5vw, 60px); border-bottom: 1px solid #232326; margin-bottom: 40px;
  background-image: radial-gradient(#26262A 1px, transparent 1.2px); background-size: 24px 24px; }
.w-night-in { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: end; }
.w-night h2 { font: 800 clamp(38px, 6vw, 92px)/.95 var(--font-display); letter-spacing: -.05em; color: #F3F1EC; }
.w-night h2 em { color: #6F6F70; font-style: normal; }
.w-night p { font: 500 13px/1.5 var(--font-mono); color: #8B8B88; margin-top: 18px; display: flex; gap: 10px; align-items: center; }
.w-night p i { width: 8px; height: 8px; border-radius: 50%; background: #3DDC84; animation: w-ping-g 2s infinite; }
@keyframes w-ping-g { 70% { box-shadow: 0 0 0 8px rgba(61,220,132,0); } 0% { box-shadow: 0 0 0 0 rgba(61,220,132,.5); } }
.w-big-clock { font: 500 clamp(56px, 11vw, 176px)/.85 var(--font-mono); letter-spacing: -.06em; color: #F3F1EC; font-variant-numeric: tabular-nums; white-space: nowrap; }
.w-big-clock .s { color: #3A3A3E; }
.w-big-clock .c { animation: w-blink 1s steps(1) infinite; }
@keyframes w-blink { 50% { opacity: .2; } }
@media (max-width: 760px) { .w-night-in { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  .wh-tilt { transition: none; }
  .wf, .wh-shot, .wh-chat, .wh-toast, .wh-cursor { transition: none !important; }
  .w-sel { animation: none; clip-path: none; }
  .w-big-clock .c, .wh-clock i { animation: none; }
}

/* v15: řádek s klíčovým slovem pod sloganem (součást H1) */
.wh-claim-main { display: block; }
.wh-kw {
  display: block; max-width: 34ch; margin-top: 18px;
  font: 600 clamp(15px, 1.25vw, 18px)/1.45 var(--font-body); letter-spacing: 0;
  color: var(--text-muted); text-wrap: balance;
}
@media (max-width: 760px) { .wh-kw { margin-top: 12px; font-size: 15px; } }
