/* ============================================================
   Amanu, amanu.cz
   Světlá a hravá, tmavý režim přepínačem. Motiv zvukové vlny.
   ============================================================ */

/* ---------- Písmo: vlastní hosting, ne Google Fonts ----------
   Jeden variabilní řez pokrývá celou škálu tloušťky 100 až 900,
   takže je to jeden požadavek místo dvanácti. Kurzíva se záměrně
   nenačítá: dřívější odkaz na Google Fonts ji taky neobsahoval
   (v adrese chyběla osa "ital"), takže prohlížeč ji dopočítává
   sklonem úplně stejně jako dosud a vykreslení se nemění.
   Inter 4.1, licence SIL Open Font License 1.1, viz fonts/Inter-LICENSE.txt.
   Důvod pro vlastní hosting je v zásadách ochrany údajů, čl. 9:
   při načtení z Googlu odcházela IP adresa návštěvníka do USA. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
}

/* ---------- Tokeny: světlý režim (výchozí) ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f4fd;
  --surface: #ffffff;
  --surface-tint: #f3eefc;
  --border: #e6def6;
  --text: #241c3d;
  --muted: #5d5478;
  --accent: #7c3aed;
  --accent-strong: #6d28d9;
  --accent-soft: #efe8fd;
  --accent-lighter: #a78bfa;
  --on-accent: #ffffff;
  --btn-bg: #7c3aed;
  --btn-bg-hover: #6d28d9;
  --success: #059669;
  --success-soft: #d1fae5;
  --shadow-card: 0 8px 30px rgba(109, 40, 217, 0.08);
  --shadow-pop: 0 18px 50px rgba(109, 40, 217, 0.16);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --deco-opacity: 0.5;
  --radius: 18px;
  --radius-sm: 12px;
  --font: "Inter", "Segoe UI", system-ui, sans-serif;
  --maxw: 1120px;
}

/* ---------- Tokeny: tmavý režim ---------- */
:root[data-theme="dark"] {
  --bg: #16111f;
  --bg-soft: #1c1529;
  --surface: #211a31;
  --surface-tint: #281f3d;
  --border: #392c52;
  --text: #f5f3ff;
  --muted: #b6abd6;
  --accent: #a78bfa;
  --accent-strong: #c4b5fd;
  --accent-soft: #2f2349;
  --accent-lighter: #8b5cf6;
  --on-accent: #ffffff;
  --btn-bg: #8b5cf6;
  --btn-bg-hover: #7c3aed;
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.16);
  --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 18px 50px rgba(0, 0, 0, 0.45);
  --nav-bg: rgba(22, 17, 31, 0.82);
  --deco-opacity: 0.3;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) {
    --bg: #16111f;
    --bg-soft: #1c1529;
    --surface: #211a31;
    --surface-tint: #281f3d;
    --border: #392c52;
    --text: #f5f3ff;
    --muted: #b6abd6;
    --accent: #a78bfa;
    --accent-strong: #c4b5fd;
    --accent-soft: #2f2349;
    --accent-lighter: #8b5cf6;
    --on-accent: #ffffff;
    --btn-bg: #8b5cf6;
    --btn-bg-hover: #7c3aed;
    --success: #34d399;
    --success-soft: rgba(52, 211, 153, 0.16);
    --shadow-card: 0 8px 30px rgba(0, 0, 0, 0.35);
    --shadow-pop: 0 18px 50px rgba(0, 0, 0, 0.45);
    --nav-bg: rgba(22, 17, 31, 0.82);
    --deco-opacity: 0.3;
  }
}

/* ---------- Reset & základ ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0; line-height: 1.14; }

p { margin: 0; }

a { color: inherit; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

::selection { background: rgba(124, 58, 237, 0.3); }

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

.container-narrow { max-width: 800px; }

.section { padding: 108px 0; position: relative; }

.section-soft { background: var(--bg-soft); }

/* Zvýrazněná slova v nadpisech: stejný font, značková fialová */
.hl { font-style: normal; color: var(--accent); }

/* ---------- Tlačítka ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 14px 28px;
  font-size: 16.5px;
  letter-spacing: 0.1px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--on-accent);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

.btn-primary:hover {
  background: var(--btn-bg-hover);
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 28px rgba(124, 58, 237, 0.4);
}

.btn-ghost {
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.btn-invert {
  background: #ffffff;
  color: #6d28d9;
  box-shadow: 0 8px 26px rgba(20, 10, 40, 0.25);
}

.btn-invert:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 34px rgba(20, 10, 40, 0.3);
}

.btn-lg { padding: 17px 34px; font-size: 17.5px; }
.btn-sm { padding: 10px 20px; font-size: 15px; }
.btn-block { width: 100%; }

/* Mini vlna uvnitř tlačítka */
.btn-wave {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
}

.btn-wave i {
  width: 3px;
  border-radius: 2px;
  background: currentColor;
  opacity: 0.9;
  animation: btnWave 1.3s ease-in-out infinite;
}

.btn-wave i:nth-child(1) { height: 8px; animation-delay: 0s; }
.btn-wave i:nth-child(2) { height: 15px; animation-delay: 0.18s; }
.btn-wave i:nth-child(3) { height: 10px; animation-delay: 0.36s; }

@keyframes btnWave {
  0%, 100% { transform: scaleY(0.6); }
  50%      { transform: scaleY(1.2); }
}

/* ---------- Logo (statické: vlna + slovo) ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.42em;
  text-decoration: none;
  font-size: 25px;
}

.logo-wave {
  display: inline-flex;
  align-items: center;
  gap: 0.115em;
}

.logo-wave i {
  width: 0.145em;
  height: var(--h);
  border-radius: 0.075em;
  background: var(--accent);
}

.logo-word {
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

/* ---------- Navigace ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 15.5px;
  transition: color 0.2s ease;
}

.nav-links a:hover { color: var(--accent); }

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--border);
  color: var(--muted);
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex: 0 0 auto;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(12deg);
}

.theme-toggle svg { width: 20px; height: 20px; }

.theme-toggle .ico-sun { display: none; }

:root[data-theme="dark"] .theme-toggle .ico-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .ico-moon { display: none; }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .ico-sun { display: block; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-toggle .ico-moon { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 92px 0 116px;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 50% -140px, var(--accent-soft), transparent 70%),
    var(--bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}

.blob-1 {
  width: 460px;
  height: 460px;
  top: -180px;
  left: -140px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.35), transparent 66%);
  animation: blobDrift 13s ease-in-out infinite alternate;
}

.blob-2 {
  width: 420px;
  height: 420px;
  bottom: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.22), transparent 66%);
  animation: blobDrift 16s ease-in-out infinite alternate-reverse;
}

@keyframes blobDrift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(36px, 22px) scale(1.1); }
}

/* Plovoucí čárky značky */
.fbar {
  position: absolute;
  width: 10px;
  border-radius: 6px;
  background: var(--accent);
  opacity: 0.16;
  animation: fbFloat 7s ease-in-out infinite;
}

