/* PhoneDrop – stejné barvy jako aplikace. Světlý výchozí, tmavý podle systému nebo přepínače. */
:root {
  --bg: #f2f5f1;
  --bg-2: #e9eee8;
  --card: #ffffff;
  --card-2: #eaefea;
  --line: rgba(22, 33, 26, 0.09);
  --line-2: rgba(22, 33, 26, 0.16);
  --text: #16211a;
  --muted: #5c6a61;
  --faint: #8d988f;
  --accent: #24a653;
  --accent-ink: #1b8a44;
  --accent-tint: #e1f4e6;
  --on-accent: #ffffff;
  --bad: #dc4a4a;
  --grad: linear-gradient(120deg, #3dc46b, #14874a);
  --shadow: 0 1px 2px rgba(31, 58, 42, 0.06), 0 12px 32px -12px rgba(31, 58, 42, 0.22);
  --glow-1: rgba(61, 196, 107, 0.22);
  --glow-2: rgba(20, 135, 74, 0.12);
  --radius: 22px;
  --font: "Segoe UI Variable Display", "Segoe UI", -apple-system, BlinkMacSystemFont, "SF Pro Display", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: light;
}

/* Tmavé proměnné: ručně zvolené, nebo systémové, pokud uživatel nevybral světlý. */
html[data-theme="dark"] {
  --bg: #0f1311; --bg-2: #141a16; --card: #1a201c; --card-2: #232b26;
  --line: rgba(236, 242, 238, 0.08); --line-2: rgba(236, 242, 238, 0.15);
  --text: #ecf2ee; --muted: #a3afa7; --faint: #6c7870;
  --accent: #5fd68a; --accent-ink: #5fd68a; --accent-tint: #1e3326; --on-accent: #06210f; --bad: #f07b7b;
  --grad: linear-gradient(120deg, #7fe3a3, #3dc46b);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
  --glow-1: rgba(61, 196, 107, 0.16); --glow-2: rgba(20, 135, 74, 0.12);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    --bg: #0f1311; --bg-2: #141a16; --card: #1a201c; --card-2: #232b26;
    --line: rgba(236, 242, 238, 0.08); --line-2: rgba(236, 242, 238, 0.15);
    --text: #ecf2ee; --muted: #a3afa7; --faint: #6c7870;
    --accent: #5fd68a; --accent-ink: #5fd68a; --accent-tint: #1e3326; --on-accent: #06210f; --bad: #f07b7b;
    --grad: linear-gradient(120deg, #7fe3a3, #3dc46b);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    --glow-1: rgba(61, 196, 107, 0.16); --glow-2: rgba(20, 135, 74, 0.12);
    color-scheme: dark;
  }
}

/* Obrázky pro světlý / tmavý vzhled. */
html[data-theme="dark"] .only-light, html[data-theme="light"] .only-dark { display: none !important; }
html:not([data-theme]) .only-dark { display: none; }
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) .only-dark { display: block; }
  html:not([data-theme]) .only-light { display: none !important; }
}

/* Ikona přepínače vzhledu podle volby. */
.ti { display: none; }
html:not([data-theme]) .ti-auto, html[data-theme="light"] .ti-light, html[data-theme="dark"] .ti-dark { display: block; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Jazyk: oba jsou ve stránce, jeden je skrytý. */
html:not([data-lang="cs"]) [data-l="cs"],
html[data-lang="cs"] [data-l="en"] { display: none !important; }

a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
b { font-weight: 650; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--card-2); padding: 0.1em 0.4em; border-radius: 6px; }

.glow {
  position: absolute;
  inset: -20vh 0 auto 0;
  height: 100vh;
  pointer-events: none;
  background:
    radial-gradient(40vw 36vh at 76% 24%, var(--glow-1), transparent 70%),
    radial-gradient(34vw 30vh at 10% 6%, var(--glow-2), transparent 70%);
  z-index: 0;
}

/* Navigace */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px max(16px, calc((100vw - 1180px) / 2));
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 15px; }
.nav-links a:hover { color: var(--text); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang, .icon-btn {
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--text);
  font: 600 13px var(--font);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.icon-btn svg { width: 18px; height: 18px; fill: currentColor; }
.lang:hover, .icon-btn:hover { border-color: var(--accent); }

/* Tlačítka */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 16px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}
.btn .ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 8px 24px -10px var(--accent); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px -10px var(--accent); }
.btn-primary:disabled { opacity: 0.6; cursor: default; transform: none; }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { height: 36px; padding: 0 16px; font-size: 14px; background: var(--accent); color: var(--on-accent); }

