/* Můj plánovač – web */
:root {
  --navy: #0e2240;
  --navy-2: #16345f;
  --blue: #1f6feb;
  --blue-dark: #1757bd;
  --blue-soft: #e8f0fe;
  --orange: #f59e0b;
  --orange-dark: #d97e00;
  --green: #1a8a54;
  --red: #d63b4b;
  --ink: #17233a;
  --muted: #5b6a82;
  --line: #e2e8f2;
  --bg: #ffffff;
  --bg-soft: #f5f8fd;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 34, 64, .10);
  --shadow-lg: 0 24px 60px rgba(14, 34, 64, .22);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--navy); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  padding: .8rem 1.4rem; border-radius: 999px; font-weight: 650; font-size: 1rem;
  border: 2px solid transparent; cursor: pointer; transition: .15s ease; text-decoration: none !important;
  font-family: inherit;
}
.btn-primary { background: var(--orange); color: #2a1a00; box-shadow: 0 6px 18px rgba(245, 158, 11, .35); }
.btn-primary:hover { background: var(--orange-dark); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); }
.btn-outline { border-color: var(--blue); color: var(--blue); }
.btn-outline:hover { background: var(--blue-soft); }
.btn-sm { padding: .5rem 1.05rem; font-size: .95rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--navy); font-weight: 800; font-size: 1.2rem; text-decoration: none !important; }
.brand img { width: 40px; height: 40px; }
.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--ink); padding: .5rem .9rem; border-radius: 999px; font-weight: 550; text-decoration: none; }
.nav-links a:hover { background: var(--bg-soft); }
.nav-links a.active { color: var(--blue); background: var(--blue-soft); }
.nav-links .btn { color: #2a1a00; margin-left: .4rem; }
.nav-links .btn:hover { color: #fff; background: var(--orange-dark); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .7rem; font-size: 1.2rem; cursor: pointer; color: var(--navy); }

/* Hero */
.hero {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(31, 111, 235, .55), transparent 60%),
    radial-gradient(700px 400px at 0% 100%, rgba(245, 158, 11, .20), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff; overflow: hidden;
}
.hero h1 { color: #fff; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; padding: 4.5rem 0 5rem; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); margin-bottom: .8rem; }
.hero .lead { font-size: 1.2rem; color: #cdd9ee; max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.8rem; color: #b9c8e2; font-size: .95rem; list-style: none; padding: 0; }
.hero-badges li::before { content: "✓"; color: var(--orange); font-weight: 800; margin-right: .4rem; }
.hero-visual { position: relative; }
.hero-visual .shot-phone { position: absolute; right: -8px; bottom: -36px; width: 28%; min-width: 120px; }

/* Screenshot frames */
.shot { border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid rgba(14, 34, 64, .12); }
.shot-bar { display: flex; gap: 6px; padding: 9px 12px; background: #eef2f8; border-bottom: 1px solid var(--line); }
.shot-bar i { width: 10px; height: 10px; border-radius: 50%; background: #c5cedd; display: block; }
.shot-bar i:nth-child(1) { background: #ff6b63; } .shot-bar i:nth-child(2) { background: #ffc149; } .shot-bar i:nth-child(3) { background: #3ecf6b; }
/* Oříznutí horní tmavé navigace aplikace (procenta marginu se počítají ze šířky) */
.crop { overflow: hidden; }
.crop img { margin-top: -15.6%; width: 100%; }
.crop.crop-form img { margin-top: -15.4%; }
.shot-phone { border-radius: 22px; border: 6px solid #0b1424; overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); }
.shot-phone img { width: 100%; }
.zoomable { cursor: zoom-in; }

/* Sections */
section { padding: 5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 44em; margin: 0 auto 3rem; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: 0 2px 0 rgba(14, 34, 64, .02); transition: .2s ease; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.card .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.5rem; background: var(--blue-soft); margin-bottom: 1rem; }
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--muted); margin: 0; }

/* Feature rows */
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3.5rem; align-items: center; margin-bottom: 4.5rem; }
.feature:last-child { margin-bottom: 0; }
.feature.rev { grid-template-columns: 1.15fr 1fr; }
.feature.rev .feature-text { order: 2; }
.feature ul { padding-left: 1.2rem; color: var(--muted); }
.feature ul li { margin-bottom: .35rem; }
.feature ul li::marker { color: var(--orange); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; background: var(--blue-soft); color: var(--blue-dark); padding: .2rem .65rem; border-radius: 999px; margin-bottom: .8rem; letter-spacing: .03em; }

/* Roles */
.role { border-top: 4px solid var(--blue); }
.role.r2 { border-top-color: var(--green); }
.role.r3 { border-top-color: var(--orange); }
.role ul { padding-left: 1.1rem; margin: .8rem 0 0; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 3.2rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step p { color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--blue) 0%, var(--navy-2) 100%); color: #fff; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d5e1f6; font-size: 1.15rem; }

/* Footer */
.site-footer { background: var(--navy); color: #b9c8e2; padding: 3.5rem 0 1.5rem; }
.site-footer a { color: #d6e2f6; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .8rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .4rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.2rem; font-size: .9rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.site-footer .brand { color: #fff; margin-bottom: .8rem; }

/* Page heading */
.page-hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; padding: 3.2rem 0; }
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .4rem; }
.page-hero p { color: #cdd9ee; margin: 0; font-size: 1.1rem; }

/* Legal / prose */
.prose { max-width: 50em; }
.prose h2 { font-size: 1.35rem; margin-top: 2rem; }
.prose h3 { font-size: 1.1rem; margin-top: 1.4rem; }
.legal-wrap { padding: 3rem 0 5rem; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 650; margin-bottom: .3rem; font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: .75rem .9rem; border: 1.5px solid #cdd7e8; border-radius: 10px; font: inherit; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid rgba(31, 111, 235, .25); border-color: var(--blue); }
.field textarea { min-height: 150px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.check input { width: auto; margin-top: .3rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.alert { padding: 1rem 1.2rem; border-radius: 10px; margin-bottom: 1.2rem; font-weight: 550; }
.alert-ok { background: #e3f6ec; color: #11633b; border: 1px solid #b7e4cb; }
.alert-err { background: #fdecee; color: #8f1f2c; border: 1px solid #f5c2c8; }
.contact-box { background: var(--bg-soft); border-radius: var(--radius); padding: 1.8rem; }
.contact-box dt { font-weight: 700; color: var(--navy); margin-top: 1rem; }
.contact-box dt:first-child { margin-top: 0; }
.contact-box dd { margin: 0; color: var(--muted); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(8, 16, 32, .88); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 96vw; border-radius: 8px; background: #fff; }

/* Gallery tabs */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 1.8rem; }
.tab { border: 1.5px solid var(--line); background: #fff; color: var(--ink); padding: .5rem 1.1rem; border-radius: 999px; font: inherit; font-weight: 600; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.tab-panel { display: none; max-width: 980px; margin: 0 auto; }
.tab-panel.active { display: block; }
.tab-caption { text-align: center; color: var(--muted); margin-top: 1.2rem; }

/* Documentation */
.docs { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 3rem; padding: 3rem 0 5rem; align-items: start; }
.toc { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; padding-right: .5rem; }
.toc h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .38rem .9rem; color: var(--ink); font-size: .96rem; border-left: 2px solid transparent; margin-left: -2px; text-decoration: none; }
.toc a:hover { color: var(--blue); }
.toc a.on { color: var(--blue); border-left-color: var(--blue); font-weight: 650; background: var(--blue-soft); }
.toc .sub a { padding-left: 1.8rem; font-size: .9rem; color: var(--muted); }
.doc h2 { margin-top: 3.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.doc h2:first-child { margin-top: 0; border: 0; padding-top: 0; }
.doc h3 { margin-top: 2rem; }
.doc ol, .doc ul { padding-left: 1.4rem; }
.doc li { margin-bottom: .4rem; }
.doc .shot { margin: 1.4rem 0; box-shadow: var(--shadow); }
.doc figure { margin: 1.4rem 0; }
.doc figcaption { color: var(--muted); font-size: .92rem; margin-top: .5rem; }
.doc table { width: 100%; border-collapse: collapse; margin: 1.2rem 0; font-size: .96rem; }
.doc th, .doc td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; vertical-align: top; }
.doc th { background: var(--bg-soft); }
.doc .yes { color: var(--green); font-weight: 800; text-align: center; }
.doc .no { color: #a3aec2; text-align: center; }
.note { border-left: 4px solid var(--blue); background: var(--blue-soft); padding: .9rem 1.1rem; border-radius: 0 10px 10px 0; margin: 1.2rem 0; }
.note.warn { border-left-color: var(--orange); background: #fff6e0; }
.note strong:first-child { color: var(--navy); }
kbd, .ui { background: #eef2f8; border: 1px solid #d3dcec; border-radius: 6px; padding: .05rem .4rem; font-size: .92em; font-family: inherit; white-space: nowrap; }
.faq details { border: 1px solid var(--line); border-radius: 10px; padding: .8rem 1.1rem; margin-bottom: .7rem; background: #fff; }
.faq summary { cursor: pointer; font-weight: 650; color: var(--navy); }
.faq details[open] summary { margin-bottom: .5rem; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .feature, .feature.rev, .contact-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .feature.rev .feature-text { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .docs { grid-template-columns: 1fr; gap: 1.5rem; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 12px; padding: 1rem; }
  .hero-visual .shot-phone { right: 4px; bottom: -24px; }
}
@media (max-width: 720px) {
  section { padding: 3.5rem 0; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 68px; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem 16px 1.2rem; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-links .btn { margin: .4rem 0 0; }
  .grid-3, .grid-2, .field-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-grid { padding: 3rem 0 4rem; }
  .doc table { display: block; overflow-x: auto; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .toc, .cta-band { display: none; } .docs { display: block; } }
