/* Public marketing pages (landing, ceník, integrace, FAQ, srovnání). Builds on
   legal.css / colors_and_type.css tokens — only the few extra primitives the
   marketing pages need beyond the legal-document layout. */

.mk-lede {
  font-size: 17px; line-height: 1.6; color: var(--text, #1b1d21);
  margin: 4px 0 18px; max-width: 72ch;
}
.mk-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent, #2f9e44); color: #fff;
  padding: 11px 20px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
/* The CTA sits inside .lg-doc / .lg-sec, whose `a` rule (legal.css `.lg-sec a`,
   specificity 0,1,1) would otherwise paint the link green ON the green button →
   invisible label. These higher-specificity rules (0,2,1) keep the text white. */
.lg-doc a.mk-cta, .lg-sec a.mk-cta { color: #fff; }
.mk-cta:hover { filter: brightness(1.06); color: #fff; }

/* Shared public top navigation (identical on every public marketing/legal page). */
.mk-nav { display: flex; align-items: center; gap: 18px; margin-left: 10px; }
.mk-nav > a, .mk-nav-droptop {
  font-size: 14px; color: var(--fg1, #1b1d21); text-decoration: none; white-space: nowrap;
}
.mk-nav > a:hover, .mk-nav-droptop:hover { color: var(--accent-text, #2f9e44); }
.mk-nav-drop { position: relative; display: inline-flex; }
.mk-nav-menu {
  position: absolute; top: 100%; left: 0; display: none; min-width: 160px;
  background: var(--bg-surface, #fff); border: 1px solid var(--border, #e5e7eb);
  border-radius: 10px; padding: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .08); z-index: 50;
}
.mk-nav-drop:hover .mk-nav-menu, .mk-nav-drop:focus-within .mk-nav-menu { display: block; }
.mk-nav-menu a {
  display: block; padding: 7px 10px; border-radius: 7px; font-size: 13.5px;
  color: var(--fg1, #1b1d21); text-decoration: none; white-space: nowrap;
}
.mk-nav-menu a:hover { background: var(--accent-tint, #eef2f7); color: var(--accent-text, #2f9e44); }
/* No-JS site: on narrow screens the top nav collapses; the full footer (human
   sitemap, on every page) keeps every public page reachable on mobile. */
@media (max-width: 760px) { .mk-nav { display: none; } }
.mk-note {
  border-left: 3px solid var(--accent, #2a6fdb); background: var(--bg, #f6f7f9);
  padding: 10px 14px; border-radius: 8px; margin: 12px 0; font-size: 14px; line-height: 1.55;
}
.mk-featured-tag {
  display: inline-block; font-size: 12px; font-weight: 700; color: var(--accent, #2a6fdb);
  background: #e8f0fd; border-radius: 10px; padding: 1px 8px; margin-left: 8px; vertical-align: middle;
}
/* price cell emphasis inside lg-table */
.lg-table .mk-price { font-weight: 700; white-space: nowrap; }
.lg-table .mk-was { color: var(--muted, #6b7280); text-decoration: line-through; font-size: 12px; }

/* ============================================================================
   VISUAL REFRESH (2026) — scoped to `.mk` (the in-scope public marketing pages).
   Everything below applies ONLY when the page root carries `class="lg-page mk"`,
   so the legal pages / 404 / any other consumer of marketing.css are untouched.
   Pure CSS; uses the design tokens from colors_and_type.css. Denser cards/grids,
   modern type/spacing, a soft hero band, and (with marketing.js) scroll reveals.
   ========================================================================== */

/* ---- Canvas + soft hero band (kills the "too empty" flat white) ---- */
.mk .lg-main {
  background:
    radial-gradient(1100px 460px at 50% -160px, var(--accent-tint), transparent 72%);
}
.mk .lg-doc { max-width: 960px; padding: 0 24px 88px; }

/* ---- Hero: badge eyebrow, large display H1, lead, elevated CTA ---- */
.mk .lg-eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  margin: 56px 0 18px; padding: 5px 13px; border-radius: var(--radius-full);
  background: var(--bg-surface); border: 1px solid var(--border);
  color: var(--accent-text); font-weight: 500; letter-spacing: .02em;
  box-shadow: var(--shadow-xs);
}
.mk .lg-doc h1 {
  font-size: clamp(31px, 4.6vw, 46px); line-height: 1.08;
  letter-spacing: -0.022em; max-width: 20ch; margin: 0 0 18px;
}
.mk .mk-lede { font-size: 19px; line-height: 1.62; color: var(--fg2); max-width: 66ch; }
.mk .mk-cta {
  padding: 13px 22px; border-radius: var(--radius-lg); font-size: 15px;
  box-shadow: 0 6px 18px rgba(47, 158, 68, .26);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    filter var(--dur) var(--ease);
}
.mk .mk-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 26px rgba(47, 158, 68, .34); }

/* ---- TOC → horizontal pill row (denser, modern) ---- */
.mk .lg-toc { background: var(--bg-surface); box-shadow: var(--shadow-sm); border-radius: var(--radius-lg); }
.mk .lg-toc ol { flex-direction: row; flex-wrap: wrap; gap: 9px; }
.mk .lg-toc a {
  padding: 7px 13px; border: 1px solid var(--border); border-radius: var(--radius-full);
  background: var(--bg-app); color: var(--fg2); font-weight: 500;
}
.mk .lg-toc a::before { content: none; }
.mk .lg-toc a:hover { border-color: var(--accent); color: var(--accent-text); text-decoration: none; }

/* ---- Sections become cards: "filled zones" instead of voids ---- */
.mk .lg-sec {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px 30px; margin-top: 20px;
  box-shadow: var(--shadow-sm); scroll-margin-top: 84px;
}
.mk .lg-sec h2 {
  font-size: 22px; display: flex; align-items: center; gap: 11px; margin-bottom: 14px;
}
.mk .lg-sec h2::before {
  content: ""; flex: none; width: 4px; height: 22px; border-radius: var(--radius-full);
  background: var(--accent);
}
.mk .lg-sec p, .mk .lg-sec > ul li { max-width: 74ch; }

/* ---- "Jak to funguje" / "Postup" ordered lists → numbered step cards ---- */
.mk .lg-sec ol {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px;
  counter-reset: step;
}
.mk .lg-sec ol li {
  counter-increment: step; margin: 0; max-width: none;
  background: var(--bg-app); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 16px 16px 17px;
  font-size: 14.5px; line-height: 1.55; color: var(--fg2);
}
.mk .lg-sec ol li::marker { content: none; }
.mk .lg-sec ol li::before {
  content: counter(step); display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-bottom: 11px; border-radius: var(--radius-full);
  background: var(--accent-tint); color: var(--accent-text);
  font-family: var(--font-mono); font-weight: 500; font-size: 15px;
}
.mk .lg-sec ol li strong { display: block; color: var(--fg1); margin-bottom: 2px; }

/* ---- Bulleted feature lists: tidy, with accent markers ---- */
.mk .lg-sec > ul { padding-left: 0; list-style: none; gap: 11px; }
.mk .lg-sec > ul li { position: relative; padding-left: 26px; }
.mk .lg-sec > ul li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px;
  border-radius: var(--radius-full); background: var(--accent);
}

/* ---- Tables (Ceník plans / Srovnání): modern, hairline, hover ---- */
.mk .lg-table {
  border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  border-collapse: separate; border-spacing: 0; margin: 6px 0 2px;
}
.mk .lg-table th {
  background: var(--bg-subtle); padding: 13px 16px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.mk .lg-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); }
.mk .lg-table tbody tr:last-child td { border-bottom: none; }
.mk .lg-table tbody tr { transition: background var(--dur) var(--ease); }
.mk .lg-table tbody tr:hover { background: var(--accent-tint); }
.mk .lg-table .mk-price { color: var(--fg1); }

/* ---- Featured plan tag + callout note ---- */
.mk .mk-featured-tag {
  color: var(--accent-text); background: var(--accent-tint);
  border-radius: var(--radius-full); padding: 2px 9px; font-size: 11.5px;
}
.mk .mk-note {
  background: var(--accent-tint); border-left: 3px solid var(--accent);
  border-radius: var(--radius-md); color: var(--fg2); padding: 14px 18px; line-height: 1.6;
}

@media (max-width: 760px) {
  .mk .lg-doc { padding: 0 16px 64px; }
  .mk .lg-sec { padding: 20px 18px; }
  .mk .lg-eyebrow { margin-top: 36px; }
}

/* ---- Scroll reveals — crawler-safe + reduced-motion-safe ----
   Hidden-start applies ONLY when marketing.js has added `.mk-anim` (so no-JS /
   crawlers see content fully visible) AND only when motion is allowed. JS adds
   `.in` as each block scrolls into view; marketing.js no-ops under reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .mk.mk-anim .lg-doc > * {
    opacity: 0; transform: translateY(16px);
    transition: opacity .55s var(--ease), transform .55s var(--ease);
    transition-delay: calc(var(--rv-i, 0) * 45ms);
  }
  .mk.mk-anim .lg-doc > .in { opacity: 1; transform: none; }
}

/* ---- Footer: balanced + centered. Nav row on TOP (own full-width row with a hairline
   divider), then the brand + contact + language switcher centered on ONE row below it.
   CSS-only reorder (flex `order`) — markup/text/links unchanged. Scoped to `.mk`, so the
   legal pages / 404 footer is untouched. Fixes the old left-crammed, lang-alone-at-bottom
   layout. */
.mk .lg-foot-inner {
  justify-content: center; align-items: center; text-align: center;
  gap: 12px 16px; padding: 30px 32px;
}
.mk .lg-foot-links {
  order: -1; flex-basis: 100%; justify-content: center; margin-left: 0;
  gap: 12px 18px; padding-bottom: 18px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.mk .lg-foot-brand, .mk .lg-foot-copy, .mk .lg-foot-lang { order: 0; }
/* undo the base full-width bottom row → the switcher now sits inline in the brand row */
.mk .lg-foot-lang { width: auto; margin-top: 0; }
