/* Ledge — landing page. Barvy z src/theme/themes.ts (motiv Tmavý / Světlý) a z ikony (src-tauri/icons/ledge.svg). */
:root {
  --bg: rgb(16 18 27);
  --bg-2: rgb(22 25 37);
  --raised: #262a37;
  --card: rgba(255 255 255 / 0.04);
  --card-2: rgba(255 255 255 / 0.07);
  --line: rgba(255 255 255 / 0.09);
  --line-2: rgba(255 255 255 / 0.16);
  --t1: #f4f5f9;
  --t2: #aeb2c2;
  --t3: #8d92a3;
  --accent: #a78bfa;
  --accent-2: #60a5fa;
  --amber: #f59e0b;
  --green: #34d399;
  --grad: linear-gradient(90deg, #8b5cf6, #6366f1 55%, #22d3ee);
  --shadow: 0 30px 80px rgba(0 0 0 / 0.55), 0 0 0 1px rgba(255 255 255 / 0.06);
  --radius: 18px;
  --maxw: 1160px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: rgb(246 247 250);
  --bg-2: #ffffff;
  --raised: #ffffff;
  --card: rgba(255 255 255 / 0.75);
  --card-2: rgba(15 23 42 / 0.05);
  --line: rgba(15 23 42 / 0.1);
  --line-2: rgba(15 23 42 / 0.18);
  --t1: #14161f;
  --t2: #434a5c;
  --t3: #5b6274;
  --accent: #7c3aed;
  --accent-2: #2563eb;
  --amber: #985707;
  --green: #137638;
  --shadow: 0 24px 60px rgba(15 23 42 / 0.18), 0 0 0 1px rgba(15 23 42 / 0.08);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--t1);
  font: 16px/1.6 "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
code, kbd, pre { font-family: "Cascadia Code", "Cascadia Mono", Consolas, ui-monospace, monospace; font-size: 0.9em; }
kbd, code { background: var(--card-2); border: 1px solid var(--line); border-radius: 6px; padding: 0.05em 0.4em; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.1rem; letter-spacing: -0.01em; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--t2); }
.small { font-size: 0.875rem; color: var(--t3); }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--raised); padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* ---- navigace ---- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links { display: flex; gap: 22px; margin-left: 12px; }
.nav-links a { color: var(--t2); text-decoration: none; font-size: 0.94rem; }
.nav-links a:hover { color: var(--t1); }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; min-width: 36px; padding: 0 10px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--card); color: var(--t2);
  font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { color: var(--t1); border-color: var(--line-2); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-ico-light { display: none; }
:root[data-theme="light"] .theme-ico-light { display: block; }
:root[data-theme="light"] .theme-ico-dark { display: none; }

/* ---- tlačítka ---- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 14px; font-weight: 650; font-size: 1.02rem;
  text-decoration: none; border: 1px solid var(--line-2); background: var(--card); color: var(--t1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); border-color: var(--t3); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary {
  border: 0; color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #6366f1 55%, #0ea5e9);
  box-shadow: 0 10px 30px rgba(99 102 241 / 0.35), inset 0 1px 0 rgba(255 255 255 / 0.25);
}
.btn-primary:hover { box-shadow: 0 14px 38px rgba(99 102 241 / 0.5), inset 0 1px 0 rgba(255 255 255 / 0.25); }
.btn-sub { display: block; font-size: 0.78rem; font-weight: 500; opacity: 0.85; }
.btn-primary .btn-sub { color: rgba(255 255 255 / 0.85); }
.btn-sm { padding: 9px 14px; font-size: 0.92rem; border-radius: 11px; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: 56px 0 40px; text-align: center; }
.hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 760px; z-index: -1;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(139 92 246 / 0.28), transparent 70%),
    radial-gradient(35% 45% at 72% 25%, rgba(34 211 238 / 0.18), transparent 70%);
}
:root[data-theme="light"] .hero::before { opacity: 0.55; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--t2); font-size: 0.85rem; font-weight: 600;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); font-weight: 800; letter-spacing: -0.035em; margin: 20px auto 0; max-width: 19ch; }
.hero .lead { font-size: clamp(1.05rem, 1.8vw, 1.28rem); color: var(--t2); max-width: 46rem; margin: 22px auto 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 34px; }
.cta-row .btn { text-align: left; }
.facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin-top: 18px; font-size: 0.88rem; color: var(--t3); }
.facts span::before { content: "✓ "; color: var(--green); }

/* obrazovka s římsou nahoře: ilustrace (tvary bez dat) + skutečný snímek šuplíku */
.stage { position: relative; margin: 56px auto 0; max-width: 1000px; }
.screen {
  position: relative; border-radius: 22px; padding: 0 28px 28px;
  background: linear-gradient(180deg, var(--bg-2), color-mix(in srgb, var(--bg-2) 40%, var(--bg)));
  box-shadow: var(--shadow);
}
.ledge-bar { display: flex; justify-content: center; padding: 10px 0 14px; }
.ledge-bar i {
  display: block; width: 168px; height: 12px; border-radius: 0 0 12px 12px; background: var(--grad);
  box-shadow: 0 6px 26px rgba(99 102 241 / 0.6);
}
.drawer-shot { border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); transform-origin: top center; }
.motion .drawer-shot { animation: drop 0.9s cubic-bezier(0.2, 0.9, 0.25, 1.15) 0.15s both; }
@keyframes drop { from { opacity: 0; transform: translateY(-28px) scaleY(0.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .motion .drawer-shot { animation: none; } html { scroll-behavior: auto; } }
.shot-note { margin-top: 12px; font-size: 0.8rem; color: var(--t3); text-align: center; }

/* ---- sekce ---- */
section { padding: 88px 0; }
.sec-head { text-align: center; max-width: 46rem; margin: 0 auto 48px; }
.sec-head p { margin-top: 14px; font-size: 1.1rem; color: var(--t2); }
.kicker { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin-bottom: 12px; }
.alt { background: linear-gradient(180deg, transparent, var(--card-2) 20%, var(--card-2) 80%, transparent); }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card p { margin-top: 8px; color: var(--t2); font-size: 0.97rem; }
.ico {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent);
}
.ico svg { width: 22px; height: 22px; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.split.rev { grid-template-columns: 1fr 1.05fr; }
.split .shot { border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); position: sticky; top: 96px; margin-top: 40px; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--t2); }
.checks li b { color: var(--t1); font-weight: 650; }
.checks li::before {
  content: ""; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px;
  background: color-mix(in srgb, var(--accent) 18%, transparent)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a78bfa' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.note-box {
  margin-top: 22px; padding: 14px 16px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent); font-size: 0.95rem; color: var(--t2);
}
.note-box b { color: var(--t1); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid .card h3 { display: flex; align-items: center; gap: 10px; }
.grid .card .ico { margin: 0; width: 34px; height: 34px; border-radius: 10px; }
.grid .card .ico svg { width: 18px; height: 18px; }

/* zavřený stav — ilustrace tvarů (bez dat) */
.looks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.look { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 14px 14px; text-align: center; }
.look .edge { height: 46px; display: flex; justify-content: center; align-items: flex-start; border-top: 2px solid var(--line-2); margin: 0 -14px 10px; position: relative; }
.look b { display: block; font-size: 0.95rem; }
.look span { font-size: 0.82rem; color: var(--t3); }
.s-island { width: 96px; height: 22px; margin-top: 6px; border-radius: 999px; background: #000; box-shadow: 0 0 0 1px var(--line-2); }
.s-notch { width: 120px; height: 24px; border-radius: 0 0 16px 16px; background: #000; box-shadow: 0 0 0 1px var(--line-2); }
.s-line { width: 100%; height: 3px; background: linear-gradient(90deg, var(--accent) 0 30%, var(--amber) 30% 45%, var(--accent-2) 45% 100%); }
.s-dots { display: flex; gap: 7px; margin-top: 8px; }
.s-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.s-dots i:nth-child(2) { background: var(--green); } .s-dots i:nth-child(3) { background: var(--amber); } .s-dots i:nth-child(4) { background: var(--accent-2); }
.s-bar { width: 100%; height: 18px; background: var(--card-2); border-bottom: 1px solid var(--line-2); }
.s-corner { position: absolute; right: 8px; top: 6px; width: 30px; height: 18px; border-radius: 8px; background: var(--accent); }
.s-classic { width: 70%; height: 8px; border-radius: 0 0 8px 8px; background: var(--grad); }
.s-ghost { width: 70%; height: 8px; border-radius: 0 0 8px 8px; border: 1px dashed var(--line-2); border-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 0.86rem; color: var(--t2); }

/* galerie */
.looks-real { margin: 44px auto 0; max-width: 980px; text-align: center; }
.looks-real figure { margin: 18px 0 0; }
.looks-real img { max-width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); }
.looks-real figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--t3); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); }
.seg button { padding: 7px 18px; border: 0; border-radius: 999px; background: none; color: var(--t2); font: inherit; font-weight: 600; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--t1); color: var(--bg); }
.gallery { display: grid; grid-template-columns: 1fr; gap: 18px; max-width: 820px; margin-left: auto; margin-right: auto; }
.gallery figure { margin: 0; }
.gallery figcaption { margin-top: 10px; font-size: 0.88rem; color: var(--t3); }
.gallery img { border-radius: 14px; box-shadow: var(--shadow); }
.gallery .stack { display: grid; gap: 18px; }
.themes { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 40px; }
.sw { border-radius: 12px; border: 1px solid var(--line); overflow: hidden; font-size: 0.74rem; text-align: center; }
.sw i { display: block; height: 44px; position: relative; }
.sw i::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 9px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--a), var(--b)); }
.sw span { display: block; padding: 6px 2px; color: var(--t2); background: var(--card); }