.fb-1 { height: 54px; top: 18%; left: 7%; animation-delay: 0s; }
.fb-2 { height: 34px; top: 58%; left: 13%; animation-delay: 1.4s; width: 8px; }
.fb-3 { height: 72px; top: 30%; right: 8%; animation-delay: 0.7s; }
.fb-4 { height: 40px; top: 66%; right: 14%; animation-delay: 2.2s; width: 8px; }
.fb-5 { height: 26px; top: 12%; right: 26%; animation-delay: 3s; width: 7px; }
.fb-6 { height: 30px; top: 74%; left: 30%; animation-delay: 1.9s; width: 7px; }

@keyframes fbFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-16px) rotate(3deg); }
}

/* Dekorativní řada čárek u paty hero */
.hero-bars {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: var(--deco-opacity);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 25%, #000 75%, transparent);
}

.hero-bars i {
  width: 4px;
  height: 12px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.55;
  animation: heroPulse 3.4s ease-in-out infinite;
}

.hero-bars i:nth-child(3n)   { height: 26px; animation-delay: 0.3s; }
.hero-bars i:nth-child(4n)   { height: 18px; animation-delay: 0.9s; }
.hero-bars i:nth-child(5n)   { height: 32px; animation-delay: 1.4s; }
.hero-bars i:nth-child(7n)   { height: 22px; animation-delay: 2s; }
.hero-bars i:nth-child(2n+1) { animation-delay: 0.6s; }

@keyframes heroPulse {
  0%, 100% { transform: scaleY(0.6); }
  50%      { transform: scaleY(1.3); }
}

.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Animovaný wordmark (podpis značky): čárky -> písmena, zleva */
.brandmark {
  font-size: clamp(44px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.04em;
  margin-bottom: 34px;
  min-height: 1.5em;
}

.bm-slot {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0.68em;
  height: 1.45em;
}

.bm-bar {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.3em;
  height: var(--h);
  margin-left: -0.15em;
  margin-top: calc(var(--h) / -2);
  border-radius: 0.15em;
  background: var(--accent);
  transform-origin: center;
  animation: barSeq 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.55s);
}

.bm-ltr {
  font-weight: 800;
  color: var(--text);
  opacity: 0;
  animation: ltrSeq 7s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.55s);
}

@keyframes barSeq {
  0%   { opacity: 1; transform: scaleY(1); }
  6%   { transform: scaleY(0.5); }
  12%  { transform: scaleY(1.1); }
  18%  { transform: scaleY(0.55); }
  24%  { opacity: 1; transform: scaleY(0.85); }
  32%  { opacity: 0; transform: scaleY(0.12); }
  82%  { opacity: 0; transform: scaleY(0.12); }
  92%  { opacity: 1; transform: scaleY(1); }
  100% { opacity: 1; transform: scaleY(1); }
}

@keyframes ltrSeq {
  0%, 26% { opacity: 0; transform: translateY(9px); }
  36%     { opacity: 1; transform: translateY(0); }
  80%     { opacity: 1; }
  90%     { opacity: 0; }
  100%    { opacity: 0; }
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  border-radius: 99px;
  padding: 9px 20px;
  margin-bottom: 26px;
  box-shadow: var(--shadow-card);
}

.badge-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

h1 {
  font-size: clamp(42px, 7.2vw, 78px);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(17.5px, 2.2vw, 21px);
  max-width: 660px;
  margin-top: 22px;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  margin-top: 34px;
  flex-wrap: wrap;
  justify-content: center;
}

.cta-note {
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  margin-top: 16px;
}

/* ---------- Demo: surová řeč -> čistý text ---------- */
.demo {
  width: 100%;
  max-width: 720px;
  margin-top: 60px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
  text-align: left;
}

.demo-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-tint);
}

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}

.demo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  animation: demoDot 1.2s ease-in-out infinite;
}

@keyframes demoDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.4; transform: scale(0.75); }
}

.demo.swapped .demo-dot {
  background: var(--success);
  animation: none;
}

.demo-eq {
  display: inline-flex;
  align-items: center;
  gap: 3.5px;
}

.demo-eq i {
  width: 3.5px;
  border-radius: 2px;
  background: var(--accent);
  animation: eqPulse 1s ease-in-out infinite;
}

.demo-eq i:nth-child(1) { height: 9px;  animation-delay: 0s; }
.demo-eq i:nth-child(2) { height: 17px; animation-delay: 0.15s; }
.demo-eq i:nth-child(3) { height: 12px; animation-delay: 0.3s; }
.demo-eq i:nth-child(4) { height: 19px; animation-delay: 0.45s; }
.demo-eq i:nth-child(5) { height: 10px; animation-delay: 0.6s; }

@keyframes eqPulse {
  0%, 100% { transform: scaleY(0.45); }
  50%      { transform: scaleY(1.25); }
}

.demo.swapped .demo-eq i { animation-play-state: paused; opacity: 0.35; }

.demo-body {
  position: relative;
  padding: 26px 28px 30px;
  min-height: 150px;
  font-size: 17.5px;
  line-height: 1.7;
}

.demo-raw {
  color: var(--muted);
  transition: opacity 0.55s ease, filter 0.55s ease;
}

.demo-raw::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: caretBlink 0.9s step-end infinite;
}

@keyframes caretBlink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

.demo-clean {
  position: absolute;
  inset: 26px 28px auto;
  color: var(--text);
  opacity: 0;
  filter: blur(6px);
  transition: opacity 0.7s ease 0.15s, filter 0.7s ease 0.15s;
}