/* Úvod */
main { position: relative; z-index: 1; }
.hero {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 20px 40px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  box-shadow: var(--shadow);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }
h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.05; letter-spacing: -0.03em; margin: 22px 0 18px; font-weight: 800; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 19px; color: var(--muted); max-width: 560px; margin: 0 0 28px; }
.lead b { color: var(--text); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }
.meta { color: var(--faint); font-size: 14px; margin-top: 16px; }

/* Ukázka: okno Windows, letící APK a telefon s instalací */
.hero-demo { position: relative; }
.stage { position: relative; height: 470px; }
.win, .shot-win {
  margin: 0;
  background: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 0 1px var(--line);
}
.win { position: absolute; left: 0; top: 30px; width: 74%; }
.win-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px;
  font-size: 12.5px;
  color: var(--muted);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.win-bar img { width: 16px; height: 16px; }
.win-bar span { flex: 1; }
.win-bar i { width: 10px; height: 10px; border-radius: 2px; border: 1.5px solid var(--faint); opacity: 0.6; }
.phone {
  position: absolute;
  right: 0;
  top: 0;
  width: 39%;
  margin: 0;
  padding: 7px;
  border-radius: 34px;
  background: #151916;
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
.phone img { border-radius: 27px; }
.flyer {
  position: absolute;
  left: 34%;
  top: 44%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 8px;
  border-radius: 14px;
  background: var(--card);
  box-shadow: var(--shadow), 0 0 0 1px var(--line-2);
  font-size: 13px;
  font-weight: 600;
  z-index: 3;
  animation: fly 4.2s cubic-bezier(0.45, 0, 0.25, 1) infinite;
}
.flyer-doc {
  width: 30px;
  height: 36px;
  border-radius: 6px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
@keyframes fly {
  0% { transform: translate(-60%, 40%) scale(0.9); opacity: 0; }
  12% { opacity: 1; }
  45% { transform: translate(0, 0) scale(1); opacity: 1; }
  80% { transform: translate(120%, -70%) scale(0.75); opacity: 0.9; }
  92%, 100% { transform: translate(135%, -80%) scale(0.6); opacity: 0; }
}
.demo-caption { color: var(--faint); font-size: 13px; text-align: center; margin: 14px 0 0; }

/* Čísla */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1180px;
  margin: 24px auto 0;
  padding: 0 20px;
}
.stats div {
  background: var(--card);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.stats b { font-size: 30px; letter-spacing: -0.02em; color: var(--accent-ink); }
.stats span { color: var(--muted); font-size: 14px; }

/* Sekce */
.section { max-width: 1180px; margin: 0 auto; padding: 96px 20px 0; }
h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.025em; line-height: 1.1; margin: 0 0 14px; font-weight: 800; }
#how h2, #features h2, #download h2, #feedback h2, #support h2, .faq h2 { text-align: center; }
.section-lead { color: var(--muted); font-size: 18px; max-width: 720px; margin: 0 0 40px; }
#how .section-lead, .center { margin-left: auto; margin-right: auto; text-align: center; }

.steps { list-style: none; padding: 0; margin: 0 0 56px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { background: var(--card); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--accent-tint);
  color: var(--accent-ink);
  font-weight: 800;
}
.steps h3 { margin: 14px 0 6px; font-size: 19px; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }

.shots { display: grid; grid-template-columns: 0.62fr 1fr; gap: 32px; align-items: start; max-width: 940px; margin: 0 auto; }
.shot-phone { margin: 0; }
.shot-phone > img { border-radius: 28px; box-shadow: var(--shadow), 0 0 0 7px #151916; margin: 7px; }
.shots figcaption { color: var(--muted); font-size: 14px; text-align: center; margin-top: 16px; }
.shot-win figcaption { padding: 0 12px 14px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature svg { width: 44px; height: 44px; padding: 10px; border-radius: 14px; fill: var(--accent-ink); background: var(--accent-tint); }
.feature h3 { margin: 16px 0 6px; font-size: 19px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.terminal {
  margin: 0;
  background: #101512;
  color: #dfe8e2;
  border-radius: 16px;
  padding: 18px 22px 22px;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  box-shadow: var(--shadow);
}
.terminal code { background: none; padding: 0; font-size: 1em; }
.t-bar { display: flex; gap: 7px; margin-bottom: 12px; }
.t-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a433d; }
.terminal .c { color: #7d8b81; }
.terminal .p { color: #5fd68a; }
.terminal .o { color: #9fe7b8; }

.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 340px)); gap: 16px; justify-content: center; }
.dl {
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--card);
  text-decoration: none;
  box-shadow: var(--shadow);
  border: 1px solid transparent;
  transition: border-color 0.15s, transform 0.15s;
}
.dl:hover { border-color: var(--accent); transform: translateY(-2px); }
.dl-os { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: 12px; fill: var(--accent-ink); background: var(--accent-tint); }
.dl-title { font-weight: 700; font-size: 18px; }
.dl-sub { grid-column: 2; color: var(--muted); font-size: 14px; }
.dl-size { grid-row: 1 / span 2; grid-column: 3; color: var(--faint); font-size: 14px; font-weight: 600; }
.small { color: var(--faint); font-size: 14px; }
.small a { color: var(--accent-ink); }
.center { text-align: center; }

/* Zpětná vazba */
.feedback {
  max-width: 680px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.kinds label { cursor: pointer; }
.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.kinds label > span { display: inline-block; padding: 7px 16px; border-radius: 999px; background: var(--card-2); color: var(--muted); font-size: 14px; font-weight: 600; }
.kinds input:checked + span { background: var(--accent); color: var(--on-accent); }
.kinds input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.field textarea, .field input {
  width: 100%;
  font: 16px var(--font);
  color: var(--text);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  resize: vertical;
}
.field textarea:focus, .field input:focus { outline: none; border-color: var(--accent); }
.hp { position: absolute; left: -9999px; }
.feedback-end { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.feedback-status { margin: 0; font-size: 15px; }
.feedback-status.ok { color: var(--accent-ink); }
.feedback-status.err { color: var(--bad); }

/* Podpora */
.support { max-width: 720px; margin: 0 auto; background: var(--card); border-radius: var(--radius); padding: 28px; display: flex; gap: 28px; align-items: center; box-shadow: var(--shadow); }
.support-qr { flex: none; display: block; background: #fff; border-radius: 14px; padding: 6px; line-height: 0; box-shadow: 0 0 0 1px var(--line); }
.support-qr img { width: 172px; height: 172px; image-rendering: pixelated; }
.support-body { min-width: 0; display: grid; gap: 12px; }
.support-body h3 { margin: 0; font-size: 22px; }
.support-body h3 small { color: var(--faint); font-size: 14px; font-weight: 500; margin-left: 6px; }
.support-body .small { margin: 0; }
.support-address { display: block; font-size: 14px; padding: 10px 12px; border-radius: 10px; background: var(--card-2); border: 1px solid var(--line-2); word-break: break-all; user-select: all; }
.support-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.support-copied { color: var(--accent-ink); font-size: 15px; }
.support-kofi { margin-top: 14px; justify-content: space-between; }
.support-kofi .btn { flex: none; white-space: nowrap; }

/* FAQ */
.faq details { max-width: 820px; margin: 0 auto 10px; background: var(--card); border-radius: 16px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 18px 22px; font-weight: 650; list-style: none; position: relative; padding-right: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 22px; color: var(--accent-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

.footer {
  max-width: 1180px;
  margin: 110px auto 0;
  padding: 28px 20px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}
.footer p { margin: 0; flex: 1; }
.footer a { color: var(--muted); }
.footer .brand { color: var(--text); font-size: 16px; }

@media (prefers-reduced-motion: reduce) {
  .flyer, .pill-dot { animation: none; }
  .flyer { opacity: 1; }
  html { scroll-behavior: auto; }
}

@media (max-width: 920px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 48px; gap: 36px; }
  .stage { height: auto; aspect-ratio: 1 / 0.86; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .steps, .features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; max-width: 480px; }
  .shot-phone { max-width: 300px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .downloads { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .support { flex-direction: column; align-items: stretch; padding: 20px 16px; }
  .support-qr { align-self: center; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .nav { gap: 12px; }
  .brand span { display: none; }
  .btn { height: 46px; padding: 0 18px; font-size: 15px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .lead { font-size: 17px; }
  .section { padding-top: 72px; }
  .stats b { font-size: 24px; }
  .flyer { font-size: 11px; }
  .terminal { font-size: 12.5px; }
}
