/* janpils.com v4: černobílá, extrémně minimalistická. Pole teček a jedno tlačítko. */
:root { --bg: #f3f3f2; --ink: #0b0b0b; --dot: 11, 11, 11; color-scheme: light; }
@media (prefers-color-scheme: dark) { :root { --bg: #0a0a0a; --ink: #f2f2f1; --dot: 242, 242, 241; color-scheme: dark; } }

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 600 16px/1 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; overflow: hidden; overscroll-behavior: none; }
#field { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.stage { position: relative; min-height: 100dvh; display: grid; place-items: center; }
.cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 30px; border-radius: 999px;
  background: var(--ink); color: var(--bg); text-decoration: none; letter-spacing: -.01em;
  transition: transform .45s cubic-bezier(.16, 1, .3, 1);
}
.cta:hover { transform: scale(1.04); }
.cta:active { transform: scale(.98); }
.cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* bez jazyka: tlačítko je neviditelná kruhová plocha nad kotoučem z teček */
[data-variant="nolang"] .cta { position: fixed; padding: 0; height: auto; background: none; border-radius: 50%; }
[data-variant="nolang"] .cta:hover { transform: none; }

@media (prefers-reduced-motion: no-preference) {
  [data-variant="button"] .cta { opacity: 0; transform: translateY(10px); animation: rise 1s cubic-bezier(.16, 1, .3, 1) .5s forwards; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}

/* v6: kotouč se posouvá transformací, kalendář po kliknutí */
[data-variant="nolang"] .cta { left: 0; top: 0; will-change: transform; }
.book { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 20px; color: var(--bg); }
.book::before { content: ""; position: absolute; inset: 0; background: var(--ink); clip-path: circle(0px at var(--ox, 50%) var(--oy, 50%)); transition: clip-path .62s cubic-bezier(.7, 0, .2, 1); }
.book.on::before { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 50%)); }
.bk-panel, .bk-x { position: relative; opacity: 0; transform: translateY(10px); transition: opacity .35s .35s, transform .5s .35s cubic-bezier(.16, 1, .3, 1); }
.book.on .bk-panel, .book.on .bk-x { opacity: 1; transform: none; }
.bk-panel.swap { opacity: 0 !important; transform: translateX(-10px) !important; transition-delay: 0s !important; transition-duration: .16s !important; }
.bk-x { position: fixed; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--bg) 30%, transparent); background: none; color: var(--bg); font: 300 26px/1 -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer; }
.bk-panel { width: min(380px, 100%); }
.bk-h { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; text-align: center; margin-bottom: 18px; }
.bk-h b { font-weight: 600; font-size: 17px; text-transform: capitalize; }
.bk-nav { width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--bg); font-size: 26px; cursor: pointer; }
.bk-nav:hover { background: color-mix(in srgb, var(--bg) 12%, transparent); }
.bk-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.bk-wd span { text-align: center; font-size: 12px; opacity: .5; text-transform: uppercase; padding-bottom: 4px; }
.bk-days button { aspect-ratio: 1; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--bg) 40%, transparent); background: none; color: var(--bg); font: 500 15px -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; cursor: pointer; transition: background .2s, color .2s, transform .2s; }
.bk-days button:hover:not(:disabled) { background: var(--bg); color: var(--ink); transform: scale(1.06); }
.bk-days button:disabled { border-color: transparent; opacity: .28; cursor: default; }
.bk-times { display: grid; gap: 8px; }
.bk-times button, .bk-send { height: 50px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--bg) 40%, transparent); background: none; color: var(--bg); font: 600 16px -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.bk-times button:hover, .bk-send { background: var(--bg); color: var(--ink); }
.bk-form { display: grid; gap: 10px; }
.bk-form input, .bk-form textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--bg) 35%, transparent); background: none; color: var(--bg); font: 400 16px -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; resize: none; }
.bk-form input::placeholder, .bk-form textarea::placeholder { color: color-mix(in srgb, var(--bg) 50%, transparent); }
.bk-form input:focus, .bk-form textarea:focus { outline: none; border-color: var(--bg); }
.bk-done { display: grid; justify-items: center; gap: 18px; text-align: center; font-size: 17px; }
.bk-done svg { width: 84px; height: 84px; fill: none; stroke: var(--bg); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.bk-done circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: dash .7s ease forwards; }
.bk-done path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: dash .4s .55s ease forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .book::before, .bk-panel, .bk-x { transition: none; } }
[data-variant="nolang"] .cta, [data-variant="nolang"] .cta:active { transition: none; }
.bk-x { line-height: 1; }
* { -webkit-tap-highlight-color: transparent; }
.bk-days button:focus-visible, .bk-times button:focus-visible, .bk-send:focus-visible, .bk-x:focus-visible { outline: 2px solid var(--bg); outline-offset: 2px; }

/* v7: e-mail místo kalendáře */
.bk-panel { display: grid; justify-items: center; gap: 22px; width: auto; }
.bk-mail { color: var(--bg); text-decoration: none; font: 600 clamp(28px, 6vw, 72px)/1.05 -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif; letter-spacing: -.035em; border-bottom: 2px solid transparent; transition: border-color .25s; word-break: break-all; text-align: center; }
.bk-mail:hover { border-color: var(--bg); }
.bk-copy { height: 40px; padding: 0 18px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--bg) 40%, transparent); background: none; color: var(--bg); font: 500 14px -apple-system, BlinkMacSystemFont, sans-serif; cursor: pointer; transition: background .2s, color .2s; }
.bk-copy:hover, .bk-copy.ok { background: var(--bg); color: var(--ink); }

/* skrytá vrstva nesmí zachytávat kliknutí */
.book[hidden] { display: none !important; }