.demo.swapped .demo-raw { opacity: 0; filter: blur(6px); }
.demo.swapped .demo-raw::after { animation: none; opacity: 0; }
.demo.swapped .demo-clean { opacity: 1; filter: blur(0); }

/* ---------- Hlavičky sekcí ---------- */
.sec-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.sec-wave {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 18px;
}

.sec-wave i {
  width: 5px;
  border-radius: 3px;
  background: var(--accent);
}

.sec-wave i:nth-child(1) { height: 12px; }
.sec-wave i:nth-child(2) { height: 24px; }
.sec-wave i:nth-child(3) { height: 16px; }
.sec-wave i:nth-child(4) { height: 28px; }
.sec-wave i:nth-child(5) { height: 13px; }

h2 {
  font-size: clamp(31px, 4.6vw, 48px);
  font-weight: 800;
  letter-spacing: -0.025em;
}

.sec-head p {
  color: var(--muted);
  font-size: 18.5px;
  margin-top: 16px;
}

/* ---------- Karty (společné) ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ---------- Jak to funguje ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.step {
  position: relative;
  padding: 34px 28px 30px;
}

.step:hover { transform: translateY(-5px); border-color: var(--accent-lighter); box-shadow: var(--shadow-pop); }

.step-num {
  position: absolute;
  top: 20px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 22px;
  font-weight: 800;
}

.step-ico {
  display: inline-flex;
  width: 60px;
  height: 60px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 20px;
  transition: transform 0.25s ease;
}

.step:hover .step-ico { transform: scale(1.08) rotate(-3deg); }

.step-ico svg { width: 34px; height: 34px; }

.step h3 { font-size: 21px; font-weight: 800; margin-bottom: 9px; letter-spacing: -0.01em; }

.step p { color: var(--muted); font-size: 16.5px; }

/* ---------- Rychlost (závod) ---------- */
.race {
  padding: 34px 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.lane-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}

.lane-name {
  font-weight: 700;
  font-size: 17px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.lane-amanu .lane-name { color: var(--accent); }

.lane-wave {
  display: inline-flex;
  align-items: center;
  gap: 2.5px;
}

.lane-wave i {
  width: 3px;
  border-radius: 2px;
  background: var(--accent);
}

.lane-wave i:nth-child(1) { height: 8px; }
.lane-wave i:nth-child(2) { height: 15px; }
.lane-wave i:nth-child(3) { height: 10px; }

.lane-wpm { color: var(--muted); font-size: 15px; font-weight: 600; }

.lane-track {
  border-bottom: 2px solid var(--border);
  padding-bottom: 13px;
}

.lane-text {
  white-space: nowrap;
  overflow: hidden;
  width: 0;
  font-size: 17px;
  color: var(--muted);
}

.lane-amanu .lane-text { color: var(--text); font-weight: 500; }

.race.running .lane-slow { width: 100%; transition: width 8.4s linear; }
.race.running .lane-fast { width: 100%; transition: width 2.3s linear; }
.race.noanim .lane-text { transition: none !important; width: 0; }

.lane-done {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
  background: var(--success-soft);
  border: 1px solid var(--success);
  border-radius: 99px;
  padding: 2px 11px;
  margin-left: 4px;
  opacity: 0;
  transform: translateY(4px) scale(0.9);
}

.lane-done::before {
  content: "";
  width: 10px;
  height: 10px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m3 8.5 3.5 3.5L13 4.5" stroke="%23059669" stroke-width="2.4" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>') center / contain no-repeat;
}

.race.running .lane-done { animation: chipIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) 2.4s both; }

@keyframes chipIn {
  from { opacity: 0; transform: translateY(4px) scale(0.9); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.race-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 26px;
  text-align: center;
}

.rstat strong {
  display: block;
  font-size: clamp(36px, 4.4vw, 50px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.rstat span { color: var(--muted); font-size: 16px; font-weight: 600; }

/* ---------- Funkce ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature { padding: 30px 28px; }

.feature:hover { transform: translateY(-5px); border-color: var(--accent-lighter); box-shadow: var(--shadow-pop); }

.f-ico {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
  transition: transform 0.25s ease;
}

.feature:hover .f-ico { transform: scale(1.08) rotate(-3deg); }

.f-ico svg { width: 28px; height: 28px; }

.feature h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }

.feature p { color: var(--muted); font-size: 16.5px; }

/* ---------- Podívejte se dovnitř ---------- */
.peek {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.peek-item { margin: 0; }

.peek-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.peek-item:hover .peek-window { transform: translateY(-5px) rotate(-0.4deg); box-shadow: var(--shadow-pop); }

.pw-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-tint);
}

.pw-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }

.pw-bar span { margin-left: 7px; font-size: 14px; font-weight: 700; color: var(--muted); }

.pw-body { padding: 18px 18px 20px; min-height: 218px; }

.pw-stats { display: flex; gap: 10px; margin-bottom: 16px; }

.pw-stat {
  flex: 1;
  background: var(--accent-soft);
  border-radius: 11px;
  padding: 10px 8px;
  text-align: center;
}

.pw-stat strong { display: block; font-size: 17px; font-weight: 800; color: var(--accent-strong); letter-spacing: -0.02em; }

.pw-stat span { font-size: 12.5px; color: var(--muted); font-weight: 600; }

.pw-chart {
  display: flex;
  align-items: flex-end;
  gap: 9px;
  height: 84px;
  padding: 0 8px;
}

.pw-chart i {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 3px 3px;
  background: var(--accent);
  opacity: 0.85;
}

.pw-chart i:nth-child(even) { opacity: 0.55; }

.pw-chart-label {
  text-align: center;
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 10px;
}

.pw-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--border);
}

.pw-chip {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 8px;
  padding: 4px 12px;
}

.pw-note { color: var(--muted); font-size: 14px; }

.pw-add {
  margin-top: 14px;
  color: var(--accent);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pw-add span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px dashed var(--accent-lighter);
  font-size: 15px;
}

.pw-set {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  font-weight: 600;
}

.pw-set em { font-style: normal; color: var(--muted); font-weight: 600; font-size: 14px; }

.pw-set kbd {
  font-family: inherit;
  background: var(--accent-soft);
  color: var(--accent-strong);
  border: 1px solid var(--accent-lighter);
  border-bottom-width: 3px;
  border-radius: 8px;
  padding: 3px 12px;
  font-weight: 800;
  font-size: 14px;
}