/* instalace */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: s; content: counter(s); position: absolute; top: 20px; left: 24px;
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad); color: #fff; font-weight: 700; font-size: 0.9rem;
}
.smartscreen { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.ss-mock { border-radius: 14px; background: #0f5ea8; color: #fff; padding: 18px 20px; font-family: "Segoe UI", system-ui, sans-serif; }
.ss-mock .t { font-size: 1.15rem; font-weight: 600; }
.ss-mock p { font-size: 0.86rem; margin-top: 8px; opacity: 0.92; }
.ss-mock .row { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.ss-mock .row span { border: 1px solid rgba(255 255 255 / 0.7); padding: 4px 14px; font-size: 0.82rem; }
.ss-mock u { cursor: default; }
.ss-mock .hl { outline: 2px solid #ffd400; outline-offset: 3px; position: relative; }
.ss-mock .hl::after { content: attr(data-n); position: absolute; top: -12px; right: -14px; width: 20px; height: 20px; border-radius: 50%; background: #ffd400; color: #111; font: 700 12px/20px "Segoe UI", sans-serif; text-align: center; text-decoration: none; }
pre.cmd {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line);
  overflow-x: auto; white-space: pre; font-size: 0.82rem; position: relative;
}
pre.cmd code { background: none; border: 0; padding: 0; }
.copy { position: absolute; top: 6px; right: 6px; height: 28px; font-size: 0.75rem; }

/* soukromí, FAQ, roadmapa */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 4px; }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--t3); font-weight: 400; font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: 10px; color: var(--t2); }
.road { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 820px; margin: 0 auto; }
.road li { display: flex; gap: 12px; align-items: baseline; padding: 14px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--t2); }
.road li b { color: var(--t1); }
.tag { flex: none; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 8px; border-radius: 6px; background: var(--card-2); color: var(--accent); }

.final { text-align: center; padding: 96px 0; }
.final h2 { max-width: 20ch; margin: 0 auto; }
.final p { margin: 16px auto 0; color: var(--t2); max-width: 40rem; }
footer { border-top: 1px solid var(--line); padding: 32px 0 48px; font-size: 0.9rem; color: var(--t3); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
footer a { color: var(--t2); text-decoration: none; }
footer a:hover { color: var(--t1); }
footer .sp { margin-left: auto; }

@media (max-width: 960px) {
  .nav-links { display: none; }
  .why, .grid, .steps { grid-template-columns: 1fr 1fr; }
  .split, .split.rev, .gallery, .two, .smartscreen { grid-template-columns: 1fr; }
  .split .shot { position: static; margin-top: 0; }
  .looks { grid-template-columns: repeat(2, 1fr); }
  .themes { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 620px) {
  section { padding: 64px 0; }
  .wrap { padding: 0 18px; }
  .why, .grid, .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
  .screen { padding: 0 10px 10px; border-radius: 16px; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .nav-tools .gh-label { display: none; }
  footer .sp { margin-left: 0; }
}
