/* Layout: one quiet column of large type and real screens; five staff lines run behind the hero,
   the marigold dot from the app icon is the only ornament, one midnight band for the stage. */
:root {
  --paper: #fafafd;
  --surface: #ffffff;
  --ink: #15131f;
  --muted: #625f76;
  --line: #e3e1ee;
  --violet: #5536e8;
  --violet-soft: #efecff;
  --dot: #ffb000;
  --pink: #e3368a;
  --band: #16113a;
  --band-ink: #f4f2ff;
  --band-muted: #b6b0d9;
  --band-line: #322a66;
  --device: #0e0d14;
  --shadow: 0 30px 60px -30px rgba(40, 24, 120, .35);
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Instrument Sans", -apple-system, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f0d1a; --surface: #181527; --ink: #f2f0fb; --muted: #a39fbd; --line: #2a2640;
    --violet: #a594ff; --violet-soft: #221d3f; --dot: #ffb000; --pink: #ff6fb3;
    --band: #1b1548; --band-ink: #f4f2ff; --band-muted: #b6b0d9; --band-line: #3a3177;
    --device: #000000; --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0f0d1a; --surface: #181527; --ink: #f2f0fb; --muted: #a39fbd; --line: #2a2640;
  --violet: #a594ff; --violet-soft: #221d3f; --dot: #ffb000; --pink: #ff6fb3;
  --band: #1b1548; --band-ink: #f4f2ff; --band-muted: #b6b0d9; --band-line: #3a3177;
  --device: #000000; --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

* { box-sizing: border-box; }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: 1120px; margin-inline: auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(3.4rem, 9vw, 6.6rem); line-height: .96; }
h2 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.02; }
h3 { font-size: 1.7rem; line-height: 1.1; }
em { font-style: italic; }
p { margin: 0; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 34rem; }
.dot { color: var(--dot); }
.label { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; }
.top.stuck { border-bottom-color: var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--paper); }
.top .wrap { display: flex; align-items: center; gap: 28px; padding-block: 14px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1.05rem; letter-spacing: -.01em; margin-right: auto; }
.brand img { width: 30px; height: 30px; border-radius: 8px; display: block; }
.top nav { display: flex; gap: 26px; }
.top nav a { text-decoration: none; color: var(--muted); font-size: .95rem; }
.top nav a:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 500; font-size: .95rem; text-decoration: none; white-space: nowrap; }
.pill.small { padding: 8px 14px; font-size: .88rem; }
@media (max-width: 760px) { .top nav { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; }
.staff { position: absolute; left: 0; right: 0; bottom: 34px; height: 64px; pointer-events: none; display: grid; align-content: space-between; }
.staff i { display: block; height: 1px; background: color-mix(in srgb, var(--ink) 13%, transparent); transform-origin: left; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; padding-block: clamp(48px, 9vw, 110px) clamp(56px, 8vw, 96px); }
.hero-copy { display: grid; gap: 26px; justify-items: start; min-width: 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.quiet { color: var(--muted); font-size: .95rem; text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.quiet:hover { color: var(--ink); border-color: var(--ink); }
.platforms { font-size: .9rem; color: var(--muted); }
.hero .wrap { padding-bottom: clamp(120px, 12vw, 150px); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }

/* Device */
.device { position: relative; width: min(300px, 78vw); aspect-ratio: 1206 / 2622; margin-inline: auto; background: var(--device); border-radius: 13.5% / 6.2%; padding: 7px; box-shadow: var(--shadow), 0 0 0 1px color-mix(in srgb, var(--ink) 14%, transparent); max-width: 100%; }
.device .screen { position: relative; width: 100%; height: 100%; border-radius: 12% / 5.5%; overflow: hidden; background: #fff; }
.device img { display: block; width: 100%; height: 100%; object-fit: cover; }
.device.small { width: min(270px, 70vw); }

/* Page-turn demo */
.demo { display: grid; gap: 16px; justify-items: center; }
.pages { position: absolute; inset: 0; display: flex; transition: transform .45s cubic-bezier(.3, .7, .2, 1); }
.pages img { flex: 0 0 100%; }
.zone { position: absolute; top: 0; bottom: 0; width: 30%; border: 0; padding: 0; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.zone.prev { left: 0; } .zone.next { right: 0; }
.zone::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .2s; }
.zone.next::after { background: linear-gradient(to left, color-mix(in srgb, var(--violet) 22%, transparent), transparent); }
.zone.prev::after { background: linear-gradient(to right, color-mix(in srgb, var(--violet) 22%, transparent), transparent); }
.zone:hover::after, .zone:focus-visible::after { opacity: 1; }
.zone.next.hint::after { animation: hint 2.4s ease-in-out infinite; }
@keyframes hint { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.demo-note { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: var(--muted); }
.ticks { display: flex; gap: 6px; }
.ticks span { width: 6px; height: 6px; border-radius: 50%; background: var(--line); transition: background .3s, transform .3s; }
.ticks span.on { background: var(--dot); transform: scale(1.25); }

/* Sections */
section { padding-block: clamp(64px, 10vw, 128px); }
.section-head { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(36px, 6vw, 72px); }

/* The whole manual */
.manual { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gestures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.gesture { display: grid; gap: 14px; align-content: start; padding: 8px 32px 8px 0; }
.gesture + .gesture { padding-left: 32px; border-left: 1px solid var(--line); }
.gesture p { color: var(--muted); }
.mini { position: relative; width: 54px; height: 96px; border: 1.5px solid var(--ink); border-radius: 11px; margin-bottom: 8px; }
.mini b { position: absolute; background: var(--dot); border-radius: 50%; }
.mini.edge b { width: 12px; height: 12px; right: 5px; top: 42px; }
.mini.edge::after { content: ""; position: absolute; top: 4px; bottom: 4px; right: 4px; width: 16px; border-radius: 6px; background: var(--violet-soft); z-index: -1; }
.mini.middle b { width: 12px; height: 12px; left: 20px; top: 42px; }
.mini.pull b { width: 12px; height: 12px; left: 20px; top: 16px; }
.mini.pull i { position: absolute; left: 25.5px; top: 32px; width: 1.5px; height: 34px; background: var(--ink); }
.mini.pull i::after { content: ""; position: absolute; left: -4px; bottom: 0; width: 8px; height: 8px; border-right: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(45deg); }
@media (max-width: 760px) {
  .gestures { grid-template-columns: minmax(0, 1fr); }
  .gesture, .gesture + .gesture { padding: 24px 0; border-left: 0; }
  .gesture + .gesture { border-top: 1px solid var(--line); }
}

/* Feature rows */
.feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 7vw, 96px); align-items: center; }
.feature + .feature { margin-top: clamp(72px, 11vw, 144px); }
.feature.flip .shot { order: 2; }
.feature-copy { display: grid; gap: 20px; min-width: 0; }
.feature-copy > p { color: var(--muted); max-width: 30rem; }
.facts { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .96rem; }
.facts strong { font-weight: 600; }
.facts span { color: var(--muted); }
.shot { display: flex; justify-content: center; min-width: 0; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; width: min(460px, 100%); }
.pair .device { width: 100%; }
.pair .device:last-child { margin-top: 15%; }
@media (max-width: 820px) {
  .feature { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .shot { order: 0; }
  .facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* Stage band */
.band { background: var(--band); color: var(--band-ink); }
.band .label { color: var(--dot); }
.band .feature-copy > p, .band .facts span { color: var(--band-muted); }
.band .facts, .band .facts li { border-color: var(--band-line); }
.band .device { box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }

/* Left out */
.omit { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.omit div { padding: 26px 24px 26px 0; display: grid; gap: 8px; align-content: start; }
.omit div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.omit h3 { font-size: 1.9rem; }
.omit p { color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) {
  .omit { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .omit div:nth-child(3) { padding-left: 0; border-left: 0; }
  .omit div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .omit { grid-template-columns: minmax(0, 1fr); }
  .omit div, .omit div + div { padding: 22px 0; border-left: 0; }
  .omit div + div { border-top: 1px solid var(--line); }
}

/* Also included */
.also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; list-style: none; margin: 0; padding: 0; }
.also li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.also li::before { content: ""; flex: 0 0 6px; height: 6px; border-radius: 50%; background: var(--dot); transform: translateY(-2px); }
@media (max-width: 820px) { .also { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .also { grid-template-columns: minmax(0, 1fr); } }

/* Questions */
.faq { border-top: 1px solid var(--line); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 24px; padding: 18px 0; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--violet); font-weight: 400; font-size: 1.4rem; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 40rem; }

/* Closing */
.closing { text-align: center; }
.closing .wrap { display: grid; gap: 26px; justify-items: center; }
.closing img { width: 84px; height: 84px; border-radius: 20px; box-shadow: var(--shadow); }
.closing .lede { margin-inline: auto; }
footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; padding-block: 28px; align-items: center; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }
footer .sp { margin-right: auto; }

/* Motion: everything is visible at rest; entering the viewport only adds a short rise. */
@media (prefers-reduced-motion: no-preference) {
  .rise.in { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
  @keyframes rise { from { opacity: .001; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .staff i { animation: draw 1.1s cubic-bezier(.2, .7, .2, 1) both; }
  .staff i:nth-child(2) { animation-delay: .06s; } .staff i:nth-child(3) { animation-delay: .12s; }
  .staff i:nth-child(4) { animation-delay: .18s; } .staff i:nth-child(5) { animation-delay: .24s; }
  @keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}
@media (prefers-reduced-motion: reduce) { .pages { transition: none; } .zone.next.hint::after { animation: none; } }

/* Podstránky: jeden sloupec textu. */
.doc { max-width: 42rem; margin-inline: auto; display: grid; gap: 18px; padding-block: clamp(48px, 8vw, 96px); }
.doc h1 { font-size: clamp(2.8rem, 7vw, 4.4rem); margin-bottom: 6px; }
.doc h2 { font-size: 1.9rem; margin-top: 28px; }
.doc h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin-top: 10px; }
.doc p, .doc li { color: var(--muted); }
.doc strong { color: var(--ink); font-weight: 600; }
.doc ul { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; }
.doc .updated { font-size: .9rem; }
.doc .mail { color: var(--ink); font-weight: 600; user-select: all; }
.doc .contact { font-size: 1.3rem; }