.pw-toggle {
  position: relative;
  width: 38px;
  height: 22px;
  border-radius: 99px;
  background: var(--border);
  flex: 0 0 auto;
}

.pw-toggle.on { background: var(--accent); }

.pw-toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.pw-toggle.on::after { left: auto; right: 3px; }

.peek-item figcaption { padding: 18px 6px 0; }

.peek-item h3 { font-size: 20px; font-weight: 800; margin-bottom: 7px; letter-spacing: -0.01em; }

.peek-item figcaption p { color: var(--muted); font-size: 16px; }

/* ---------- Soukromí ---------- */
.section-privacy {
  background: var(--bg);
  overflow: hidden;
}

.privacy-bars {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 26px;
  opacity: 0.06;
  pointer-events: none;
}

.privacy-bars i {
  width: 7px;
  height: 60px;
  border-radius: 4px;
  background: var(--accent);
}

.privacy-bars i:nth-child(2n)  { height: 130px; }
.privacy-bars i:nth-child(3n)  { height: 90px; }
.privacy-bars i:nth-child(5n)  { height: 180px; }
.privacy-bars i:nth-child(7n)  { height: 110px; }

.privacy-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  position: relative;
}

.ppoint { text-align: center; padding: 0 12px; }

.p-ico {
  display: inline-flex;
  width: 66px;
  height: 66px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 18px;
}

.p-ico svg { width: 34px; height: 34px; }

.ppoint h3 { font-size: 19.5px; font-weight: 800; margin-bottom: 8px; letter-spacing: -0.01em; }

.ppoint p { color: var(--muted); font-size: 16.5px; }

/* ---------- Použití (taby) ---------- */
.use-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.use-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-weight: 700;
  font-size: 16px;
  border-radius: 999px;
  padding: 12px 22px;
  transition: all 0.22s ease;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.use-tab svg { width: 19px; height: 19px; flex: 0 0 auto; }

.use-tab:hover {
  color: var(--accent);
  border-color: var(--accent-lighter);
  transform: translateY(-2px);
}

.use-tab.active {
  color: var(--on-accent);
  background: var(--btn-bg);
  border-color: var(--btn-bg);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.3);
}

/* Progres auto-střídání na aktivní kapsli */
.use-tab.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: rgba(255, 255, 255, 0.65);
}

.uses.auto .use-tab.active::after { animation: tabProgress 5.5s linear; }

@keyframes tabProgress {
  from { width: 0; }
  to   { width: 100%; }
}

.use-panel { max-width: 720px; margin: 0 auto; }

.use-lead {
  text-align: center;
  color: var(--muted);
  font-size: 17.5px;
  margin-bottom: 26px;
}

.use-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-pop);
}

.uw-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-tint);
}

.uw-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.uw-bar span {
  margin-left: 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--muted);
}

.uw-body { padding: 22px 26px 26px; }

.uw-meta {
  font-size: 15px;
  color: var(--muted);
  padding-bottom: 9px;
  margin-bottom: 9px;
  border-bottom: 1px solid var(--border);
}

.uw-meta b { color: var(--text); font-weight: 700; }

.uw-text { font-size: 16.5px; line-height: 1.75; color: var(--text); margin-top: 6px; }

.uw-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--accent);
  margin-left: 3px;
  vertical-align: text-bottom;
  animation: caretBlink 0.9s step-end infinite;
}

.uw-bubble {
  border-radius: 15px;
  padding: 13px 17px;
  font-size: 16px;
  line-height: 1.65;
  max-width: 88%;
  margin-bottom: 12px;
}

.uw-user {
  background: var(--accent-soft);
  border: 1px solid var(--accent-lighter);
  margin-left: auto;
}

.uw-bot {
  background: var(--surface-tint);
  border: 1px solid var(--border);
  color: var(--muted);
}

.uw-mono .uw-text { font-family: "Cascadia Code", Consolas, monospace; font-size: 15px; }

.uw-prompt { color: var(--accent); font-weight: 700; margin-right: 6px; }

/* ---------- Proč Amanu (slovníkové heslo) ---------- */
.section-dict { padding-top: 44px; padding-bottom: 44px; }

.dict {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 56px 40px 52px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.dict::after {
  content: "";
  position: absolute;
  top: -110px;
  left: 50%;
  transform: translateX(-50%);
  width: 460px;
  height: 240px;
  background: radial-gradient(ellipse, var(--accent-soft), transparent 72%);
  pointer-events: none;
}

.dict-word {
  font-weight: 800;
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: 0.04em;
  color: var(--text);
  position: relative;
}

.dict-pron {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 12px;
  padding-bottom: 22px;
  margin-bottom: 22px;
  position: relative;
}

.dict-pron::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.dict-def {
  font-size: clamp(17.5px, 2.2vw, 20.5px);
  color: var(--text);
  max-width: 580px;
  margin: 0 auto;
  position: relative;
}

.dict-claim {
  margin-top: 20px;
  font-size: clamp(16.5px, 2vw, 19.5px);
  color: var(--muted);
  position: relative;
  font-weight: 600;
}

.dict-claim .hl { font-weight: 800; }

/* ---------- Ceník ---------- */
.price-card {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  background: var(--surface);
  border: 2px solid var(--accent-lighter);
  border-radius: 24px;
  padding: 34px 34px 30px;
  box-shadow: var(--shadow-pop);
  transition: transform 0.25s ease, box-shadow 0.3s ease;
}

.price-card:hover { transform: translateY(-3px); }

.price-toggle {
  display: flex;
  gap: 6px;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 26px;
}

.pt-btn {
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--muted);
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.pt-btn.active {
  background: var(--btn-bg);
  color: var(--on-accent);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.3);
}

.pt-save {
  font-size: 12px;
  font-weight: 800;
  background: var(--success-soft);
  color: var(--success);
  border-radius: 99px;
  padding: 2px 9px;
  white-space: nowrap;
}

.pt-btn.active .pt-save { background: rgba(255, 255, 255, 0.2); color: #fff; }

.price-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.price-num {
  font-size: 56px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.price-per { color: var(--muted); font-size: 17px; font-weight: 600; }

.price-coffee {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: 15.5px;
  font-weight: 700;
  margin: 18px 0 24px;
}

.price-coffee svg { width: 22px; height: 22px; flex: 0 0 auto; }

.price-feats {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-feats li {
  position: relative;
  padding-left: 32px;
  font-size: 16.5px;
}

.price-feats li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft)
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="m4.5 8.5 2.5 2.5 4.5-5.5" stroke="%237c3aed" stroke-width="2" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    center / 14px no-repeat;
}

.price-note {
  text-align: center;
  color: var(--muted);
  font-size: 15px;
  margin-top: 16px;
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 13px; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-card);
}

.faq details[open] { border-color: var(--accent-lighter); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 19px 22px;
  font-weight: 700;
  font-size: 17.5px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq-x {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}

.faq-x::before,
.faq-x::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 2.5px;
  margin-top: -1.25px;
  border-radius: 2px;
  background: var(--accent);
}

.faq-x::after { transform: rotate(90deg); }

.faq details[open] .faq-x { transform: rotate(45deg); }

.faq details p {
  padding: 0 22px 20px;
  color: var(--muted);
  font-size: 16.5px;
}

/* ---------- Závěrečné CTA ---------- */
.section-final { padding-bottom: 128px; }

.final-cta {
  position: relative;
  text-align: center;
  background: var(--btn-bg);
  border-radius: 28px;
  padding: 74px 32px;
  overflow: hidden;
  color: #fff;
}

.final-cta h2 { position: relative; color: #fff; }

.final-cta p {
  position: relative;
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  margin: 16px 0 30px;
}

.final-cta .btn { position: relative; }

.fc-bar {
  position: absolute;
  width: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  animation: fbFloat 8s ease-in-out infinite;
}

.fc-1 { height: 90px; top: 20%; left: 7%; }
.fc-2 { height: 50px; top: 60%; left: 15%; animation-delay: 1.6s; width: 9px; }
.fc-3 { height: 110px; top: 14%; right: 8%; animation-delay: 0.8s; }
.fc-4 { height: 56px; top: 62%; right: 16%; animation-delay: 2.4s; width: 9px; }

.final-chips {
  position: relative;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

.final-chips span {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  padding: 7px 16px;
}

/* ---------- Patička ---------- */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 40px;
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-brand .logo { font-size: 22px; }

.footer-brand p {
  color: var(--muted);
  font-size: 15px;
  margin-top: 10px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--accent); }

.footer-legal { color: var(--muted); font-size: 14.5px; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in { opacity: 1; transform: translateY(0); }

.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }
.reveal.d4 { transition-delay: 0.42s; }

/* ---------- Fokus pro klávesnici ---------- */
.btn:focus-visible,
.use-tab:focus-visible,
.pt-btn:focus-visible,
.theme-toggle:focus-visible,
.nav-links a:focus-visible,
.footer-links a:focus-visible,
.faq summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- Responzivita ---------- */
@media (max-width: 960px) {
  .section { padding: 84px 0; }

  .steps, .features, .privacy-points, .race-stats { grid-template-columns: 1fr 1fr; }

  .peek { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }

  .nav-links { display: none; }

  .theme-toggle { margin-left: auto; }

  .hero { padding: 68px 0 100px; }

  .fbar { display: none; }
}

@media (max-width: 560px) {
  .nav .btn-sm { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }

  .section { padding: 64px 0; }

  .steps, .features, .privacy-points { grid-template-columns: 1fr; }

  .race-stats { grid-template-columns: 1fr; gap: 18px; }

  .race { padding: 24px 20px; }

  .lane-text { font-size: 15px; }

  .lane-done { display: none; }

  .demo-body { padding: 20px 18px 24px; min-height: 195px; }

  .demo-clean { inset: 20px 18px auto; }

  .hero-ctas { flex-direction: column; width: 100%; }

  .hero-ctas .btn { width: 100%; }

  .brandmark { margin-bottom: 26px; }

  .price-card { padding: 26px 20px 24px; }

  .price-num { font-size: 46px; }

  .pt-save { display: none; }

  .footer-inner { flex-direction: column; }

  .use-tab { padding: 11px 16px; font-size: 15px; }

  .uw-body { padding: 18px 16px 20px; }

  .dict { padding: 40px 22px 38px; }

  .pw-body { min-height: 0; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Statické logo místo animace: čárky pryč, písmena viditelná */
  .bm-bar { display: none; }
  .bm-ltr { opacity: 1; animation: none; }

  .reveal { opacity: 1; transform: none; }

  /* Demo staticky: rovnou čistý text */
  .demo-raw { display: none; }
  .demo-clean { position: static; opacity: 1; filter: none; }

  /* Závod: obě věty plné */
  .lane-text { width: 100% !important; white-space: normal; }
}


/* ============================================================
   DLOUHÝ TEXTOVÝ DOKUMENT (právní stránky)
   Přidáno pro obchodni-podminky.html, cenik.html,
   reklamacni-rad.html a ochrana-udaju.html.
   Používá jen existující tokeny, takže tmavý režim funguje sám.
   Nic výše se nemění, tenhle blok jen přidává.
   ============================================================ */

.doc { padding: 44px 0 96px; }

.doc-back { font-size: 15.5px; font-weight: 600; margin-bottom: 22px; }
.doc-back a { color: var(--muted); text-decoration: none; }
.doc-back a:hover { color: var(--accent); }

.doc-head { margin-bottom: 34px; }
.doc-head h1 {
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 800;
  letter-spacing: -0.03em;
  max-width: none;
}
.doc-meta { color: var(--muted); font-size: 15.5px; font-weight: 600; margin-top: 14px; }

/* ---------- Obsah stránky ---------- */
.doc-toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 44px;
}
.doc-toc strong { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.doc-toc ul { margin: 12px 0 0; padding-left: 0; list-style: none; }
.doc-toc li { margin-top: 6px; font-size: 16px; }
.doc-toc li.toc-part { margin-top: 14px; }
.doc-toc li.toc-part a { color: var(--text); font-weight: 800; }
.doc-toc a { color: var(--muted); text-decoration: none; font-weight: 600; }
.doc-toc a:hover { color: var(--accent); }

/* ---------- Vlastní text ---------- */
.prose { font-size: 17px; line-height: 1.75; }
.prose > * + * { margin-top: 18px; }

.prose .doc-part {
  font-size: clamp(25px, 3.4vw, 32px);
  margin-top: 56px;
  padding-top: 26px;
  border-top: 3px solid var(--accent-soft);
  color: var(--accent-strong);
}

.prose h2 {
  font-size: clamp(23px, 3vw, 29px);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-top: 48px;
  scroll-margin-top: 96px;
}
.prose h3 {
  font-size: 19.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-top: 32px;
  scroll-margin-top: 96px;
}
.prose h4 { font-size: 17px; font-weight: 700; margin-top: 24px; line-height: 1.35; }
.prose p { color: var(--text); }
.prose strong { font-weight: 700; }
.prose em { font-style: italic; }

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  overflow-wrap: anywhere;
}
.prose a:hover { color: var(--accent-strong); }

.prose ul, .prose ol { margin: 18px 0; padding-left: 26px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose ol ol { list-style: lower-alpha; }
.prose li { margin-top: 8px; }
.prose li > ul, .prose li > ol { margin: 8px 0; }
.prose li::marker { color: var(--accent); font-weight: 700; }

.prose code {
  font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
  font-size: 0.9em;
  background: var(--surface-tint);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}

.prose hr { border: none; border-top: 1px solid var(--border); margin: 44px 0; }

/* ---------- Tabulky ---------- */
.table-wrap { overflow-x: auto; margin: 22px 0; -webkit-overflow-scrolling: touch; }

.prose table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.prose th, .prose td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.prose thead th { background: var(--surface-tint); font-weight: 700; color: var(--text); }
.prose tbody th[scope="row"] { background: var(--surface-tint); font-weight: 700; white-space: nowrap; }
.prose tr:last-child th, .prose tr:last-child td { border-bottom: none; }

/* ---------- Zvýrazněná poznámka ---------- */
.doc-note {
  background: var(--accent-soft);
  border: 1px solid var(--accent-lighter);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  color: var(--accent-strong);
  font-size: 16px;
  font-weight: 600;
  margin: 26px 0;
}

/* ---------- Loga přijímaných karet (zatím zakomentovaná v cenik.html) ---------- */
.pay-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 12px; }
.pay-logos img { height: 26px; width: auto; }

@media (max-width: 640px) {
  .doc { padding: 28px 0 64px; }
  .prose { font-size: 16.5px; }
  .doc-toc { padding: 18px 20px; }
  .prose table { min-width: 460px; font-size: 15.5px; }
  .prose th, .prose td { padding: 10px 12px; }
}

/* ---------- Obchod (obchod.amanu.cz) ----------
   Obchod bezi na jinem stroji, ale cte tenhle stylopis, aby nakup nevypadal
   jako jiny web. Vsechno je zanorene pod `.shop`, kterou nasazuje
   `server/src/shop/view/layout.ts`: marketingove stranky zadny formular nemaji
   a tabulky uz stylovane maji pres `.prose`, takze holy selektor `input` nebo
   `table` by jim menil vzhled bez duvodu.

   Bez tohoto bloku dedil obchod jen hlavicku, paticku a tlacitka, a pole
   formulare se vykreslovala vychozim vzhledem prohlizece. V tmavem rezimu z
   nich byly bile cihly na tmavem pozadi, protoze vychozi pole barvy motivu
   nezna. */
.shop { font-size: 17px; line-height: 1.7; }
.shop > * + * { margin-top: 20px; }
.shop h2 { font-size: 21px; font-weight: 800; letter-spacing: -0.02em; margin-top: 38px; }

/* ---------- Formulare ---------- */
.shop form { margin-top: 30px; }
.shop form > p { margin: 0 0 22px; }
.shop form > p:last-child { margin-bottom: 0; }

.shop label { display: block; font-weight: 700; font-size: 16px; margin-bottom: 7px; }

.shop input[type="text"],
.shop input[type="email"] {
  display: block;
  font: inherit;
  font-size: 16.5px;
  width: 100%;
  max-width: 26rem;
  padding: 12px 14px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}
.shop input[type="text"]:hover:not(:disabled),
.shop input[type="email"]:hover { border-color: var(--accent-lighter); }
.shop input[type="text"]:focus-visible,
.shop input[type="email"]:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 1px;
  border-color: var(--accent);
}
.shop input:disabled { background: var(--surface-tint); color: var(--muted); cursor: not-allowed; }

/* Zaskrtavaci pole. Trida, ne `:has()`: znenі souhlasu je pravne vazane a
   sablona ho vykresluje na tri mistech, takze at je na prvni pohled videt,
   ktery popisek je zaskrtavaci. */
.shop label.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-weight: 500;
  font-size: 16.5px;
  line-height: 1.6;
  margin-bottom: 0;
  cursor: pointer;
}
.shop label.check input[type="checkbox"] {
  width: 22px;
  height: 22px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
/* Souhlas podle cl. 8.2 stoji nad tlacitkem, ktere zavazuje k platbe, takze
   dostava ram: musi byt videt, ze je to samostatne rozhodnuti, ne dalsi odstavec. */
.shop .consent {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

/* Pole pro firmu se ukazuji az po zaskrtnuti "Nakupuji na firmu". Delano
   `:has()`, ne skriptem: platebni stranka se obejde bez javascriptu a stav
   zaskrtnuti se tim cte za behu, takze krok zpet z rekapitulace nepotrebuje
   zadnou inicializaci. Kdyz prohlizec `:has()` neumi, ukazou se obe pole, tedy
   presne to, co delal obchod predtim. Skryta jsou jen vizualne: `name="ico"` a
   `name="dic"` v dokumentu zustavaji, jinak by je krok zpet zahodil. */
.shop form:not(:has(input[name="firma"]:checked)) .firma-pole { display: none; }

.shop .form-note { color: var(--muted); font-size: 15.5px; margin-top: 10px; }
.shop .form-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 15.5px;
  font-weight: 600;
  margin: 8px 0 0;
  max-width: 26rem;
}
:root[data-theme="dark"] .shop .form-error { color: #fca5a5; background: rgba(185, 28, 28, 0.18); border-color: rgba(252, 165, 165, 0.4); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .shop .form-error {
    color: #fca5a5;
    background: rgba(185, 28, 28, 0.18);
    border-color: rgba(252, 165, 165, 0.4);
  }
}

/* ---------- Tabulka rekapitulace ----------
   Bez `min-width`, na rozdil od `.prose table`: rekapitulace ma dva sloupce a
   na telefonu se ma zalomit, ne posouvat do strany. Cl. 8.1 bod 3 ji dela
   povinnou, takze musi byt cela precitatelna i na uzke obrazovce. */
.shop table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.shop th, .shop td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.shop th { background: var(--surface-tint); font-weight: 700; width: 42%; }
.shop tr:last-child th, .shop tr:last-child td { border-bottom: none; }

/* ---------- Dvojice tlacitek pod sebou ---------- */
.shop .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }

@media (max-width: 640px) {
  .shop th, .shop td { padding: 10px 12px; }
  .shop th { width: 40%; }
  .shop .actions .btn { width: 100%; }
}

/* ---------- Prihlaseni (obchod) ----------
   Uzky sloupec na stred, protoze na teto strance je vzdycky jen jeden ukol:
   napsat adresu, nebo opsat sest cislic. Tentyz vzhled ma obrazovka prihlaseni
   v aplikaci (`app/src/components/accounts/LoginScreen.tsx`), aby zakaznik
   nepoznal, ze jsou to dve ruzne implementace. */
.shop .prihlaseni { max-width: 30rem; margin-inline: auto; text-align: center; }
/* Marketingovy nadpis stranky ma 42px, coz se do uzkeho sloupce nevejde:
   `Zadejte kod z e-mailu` se na nem lamalo uprostred slova na `e-` a `mailu`.
   `balance` rozdeli radky rovnomerne, kdyby se prece jen lamat musel. */
.shop .prihlaseni h1 {
  font-size: clamp(28px, 4.5vw, 34px);
  line-height: 1.2;
  text-wrap: balance;
}
.shop .prihlaseni-uvod { font-size: 17.5px; color: var(--muted); margin-top: 10px; }
.shop .prihlaseni-uvod strong { color: var(--text); font-weight: 700; }

/* Pole se roztahne na celou sirku sloupce a text v nem jde na stred, jinak by
   jedina hodnota sedela u leveho okraje pod nadpisem zarovnanym na stred. */
.shop .prihlaseni input[type="email"],
.shop .prihlaseni input[type="text"] { max-width: none; text-align: center; }

/* Sest cislic je jediny obsah pole, takze snese vetsi pismo i rozestup. */
.shop .prihlaseni .pole-kod {
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.3em;
  /* Rozestup pridava mezeru i ZA posledni cislici, takze by cislo vypadalo
     posunute doleva. Odsazeni o tutez hodnotu ho vraci na stred. */
  text-indent: 0.3em;
  padding: 14px;
}

.shop .prihlaseni-platnost { font-size: 16px; color: var(--muted); margin-top: 14px; }
.shop .prihlaseni-platnost .odpocet {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
  /* Aby cislice pri odpoctu neposkakovaly, kdyz se zmeni sirka znaku. */
  font-variant-numeric: tabular-nums;
  margin-inline-start: 6px;
}
.shop .prihlaseni-platnost .vyprselo { color: #b91c1c; font-weight: 700; }

/* Dve vedlejsi akce vedle sebe a stejne siroke. Jedna z nich je tlacitko ve
   vlastnim formulari, druha odkaz, takze se sirka musi vynutit obema. */
.shop .prihlaseni-akce { display: flex; gap: 12px; margin-top: 18px; }
.shop .prihlaseni-akce > * { flex: 1; }
.shop .prihlaseni-akce form { margin-top: 0; }
.shop .prihlaseni-akce .btn { width: 100%; }

.shop .prihlaseni .form-note { text-align: center; margin-top: 18px; }

@media (max-width: 480px) {
  .shop .prihlaseni-akce { flex-direction: column; }
  .shop .prihlaseni .pole-kod { font-size: 24px; letter-spacing: 0.2em; text-indent: 0.2em; }
}

/* ---------- Popisek jen pro odecitac obrazovky ----------
   Pole s vymluvnym zastupnym textem popisek navic vedle sebe nepotrebuje, ale
   bez `label` by ho odecitac obrazovky ohlasil jako nepojmenovane. Schovava se
   proto vizualne, ne pres `display: none`, ktere by ho vzalo i odecitaci. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ===== Tisk a export do PDF =====
   Prilohy potvrzovaciho e-mailu se vyrabeji tiskem techto stranek do PDF
   (server/legal/build-pdf.mjs). Bez tohoto bloku by se do pravniho dokumentu
   vytiskla navigace, prepinac motivu a patickove odkazy. */
@media print {
  :root { color-scheme: light; }

  .nav,
  .footer,
  .doc-back,
  .theme-toggle,
  .reveal-init { display: none !important; }

  html,
  body {
    background: #fff !important;
    color: #111 !important;
  }

  .doc { padding: 0 !important; }

  /* Odkazy v papirovem dokumentu nikam nevedou, takze cil patri do textu.
     Vnitrni kotvy se vypisovat nemusi, ty v ramci dokumentu davaji smysl. */
  a[href^="http"]::after,
  a[href^="mailto:"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    word-break: break-all;
  }

  h1, h2, h3 { break-after: avoid; }
  table, pre, blockquote { break-inside: avoid; }

  @page { margin: 18mm 16mm; }
}

/* ============================================================
   ADMINISTRACE (admin.amanu.cz)
   Pridano pro `server/src/sprava/view/`. Administrace si pujcuje
   `.shop` pravidla vyse (formulare, tabulky, tlacitka), tenhle
   blok dopisuje jenom to, co obchod nema: navigaci mezi
   obrazovkami, uzsi tabulku a kladnou hlasku.

   VSECHNA JMENA MAJI PREDPONU `sprava-` a zadna stranka v `live/`
   je nepouziva, takze se marketingovy web tim to blokem nemeni.
   Tataz uvaha, jakou ma u sebe blok obchodu.
   ============================================================ */

/* Radek odkazu v hlavicce. `margin-left: auto` ho odsune doprava od loga,
   `flex-wrap` ho na telefonu zalomi misto aby prelil hlavicku. */
.sprava-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  font-size: 15.5px;
  font-weight: 600;
}

.sprava-nav a { color: var(--muted); text-decoration: none; }
.sprava-nav a:hover { color: var(--accent); }

/* Formular v radku odkazu se nesmi chovat jako blok, jinak by rozbil flex. */
.sprava-odhlasit { display: inline-flex; margin: 0; }

/* `.shop table` dava prvnimu sloupci 42 %, protoze rekapitulace objednavky ma
   sloupce dva. Tabulky administrace jich maji vic a sirku si maji rozdelit
   samy, jinak by se ctyri sloupce zmackly do 58 % sirky. */
.sprava-tabulka th { width: auto; }
.sprava-tabulka td form { margin: 0; }

/* Bunky se nezalamuji. U tabulky, ktera se na uzku obrazovku posouva do strany,
   je zalomeni to horsi z obou zel: "18. 6. 2027" se rozpadlo na tri radky a
   rozhodilo vysku kazdeho radku, zatimco posunuti do strany uz stejne existuje.
   Posledni chyba ve fronte je vyjimka, ta je veta a zalomit se musi. */
.sprava-tabulka th,
.sprava-tabulka td { white-space: nowrap; }
.sprava-tabulka td.sprava-chyba { white-space: normal; min-width: 18rem; }

/* Kladny protejsek `.form-error`. Vlastni pravidlo, ne `.form-note`: hlaska po
   akci ma byt videt na prvni pohled, protoze rika, ze se neco stalo. */
.sprava-zprava {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 15.5px;
  font-weight: 600;
  margin: 8px 0 0;
}

:root[data-theme="dark"] .sprava-zprava {
  color: #86efac;
  background: rgba(22, 101, 52, 0.18);
  border-color: rgba(134, 239, 172, 0.4);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .sprava-zprava {
    color: #86efac;
    background: rgba(22, 101, 52, 0.18);
    border-color: rgba(134, 239, 172, 0.4);
  }
}

/* Rada dlazdic na Prehledu. `auto-fit` a `minmax` znamena, ze se pocet sloupcu
   ridi sirkou okna a na telefonu z toho vyjde jeden sloupec bez media dotazu. */
.sprava-dlazdice-rada {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin: 22px 0 34px;
}

.sprava-dlazdice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}

.sprava-dlazdice-popis {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Cislo je to jedine, co se z dlazdice cte na dalku, takze nese vahu samo. */
.sprava-dlazdice-hodnota {
  color: var(--text);
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 4px;
}

.sprava-dlazdice-poznamka {
  color: var(--muted);
  font-size: 14px;
  margin-top: 4px;
}

/* Radek hledani nad tabulkou. Formularova pravidla obchodu davaji poli sirku
   100 % a vlastni radek, coz je spravne u objednavky a spatne u filtru.

   `.sprava-pole` je sloupec popisek nad polem; bez nej sedel popisek vedle pole
   a tlacitko o hlavu vys, protoze `.btn` obchodu ma mnohem vyssi vypln nez
   `input`. Poznalo se to vykreslenim, ne z kodu. */
.sprava-hledani {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
  margin: 0 0 26px;
}

.sprava-pole { display: flex; flex-direction: column; gap: 5px; }
.sprava-hledani label { margin: 0; font-size: 14.5px; font-weight: 600; }

/* Blok obchodu vysazi jen `input[type="text"]` a `[type="email"]`, takze
   vyhledavaci pole a nabidka stavu by zustaly ve vychozim vzhledu prohlizece.
   V tmavem motivu je to bila cihla, tataz vada, jakou mel cely obchod pred
   16. 8. Poznalo se to vykreslenim, ne z kodu. */
.sprava-hledani input[type="search"],
.sprava-hledani select {
  display: block;
  font: inherit;
  font-size: 16.5px;
  width: auto;
  min-width: 210px;
  margin: 0;
  padding: 11px 14px;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}

.sprava-hledani input[type="search"]:hover,
.sprava-hledani select:hover { border-color: var(--accent-lighter); }

.sprava-hledani input[type="search"]:focus-visible,
.sprava-hledani select:focus-visible {
  outline: 3px solid var(--accent-soft);
  outline-offset: 1px;
  border-color: var(--accent);
}

.sprava-hledani .btn { margin: 0; flex: 0 0 auto; }

/* Doslovne zneni souhlasu podle cl. 8.2. Vysazene jako citace schvalne: je to
   text, ktery zakaznik videl a odsouhlasil, ne nase veta. */
.sprava-souhlas {
  border-left: 3px solid var(--accent);
  background: var(--surface-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 10px 0;
  padding: 12px 16px;
  font-size: 15.5px;
}

.sprava-poznamka { color: var(--muted); font-size: 14.5px; }

@media (max-width: 640px) {
  .sprava-nav { gap: 12px; font-size: 14.5px; }
  /* `.nav .btn-sm { display: none }` vyse je pravidlo marketingoveho webu, ktere
     pod 560 px schovava male tlacitko v hlavicce. Tlacitko Odhlasit ma tytez
     tridy, takze se schovavalo taky a z TELEFONU SE NESLO ODHLASIT. Poznalo se
     to merenim rozmeru, ne pohledem: tlacitko melo nulovou sirku. */
  .sprava-odhlasit .btn-sm { display: inline-flex; }
  /* Adresa v tlacitku se na uzkou obrazovku nevejde a tlacitko prelilo hlavicku
     ven z obrazovky. Kdo je prihlaseny, stejne vi; slovo Odhlasit staci. */
  .sprava-kdo { display: none; }
  /* Filtr se na telefonu sklada pod sebe, jinak by pole vytlacilo tlacitko ven. */
  .sprava-hledani { flex-direction: column; align-items: stretch; }
  .sprava-pole { width: 100%; }
  .sprava-hledani input,
  .sprava-hledani select { width: 100%; min-width: 0; }
  /* Sirsi tabulky administrace se na telefonu posunou do strany, misto aby se
     zmackly na necitelnou sirku. Stranka sama vodorovne neroluje.

     `.shop` v selektoru MUSI byt: `.shop table` vyse ma `overflow: hidden`
     (kvuli zaoblenym rohum) a specificitu 0-1-1, takze holou `.sprava-tabulka`
     s 0-1-0 prebije bez ohledu na poradi. Sedmisloupcova tabulka uctu se pak
     neposunula, ale USEKLA. V bloku 1 se to neprojevilo, protoze jeho jedina
     tabulka mela ctyri uzke sloupce a vesla se. Zmereno v prohlizeci na 390 px,
     ne odhadnuto. */
  .shop .sprava-tabulka {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
